pingram 1.0.19 → 1.0.20-alpha.1339
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/generated/src/apis/AccountApi.d.ts +33 -25
- package/dist/generated/src/apis/AccountApi.js +70 -54
- package/dist/generated/src/apis/EmailApi.d.ts +25 -1
- package/dist/generated/src/apis/EmailApi.js +54 -0
- package/dist/generated/src/apis/MembersApi.d.ts +4 -4
- package/dist/generated/src/apis/MembersApi.js +2 -2
- package/dist/generated/src/apis/index.d.ts +2 -4
- package/dist/generated/src/apis/index.js +1 -3
- package/dist/generated/src/models/CampaignWebhookResponse.d.ts +32 -0
- package/dist/generated/src/models/CampaignWebhookResponse.js +50 -0
- package/dist/generated/src/models/CreateAccountRequest.d.ts +34 -0
- package/dist/generated/src/models/CreateAccountRequest.js +48 -0
- package/dist/generated/src/models/CreateAccountResponse.d.ts +3 -3
- package/dist/generated/src/models/CreateAccountResponse.js +6 -6
- package/dist/generated/src/models/CreatePersonalAccessTokenRequest.d.ts +38 -0
- package/dist/generated/src/models/CreatePersonalAccessTokenRequest.js +52 -0
- package/dist/generated/src/models/CreatePersonalAccessTokenResponse.d.ts +74 -0
- package/dist/generated/src/models/CreatePersonalAccessTokenResponse.js +74 -0
- package/dist/generated/src/models/DeleteEmailSuppressionsResponse.d.ts +38 -0
- package/dist/generated/src/models/DeleteEmailSuppressionsResponse.js +54 -0
- package/dist/generated/src/models/GetMembersResponseInner.d.ts +14 -0
- package/dist/generated/src/models/GetMembersResponseInner.js +14 -1
- package/dist/generated/src/models/IntercomWebhookDataItem.d.ts +1 -1
- package/dist/generated/src/models/IntercomWebhookDataItemAnyOf.d.ts +1 -1
- package/dist/generated/src/models/ListInvoicesResponse.d.ts +39 -0
- package/dist/generated/src/models/ListInvoicesResponse.js +55 -0
- package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.d.ts +109 -0
- package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.js +95 -0
- package/dist/generated/src/models/ListPersonalAccessTokensResponse.d.ts +33 -0
- package/dist/generated/src/models/ListPersonalAccessTokensResponse.js +51 -0
- package/dist/generated/src/models/ListPersonalAccessTokensResponseTokensInner.d.ts +68 -0
- package/dist/generated/src/models/ListPersonalAccessTokensResponseTokensInner.js +70 -0
- package/dist/generated/src/models/MemberUpdateRequest.d.ts +1 -1
- package/dist/generated/src/models/TenDlcBrandRegistrationDetails.d.ts +3 -3
- package/dist/generated/src/models/TenDlcBrandRegistrationDetails.js +4 -4
- package/dist/generated/src/models/TenDlcCampaignRegistrationDetails.d.ts +192 -0
- package/dist/generated/src/models/TenDlcCampaignRegistrationDetails.js +146 -0
- package/dist/generated/src/models/TenDlcCampaignUpdateRequest.d.ts +168 -0
- package/dist/generated/src/models/TenDlcCampaignUpdateRequest.js +130 -0
- package/dist/generated/src/models/index.d.ts +11 -4
- package/dist/generated/src/models/index.js +11 -4
- package/dist/src/client.d.ts +0 -2
- package/dist/src/client.js +19 -22
- package/package.json +1 -1
- package/dist/generated/src/apis/PushSettingsApi.d.ts +0 -154
- package/dist/generated/src/apis/PushSettingsApi.js +0 -365
- package/dist/generated/src/models/APNConfig.d.ts +0 -50
- package/dist/generated/src/models/APNConfig.js +0 -62
- package/dist/generated/src/models/CreateAccountRequestBody.d.ts +0 -32
- package/dist/generated/src/models/CreateAccountRequestBody.js +0 -50
- package/dist/generated/src/models/PushSettingsFCMPutRequest.d.ts +0 -32
- package/dist/generated/src/models/PushSettingsFCMPutRequest.js +0 -50
- package/dist/generated/src/models/PushSettingsFCMResponse.d.ts +0 -32
- package/dist/generated/src/models/PushSettingsFCMResponse.js +0 -50
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pingram
|
|
3
|
-
* Internal API for notification delivery and management
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { APNConfig, PushSettingsFCMPutRequest, PushSettingsFCMResponse } from '../models/index';
|
|
14
|
-
export interface UpsertPushApnSettingsRequest {
|
|
15
|
-
aPNConfig: APNConfig;
|
|
16
|
-
}
|
|
17
|
-
export interface UpsertPushFcmSettingsRequest {
|
|
18
|
-
pushSettingsFCMPutRequest: PushSettingsFCMPutRequest;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* PushSettingsApi - interface
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
* @interface PushSettingsApiInterface
|
|
25
|
-
*/
|
|
26
|
-
export interface PushSettingsApiInterface {
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @summary Delete Apple Push Notification (APN) configuration for the current account.
|
|
30
|
-
* @param {*} [options] Override http request option.
|
|
31
|
-
* @throws {RequiredError}
|
|
32
|
-
* @memberof PushSettingsApiInterface
|
|
33
|
-
*/
|
|
34
|
-
deletePushApnSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
35
|
-
/**
|
|
36
|
-
* Delete Apple Push Notification (APN) configuration for the current account.
|
|
37
|
-
*/
|
|
38
|
-
deletePushApnSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @summary Delete Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
* @memberof PushSettingsApiInterface
|
|
45
|
-
*/
|
|
46
|
-
deletePushFcmSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
47
|
-
/**
|
|
48
|
-
* Delete Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
49
|
-
*/
|
|
50
|
-
deletePushFcmSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @summary Get Apple Push Notification (APN) configuration for the current account.
|
|
54
|
-
* @param {*} [options] Override http request option.
|
|
55
|
-
* @throws {RequiredError}
|
|
56
|
-
* @memberof PushSettingsApiInterface
|
|
57
|
-
*/
|
|
58
|
-
getPushApnSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APNConfig>>;
|
|
59
|
-
/**
|
|
60
|
-
* Get Apple Push Notification (APN) configuration for the current account.
|
|
61
|
-
*/
|
|
62
|
-
getPushApnSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APNConfig>;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @summary Get Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
66
|
-
* @param {*} [options] Override http request option.
|
|
67
|
-
* @throws {RequiredError}
|
|
68
|
-
* @memberof PushSettingsApiInterface
|
|
69
|
-
*/
|
|
70
|
-
getPushFcmSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PushSettingsFCMResponse>>;
|
|
71
|
-
/**
|
|
72
|
-
* Get Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
73
|
-
*/
|
|
74
|
-
getPushFcmSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PushSettingsFCMResponse>;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @summary Create or update Apple Push Notification (APN) configuration for the current account.
|
|
78
|
-
* @param {APNConfig} aPNConfig
|
|
79
|
-
* @param {*} [options] Override http request option.
|
|
80
|
-
* @throws {RequiredError}
|
|
81
|
-
* @memberof PushSettingsApiInterface
|
|
82
|
-
*/
|
|
83
|
-
upsertPushApnSettingsRaw(requestParameters: UpsertPushApnSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APNConfig>>;
|
|
84
|
-
/**
|
|
85
|
-
* Create or update Apple Push Notification (APN) configuration for the current account.
|
|
86
|
-
*/
|
|
87
|
-
upsertPushApnSettings(aPNConfig: APNConfig, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APNConfig>;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @summary Create or update Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
91
|
-
* @param {PushSettingsFCMPutRequest} pushSettingsFCMPutRequest
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
* @memberof PushSettingsApiInterface
|
|
95
|
-
*/
|
|
96
|
-
upsertPushFcmSettingsRaw(requestParameters: UpsertPushFcmSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PushSettingsFCMResponse>>;
|
|
97
|
-
/**
|
|
98
|
-
* Create or update Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
99
|
-
*/
|
|
100
|
-
upsertPushFcmSettings(pushSettingsFCMPutRequest: PushSettingsFCMPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PushSettingsFCMResponse>;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
export declare class PushSettingsApi extends runtime.BaseAPI implements PushSettingsApiInterface {
|
|
106
|
-
/**
|
|
107
|
-
* Delete Apple Push Notification (APN) configuration for the current account.
|
|
108
|
-
*/
|
|
109
|
-
deletePushApnSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
110
|
-
/**
|
|
111
|
-
* Delete Apple Push Notification (APN) configuration for the current account.
|
|
112
|
-
*/
|
|
113
|
-
deletePushApnSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
114
|
-
/**
|
|
115
|
-
* Delete Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
116
|
-
*/
|
|
117
|
-
deletePushFcmSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
118
|
-
/**
|
|
119
|
-
* Delete Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
120
|
-
*/
|
|
121
|
-
deletePushFcmSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
122
|
-
/**
|
|
123
|
-
* Get Apple Push Notification (APN) configuration for the current account.
|
|
124
|
-
*/
|
|
125
|
-
getPushApnSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APNConfig>>;
|
|
126
|
-
/**
|
|
127
|
-
* Get Apple Push Notification (APN) configuration for the current account.
|
|
128
|
-
*/
|
|
129
|
-
getPushApnSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APNConfig>;
|
|
130
|
-
/**
|
|
131
|
-
* Get Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
132
|
-
*/
|
|
133
|
-
getPushFcmSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PushSettingsFCMResponse>>;
|
|
134
|
-
/**
|
|
135
|
-
* Get Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
136
|
-
*/
|
|
137
|
-
getPushFcmSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PushSettingsFCMResponse>;
|
|
138
|
-
/**
|
|
139
|
-
* Create or update Apple Push Notification (APN) configuration for the current account.
|
|
140
|
-
*/
|
|
141
|
-
upsertPushApnSettingsRaw(requestParameters: UpsertPushApnSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<APNConfig>>;
|
|
142
|
-
/**
|
|
143
|
-
* Create or update Apple Push Notification (APN) configuration for the current account.
|
|
144
|
-
*/
|
|
145
|
-
upsertPushApnSettings(aPNConfig: APNConfig, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<APNConfig>;
|
|
146
|
-
/**
|
|
147
|
-
* Create or update Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
148
|
-
*/
|
|
149
|
-
upsertPushFcmSettingsRaw(requestParameters: UpsertPushFcmSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PushSettingsFCMResponse>>;
|
|
150
|
-
/**
|
|
151
|
-
* Create or update Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
152
|
-
*/
|
|
153
|
-
upsertPushFcmSettings(pushSettingsFCMPutRequest: PushSettingsFCMPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PushSettingsFCMResponse>;
|
|
154
|
-
}
|
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Pingram
|
|
6
|
-
* Internal API for notification delivery and management
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
-
}
|
|
21
|
-
Object.defineProperty(o, k2, desc);
|
|
22
|
-
}) : (function(o, m, k, k2) {
|
|
23
|
-
if (k2 === undefined) k2 = k;
|
|
24
|
-
o[k2] = m[k];
|
|
25
|
-
}));
|
|
26
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
-
}) : function(o, v) {
|
|
29
|
-
o["default"] = v;
|
|
30
|
-
});
|
|
31
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
-
var ownKeys = function(o) {
|
|
33
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
-
var ar = [];
|
|
35
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
-
return ar;
|
|
37
|
-
};
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
48
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.PushSettingsApi = void 0;
|
|
50
|
-
const runtime = __importStar(require("../runtime"));
|
|
51
|
-
const index_1 = require("../models/index");
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
class PushSettingsApi extends runtime.BaseAPI {
|
|
56
|
-
/**
|
|
57
|
-
* Delete Apple Push Notification (APN) configuration for the current account.
|
|
58
|
-
*/
|
|
59
|
-
async deletePushApnSettingsRaw(initOverrides) {
|
|
60
|
-
const queryParameters = {};
|
|
61
|
-
const headerParameters = {};
|
|
62
|
-
if (this.configuration &&
|
|
63
|
-
(this.configuration.username !== undefined ||
|
|
64
|
-
this.configuration.password !== undefined)) {
|
|
65
|
-
headerParameters['Authorization'] =
|
|
66
|
-
'Basic ' +
|
|
67
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
68
|
-
}
|
|
69
|
-
if (this.configuration &&
|
|
70
|
-
(this.configuration.username !== undefined ||
|
|
71
|
-
this.configuration.password !== undefined)) {
|
|
72
|
-
headerParameters['Authorization'] =
|
|
73
|
-
'Basic ' +
|
|
74
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
75
|
-
}
|
|
76
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
-
const token = this.configuration.accessToken;
|
|
78
|
-
const tokenString = await token('apiKey', []);
|
|
79
|
-
if (tokenString) {
|
|
80
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (this.configuration &&
|
|
84
|
-
(this.configuration.username !== undefined ||
|
|
85
|
-
this.configuration.password !== undefined)) {
|
|
86
|
-
headerParameters['Authorization'] =
|
|
87
|
-
'Basic ' +
|
|
88
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
89
|
-
}
|
|
90
|
-
let urlPath = `/settings/push/apn`;
|
|
91
|
-
const response = await this.request({
|
|
92
|
-
path: urlPath,
|
|
93
|
-
method: 'DELETE',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters
|
|
96
|
-
}, initOverrides);
|
|
97
|
-
return new runtime.VoidApiResponse(response);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Delete Apple Push Notification (APN) configuration for the current account.
|
|
101
|
-
*/
|
|
102
|
-
async deletePushApnSettings(initOverrides) {
|
|
103
|
-
await this.deletePushApnSettingsRaw(initOverrides);
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Delete Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
107
|
-
*/
|
|
108
|
-
async deletePushFcmSettingsRaw(initOverrides) {
|
|
109
|
-
const queryParameters = {};
|
|
110
|
-
const headerParameters = {};
|
|
111
|
-
if (this.configuration &&
|
|
112
|
-
(this.configuration.username !== undefined ||
|
|
113
|
-
this.configuration.password !== undefined)) {
|
|
114
|
-
headerParameters['Authorization'] =
|
|
115
|
-
'Basic ' +
|
|
116
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
117
|
-
}
|
|
118
|
-
if (this.configuration &&
|
|
119
|
-
(this.configuration.username !== undefined ||
|
|
120
|
-
this.configuration.password !== undefined)) {
|
|
121
|
-
headerParameters['Authorization'] =
|
|
122
|
-
'Basic ' +
|
|
123
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
124
|
-
}
|
|
125
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
126
|
-
const token = this.configuration.accessToken;
|
|
127
|
-
const tokenString = await token('apiKey', []);
|
|
128
|
-
if (tokenString) {
|
|
129
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
if (this.configuration &&
|
|
133
|
-
(this.configuration.username !== undefined ||
|
|
134
|
-
this.configuration.password !== undefined)) {
|
|
135
|
-
headerParameters['Authorization'] =
|
|
136
|
-
'Basic ' +
|
|
137
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
138
|
-
}
|
|
139
|
-
let urlPath = `/settings/push/fcm`;
|
|
140
|
-
const response = await this.request({
|
|
141
|
-
path: urlPath,
|
|
142
|
-
method: 'DELETE',
|
|
143
|
-
headers: headerParameters,
|
|
144
|
-
query: queryParameters
|
|
145
|
-
}, initOverrides);
|
|
146
|
-
return new runtime.VoidApiResponse(response);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Delete Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
150
|
-
*/
|
|
151
|
-
async deletePushFcmSettings(initOverrides) {
|
|
152
|
-
await this.deletePushFcmSettingsRaw(initOverrides);
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Get Apple Push Notification (APN) configuration for the current account.
|
|
156
|
-
*/
|
|
157
|
-
async getPushApnSettingsRaw(initOverrides) {
|
|
158
|
-
const queryParameters = {};
|
|
159
|
-
const headerParameters = {};
|
|
160
|
-
if (this.configuration &&
|
|
161
|
-
(this.configuration.username !== undefined ||
|
|
162
|
-
this.configuration.password !== undefined)) {
|
|
163
|
-
headerParameters['Authorization'] =
|
|
164
|
-
'Basic ' +
|
|
165
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
166
|
-
}
|
|
167
|
-
if (this.configuration &&
|
|
168
|
-
(this.configuration.username !== undefined ||
|
|
169
|
-
this.configuration.password !== undefined)) {
|
|
170
|
-
headerParameters['Authorization'] =
|
|
171
|
-
'Basic ' +
|
|
172
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
173
|
-
}
|
|
174
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
175
|
-
const token = this.configuration.accessToken;
|
|
176
|
-
const tokenString = await token('apiKey', []);
|
|
177
|
-
if (tokenString) {
|
|
178
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
if (this.configuration &&
|
|
182
|
-
(this.configuration.username !== undefined ||
|
|
183
|
-
this.configuration.password !== undefined)) {
|
|
184
|
-
headerParameters['Authorization'] =
|
|
185
|
-
'Basic ' +
|
|
186
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
187
|
-
}
|
|
188
|
-
let urlPath = `/settings/push/apn`;
|
|
189
|
-
const response = await this.request({
|
|
190
|
-
path: urlPath,
|
|
191
|
-
method: 'GET',
|
|
192
|
-
headers: headerParameters,
|
|
193
|
-
query: queryParameters
|
|
194
|
-
}, initOverrides);
|
|
195
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.APNConfigFromJSON)(jsonValue));
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Get Apple Push Notification (APN) configuration for the current account.
|
|
199
|
-
*/
|
|
200
|
-
async getPushApnSettings(initOverrides) {
|
|
201
|
-
const response = await this.getPushApnSettingsRaw(initOverrides);
|
|
202
|
-
return await response.value();
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Get Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
206
|
-
*/
|
|
207
|
-
async getPushFcmSettingsRaw(initOverrides) {
|
|
208
|
-
const queryParameters = {};
|
|
209
|
-
const headerParameters = {};
|
|
210
|
-
if (this.configuration &&
|
|
211
|
-
(this.configuration.username !== undefined ||
|
|
212
|
-
this.configuration.password !== undefined)) {
|
|
213
|
-
headerParameters['Authorization'] =
|
|
214
|
-
'Basic ' +
|
|
215
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
216
|
-
}
|
|
217
|
-
if (this.configuration &&
|
|
218
|
-
(this.configuration.username !== undefined ||
|
|
219
|
-
this.configuration.password !== undefined)) {
|
|
220
|
-
headerParameters['Authorization'] =
|
|
221
|
-
'Basic ' +
|
|
222
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
223
|
-
}
|
|
224
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
225
|
-
const token = this.configuration.accessToken;
|
|
226
|
-
const tokenString = await token('apiKey', []);
|
|
227
|
-
if (tokenString) {
|
|
228
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
if (this.configuration &&
|
|
232
|
-
(this.configuration.username !== undefined ||
|
|
233
|
-
this.configuration.password !== undefined)) {
|
|
234
|
-
headerParameters['Authorization'] =
|
|
235
|
-
'Basic ' +
|
|
236
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
237
|
-
}
|
|
238
|
-
let urlPath = `/settings/push/fcm`;
|
|
239
|
-
const response = await this.request({
|
|
240
|
-
path: urlPath,
|
|
241
|
-
method: 'GET',
|
|
242
|
-
headers: headerParameters,
|
|
243
|
-
query: queryParameters
|
|
244
|
-
}, initOverrides);
|
|
245
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PushSettingsFCMResponseFromJSON)(jsonValue));
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Get Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
249
|
-
*/
|
|
250
|
-
async getPushFcmSettings(initOverrides) {
|
|
251
|
-
const response = await this.getPushFcmSettingsRaw(initOverrides);
|
|
252
|
-
return await response.value();
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Create or update Apple Push Notification (APN) configuration for the current account.
|
|
256
|
-
*/
|
|
257
|
-
async upsertPushApnSettingsRaw(requestParameters, initOverrides) {
|
|
258
|
-
if (requestParameters['aPNConfig'] == null) {
|
|
259
|
-
throw new runtime.RequiredError('aPNConfig', 'Required parameter "aPNConfig" was null or undefined when calling upsertPushApnSettings().');
|
|
260
|
-
}
|
|
261
|
-
const queryParameters = {};
|
|
262
|
-
const headerParameters = {};
|
|
263
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
264
|
-
if (this.configuration &&
|
|
265
|
-
(this.configuration.username !== undefined ||
|
|
266
|
-
this.configuration.password !== undefined)) {
|
|
267
|
-
headerParameters['Authorization'] =
|
|
268
|
-
'Basic ' +
|
|
269
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
270
|
-
}
|
|
271
|
-
if (this.configuration &&
|
|
272
|
-
(this.configuration.username !== undefined ||
|
|
273
|
-
this.configuration.password !== undefined)) {
|
|
274
|
-
headerParameters['Authorization'] =
|
|
275
|
-
'Basic ' +
|
|
276
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
277
|
-
}
|
|
278
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
279
|
-
const token = this.configuration.accessToken;
|
|
280
|
-
const tokenString = await token('apiKey', []);
|
|
281
|
-
if (tokenString) {
|
|
282
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
if (this.configuration &&
|
|
286
|
-
(this.configuration.username !== undefined ||
|
|
287
|
-
this.configuration.password !== undefined)) {
|
|
288
|
-
headerParameters['Authorization'] =
|
|
289
|
-
'Basic ' +
|
|
290
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
291
|
-
}
|
|
292
|
-
let urlPath = `/settings/push/apn`;
|
|
293
|
-
const response = await this.request({
|
|
294
|
-
path: urlPath,
|
|
295
|
-
method: 'PUT',
|
|
296
|
-
headers: headerParameters,
|
|
297
|
-
query: queryParameters,
|
|
298
|
-
body: (0, index_1.APNConfigToJSON)(requestParameters['aPNConfig'])
|
|
299
|
-
}, initOverrides);
|
|
300
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.APNConfigFromJSON)(jsonValue));
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* Create or update Apple Push Notification (APN) configuration for the current account.
|
|
304
|
-
*/
|
|
305
|
-
async upsertPushApnSettings(aPNConfig, initOverrides) {
|
|
306
|
-
const response = await this.upsertPushApnSettingsRaw({ aPNConfig: aPNConfig }, initOverrides);
|
|
307
|
-
return await response.value();
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Create or update Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
311
|
-
*/
|
|
312
|
-
async upsertPushFcmSettingsRaw(requestParameters, initOverrides) {
|
|
313
|
-
if (requestParameters['pushSettingsFCMPutRequest'] == null) {
|
|
314
|
-
throw new runtime.RequiredError('pushSettingsFCMPutRequest', 'Required parameter "pushSettingsFCMPutRequest" was null or undefined when calling upsertPushFcmSettings().');
|
|
315
|
-
}
|
|
316
|
-
const queryParameters = {};
|
|
317
|
-
const headerParameters = {};
|
|
318
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
319
|
-
if (this.configuration &&
|
|
320
|
-
(this.configuration.username !== undefined ||
|
|
321
|
-
this.configuration.password !== undefined)) {
|
|
322
|
-
headerParameters['Authorization'] =
|
|
323
|
-
'Basic ' +
|
|
324
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
325
|
-
}
|
|
326
|
-
if (this.configuration &&
|
|
327
|
-
(this.configuration.username !== undefined ||
|
|
328
|
-
this.configuration.password !== undefined)) {
|
|
329
|
-
headerParameters['Authorization'] =
|
|
330
|
-
'Basic ' +
|
|
331
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
332
|
-
}
|
|
333
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
334
|
-
const token = this.configuration.accessToken;
|
|
335
|
-
const tokenString = await token('apiKey', []);
|
|
336
|
-
if (tokenString) {
|
|
337
|
-
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
if (this.configuration &&
|
|
341
|
-
(this.configuration.username !== undefined ||
|
|
342
|
-
this.configuration.password !== undefined)) {
|
|
343
|
-
headerParameters['Authorization'] =
|
|
344
|
-
'Basic ' +
|
|
345
|
-
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
346
|
-
}
|
|
347
|
-
let urlPath = `/settings/push/fcm`;
|
|
348
|
-
const response = await this.request({
|
|
349
|
-
path: urlPath,
|
|
350
|
-
method: 'PUT',
|
|
351
|
-
headers: headerParameters,
|
|
352
|
-
query: queryParameters,
|
|
353
|
-
body: (0, index_1.PushSettingsFCMPutRequestToJSON)(requestParameters['pushSettingsFCMPutRequest'])
|
|
354
|
-
}, initOverrides);
|
|
355
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PushSettingsFCMResponseFromJSON)(jsonValue));
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Create or update Firebase Cloud Messaging (FCM) configuration for the current account.
|
|
359
|
-
*/
|
|
360
|
-
async upsertPushFcmSettings(pushSettingsFCMPutRequest, initOverrides) {
|
|
361
|
-
const response = await this.upsertPushFcmSettingsRaw({ pushSettingsFCMPutRequest: pushSettingsFCMPutRequest }, initOverrides);
|
|
362
|
-
return await response.value();
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
exports.PushSettingsApi = PushSettingsApi;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pingram
|
|
3
|
-
* Internal API for notification delivery and management
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface APNConfig
|
|
16
|
-
*/
|
|
17
|
-
export interface APNConfig {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof APNConfig
|
|
22
|
-
*/
|
|
23
|
-
KeyId: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof APNConfig
|
|
28
|
-
*/
|
|
29
|
-
Key: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof APNConfig
|
|
34
|
-
*/
|
|
35
|
-
TeamId: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof APNConfig
|
|
40
|
-
*/
|
|
41
|
-
Topic: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the APNConfig interface.
|
|
45
|
-
*/
|
|
46
|
-
export declare function instanceOfAPNConfig(value: object): value is APNConfig;
|
|
47
|
-
export declare function APNConfigFromJSON(json: any): APNConfig;
|
|
48
|
-
export declare function APNConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): APNConfig;
|
|
49
|
-
export declare function APNConfigToJSON(json: any): APNConfig;
|
|
50
|
-
export declare function APNConfigToJSONTyped(value?: APNConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Pingram
|
|
6
|
-
* Internal API for notification delivery and management
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfAPNConfig = instanceOfAPNConfig;
|
|
17
|
-
exports.APNConfigFromJSON = APNConfigFromJSON;
|
|
18
|
-
exports.APNConfigFromJSONTyped = APNConfigFromJSONTyped;
|
|
19
|
-
exports.APNConfigToJSON = APNConfigToJSON;
|
|
20
|
-
exports.APNConfigToJSONTyped = APNConfigToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the APNConfig interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfAPNConfig(value) {
|
|
25
|
-
if (!('KeyId' in value) || value['KeyId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('Key' in value) || value['Key'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('TeamId' in value) || value['TeamId'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('Topic' in value) || value['Topic'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function APNConfigFromJSON(json) {
|
|
36
|
-
return APNConfigFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function APNConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
KeyId: json['KeyId'],
|
|
44
|
-
Key: json['Key'],
|
|
45
|
-
TeamId: json['TeamId'],
|
|
46
|
-
Topic: json['Topic']
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function APNConfigToJSON(json) {
|
|
50
|
-
return APNConfigToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function APNConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
KeyId: value['KeyId'],
|
|
58
|
-
Key: value['Key'],
|
|
59
|
-
TeamId: value['TeamId'],
|
|
60
|
-
Topic: value['Topic']
|
|
61
|
-
};
|
|
62
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pingram
|
|
3
|
-
* Internal API for notification delivery and management
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CreateAccountRequestBody
|
|
16
|
-
*/
|
|
17
|
-
export interface CreateAccountRequestBody {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateAccountRequestBody
|
|
22
|
-
*/
|
|
23
|
-
name: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the CreateAccountRequestBody interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfCreateAccountRequestBody(value: object): value is CreateAccountRequestBody;
|
|
29
|
-
export declare function CreateAccountRequestBodyFromJSON(json: any): CreateAccountRequestBody;
|
|
30
|
-
export declare function CreateAccountRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountRequestBody;
|
|
31
|
-
export declare function CreateAccountRequestBodyToJSON(json: any): CreateAccountRequestBody;
|
|
32
|
-
export declare function CreateAccountRequestBodyToJSONTyped(value?: CreateAccountRequestBody | null, ignoreDiscriminator?: boolean): any;
|