@onesignal/node-onesignal 1.0.0-beta8 → 2.0.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 (184) hide show
  1. package/.github/workflows/Zapier.yml +34 -0
  2. package/CHANGELOG.md +15 -0
  3. package/DefaultApi.md +988 -3
  4. package/README.md +152 -24
  5. package/apis/DefaultApi.ts +1339 -98
  6. package/dist/apis/DefaultApi.d.ts +39 -0
  7. package/dist/apis/DefaultApi.js +1490 -408
  8. package/dist/apis/DefaultApi.js.map +1 -1
  9. package/dist/models/BasicNotification.d.ts +4 -0
  10. package/dist/models/BasicNotification.js +12 -0
  11. package/dist/models/BasicNotification.js.map +1 -1
  12. package/dist/models/CreateNotificationSuccessResponse.d.ts +2 -2
  13. package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
  14. package/dist/models/CreateSubscriptionRequestBody.js +28 -0
  15. package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
  16. package/dist/models/CreateUserConflictResponse.d.ts +18 -0
  17. package/dist/models/CreateUserConflictResponse.js +22 -0
  18. package/dist/models/CreateUserConflictResponse.js.map +1 -0
  19. package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
  20. package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
  21. package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
  22. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
  23. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
  24. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
  25. package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
  26. package/dist/models/IdentifyUserConflictResponse.js +22 -0
  27. package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
  28. package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
  29. package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
  30. package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
  31. package/dist/models/InlineResponse200.d.ts +19 -0
  32. package/dist/models/InlineResponse200.js +22 -0
  33. package/dist/models/InlineResponse200.js.map +1 -0
  34. package/dist/models/InlineResponse2003.d.ts +17 -0
  35. package/dist/models/InlineResponse2003.js +22 -0
  36. package/dist/models/InlineResponse2003.js.map +1 -0
  37. package/dist/models/InlineResponse201.d.ts +18 -0
  38. package/dist/models/InlineResponse201.js +22 -0
  39. package/dist/models/InlineResponse201.js.map +1 -0
  40. package/dist/models/InlineResponse202.d.ts +18 -0
  41. package/dist/models/InlineResponse202.js +22 -0
  42. package/dist/models/InlineResponse202.js.map +1 -0
  43. package/dist/models/Notification.d.ts +4 -0
  44. package/dist/models/Notification.js +12 -0
  45. package/dist/models/Notification.js.map +1 -1
  46. package/dist/models/NotificationTarget.d.ts +4 -0
  47. package/dist/models/NotificationTarget.js +12 -0
  48. package/dist/models/NotificationTarget.js.map +1 -1
  49. package/dist/models/NotificationWithMeta.d.ts +4 -0
  50. package/dist/models/NotificationWithMeta.js +12 -0
  51. package/dist/models/NotificationWithMeta.js.map +1 -1
  52. package/dist/models/ObjectSerializer.d.ts +21 -0
  53. package/dist/models/ObjectSerializer.js +69 -0
  54. package/dist/models/ObjectSerializer.js.map +1 -1
  55. package/dist/models/Player.d.ts +1 -1
  56. package/dist/models/Player.js +1 -1
  57. package/dist/models/Player.js.map +1 -1
  58. package/dist/models/PlayerNotificationTarget.d.ts +4 -0
  59. package/dist/models/PlayerNotificationTarget.js +12 -0
  60. package/dist/models/PlayerNotificationTarget.js.map +1 -1
  61. package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
  62. package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
  63. package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
  64. package/dist/models/PropertiesDeltas.d.ts +20 -0
  65. package/dist/models/PropertiesDeltas.js +34 -0
  66. package/dist/models/PropertiesDeltas.js.map +1 -0
  67. package/dist/models/PropertiesObject.d.ts +30 -0
  68. package/dist/models/PropertiesObject.js +82 -0
  69. package/dist/models/PropertiesObject.js.map +1 -0
  70. package/dist/models/Purchase.d.ts +2 -1
  71. package/dist/models/Purchase.js +7 -1
  72. package/dist/models/Purchase.js.map +1 -1
  73. package/dist/models/SubscriptionObject.d.ts +34 -0
  74. package/dist/models/SubscriptionObject.js +118 -0
  75. package/dist/models/SubscriptionObject.js.map +1 -0
  76. package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
  77. package/dist/models/TransferSubscriptionRequestBody.js +22 -0
  78. package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
  79. package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
  80. package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
  81. package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
  82. package/dist/models/UpdateUserRequest.d.ts +21 -0
  83. package/dist/models/UpdateUserRequest.js +34 -0
  84. package/dist/models/UpdateUserRequest.js.map +1 -0
  85. package/dist/models/User.d.ts +25 -0
  86. package/dist/models/User.js +40 -0
  87. package/dist/models/User.js.map +1 -0
  88. package/dist/models/UserIdentityRequestBody.d.ts +19 -0
  89. package/dist/models/UserIdentityRequestBody.js +22 -0
  90. package/dist/models/UserIdentityRequestBody.js.map +1 -0
  91. package/dist/models/UserIdentityResponse.d.ts +19 -0
  92. package/dist/models/UserIdentityResponse.js +22 -0
  93. package/dist/models/UserIdentityResponse.js.map +1 -0
  94. package/dist/models/UserSubscriptionOptions.d.ts +17 -0
  95. package/dist/models/UserSubscriptionOptions.js +22 -0
  96. package/dist/models/UserSubscriptionOptions.js.map +1 -0
  97. package/dist/models/all.d.ts +21 -0
  98. package/dist/models/all.js +21 -0
  99. package/dist/models/all.js.map +1 -1
  100. package/dist/types/ObjectParamAPI.d.ts +95 -0
  101. package/dist/types/ObjectParamAPI.js +42 -0
  102. package/dist/types/ObjectParamAPI.js.map +1 -1
  103. package/dist/types/ObservableAPI.d.ts +25 -0
  104. package/dist/types/ObservableAPI.js +383 -47
  105. package/dist/types/ObservableAPI.js.map +1 -1
  106. package/dist/types/PromiseAPI.d.ts +25 -0
  107. package/dist/types/PromiseAPI.js +56 -0
  108. package/dist/types/PromiseAPI.js.map +1 -1
  109. package/models/App.ts +1 -1
  110. package/models/BadRequestError.ts +1 -1
  111. package/models/BasicNotification.ts +17 -1
  112. package/models/BasicNotificationAllOf.ts +1 -1
  113. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  114. package/models/BeginLiveActivityRequest.ts +1 -1
  115. package/models/Button.ts +1 -1
  116. package/models/CancelNotificationSuccessResponse.ts +1 -1
  117. package/models/CreateNotificationSuccessResponse.ts +3 -3
  118. package/models/CreatePlayerSuccessResponse.ts +1 -1
  119. package/models/CreateSegmentConflictResponse.ts +1 -1
  120. package/models/CreateSegmentSuccessResponse.ts +1 -1
  121. package/models/CreateSubscriptionRequestBody.ts +39 -0
  122. package/models/CreateUserConflictResponse.ts +32 -0
  123. package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
  124. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
  125. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  126. package/models/DeletePlayerSuccessResponse.ts +1 -1
  127. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  128. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  129. package/models/DeliveryData.ts +1 -1
  130. package/models/ExportPlayersRequestBody.ts +1 -1
  131. package/models/ExportPlayersSuccessResponse.ts +1 -1
  132. package/models/Filter.ts +1 -1
  133. package/models/FilterExpressions.ts +1 -1
  134. package/models/GetNotificationRequestBody.ts +1 -1
  135. package/models/IdentifyUserConflictResponse.ts +32 -0
  136. package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
  137. package/models/InlineResponse200.ts +31 -0
  138. package/models/InlineResponse2003.ts +31 -0
  139. package/models/InlineResponse201.ts +32 -0
  140. package/models/InlineResponse202.ts +32 -0
  141. package/models/InvalidIdentifierError.ts +1 -1
  142. package/models/Notification.ts +17 -1
  143. package/models/Notification200Errors.ts +1 -1
  144. package/models/NotificationAllOf.ts +1 -1
  145. package/models/NotificationHistorySuccessResponse.ts +1 -1
  146. package/models/NotificationSlice.ts +1 -1
  147. package/models/NotificationTarget.ts +19 -1
  148. package/models/NotificationWithMeta.ts +17 -1
  149. package/models/NotificationWithMetaAllOf.ts +1 -1
  150. package/models/ObjectSerializer.ts +74 -5
  151. package/models/Operator.ts +1 -1
  152. package/models/OutcomeData.ts +1 -1
  153. package/models/OutcomesData.ts +1 -1
  154. package/models/PlatformDeliveryData.ts +1 -1
  155. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  156. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  157. package/models/Player.ts +3 -3
  158. package/models/PlayerNotificationTarget.ts +19 -1
  159. package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
  160. package/models/PlayerSlice.ts +1 -1
  161. package/models/PropertiesDeltas.ts +46 -0
  162. package/models/PropertiesObject.ts +102 -0
  163. package/models/Purchase.ts +10 -3
  164. package/models/Segment.ts +1 -1
  165. package/models/SegmentNotificationTarget.ts +1 -1
  166. package/models/StringMap.ts +1 -1
  167. package/models/SubscriptionObject.ts +146 -0
  168. package/models/TransferSubscriptionRequestBody.ts +31 -0
  169. package/models/UpdateLiveActivityRequest.ts +1 -1
  170. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  171. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  172. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  173. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  174. package/models/UpdateSubscriptionRequestBody.ts +32 -0
  175. package/models/UpdateUserRequest.ts +47 -0
  176. package/models/User.ts +55 -0
  177. package/models/UserIdentityRequestBody.ts +31 -0
  178. package/models/UserIdentityResponse.ts +31 -0
  179. package/models/UserSubscriptionOptions.ts +31 -0
  180. package/models/all.ts +21 -0
  181. package/package.json +2 -2
  182. package/types/ObjectParamAPI.ts +427 -0
  183. package/types/ObservableAPI.ts +371 -0
  184. package/types/PromiseAPI.ts +175 -0
