Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Update #56

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions models/BasicNotification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,14 @@ export class BasicNotification {
*/
'email_from_address'?: string;
/**
* 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.
*/
'email_preheader'?: string;
/**
* 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.
*/
'include_unsubscribed'?: boolean;
/**
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
*/
'sms_from'?: string;
Expand All @@ -398,6 +406,10 @@ export class BasicNotification {
*/
'sms_media_urls'?: Array<string>;
'filters'?: Array<Filter>;
/**
* 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}
*/
'custom_data'?: object;

static readonly discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -1002,6 +1014,18 @@ export class BasicNotification {
"type": "string",
"format": ""
},
{
"name": "email_preheader",
"baseName": "email_preheader",
"type": "string",
"format": ""
},
{
"name": "include_unsubscribed",
"baseName": "include_unsubscribed",
"type": "boolean",
"format": ""
},
{
"name": "sms_from",
"baseName": "sms_from",
Expand All @@ -1019,6 +1043,12 @@ export class BasicNotification {
"baseName": "filters",
"type": "Array<Filter>",
"format": ""
},
{
"name": "custom_data",
"baseName": "custom_data",
"type": "object",
"format": ""
} ];

static getAttributeTypeMap() {
Expand Down
30 changes: 30 additions & 0 deletions models/BasicNotificationAllOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,14 @@ export class BasicNotificationAllOf {
*/
'email_from_address'?: string;
/**
* 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.
*/
'email_preheader'?: string;
/**
* 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.
*/
'include_unsubscribed'?: boolean;
/**
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
*/
'sms_from'?: string;
Expand All @@ -345,6 +353,10 @@ export class BasicNotificationAllOf {
*/
'sms_media_urls'?: Array<string>;
'filters'?: Array<Filter>;
/**
* 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}
*/
'custom_data'?: object;

static readonly discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -865,6 +877,18 @@ export class BasicNotificationAllOf {
"type": "string",
"format": ""
},
{
"name": "email_preheader",
"baseName": "email_preheader",
"type": "string",
"format": ""
},
{
"name": "include_unsubscribed",
"baseName": "include_unsubscribed",
"type": "boolean",
"format": ""
},
{
"name": "sms_from",
"baseName": "sms_from",
Expand All @@ -882,6 +906,12 @@ export class BasicNotificationAllOf {
"baseName": "filters",
"type": "Array<Filter>",
"format": ""
},
{
"name": "custom_data",
"baseName": "custom_data",
"type": "object",
"format": ""
} ];

static getAttributeTypeMap() {
Expand Down
30 changes: 30 additions & 0 deletions models/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,14 @@ export class Notification {
*/
'email_from_address'?: string;
/**
* 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.
*/
'email_preheader'?: string;
/**
* 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.
*/
'include_unsubscribed'?: boolean;
/**
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
*/
'sms_from'?: string;
Expand All @@ -399,6 +407,10 @@ export class Notification {
'sms_media_urls'?: Array<string>;
'filters'?: Array<Filter>;
/**
* 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}
*/
'custom_data'?: object;
/**
* 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.
*/
'send_after'?: string;
Expand Down Expand Up @@ -1006,6 +1018,18 @@ export class Notification {
"type": "string",
"format": ""
},
{
"name": "email_preheader",
"baseName": "email_preheader",
"type": "string",
"format": ""
},
{
"name": "include_unsubscribed",
"baseName": "include_unsubscribed",
"type": "boolean",
"format": ""
},
{
"name": "sms_from",
"baseName": "sms_from",
Expand All @@ -1024,6 +1048,12 @@ export class Notification {
"type": "Array<Filter>",
"format": ""
},
{
"name": "custom_data",
"baseName": "custom_data",
"type": "object",
"format": ""
},
{
"name": "send_after",
"baseName": "send_after",
Expand Down
30 changes: 30 additions & 0 deletions models/NotificationWithMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,14 @@ export class NotificationWithMeta {
*/
'email_from_address'?: string;
/**
* 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.
*/
'email_preheader'?: string;
/**
* 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.
*/
'include_unsubscribed'?: boolean;
/**
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
*/
'sms_from'?: string;
Expand All @@ -403,6 +411,10 @@ export class NotificationWithMeta {
'sms_media_urls'?: Array<string>;
'filters'?: Array<Filter>;
/**
* 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}
*/
'custom_data'?: object;
/**
* Number of notifications that were successfully delivered.
*/
'successful'?: number;
Expand Down Expand Up @@ -1044,6 +1056,18 @@ export class NotificationWithMeta {
"type": "string",
"format": ""
},
{
"name": "email_preheader",
"baseName": "email_preheader",
"type": "string",
"format": ""
},
{
"name": "include_unsubscribed",
"baseName": "include_unsubscribed",
"type": "boolean",
"format": ""
},
{
"name": "sms_from",
"baseName": "sms_from",
Expand All @@ -1062,6 +1086,12 @@ export class NotificationWithMeta {
"type": "Array<Filter>",
"format": ""
},
{
"name": "custom_data",
"baseName": "custom_data",
"type": "object",
"format": ""
},
{
"name": "successful",
"baseName": "successful",
Expand Down
8 changes: 4 additions & 4 deletions models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export * from './UserSubscriptionOptions';

import { App , AppApnsEnvEnum } from './App';
import { BadRequestError } from './BadRequestError';
import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
import { Button } from './Button';
Expand Down Expand Up @@ -102,13 +102,13 @@ import { InlineResponse2003 } from './InlineResponse2003';
import { InlineResponse201 } from './InlineResponse201';
import { InlineResponse202 } from './InlineResponse202';
import { InvalidIdentifierError } from './InvalidIdentifierError';
import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
import { Notification200Errors } from './Notification200Errors';
import { NotificationAllOf } from './NotificationAllOf';
import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
import { NotificationSlice } from './NotificationSlice';
import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
import { Operator, OperatorOperatorEnum } from './Operator';
import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onesignal/node-onesignal",
"version": "2.0.0-beta1",
"version": "2.0.1-beta1",
"description": "OpenAPI client for @onesignal/node-onesignal",
"author": "OpenAPI-Generator Contributors",
"keywords": [
Expand All @@ -21,7 +21,7 @@
"prepare": "npm run build"
},
"dependencies": {
"@types/node": "^18.15.11",
"@types/node": "^20.4.1",
"@types/node-fetch": "^2.5.7",
"btoa": "^1.2.1",
"es6-promise": "^4.2.4",
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@


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

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

"@types/url-parse@1.4.4":
version "1.4.4"
Expand Down Expand Up @@ -78,9 +78,9 @@ mime-types@^2.1.12:
mime-db "1.52.0"

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

Expand Down