feat(whatsapp.gblib): Switch from Whatsapp channel which bot to talk to with the same number.
This commit is contained in:
parent
09a560e07f
commit
529a2858f3
4 changed files with 33 additions and 40 deletions
67
package-lock.json
generated
67
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "botlib",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1491,14 +1491,6 @@
|
|||
"env-variable": "0.0.x"
|
||||
}
|
||||
},
|
||||
"encoding": {
|
||||
"version": "0.1.12",
|
||||
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz",
|
||||
"integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=",
|
||||
"requires": {
|
||||
"iconv-lite": "~0.4.13"
|
||||
}
|
||||
},
|
||||
"end-of-stream": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz",
|
||||
|
@ -1632,34 +1624,6 @@
|
|||
"tough-cookie": "^2.3.1"
|
||||
}
|
||||
},
|
||||
"fetch-ponyfill": {
|
||||
"version": "github:amarzavery/fetch-ponyfill#136e6f8192bdb2aa0b7983f0b3b4361c357be9db",
|
||||
"from": "github:amarzavery/fetch-ponyfill#master",
|
||||
"requires": {
|
||||
"fetch-cookie": "~0.6.0",
|
||||
"node-fetch": "~1.7.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"fetch-cookie": {
|
||||
"version": "0.6.0",
|
||||
"resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-0.6.0.tgz",
|
||||
"integrity": "sha1-T+xOQIzAAH9sBOVTYYr0s97jf2k=",
|
||||
"requires": {
|
||||
"es6-denodeify": "^0.1.1",
|
||||
"tough-cookie": "^2.3.1"
|
||||
}
|
||||
},
|
||||
"node-fetch": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz",
|
||||
"integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==",
|
||||
"requires": {
|
||||
"encoding": "^0.1.11",
|
||||
"is-stream": "^1.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"filename-reserved-regex": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz",
|
||||
|
@ -2657,7 +2621,6 @@
|
|||
"@types/node-fetch": "^1.6.7",
|
||||
"@types/uuid": "^3.4.3",
|
||||
"fetch-cookie": "^0.7.0",
|
||||
"fetch-ponyfill": "github:amarzavery/fetch-ponyfill#136e6f8192bdb2aa0b7983f0b3b4361c357be9db",
|
||||
"form-data": "^2.3.2",
|
||||
"is-buffer": "^2.0.0",
|
||||
"is-stream": "^1.1.0",
|
||||
|
@ -2666,10 +2629,38 @@
|
|||
"uuid": "^3.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"fetch-ponyfill": {
|
||||
"version": "github:amarzavery/fetch-ponyfill#136e6f8192bdb2aa0b7983f0b3b4361c357be9db",
|
||||
"from": "github:amarzavery/fetch-ponyfill#136e6f8192bdb2aa0b7983f0b3b4361c357be9db",
|
||||
"requires": {
|
||||
"fetch-cookie": "~0.6.0",
|
||||
"node-fetch": "~1.7.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"fetch-cookie": {
|
||||
"version": "0.6.0",
|
||||
"resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-0.6.0.tgz",
|
||||
"integrity": "sha1-T+xOQIzAAH9sBOVTYYr0s97jf2k=",
|
||||
"requires": {
|
||||
"es6-denodeify": "^0.1.1",
|
||||
"tough-cookie": "^2.3.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"is-buffer": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz",
|
||||
"integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw=="
|
||||
},
|
||||
"node-fetch": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz",
|
||||
"integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==",
|
||||
"requires": {
|
||||
"encoding": "^0.1.11",
|
||||
"is-stream": "^1.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "botlib",
|
||||
"version": "1.2.1",
|
||||
"version": "1.2.2",
|
||||
"description": "General Bot base library for building Node.js TypeScript Apps packages (.gbapp) and Libray packages (.gblib)",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index",
|
||||
|
@ -45,4 +45,4 @@
|
|||
"typedoc": "0.14.2",
|
||||
"typescript": "3.4.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ export class GBMinInstance {
|
|||
dialogs: DialogSet;
|
||||
userState: UserState;
|
||||
userProfile: any;
|
||||
whatsAppDirectLine: any;
|
||||
|
||||
cbMap: {};
|
||||
scriptMap: {};
|
||||
|
|
|
@ -44,6 +44,7 @@ export interface IGBCoreService {
|
|||
sequelize: Sequelize
|
||||
syncDatabaseStructure()
|
||||
loadInstances(): Promise<IGBInstance[]>;
|
||||
deleteInstance(botId: string): Promise<void>;
|
||||
loadInstance(botId: string): Promise<IGBInstance>;
|
||||
loadInstanceById(instanceId: number): Promise<IGBInstance>;
|
||||
initStorage(): Promise<any>;
|
||||
|
|
Loading…
Add table
Reference in a new issue