@onesignal/node-onesignal 5.0.0-alpha-02 → 5.1.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 (113) hide show
  1. package/.github/ISSUE_TEMPLATE/ask-question.yml +3 -3
  2. package/.github/ISSUE_TEMPLATE/bug-report.yml +2 -2
  3. package/.github/ISSUE_TEMPLATE/general-feedback.yml +3 -3
  4. package/.github/workflows/project.yml +17 -0
  5. package/DefaultApi.md +4 -4
  6. package/README.md +6 -6
  7. package/apis/DefaultApi.ts +34 -34
  8. package/auth/auth.ts +16 -16
  9. package/configuration.ts +5 -5
  10. package/dist/apis/DefaultApi.js +34 -34
  11. package/dist/apis/DefaultApi.js.map +1 -1
  12. package/dist/auth/auth.d.ts +4 -4
  13. package/dist/auth/auth.js +20 -20
  14. package/dist/auth/auth.js.map +1 -1
  15. package/dist/configuration.d.ts +1 -1
  16. package/dist/configuration.js +4 -4
  17. package/dist/configuration.js.map +1 -1
  18. package/dist/http/isomorphic-fetch.js +1 -2
  19. package/dist/http/isomorphic-fetch.js.map +1 -1
  20. package/dist/models/BasicNotification.d.ts +1 -0
  21. package/dist/models/BasicNotification.js +6 -0
  22. package/dist/models/BasicNotification.js.map +1 -1
  23. package/dist/models/BasicNotificationAllOf.d.ts +1 -0
  24. package/dist/models/BasicNotificationAllOf.js +6 -0
  25. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  26. package/dist/models/InvalidIdentifierError.d.ts +1 -1
  27. package/dist/models/InvalidIdentifierError.js +2 -2
  28. package/dist/models/InvalidIdentifierError.js.map +1 -1
  29. package/dist/models/Notification.d.ts +1 -0
  30. package/dist/models/Notification.js +6 -0
  31. package/dist/models/Notification.js.map +1 -1
  32. package/dist/models/NotificationWithMeta.d.ts +1 -0
  33. package/dist/models/NotificationWithMeta.js +6 -0
  34. package/dist/models/NotificationWithMeta.js.map +1 -1
  35. package/dist/models/ObjectSerializer.d.ts +0 -1
  36. package/dist/models/ObjectSerializer.js +0 -3
  37. package/dist/models/ObjectSerializer.js.map +1 -1
  38. package/dist/models/all.d.ts +0 -1
  39. package/dist/models/all.js +0 -1
  40. package/dist/models/all.js.map +1 -1
  41. package/dist/{test/DefaultApi.test.js → test.js} +21 -10
  42. package/dist/test.js.map +1 -0
  43. package/dist/types/ObjectParamAPI.js.map +1 -1
  44. package/dist/types/ObservableAPI.js.map +1 -1
  45. package/dist/types/PromiseAPI.js.map +1 -1
  46. package/http/isomorphic-fetch.ts +0 -1
  47. package/models/App.ts +1 -1
  48. package/models/BasicNotification.ts +12 -2
  49. package/models/BasicNotificationAllOf.ts +12 -2
  50. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  51. package/models/Button.ts +1 -1
  52. package/models/CreateNotificationSuccessResponse.ts +1 -1
  53. package/models/CreateSegmentConflictResponse.ts +1 -1
  54. package/models/CreateSegmentSuccessResponse.ts +1 -1
  55. package/models/CreateUserConflictResponse.ts +1 -1
  56. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  57. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  58. package/models/DeliveryData.ts +1 -1
  59. package/models/ExportEventsSuccessResponse.ts +1 -1
  60. package/models/ExportSubscriptionsRequestBody.ts +1 -1
  61. package/models/ExportSubscriptionsSuccessResponse.ts +1 -1
  62. package/models/Filter.ts +1 -1
  63. package/models/FilterExpression.ts +1 -1
  64. package/models/GenericError.ts +1 -1
  65. package/models/GenericSuccessBoolResponse.ts +1 -1
  66. package/models/GetNotificationHistoryRequestBody.ts +1 -1
  67. package/models/GetSegmentsSuccessResponse.ts +1 -1
  68. package/models/LanguageStringMap.ts +1 -1
  69. package/models/Notification.ts +12 -2
  70. package/models/NotificationAllOf.ts +1 -1
  71. package/models/NotificationHistorySuccessResponse.ts +1 -1
  72. package/models/NotificationSlice.ts +1 -1
  73. package/models/NotificationTarget.ts +1 -1
  74. package/models/NotificationWithMeta.ts +12 -2
  75. package/models/NotificationWithMetaAllOf.ts +1 -1
  76. package/models/ObjectSerializer.ts +4 -7
  77. package/models/Operator.ts +1 -1
  78. package/models/OutcomeData.ts +1 -1
  79. package/models/OutcomesData.ts +1 -1
  80. package/models/PlatformDeliveryData.ts +1 -1
  81. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  82. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  83. package/models/PropertiesBody.ts +1 -1
  84. package/models/PropertiesDeltas.ts +1 -1
  85. package/models/PropertiesObject.ts +1 -1
  86. package/models/Purchase.ts +1 -1
  87. package/models/RateLimitError.ts +1 -1
  88. package/models/Segment.ts +1 -1
  89. package/models/SegmentData.ts +1 -1
  90. package/models/SegmentNotificationTarget.ts +1 -1
  91. package/models/Subscription.ts +1 -1
  92. package/models/SubscriptionBody.ts +1 -1
  93. package/models/SubscriptionNotificationTarget.ts +1 -1
  94. package/models/TransferSubscriptionRequestBody.ts +1 -1
  95. package/models/UpdateLiveActivityRequest.ts +1 -1
  96. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  97. package/models/UpdateUserRequest.ts +1 -1
  98. package/models/User.ts +1 -1
  99. package/models/UserIdentityBody.ts +1 -1
  100. package/models/WebButton.ts +1 -1
  101. package/models/all.ts +0 -1
  102. package/onesignal-node-onesignal-5.1.0-beta1.tgz +0 -0
  103. package/package.json +2 -4
  104. package/types/ObjectParamAPI.ts +0 -1
  105. package/types/ObservableAPI.ts +0 -1
  106. package/types/PromiseAPI.ts +0 -1
  107. package/dist/jest.config.d.ts +0 -15
  108. package/dist/jest.config.js +0 -17
  109. package/dist/jest.config.js.map +0 -1
  110. package/dist/test/DefaultApi.test.js.map +0 -1
  111. package/models/InvalidIdentifierError.ts +0 -44
  112. package/models/RateLimiterError.ts +0 -32
  113. /package/dist/{test/DefaultApi.test.d.ts → test.d.ts} +0 -0
