generated from SGFGOV/medusa-plugin-starter-ts
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/convert to notification service (#1)
* fix: added features to enable sending complex status messages * 1.1.6 * fix:typings * 1.1.7 * fix: whatsapp service * 1.1.8 * fix: updated to whatsapp service * 1.1.9 * fix: peer dependency * 1.1.10 * 1.1.11 * fix: to handle content templates * 1.1.12 * fix: middleware * 1.1.13 * fix: middleware * 1.1.14 * fix: session handling * 1.1.15 * fix: session handling * fix: typings * fix: typings * 1.1.17 * fix: added one flavour of incoming messages * fix: update hooks * feat:conversation support * 1.2.0 * fix: cleanup users * fix: cleanup users * 1.2.1 * fix: cleanup users * 1.2.2 * fix: service export * 1.2.3 * fix: startagentconversation * 1.2.4 * fix: agency * 1.2.5 * fix: authorization * 1.2.6 * fix: message handling * 1.2.7 * fix: message handling * 1.2.8 * fix: message handling * 1.2.9 * 1.2.10 * Commiting whatsapp messages * chore: add liniting * 1.2.12 * fix name * 1.2.13 * fix: responses * 1.2.14 * fix: conversations * 1.2.15 * fix: conversations * 1.2.16 * fix: updates to auto-response * 1.2.17 * fix: updates to auto-response * 1.2.18 * fix: updates to auto-response * 1.2.19 * fix: sendAgentConversation * 1.2.20 * fix: search for user conversations * fix: validation wiht ports * 1.2.21 * fix: validation with ports * 1.2.22 * fix: no-old-conversations * fix: no-old-conversations * 1.2.23 * fix: release from conversation * 1.2.24 * fix: release from conversation * fix: undefined * 1.2.25 * fix: medusa-plugin-whatsapp readme * fix: notifications and resolution issues during tests --------- Co-authored-by: Govind Diwakar <sgf@sourcegoodfood.com>
- Loading branch information
Showing
21 changed files
with
5,296 additions
and
11,034 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
module.exports = { | ||
// parser: `@babel/eslint-parser`, | ||
parserOptions: { | ||
requireConfigFile: false, | ||
ecmaFeatures: { | ||
experimentalDecorators: true, | ||
}, | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
plugins: ["file-progress", "prettier"], | ||
extends: [ | ||
"eslint:recommended", | ||
"eslint-config-prettier", | ||
"google", | ||
"plugin:prettier/recommended", | ||
], | ||
rules: { | ||
"file-progress/activate": 1, | ||
/* "prettier/prettier": [ | ||
"warn", | ||
{ | ||
singleQuote: false, | ||
semi: true, | ||
quoteProps: "consistent", | ||
objectCurlySpacing: "always", | ||
trailingComma: "all", | ||
}, | ||
],*/ | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
endOfLine: "auto", | ||
}, | ||
{ | ||
usePrettierrc: true, | ||
}, | ||
], | ||
"object-curly-spacing": [2, "always"], | ||
quotes: [2, "double", { avoidEscape: true }], | ||
curly: [2, "all"], | ||
"new-cap": "off", | ||
"require-jsdoc": "off", | ||
semi: "error", | ||
"no-unused-expressions": "off", | ||
camelcase: "off", | ||
"no-invalid-this": "off", | ||
}, | ||
env: { | ||
es6: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
ignorePatterns: [ | ||
"**/models", | ||
"**/repositories", | ||
"**/reports", | ||
"**/dist", | ||
"**/coverage", | ||
], | ||
overrides: [ | ||
{ | ||
files: ["*.ts"], | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint/eslint-plugin"], | ||
extends: ["plugin:@typescript-eslint/recommended"], | ||
rules: { | ||
"valid-jsdoc": [ | ||
"error", | ||
{ | ||
requireParamType: false, | ||
requireReturnType: false, | ||
prefer: { | ||
arg: "param", | ||
argument: "param", | ||
class: "constructor", | ||
return: "return", | ||
virtual: "abstract", | ||
}, | ||
}, | ||
], | ||
"@typescript-eslint/explicit-function-return-type": ["error"], | ||
"@typescript-eslint/no-non-null-assertion": ["off"], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
endOfLine: "auto", | ||
}, | ||
{ | ||
usePrettierrc: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: [ | ||
"**/common/**/*.ts", | ||
"**/bin/**/*.ts", | ||
"**/api/**/*.ts", | ||
"**/medusa-js/**/resources/**/*.ts", | ||
], | ||
rules: { | ||
"valid-jsdoc": ["off"], | ||
}, | ||
}, | ||
{ | ||
// Medusa JS client | ||
files: ["**/medusa-js/**/resources/**/*.ts"], | ||
rules: { | ||
"valid-jsdoc": ["off"], | ||
}, | ||
}, | ||
{ | ||
files: ["**/api/**/*.ts"], | ||
rules: { | ||
"valid-jsdoc": ["off"], | ||
"@typescript-eslint/explicit-function-return-type": ["off"], | ||
"@typescript-eslint/no-var-requires": ["off"], | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ coverage | |
*.tgz | ||
|
||
tsconfig.tsbuildinfo | ||
tsconfig.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Jest:medusa-plugin-whatsapp ", | ||
//"env": { "NODE_ENV": "test" }, | ||
"cwd": "${workspaceFolder}", | ||
"program": "${workspaceFolder}/node_modules/.bin/jest", | ||
"args": [ | ||
"${fileBasenameNoExtension}", | ||
"--detect-open-handles", | ||
"--setupFiles", | ||
"dotenv/config" | ||
], | ||
"console": "integratedTerminal", | ||
"disableOptimisticBPs": true, | ||
"windows": { | ||
"program": "${workspaceFolder}/node_modules/jest/bin/jest" | ||
} | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,5 @@ add to your plugins list | |
} | ||
``` | ||
|
||
the whatsapp handler service need to implement the interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.