@onesignal/node-onesignal 5.3.0-beta1 → 5.4.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.
Files changed (194) hide show
  1. package/dist/apis/DefaultApi.js +44 -44
  2. package/dist/index.d.ts +1 -1
  3. package/dist/models/BasicNotification.d.ts +7 -0
  4. package/dist/models/BasicNotification.js +36 -0
  5. package/dist/models/BasicNotificationAllOf.d.ts +7 -0
  6. package/dist/models/BasicNotificationAllOf.js +36 -0
  7. package/dist/models/Notification.d.ts +7 -0
  8. package/dist/models/Notification.js +36 -0
  9. package/dist/models/NotificationWithMeta.d.ts +7 -0
  10. package/dist/models/NotificationWithMeta.js +36 -0
  11. package/dist/models/ObjectSerializer.js +4 -0
  12. package/package.json +9 -3
  13. package/.github/ISSUE_TEMPLATE/ask-question.yml +0 -25
  14. package/.github/ISSUE_TEMPLATE/bug-report.yml +0 -51
  15. package/.github/ISSUE_TEMPLATE/general-feedback.yml +0 -25
  16. package/.github/pull_request_template.md +0 -44
  17. package/.github/workflows/asana-add-comment.yml +0 -47
  18. package/.github/workflows/asana-create-task.yml +0 -119
  19. package/.github/workflows/asana-update-issue.yml +0 -172
  20. package/.github/workflows/npm_deploy.yml +0 -22
  21. package/.github/workflows/project.yml +0 -17
  22. package/CHANGELOG.md +0 -48
  23. package/DefaultApi.md +0 -3293
  24. package/RELEASE_INSTRUCTIONS.md +0 -2
  25. package/apis/DefaultApi.ts +0 -4673
  26. package/apis/baseapi.ts +0 -37
  27. package/apis/exception.ts +0 -15
  28. package/auth/auth.ts +0 -110
  29. package/configuration.ts +0 -85
  30. package/dist/apis/DefaultApi.js.map +0 -1
  31. package/dist/apis/baseapi.js.map +0 -1
  32. package/dist/apis/exception.js.map +0 -1
  33. package/dist/auth/auth.js.map +0 -1
  34. package/dist/configuration.js.map +0 -1
  35. package/dist/http/http.js.map +0 -1
  36. package/dist/http/isomorphic-fetch.js.map +0 -1
  37. package/dist/index.js.map +0 -1
  38. package/dist/middleware.js.map +0 -1
  39. package/dist/models/ApiKeyToken.js.map +0 -1
  40. package/dist/models/ApiKeyTokensListResponse.js.map +0 -1
  41. package/dist/models/App.js.map +0 -1
  42. package/dist/models/BasicNotification.js.map +0 -1
  43. package/dist/models/BasicNotificationAllOf.js.map +0 -1
  44. package/dist/models/BasicNotificationAllOfAndroidBackgroundLayout.js.map +0 -1
  45. package/dist/models/Button.js.map +0 -1
  46. package/dist/models/CopyTemplateRequest.js.map +0 -1
  47. package/dist/models/CreateApiKeyRequest.js.map +0 -1
  48. package/dist/models/CreateApiKeyResponse.js.map +0 -1
  49. package/dist/models/CreateNotificationSuccessResponse.js.map +0 -1
  50. package/dist/models/CreateSegmentConflictResponse.js.map +0 -1
  51. package/dist/models/CreateSegmentSuccessResponse.js.map +0 -1
  52. package/dist/models/CreateTemplateRequest.js.map +0 -1
  53. package/dist/models/CreateUserConflictResponse.js.map +0 -1
  54. package/dist/models/CreateUserConflictResponseErrorsInner.js.map +0 -1
  55. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +0 -1
  56. package/dist/models/CustomEvent.js.map +0 -1
  57. package/dist/models/CustomEventsRequest.js.map +0 -1
  58. package/dist/models/DeliveryData.js.map +0 -1
  59. package/dist/models/ExportEventsSuccessResponse.js.map +0 -1
  60. package/dist/models/ExportSubscriptionsRequestBody.js.map +0 -1
  61. package/dist/models/ExportSubscriptionsSuccessResponse.js.map +0 -1
  62. package/dist/models/Filter.js.map +0 -1
  63. package/dist/models/FilterExpression.js.map +0 -1
  64. package/dist/models/GenericError.js.map +0 -1
  65. package/dist/models/GenericSuccessBoolResponse.js.map +0 -1
  66. package/dist/models/GetNotificationHistoryRequestBody.js.map +0 -1
  67. package/dist/models/GetSegmentsSuccessResponse.js.map +0 -1
  68. package/dist/models/LanguageStringMap.js.map +0 -1
  69. package/dist/models/Notification.js.map +0 -1
  70. package/dist/models/NotificationAllOf.js.map +0 -1
  71. package/dist/models/NotificationHistorySuccessResponse.js.map +0 -1
  72. package/dist/models/NotificationSlice.js.map +0 -1
  73. package/dist/models/NotificationTarget.js.map +0 -1
  74. package/dist/models/NotificationWithMeta.js.map +0 -1
  75. package/dist/models/NotificationWithMetaAllOf.js.map +0 -1
  76. package/dist/models/ObjectSerializer.js.map +0 -1
  77. package/dist/models/Operator.js.map +0 -1
  78. package/dist/models/OutcomeData.js.map +0 -1
  79. package/dist/models/OutcomesData.js.map +0 -1
  80. package/dist/models/PlatformDeliveryData.js.map +0 -1
  81. package/dist/models/PlatformDeliveryDataEmailAllOf.js.map +0 -1
  82. package/dist/models/PlatformDeliveryDataSmsAllOf.js.map +0 -1
  83. package/dist/models/PropertiesBody.js.map +0 -1
  84. package/dist/models/PropertiesDeltas.js.map +0 -1
  85. package/dist/models/PropertiesObject.js.map +0 -1
  86. package/dist/models/Purchase.js.map +0 -1
  87. package/dist/models/RateLimitError.js.map +0 -1
  88. package/dist/models/Segment.js.map +0 -1
  89. package/dist/models/SegmentData.js.map +0 -1
  90. package/dist/models/SegmentNotificationTarget.js.map +0 -1
  91. package/dist/models/StartLiveActivityRequest.js.map +0 -1
  92. package/dist/models/StartLiveActivitySuccessResponse.js.map +0 -1
  93. package/dist/models/Subscription.js.map +0 -1
  94. package/dist/models/SubscriptionBody.js.map +0 -1
  95. package/dist/models/SubscriptionNotificationTarget.js.map +0 -1
  96. package/dist/models/TemplateResource.js.map +0 -1
  97. package/dist/models/TemplatesListResponse.js.map +0 -1
  98. package/dist/models/TransferSubscriptionRequestBody.js.map +0 -1
  99. package/dist/models/UpdateApiKeyRequest.js.map +0 -1
  100. package/dist/models/UpdateLiveActivityRequest.js.map +0 -1
  101. package/dist/models/UpdateLiveActivitySuccessResponse.js.map +0 -1
  102. package/dist/models/UpdateTemplateRequest.js.map +0 -1
  103. package/dist/models/UpdateUserRequest.js.map +0 -1
  104. package/dist/models/User.js.map +0 -1
  105. package/dist/models/UserIdentityBody.js.map +0 -1
  106. package/dist/models/WebButton.js.map +0 -1
  107. package/dist/models/all.js.map +0 -1
  108. package/dist/rxjsStub.js.map +0 -1
  109. package/dist/servers.js.map +0 -1
  110. package/dist/types/ObjectParamAPI.js.map +0 -1
  111. package/dist/types/ObservableAPI.js.map +0 -1
  112. package/dist/types/PromiseAPI.js.map +0 -1
  113. package/dist/util.js.map +0 -1
  114. package/http/http.ts +0 -205
  115. package/http/isomorphic-fetch.ts +0 -30
  116. package/index.ts +0 -12
  117. package/middleware.ts +0 -66
  118. package/models/ApiKeyToken.ts +0 -69
  119. package/models/ApiKeyTokensListResponse.ts +0 -32
  120. package/models/App.ts +0 -328
  121. package/models/BasicNotification.ts +0 -1088
  122. package/models/BasicNotificationAllOf.ts +0 -958
  123. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +0 -57
  124. package/models/Button.ts +0 -45
  125. package/models/CopyTemplateRequest.ts +0 -34
  126. package/models/CreateApiKeyRequest.ts +0 -48
  127. package/models/CreateApiKeyResponse.ts +0 -38
  128. package/models/CreateNotificationSuccessResponse.ts +0 -48
  129. package/models/CreateSegmentConflictResponse.ts +0 -38
  130. package/models/CreateSegmentSuccessResponse.ts +0 -41
  131. package/models/CreateTemplateRequest.ts +0 -102
  132. package/models/CreateUserConflictResponse.ts +0 -32
  133. package/models/CreateUserConflictResponseErrorsInner.ts +0 -46
  134. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +0 -31
  135. package/models/CustomEvent.ts +0 -74
  136. package/models/CustomEventsRequest.ts +0 -32
  137. package/models/DeliveryData.ts +0 -74
  138. package/models/ExportEventsSuccessResponse.ts +0 -31
  139. package/models/ExportSubscriptionsRequestBody.ts +0 -54
  140. package/models/ExportSubscriptionsSuccessResponse.ts +0 -31
  141. package/models/Filter.ts +0 -107
  142. package/models/FilterExpression.ts +0 -120
  143. package/models/GenericError.ts +0 -45
  144. package/models/GenericSuccessBoolResponse.ts +0 -31
  145. package/models/GetNotificationHistoryRequestBody.ts +0 -54
  146. package/models/GetSegmentsSuccessResponse.ts +0 -65
  147. package/models/LanguageStringMap.ts +0 -454
  148. package/models/Notification.ts +0 -1098
  149. package/models/NotificationAllOf.ts +0 -34
  150. package/models/NotificationHistorySuccessResponse.ts +0 -38
  151. package/models/NotificationSlice.ts +0 -53
  152. package/models/NotificationTarget.ts +0 -156
  153. package/models/NotificationWithMeta.ts +0 -1206
  154. package/models/NotificationWithMetaAllOf.ts +0 -142
  155. package/models/ObjectSerializer.ts +0 -442
  156. package/models/Operator.ts +0 -37
  157. package/models/OutcomeData.ts +0 -48
  158. package/models/OutcomesData.ts +0 -32
  159. package/models/PlatformDeliveryData.ts +0 -86
  160. package/models/PlatformDeliveryDataEmailAllOf.ts +0 -94
  161. package/models/PlatformDeliveryDataSmsAllOf.ts +0 -54
  162. package/models/PropertiesBody.ts +0 -32
  163. package/models/PropertiesDeltas.ts +0 -46
  164. package/models/PropertiesObject.ts +0 -102
  165. package/models/Purchase.ts +0 -61
  166. package/models/RateLimitError.ts +0 -38
  167. package/models/Segment.ts +0 -55
  168. package/models/SegmentData.ts +0 -94
  169. package/models/SegmentNotificationTarget.ts +0 -44
  170. package/models/StartLiveActivityRequest.ts +0 -177
  171. package/models/StartLiveActivitySuccessResponse.ts +0 -31
  172. package/models/Subscription.ts +0 -146
  173. package/models/SubscriptionBody.ts +0 -32
  174. package/models/SubscriptionNotificationTarget.ts +0 -134
  175. package/models/TemplateResource.ts +0 -72
  176. package/models/TemplatesListResponse.ts +0 -32
  177. package/models/TransferSubscriptionRequestBody.ts +0 -31
  178. package/models/UpdateApiKeyRequest.ts +0 -48
  179. package/models/UpdateLiveActivityRequest.ts +0 -109
  180. package/models/UpdateLiveActivitySuccessResponse.ts +0 -31
  181. package/models/UpdateTemplateRequest.ts +0 -92
  182. package/models/UpdateUserRequest.ts +0 -47
  183. package/models/User.ts +0 -47
  184. package/models/UserIdentityBody.ts +0 -31
  185. package/models/WebButton.ts +0 -52
  186. package/models/all.ts +0 -67
  187. package/onesignal-node-onesignal-5.3.0-beta1.tgz +0 -0
  188. package/rxjsStub.ts +0 -27
  189. package/servers.ts +0 -53
  190. package/tsconfig.json +0 -28
  191. package/types/ObjectParamAPI.ts +0 -1270
  192. package/types/ObservableAPI.ts +0 -1201
  193. package/types/PromiseAPI.ts +0 -585
  194. package/util.ts +0 -37
