Skip to content

Commit acb24a2

Browse files
author
OneSignal
committed
feat: add v5.4.0-beta1 package updates
1 parent ecac4cc commit acb24a2

File tree

8 files changed

+298
-50
lines changed

8 files changed

+298
-50
lines changed

.github/workflows/npm_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ jobs:
3636
-p @semantic-release/github \
3737
-p @semantic-release/npm \
3838
-p conventional-changelog-conventionalcommits \
39-
semantic-release
39+
semantic-release --dry-run

apis/DefaultApi.ts

Lines changed: 44 additions & 44 deletions
Large diffs are not rendered by default.

models/BasicNotification.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ export class BasicNotification {
397397
*/
398398
'email_from_address'?: string;
399399
/**
400+
* Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address.
401+
*/
402+
'email_reply_to_address'?: string;
403+
/**
400404
* 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.
401405
*/
402406
'email_preheader'?: string;
@@ -421,6 +425,26 @@ export class BasicNotification {
421425
* 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}
422426
*/
423427
'custom_data'?: object;
428+
/**
429+
* Channel: Push Notifications Platform: Huawei Full path of the app entry activity class
430+
*/
431+
'huawei_badge_class'?: string;
432+
/**
433+
* Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99
434+
*/
435+
'huawei_badge_add_num'?: number;
436+
/**
437+
* Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99
438+
*/
439+
'huawei_badge_set_num'?: number;
440+
/**
441+
* Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
442+
*/
443+
'huawei_category'?: BasicNotificationHuaweiCategoryEnum;
444+
/**
445+
* Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics.
446+
*/
447+
'huawei_bi_tag'?: string;
424448

425449
static readonly discriminator: string | undefined = undefined;
426450

@@ -1031,6 +1055,12 @@ export class BasicNotification {
10311055
"type": "string",
10321056
"format": ""
10331057
},
1058+
{
1059+
"name": "email_reply_to_address",
1060+
"baseName": "email_reply_to_address",
1061+
"type": "string",
1062+
"format": ""
1063+
},
10341064
{
10351065
"name": "email_preheader",
10361066
"baseName": "email_preheader",
@@ -1072,6 +1102,36 @@ export class BasicNotification {
10721102
"baseName": "custom_data",
10731103
"type": "object",
10741104
"format": ""
1105+
},
1106+
{
1107+
"name": "huawei_badge_class",
1108+
"baseName": "huawei_badge_class",
1109+
"type": "string",
1110+
"format": ""
1111+
},
1112+
{
1113+
"name": "huawei_badge_add_num",
1114+
"baseName": "huawei_badge_add_num",
1115+
"type": "number",
1116+
"format": ""
1117+
},
1118+
{
1119+
"name": "huawei_badge_set_num",
1120+
"baseName": "huawei_badge_set_num",
1121+
"type": "number",
1122+
"format": ""
1123+
},
1124+
{
1125+
"name": "huawei_category",
1126+
"baseName": "huawei_category",
1127+
"type": "BasicNotificationHuaweiCategoryEnum",
1128+
"format": ""
1129+
},
1130+
{
1131+
"name": "huawei_bi_tag",
1132+
"baseName": "huawei_bi_tag",
1133+
"type": "string",
1134+
"format": ""
10751135
} ];
10761136

10771137
static getAttributeTypeMap() {
@@ -1085,4 +1145,5 @@ export class BasicNotification {
10851145

10861146
export type BasicNotificationTargetChannelEnum = "push" | "email" | "sms" ;
10871147
export type BasicNotificationAggregationEnum = "sum" | "count" ;
1148+
export type BasicNotificationHuaweiCategoryEnum = "IM" | "VOIP" | "SUBSCRIPTION" | "TRAVEL" | "HEALTH" | "WORK" | "ACCOUNT" | "EXPRESS" | "FINANCE" | "DEVICE_REMINDER" | "MAIL" | "MARKETING" ;
10881149

models/BasicNotificationAllOf.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ export class BasicNotificationAllOf {
346346
*/
347347
'email_from_address'?: string;
348348
/**
349+
* Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address.
350+
*/
351+
'email_reply_to_address'?: string;
352+
/**
349353
* 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.
350354
*/
351355
'email_preheader'?: string;
@@ -370,6 +374,26 @@ export class BasicNotificationAllOf {
370374
* 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}
371375
*/
372376
'custom_data'?: object;
377+
/**
378+
* Channel: Push Notifications Platform: Huawei Full path of the app entry activity class
379+
*/
380+
'huawei_badge_class'?: string;
381+
/**
382+
* Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99
383+
*/
384+
'huawei_badge_add_num'?: number;
385+
/**
386+
* Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99
387+
*/
388+
'huawei_badge_set_num'?: number;
389+
/**
390+
* Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
391+
*/
392+
'huawei_category'?: BasicNotificationAllOfHuaweiCategoryEnum;
393+
/**
394+
* Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics.
395+
*/
396+
'huawei_bi_tag'?: string;
373397

374398
static readonly discriminator: string | undefined = undefined;
375399

@@ -902,6 +926,12 @@ export class BasicNotificationAllOf {
902926
"type": "string",
903927
"format": ""
904928
},
929+
{
930+
"name": "email_reply_to_address",
931+
"baseName": "email_reply_to_address",
932+
"type": "string",
933+
"format": ""
934+
},
905935
{
906936
"name": "email_preheader",
907937
"baseName": "email_preheader",
@@ -943,6 +973,36 @@ export class BasicNotificationAllOf {
943973
"baseName": "custom_data",
944974
"type": "object",
945975
"format": ""
976+
},
977+
{
978+
"name": "huawei_badge_class",
979+
"baseName": "huawei_badge_class",
980+
"type": "string",
981+
"format": ""
982+
},
983+
{
984+
"name": "huawei_badge_add_num",
985+
"baseName": "huawei_badge_add_num",
986+
"type": "number",
987+
"format": ""
988+
},
989+
{
990+
"name": "huawei_badge_set_num",
991+
"baseName": "huawei_badge_set_num",
992+
"type": "number",
993+
"format": ""
994+
},
995+
{
996+
"name": "huawei_category",
997+
"baseName": "huawei_category",
998+
"type": "BasicNotificationAllOfHuaweiCategoryEnum",
999+
"format": ""
1000+
},
1001+
{
1002+
"name": "huawei_bi_tag",
1003+
"baseName": "huawei_bi_tag",
1004+
"type": "string",
1005+
"format": ""
9461006
} ];
9471007

9481008
static getAttributeTypeMap() {
@@ -955,4 +1015,5 @@ export class BasicNotificationAllOf {
9551015

9561016

9571017
export type BasicNotificationAllOfAggregationEnum = "sum" | "count" ;
1018+
export type BasicNotificationAllOfHuaweiCategoryEnum = "IM" | "VOIP" | "SUBSCRIPTION" | "TRAVEL" | "HEALTH" | "WORK" | "ACCOUNT" | "EXPRESS" | "FINANCE" | "DEVICE_REMINDER" | "MAIL" | "MARKETING" ;
9581019

models/Notification.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ export class Notification {
397397
*/
398398
'email_from_address'?: string;
399399
/**
400+
* Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address.
401+
*/
402+
'email_reply_to_address'?: string;
403+
/**
400404
* 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.
401405
*/
402406
'email_preheader'?: string;
@@ -422,6 +426,26 @@ export class Notification {
422426
*/
423427
'custom_data'?: object;
424428
/**
429+
* Channel: Push Notifications Platform: Huawei Full path of the app entry activity class
430+
*/
431+
'huawei_badge_class'?: string;
432+
/**
433+
* Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99
434+
*/
435+
'huawei_badge_add_num'?: number;
436+
/**
437+
* Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99
438+
*/
439+
'huawei_badge_set_num'?: number;
440+
/**
441+
* Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
442+
*/
443+
'huawei_category'?: NotificationHuaweiCategoryEnum;
444+
/**
445+
* Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics.
446+
*/
447+
'huawei_bi_tag'?: string;
448+
/**
425449
* 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.
426450
*/
427451
'send_after'?: string;
@@ -1035,6 +1059,12 @@ export class Notification {
10351059
"type": "string",
10361060
"format": ""
10371061
},
1062+
{
1063+
"name": "email_reply_to_address",
1064+
"baseName": "email_reply_to_address",
1065+
"type": "string",
1066+
"format": ""
1067+
},
10381068
{
10391069
"name": "email_preheader",
10401070
"baseName": "email_preheader",
@@ -1077,6 +1107,36 @@ export class Notification {
10771107
"type": "object",
10781108
"format": ""
10791109
},
1110+
{
1111+
"name": "huawei_badge_class",
1112+
"baseName": "huawei_badge_class",
1113+
"type": "string",
1114+
"format": ""
1115+
},
1116+
{
1117+
"name": "huawei_badge_add_num",
1118+
"baseName": "huawei_badge_add_num",
1119+
"type": "number",
1120+
"format": ""
1121+
},
1122+
{
1123+
"name": "huawei_badge_set_num",
1124+
"baseName": "huawei_badge_set_num",
1125+
"type": "number",
1126+
"format": ""
1127+
},
1128+
{
1129+
"name": "huawei_category",
1130+
"baseName": "huawei_category",
1131+
"type": "NotificationHuaweiCategoryEnum",
1132+
"format": ""
1133+
},
1134+
{
1135+
"name": "huawei_bi_tag",
1136+
"baseName": "huawei_bi_tag",
1137+
"type": "string",
1138+
"format": ""
1139+
},
10801140
{
10811141
"name": "send_after",
10821142
"baseName": "send_after",
@@ -1095,4 +1155,5 @@ export class Notification {
10951155

10961156
export type NotificationTargetChannelEnum = "push" | "email" | "sms" ;
10971157
export type NotificationAggregationEnum = "sum" | "count" ;
1158+
export type NotificationHuaweiCategoryEnum = "IM" | "VOIP" | "SUBSCRIPTION" | "TRAVEL" | "HEALTH" | "WORK" | "ACCOUNT" | "EXPRESS" | "FINANCE" | "DEVICE_REMINDER" | "MAIL" | "MARKETING" ;
10981159

models/NotificationWithMeta.ts

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ export class NotificationWithMeta {
401401
*/
402402
'email_from_address'?: string;
403403
/**
404+
* Channel: Email The email address where replies should be sent. If not specified, replies will go to the from address.
405+
*/
406+
'email_reply_to_address'?: string;
407+
/**
404408
* 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.
405409
*/
406410
'email_preheader'?: string;
@@ -426,6 +430,26 @@ export class NotificationWithMeta {
426430
*/
427431
'custom_data'?: object;
428432
/**
433+
* Channel: Push Notifications Platform: Huawei Full path of the app entry activity class
434+
*/
435+
'huawei_badge_class'?: string;
436+
/**
437+
* Channel: Push Notifications Platform: Huawei Accumulative badge number, which is an integer ranging from 1 to 99
438+
*/
439+
'huawei_badge_add_num'?: number;
440+
/**
441+
* Channel: Push Notifications Platform: Huawei Badge number, which is an integer ranging from 0 to 99
442+
*/
443+
'huawei_badge_set_num'?: number;
444+
/**
445+
* Channel: Push Notifications Platform: Huawei Category of the push notification for HMS classification.
446+
*/
447+
'huawei_category'?: NotificationWithMetaHuaweiCategoryEnum;
448+
/**
449+
* Channel: Push Notifications Platform: Huawei A tag used for Huawei business intelligence and analytics.
450+
*/
451+
'huawei_bi_tag'?: string;
452+
/**
429453
* Number of notifications that were successfully delivered.
430454
*/
431455
'successful'?: number;
@@ -1077,6 +1101,12 @@ export class NotificationWithMeta {
10771101
"type": "string",
10781102
"format": ""
10791103
},
1104+
{
1105+
"name": "email_reply_to_address",
1106+
"baseName": "email_reply_to_address",
1107+
"type": "string",
1108+
"format": ""
1109+
},
10801110
{
10811111
"name": "email_preheader",
10821112
"baseName": "email_preheader",
@@ -1119,6 +1149,36 @@ export class NotificationWithMeta {
11191149
"type": "object",
11201150
"format": ""
11211151
},
1152+
{
1153+
"name": "huawei_badge_class",
1154+
"baseName": "huawei_badge_class",
1155+
"type": "string",
1156+
"format": ""
1157+
},
1158+
{
1159+
"name": "huawei_badge_add_num",
1160+
"baseName": "huawei_badge_add_num",
1161+
"type": "number",
1162+
"format": ""
1163+
},
1164+
{
1165+
"name": "huawei_badge_set_num",
1166+
"baseName": "huawei_badge_set_num",
1167+
"type": "number",
1168+
"format": ""
1169+
},
1170+
{
1171+
"name": "huawei_category",
1172+
"baseName": "huawei_category",
1173+
"type": "NotificationWithMetaHuaweiCategoryEnum",
1174+
"format": ""
1175+
},
1176+
{
1177+
"name": "huawei_bi_tag",
1178+
"baseName": "huawei_bi_tag",
1179+
"type": "string",
1180+
"format": ""
1181+
},
11221182
{
11231183
"name": "successful",
11241184
"baseName": "successful",
@@ -1203,4 +1263,5 @@ export class NotificationWithMeta {
12031263

12041264
export type NotificationWithMetaTargetChannelEnum = "push" | "email" | "sms" ;
12051265
export type NotificationWithMetaAggregationEnum = "sum" | "count" ;
1266+
export type NotificationWithMetaHuaweiCategoryEnum = "IM" | "VOIP" | "SUBSCRIPTION" | "TRAVEL" | "HEALTH" | "WORK" | "ACCOUNT" | "EXPRESS" | "FINANCE" | "DEVICE_REMINDER" | "MAIL" | "MARKETING" ;
12061267

0 commit comments

Comments
 (0)