@onesignal/node-onesignal 5.3.0-beta1 → 5.4.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.
- package/dist/apis/DefaultApi.js +44 -44
- package/dist/index.d.ts +1 -1
- package/dist/models/BasicNotification.d.ts +7 -0
- package/dist/models/BasicNotification.js +36 -0
- package/dist/models/BasicNotificationAllOf.d.ts +7 -0
- package/dist/models/BasicNotificationAllOf.js +36 -0
- package/dist/models/Notification.d.ts +7 -0
- package/dist/models/Notification.js +36 -0
- package/dist/models/NotificationWithMeta.d.ts +7 -0
- package/dist/models/NotificationWithMeta.js +36 -0
- package/dist/models/ObjectSerializer.js +4 -0
- package/package.json +9 -3
- package/.github/ISSUE_TEMPLATE/ask-question.yml +0 -25
- package/.github/ISSUE_TEMPLATE/bug-report.yml +0 -51
- package/.github/ISSUE_TEMPLATE/general-feedback.yml +0 -25
- package/.github/pull_request_template.md +0 -44
- package/.github/workflows/asana-add-comment.yml +0 -47
- package/.github/workflows/asana-create-task.yml +0 -119
- package/.github/workflows/asana-update-issue.yml +0 -172
- package/.github/workflows/npm_deploy.yml +0 -22
- package/.github/workflows/project.yml +0 -17
- package/CHANGELOG.md +0 -48
- package/DefaultApi.md +0 -3293
- package/RELEASE_INSTRUCTIONS.md +0 -2
- package/apis/DefaultApi.ts +0 -4673
- package/apis/baseapi.ts +0 -37
- package/apis/exception.ts +0 -15
- package/auth/auth.ts +0 -110
- package/configuration.ts +0 -85
- package/dist/apis/DefaultApi.js.map +0 -1
- package/dist/apis/baseapi.js.map +0 -1
- package/dist/apis/exception.js.map +0 -1
- package/dist/auth/auth.js.map +0 -1
- package/dist/configuration.js.map +0 -1
- package/dist/http/http.js.map +0 -1
- package/dist/http/isomorphic-fetch.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/middleware.js.map +0 -1
- package/dist/models/ApiKeyToken.js.map +0 -1
- package/dist/models/ApiKeyTokensListResponse.js.map +0 -1
- package/dist/models/App.js.map +0 -1
- package/dist/models/BasicNotification.js.map +0 -1
- package/dist/models/BasicNotificationAllOf.js.map +0 -1
- package/dist/models/BasicNotificationAllOfAndroidBackgroundLayout.js.map +0 -1
- package/dist/models/Button.js.map +0 -1
- package/dist/models/CopyTemplateRequest.js.map +0 -1
- package/dist/models/CreateApiKeyRequest.js.map +0 -1
- package/dist/models/CreateApiKeyResponse.js.map +0 -1
- package/dist/models/CreateNotificationSuccessResponse.js.map +0 -1
- package/dist/models/CreateSegmentConflictResponse.js.map +0 -1
- package/dist/models/CreateSegmentSuccessResponse.js.map +0 -1
- package/dist/models/CreateTemplateRequest.js.map +0 -1
- package/dist/models/CreateUserConflictResponse.js.map +0 -1
- package/dist/models/CreateUserConflictResponseErrorsInner.js.map +0 -1
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +0 -1
- package/dist/models/CustomEvent.js.map +0 -1
- package/dist/models/CustomEventsRequest.js.map +0 -1
- package/dist/models/DeliveryData.js.map +0 -1
- package/dist/models/ExportEventsSuccessResponse.js.map +0 -1
- package/dist/models/ExportSubscriptionsRequestBody.js.map +0 -1
- package/dist/models/ExportSubscriptionsSuccessResponse.js.map +0 -1
- package/dist/models/Filter.js.map +0 -1
- package/dist/models/FilterExpression.js.map +0 -1
- package/dist/models/GenericError.js.map +0 -1
- package/dist/models/GenericSuccessBoolResponse.js.map +0 -1
- package/dist/models/GetNotificationHistoryRequestBody.js.map +0 -1
- package/dist/models/GetSegmentsSuccessResponse.js.map +0 -1
- package/dist/models/LanguageStringMap.js.map +0 -1
- package/dist/models/Notification.js.map +0 -1
- package/dist/models/NotificationAllOf.js.map +0 -1
- package/dist/models/NotificationHistorySuccessResponse.js.map +0 -1
- package/dist/models/NotificationSlice.js.map +0 -1
- package/dist/models/NotificationTarget.js.map +0 -1
- package/dist/models/NotificationWithMeta.js.map +0 -1
- package/dist/models/NotificationWithMetaAllOf.js.map +0 -1
- package/dist/models/ObjectSerializer.js.map +0 -1
- package/dist/models/Operator.js.map +0 -1
- package/dist/models/OutcomeData.js.map +0 -1
- package/dist/models/OutcomesData.js.map +0 -1
- package/dist/models/PlatformDeliveryData.js.map +0 -1
- package/dist/models/PlatformDeliveryDataEmailAllOf.js.map +0 -1
- package/dist/models/PlatformDeliveryDataSmsAllOf.js.map +0 -1
- package/dist/models/PropertiesBody.js.map +0 -1
- package/dist/models/PropertiesDeltas.js.map +0 -1
- package/dist/models/PropertiesObject.js.map +0 -1
- package/dist/models/Purchase.js.map +0 -1
- package/dist/models/RateLimitError.js.map +0 -1
- package/dist/models/Segment.js.map +0 -1
- package/dist/models/SegmentData.js.map +0 -1
- package/dist/models/SegmentNotificationTarget.js.map +0 -1
- package/dist/models/StartLiveActivityRequest.js.map +0 -1
- package/dist/models/StartLiveActivitySuccessResponse.js.map +0 -1
- package/dist/models/Subscription.js.map +0 -1
- package/dist/models/SubscriptionBody.js.map +0 -1
- package/dist/models/SubscriptionNotificationTarget.js.map +0 -1
- package/dist/models/TemplateResource.js.map +0 -1
- package/dist/models/TemplatesListResponse.js.map +0 -1
- package/dist/models/TransferSubscriptionRequestBody.js.map +0 -1
- package/dist/models/UpdateApiKeyRequest.js.map +0 -1
- package/dist/models/UpdateLiveActivityRequest.js.map +0 -1
- package/dist/models/UpdateLiveActivitySuccessResponse.js.map +0 -1
- package/dist/models/UpdateTemplateRequest.js.map +0 -1
- package/dist/models/UpdateUserRequest.js.map +0 -1
- package/dist/models/User.js.map +0 -1
- package/dist/models/UserIdentityBody.js.map +0 -1
- package/dist/models/WebButton.js.map +0 -1
- package/dist/models/all.js.map +0 -1
- package/dist/rxjsStub.js.map +0 -1
- package/dist/servers.js.map +0 -1
- package/dist/types/ObjectParamAPI.js.map +0 -1
- package/dist/types/ObservableAPI.js.map +0 -1
- package/dist/types/PromiseAPI.js.map +0 -1
- package/dist/util.js.map +0 -1
- package/http/http.ts +0 -205
- package/http/isomorphic-fetch.ts +0 -30
- package/index.ts +0 -12
- package/middleware.ts +0 -66
- package/models/ApiKeyToken.ts +0 -69
- package/models/ApiKeyTokensListResponse.ts +0 -32
- package/models/App.ts +0 -328
- package/models/BasicNotification.ts +0 -1088
- package/models/BasicNotificationAllOf.ts +0 -958
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +0 -57
- package/models/Button.ts +0 -45
- package/models/CopyTemplateRequest.ts +0 -34
- package/models/CreateApiKeyRequest.ts +0 -48
- package/models/CreateApiKeyResponse.ts +0 -38
- package/models/CreateNotificationSuccessResponse.ts +0 -48
- package/models/CreateSegmentConflictResponse.ts +0 -38
- package/models/CreateSegmentSuccessResponse.ts +0 -41
- package/models/CreateTemplateRequest.ts +0 -102
- package/models/CreateUserConflictResponse.ts +0 -32
- package/models/CreateUserConflictResponseErrorsInner.ts +0 -46
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +0 -31
- package/models/CustomEvent.ts +0 -74
- package/models/CustomEventsRequest.ts +0 -32
- package/models/DeliveryData.ts +0 -74
- package/models/ExportEventsSuccessResponse.ts +0 -31
- package/models/ExportSubscriptionsRequestBody.ts +0 -54
- package/models/ExportSubscriptionsSuccessResponse.ts +0 -31
- package/models/Filter.ts +0 -107
- package/models/FilterExpression.ts +0 -120
- package/models/GenericError.ts +0 -45
- package/models/GenericSuccessBoolResponse.ts +0 -31
- package/models/GetNotificationHistoryRequestBody.ts +0 -54
- package/models/GetSegmentsSuccessResponse.ts +0 -65
- package/models/LanguageStringMap.ts +0 -454
- package/models/Notification.ts +0 -1098
- package/models/NotificationAllOf.ts +0 -34
- package/models/NotificationHistorySuccessResponse.ts +0 -38
- package/models/NotificationSlice.ts +0 -53
- package/models/NotificationTarget.ts +0 -156
- package/models/NotificationWithMeta.ts +0 -1206
- package/models/NotificationWithMetaAllOf.ts +0 -142
- package/models/ObjectSerializer.ts +0 -442
- package/models/Operator.ts +0 -37
- package/models/OutcomeData.ts +0 -48
- package/models/OutcomesData.ts +0 -32
- package/models/PlatformDeliveryData.ts +0 -86
- package/models/PlatformDeliveryDataEmailAllOf.ts +0 -94
- package/models/PlatformDeliveryDataSmsAllOf.ts +0 -54
- package/models/PropertiesBody.ts +0 -32
- package/models/PropertiesDeltas.ts +0 -46
- package/models/PropertiesObject.ts +0 -102
- package/models/Purchase.ts +0 -61
- package/models/RateLimitError.ts +0 -38
- package/models/Segment.ts +0 -55
- package/models/SegmentData.ts +0 -94
- package/models/SegmentNotificationTarget.ts +0 -44
- package/models/StartLiveActivityRequest.ts +0 -177
- package/models/StartLiveActivitySuccessResponse.ts +0 -31
- package/models/Subscription.ts +0 -146
- package/models/SubscriptionBody.ts +0 -32
- package/models/SubscriptionNotificationTarget.ts +0 -134
- package/models/TemplateResource.ts +0 -72
- package/models/TemplatesListResponse.ts +0 -32
- package/models/TransferSubscriptionRequestBody.ts +0 -31
- package/models/UpdateApiKeyRequest.ts +0 -48
- package/models/UpdateLiveActivityRequest.ts +0 -109
- package/models/UpdateLiveActivitySuccessResponse.ts +0 -31
- package/models/UpdateTemplateRequest.ts +0 -92
- package/models/UpdateUserRequest.ts +0 -47
- package/models/User.ts +0 -47
- package/models/UserIdentityBody.ts +0 -31
- package/models/WebButton.ts +0 -52
- package/models/all.ts +0 -67
- package/onesignal-node-onesignal-5.3.0-beta1.tgz +0 -0
- package/rxjsStub.ts +0 -27
- package/servers.ts +0 -53
- package/tsconfig.json +0 -28
- package/types/ObjectParamAPI.ts +0 -1270
- package/types/ObservableAPI.ts +0 -1201
- package/types/PromiseAPI.ts +0 -585
- package/util.ts +0 -37
|
@@ -1,57 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Channel: Push Notifications Platform: Android Allowing setting a background image for the notification. This is a JSON object containing the following keys. See our Background Image documentation for image sizes.
|
|
13
|
-
*/
|
|
14
|
-
export class BasicNotificationAllOfAndroidBackgroundLayout {
|
|
15
|
-
/**
|
|
16
|
-
* Asset file, android resource name, or URL to remote image.
|
|
17
|
-
*/
|
|
18
|
-
'image'?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Title text color ARGB Hex format. Example(Blue) \"FF0000FF\".
|
|
21
|
-
*/
|
|
22
|
-
'headings_color'?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Body text color ARGB Hex format. Example(Red) \"FFFF0000\".
|
|
25
|
-
*/
|
|
26
|
-
'contents_color'?: string;
|
|
27
|
-
|
|
28
|
-
static readonly discriminator: string | undefined = undefined;
|
|
29
|
-
|
|
30
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
-
{
|
|
32
|
-
"name": "image",
|
|
33
|
-
"baseName": "image",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"format": ""
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "headings_color",
|
|
39
|
-
"baseName": "headings_color",
|
|
40
|
-
"type": "string",
|
|
41
|
-
"format": ""
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "contents_color",
|
|
45
|
-
"baseName": "contents_color",
|
|
46
|
-
"type": "string",
|
|
47
|
-
"format": ""
|
|
48
|
-
} ];
|
|
49
|
-
|
|
50
|
-
static getAttributeTypeMap() {
|
|
51
|
-
return BasicNotificationAllOfAndroidBackgroundLayout.attributeTypeMap;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
public constructor() {
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
package/models/Button.ts
DELETED
|
@@ -1,45 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class Button {
|
|
12
|
-
'id': string;
|
|
13
|
-
'text'?: string;
|
|
14
|
-
'icon'?: string;
|
|
15
|
-
|
|
16
|
-
static readonly discriminator: string | undefined = undefined;
|
|
17
|
-
|
|
18
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
19
|
-
{
|
|
20
|
-
"name": "id",
|
|
21
|
-
"baseName": "id",
|
|
22
|
-
"type": "string",
|
|
23
|
-
"format": ""
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "text",
|
|
27
|
-
"baseName": "text",
|
|
28
|
-
"type": "string",
|
|
29
|
-
"format": ""
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "icon",
|
|
33
|
-
"baseName": "icon",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"format": ""
|
|
36
|
-
} ];
|
|
37
|
-
|
|
38
|
-
static getAttributeTypeMap() {
|
|
39
|
-
return Button.attributeTypeMap;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public constructor() {
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
@@ -1,34 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class CopyTemplateRequest {
|
|
12
|
-
/**
|
|
13
|
-
* Destination OneSignal App ID in UUID v4 format.
|
|
14
|
-
*/
|
|
15
|
-
'target_app_id': string;
|
|
16
|
-
|
|
17
|
-
static readonly discriminator: string | undefined = undefined;
|
|
18
|
-
|
|
19
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
20
|
-
{
|
|
21
|
-
"name": "target_app_id",
|
|
22
|
-
"baseName": "target_app_id",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"format": ""
|
|
25
|
-
} ];
|
|
26
|
-
|
|
27
|
-
static getAttributeTypeMap() {
|
|
28
|
-
return CopyTemplateRequest.attributeTypeMap;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public constructor() {
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
@@ -1,48 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class CreateApiKeyRequest {
|
|
12
|
-
'name'?: string;
|
|
13
|
-
'ip_allowlist_mode'?: CreateApiKeyRequestIpAllowlistModeEnum;
|
|
14
|
-
'ip_allowlist'?: Array<string>;
|
|
15
|
-
|
|
16
|
-
static readonly discriminator: string | undefined = undefined;
|
|
17
|
-
|
|
18
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
19
|
-
{
|
|
20
|
-
"name": "name",
|
|
21
|
-
"baseName": "name",
|
|
22
|
-
"type": "string",
|
|
23
|
-
"format": ""
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "ip_allowlist_mode",
|
|
27
|
-
"baseName": "ip_allowlist_mode",
|
|
28
|
-
"type": "CreateApiKeyRequestIpAllowlistModeEnum",
|
|
29
|
-
"format": ""
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "ip_allowlist",
|
|
33
|
-
"baseName": "ip_allowlist",
|
|
34
|
-
"type": "Array<string>",
|
|
35
|
-
"format": ""
|
|
36
|
-
} ];
|
|
37
|
-
|
|
38
|
-
static getAttributeTypeMap() {
|
|
39
|
-
return CreateApiKeyRequest.attributeTypeMap;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public constructor() {
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export type CreateApiKeyRequestIpAllowlistModeEnum = "disabled" | "explicit" ;
|
|
48
|
-
|
|
@@ -1,38 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class CreateApiKeyResponse {
|
|
12
|
-
'token_id'?: string;
|
|
13
|
-
'formatted_token'?: string;
|
|
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": "token_id",
|
|
20
|
-
"baseName": "token_id",
|
|
21
|
-
"type": "string",
|
|
22
|
-
"format": ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "formatted_token",
|
|
26
|
-
"baseName": "formatted_token",
|
|
27
|
-
"type": "string",
|
|
28
|
-
"format": ""
|
|
29
|
-
} ];
|
|
30
|
-
|
|
31
|
-
static getAttributeTypeMap() {
|
|
32
|
-
return CreateApiKeyResponse.attributeTypeMap;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
public constructor() {
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
@@ -1,48 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class CreateNotificationSuccessResponse {
|
|
12
|
-
'id'?: string;
|
|
13
|
-
'external_id'?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Errors include the identifiers that are invalid, or that there are no subscribers.
|
|
16
|
-
*/
|
|
17
|
-
'errors'?: any;
|
|
18
|
-
|
|
19
|
-
static readonly discriminator: string | undefined = undefined;
|
|
20
|
-
|
|
21
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
22
|
-
{
|
|
23
|
-
"name": "id",
|
|
24
|
-
"baseName": "id",
|
|
25
|
-
"type": "string",
|
|
26
|
-
"format": ""
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "external_id",
|
|
30
|
-
"baseName": "external_id",
|
|
31
|
-
"type": "string",
|
|
32
|
-
"format": ""
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "errors",
|
|
36
|
-
"baseName": "errors",
|
|
37
|
-
"type": "any",
|
|
38
|
-
"format": ""
|
|
39
|
-
} ];
|
|
40
|
-
|
|
41
|
-
static getAttributeTypeMap() {
|
|
42
|
-
return CreateNotificationSuccessResponse.attributeTypeMap;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
public constructor() {
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
@@ -1,38 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class CreateSegmentConflictResponse {
|
|
12
|
-
'success'?: boolean;
|
|
13
|
-
'errors'?: Array<string>;
|
|
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": "success",
|
|
20
|
-
"baseName": "success",
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"format": ""
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "errors",
|
|
26
|
-
"baseName": "errors",
|
|
27
|
-
"type": "Array<string>",
|
|
28
|
-
"format": ""
|
|
29
|
-
} ];
|
|
30
|
-
|
|
31
|
-
static getAttributeTypeMap() {
|
|
32
|
-
return CreateSegmentConflictResponse.attributeTypeMap;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
public constructor() {
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
@@ -1,41 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class CreateSegmentSuccessResponse {
|
|
12
|
-
'success'?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* UUID of created segment
|
|
15
|
-
*/
|
|
16
|
-
'id'?: string;
|
|
17
|
-
|
|
18
|
-
static readonly discriminator: string | undefined = undefined;
|
|
19
|
-
|
|
20
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
21
|
-
{
|
|
22
|
-
"name": "success",
|
|
23
|
-
"baseName": "success",
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"format": ""
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "id",
|
|
29
|
-
"baseName": "id",
|
|
30
|
-
"type": "string",
|
|
31
|
-
"format": ""
|
|
32
|
-
} ];
|
|
33
|
-
|
|
34
|
-
static getAttributeTypeMap() {
|
|
35
|
-
return CreateSegmentSuccessResponse.attributeTypeMap;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
public constructor() {
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1,102 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { LanguageStringMap } from './LanguageStringMap';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class CreateTemplateRequest {
|
|
13
|
-
/**
|
|
14
|
-
* Your OneSignal App ID in UUID v4 format.
|
|
15
|
-
*/
|
|
16
|
-
'app_id': string;
|
|
17
|
-
/**
|
|
18
|
-
* Name of the template.
|
|
19
|
-
*/
|
|
20
|
-
'name': string;
|
|
21
|
-
'contents': LanguageStringMap;
|
|
22
|
-
/**
|
|
23
|
-
* Set true for an Email template.
|
|
24
|
-
*/
|
|
25
|
-
'is_email'?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Subject of the email.
|
|
28
|
-
*/
|
|
29
|
-
'email_subject'?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Body of the email (HTML supported).
|
|
32
|
-
*/
|
|
33
|
-
'email_body'?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Set true for an SMS template.
|
|
36
|
-
*/
|
|
37
|
-
'is_sms'?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* JSON string for dynamic content personalization.
|
|
40
|
-
*/
|
|
41
|
-
'dynamic_content'?: string;
|
|
42
|
-
|
|
43
|
-
static readonly discriminator: string | undefined = undefined;
|
|
44
|
-
|
|
45
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
46
|
-
{
|
|
47
|
-
"name": "app_id",
|
|
48
|
-
"baseName": "app_id",
|
|
49
|
-
"type": "string",
|
|
50
|
-
"format": ""
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "name",
|
|
54
|
-
"baseName": "name",
|
|
55
|
-
"type": "string",
|
|
56
|
-
"format": ""
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "contents",
|
|
60
|
-
"baseName": "contents",
|
|
61
|
-
"type": "LanguageStringMap",
|
|
62
|
-
"format": ""
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "is_email",
|
|
66
|
-
"baseName": "isEmail",
|
|
67
|
-
"type": "boolean",
|
|
68
|
-
"format": ""
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "email_subject",
|
|
72
|
-
"baseName": "email_subject",
|
|
73
|
-
"type": "string",
|
|
74
|
-
"format": ""
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"name": "email_body",
|
|
78
|
-
"baseName": "email_body",
|
|
79
|
-
"type": "string",
|
|
80
|
-
"format": ""
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "is_sms",
|
|
84
|
-
"baseName": "isSMS",
|
|
85
|
-
"type": "boolean",
|
|
86
|
-
"format": ""
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "dynamic_content",
|
|
90
|
-
"baseName": "dynamic_content",
|
|
91
|
-
"type": "string",
|
|
92
|
-
"format": ""
|
|
93
|
-
} ];
|
|
94
|
-
|
|
95
|
-
static getAttributeTypeMap() {
|
|
96
|
-
return CreateTemplateRequest.attributeTypeMap;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
public constructor() {
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
@@ -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: 5.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { CreateUserConflictResponseErrorsInner } from './CreateUserConflictResponseErrorsInner';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class CreateUserConflictResponse {
|
|
13
|
-
'errors'?: Array<CreateUserConflictResponseErrorsInner>;
|
|
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<CreateUserConflictResponseErrorsInner>",
|
|
22
|
-
"format": ""
|
|
23
|
-
} ];
|
|
24
|
-
|
|
25
|
-
static getAttributeTypeMap() {
|
|
26
|
-
return CreateUserConflictResponse.attributeTypeMap;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public constructor() {
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
@@ -1,46 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { CreateUserConflictResponseErrorsItemsMeta } from './CreateUserConflictResponseErrorsItemsMeta';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class CreateUserConflictResponseErrorsInner {
|
|
13
|
-
'code'?: string;
|
|
14
|
-
'title'?: string;
|
|
15
|
-
'meta'?: CreateUserConflictResponseErrorsItemsMeta;
|
|
16
|
-
|
|
17
|
-
static readonly discriminator: string | undefined = undefined;
|
|
18
|
-
|
|
19
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
20
|
-
{
|
|
21
|
-
"name": "code",
|
|
22
|
-
"baseName": "code",
|
|
23
|
-
"type": "string",
|
|
24
|
-
"format": ""
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "title",
|
|
28
|
-
"baseName": "title",
|
|
29
|
-
"type": "string",
|
|
30
|
-
"format": ""
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "meta",
|
|
34
|
-
"baseName": "meta",
|
|
35
|
-
"type": "CreateUserConflictResponseErrorsItemsMeta",
|
|
36
|
-
"format": ""
|
|
37
|
-
} ];
|
|
38
|
-
|
|
39
|
-
static getAttributeTypeMap() {
|
|
40
|
-
return CreateUserConflictResponseErrorsInner.attributeTypeMap;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
public constructor() {
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
@@ -1,31 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class CreateUserConflictResponseErrorsItemsMeta {
|
|
12
|
-
'conflicting_aliases'?: object;
|
|
13
|
-
|
|
14
|
-
static readonly discriminator: string | undefined = undefined;
|
|
15
|
-
|
|
16
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
-
{
|
|
18
|
-
"name": "conflicting_aliases",
|
|
19
|
-
"baseName": "conflicting_aliases",
|
|
20
|
-
"type": "object",
|
|
21
|
-
"format": ""
|
|
22
|
-
} ];
|
|
23
|
-
|
|
24
|
-
static getAttributeTypeMap() {
|
|
25
|
-
return CreateUserConflictResponseErrorsItemsMeta.attributeTypeMap;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
public constructor() {
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
package/models/CustomEvent.ts
DELETED
|
@@ -1,74 +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.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { HttpFile } from '../http/http';
|
|
10
|
-
|
|
11
|
-
export class CustomEvent {
|
|
12
|
-
/**
|
|
13
|
-
* The identifier or name of the event. Maximum 128 characters.
|
|
14
|
-
*/
|
|
15
|
-
'name': string;
|
|
16
|
-
/**
|
|
17
|
-
* The external ID of the user targeted for the event. Either the user\'s External ID or OneSignal ID is required.
|
|
18
|
-
*/
|
|
19
|
-
'external_id'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The OneSignal ID of the user targeted for the event. Either the user\'s External ID or OneSignal ID is required.
|
|
22
|
-
*/
|
|
23
|
-
'onesignal_id'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Time the event occurred as an ISO8601 formatted string. Defaults to now if not included or past date provided.
|
|
26
|
-
*/
|
|
27
|
-
'timestamp'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Properties or data related to the event, like {\"geography\": \"USA\"}
|
|
30
|
-
*/
|
|
31
|
-
'payload'?: { [key: string]: any; };
|
|
32
|
-
|
|
33
|
-
static readonly discriminator: string | undefined = undefined;
|
|
34
|
-
|
|
35
|
-
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
36
|
-
{
|
|
37
|
-
"name": "name",
|
|
38
|
-
"baseName": "name",
|
|
39
|
-
"type": "string",
|
|
40
|
-
"format": ""
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "external_id",
|
|
44
|
-
"baseName": "external_id",
|
|
45
|
-
"type": "string",
|
|
46
|
-
"format": ""
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "onesignal_id",
|
|
50
|
-
"baseName": "onesignal_id",
|
|
51
|
-
"type": "string",
|
|
52
|
-
"format": ""
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "timestamp",
|
|
56
|
-
"baseName": "timestamp",
|
|
57
|
-
"type": "string",
|
|
58
|
-
"format": "date-time"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "payload",
|
|
62
|
-
"baseName": "payload",
|
|
63
|
-
"type": "{ [key: string]: any; }",
|
|
64
|
-
"format": ""
|
|
65
|
-
} ];
|
|
66
|
-
|
|
67
|
-
static getAttributeTypeMap() {
|
|
68
|
-
return CustomEvent.attributeTypeMap;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
public constructor() {
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
@@ -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: 5.3.0
|
|
6
|
-
* Contact: devrel@onesignal.com
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { CustomEvent } from './CustomEvent';
|
|
10
|
-
import { HttpFile } from '../http/http';
|
|
11
|
-
|
|
12
|
-
export class CustomEventsRequest {
|
|
13
|
-
'events': Array<CustomEvent>;
|
|
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": "events",
|
|
20
|
-
"baseName": "events",
|
|
21
|
-
"type": "Array<CustomEvent>",
|
|
22
|
-
"format": ""
|
|
23
|
-
} ];
|
|
24
|
-
|
|
25
|
-
static getAttributeTypeMap() {
|
|
26
|
-
return CustomEventsRequest.attributeTypeMap;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public constructor() {
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|