@@ -1,72 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { HttpFile } from '../http/http';
10
-
11
- export class TemplateResource {
12
- 'id'?: string;
13
- 'name'?: string;
14
- 'created_at'?: string;
15
- 'updated_at'?: string;
16
- 'channel'?: TemplateResourceChannelEnum;
17
- /**
18
- * Rendered content and channel/platform flags for the template.
19
- */
20
- 'content'?: { [key: string]: any; };
21
-
22
- static readonly discriminator: string | undefined = undefined;
23
-
24
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
25
- {
26
- "name": "id",
27
- "baseName": "id",
28
- "type": "string",
29
- "format": ""
30
- },
31
- {
32
- "name": "name",
33
- "baseName": "name",
34
- "type": "string",
35
- "format": ""
36
- },
37
- {
38
- "name": "created_at",
39
- "baseName": "created_at",
40
- "type": "string",
41
- "format": "date-time"
42
- },
43
- {
44
- "name": "updated_at",
45
- "baseName": "updated_at",
46
- "type": "string",
47
- "format": "date-time"
48
- },
49
- {
50
- "name": "channel",
51
- "baseName": "channel",
52
- "type": "TemplateResourceChannelEnum",
53
- "format": ""
54
- },
55
- {
56
- "name": "content",
57
- "baseName": "content",
58
- "type": "{ [key: string]: any; }",
59
- "format": ""
60
- } ];
61
-
62
- static getAttributeTypeMap() {
63
- return TemplateResource.attributeTypeMap;
64
- }
65
-
66
- public constructor() {
67
- }
68
- }
69
-
70
-
71
- export type TemplateResourceChannelEnum = "push" | "email" | "sms" ;
72
-
@@ -1,32 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { TemplateResource } from './TemplateResource';
10
- import { HttpFile } from '../http/http';
11
-
12
- export class TemplatesListResponse {
13
- 'templates'?: Array<TemplateResource>;
14
-
15
- static readonly discriminator: string | undefined = undefined;
16
-
17
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
18
- {
19
- "name": "templates",
20
- "baseName": "templates",
21
- "type": "Array<TemplateResource>",
22
- "format": ""
23
- } ];
24
-
25
- static getAttributeTypeMap() {
26
- return TemplatesListResponse.attributeTypeMap;
27
- }
28
-
29
- public constructor() {
30
- }
31
- }
32
-
@@ -1,31 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { HttpFile } from '../http/http';
10
-
11
- export class TransferSubscriptionRequestBody {
12
- 'identity'?: { [key: string]: string; };
13
-
14
- static readonly discriminator: string | undefined = undefined;
15
-
16
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
17
- {
18
- "name": "identity",
19
- "baseName": "identity",
20
- "type": "{ [key: string]: string; }",
21
- "format": ""
22
- } ];
23
-
24
- static getAttributeTypeMap() {
25
- return TransferSubscriptionRequestBody.attributeTypeMap;
26
- }
27
-
28
- public constructor() {
29
- }
30
- }
31
-
@@ -1,48 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { HttpFile } from '../http/http';
10
-
11
- export class UpdateApiKeyRequest {
12
- 'name'?: string;
13
- 'ip_allowlist_mode'?: UpdateApiKeyRequestIpAllowlistModeEnum;
14
- 'ip_allowlist'?: Array<string>;
15
-
16
- static readonly discriminator: string | undefined = undefined;
17
-
18
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
19
- {
20
- "name": "name",
21
- "baseName": "name",
22
- "type": "string",
23
- "format": ""
24
- },
25
- {
26
- "name": "ip_allowlist_mode",
27
- "baseName": "ip_allowlist_mode",
28
- "type": "UpdateApiKeyRequestIpAllowlistModeEnum",
29
- "format": ""
30
- },
31
- {
32
- "name": "ip_allowlist",
33
- "baseName": "ip_allowlist",
34
- "type": "Array<string>",
35
- "format": ""
36
- } ];
37
-
38
- static getAttributeTypeMap() {
39
- return UpdateApiKeyRequest.attributeTypeMap;
40
- }
41
-
42
- public constructor() {
43
- }
44
- }
45
-
46
-
47
- export type UpdateApiKeyRequestIpAllowlistModeEnum = "disabled" | "explicit" ;
48
-
@@ -1,109 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { LanguageStringMap } from './LanguageStringMap';
10
- import { HttpFile } from '../http/http';
11
-
12
- export class UpdateLiveActivityRequest {
13
- /**
14
- * An internal name to assist with your campaign organization. This does not get displayed in the message itself.
15
- */
16
- 'name': string;
17
- 'event': UpdateLiveActivityRequestEventEnum;
18
- /**
19
- * This must match the ContentState interface you have defined within your Live Activity in your app.
20
- */
21
- 'event_updates': object;
22
- 'contents'?: LanguageStringMap;
23
- 'headings'?: LanguageStringMap;
24
- /**
25
- * Sound file that is included in your app to play instead of the default device notification sound. Omit to disable vibration and sound for the notification.
26
- */
27
- 'sound'?: string;
28
- /**
29
- * Accepts Unix timestamp in seconds. When time reaches the configured stale date, the system considers the Live Activity out of date, and the ActivityState of the Live Activity changes to ActivityState.stale.
30
- */
31
- 'stale_date'?: number;
32
- /**
33
- * Accepts Unix timestamp in seconds; only allowed if event is \"end\"
34
- */
35
- 'dismissal_date'?: number;
36
- /**
37
- * Delivery priority through the the push provider (APNs). Pass 10 for higher priority notifications, or 5 for lower priority notifications. Lower priority notifications are sent based on the power considerations of the end user\'s device. If not set, defaults to 10. Some providers (APNs) allow for a limited budget of high priority notifications per hour, and if that budget is exceeded, the provider may throttle notification delivery.
38
- */
39
- 'priority'?: number;
40
-
41
- static readonly discriminator: string | undefined = undefined;
42
-
43
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
44
- {
45
- "name": "name",
46
- "baseName": "name",
47
- "type": "string",
48
- "format": ""
49
- },
50
- {
51
- "name": "event",
52
- "baseName": "event",
53
- "type": "UpdateLiveActivityRequestEventEnum",
54
- "format": ""
55
- },
56
- {
57
- "name": "event_updates",
58
- "baseName": "event_updates",
59
- "type": "object",
60
- "format": ""
61
- },
62
- {
63
- "name": "contents",
64
- "baseName": "contents",
65
- "type": "LanguageStringMap",
66
- "format": ""
67
- },
68
- {
69
- "name": "headings",
70
- "baseName": "headings",
71
- "type": "LanguageStringMap",
72
- "format": ""
73
- },
74
- {
75
- "name": "sound",
76
- "baseName": "sound",
77
- "type": "string",
78
- "format": ""
79
- },
80
- {
81
- "name": "stale_date",
82
- "baseName": "stale_date",
83
- "type": "number",
84
- "format": ""
85
- },
86
- {
87
- "name": "dismissal_date",
88
- "baseName": "dismissal_date",
89
- "type": "number",
90
- "format": ""
91
- },
92
- {
93
- "name": "priority",
94
- "baseName": "priority",
95
- "type": "number",
96
- "format": ""
97
- } ];
98
-
99
- static getAttributeTypeMap() {
100
- return UpdateLiveActivityRequest.attributeTypeMap;
101
- }
102
-
103
- public constructor() {
104
- }
105
- }
106
-
107
-
108
- export type UpdateLiveActivityRequestEventEnum = "update" | "end" ;
109
-
@@ -1,31 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { HttpFile } from '../http/http';
10
-
11
- export class UpdateLiveActivitySuccessResponse {
12
- 'id'?: string;
13
-
14
- static readonly discriminator: string | undefined = undefined;
15
-
16
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
17
- {
18
- "name": "id",
19
- "baseName": "id",
20
- "type": "string",
21
- "format": ""
22
- } ];
23
-
24
- static getAttributeTypeMap() {
25
- return UpdateLiveActivitySuccessResponse.attributeTypeMap;
26
- }
27
-
28
- public constructor() {
29
- }
30
- }
31
-
@@ -1,92 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { LanguageStringMap } from './LanguageStringMap';
10
- import { HttpFile } from '../http/http';
11
-
12
- export class UpdateTemplateRequest {
13
- /**
14
- * Updated name of the template.
15
- */
16
- 'name'?: string;
17
- 'contents'?: LanguageStringMap;
18
- /**
19
- * Set true for an Email template.
20
- */
21
- 'is_email'?: boolean;
22
- /**
23
- * Subject of the email.
24
- */
25
- 'email_subject'?: string;
26
- /**
27
- * Body of the email (HTML supported).
28
- */
29
- 'email_body'?: string;
30
- /**
31
- * Set true for an SMS template.
32
- */
33
- 'is_sms'?: boolean;
34
- /**
35
- * JSON string for dynamic content personalization.
36
- */
37
- 'dynamic_content'?: string;
38
-
39
- static readonly discriminator: string | undefined = undefined;
40
-
41
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
42
- {
43
- "name": "name",
44
- "baseName": "name",
45
- "type": "string",
46
- "format": ""
47
- },
48
- {
49
- "name": "contents",
50
- "baseName": "contents",
51
- "type": "LanguageStringMap",
52
- "format": ""
53
- },
54
- {
55
- "name": "is_email",
56
- "baseName": "isEmail",
57
- "type": "boolean",
58
- "format": ""
59
- },
60
- {
61
- "name": "email_subject",
62
- "baseName": "email_subject",
63
- "type": "string",
64
- "format": ""
65
- },
66
- {
67
- "name": "email_body",
68
- "baseName": "email_body",
69
- "type": "string",
70
- "format": ""
71
- },
72
- {
73
- "name": "is_sms",
74
- "baseName": "isSMS",
75
- "type": "boolean",
76
- "format": ""
77
- },
78
- {
79
- "name": "dynamic_content",
80
- "baseName": "dynamic_content",
81
- "type": "string",
82
- "format": ""
83
- } ];
84
-
85
- static getAttributeTypeMap() {
86
- return UpdateTemplateRequest.attributeTypeMap;
87
- }
88
-
89
- public constructor() {
90
- }
91
- }
92
-
@@ -1,47 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { PropertiesDeltas } from './PropertiesDeltas';
10
- import { PropertiesObject } from './PropertiesObject';
11
- import { HttpFile } from '../http/http';
12
-
13
- export class UpdateUserRequest {
14
- 'properties'?: PropertiesObject;
15
- 'refresh_device_metadata'?: boolean;
16
- 'deltas'?: PropertiesDeltas;
17
-
18
- static readonly discriminator: string | undefined = undefined;
19
-
20
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
21
- {
22
- "name": "properties",
23
- "baseName": "properties",
24
- "type": "PropertiesObject",
25
- "format": ""
26
- },
27
- {
28
- "name": "refresh_device_metadata",
29
- "baseName": "refresh_device_metadata",
30
- "type": "boolean",
31
- "format": ""
32
- },
33
- {
34
- "name": "deltas",
35
- "baseName": "deltas",
36
- "type": "PropertiesDeltas",
37
- "format": ""
38
- } ];
39
-
40
- static getAttributeTypeMap() {
41
- return UpdateUserRequest.attributeTypeMap;
42
- }
43
-
44
- public constructor() {
45
- }
46
- }
47
-
package/models/User.ts DELETED
@@ -1,47 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { PropertiesObject } from './PropertiesObject';
10
- import { Subscription } from './Subscription';
11
- import { HttpFile } from '../http/http';
12
-
13
- export class User {
14
- 'properties'?: PropertiesObject;
15
- 'identity'?: { [key: string]: string; };
16
- 'subscriptions'?: Array<Subscription>;
17
-
18
- static readonly discriminator: string | undefined = undefined;
19
-
20
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
21
- {
22
- "name": "properties",
23
- "baseName": "properties",
24
- "type": "PropertiesObject",
25
- "format": ""
26
- },
27
- {
28
- "name": "identity",
29
- "baseName": "identity",
30
- "type": "{ [key: string]: string; }",
31
- "format": ""
32
- },
33
- {
34
- "name": "subscriptions",
35
- "baseName": "subscriptions",
36
- "type": "Array<Subscription>",
37
- "format": ""
38
- } ];
39
-
40
- static getAttributeTypeMap() {
41
- return User.attributeTypeMap;
42
- }
43
-
44
- public constructor() {
45
- }
46
- }
47
-
@@ -1,31 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { HttpFile } from '../http/http';
10
-
11
- export class UserIdentityBody {
12
- 'identity'?: { [key: string]: string; };
13
-
14
- static readonly discriminator: string | undefined = undefined;
15
-
16
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
17
- {
18
- "name": "identity",
19
- "baseName": "identity",
20
- "type": "{ [key: string]: string; }",
21
- "format": ""
22
- } ];
23
-
24
- static getAttributeTypeMap() {
25
- return UserIdentityBody.attributeTypeMap;
26
- }
27
-
28
- public constructor() {
29
- }
30
- }
31
-
@@ -1,52 +0,0 @@
1
- /**
2
- * OneSignal
3
- * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
- *
5
- * API Version: 5.3.0
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { HttpFile } from '../http/http';
10
-
11
- export class WebButton {
12
- 'id': string;
13
- 'text'?: string;
14
- 'icon'?: string;
15
- 'url'?: string;
16
-
17
- static readonly discriminator: string | undefined = undefined;
18
-
19
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
20
- {
21
- "name": "id",
22
- "baseName": "id",
23
- "type": "string",
24
- "format": ""
25
- },
26
- {
27
- "name": "text",
28
- "baseName": "text",
29
- "type": "string",
30
- "format": ""
31
- },
32
- {
33
- "name": "icon",
34
- "baseName": "icon",
35
- "type": "string",
36
- "format": ""
37
- },
38
- {
39
- "name": "url",
40
- "baseName": "url",
41
- "type": "string",
42
- "format": ""
43
- } ];
44
-
45
- static getAttributeTypeMap() {
46
- return WebButton.attributeTypeMap;
47
- }
48
-
49
- public constructor() {
50
- }
51
- }
52
-
package/models/all.ts DELETED
@@ -1,67 +0,0 @@
1
- export * from './ApiKeyToken'
2
- export * from './ApiKeyTokensListResponse'
3
- export * from './App'
4
- export * from './BasicNotification'
5
- export * from './BasicNotificationAllOf'
6
- export * from './BasicNotificationAllOfAndroidBackgroundLayout'
7
- export * from './Button'
8
- export * from './CopyTemplateRequest'
9
- export * from './CreateApiKeyRequest'
10
- export * from './CreateApiKeyResponse'
11
- export * from './CreateNotificationSuccessResponse'
12
- export * from './CreateSegmentConflictResponse'
13
- export * from './CreateSegmentSuccessResponse'
14
- export * from './CreateTemplateRequest'
15
- export * from './CreateUserConflictResponse'
16
- export * from './CreateUserConflictResponseErrorsInner'
17
- export * from './CreateUserConflictResponseErrorsItemsMeta'
18
- export * from './CustomEvent'
19
- export * from './CustomEventsRequest'
20
- export * from './DeliveryData'
21
- export * from './ExportEventsSuccessResponse'
22
- export * from './ExportSubscriptionsRequestBody'
23
- export * from './ExportSubscriptionsSuccessResponse'
24
- export * from './Filter'
25
- export * from './FilterExpression'
26
- export * from './GenericError'
27
- export * from './GenericSuccessBoolResponse'
28
- export * from './GetNotificationHistoryRequestBody'
29
- export * from './GetSegmentsSuccessResponse'
30
- export * from './LanguageStringMap'
31
- export * from './Notification'
32
- export * from './NotificationAllOf'
33
- export * from './NotificationHistorySuccessResponse'
34
- export * from './NotificationSlice'
35
- export * from './NotificationTarget'
36
- export * from './NotificationWithMeta'
37
- export * from './NotificationWithMetaAllOf'
38
- export * from './Operator'
39
- export * from './OutcomeData'
40
- export * from './OutcomesData'
41
- export * from './PlatformDeliveryData'
42
- export * from './PlatformDeliveryDataEmailAllOf'
43
- export * from './PlatformDeliveryDataSmsAllOf'
44
- export * from './PropertiesBody'
45
- export * from './PropertiesDeltas'
46
- export * from './PropertiesObject'
47
- export * from './Purchase'
48
- export * from './RateLimitError'
49
- export * from './Segment'
50
- export * from './SegmentData'
51
- export * from './SegmentNotificationTarget'
52
- export * from './StartLiveActivityRequest'
53
- export * from './StartLiveActivitySuccessResponse'
54
- export * from './Subscription'
55
- export * from './SubscriptionBody'
56
- export * from './SubscriptionNotificationTarget'
57
- export * from './TemplateResource'
58
- export * from './TemplatesListResponse'
59
- export * from './TransferSubscriptionRequestBody'
60
- export * from './UpdateApiKeyRequest'
61
- export * from './UpdateLiveActivityRequest'
62
- export * from './UpdateLiveActivitySuccessResponse'
63
- export * from './UpdateTemplateRequest'
64
- export * from './UpdateUserRequest'
65
- export * from './User'
66
- export * from './UserIdentityBody'
67
- export * from './WebButton'