@@ -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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -121,9 +121,13 @@ export class NotificationWithMeta {
121
121
  */
122
122
  'app_id': string;
123
123
  /**
124
- * 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
124
+ * [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
125
125
  */
126
126
  'external_id'?: string;
127
+ /**
128
+ * 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
129
+ */
130
+ 'idempotency_key'?: string;
127
131
  'contents'?: LanguageStringMap;
128
132
  'headings'?: LanguageStringMap;
129
133
  'subtitle'?: LanguageStringMap;
@@ -633,6 +637,12 @@ export class NotificationWithMeta {
633
637
  "type": "string",
634
638
  "format": ""
635
639
  },
640
+ {
641
+ "name": "idempotency_key",
642
+ "baseName": "idempotency_key",
643
+ "type": "string",
644
+ "format": ""
645
+ },
636
646
  {
637
647
  "name": "contents",
638
648
  "baseName": "contents",
@@ -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: 5.0.1
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -19,7 +19,6 @@ export * from './GenericError';
19
19
  export * from './GenericSuccessBoolResponse';
20
20
  export * from './GetNotificationHistoryRequestBody';
21
21
  export * from './GetSegmentsSuccessResponse';
22
- export * from './InvalidIdentifierError';
23
22
  export * from './LanguageStringMap';
24
23
  export * from './Notification';
25
24
  export * from './NotificationAllOf';
@@ -54,8 +53,8 @@ export * from './UserIdentityBody';
54
53
  export * from './WebButton';
55
54
 
56
55
  import { App , AppApnsEnvEnum } from './App';
57
- import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
58
- import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
56
+ import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
57
+ import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
59
58
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
60
59
  import { Button } from './Button';
61
60
  import { CreateNotificationSuccessResponse } from './CreateNotificationSuccessResponse';
@@ -74,14 +73,13 @@ import { GenericError } from './GenericError';
74
73
  import { GenericSuccessBoolResponse } from './GenericSuccessBoolResponse';
75
74
  import { GetNotificationHistoryRequestBody, GetNotificationHistoryRequestBodyEventsEnum } from './GetNotificationHistoryRequestBody';
76
75
  import { GetSegmentsSuccessResponse } from './GetSegmentsSuccessResponse';
77
- import { InvalidIdentifierError } from './InvalidIdentifierError';
78
76
  import { LanguageStringMap } from './LanguageStringMap';
79
- import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
77
+ import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
80
78
  import { NotificationAllOf } from './NotificationAllOf';
81
79
  import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
82
80
  import { NotificationSlice } from './NotificationSlice';
83
81
  import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
84
- import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
82
+ import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
85
83
  import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
86
84
  import { Operator, OperatorOperatorEnum } from './Operator';
87
85
  import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
@@ -170,7 +168,6 @@ let typeMap: {[index: string]: any} = {
170
168
  "GenericSuccessBoolResponse": GenericSuccessBoolResponse,
171
169
  "GetNotificationHistoryRequestBody": GetNotificationHistoryRequestBody,
172
170
  "GetSegmentsSuccessResponse": GetSegmentsSuccessResponse,
173
- "InvalidIdentifierError": InvalidIdentifierError,
174
171
  "LanguageStringMap": LanguageStringMap,
175
172
  "Notification": Notification,
176
173
  "NotificationAllOf": NotificationAllOf,
@@ -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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Segment.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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/User.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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
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: 5.0.1
5
+ * API Version: 5.1.0
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/all.ts CHANGED
@@ -19,7 +19,6 @@ export * from './GenericError'
19
19
  export * from './GenericSuccessBoolResponse'
20
20
  export * from './GetNotificationHistoryRequestBody'
21
21
  export * from './GetSegmentsSuccessResponse'
22
- export * from './InvalidIdentifierError'
23
22
  export * from './LanguageStringMap'
24
23
  export * from './Notification'
25
24
  export * from './NotificationAllOf'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onesignal/node-onesignal",
3
- "version": "5.0.0-alpha-02",
3
+ "version": "5.1.0-beta1",
4
4
  "description": "OpenAPI client for @onesignal/node-onesignal",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -21,12 +21,10 @@
21
21
  "prepare": "npm run build"
22
22
  },
23
23
  "dependencies": {
24
- "@types/node": "^22.10.1",
25
- "@types/node-fetch": "^2.5.7",
24
+ "@types/node": "^22.15.30",
26
25
  "btoa": "^1.2.1",
27
26
  "es6-promise": "^4.2.4",
28
27
  "form-data": "^2.5.0",
29
- "node-fetch": "^2.6.0",
30
28
  "url-parse": "^1.4.3"
31
29
  },
32
30
  "devDependencies": {
@@ -23,7 +23,6 @@ import { GenericError } from '../models/GenericError';
23
23
  import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
24
24
  import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
25
25
  import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
26
- import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
27
26
  import { LanguageStringMap } from '../models/LanguageStringMap';
28
27
  import { Notification } from '../models/Notification';
29
28
  import { NotificationAllOf } from '../models/NotificationAllOf';
@@ -24,7 +24,6 @@ import { GenericError } from '../models/GenericError';
24
24
  import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
25
25
  import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
26
26
  import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
27
- import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
28
27
  import { LanguageStringMap } from '../models/LanguageStringMap';
29
28
  import { Notification } from '../models/Notification';
30
29
  import { NotificationAllOf } from '../models/NotificationAllOf';
@@ -23,7 +23,6 @@ import { GenericError } from '../models/GenericError';
23
23
  import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
24
24
  import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
25
25
  import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
26
- import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
27
26
  import { LanguageStringMap } from '../models/LanguageStringMap';
28
27
  import { Notification } from '../models/Notification';
29
28
  import { NotificationAllOf } from '../models/NotificationAllOf';
@@ -1,15 +0,0 @@
1
- declare const _default: {
2
- preset: string;
3
- testEnvironment: string;
4
- testMatch: string[];
5
- moduleFileExtensions: string[];
6
- transform: {
7
- '^.+\\.ts$': string;
8
- };
9
- globals: {
10
- 'ts-jest': {
11
- tsconfig: string;
12
- };
13
- };
14
- };
15
- export default _default;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- preset: 'ts-jest',
5
- testEnvironment: 'node',
6
- testMatch: ['**/__tests__/**/*.test.ts'],
7
- moduleFileExtensions: ['ts', 'js'],
8
- transform: {
9
- '^.+\\.ts$': 'ts-jest'
10
- },
11
- globals: {
12
- 'ts-jest': {
13
- tsconfig: 'tsconfig.json'
14
- }
15
- }
16
- };
17
- //# sourceMappingURL=jest.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jest.config.js","sourceRoot":"","sources":["../jest.config.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,MAAM,EAAE,SAAS;IACjB,eAAe,EAAE,MAAM;IACvB,SAAS,EAAE,CAAC,2BAA2B,CAAC;IACxC,oBAAoB,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;IAClC,SAAS,EAAE;QACP,WAAW,EAAE,SAAS;KACzB;IACD,OAAO,EAAE;QACL,SAAS,EAAE;YACP,QAAQ,EAAE,eAAe;SAC5B;KACJ;CACJ,CAAC"}
@@ -1 +0,0 @@
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"}
@@ -1,44 +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.0.1
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { HttpFile } from '../http/http';
10
-
11
- export class InvalidIdentifierError {
12
- /**
13
- * Returned if using include_aliases
14
- */
15
- 'invalid_aliases'?: Array<string>;
16
- /**
17
- * Returned if using include_subscription_ids and some were valid and others were not.
18
- */
19
- 'invalid_player_ids'?: Array<string>;
20
-
21
- static readonly discriminator: string | undefined = undefined;
22
-
23
- static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
24
- {
25
- "name": "invalid_aliases",
26
- "baseName": "invalid_aliases",
27
- "type": "Array<string>",
28
- "format": ""
29
- },
30
- {
31
- "name": "invalid_player_ids",
32
- "baseName": "invalid_player_ids",
33
- "type": "Array<string>",
34
- "format": ""
35
- } ];
36
-
37
- static getAttributeTypeMap() {
38
- return InvalidIdentifierError.attributeTypeMap;
39
- }
40
-
41
- public constructor() {
42
- }
43
- }
44
-
@@ -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: 1.2.2
6
- * Contact: devrel@onesignal.com
7
- */
8
-
9
- import { GenericErrorErrorsInner } from './GenericErrorErrorsInner';
10
- import { HttpFile } from '../http/http';
11
-
12
- export class RateLimiterError {
13
- 'errors'?: Array<GenericErrorErrorsInner>;
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": "errors",
20
- "baseName": "errors",
21
- "type": "Array<GenericErrorErrorsInner>",
22
- "format": ""
23
- } ];
24
-
25
- static getAttributeTypeMap() {
26
- return RateLimiterError.attributeTypeMap;
27
- }
28
-
29
- public constructor() {
30
- }
31
- }
32
-
File without changes