@onesignal/node-onesignal 2.0.1-beta2 → 2.2.0-beta1
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.
- package/DefaultApi.md +2 -2
- package/apis/DefaultApi.ts +117 -0
- package/auth/auth.ts +2 -2
- package/dist/apis/DefaultApi.js +49 -5
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/auth/auth.js +2 -2
- package/dist/auth/auth.js.map +1 -1
- package/dist/http/http.d.ts +1 -0
- package/dist/jest.config.d.ts +15 -0
- package/dist/jest.config.js +17 -0
- package/dist/jest.config.js.map +1 -0
- package/dist/models/BasicNotification.d.ts +1 -0
- package/dist/models/BasicNotification.js +6 -0
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/BasicNotificationAllOf.d.ts +1 -0
- package/dist/models/BasicNotificationAllOf.js +6 -0
- package/dist/models/BasicNotificationAllOf.js.map +1 -1
- package/dist/models/ExportSubscriptionsRequestBody.d.ts +19 -0
- package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
- package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
- package/dist/models/ExportSubscriptionsSuccessResponse.d.ts +17 -0
- package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
- package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
- package/dist/models/FilterExpression.d.ts +27 -0
- package/dist/models/FilterExpression.js +70 -0
- package/dist/models/FilterExpression.js.map +1 -0
- package/dist/models/GenericSuccessBoolResponse.d.ts +17 -0
- package/dist/models/GenericSuccessBoolResponse.js +22 -0
- package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
- package/dist/models/GetNotificationHistoryRequestBody.d.ts +20 -0
- package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
- package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
- package/dist/models/GetSegmentsSuccessResponse.d.ts +21 -0
- package/dist/models/GetSegmentsSuccessResponse.js +40 -0
- package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
- package/dist/models/LanguageStringMap.d.ts +59 -0
- package/dist/models/LanguageStringMap.js +274 -0
- package/dist/models/LanguageStringMap.js.map +1 -0
- package/dist/models/Notification.d.ts +1 -0
- package/dist/models/Notification.js +6 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +1 -0
- package/dist/models/NotificationWithMeta.js +6 -0
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/PropertiesBody.d.ts +18 -0
- package/dist/models/PropertiesBody.js +22 -0
- package/dist/models/PropertiesBody.js.map +1 -0
- package/dist/models/RateLimitError.d.ts +18 -0
- package/dist/models/RateLimitError.js +28 -0
- package/dist/models/RateLimitError.js.map +1 -0
- package/dist/models/SegmentData.d.ts +23 -0
- package/dist/models/SegmentData.js +58 -0
- package/dist/models/SegmentData.js.map +1 -0
- package/dist/models/Subscription.d.ts +34 -0
- package/dist/models/Subscription.js +118 -0
- package/dist/models/Subscription.js.map +1 -0
- package/dist/models/SubscriptionBody.d.ts +18 -0
- package/dist/models/SubscriptionBody.js +22 -0
- package/dist/models/SubscriptionBody.js.map +1 -0
- package/dist/models/SubscriptionNotificationTarget.d.ts +30 -0
- package/dist/models/SubscriptionNotificationTarget.js +82 -0
- package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
- package/dist/models/UserIdentityBody.d.ts +19 -0
- package/dist/models/UserIdentityBody.js +22 -0
- package/dist/models/UserIdentityBody.js.map +1 -0
- package/dist/models/WebButton.d.ts +20 -0
- package/dist/models/WebButton.js +40 -0
- package/dist/models/WebButton.js.map +1 -0
- package/dist/servers.js +1 -1
- package/dist/servers.js.map +1 -1
- package/dist/test/DefaultApi.test.d.ts +1 -0
- package/dist/test/DefaultApi.test.js +49 -0
- package/dist/test/DefaultApi.test.js.map +1 -0
- package/models/App.ts +1 -1
- package/models/BasicNotification.ts +12 -2
- package/models/BasicNotificationAllOf.ts +12 -2
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/BeginLiveActivityRequest.ts +1 -1
- package/models/Button.ts +1 -1
- package/models/CancelNotificationSuccessResponse.ts +1 -1
- package/models/CreateNotificationSuccessResponse.ts +1 -1
- package/models/CreatePlayerSuccessResponse.ts +1 -1
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateSubscriptionRequestBody.ts +1 -1
- package/models/CreateUserConflictResponse.ts +1 -1
- package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
- package/models/DeletePlayerNotFoundResponse.ts +1 -1
- package/models/DeletePlayerSuccessResponse.ts +1 -1
- package/models/DeleteSegmentNotFoundResponse.ts +1 -1
- package/models/DeleteSegmentSuccessResponse.ts +1 -1
- package/models/DeliveryData.ts +1 -1
- package/models/ExportEventsSuccessResponse.ts +1 -1
- package/models/ExportPlayersRequestBody.ts +1 -1
- package/models/ExportPlayersSuccessResponse.ts +1 -1
- package/models/Filter.ts +1 -1
- package/models/FilterExpressions.ts +1 -1
- package/models/GenericError.ts +1 -1
- package/models/GenericErrorErrorsInner.ts +1 -1
- package/models/GetNotificationRequestBody.ts +1 -1
- package/models/InlineResponse200.ts +1 -1
- package/models/InlineResponse2003.ts +1 -1
- package/models/InlineResponse201.ts +1 -1
- package/models/InlineResponse202.ts +1 -1
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +12 -2
- package/models/Notification200Errors.ts +1 -1
- package/models/NotificationAllOf.ts +1 -1
- package/models/NotificationHistorySuccessResponse.ts +1 -1
- package/models/NotificationSlice.ts +1 -1
- package/models/NotificationTarget.ts +1 -1
- package/models/NotificationWithMeta.ts +12 -2
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +4 -4
- package/models/Operator.ts +1 -1
- package/models/OutcomeData.ts +1 -1
- package/models/OutcomesData.ts +1 -1
- package/models/PlatformDeliveryData.ts +1 -1
- package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
- package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
- package/models/Player.ts +1 -1
- package/models/PlayerNotificationTarget.ts +1 -1
- package/models/PlayerNotificationTargetIncludeAliases.ts +1 -1
- package/models/PlayerSlice.ts +1 -1
- package/models/PropertiesDeltas.ts +1 -1
- package/models/PropertiesObject.ts +1 -1
- package/models/Purchase.ts +1 -1
- package/models/RateLimiterError.ts +1 -1
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/SubscriptionObject.ts +1 -1
- package/models/TransferSubscriptionRequestBody.ts +1 -1
- package/models/UpdateLiveActivityRequest.ts +1 -1
- package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
- package/models/UpdatePlayerSuccessResponse.ts +1 -1
- package/models/UpdatePlayerTagsRequestBody.ts +1 -1
- package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
- package/models/UpdateSubscriptionRequestBody.ts +1 -1
- package/models/UpdateUserRequest.ts +1 -1
- package/models/User.ts +1 -1
- package/models/UserIdentityRequestBody.ts +1 -1
- package/models/UserIdentityResponse.ts +1 -1
- package/models/UserSubscriptionOptions.ts +1 -1
- package/onesignal-node-onesignal-2.2.0-beta1.tgz +0 -0
- package/package.json +2 -2
- package/servers.ts +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentData = void 0;
|
|
4
|
+
var SegmentData = (function () {
|
|
5
|
+
function SegmentData() {
|
|
6
|
+
}
|
|
7
|
+
SegmentData.getAttributeTypeMap = function () {
|
|
8
|
+
return SegmentData.attributeTypeMap;
|
|
9
|
+
};
|
|
10
|
+
SegmentData.discriminator = undefined;
|
|
11
|
+
SegmentData.attributeTypeMap = [
|
|
12
|
+
{
|
|
13
|
+
"name": "id",
|
|
14
|
+
"baseName": "id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": ""
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "name",
|
|
20
|
+
"baseName": "name",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "created_at",
|
|
26
|
+
"baseName": "created_at",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": ""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "updated_at",
|
|
32
|
+
"baseName": "updated_at",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "app_id",
|
|
38
|
+
"baseName": "app_id",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "read_only",
|
|
44
|
+
"baseName": "read_only",
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"format": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "is_active",
|
|
50
|
+
"baseName": "is_active",
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"format": ""
|
|
53
|
+
}
|
|
54
|
+
];
|
|
55
|
+
return SegmentData;
|
|
56
|
+
}());
|
|
57
|
+
exports.SegmentData = SegmentData;
|
|
58
|
+
//# sourceMappingURL=SegmentData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentData.js","sourceRoot":"","sources":["../../models/SegmentData.ts"],"names":[],"mappings":";;;AAUA;IAgFI;IACA,CAAC;IALM,+BAAmB,GAA1B;QACI,OAAO,WAAW,CAAC,gBAAgB,CAAC;IACxC,CAAC;IAhDe,yBAAa,GAAuB,SAAS,CAAC;IAE9C,4BAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,YAAY;YACpB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,YAAY;YACpB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,kBAAC;CAAA,AAlFD,IAkFC;AAlFY,kCAAW"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare class Subscription {
|
|
2
|
+
'id'?: string;
|
|
3
|
+
'type'?: SubscriptionTypeEnum;
|
|
4
|
+
'token'?: string;
|
|
5
|
+
'enabled'?: boolean;
|
|
6
|
+
'notification_types'?: number;
|
|
7
|
+
'session_time'?: number;
|
|
8
|
+
'session_count'?: number;
|
|
9
|
+
'sdk'?: string;
|
|
10
|
+
'device_model'?: string;
|
|
11
|
+
'device_os'?: string;
|
|
12
|
+
'rooted'?: boolean;
|
|
13
|
+
'test_type'?: number;
|
|
14
|
+
'app_version'?: string;
|
|
15
|
+
'net_type'?: number;
|
|
16
|
+
'carrier'?: string;
|
|
17
|
+
'web_auth'?: string;
|
|
18
|
+
'web_p256'?: string;
|
|
19
|
+
static readonly discriminator: string | undefined;
|
|
20
|
+
static readonly attributeTypeMap: Array<{
|
|
21
|
+
name: string;
|
|
22
|
+
baseName: string;
|
|
23
|
+
type: string;
|
|
24
|
+
format: string;
|
|
25
|
+
}>;
|
|
26
|
+
static getAttributeTypeMap(): {
|
|
27
|
+
name: string;
|
|
28
|
+
baseName: string;
|
|
29
|
+
type: string;
|
|
30
|
+
format: string;
|
|
31
|
+
}[];
|
|
32
|
+
constructor();
|
|
33
|
+
}
|
|
34
|
+
export type SubscriptionTypeEnum = "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS";
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Subscription = void 0;
|
|
4
|
+
var Subscription = (function () {
|
|
5
|
+
function Subscription() {
|
|
6
|
+
}
|
|
7
|
+
Subscription.getAttributeTypeMap = function () {
|
|
8
|
+
return Subscription.attributeTypeMap;
|
|
9
|
+
};
|
|
10
|
+
Subscription.discriminator = undefined;
|
|
11
|
+
Subscription.attributeTypeMap = [
|
|
12
|
+
{
|
|
13
|
+
"name": "id",
|
|
14
|
+
"baseName": "id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": ""
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "type",
|
|
20
|
+
"baseName": "type",
|
|
21
|
+
"type": "SubscriptionTypeEnum",
|
|
22
|
+
"format": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "token",
|
|
26
|
+
"baseName": "token",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": ""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "enabled",
|
|
32
|
+
"baseName": "enabled",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "notification_types",
|
|
38
|
+
"baseName": "notification_types",
|
|
39
|
+
"type": "number",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "session_time",
|
|
44
|
+
"baseName": "session_time",
|
|
45
|
+
"type": "number",
|
|
46
|
+
"format": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "session_count",
|
|
50
|
+
"baseName": "session_count",
|
|
51
|
+
"type": "number",
|
|
52
|
+
"format": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "sdk",
|
|
56
|
+
"baseName": "sdk",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "device_model",
|
|
62
|
+
"baseName": "device_model",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"format": ""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "device_os",
|
|
68
|
+
"baseName": "device_os",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"format": ""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "rooted",
|
|
74
|
+
"baseName": "rooted",
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"format": ""
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "test_type",
|
|
80
|
+
"baseName": "test_type",
|
|
81
|
+
"type": "number",
|
|
82
|
+
"format": ""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "app_version",
|
|
86
|
+
"baseName": "app_version",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"format": ""
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "net_type",
|
|
92
|
+
"baseName": "net_type",
|
|
93
|
+
"type": "number",
|
|
94
|
+
"format": ""
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "carrier",
|
|
98
|
+
"baseName": "carrier",
|
|
99
|
+
"type": "string",
|
|
100
|
+
"format": ""
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "web_auth",
|
|
104
|
+
"baseName": "web_auth",
|
|
105
|
+
"type": "string",
|
|
106
|
+
"format": ""
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "web_p256",
|
|
110
|
+
"baseName": "web_p256",
|
|
111
|
+
"type": "string",
|
|
112
|
+
"format": ""
|
|
113
|
+
}
|
|
114
|
+
];
|
|
115
|
+
return Subscription;
|
|
116
|
+
}());
|
|
117
|
+
exports.Subscription = Subscription;
|
|
118
|
+
//# sourceMappingURL=Subscription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../models/Subscription.ts"],"names":[],"mappings":";;;AAUA;IAiII;IACA,CAAC;IALM,gCAAmB,GAA1B;QACI,OAAO,YAAY,CAAC,gBAAgB,CAAC;IACzC,CAAC;IA5Ge,0BAAa,GAAuB,SAAS,CAAC;IAE9C,6BAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,sBAAsB;YAC9B,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,oBAAoB;YAC5B,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,KAAK;YACb,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,WAAW;YACnB,UAAU,EAAE,WAAW;YACvB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,aAAa;YACrB,UAAU,EAAE,aAAa;YACzB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,mBAAC;CAAA,AAnID,IAmIC;AAnIY,oCAAY"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Subscription } from './Subscription';
|
|
2
|
+
export declare class SubscriptionBody {
|
|
3
|
+
'subscription'?: Subscription;
|
|
4
|
+
static readonly discriminator: string | undefined;
|
|
5
|
+
static readonly attributeTypeMap: Array<{
|
|
6
|
+
name: string;
|
|
7
|
+
baseName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
format: string;
|
|
10
|
+
}>;
|
|
11
|
+
static getAttributeTypeMap(): {
|
|
12
|
+
name: string;
|
|
13
|
+
baseName: string;
|
|
14
|
+
type: string;
|
|
15
|
+
format: string;
|
|
16
|
+
}[];
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionBody = void 0;
|
|
4
|
+
var SubscriptionBody = (function () {
|
|
5
|
+
function SubscriptionBody() {
|
|
6
|
+
}
|
|
7
|
+
SubscriptionBody.getAttributeTypeMap = function () {
|
|
8
|
+
return SubscriptionBody.attributeTypeMap;
|
|
9
|
+
};
|
|
10
|
+
SubscriptionBody.discriminator = undefined;
|
|
11
|
+
SubscriptionBody.attributeTypeMap = [
|
|
12
|
+
{
|
|
13
|
+
"name": "subscription",
|
|
14
|
+
"baseName": "subscription",
|
|
15
|
+
"type": "Subscription",
|
|
16
|
+
"format": ""
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
return SubscriptionBody;
|
|
20
|
+
}());
|
|
21
|
+
exports.SubscriptionBody = SubscriptionBody;
|
|
22
|
+
//# sourceMappingURL=SubscriptionBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionBody.js","sourceRoot":"","sources":["../../models/SubscriptionBody.ts"],"names":[],"mappings":";;;AAWA;IAiBI;IACA,CAAC;IALM,oCAAmB,GAA1B;QACI,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC7C,CAAC;IAZe,8BAAa,GAAuB,SAAS,CAAC;IAE9C,iCAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,cAAc;YACtB,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,uBAAC;CAAA,AAnBD,IAmBC;AAnBY,4CAAgB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare class SubscriptionNotificationTarget {
|
|
2
|
+
'include_subscription_ids'?: Array<string>;
|
|
3
|
+
'include_email_tokens'?: Array<string>;
|
|
4
|
+
'include_phone_numbers'?: Array<string>;
|
|
5
|
+
'include_ios_tokens'?: Array<string>;
|
|
6
|
+
'include_wp_wns_uris'?: Array<string>;
|
|
7
|
+
'include_amazon_reg_ids'?: Array<string>;
|
|
8
|
+
'include_chrome_reg_ids'?: Array<string>;
|
|
9
|
+
'include_chrome_web_reg_ids'?: Array<string>;
|
|
10
|
+
'include_android_reg_ids'?: Array<string>;
|
|
11
|
+
'include_aliases'?: {
|
|
12
|
+
[key: string]: Array<string>;
|
|
13
|
+
};
|
|
14
|
+
'target_channel'?: SubscriptionNotificationTargetTargetChannelEnum;
|
|
15
|
+
static readonly discriminator: string | undefined;
|
|
16
|
+
static readonly attributeTypeMap: Array<{
|
|
17
|
+
name: string;
|
|
18
|
+
baseName: string;
|
|
19
|
+
type: string;
|
|
20
|
+
format: string;
|
|
21
|
+
}>;
|
|
22
|
+
static getAttributeTypeMap(): {
|
|
23
|
+
name: string;
|
|
24
|
+
baseName: string;
|
|
25
|
+
type: string;
|
|
26
|
+
format: string;
|
|
27
|
+
}[];
|
|
28
|
+
constructor();
|
|
29
|
+
}
|
|
30
|
+
export type SubscriptionNotificationTargetTargetChannelEnum = "push" | "email" | "sms";
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionNotificationTarget = void 0;
|
|
4
|
+
var SubscriptionNotificationTarget = (function () {
|
|
5
|
+
function SubscriptionNotificationTarget() {
|
|
6
|
+
}
|
|
7
|
+
SubscriptionNotificationTarget.getAttributeTypeMap = function () {
|
|
8
|
+
return SubscriptionNotificationTarget.attributeTypeMap;
|
|
9
|
+
};
|
|
10
|
+
SubscriptionNotificationTarget.discriminator = undefined;
|
|
11
|
+
SubscriptionNotificationTarget.attributeTypeMap = [
|
|
12
|
+
{
|
|
13
|
+
"name": "include_subscription_ids",
|
|
14
|
+
"baseName": "include_subscription_ids",
|
|
15
|
+
"type": "Array<string>",
|
|
16
|
+
"format": ""
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "include_email_tokens",
|
|
20
|
+
"baseName": "include_email_tokens",
|
|
21
|
+
"type": "Array<string>",
|
|
22
|
+
"format": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "include_phone_numbers",
|
|
26
|
+
"baseName": "include_phone_numbers",
|
|
27
|
+
"type": "Array<string>",
|
|
28
|
+
"format": ""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "include_ios_tokens",
|
|
32
|
+
"baseName": "include_ios_tokens",
|
|
33
|
+
"type": "Array<string>",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "include_wp_wns_uris",
|
|
38
|
+
"baseName": "include_wp_wns_uris",
|
|
39
|
+
"type": "Array<string>",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "include_amazon_reg_ids",
|
|
44
|
+
"baseName": "include_amazon_reg_ids",
|
|
45
|
+
"type": "Array<string>",
|
|
46
|
+
"format": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "include_chrome_reg_ids",
|
|
50
|
+
"baseName": "include_chrome_reg_ids",
|
|
51
|
+
"type": "Array<string>",
|
|
52
|
+
"format": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "include_chrome_web_reg_ids",
|
|
56
|
+
"baseName": "include_chrome_web_reg_ids",
|
|
57
|
+
"type": "Array<string>",
|
|
58
|
+
"format": ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "include_android_reg_ids",
|
|
62
|
+
"baseName": "include_android_reg_ids",
|
|
63
|
+
"type": "Array<string>",
|
|
64
|
+
"format": ""
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "include_aliases",
|
|
68
|
+
"baseName": "include_aliases",
|
|
69
|
+
"type": "{ [key: string]: Array<string>; }",
|
|
70
|
+
"format": ""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "target_channel",
|
|
74
|
+
"baseName": "target_channel",
|
|
75
|
+
"type": "SubscriptionNotificationTargetTargetChannelEnum",
|
|
76
|
+
"format": ""
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
return SubscriptionNotificationTarget;
|
|
80
|
+
}());
|
|
81
|
+
exports.SubscriptionNotificationTarget = SubscriptionNotificationTarget;
|
|
82
|
+
//# sourceMappingURL=SubscriptionNotificationTarget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriptionNotificationTarget.js","sourceRoot":"","sources":["../../models/SubscriptionNotificationTarget.ts"],"names":[],"mappings":";;;AAUA;IAqHI;IACA,CAAC;IALM,kDAAmB,GAA1B;QACI,OAAO,8BAA8B,CAAC,gBAAgB,CAAC;IAC3D,CAAC;IAxEe,4CAAa,GAAuB,SAAS,CAAC;IAE9C,+CAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,0BAA0B;YAClC,UAAU,EAAE,0BAA0B;YACtC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,sBAAsB;YAC9B,UAAU,EAAE,sBAAsB;YAClC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,uBAAuB;YAC/B,UAAU,EAAE,uBAAuB;YACnC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,oBAAoB;YAC5B,UAAU,EAAE,oBAAoB;YAChC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE,qBAAqB;YACjC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,wBAAwB;YACpC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,wBAAwB;YAChC,UAAU,EAAE,wBAAwB;YACpC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,4BAA4B;YACpC,UAAU,EAAE,4BAA4B;YACxC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,yBAAyB;YACjC,UAAU,EAAE,yBAAyB;YACrC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,iBAAiB;YACzB,UAAU,EAAE,iBAAiB;YAC7B,MAAM,EAAE,mCAAmC;YAC3C,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,gBAAgB;YACxB,UAAU,EAAE,gBAAgB;YAC5B,MAAM,EAAE,iDAAiD;YACzD,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,qCAAC;CAAA,AAvHD,IAuHC;AAvHY,wEAA8B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class UserIdentityBody {
|
|
2
|
+
'identity'?: {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
static readonly discriminator: string | undefined;
|
|
6
|
+
static readonly attributeTypeMap: Array<{
|
|
7
|
+
name: string;
|
|
8
|
+
baseName: string;
|
|
9
|
+
type: string;
|
|
10
|
+
format: string;
|
|
11
|
+
}>;
|
|
12
|
+
static getAttributeTypeMap(): {
|
|
13
|
+
name: string;
|
|
14
|
+
baseName: string;
|
|
15
|
+
type: string;
|
|
16
|
+
format: string;
|
|
17
|
+
}[];
|
|
18
|
+
constructor();
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserIdentityBody = void 0;
|
|
4
|
+
var UserIdentityBody = (function () {
|
|
5
|
+
function UserIdentityBody() {
|
|
6
|
+
}
|
|
7
|
+
UserIdentityBody.getAttributeTypeMap = function () {
|
|
8
|
+
return UserIdentityBody.attributeTypeMap;
|
|
9
|
+
};
|
|
10
|
+
UserIdentityBody.discriminator = undefined;
|
|
11
|
+
UserIdentityBody.attributeTypeMap = [
|
|
12
|
+
{
|
|
13
|
+
"name": "identity",
|
|
14
|
+
"baseName": "identity",
|
|
15
|
+
"type": "{ [key: string]: string; }",
|
|
16
|
+
"format": ""
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
return UserIdentityBody;
|
|
20
|
+
}());
|
|
21
|
+
exports.UserIdentityBody = UserIdentityBody;
|
|
22
|
+
//# sourceMappingURL=UserIdentityBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserIdentityBody.js","sourceRoot":"","sources":["../../models/UserIdentityBody.ts"],"names":[],"mappings":";;;AAUA;IAiBI;IACA,CAAC;IALM,oCAAmB,GAA1B;QACI,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC7C,CAAC;IAZe,8BAAa,GAAuB,SAAS,CAAC;IAE9C,iCAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,UAAU;YACtB,MAAM,EAAE,4BAA4B;YACpC,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,uBAAC;CAAA,AAnBD,IAmBC;AAnBY,4CAAgB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare class WebButton {
|
|
2
|
+
'id': string;
|
|
3
|
+
'text'?: string;
|
|
4
|
+
'icon'?: string;
|
|
5
|
+
'url'?: string;
|
|
6
|
+
static readonly discriminator: string | undefined;
|
|
7
|
+
static readonly attributeTypeMap: Array<{
|
|
8
|
+
name: string;
|
|
9
|
+
baseName: string;
|
|
10
|
+
type: string;
|
|
11
|
+
format: string;
|
|
12
|
+
}>;
|
|
13
|
+
static getAttributeTypeMap(): {
|
|
14
|
+
name: string;
|
|
15
|
+
baseName: string;
|
|
16
|
+
type: string;
|
|
17
|
+
format: string;
|
|
18
|
+
}[];
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebButton = void 0;
|
|
4
|
+
var WebButton = (function () {
|
|
5
|
+
function WebButton() {
|
|
6
|
+
}
|
|
7
|
+
WebButton.getAttributeTypeMap = function () {
|
|
8
|
+
return WebButton.attributeTypeMap;
|
|
9
|
+
};
|
|
10
|
+
WebButton.discriminator = undefined;
|
|
11
|
+
WebButton.attributeTypeMap = [
|
|
12
|
+
{
|
|
13
|
+
"name": "id",
|
|
14
|
+
"baseName": "id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": ""
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "text",
|
|
20
|
+
"baseName": "text",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "icon",
|
|
26
|
+
"baseName": "icon",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": ""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "url",
|
|
32
|
+
"baseName": "url",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"format": ""
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
return WebButton;
|
|
38
|
+
}());
|
|
39
|
+
exports.WebButton = WebButton;
|
|
40
|
+
//# sourceMappingURL=WebButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebButton.js","sourceRoot":"","sources":["../../models/WebButton.ts"],"names":[],"mappings":";;;AAUA;IAsCI;IACA,CAAC;IALM,6BAAmB,GAA1B;QACI,OAAO,SAAS,CAAC,gBAAgB,CAAC;IACtC,CAAC;IA9Be,uBAAa,GAAuB,SAAS,CAAC;IAE9C,0BAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,KAAK;YACb,UAAU,EAAE,KAAK;YACjB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,gBAAC;CAAA,AAxCD,IAwCC;AAxCY,8BAAS"}
|
package/dist/servers.js
CHANGED
|
@@ -27,6 +27,6 @@ var ServerConfiguration = (function () {
|
|
|
27
27
|
return ServerConfiguration;
|
|
28
28
|
}());
|
|
29
29
|
exports.ServerConfiguration = ServerConfiguration;
|
|
30
|
-
exports.server1 = new ServerConfiguration("https://onesignal.com
|
|
30
|
+
exports.server1 = new ServerConfiguration("https://api.onesignal.com", {});
|
|
31
31
|
exports.servers = [exports.server1];
|
|
32
32
|
//# sourceMappingURL=servers.js.map
|
package/dist/servers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../servers.ts"],"names":[],"mappings":";;;AAAA,oCAAyD;AAYzD;IACI,6BAA2B,GAAW,EAAU,qBAAwB;QAA7C,QAAG,GAAH,GAAG,CAAQ;QAAU,0BAAqB,GAArB,qBAAqB,CAAG;IAAG,CAAC;IAOrE,0CAAY,GAAnB,UAAoB,qBAAiC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAC;IACrE,CAAC;IAEM,8CAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,qBAAqB,CAAA;IACrC,CAAC;IAEO,oCAAM,GAAd;QACI,IAAI,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC;QAC3B,KAAK,IAAM,GAAG,IAAI,IAAI,CAAC,qBAAqB,EAAE;YAC1C,IAAI,EAAE,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,EAAC,GAAG,CAAC,CAAC;YACzC,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;SAC1E;QACD,OAAO,WAAW,CAAA;IACtB,CAAC;IAUM,gDAAkB,GAAzB,UAA0B,QAAgB,EAAE,UAAsB;QAC9D,OAAO,IAAI,qBAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,QAAQ,EAAE,UAAU,CAAC,CAAC;IACpE,CAAC;IACL,0BAAC;AAAD,CAAC,AApCD,IAoCC;AApCY,kDAAmB;AAsCnB,QAAA,OAAO,GAAG,IAAI,mBAAmB,CAAO,
|
|
1
|
+
{"version":3,"file":"servers.js","sourceRoot":"","sources":["../servers.ts"],"names":[],"mappings":";;;AAAA,oCAAyD;AAYzD;IACI,6BAA2B,GAAW,EAAU,qBAAwB;QAA7C,QAAG,GAAH,GAAG,CAAQ;QAAU,0BAAqB,GAArB,qBAAqB,CAAG;IAAG,CAAC;IAOrE,0CAAY,GAAnB,UAAoB,qBAAiC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE,qBAAqB,CAAC,CAAC;IACrE,CAAC;IAEM,8CAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,qBAAqB,CAAA;IACrC,CAAC;IAEO,oCAAM,GAAd;QACI,IAAI,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC;QAC3B,KAAK,IAAM,GAAG,IAAI,IAAI,CAAC,qBAAqB,EAAE;YAC1C,IAAI,EAAE,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,EAAC,GAAG,CAAC,CAAC;YACzC,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;SAC1E;QACD,OAAO,WAAW,CAAA;IACtB,CAAC;IAUM,gDAAkB,GAAzB,UAA0B,QAAgB,EAAE,UAAsB;QAC9D,OAAO,IAAI,qBAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,QAAQ,EAAE,UAAU,CAAC,CAAC;IACpE,CAAC;IACL,0BAAC;AAAD,CAAC,AApCD,IAoCC;AApCY,kDAAmB;AAsCnB,QAAA,OAAO,GAAG,IAAI,mBAAmB,CAAO,2BAA2B,EAAE,EAAI,CAAC,CAAA;AAE1E,QAAA,OAAO,GAAG,CAAC,eAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
describe('DefaultApi', function () {
|
|
40
|
+
describe('cancelNotification', function () {
|
|
41
|
+
it('should cancel a notification successfully', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
42
|
+
return __generator(this, function (_a) {
|
|
43
|
+
expect(true).toBe(true);
|
|
44
|
+
return [2];
|
|
45
|
+
});
|
|
46
|
+
}); });
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=DefaultApi.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultApi.test.js","sourceRoot":"","sources":["../../test/DefaultApi.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,QAAQ,CAAC,YAAY,EAAE;IACnB,QAAQ,CAAC,oBAAoB,EAAE;QAC3B,EAAE,CAAC,2CAA2C,EAAE;;gBAC5C,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;aAC3B,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AAqIP,CAAC,CAAC,CAAC"}
|
package/models/App.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* OneSignal
|
|
3
3
|
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
4
|
*
|
|
5
|
-
* API Version: 1.
|
|
5
|
+
* API Version: 1.4.0
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -122,9 +122,13 @@ export class BasicNotification {
|
|
|
122
122
|
*/
|
|
123
123
|
'app_id': string;
|
|
124
124
|
/**
|
|
125
|
-
* Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
125
|
+
* [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
126
126
|
*/
|
|
127
127
|
'external_id'?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
130
|
+
*/
|
|
131
|
+
'idempotency_key'?: string;
|
|
128
132
|
'contents'?: StringMap;
|
|
129
133
|
'headings'?: StringMap;
|
|
130
134
|
'subtitle'?: StringMap;
|
|
@@ -600,6 +604,12 @@ export class BasicNotification {
|
|
|
600
604
|
"type": "string",
|
|
601
605
|
"format": ""
|
|
602
606
|
},
|
|
607
|
+
{
|
|
608
|
+
"name": "idempotency_key",
|
|
609
|
+
"baseName": "idempotency_key",
|
|
610
|
+
"type": "string",
|
|
611
|
+
"format": ""
|
|
612
|
+
},
|
|
603
613
|
{
|
|
604
614
|
"name": "contents",
|
|
605
615
|
"baseName": "contents",
|