@@ -0,0 +1,146 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class SubscriptionObject {
12
+ 'id'?: string;
13
+ 'type'?: SubscriptionObjectTypeEnum;
14
+ 'token'?: string;
15
+ 'enabled'?: boolean;
16
+ 'notification_types'?: number;
17
+ 'session_time'?: number;
18
+ 'session_count'?: number;
19
+ 'sdk'?: string;
20
+ 'device_model'?: string;
21
+ 'device_os'?: string;
22
+ 'rooted'?: boolean;
23
+ 'test_type'?: number;
24
+ 'app_version'?: string;
25
+ 'net_type'?: number;
26
+ 'carrier'?: string;
27
+ 'web_auth'?: string;
28
+ 'web_p256'?: string;
29
+
30
+ static readonly discriminator: string | undefined = undefined;
31
+
32
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
33
+ {
34
+ "name": "id",
35
+ "baseName": "id",
36
+ "type": "string",
37
+ "format": ""
38
+ },
39
+ {
40
+ "name": "type",
41
+ "baseName": "type",
42
+ "type": "SubscriptionObjectTypeEnum",
43
+ "format": ""
44
+ },
45
+ {
46
+ "name": "token",
47
+ "baseName": "token",
48
+ "type": "string",
49
+ "format": ""
50
+ },
51
+ {
52
+ "name": "enabled",
53
+ "baseName": "enabled",
54
+ "type": "boolean",
55
+ "format": ""
56
+ },
57
+ {
58
+ "name": "notification_types",
59
+ "baseName": "notification_types",
60
+ "type": "number",
61
+ "format": ""
62
+ },
63
+ {
64
+ "name": "session_time",
65
+ "baseName": "session_time",
66
+ "type": "number",
67
+ "format": ""
68
+ },
69
+ {
70
+ "name": "session_count",
71
+ "baseName": "session_count",
72
+ "type": "number",
73
+ "format": ""
74
+ },
75
+ {
76
+ "name": "sdk",
77
+ "baseName": "sdk",
78
+ "type": "string",
79
+ "format": ""
80
+ },
81
+ {
82
+ "name": "device_model",
83
+ "baseName": "device_model",
84
+ "type": "string",
85
+ "format": ""
86
+ },
87
+ {
88
+ "name": "device_os",
89
+ "baseName": "device_os",
90
+ "type": "string",
91
+ "format": ""
92
+ },
93
+ {
94
+ "name": "rooted",
95
+ "baseName": "rooted",
96
+ "type": "boolean",
97
+ "format": ""
98
+ },
99
+ {
100
+ "name": "test_type",
101
+ "baseName": "test_type",
102
+ "type": "number",
103
+ "format": ""
104
+ },
105
+ {
106
+ "name": "app_version",
107
+ "baseName": "app_version",
108
+ "type": "string",
109
+ "format": ""
110
+ },
111
+ {
112
+ "name": "net_type",
113
+ "baseName": "net_type",
114
+ "type": "number",
115
+ "format": ""
116
+ },
117
+ {
118
+ "name": "carrier",
119
+ "baseName": "carrier",
120
+ "type": "string",
121
+ "format": ""
122
+ },
123
+ {
124
+ "name": "web_auth",
125
+ "baseName": "web_auth",
126
+ "type": "string",
127
+ "format": ""
128
+ },
129
+ {
130
+ "name": "web_p256",
131
+ "baseName": "web_p256",
132
+ "type": "string",
133
+ "format": ""
134
+ } ];
135
+
136
+ static getAttributeTypeMap() {
137
+ return SubscriptionObject.attributeTypeMap;
138
+ }
139
+
140
+ public constructor() {
141
+ }
142
+ }
143
+
144
+
145
+ export type SubscriptionObjectTypeEnum = "iOSPush" | "AndroidPush" | "FireOSPush" | "ChromeExtensionPush" | "ChromePush" | "WindowsPush" | "SafariLegacyPush" | "FirefoxPush" | "macOSPush" | "HuaweiPush" | "SafariPush" | "Email" | "SMS" ;
146
+
@@ -0,0 +1,31 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class TransferSubscriptionRequestBody {
12
+ 'identity'?: { [key: string]: any; };
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]: any; }",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return TransferSubscriptionRequestBody.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -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.0.2
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -0,0 +1,32 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { SubscriptionObject } from './SubscriptionObject';
10
+ import { HttpFile } from '../http/http';
11
+
12
+ export class UpdateSubscriptionRequestBody {
13
+ 'subscription'?: SubscriptionObject;
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": "subscription",
20
+ "baseName": "subscription",
21
+ "type": "SubscriptionObject",
22
+ "format": ""
23
+ } ];
24
+
25
+ static getAttributeTypeMap() {
26
+ return UpdateSubscriptionRequestBody.attributeTypeMap;
27
+ }
28
+
29
+ public constructor() {
30
+ }
31
+ }
32
+
@@ -0,0 +1,47 @@
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: 1.2.1
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 ADDED
@@ -0,0 +1,55 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { PropertiesObject } from './PropertiesObject';
10
+ import { SubscriptionObject } from './SubscriptionObject';
11
+ import { UserSubscriptionOptions } from './UserSubscriptionOptions';
12
+ import { HttpFile } from '../http/http';
13
+
14
+ export class User {
15
+ 'properties'?: PropertiesObject;
16
+ 'identity'?: { [key: string]: any; };
17
+ 'subscriptions'?: Array<SubscriptionObject>;
18
+ 'subscription_options'?: UserSubscriptionOptions;
19
+
20
+ static readonly discriminator: string | undefined = undefined;
21
+
22
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
23
+ {
24
+ "name": "properties",
25
+ "baseName": "properties",
26
+ "type": "PropertiesObject",
27
+ "format": ""
28
+ },
29
+ {
30
+ "name": "identity",
31
+ "baseName": "identity",
32
+ "type": "{ [key: string]: any; }",
33
+ "format": ""
34
+ },
35
+ {
36
+ "name": "subscriptions",
37
+ "baseName": "subscriptions",
38
+ "type": "Array<SubscriptionObject>",
39
+ "format": ""
40
+ },
41
+ {
42
+ "name": "subscription_options",
43
+ "baseName": "subscription_options",
44
+ "type": "UserSubscriptionOptions",
45
+ "format": ""
46
+ } ];
47
+
48
+ static getAttributeTypeMap() {
49
+ return User.attributeTypeMap;
50
+ }
51
+
52
+ public constructor() {
53
+ }
54
+ }
55
+
@@ -0,0 +1,31 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class UserIdentityRequestBody {
12
+ 'identity'?: { [key: string]: any; };
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]: any; }",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return UserIdentityRequestBody.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -0,0 +1,31 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class UserIdentityResponse {
12
+ 'identity'?: { [key: string]: any; };
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]: any; }",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return UserIdentityResponse.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
@@ -0,0 +1,31 @@
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: 1.2.1
6
+ * Contact: devrel@onesignal.com
7
+ */
8
+
9
+ import { HttpFile } from '../http/http';
10
+
11
+ export class UserSubscriptionOptions {
12
+ 'retain_previous_owner'?: boolean;
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": "retain_previous_owner",
19
+ "baseName": "retain_previous_owner",
20
+ "type": "boolean",
21
+ "format": ""
22
+ } ];
23
+
24
+ static getAttributeTypeMap() {
25
+ return UserSubscriptionOptions.attributeTypeMap;
26
+ }
27
+
28
+ public constructor() {
29
+ }
30
+ }
31
+
package/models/all.ts CHANGED
@@ -10,6 +10,10 @@ export * from './CreateNotificationSuccessResponse'
10
10
  export * from './CreatePlayerSuccessResponse'
