@onesignal/node-onesignal 5.7.0 → 5.8.0
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/dist/apis/DefaultApi.js +2282 -4372
- package/dist/apis/baseapi.js +11 -30
- package/dist/apis/exception.js +9 -26
- package/dist/auth/auth.js +17 -83
- package/dist/configuration.js +9 -9
- package/dist/http/http.js +53 -132
- package/dist/http/isomorphic-fetch.js +15 -18
- package/dist/middleware.js +8 -9
- package/dist/models/ApiKeyToken.js +45 -46
- package/dist/models/ApiKeyTokensListResponse.js +15 -16
- package/dist/models/App.js +213 -214
- package/dist/models/BasicNotification.js +711 -712
- package/dist/models/BasicNotificationAllOf.js +627 -628
- package/dist/models/BasicNotificationAllOfAndroidBackgroundLayout.js +27 -28
- package/dist/models/Button.js +27 -28
- package/dist/models/CopyTemplateRequest.js +15 -16
- package/dist/models/CreateApiKeyRequest.js +27 -28
- package/dist/models/CreateApiKeyResponse.js +21 -22
- package/dist/models/CreateNotificationSuccessResponse.js +27 -28
- package/dist/models/CreateSegmentConflictResponse.js +21 -22
- package/dist/models/CreateSegmentSuccessResponse.js +21 -22
- package/dist/models/CreateTemplateRequest.js +75 -76
- package/dist/models/CreateUserConflictResponse.js +15 -16
- package/dist/models/CreateUserConflictResponseErrorsInner.js +27 -28
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +15 -16
- package/dist/models/CustomEvent.js +39 -40
- package/dist/models/CustomEventsRequest.js +15 -16
- package/dist/models/DeliveryData.js +39 -40
- package/dist/models/ExportEventsSuccessResponse.js +15 -16
- package/dist/models/ExportSubscriptionsRequestBody.js +27 -28
- package/dist/models/ExportSubscriptionsSuccessResponse.js +15 -16
- package/dist/models/Filter.js +57 -58
- package/dist/models/FilterExpression.js +63 -64
- package/dist/models/GenericError.js +27 -28
- package/dist/models/GenericSuccessBoolResponse.js +15 -16
- package/dist/models/GetNotificationHistoryRequestBody.js +27 -28
- package/dist/models/GetSegmentsSuccessResponse.js +33 -34
- package/dist/models/LanguageStringMap.js +267 -268
- package/dist/models/Notification.js +717 -718
- package/dist/models/NotificationAllOf.js +15 -16
- package/dist/models/NotificationHistorySuccessResponse.js +21 -22
- package/dist/models/NotificationSlice.js +33 -34
- package/dist/models/NotificationTarget.js +93 -94
- package/dist/models/NotificationWithMeta.js +789 -790
- package/dist/models/NotificationWithMetaAllOf.js +93 -94
- package/dist/models/ObjectSerializer.js +111 -115
- package/dist/models/Operator.js +15 -16
- package/dist/models/OutcomeData.js +27 -28
- package/dist/models/OutcomesData.js +15 -16
- package/dist/models/PlatformDeliveryData.js +57 -58
- package/dist/models/PlatformDeliveryDataEmailAllOf.js +51 -52
- package/dist/models/PlatformDeliveryDataSmsAllOf.js +27 -28
- package/dist/models/PropertiesBody.js +15 -16
- package/dist/models/PropertiesDeltas.js +27 -28
- package/dist/models/PropertiesObject.js +75 -76
- package/dist/models/Purchase.js +33 -34
- package/dist/models/RateLimitError.js +21 -22
- package/dist/models/Segment.js +27 -28
- package/dist/models/SegmentData.js +51 -52
- package/dist/models/SegmentNotificationTarget.js +21 -22
- package/dist/models/StartLiveActivityRequest.js +105 -106
- package/dist/models/StartLiveActivitySuccessResponse.js +15 -16
- package/dist/models/Subscription.js +111 -112
- package/dist/models/SubscriptionBody.js +15 -16
- package/dist/models/SubscriptionNotificationTarget.js +81 -82
- package/dist/models/TemplateResource.js +45 -46
- package/dist/models/TemplatesListResponse.js +15 -16
- package/dist/models/TransferSubscriptionRequestBody.js +15 -16
- package/dist/models/UpdateApiKeyRequest.js +27 -28
- package/dist/models/UpdateLiveActivityRequest.js +63 -64
- package/dist/models/UpdateLiveActivitySuccessResponse.js +15 -16
- package/dist/models/UpdateTemplateRequest.js +69 -70
- package/dist/models/UpdateUserRequest.js +27 -28
- package/dist/models/User.js +27 -28
- package/dist/models/UserIdentityBody.js +15 -16
- package/dist/models/WebButton.js +33 -34
- package/dist/rxjsStub.js +8 -9
- package/dist/servers.js +14 -15
- package/dist/types/ObjectParamAPI.js +92 -94
- package/dist/types/ObservableAPI.js +534 -931
- package/dist/types/PromiseAPI.js +136 -137
- package/dist/util.js +2 -2
- package/package.json +4 -2
|
@@ -1,70 +1,69 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateLiveActivityRequest = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
UpdateLiveActivityRequest.getAttributeTypeMap = function () {
|
|
4
|
+
class UpdateLiveActivityRequest {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
8
6
|
return UpdateLiveActivityRequest.attributeTypeMap;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"name": "name",
|
|
14
|
-
"baseName": "name",
|
|
15
|
-
"type": "string",
|
|
16
|
-
"format": ""
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "event",
|
|
20
|
-
"baseName": "event",
|
|
21
|
-
"type": "UpdateLiveActivityRequestEventEnum",
|
|
22
|
-
"format": ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "event_updates",
|
|
26
|
-
"baseName": "event_updates",
|
|
27
|
-
"type": "object",
|
|
28
|
-
"format": ""
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "contents",
|
|
32
|
-
"baseName": "contents",
|
|
33
|
-
"type": "LanguageStringMap",
|
|
34
|
-
"format": ""
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "headings",
|
|
38
|
-
"baseName": "headings",
|
|
39
|
-
"type": "LanguageStringMap",
|
|
40
|
-
"format": ""
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "sound",
|
|
44
|
-
"baseName": "sound",
|
|
45
|
-
"type": "string",
|
|
46
|
-
"format": ""
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "stale_date",
|
|
50
|
-
"baseName": "stale_date",
|
|
51
|
-
"type": "number",
|
|
52
|
-
"format": ""
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "dismissal_date",
|
|
56
|
-
"baseName": "dismissal_date",
|
|
57
|
-
"type": "number",
|
|
58
|
-
"format": ""
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "priority",
|
|
62
|
-
"baseName": "priority",
|
|
63
|
-
"type": "number",
|
|
64
|
-
"format": ""
|
|
65
|
-
}
|
|
66
|
-
];
|
|
67
|
-
return UpdateLiveActivityRequest;
|
|
68
|
-
}());
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
69
11
|
exports.UpdateLiveActivityRequest = UpdateLiveActivityRequest;
|
|
12
|
+
UpdateLiveActivityRequest.discriminator = undefined;
|
|
13
|
+
UpdateLiveActivityRequest.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "name",
|
|
16
|
+
"baseName": "name",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "event",
|
|
22
|
+
"baseName": "event",
|
|
23
|
+
"type": "UpdateLiveActivityRequestEventEnum",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "event_updates",
|
|
28
|
+
"baseName": "event_updates",
|
|
29
|
+
"type": "object",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "contents",
|
|
34
|
+
"baseName": "contents",
|
|
35
|
+
"type": "LanguageStringMap",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "headings",
|
|
40
|
+
"baseName": "headings",
|
|
41
|
+
"type": "LanguageStringMap",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "sound",
|
|
46
|
+
"baseName": "sound",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "stale_date",
|
|
52
|
+
"baseName": "stale_date",
|
|
53
|
+
"type": "number",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "dismissal_date",
|
|
58
|
+
"baseName": "dismissal_date",
|
|
59
|
+
"type": "number",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "priority",
|
|
64
|
+
"baseName": "priority",
|
|
65
|
+
"type": "number",
|
|
66
|
+
"format": ""
|
|
67
|
+
}
|
|
68
|
+
];
|
|
70
69
|
//# sourceMappingURL=UpdateLiveActivityRequest.js.map
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateLiveActivitySuccessResponse = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
UpdateLiveActivitySuccessResponse.getAttributeTypeMap = function () {
|
|
4
|
+
class UpdateLiveActivitySuccessResponse {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
8
6
|
return UpdateLiveActivitySuccessResponse.attributeTypeMap;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"name": "id",
|
|
14
|
-
"baseName": "id",
|
|
15
|
-
"type": "string",
|
|
16
|
-
"format": ""
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
return UpdateLiveActivitySuccessResponse;
|
|
20
|
-
}());
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
21
11
|
exports.UpdateLiveActivitySuccessResponse = UpdateLiveActivitySuccessResponse;
|
|
12
|
+
UpdateLiveActivitySuccessResponse.discriminator = undefined;
|
|
13
|
+
UpdateLiveActivitySuccessResponse.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "id",
|
|
16
|
+
"baseName": "id",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
}
|
|
20
|
+
];
|
|
22
21
|
//# sourceMappingURL=UpdateLiveActivitySuccessResponse.js.map
|
|
@@ -1,76 +1,75 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateTemplateRequest = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
UpdateTemplateRequest.getAttributeTypeMap = function () {
|
|
4
|
+
class UpdateTemplateRequest {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
8
6
|
return UpdateTemplateRequest.attributeTypeMap;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"name": "name",
|
|
14
|
-
"baseName": "name",
|
|
15
|
-
"type": "string",
|
|
16
|
-
"format": ""
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "contents",
|
|
20
|
-
"baseName": "contents",
|
|
21
|
-
"type": "LanguageStringMap",
|
|
22
|
-
"format": ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "headings",
|
|
26
|
-
"baseName": "headings",
|
|
27
|
-
"type": "LanguageStringMap",
|
|
28
|
-
"format": ""
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "subtitle",
|
|
32
|
-
"baseName": "subtitle",
|
|
33
|
-
"type": "LanguageStringMap",
|
|
34
|
-
"format": ""
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "is_email",
|
|
38
|
-
"baseName": "isEmail",
|
|
39
|
-
"type": "boolean",
|
|
40
|
-
"format": ""
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "email_subject",
|
|
44
|
-
"baseName": "email_subject",
|
|
45
|
-
"type": "string",
|
|
46
|
-
"format": ""
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "email_body",
|
|
50
|
-
"baseName": "email_body",
|
|
51
|
-
"type": "string",
|
|
52
|
-
"format": ""
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "email_bcc",
|
|
56
|
-
"baseName": "email_bcc",
|
|
57
|
-
"type": "Array<string>",
|
|
58
|
-
"format": ""
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "is_sms",
|
|
62
|
-
"baseName": "isSMS",
|
|
63
|
-
"type": "boolean",
|
|
64
|
-
"format": ""
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "dynamic_content",
|
|
68
|
-
"baseName": "dynamic_content",
|
|
69
|
-
"type": "string",
|
|
70
|
-
"format": ""
|
|
71
|
-
}
|
|
72
|
-
];
|
|
73
|
-
return UpdateTemplateRequest;
|
|
74
|
-
}());
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
75
11
|
exports.UpdateTemplateRequest = UpdateTemplateRequest;
|
|
12
|
+
UpdateTemplateRequest.discriminator = undefined;
|
|
13
|
+
UpdateTemplateRequest.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "name",
|
|
16
|
+
"baseName": "name",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "contents",
|
|
22
|
+
"baseName": "contents",
|
|
23
|
+
"type": "LanguageStringMap",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "headings",
|
|
28
|
+
"baseName": "headings",
|
|
29
|
+
"type": "LanguageStringMap",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "subtitle",
|
|
34
|
+
"baseName": "subtitle",
|
|
35
|
+
"type": "LanguageStringMap",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "is_email",
|
|
40
|
+
"baseName": "isEmail",
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "email_subject",
|
|
46
|
+
"baseName": "email_subject",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "email_body",
|
|
52
|
+
"baseName": "email_body",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "email_bcc",
|
|
58
|
+
"baseName": "email_bcc",
|
|
59
|
+
"type": "Array<string>",
|
|
60
|
+
"format": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "is_sms",
|
|
64
|
+
"baseName": "isSMS",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"format": ""
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "dynamic_content",
|
|
70
|
+
"baseName": "dynamic_content",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"format": ""
|
|
73
|
+
}
|
|
74
|
+
];
|
|
76
75
|
//# sourceMappingURL=UpdateTemplateRequest.js.map
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateUserRequest = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
UpdateUserRequest.getAttributeTypeMap = function () {
|
|
4
|
+
class UpdateUserRequest {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
8
6
|
return UpdateUserRequest.attributeTypeMap;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"name": "properties",
|
|
14
|
-
"baseName": "properties",
|
|
15
|
-
"type": "PropertiesObject",
|
|
16
|
-
"format": ""
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "refresh_device_metadata",
|
|
20
|
-
"baseName": "refresh_device_metadata",
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"format": ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "deltas",
|
|
26
|
-
"baseName": "deltas",
|
|
27
|
-
"type": "PropertiesDeltas",
|
|
28
|
-
"format": ""
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
return UpdateUserRequest;
|
|
32
|
-
}());
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
33
11
|
exports.UpdateUserRequest = UpdateUserRequest;
|
|
12
|
+
UpdateUserRequest.discriminator = undefined;
|
|
13
|
+
UpdateUserRequest.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "properties",
|
|
16
|
+
"baseName": "properties",
|
|
17
|
+
"type": "PropertiesObject",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "refresh_device_metadata",
|
|
22
|
+
"baseName": "refresh_device_metadata",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "deltas",
|
|
28
|
+
"baseName": "deltas",
|
|
29
|
+
"type": "PropertiesDeltas",
|
|
30
|
+
"format": ""
|
|
31
|
+
}
|
|
32
|
+
];
|
|
34
33
|
//# sourceMappingURL=UpdateUserRequest.js.map
|
package/dist/models/User.js
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.User = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
User.getAttributeTypeMap = function () {
|
|
4
|
+
class User {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
8
6
|
return User.attributeTypeMap;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"name": "properties",
|
|
14
|
-
"baseName": "properties",
|
|
15
|
-
"type": "PropertiesObject",
|
|
16
|
-
"format": ""
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "identity",
|
|
20
|
-
"baseName": "identity",
|
|
21
|
-
"type": "{ [key: string]: string; }",
|
|
22
|
-
"format": ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "subscriptions",
|
|
26
|
-
"baseName": "subscriptions",
|
|
27
|
-
"type": "Array<Subscription>",
|
|
28
|
-
"format": ""
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
return User;
|
|
32
|
-
}());
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
33
11
|
exports.User = User;
|
|
12
|
+
User.discriminator = undefined;
|
|
13
|
+
User.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "properties",
|
|
16
|
+
"baseName": "properties",
|
|
17
|
+
"type": "PropertiesObject",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "identity",
|
|
22
|
+
"baseName": "identity",
|
|
23
|
+
"type": "{ [key: string]: string; }",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "subscriptions",
|
|
28
|
+
"baseName": "subscriptions",
|
|
29
|
+
"type": "Array<Subscription>",
|
|
30
|
+
"format": ""
|
|
31
|
+
}
|
|
32
|
+
];
|
|
34
33
|
//# sourceMappingURL=User.js.map
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserIdentityBody = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
UserIdentityBody.getAttributeTypeMap = function () {
|
|
4
|
+
class UserIdentityBody {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
8
6
|
return UserIdentityBody.attributeTypeMap;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"name": "identity",
|
|
14
|
-
"baseName": "identity",
|
|
15
|
-
"type": "{ [key: string]: string; }",
|
|
16
|
-
"format": ""
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
return UserIdentityBody;
|
|
20
|
-
}());
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
21
11
|
exports.UserIdentityBody = UserIdentityBody;
|
|
12
|
+
UserIdentityBody.discriminator = undefined;
|
|
13
|
+
UserIdentityBody.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "identity",
|
|
16
|
+
"baseName": "identity",
|
|
17
|
+
"type": "{ [key: string]: string; }",
|
|
18
|
+
"format": ""
|
|
19
|
+
}
|
|
20
|
+
];
|
|
22
21
|
//# sourceMappingURL=UserIdentityBody.js.map
|
package/dist/models/WebButton.js
CHANGED
|
@@ -1,40 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WebButton = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
WebButton.getAttributeTypeMap = function () {
|
|
4
|
+
class WebButton {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
8
6
|
return WebButton.attributeTypeMap;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
}());
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
39
11
|
exports.WebButton = WebButton;
|
|
12
|
+
WebButton.discriminator = undefined;
|
|
13
|
+
WebButton.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "id",
|
|
16
|
+
"baseName": "id",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "text",
|
|
22
|
+
"baseName": "text",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "icon",
|
|
28
|
+
"baseName": "icon",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "url",
|
|
34
|
+
"baseName": "url",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
}
|
|
38
|
+
];
|
|
40
39
|
//# sourceMappingURL=WebButton.js.map
|
package/dist/rxjsStub.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.map = exports.mergeMap = exports.of = exports.from = exports.Observable = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
class Observable {
|
|
5
|
+
constructor(promise) {
|
|
6
6
|
this.promise = promise;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
toPromise() {
|
|
9
9
|
return this.promise;
|
|
10
|
-
}
|
|
11
|
-
|
|
10
|
+
}
|
|
11
|
+
pipe(callback) {
|
|
12
12
|
return new Observable(this.promise.then(callback));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
}());
|
|
13
|
+
}
|
|
14
|
+
}
|
|
16
15
|
exports.Observable = Observable;
|
|
17
16
|
function from(promise) {
|
|
18
17
|
return new Observable(promise);
|
|
@@ -23,7 +22,7 @@ function of(value) {
|
|
|
23
22
|
}
|
|
24
23
|
exports.of = of;
|
|
25
24
|
function mergeMap(callback) {
|
|
26
|
-
return
|
|
25
|
+
return (value) => callback(value).toPromise();
|
|
27
26
|
}
|
|
28
27
|
exports.mergeMap = mergeMap;
|
|
29
28
|
function map(callback) {
|
package/dist/servers.js
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.servers = exports.server1 = exports.ServerConfiguration = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const http_1 = require("./http/http");
|
|
5
|
+
class ServerConfiguration {
|
|
6
|
+
constructor(url, variableConfiguration) {
|
|
7
7
|
this.url = url;
|
|
8
8
|
this.variableConfiguration = variableConfiguration;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
setVariables(variableConfiguration) {
|
|
11
11
|
Object.assign(this.variableConfiguration, variableConfiguration);
|
|
12
|
-
}
|
|
13
|
-
|
|
12
|
+
}
|
|
13
|
+
getConfiguration() {
|
|
14
14
|
return this.variableConfiguration;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
for (
|
|
15
|
+
}
|
|
16
|
+
getUrl() {
|
|
17
|
+
let replacedUrl = this.url;
|
|
18
|
+
for (const key in this.variableConfiguration) {
|
|
19
19
|
var re = new RegExp("{" + key + "}", "g");
|
|
20
20
|
replacedUrl = replacedUrl.replace(re, this.variableConfiguration[key]);
|
|
21
21
|
}
|
|
22
22
|
return replacedUrl;
|
|
23
|
-
}
|
|
24
|
-
|
|
23
|
+
}
|
|
24
|
+
makeRequestContext(endpoint, httpMethod) {
|
|
25
25
|
return new http_1.RequestContext(this.getUrl() + endpoint, httpMethod);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}());
|
|
26
|
+
}
|
|
27
|
+
}
|
|
29
28
|
exports.ServerConfiguration = ServerConfiguration;
|
|
30
29
|
exports.server1 = new ServerConfiguration("https://api.onesignal.com", {});
|
|
31
30
|
exports.servers = [exports.server1];
|