@onesignal/node-onesignal 1.0.0-beta9 → 2.0.1-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 (111) hide show
  1. package/.github/workflows/Zapier.yml +7 -2
  2. package/DefaultApi.md +3 -4
  3. package/README.md +4 -24
  4. package/apis/DefaultApi.ts +1 -6
  5. package/dist/apis/DefaultApi.d.ts +1 -1
  6. package/dist/apis/DefaultApi.js +1 -2
  7. package/dist/apis/DefaultApi.js.map +1 -1
  8. package/dist/models/BasicNotification.d.ts +3 -0
  9. package/dist/models/BasicNotification.js +18 -0
  10. package/dist/models/BasicNotification.js.map +1 -1
  11. package/dist/models/BasicNotificationAllOf.d.ts +3 -0
  12. package/dist/models/BasicNotificationAllOf.js +18 -0
  13. package/dist/models/BasicNotificationAllOf.js.map +1 -1
  14. package/dist/models/CreateNotificationSuccessResponse.d.ts +2 -2
  15. package/dist/models/Notification.d.ts +3 -0
  16. package/dist/models/Notification.js +18 -0
  17. package/dist/models/Notification.js.map +1 -1
  18. package/dist/models/NotificationWithMeta.d.ts +3 -0
  19. package/dist/models/NotificationWithMeta.js +18 -0
  20. package/dist/models/NotificationWithMeta.js.map +1 -1
  21. package/dist/models/ObjectSerializer.js.map +1 -1
  22. package/dist/models/PropertiesDeltas.d.ts +0 -1
  23. package/dist/models/PropertiesDeltas.js +0 -6
  24. package/dist/models/PropertiesDeltas.js.map +1 -1
  25. package/dist/models/Purchase.d.ts +1 -0
  26. package/dist/models/Purchase.js +6 -0
  27. package/dist/models/Purchase.js.map +1 -1
  28. package/dist/types/ObjectParamAPI.d.ts +0 -1
  29. package/dist/types/ObjectParamAPI.js +1 -1
  30. package/dist/types/ObjectParamAPI.js.map +1 -1
  31. package/dist/types/ObservableAPI.d.ts +1 -1
  32. package/dist/types/ObservableAPI.js +2 -2
  33. package/dist/types/ObservableAPI.js.map +1 -1
  34. package/dist/types/PromiseAPI.d.ts +1 -1
  35. package/dist/types/PromiseAPI.js +2 -2
  36. package/dist/types/PromiseAPI.js.map +1 -1
  37. package/models/App.ts +1 -1
  38. package/models/BadRequestError.ts +1 -1
  39. package/models/BasicNotification.ts +31 -1
  40. package/models/BasicNotificationAllOf.ts +31 -1
  41. package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
  42. package/models/BeginLiveActivityRequest.ts +1 -1
  43. package/models/Button.ts +1 -1
  44. package/models/CancelNotificationSuccessResponse.ts +1 -1
  45. package/models/CreateNotificationSuccessResponse.ts +3 -3
  46. package/models/CreatePlayerSuccessResponse.ts +1 -1
  47. package/models/CreateSegmentConflictResponse.ts +1 -1
  48. package/models/CreateSegmentSuccessResponse.ts +1 -1
  49. package/models/CreateSubscriptionRequestBody.ts +1 -1
  50. package/models/CreateUserConflictResponse.ts +1 -1
  51. package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
  52. package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
  53. package/models/DeletePlayerNotFoundResponse.ts +1 -1
  54. package/models/DeletePlayerSuccessResponse.ts +1 -1
  55. package/models/DeleteSegmentNotFoundResponse.ts +1 -1
  56. package/models/DeleteSegmentSuccessResponse.ts +1 -1
  57. package/models/DeliveryData.ts +1 -1
  58. package/models/ExportPlayersRequestBody.ts +1 -1
  59. package/models/ExportPlayersSuccessResponse.ts +1 -1
  60. package/models/Filter.ts +1 -1
  61. package/models/FilterExpressions.ts +1 -1
  62. package/models/GetNotificationRequestBody.ts +1 -1
  63. package/models/IdentifyUserConflictResponse.ts +1 -1
  64. package/models/IdentifyUserConflictResponseErrorsInner.ts +1 -1
  65. package/models/InlineResponse200.ts +1 -1
  66. package/models/InlineResponse2003.ts +1 -1
  67. package/models/InlineResponse201.ts +1 -1
  68. package/models/InlineResponse202.ts +1 -1
  69. package/models/InvalidIdentifierError.ts +1 -1
  70. package/models/Notification.ts +31 -1
  71. package/models/Notification200Errors.ts +1 -1
  72. package/models/NotificationAllOf.ts +1 -1
  73. package/models/NotificationHistorySuccessResponse.ts +1 -1
  74. package/models/NotificationSlice.ts +1 -1
  75. package/models/NotificationTarget.ts +1 -1
  76. package/models/NotificationWithMeta.ts +31 -1
  77. package/models/NotificationWithMetaAllOf.ts +1 -1
  78. package/models/ObjectSerializer.ts +4 -4
  79. package/models/Operator.ts +1 -1
  80. package/models/OutcomeData.ts +1 -1
  81. package/models/OutcomesData.ts +1 -1
  82. package/models/PlatformDeliveryData.ts +1 -1
  83. package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
  84. package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
  85. package/models/Player.ts +1 -1
  86. package/models/PlayerNotificationTarget.ts +1 -1
  87. package/models/PlayerNotificationTargetIncludeAliases.ts +1 -1
  88. package/models/PlayerSlice.ts +1 -1
  89. package/models/PropertiesDeltas.ts +1 -8
  90. package/models/PropertiesObject.ts +1 -1
  91. package/models/Purchase.ts +8 -1
  92. package/models/Segment.ts +1 -1
  93. package/models/SegmentNotificationTarget.ts +1 -1
  94. package/models/StringMap.ts +1 -1
  95. package/models/SubscriptionObject.ts +1 -1
  96. package/models/TransferSubscriptionRequestBody.ts +1 -1
  97. package/models/UpdateLiveActivityRequest.ts +1 -1
  98. package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
  99. package/models/UpdatePlayerSuccessResponse.ts +1 -1
  100. package/models/UpdatePlayerTagsRequestBody.ts +1 -1
  101. package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
  102. package/models/UpdateSubscriptionRequestBody.ts +1 -1
  103. package/models/UpdateUserRequest.ts +1 -1
  104. package/models/User.ts +1 -1
  105. package/models/UserIdentityRequestBody.ts +1 -1
  106. package/models/UserIdentityResponse.ts +1 -1
  107. package/models/UserSubscriptionOptions.ts +1 -1
  108. package/package.json +2 -2
  109. package/types/ObjectParamAPI.ts +1 -7
  110. package/types/ObservableAPI.ts +2 -3
  111. package/types/PromiseAPI.ts +2 -3