11
11
  export * from './CreateSegmentConflictResponse'
12
12
  export * from './CreateSegmentSuccessResponse'
13
+ export * from './CreateSubscriptionRequestBody'
14
+ export * from './CreateUserConflictResponse'
15
+ export * from './CreateUserConflictResponseErrorsInner'
16
+ export * from './CreateUserConflictResponseErrorsItemsMeta'
13
17
  export * from './DeletePlayerNotFoundResponse'
14
18
  export * from './DeletePlayerSuccessResponse'
15
19
  export * from './DeleteSegmentNotFoundResponse'
@@ -20,6 +24,12 @@ export * from './ExportPlayersSuccessResponse'
20
24
  export * from './Filter'
21
25
  export * from './FilterExpressions'
22
26
  export * from './GetNotificationRequestBody'
27
+ export * from './IdentifyUserConflictResponse'
28
+ export * from './IdentifyUserConflictResponseErrorsInner'
29
+ export * from './InlineResponse200'
30
+ export * from './InlineResponse2003'
31
+ export * from './InlineResponse201'
32
+ export * from './InlineResponse202'
23
33
  export * from './InvalidIdentifierError'
24
34
  export * from './Notification'
25
35
  export * from './Notification200Errors'
@@ -37,13 +47,24 @@ export * from './PlatformDeliveryDataEmailAllOf'
37
47
  export * from './PlatformDeliveryDataSmsAllOf'
