@tec.pet/tecpet-sdk 0.0.184 → 0.0.185

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.
@@ -5,11 +5,31 @@ export declare enum NotificationStatus {
5
5
  DELIVERED = "DELIVERED",
6
6
  READ = "READ",
7
7
  ANSWERED = "ANSWERED",
8
- CANCELED = "CANCELED"
8
+ CANCELED = "CANCELED",
9
+ FAILED = "FAILED"
10
+ }
11
+ export declare enum NotificationFailReason {
12
+ META_ACCOUNT_UNLINKED = "META_ACCOUNT_UNLINKED",
13
+ META_BILLING_ISSUE = "META_BILLING_ISSUE",
14
+ META_TEMPLATE_REJECTED = "META_TEMPLATE_REJECTED",
15
+ META_WINDOW_CLOSED = "META_WINDOW_CLOSED",
16
+ META_INVALID_NUMBER = "META_INVALID_NUMBER",
17
+ META_MEDIA_REJECTED = "META_MEDIA_REJECTED",
18
+ META_RATE_LIMITED = "META_RATE_LIMITED",
19
+ META_INVALID_PAYLOAD = "META_INVALID_PAYLOAD",
20
+ META_UNAVAILABLE = "META_UNAVAILABLE",
21
+ ZAPI_INSTANCE_UNSUBSCRIBED = "ZAPI_INSTANCE_UNSUBSCRIBED",
22
+ ZAPI_DISCONNECTED = "ZAPI_DISCONNECTED",
23
+ ZAPI_MEDIA_REJECTED = "ZAPI_MEDIA_REJECTED",
24
+ ZAPI_INVALID_PAYLOAD = "ZAPI_INVALID_PAYLOAD",
25
+ ZAPI_UNAVAILABLE = "ZAPI_UNAVAILABLE",
26
+ UNKNOWN = "UNKNOWN"
9
27
  }
10
28
  export interface PaChangeNotificationStatusInput {
11
29
  status: NotificationStatus;
12
30
  date: Date;
31
+ failReason?: string;
32
+ failReasonType?: NotificationFailReason;
13
33
  }
14
34
  export interface PaChangeNotificationStatusResponse {
15
35
  success: boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationStatus = void 0;
3
+ exports.NotificationFailReason = exports.NotificationStatus = void 0;
4
4
  var NotificationStatus;
5
5
  (function (NotificationStatus) {
6
6
  NotificationStatus["NEW"] = "NEW";
@@ -10,4 +10,23 @@ var NotificationStatus;
10
10
  NotificationStatus["READ"] = "READ";
11
11
  NotificationStatus["ANSWERED"] = "ANSWERED";
12
12
  NotificationStatus["CANCELED"] = "CANCELED";
13
+ NotificationStatus["FAILED"] = "FAILED";
13
14
  })(NotificationStatus || (exports.NotificationStatus = NotificationStatus = {}));
15
+ var NotificationFailReason;
16
+ (function (NotificationFailReason) {
17
+ NotificationFailReason["META_ACCOUNT_UNLINKED"] = "META_ACCOUNT_UNLINKED";
18
+ NotificationFailReason["META_BILLING_ISSUE"] = "META_BILLING_ISSUE";
19
+ NotificationFailReason["META_TEMPLATE_REJECTED"] = "META_TEMPLATE_REJECTED";
20
+ NotificationFailReason["META_WINDOW_CLOSED"] = "META_WINDOW_CLOSED";
21
+ NotificationFailReason["META_INVALID_NUMBER"] = "META_INVALID_NUMBER";
22
+ NotificationFailReason["META_MEDIA_REJECTED"] = "META_MEDIA_REJECTED";
23
+ NotificationFailReason["META_RATE_LIMITED"] = "META_RATE_LIMITED";
24
+ NotificationFailReason["META_INVALID_PAYLOAD"] = "META_INVALID_PAYLOAD";
25
+ NotificationFailReason["META_UNAVAILABLE"] = "META_UNAVAILABLE";
26
+ NotificationFailReason["ZAPI_INSTANCE_UNSUBSCRIBED"] = "ZAPI_INSTANCE_UNSUBSCRIBED";
27
+ NotificationFailReason["ZAPI_DISCONNECTED"] = "ZAPI_DISCONNECTED";
28
+ NotificationFailReason["ZAPI_MEDIA_REJECTED"] = "ZAPI_MEDIA_REJECTED";
29
+ NotificationFailReason["ZAPI_INVALID_PAYLOAD"] = "ZAPI_INVALID_PAYLOAD";
30
+ NotificationFailReason["ZAPI_UNAVAILABLE"] = "ZAPI_UNAVAILABLE";
31
+ NotificationFailReason["UNKNOWN"] = "UNKNOWN";
32
+ })(NotificationFailReason || (exports.NotificationFailReason = NotificationFailReason = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.184",
3
+ "version": "0.0.185",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",