@@ -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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -390,6 +390,14 @@ export class Notification {
390
390
  */
391
391
  'email_from_address'?: string;
392
392
  /**
393
+ * Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null.
394
+ */
395
+ 'email_preheader'?: string;
396
+ /**
397
+ * Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP\'s list of unsubscribed emails to be cleared.
398
+ */
399
+ 'include_unsubscribed'?: boolean;
400
+ /**
393
401
  * Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
394
402
  */
395
403
  'sms_from'?: string;
@@ -399,6 +407,10 @@ export class Notification {
399
407
  'sms_media_urls'?: Array<string>;
400
408
  'filters'?: Array<Filter>;
401
409
  /**
410
+ * Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
411
+ */
412
+ 'custom_data'?: object;
413
+ /**
402
414
  * Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter.
403
415
  */
404
416
  'send_after'?: string;
@@ -1006,6 +1018,18 @@ export class Notification {
1006
1018
  "type": "string",
1007
1019
  "format": ""
1008
1020
  },
1021
+ {
1022
+ "name": "email_preheader",
1023
+ "baseName": "email_preheader",
1024
+ "type": "string",
1025
+ "format": ""
1026
+ },
1027
+ {
1028
+ "name": "include_unsubscribed",
1029
+ "baseName": "include_unsubscribed",
1030
+ "type": "boolean",
1031
+ "format": ""
1032
+ },
1009
1033
  {
1010
1034
  "name": "sms_from",
1011
1035
  "baseName": "sms_from",
@@ -1024,6 +1048,12 @@ export class Notification {
1024
1048
  "type": "Array<Filter>",
1025
1049
  "format": ""
1026
1050
  },
1051
+ {
1052
+ "name": "custom_data",
1053
+ "baseName": "custom_data",
1054
+ "type": "object",
1055
+ "format": ""
1056
+ },
1027
1057
  {
1028
1058
  "name": "send_after",
1029
1059
  "baseName": "send_after",
@@ -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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -394,6 +394,14 @@ export class NotificationWithMeta {
394
394
  */
395
395
  'email_from_address'?: string;
396
396
  /**
397
+ * Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null.
398
+ */
399
+ 'email_preheader'?: string;
400
+ /**
401
+ * Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP\'s list of unsubscribed emails to be cleared.
402
+ */
403
+ 'include_unsubscribed'?: boolean;
404
+ /**
397
405
  * Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
398
406
  */
399
407
  'sms_from'?: string;
@@ -403,6 +411,10 @@ export class NotificationWithMeta {
403
411
  'sms_media_urls'?: Array<string>;
404
412
  'filters'?: Array<Filter>;
405
413
  /**
414
+ * Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
415
+ */
416
+ 'custom_data'?: object;
417
+ /**
406
418
  * Number of notifications that were successfully delivered.
407
419
  */
408
420
  'successful'?: number;
@@ -1044,6 +1056,18 @@ export class NotificationWithMeta {
1044
1056
  "type": "string",
1045
1057
  "format": ""
1046
1058
  },
1059
+ {
1060
+ "name": "email_preheader",
1061
+ "baseName": "email_preheader",
1062
+ "type": "string",
1063
+ "format": ""
1064
+ },
1065
+ {
1066
+ "name": "include_unsubscribed",
1067
+ "baseName": "include_unsubscribed",
1068
+ "type": "boolean",
1069
+ "format": ""
1070
+ },
1047
1071
  {
1048
1072
  "name": "sms_from",
1049
1073
  "baseName": "sms_from",
@@ -1062,6 +1086,12 @@ export class NotificationWithMeta {
1062
1086
  "type": "Array<Filter>",
1063
1087
  "format": ""
1064
1088
  },
1089
+ {
1090
+ "name": "custom_data",
1091
+ "baseName": "custom_data",
1092
+ "type": "object",
1093
+ "format": ""
1094
+ },
1065
1095
  {
1066
1096
  "name": "successful",
1067
1097
  "baseName": "successful",
@@ -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.1.0
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -71,8 +71,8 @@ export * from './UserSubscriptionOptions';
71
71
 
72
72
  import { App , AppApnsEnvEnum } from './App';
73
73
  import { BadRequestError } from './BadRequestError';
74
- import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
75
- import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
74
+ import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
75
+ import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
76
76
  import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
77
77
  import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
78
78
  import { Button } from './Button';
@@ -102,13 +102,13 @@ import { InlineResponse2003 } from './InlineResponse2003';
102
102
  import { InlineResponse201 } from './InlineResponse201';
103
103
  import { InlineResponse202 } from './InlineResponse202';
104
104
  import { InvalidIdentifierError } from './InvalidIdentifierError';
105
- import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
105
+ import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
106
106
  import { Notification200Errors } from './Notification200Errors';
107
107
  import { NotificationAllOf } from './NotificationAllOf';
108
108
  import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
109
109
  import { NotificationSlice } from './NotificationSlice';
110
110
  import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
111
- import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
111
+ import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
112
112
  import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
113
113
  import { Operator, OperatorOperatorEnum } from './Operator';
114
114
  import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
@@ -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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
package/models/Player.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * OneSignal
3
3
  * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
4
4
  *
5
- * API Version: 1.1.0
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.1.0
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.1.0
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.1.0
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.1.0
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -12,7 +12,6 @@ import { HttpFile } from '../http/http';
12
12
  export class PropertiesDeltas {
13
13
  'session_time'?: number;
14
14
  'session_count'?: number;
15
- 'amount_spent'?: number;
16
15
  'purchases'?: Array<Purchase>;
17
16
 
18
17
  static readonly discriminator: string | undefined = undefined;
@@ -30,12 +29,6 @@ export class PropertiesDeltas {
30
29
  "type": "number",
31
30
  "format": ""
32
31
  },
33
- {
34
- "name": "amount_spent",
35
- "baseName": "amount_spent",
36
- "type": "number",
37
- "format": ""
38
- },
39
32
  {
40
33
  "name": "purchases",
41
34
  "baseName": "purchases",
@@ -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.1.0
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.1.0
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8
 
@@ -21,6 +21,7 @@ export class Purchase {
21
21
  * The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount.
22
22
  */
23
23
  'iso': string;
24
+ 'count'?: number;
24
25
 
25
26
  static readonly discriminator: string | undefined = undefined;
26
27
 
@@ -42,6 +43,12 @@ export class Purchase {
42
43
  "baseName": "iso",
43
44
  "type": "string",
44
45
  "format": ""
46
+ },
47
+ {
48
+ "name": "count",
49
+ "baseName": "count",
50
+ "type": "number",
51
+ "format": ""
45
52
  } ];
46
53
 
47
54
  static getAttributeTypeMap() {
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: 1.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
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.1.0
5
+ * API Version: 1.2.1
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: 1.1.0
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.1.0
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.1.0
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.1.0
5
+ * API Version: 1.2.1
6
6
  * Contact: devrel@onesignal.com
7
7
  */
8
8