38
48
  export * from './Player'
39
49
  export * from './PlayerNotificationTarget'
50
+ export * from './PlayerNotificationTargetIncludeAliases'
40
51
  export * from './PlayerSlice'
52
+ export * from './PropertiesDeltas'
53
+ export * from './PropertiesObject'
41
54
  export * from './Purchase'
42
55
  export * from './Segment'
43
56
  export * from './SegmentNotificationTarget'
44
57
  export * from './StringMap'
58
+ export * from './SubscriptionObject'
59
+ export * from './TransferSubscriptionRequestBody'
45
60
  export * from './UpdateLiveActivityRequest'
46
61
  export * from './UpdateLiveActivitySuccessResponse'
47
62
  export * from './UpdatePlayerSuccessResponse'
48
63
  export * from './UpdatePlayerTagsRequestBody'
49
64
  export * from './UpdatePlayerTagsSuccessResponse'
65
+ export * from './UpdateSubscriptionRequestBody'
66
+ export * from './UpdateUserRequest'
67
+ export * from './User'
68
+ export * from './UserIdentityRequestBody'
69
+ export * from './UserIdentityResponse'
70
+ export * from './UserSubscriptionOptions'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesignal/node-onesignal",
3
- "version": "1.0.0-beta8",
3
+ "version": "2.0.0-beta1",
4
4
  "description": "OpenAPI client for @onesignal/node-onesignal",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,7 +21,7 @@
21
21
  "prepare": "npm run build"
22
22
  },
23
23
  "dependencies": {
24
- "@types/node": "^18.11.17",
24
+ "@types/node": "^18.15.11",
25
25
  "@types/node-fetch": "^2.5.7",
26
26
  "btoa": "^1.2.1",
27
27
  "es6-promise": "^4.2.4",