Skip to content

Commit d525938

Browse files
authored
Merge pull request #56 from OneSignal/api
Dependency Update
2 parents f40b4bd + 43e0e1f commit d525938

File tree

7 files changed

+136
-16
lines changed

7 files changed

+136
-16
lines changed

models/BasicNotification.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,14 @@ export class BasicNotification {
390390
*/
391391
'email_from_address'?: string;
392392
/**
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+
/**
393401
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
394402
*/
395403
'sms_from'?: string;
@@ -398,6 +406,10 @@ export class BasicNotification {
398406
*/
399407
'sms_media_urls'?: Array<string>;
400408
'filters'?: Array<Filter>;
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;
401413

402414
static readonly discriminator: string | undefined = undefined;
403415

@@ -1002,6 +1014,18 @@ export class BasicNotification {
10021014
"type": "string",
10031015
"format": ""
10041016
},
1017+
{
1018+
"name": "email_preheader",
1019+
"baseName": "email_preheader",
1020+
"type": "string",
1021+
"format": ""
1022+
},
1023+
{
1024+
"name": "include_unsubscribed",
1025+
"baseName": "include_unsubscribed",
1026+
"type": "boolean",
1027+
"format": ""
1028+
},
10051029
{
10061030
"name": "sms_from",
10071031
"baseName": "sms_from",
@@ -1019,6 +1043,12 @@ export class BasicNotification {
10191043
"baseName": "filters",
10201044
"type": "Array<Filter>",
10211045
"format": ""
1046+
},
1047+
{
1048+
"name": "custom_data",
1049+
"baseName": "custom_data",
1050+
"type": "object",
1051+
"format": ""
10221052
} ];
10231053

10241054
static getAttributeTypeMap() {

models/BasicNotificationAllOf.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,14 @@ export class BasicNotificationAllOf {
337337
*/
338338
'email_from_address'?: string;
339339
/**
340+
* 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.
341+
*/
342+
'email_preheader'?: string;
343+
/**
344+
* 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.
345+
*/
346+
'include_unsubscribed'?: boolean;
347+
/**
340348
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
341349
*/
342350
'sms_from'?: string;
@@ -345,6 +353,10 @@ export class BasicNotificationAllOf {
345353
*/
346354
'sms_media_urls'?: Array<string>;
347355
'filters'?: Array<Filter>;
356+
/**
357+
* 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}
358+
*/
359+
'custom_data'?: object;
348360

349361
static readonly discriminator: string | undefined = undefined;
350362

@@ -865,6 +877,18 @@ export class BasicNotificationAllOf {
865877
"type": "string",
866878
"format": ""
867879
},
880+
{
881+
"name": "email_preheader",
882+
"baseName": "email_preheader",
883+
"type": "string",
884+
"format": ""
885+
},
886+
{
887+
"name": "include_unsubscribed",
888+
"baseName": "include_unsubscribed",
889+
"type": "boolean",
890+
"format": ""
891+
},
868892
{
869893
"name": "sms_from",
870894
"baseName": "sms_from",
@@ -882,6 +906,12 @@ export class BasicNotificationAllOf {
882906
"baseName": "filters",
883907
"type": "Array<Filter>",
884908
"format": ""
909+
},
910+
{
911+
"name": "custom_data",
912+
"baseName": "custom_data",
913+
"type": "object",
914+
"format": ""
885915
} ];
886916

887917
static getAttributeTypeMap() {

models/Notification.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,14 @@ export class Notification {
390390
*/
391391
'email_from_address'?: string;
392392
/**
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+
/**
393401
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
394402
*/
395403
'sms_from'?: string;
@@ -399,6 +407,10 @@ export class Notification {
399407
'sms_media_urls'?: Array<string>;
400408
'filters'?: Array<Filter>;
401409
/**
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+
/**
402414
* 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.
403415
*/
404416
'send_after'?: string;
@@ -1006,6 +1018,18 @@ export class Notification {
10061018
"type": "string",
10071019
"format": ""
10081020
},
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+
},
10091033
{
10101034
"name": "sms_from",
10111035
"baseName": "sms_from",
@@ -1024,6 +1048,12 @@ export class Notification {
10241048
"type": "Array<Filter>",
10251049
"format": ""
10261050
},
1051+
{
1052+
"name": "custom_data",
1053+
"baseName": "custom_data",
1054+
"type": "object",
1055+
"format": ""
1056+
},
10271057
{
10281058
"name": "send_after",
10291059
"baseName": "send_after",

models/NotificationWithMeta.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,14 @@ export class NotificationWithMeta {
394394
*/
395395
'email_from_address'?: string;
396396
/**
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+
/**
397405
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
398406
*/
399407
'sms_from'?: string;
@@ -403,6 +411,10 @@ export class NotificationWithMeta {
403411
'sms_media_urls'?: Array<string>;
404412
'filters'?: Array<Filter>;
405413
/**
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+
/**
406418
* Number of notifications that were successfully delivered.
407419
*/
408420
'successful'?: number;
@@ -1044,6 +1056,18 @@ export class NotificationWithMeta {
10441056
"type": "string",
10451057
"format": ""
10461058
},
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+
},
10471071
{
10481072
"name": "sms_from",
10491073
"baseName": "sms_from",
@@ -1062,6 +1086,12 @@ export class NotificationWithMeta {
10621086
"type": "Array<Filter>",
10631087
"format": ""
10641088
},
1089+
{
1090+
"name": "custom_data",
1091+
"baseName": "custom_data",
1092+
"type": "object",
1093+
"format": ""
1094+
},
10651095
{
10661096
"name": "successful",
10671097
"baseName": "successful",

models/ObjectSerializer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export * from './UserSubscriptionOptions';
7171

7272
import { App , AppApnsEnvEnum } from './App';
7373
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';
7676
import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
7777
import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
7878
import { Button } from './Button';
@@ -102,13 +102,13 @@ import { InlineResponse2003 } from './InlineResponse2003';
102102
import { InlineResponse201 } from './InlineResponse201';
103103
import { InlineResponse202 } from './InlineResponse202';
104104
import { InvalidIdentifierError } from './InvalidIdentifierError';
105-
import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
105+
import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
106106
import { Notification200Errors } from './Notification200Errors';
107107
import { NotificationAllOf } from './NotificationAllOf';
108108
import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
109109
import { NotificationSlice } from './NotificationSlice';
110110
import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
111-
import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
111+
import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
112112
import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
113113
import { Operator, OperatorOperatorEnum } from './Operator';
114114
import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onesignal/node-onesignal",
3-
"version": "2.0.0-beta1",
3+
"version": "2.0.1-beta1",
44
"description": "OpenAPI client for @onesignal/node-onesignal",
55
"author": "OpenAPI-Generator Contributors",
66
"keywords": [
@@ -21,7 +21,7 @@
2121
"prepare": "npm run build"
2222
},
2323
"dependencies": {
24-
"@types/node": "^18.15.11",
24+
"@types/node": "^20.4.1",
2525
"@types/node-fetch": "^2.5.7",
2626
"btoa": "^1.2.1",
2727
"es6-promise": "^4.2.4",

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44

55
"@types/node-fetch@^2.5.7":
6-
version "2.6.3"
7-
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.3.tgz#175d977f5e24d93ad0f57602693c435c57ad7e80"
8-
integrity sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==
6+
version "2.6.4"
7+
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.4.tgz#1bc3a26de814f6bf466b25aeb1473fa1afe6a660"
8+
integrity sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==
99
dependencies:
1010
"@types/node" "*"
1111
form-data "^3.0.0"
1212

13-
"@types/node@*", "@types/node@^18.15.11":
14-
version "18.15.11"
15-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.11.tgz#b3b790f09cb1696cffcec605de025b088fa4225f"
16-
integrity sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q==
13+
"@types/node@*", "@types/node@^20.4.1":
14+
version "20.4.1"
15+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.4.1.tgz#a6033a8718653c50ac4962977e14d0f984d9527d"
16+
integrity sha512-JIzsAvJeA/5iY6Y/OxZbv1lUcc8dNSE77lb2gnBH+/PJ3lFR1Ccvgwl5JWnHAkNHcRsT0TbpVOsiMKZ1F/yyJg==
1717

1818
1919
version "1.4.4"
@@ -78,9 +78,9 @@ mime-types@^2.1.12:
7878
mime-db "1.52.0"
7979

8080
node-fetch@^2.6.0:
81-
version "2.6.9"
82-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.9.tgz#7c7f744b5cc6eb5fd404e0c7a9fec630a55657e6"
83-
integrity sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==
81+
version "2.6.12"
82+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.12.tgz#02eb8e22074018e3d5a83016649d04df0e348fba"
83+
integrity sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==
8484
dependencies:
8585
whatwg-url "^5.0.0"
8686

0 commit comments

Comments
 (0)