@botonic/core 0.21.2 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/cjs/core-bot.js +7 -7
  2. package/lib/cjs/core-bot.js.map +1 -1
  3. package/lib/cjs/data-provider/dynamodb-data-provider.js +4 -4
  4. package/lib/cjs/data-provider/dynamodb-data-provider.js.map +1 -1
  5. package/lib/cjs/handoff.d.ts +1 -1
  6. package/lib/cjs/handoff.js +6 -6
  7. package/lib/cjs/handoff.js.map +1 -1
  8. package/lib/cjs/hubtype-service.js +5 -5
  9. package/lib/cjs/hubtype-service.js.map +1 -1
  10. package/lib/cjs/models/events/botonic-event.d.ts +1 -1
  11. package/lib/cjs/models/events/message/buttons.d.ts +1 -1
  12. package/lib/cjs/models/events/message/message-event.js +1 -1
  13. package/lib/cjs/models/legacy-types.d.ts +55 -52
  14. package/lib/cjs/models/legacy-types.js +2 -0
  15. package/lib/cjs/models/legacy-types.js.map +1 -1
  16. package/lib/cjs/output-parser/botonic-output-parser.js +2 -2
  17. package/lib/cjs/output-parser/botonic-output-parser.js.map +1 -1
  18. package/lib/cjs/output-parser/factory.js +10 -10
  19. package/lib/cjs/output-parser/factory.js.map +1 -1
  20. package/lib/cjs/output-parser/parsers.d.ts +1 -1
  21. package/lib/cjs/output-parser/parsers.js +4 -4
  22. package/lib/cjs/output-parser/parsers.js.map +1 -1
  23. package/lib/cjs/plugins.d.ts +1 -1
  24. package/lib/cjs/pusher-utils.js +1 -1
  25. package/lib/cjs/pusher-utils.js.map +1 -1
  26. package/lib/cjs/routing/router.js +13 -13
  27. package/lib/cjs/routing/router.js.map +1 -1
  28. package/lib/cjs/utils.js +2 -2
  29. package/lib/cjs/utils.js.map +1 -1
  30. package/lib/esm/handoff.d.ts +1 -1
  31. package/lib/esm/handoff.js +1 -1
  32. package/lib/esm/handoff.js.map +1 -1
  33. package/lib/esm/hubtype-service.js +2 -2
  34. package/lib/esm/hubtype-service.js.map +1 -1
  35. package/lib/esm/models/events/botonic-event.d.ts +1 -1
  36. package/lib/esm/models/events/message/buttons.d.ts +1 -1
  37. package/lib/esm/models/events/message/message-event.js +1 -1
  38. package/lib/esm/models/legacy-types.d.ts +55 -52
  39. package/lib/esm/models/legacy-types.js +2 -0
  40. package/lib/esm/models/legacy-types.js.map +1 -1
  41. package/lib/esm/output-parser/parsers.d.ts +1 -1
  42. package/lib/esm/plugins.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/src/handoff.ts +1 -1
  45. package/src/hubtype-service.ts +2 -2
  46. package/src/models/events/message/message-event.ts +1 -1
  47. package/src/models/legacy-types.ts +4 -0
@@ -14,7 +14,7 @@ export enum MessageEventTypes {
14
14
  MISSED = 'missed',
15
15
  FORM = 'form',
16
16
  /**
17
- * TODO: contact, buttonmessage?, webchatsettings, whatsapp template
17
+ * TODO: buttonmessage?, webchatsettings, whatsapp template
18
18
  */
19
19
  }
20
20
 
@@ -20,6 +20,7 @@ export const PROVIDER = Object.freeze({
20
20
  DEV: 'dev',
21
21
  FACEBOOK: 'facebook',
22
22
  GENERIC: 'generic',
23
+ INSTAGRAM: 'instagram',
23
24
  INTERCOM: 'intercom',
24
25
  SMOOCH: 'smooch',
25
26
  TELEGRAM: 'telegram',
@@ -126,6 +127,7 @@ export type ProviderType =
126
127
  | typeof PROVIDER.DEV
127
128
  | typeof PROVIDER.FACEBOOK
128
129
  | typeof PROVIDER.GENERIC
130
+ | typeof PROVIDER.INSTAGRAM
129
131
  | typeof PROVIDER.INTERCOM
130
132
  | typeof PROVIDER.SMOOCH
131
133
  | typeof PROVIDER.TELEGRAM
@@ -164,6 +166,7 @@ export interface Session {
164
166
  _hubtype_case_status?: CaseStatusType
165
167
  _hubtype_case_typification?: string
166
168
  _shadowing?: boolean
169
+ _access_token?: string
167
170
  }
168
171
  // eslint-enable @typescript-eslint/naming-convention
169
172
 
@@ -243,6 +246,7 @@ export const Providers = Object.freeze({
243
246
  FACEBOOK: 'facebook',
244
247
  GENERIC: 'generic',
245
248
  IMBEE: 'imbee',
249
+ INSTAGRAM: 'instagram',
246
250
  INTERCOM: 'intercom',
247
251
  SMOOCH_WEB: 'smooch_web',
248
252
  SMOOCH: 'smooch',