pingram 1.0.25-alpha.1397 → 1.0.26-alpha.1398
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/RegistrationsApi.d.ts +45 -1
- package/dist/generated/src/apis/RegistrationsApi.js +105 -0
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/TenDlcBrandAdminUpdateRequest.d.ts +1 -1
- package/dist/generated/src/models/TenDlcBrandRegistration.d.ts +2 -2
- package/dist/generated/src/models/TenDlcBrandRegistrationDetails.d.ts +2 -2
- package/dist/generated/src/models/TenDlcCampaignAdminUpdateRequest.d.ts +168 -0
- package/dist/generated/src/models/TenDlcCampaignAdminUpdateRequest.js +130 -0
- package/dist/generated/src/models/TenDlcCampaignRegistration.d.ts +186 -0
- package/dist/generated/src/models/TenDlcCampaignRegistration.js +144 -0
- package/dist/generated/src/models/TenDlcCampaignRegistrationDetails.d.ts +4 -4
- package/dist/generated/src/models/TenDlcCampaignRegistrationDetails.js +4 -4
- package/dist/generated/src/models/TenDlcCampaignUpdateRequest.d.ts +1 -23
- package/dist/generated/src/models/TenDlcCampaignUpdateRequest.js +2 -18
- package/dist/generated/src/models/index.d.ts +2 -0
- package/dist/generated/src/models/index.js +2 -0
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { TenDlcBrandCreateRequest, TenDlcBrandRegistration, TenDlcBrandUpdateRequest } from '../models/index';
|
|
13
|
+
import type { TenDlcBrandCreateRequest, TenDlcBrandRegistration, TenDlcBrandUpdateRequest, TenDlcCampaignRegistration, TenDlcCampaignUpdateRequest } from '../models/index';
|
|
14
14
|
export interface CreateUs10dlcBrandRequest {
|
|
15
15
|
tenDlcBrandCreateRequest: TenDlcBrandCreateRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface UpdateUs10dlcBrandRequest {
|
|
18
18
|
tenDlcBrandUpdateRequest: TenDlcBrandUpdateRequest;
|
|
19
19
|
}
|
|
20
|
+
export interface UpdateUs10dlcCampaignRequest {
|
|
21
|
+
tenDlcCampaignUpdateRequest: TenDlcCampaignUpdateRequest;
|
|
22
|
+
}
|
|
20
23
|
/**
|
|
21
24
|
* RegistrationsApi - interface
|
|
22
25
|
*
|
|
@@ -49,6 +52,18 @@ export interface RegistrationsApiInterface {
|
|
|
49
52
|
* Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
50
53
|
*/
|
|
51
54
|
getUs10dlcBrand(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @summary Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
* @memberof RegistrationsApiInterface
|
|
61
|
+
*/
|
|
62
|
+
getUs10dlcCampaignRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcCampaignRegistration>>;
|
|
63
|
+
/**
|
|
64
|
+
* Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.
|
|
65
|
+
*/
|
|
66
|
+
getUs10dlcCampaign(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcCampaignRegistration>;
|
|
52
67
|
/**
|
|
53
68
|
*
|
|
54
69
|
* @summary Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
@@ -62,6 +77,19 @@ export interface RegistrationsApiInterface {
|
|
|
62
77
|
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
63
78
|
*/
|
|
64
79
|
updateUs10dlcBrand(tenDlcBrandUpdateRequest: TenDlcBrandUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary Update an existing 10DLC campaign registration. Campaign fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
83
|
+
* @param {TenDlcCampaignUpdateRequest} tenDlcCampaignUpdateRequest
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
* @memberof RegistrationsApiInterface
|
|
87
|
+
*/
|
|
88
|
+
updateUs10dlcCampaignRaw(requestParameters: UpdateUs10dlcCampaignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcCampaignRegistration>>;
|
|
89
|
+
/**
|
|
90
|
+
* Update an existing 10DLC campaign registration. Campaign fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
91
|
+
*/
|
|
92
|
+
updateUs10dlcCampaign(tenDlcCampaignUpdateRequest: TenDlcCampaignUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcCampaignRegistration>;
|
|
65
93
|
}
|
|
66
94
|
/**
|
|
67
95
|
*
|
|
@@ -83,6 +111,14 @@ export declare class RegistrationsApi extends runtime.BaseAPI implements Registr
|
|
|
83
111
|
* Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
84
112
|
*/
|
|
85
113
|
getUs10dlcBrand(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
114
|
+
/**
|
|
115
|
+
* Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.
|
|
116
|
+
*/
|
|
117
|
+
getUs10dlcCampaignRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcCampaignRegistration>>;
|
|
118
|
+
/**
|
|
119
|
+
* Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.
|
|
120
|
+
*/
|
|
121
|
+
getUs10dlcCampaign(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcCampaignRegistration>;
|
|
86
122
|
/**
|
|
87
123
|
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
88
124
|
*/
|
|
@@ -91,4 +127,12 @@ export declare class RegistrationsApi extends runtime.BaseAPI implements Registr
|
|
|
91
127
|
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
92
128
|
*/
|
|
93
129
|
updateUs10dlcBrand(tenDlcBrandUpdateRequest: TenDlcBrandUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
130
|
+
/**
|
|
131
|
+
* Update an existing 10DLC campaign registration. Campaign fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
132
|
+
*/
|
|
133
|
+
updateUs10dlcCampaignRaw(requestParameters: UpdateUs10dlcCampaignRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcCampaignRegistration>>;
|
|
134
|
+
/**
|
|
135
|
+
* Update an existing 10DLC campaign registration. Campaign fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
136
|
+
*/
|
|
137
|
+
updateUs10dlcCampaign(tenDlcCampaignUpdateRequest: TenDlcCampaignUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcCampaignRegistration>;
|
|
94
138
|
}
|
|
@@ -158,6 +158,56 @@ class RegistrationsApi extends runtime.BaseAPI {
|
|
|
158
158
|
const response = await this.getUs10dlcBrandRaw(initOverrides);
|
|
159
159
|
return await response.value();
|
|
160
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.
|
|
163
|
+
*/
|
|
164
|
+
async getUs10dlcCampaignRaw(initOverrides) {
|
|
165
|
+
const queryParameters = {};
|
|
166
|
+
const headerParameters = {};
|
|
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 &&
|
|
175
|
+
(this.configuration.username !== undefined ||
|
|
176
|
+
this.configuration.password !== undefined)) {
|
|
177
|
+
headerParameters['Authorization'] =
|
|
178
|
+
'Basic ' +
|
|
179
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
180
|
+
}
|
|
181
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
182
|
+
const token = this.configuration.accessToken;
|
|
183
|
+
const tokenString = await token('apiKey', []);
|
|
184
|
+
if (tokenString) {
|
|
185
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (this.configuration &&
|
|
189
|
+
(this.configuration.username !== undefined ||
|
|
190
|
+
this.configuration.password !== undefined)) {
|
|
191
|
+
headerParameters['Authorization'] =
|
|
192
|
+
'Basic ' +
|
|
193
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
194
|
+
}
|
|
195
|
+
let urlPath = `/registrations/us/10dlc/campaign`;
|
|
196
|
+
const response = await this.request({
|
|
197
|
+
path: urlPath,
|
|
198
|
+
method: 'GET',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters
|
|
201
|
+
}, initOverrides);
|
|
202
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TenDlcCampaignRegistrationFromJSON)(jsonValue));
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.
|
|
206
|
+
*/
|
|
207
|
+
async getUs10dlcCampaign(initOverrides) {
|
|
208
|
+
const response = await this.getUs10dlcCampaignRaw(initOverrides);
|
|
209
|
+
return await response.value();
|
|
210
|
+
}
|
|
161
211
|
/**
|
|
162
212
|
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
163
213
|
*/
|
|
@@ -213,5 +263,60 @@ class RegistrationsApi extends runtime.BaseAPI {
|
|
|
213
263
|
const response = await this.updateUs10dlcBrandRaw({ tenDlcBrandUpdateRequest: tenDlcBrandUpdateRequest }, initOverrides);
|
|
214
264
|
return await response.value();
|
|
215
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Update an existing 10DLC campaign registration. Campaign fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
268
|
+
*/
|
|
269
|
+
async updateUs10dlcCampaignRaw(requestParameters, initOverrides) {
|
|
270
|
+
if (requestParameters['tenDlcCampaignUpdateRequest'] == null) {
|
|
271
|
+
throw new runtime.RequiredError('tenDlcCampaignUpdateRequest', 'Required parameter "tenDlcCampaignUpdateRequest" was null or undefined when calling updateUs10dlcCampaign().');
|
|
272
|
+
}
|
|
273
|
+
const queryParameters = {};
|
|
274
|
+
const headerParameters = {};
|
|
275
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
276
|
+
if (this.configuration &&
|
|
277
|
+
(this.configuration.username !== undefined ||
|
|
278
|
+
this.configuration.password !== undefined)) {
|
|
279
|
+
headerParameters['Authorization'] =
|
|
280
|
+
'Basic ' +
|
|
281
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
282
|
+
}
|
|
283
|
+
if (this.configuration &&
|
|
284
|
+
(this.configuration.username !== undefined ||
|
|
285
|
+
this.configuration.password !== undefined)) {
|
|
286
|
+
headerParameters['Authorization'] =
|
|
287
|
+
'Basic ' +
|
|
288
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
289
|
+
}
|
|
290
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
291
|
+
const token = this.configuration.accessToken;
|
|
292
|
+
const tokenString = await token('apiKey', []);
|
|
293
|
+
if (tokenString) {
|
|
294
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (this.configuration &&
|
|
298
|
+
(this.configuration.username !== undefined ||
|
|
299
|
+
this.configuration.password !== undefined)) {
|
|
300
|
+
headerParameters['Authorization'] =
|
|
301
|
+
'Basic ' +
|
|
302
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
303
|
+
}
|
|
304
|
+
let urlPath = `/registrations/us/10dlc/campaign`;
|
|
305
|
+
const response = await this.request({
|
|
306
|
+
path: urlPath,
|
|
307
|
+
method: 'PATCH',
|
|
308
|
+
headers: headerParameters,
|
|
309
|
+
query: queryParameters,
|
|
310
|
+
body: (0, index_1.TenDlcCampaignUpdateRequestToJSON)(requestParameters['tenDlcCampaignUpdateRequest'])
|
|
311
|
+
}, initOverrides);
|
|
312
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TenDlcCampaignRegistrationFromJSON)(jsonValue));
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Update an existing 10DLC campaign registration. Campaign fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
316
|
+
*/
|
|
317
|
+
async updateUs10dlcCampaign(tenDlcCampaignUpdateRequest, initOverrides) {
|
|
318
|
+
const response = await this.updateUs10dlcCampaignRaw({ tenDlcCampaignUpdateRequest: tenDlcCampaignUpdateRequest }, initOverrides);
|
|
319
|
+
return await response.value();
|
|
320
|
+
}
|
|
216
321
|
}
|
|
217
322
|
exports.RegistrationsApi = RegistrationsApi;
|
|
@@ -34,7 +34,7 @@ export type { OrderNumberRequest, ReleaseNumberRequest, SearchAvailableRequest,
|
|
|
34
34
|
export { NumbersApi } from './NumbersApi';
|
|
35
35
|
export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, DeleteAccountOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
|
|
36
36
|
export { ProfileApi } from './ProfileApi';
|
|
37
|
-
export type { CreateUs10dlcBrandRequest, UpdateUs10dlcBrandRequest, RegistrationsApiInterface } from './RegistrationsApi';
|
|
37
|
+
export type { CreateUs10dlcBrandRequest, UpdateUs10dlcBrandRequest, UpdateUs10dlcCampaignRequest, RegistrationsApiInterface } from './RegistrationsApi';
|
|
38
38
|
export { RegistrationsApi } from './RegistrationsApi';
|
|
39
39
|
export type { DeleteScheduleRequest, TestEmailRequest, UpdateScheduleRequest, SenderApiInterface } from './SenderApi';
|
|
40
40
|
export { SenderApi } from './SenderApi';
|
|
@@ -125,7 +125,7 @@ export interface TenDlcBrandAdminUpdateRequest {
|
|
|
125
125
|
*/
|
|
126
126
|
entityType?: string;
|
|
127
127
|
/**
|
|
128
|
-
* Pingram-side
|
|
128
|
+
* Pingram-side 10DLC registration workflow status (brand or campaign).
|
|
129
129
|
* - not_started: no customer submission yet
|
|
130
130
|
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
131
131
|
* - in_progress: submitted for carrier review
|
|
@@ -118,7 +118,7 @@ export interface TenDlcBrandRegistration {
|
|
|
118
118
|
*/
|
|
119
119
|
complianceContactPhone: string;
|
|
120
120
|
/**
|
|
121
|
-
* Pingram-side
|
|
121
|
+
* Pingram-side 10DLC registration workflow status (brand or campaign).
|
|
122
122
|
* - not_started: no customer submission yet
|
|
123
123
|
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
124
124
|
* - in_progress: submitted for carrier review
|
|
@@ -128,7 +128,7 @@ export interface TenDlcBrandRegistration {
|
|
|
128
128
|
*/
|
|
129
129
|
brandStatus: TenDlcBrandRegistrationBrandStatusEnum;
|
|
130
130
|
/**
|
|
131
|
-
* Pingram-side
|
|
131
|
+
* Pingram-side 10DLC registration workflow status (brand or campaign).
|
|
132
132
|
* - not_started: no customer submission yet
|
|
133
133
|
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
134
134
|
* - in_progress: submitted for carrier review
|
|
@@ -118,7 +118,7 @@ export interface TenDlcBrandRegistrationDetails {
|
|
|
118
118
|
*/
|
|
119
119
|
complianceContactPhone: string;
|
|
120
120
|
/**
|
|
121
|
-
* Pingram-side
|
|
121
|
+
* Pingram-side 10DLC registration workflow status (brand or campaign).
|
|
122
122
|
* - not_started: no customer submission yet
|
|
123
123
|
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
124
124
|
* - in_progress: submitted for carrier review
|
|
@@ -128,7 +128,7 @@ export interface TenDlcBrandRegistrationDetails {
|
|
|
128
128
|
*/
|
|
129
129
|
brandStatus: TenDlcBrandRegistrationDetailsBrandStatusEnum;
|
|
130
130
|
/**
|
|
131
|
-
* Pingram-side
|
|
131
|
+
* Pingram-side 10DLC registration workflow status (brand or campaign).
|
|
132
132
|
* - not_started: no customer submission yet
|
|
133
133
|
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
134
134
|
* - in_progress: submitted for carrier review
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
* Request body for PATCH /registrations/us/10dlc/campaign/admin
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TenDlcCampaignAdminUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface TenDlcCampaignAdminUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
campaignDescription?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
28
|
+
*/
|
|
29
|
+
campaignSample1?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
34
|
+
*/
|
|
35
|
+
campaignSample2?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
40
|
+
*/
|
|
41
|
+
campaignSample3?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
46
|
+
*/
|
|
47
|
+
campaignSample4?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
52
|
+
*/
|
|
53
|
+
campaignMessageFlow?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
58
|
+
*/
|
|
59
|
+
campaignOptinKeywords?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
64
|
+
*/
|
|
65
|
+
campaignOptinMessage?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
70
|
+
*/
|
|
71
|
+
campaignOptoutKeywords?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
76
|
+
*/
|
|
77
|
+
campaignOptoutMessage?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
82
|
+
*/
|
|
83
|
+
campaignHelpKeywords?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
88
|
+
*/
|
|
89
|
+
campaignHelpMessage?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
94
|
+
*/
|
|
95
|
+
campaignEmbeddedLink?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
100
|
+
*/
|
|
101
|
+
campaignEmbeddedLinkUrl?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
106
|
+
*/
|
|
107
|
+
campaignEmbeddedPhone?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
112
|
+
*/
|
|
113
|
+
campaignAgeGated?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
118
|
+
*/
|
|
119
|
+
campaignDirectLending?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
124
|
+
*/
|
|
125
|
+
campaignPrivacyPolicyLink?: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
130
|
+
*/
|
|
131
|
+
campaignTermsAndConditionsLink?: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
136
|
+
*/
|
|
137
|
+
campaignUsecase?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Pingram-side 10DLC registration workflow status (brand or campaign).
|
|
140
|
+
* - not_started: no customer submission yet
|
|
141
|
+
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
142
|
+
* - in_progress: submitted for carrier review
|
|
143
|
+
* - approved | rejected | info_needed: review outcome
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof TenDlcCampaignAdminUpdateRequest
|
|
146
|
+
*/
|
|
147
|
+
campaignStatus?: TenDlcCampaignAdminUpdateRequestCampaignStatusEnum;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @export
|
|
151
|
+
* @enum {string}
|
|
152
|
+
*/
|
|
153
|
+
export declare enum TenDlcCampaignAdminUpdateRequestCampaignStatusEnum {
|
|
154
|
+
NOT_STARTED = "not_started",
|
|
155
|
+
IN_PROGRESS = "in_progress",
|
|
156
|
+
PENDING_REVIEW = "pending_review",
|
|
157
|
+
APPROVED = "approved",
|
|
158
|
+
REJECTED = "rejected",
|
|
159
|
+
INFO_NEEDED = "info_needed"
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Check if a given object implements the TenDlcCampaignAdminUpdateRequest interface.
|
|
163
|
+
*/
|
|
164
|
+
export declare function instanceOfTenDlcCampaignAdminUpdateRequest(value: object): value is TenDlcCampaignAdminUpdateRequest;
|
|
165
|
+
export declare function TenDlcCampaignAdminUpdateRequestFromJSON(json: any): TenDlcCampaignAdminUpdateRequest;
|
|
166
|
+
export declare function TenDlcCampaignAdminUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenDlcCampaignAdminUpdateRequest;
|
|
167
|
+
export declare function TenDlcCampaignAdminUpdateRequestToJSON(json: any): TenDlcCampaignAdminUpdateRequest;
|
|
168
|
+
export declare function TenDlcCampaignAdminUpdateRequestToJSONTyped(value?: TenDlcCampaignAdminUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,130 @@
|
|
|
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.TenDlcCampaignAdminUpdateRequestCampaignStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfTenDlcCampaignAdminUpdateRequest = instanceOfTenDlcCampaignAdminUpdateRequest;
|
|
18
|
+
exports.TenDlcCampaignAdminUpdateRequestFromJSON = TenDlcCampaignAdminUpdateRequestFromJSON;
|
|
19
|
+
exports.TenDlcCampaignAdminUpdateRequestFromJSONTyped = TenDlcCampaignAdminUpdateRequestFromJSONTyped;
|
|
20
|
+
exports.TenDlcCampaignAdminUpdateRequestToJSON = TenDlcCampaignAdminUpdateRequestToJSON;
|
|
21
|
+
exports.TenDlcCampaignAdminUpdateRequestToJSONTyped = TenDlcCampaignAdminUpdateRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var TenDlcCampaignAdminUpdateRequestCampaignStatusEnum;
|
|
27
|
+
(function (TenDlcCampaignAdminUpdateRequestCampaignStatusEnum) {
|
|
28
|
+
TenDlcCampaignAdminUpdateRequestCampaignStatusEnum["NOT_STARTED"] = "not_started";
|
|
29
|
+
TenDlcCampaignAdminUpdateRequestCampaignStatusEnum["IN_PROGRESS"] = "in_progress";
|
|
30
|
+
TenDlcCampaignAdminUpdateRequestCampaignStatusEnum["PENDING_REVIEW"] = "pending_review";
|
|
31
|
+
TenDlcCampaignAdminUpdateRequestCampaignStatusEnum["APPROVED"] = "approved";
|
|
32
|
+
TenDlcCampaignAdminUpdateRequestCampaignStatusEnum["REJECTED"] = "rejected";
|
|
33
|
+
TenDlcCampaignAdminUpdateRequestCampaignStatusEnum["INFO_NEEDED"] = "info_needed";
|
|
34
|
+
})(TenDlcCampaignAdminUpdateRequestCampaignStatusEnum || (exports.TenDlcCampaignAdminUpdateRequestCampaignStatusEnum = TenDlcCampaignAdminUpdateRequestCampaignStatusEnum = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the TenDlcCampaignAdminUpdateRequest interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfTenDlcCampaignAdminUpdateRequest(value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function TenDlcCampaignAdminUpdateRequestFromJSON(json) {
|
|
42
|
+
return TenDlcCampaignAdminUpdateRequestFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TenDlcCampaignAdminUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
campaignDescription: json['campaignDescription'] == null
|
|
50
|
+
? undefined
|
|
51
|
+
: json['campaignDescription'],
|
|
52
|
+
campaignSample1: json['campaignSample1'] == null ? undefined : json['campaignSample1'],
|
|
53
|
+
campaignSample2: json['campaignSample2'] == null ? undefined : json['campaignSample2'],
|
|
54
|
+
campaignSample3: json['campaignSample3'] == null ? undefined : json['campaignSample3'],
|
|
55
|
+
campaignSample4: json['campaignSample4'] == null ? undefined : json['campaignSample4'],
|
|
56
|
+
campaignMessageFlow: json['campaignMessageFlow'] == null
|
|
57
|
+
? undefined
|
|
58
|
+
: json['campaignMessageFlow'],
|
|
59
|
+
campaignOptinKeywords: json['campaignOptinKeywords'] == null
|
|
60
|
+
? undefined
|
|
61
|
+
: json['campaignOptinKeywords'],
|
|
62
|
+
campaignOptinMessage: json['campaignOptinMessage'] == null
|
|
63
|
+
? undefined
|
|
64
|
+
: json['campaignOptinMessage'],
|
|
65
|
+
campaignOptoutKeywords: json['campaignOptoutKeywords'] == null
|
|
66
|
+
? undefined
|
|
67
|
+
: json['campaignOptoutKeywords'],
|
|
68
|
+
campaignOptoutMessage: json['campaignOptoutMessage'] == null
|
|
69
|
+
? undefined
|
|
70
|
+
: json['campaignOptoutMessage'],
|
|
71
|
+
campaignHelpKeywords: json['campaignHelpKeywords'] == null
|
|
72
|
+
? undefined
|
|
73
|
+
: json['campaignHelpKeywords'],
|
|
74
|
+
campaignHelpMessage: json['campaignHelpMessage'] == null
|
|
75
|
+
? undefined
|
|
76
|
+
: json['campaignHelpMessage'],
|
|
77
|
+
campaignEmbeddedLink: json['campaignEmbeddedLink'] == null
|
|
78
|
+
? undefined
|
|
79
|
+
: json['campaignEmbeddedLink'],
|
|
80
|
+
campaignEmbeddedLinkUrl: json['campaignEmbeddedLinkUrl'] == null
|
|
81
|
+
? undefined
|
|
82
|
+
: json['campaignEmbeddedLinkUrl'],
|
|
83
|
+
campaignEmbeddedPhone: json['campaignEmbeddedPhone'] == null
|
|
84
|
+
? undefined
|
|
85
|
+
: json['campaignEmbeddedPhone'],
|
|
86
|
+
campaignAgeGated: json['campaignAgeGated'] == null ? undefined : json['campaignAgeGated'],
|
|
87
|
+
campaignDirectLending: json['campaignDirectLending'] == null
|
|
88
|
+
? undefined
|
|
89
|
+
: json['campaignDirectLending'],
|
|
90
|
+
campaignPrivacyPolicyLink: json['campaignPrivacyPolicyLink'] == null
|
|
91
|
+
? undefined
|
|
92
|
+
: json['campaignPrivacyPolicyLink'],
|
|
93
|
+
campaignTermsAndConditionsLink: json['campaignTermsAndConditionsLink'] == null
|
|
94
|
+
? undefined
|
|
95
|
+
: json['campaignTermsAndConditionsLink'],
|
|
96
|
+
campaignUsecase: json['campaignUsecase'] == null ? undefined : json['campaignUsecase'],
|
|
97
|
+
campaignStatus: json['campaignStatus'] == null ? undefined : json['campaignStatus']
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function TenDlcCampaignAdminUpdateRequestToJSON(json) {
|
|
101
|
+
return TenDlcCampaignAdminUpdateRequestToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
function TenDlcCampaignAdminUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
campaignDescription: value['campaignDescription'],
|
|
109
|
+
campaignSample1: value['campaignSample1'],
|
|
110
|
+
campaignSample2: value['campaignSample2'],
|
|
111
|
+
campaignSample3: value['campaignSample3'],
|
|
112
|
+
campaignSample4: value['campaignSample4'],
|
|
113
|
+
campaignMessageFlow: value['campaignMessageFlow'],
|
|
114
|
+
campaignOptinKeywords: value['campaignOptinKeywords'],
|
|
115
|
+
campaignOptinMessage: value['campaignOptinMessage'],
|
|
116
|
+
campaignOptoutKeywords: value['campaignOptoutKeywords'],
|
|
117
|
+
campaignOptoutMessage: value['campaignOptoutMessage'],
|
|
118
|
+
campaignHelpKeywords: value['campaignHelpKeywords'],
|
|
119
|
+
campaignHelpMessage: value['campaignHelpMessage'],
|
|
120
|
+
campaignEmbeddedLink: value['campaignEmbeddedLink'],
|
|
121
|
+
campaignEmbeddedLinkUrl: value['campaignEmbeddedLinkUrl'],
|
|
122
|
+
campaignEmbeddedPhone: value['campaignEmbeddedPhone'],
|
|
123
|
+
campaignAgeGated: value['campaignAgeGated'],
|
|
124
|
+
campaignDirectLending: value['campaignDirectLending'],
|
|
125
|
+
campaignPrivacyPolicyLink: value['campaignPrivacyPolicyLink'],
|
|
126
|
+
campaignTermsAndConditionsLink: value['campaignTermsAndConditionsLink'],
|
|
127
|
+
campaignUsecase: value['campaignUsecase'],
|
|
128
|
+
campaignStatus: value['campaignStatus']
|
|
129
|
+
};
|
|
130
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
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
|
+
* Public response type for 10DLC campaign registration
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TenDlcCampaignRegistration
|
|
16
|
+
*/
|
|
17
|
+
export interface TenDlcCampaignRegistration {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TenDlcCampaignRegistration
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Pingram-side 10DLC registration workflow status (brand or campaign).
|
|
26
|
+
* - not_started: no customer submission yet
|
|
27
|
+
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
28
|
+
* - in_progress: submitted for carrier review
|
|
29
|
+
* - approved | rejected | info_needed: review outcome
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TenDlcCampaignRegistration
|
|
32
|
+
*/
|
|
33
|
+
campaignStatus: TenDlcCampaignRegistrationCampaignStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TenDlcCampaignRegistration
|
|
38
|
+
*/
|
|
39
|
+
campaignDescription?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TenDlcCampaignRegistration
|
|
44
|
+
*/
|
|
45
|
+
campaignSample1?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof TenDlcCampaignRegistration
|
|
50
|
+
*/
|
|
51
|
+
campaignSample2?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof TenDlcCampaignRegistration
|
|
56
|
+
*/
|
|
57
|
+
campaignSample3?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof TenDlcCampaignRegistration
|
|
62
|
+
*/
|
|
63
|
+
campaignSample4?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof TenDlcCampaignRegistration
|
|
68
|
+
*/
|
|
69
|
+
campaignMessageFlow?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof TenDlcCampaignRegistration
|
|
74
|
+
*/
|
|
75
|
+
campaignOptinKeywords?: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof TenDlcCampaignRegistration
|
|
80
|
+
*/
|
|
81
|
+
campaignOptinMessage?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof TenDlcCampaignRegistration
|
|
86
|
+
*/
|
|
87
|
+
campaignOptoutKeywords?: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof TenDlcCampaignRegistration
|
|
92
|
+
*/
|
|
93
|
+
campaignOptoutMessage?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof TenDlcCampaignRegistration
|
|
98
|
+
*/
|
|
99
|
+
campaignHelpKeywords?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof TenDlcCampaignRegistration
|
|
104
|
+
*/
|
|
105
|
+
campaignHelpMessage?: string;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {boolean}
|
|
109
|
+
* @memberof TenDlcCampaignRegistration
|
|
110
|
+
*/
|
|
111
|
+
campaignEmbeddedLink?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof TenDlcCampaignRegistration
|
|
116
|
+
*/
|
|
117
|
+
campaignEmbeddedLinkUrl?: string;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
* @memberof TenDlcCampaignRegistration
|
|
122
|
+
*/
|
|
123
|
+
campaignEmbeddedPhone?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {boolean}
|
|
127
|
+
* @memberof TenDlcCampaignRegistration
|
|
128
|
+
*/
|
|
129
|
+
campaignAgeGated?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {boolean}
|
|
133
|
+
* @memberof TenDlcCampaignRegistration
|
|
134
|
+
*/
|
|
135
|
+
campaignDirectLending?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {string}
|
|
139
|
+
* @memberof TenDlcCampaignRegistration
|
|
140
|
+
*/
|
|
141
|
+
campaignPrivacyPolicyLink?: string;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof TenDlcCampaignRegistration
|
|
146
|
+
*/
|
|
147
|
+
campaignTermsAndConditionsLink?: string;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof TenDlcCampaignRegistration
|
|
152
|
+
*/
|
|
153
|
+
campaignUsecase?: string;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof TenDlcCampaignRegistration
|
|
158
|
+
*/
|
|
159
|
+
createdAt: string;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof TenDlcCampaignRegistration
|
|
164
|
+
*/
|
|
165
|
+
updatedAt: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @export
|
|
169
|
+
* @enum {string}
|
|
170
|
+
*/
|
|
171
|
+
export declare enum TenDlcCampaignRegistrationCampaignStatusEnum {
|
|
172
|
+
NOT_STARTED = "not_started",
|
|
173
|
+
IN_PROGRESS = "in_progress",
|
|
174
|
+
PENDING_REVIEW = "pending_review",
|
|
175
|
+
APPROVED = "approved",
|
|
176
|
+
REJECTED = "rejected",
|
|
177
|
+
INFO_NEEDED = "info_needed"
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Check if a given object implements the TenDlcCampaignRegistration interface.
|
|
181
|
+
*/
|
|
182
|
+
export declare function instanceOfTenDlcCampaignRegistration(value: object): value is TenDlcCampaignRegistration;
|
|
183
|
+
export declare function TenDlcCampaignRegistrationFromJSON(json: any): TenDlcCampaignRegistration;
|
|
184
|
+
export declare function TenDlcCampaignRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenDlcCampaignRegistration;
|
|
185
|
+
export declare function TenDlcCampaignRegistrationToJSON(json: any): TenDlcCampaignRegistration;
|
|
186
|
+
export declare function TenDlcCampaignRegistrationToJSONTyped(value?: TenDlcCampaignRegistration | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,144 @@
|
|
|
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.TenDlcCampaignRegistrationCampaignStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfTenDlcCampaignRegistration = instanceOfTenDlcCampaignRegistration;
|
|
18
|
+
exports.TenDlcCampaignRegistrationFromJSON = TenDlcCampaignRegistrationFromJSON;
|
|
19
|
+
exports.TenDlcCampaignRegistrationFromJSONTyped = TenDlcCampaignRegistrationFromJSONTyped;
|
|
20
|
+
exports.TenDlcCampaignRegistrationToJSON = TenDlcCampaignRegistrationToJSON;
|
|
21
|
+
exports.TenDlcCampaignRegistrationToJSONTyped = TenDlcCampaignRegistrationToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var TenDlcCampaignRegistrationCampaignStatusEnum;
|
|
27
|
+
(function (TenDlcCampaignRegistrationCampaignStatusEnum) {
|
|
28
|
+
TenDlcCampaignRegistrationCampaignStatusEnum["NOT_STARTED"] = "not_started";
|
|
29
|
+
TenDlcCampaignRegistrationCampaignStatusEnum["IN_PROGRESS"] = "in_progress";
|
|
30
|
+
TenDlcCampaignRegistrationCampaignStatusEnum["PENDING_REVIEW"] = "pending_review";
|
|
31
|
+
TenDlcCampaignRegistrationCampaignStatusEnum["APPROVED"] = "approved";
|
|
32
|
+
TenDlcCampaignRegistrationCampaignStatusEnum["REJECTED"] = "rejected";
|
|
33
|
+
TenDlcCampaignRegistrationCampaignStatusEnum["INFO_NEEDED"] = "info_needed";
|
|
34
|
+
})(TenDlcCampaignRegistrationCampaignStatusEnum || (exports.TenDlcCampaignRegistrationCampaignStatusEnum = TenDlcCampaignRegistrationCampaignStatusEnum = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the TenDlcCampaignRegistration interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfTenDlcCampaignRegistration(value) {
|
|
39
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('campaignStatus' in value) || value['campaignStatus'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function TenDlcCampaignRegistrationFromJSON(json) {
|
|
50
|
+
return TenDlcCampaignRegistrationFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function TenDlcCampaignRegistrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
accountId: json['accountId'],
|
|
58
|
+
campaignStatus: json['campaignStatus'],
|
|
59
|
+
campaignDescription: json['campaignDescription'] == null
|
|
60
|
+
? undefined
|
|
61
|
+
: json['campaignDescription'],
|
|
62
|
+
campaignSample1: json['campaignSample1'] == null ? undefined : json['campaignSample1'],
|
|
63
|
+
campaignSample2: json['campaignSample2'] == null ? undefined : json['campaignSample2'],
|
|
64
|
+
campaignSample3: json['campaignSample3'] == null ? undefined : json['campaignSample3'],
|
|
65
|
+
campaignSample4: json['campaignSample4'] == null ? undefined : json['campaignSample4'],
|
|
66
|
+
campaignMessageFlow: json['campaignMessageFlow'] == null
|
|
67
|
+
? undefined
|
|
68
|
+
: json['campaignMessageFlow'],
|
|
69
|
+
campaignOptinKeywords: json['campaignOptinKeywords'] == null
|
|
70
|
+
? undefined
|
|
71
|
+
: json['campaignOptinKeywords'],
|
|
72
|
+
campaignOptinMessage: json['campaignOptinMessage'] == null
|
|
73
|
+
? undefined
|
|
74
|
+
: json['campaignOptinMessage'],
|
|
75
|
+
campaignOptoutKeywords: json['campaignOptoutKeywords'] == null
|
|
76
|
+
? undefined
|
|
77
|
+
: json['campaignOptoutKeywords'],
|
|
78
|
+
campaignOptoutMessage: json['campaignOptoutMessage'] == null
|
|
79
|
+
? undefined
|
|
80
|
+
: json['campaignOptoutMessage'],
|
|
81
|
+
campaignHelpKeywords: json['campaignHelpKeywords'] == null
|
|
82
|
+
? undefined
|
|
83
|
+
: json['campaignHelpKeywords'],
|
|
84
|
+
campaignHelpMessage: json['campaignHelpMessage'] == null
|
|
85
|
+
? undefined
|
|
86
|
+
: json['campaignHelpMessage'],
|
|
87
|
+
campaignEmbeddedLink: json['campaignEmbeddedLink'] == null
|
|
88
|
+
? undefined
|
|
89
|
+
: json['campaignEmbeddedLink'],
|
|
90
|
+
campaignEmbeddedLinkUrl: json['campaignEmbeddedLinkUrl'] == null
|
|
91
|
+
? undefined
|
|
92
|
+
: json['campaignEmbeddedLinkUrl'],
|
|
93
|
+
campaignEmbeddedPhone: json['campaignEmbeddedPhone'] == null
|
|
94
|
+
? undefined
|
|
95
|
+
: json['campaignEmbeddedPhone'],
|
|
96
|
+
campaignAgeGated: json['campaignAgeGated'] == null ? undefined : json['campaignAgeGated'],
|
|
97
|
+
campaignDirectLending: json['campaignDirectLending'] == null
|
|
98
|
+
? undefined
|
|
99
|
+
: json['campaignDirectLending'],
|
|
100
|
+
campaignPrivacyPolicyLink: json['campaignPrivacyPolicyLink'] == null
|
|
101
|
+
? undefined
|
|
102
|
+
: json['campaignPrivacyPolicyLink'],
|
|
103
|
+
campaignTermsAndConditionsLink: json['campaignTermsAndConditionsLink'] == null
|
|
104
|
+
? undefined
|
|
105
|
+
: json['campaignTermsAndConditionsLink'],
|
|
106
|
+
campaignUsecase: json['campaignUsecase'] == null ? undefined : json['campaignUsecase'],
|
|
107
|
+
createdAt: json['createdAt'],
|
|
108
|
+
updatedAt: json['updatedAt']
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function TenDlcCampaignRegistrationToJSON(json) {
|
|
112
|
+
return TenDlcCampaignRegistrationToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
function TenDlcCampaignRegistrationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
115
|
+
if (value == null) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
accountId: value['accountId'],
|
|
120
|
+
campaignStatus: value['campaignStatus'],
|
|
121
|
+
campaignDescription: value['campaignDescription'],
|
|
122
|
+
campaignSample1: value['campaignSample1'],
|
|
123
|
+
campaignSample2: value['campaignSample2'],
|
|
124
|
+
campaignSample3: value['campaignSample3'],
|
|
125
|
+
campaignSample4: value['campaignSample4'],
|
|
126
|
+
campaignMessageFlow: value['campaignMessageFlow'],
|
|
127
|
+
campaignOptinKeywords: value['campaignOptinKeywords'],
|
|
128
|
+
campaignOptinMessage: value['campaignOptinMessage'],
|
|
129
|
+
campaignOptoutKeywords: value['campaignOptoutKeywords'],
|
|
130
|
+
campaignOptoutMessage: value['campaignOptoutMessage'],
|
|
131
|
+
campaignHelpKeywords: value['campaignHelpKeywords'],
|
|
132
|
+
campaignHelpMessage: value['campaignHelpMessage'],
|
|
133
|
+
campaignEmbeddedLink: value['campaignEmbeddedLink'],
|
|
134
|
+
campaignEmbeddedLinkUrl: value['campaignEmbeddedLinkUrl'],
|
|
135
|
+
campaignEmbeddedPhone: value['campaignEmbeddedPhone'],
|
|
136
|
+
campaignAgeGated: value['campaignAgeGated'],
|
|
137
|
+
campaignDirectLending: value['campaignDirectLending'],
|
|
138
|
+
campaignPrivacyPolicyLink: value['campaignPrivacyPolicyLink'],
|
|
139
|
+
campaignTermsAndConditionsLink: value['campaignTermsAndConditionsLink'],
|
|
140
|
+
campaignUsecase: value['campaignUsecase'],
|
|
141
|
+
createdAt: value['createdAt'],
|
|
142
|
+
updatedAt: value['updatedAt']
|
|
143
|
+
};
|
|
144
|
+
}
|
|
@@ -22,7 +22,7 @@ export interface TenDlcCampaignRegistrationDetails {
|
|
|
22
22
|
*/
|
|
23
23
|
accountId: string;
|
|
24
24
|
/**
|
|
25
|
-
* Pingram-side
|
|
25
|
+
* Pingram-side 10DLC registration workflow status (brand or campaign).
|
|
26
26
|
* - not_started: no customer submission yet
|
|
27
27
|
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
28
28
|
* - in_progress: submitted for carrier review
|
|
@@ -156,19 +156,19 @@ export interface TenDlcCampaignRegistrationDetails {
|
|
|
156
156
|
* @type {string}
|
|
157
157
|
* @memberof TenDlcCampaignRegistrationDetails
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
createdAt: string;
|
|
160
160
|
/**
|
|
161
161
|
*
|
|
162
162
|
* @type {string}
|
|
163
163
|
* @memberof TenDlcCampaignRegistrationDetails
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
updatedAt: string;
|
|
166
166
|
/**
|
|
167
167
|
*
|
|
168
168
|
* @type {string}
|
|
169
169
|
* @memberof TenDlcCampaignRegistrationDetails
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
campaignId?: string;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
174
|
* @export
|
|
@@ -104,9 +104,9 @@ function TenDlcCampaignRegistrationDetailsFromJSONTyped(json, ignoreDiscriminato
|
|
|
104
104
|
? undefined
|
|
105
105
|
: json['campaignTermsAndConditionsLink'],
|
|
106
106
|
campaignUsecase: json['campaignUsecase'] == null ? undefined : json['campaignUsecase'],
|
|
107
|
-
campaignId: json['campaignId'] == null ? undefined : json['campaignId'],
|
|
108
107
|
createdAt: json['createdAt'],
|
|
109
|
-
updatedAt: json['updatedAt']
|
|
108
|
+
updatedAt: json['updatedAt'],
|
|
109
|
+
campaignId: json['campaignId'] == null ? undefined : json['campaignId']
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
function TenDlcCampaignRegistrationDetailsToJSON(json) {
|
|
@@ -139,8 +139,8 @@ function TenDlcCampaignRegistrationDetailsToJSONTyped(value, ignoreDiscriminator
|
|
|
139
139
|
campaignPrivacyPolicyLink: value['campaignPrivacyPolicyLink'],
|
|
140
140
|
campaignTermsAndConditionsLink: value['campaignTermsAndConditionsLink'],
|
|
141
141
|
campaignUsecase: value['campaignUsecase'],
|
|
142
|
-
campaignId: value['campaignId'],
|
|
143
142
|
createdAt: value['createdAt'],
|
|
144
|
-
updatedAt: value['updatedAt']
|
|
143
|
+
updatedAt: value['updatedAt'],
|
|
144
|
+
campaignId: value['campaignId']
|
|
145
145
|
};
|
|
146
146
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Request body for PATCH /registrations/us/10dlc/campaign
|
|
13
|
+
* Request body for PATCH /registrations/us/10dlc/campaign
|
|
14
14
|
* @export
|
|
15
15
|
* @interface TenDlcCampaignUpdateRequest
|
|
16
16
|
*/
|
|
@@ -135,28 +135,6 @@ export interface TenDlcCampaignUpdateRequest {
|
|
|
135
135
|
* @memberof TenDlcCampaignUpdateRequest
|
|
136
136
|
*/
|
|
137
137
|
campaignUsecase?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Pingram-side brand registration workflow status.
|
|
140
|
-
* - not_started: no customer submission yet
|
|
141
|
-
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
142
|
-
* - in_progress: submitted for carrier review
|
|
143
|
-
* - approved | rejected | info_needed: review outcome
|
|
144
|
-
* @type {string}
|
|
145
|
-
* @memberof TenDlcCampaignUpdateRequest
|
|
146
|
-
*/
|
|
147
|
-
campaignStatus?: TenDlcCampaignUpdateRequestCampaignStatusEnum;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* @export
|
|
151
|
-
* @enum {string}
|
|
152
|
-
*/
|
|
153
|
-
export declare enum TenDlcCampaignUpdateRequestCampaignStatusEnum {
|
|
154
|
-
NOT_STARTED = "not_started",
|
|
155
|
-
IN_PROGRESS = "in_progress",
|
|
156
|
-
PENDING_REVIEW = "pending_review",
|
|
157
|
-
APPROVED = "approved",
|
|
158
|
-
REJECTED = "rejected",
|
|
159
|
-
INFO_NEEDED = "info_needed"
|
|
160
138
|
}
|
|
161
139
|
/**
|
|
162
140
|
* Check if a given object implements the TenDlcCampaignUpdateRequest interface.
|
|
@@ -13,25 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.TenDlcCampaignUpdateRequestCampaignStatusEnum = void 0;
|
|
17
16
|
exports.instanceOfTenDlcCampaignUpdateRequest = instanceOfTenDlcCampaignUpdateRequest;
|
|
18
17
|
exports.TenDlcCampaignUpdateRequestFromJSON = TenDlcCampaignUpdateRequestFromJSON;
|
|
19
18
|
exports.TenDlcCampaignUpdateRequestFromJSONTyped = TenDlcCampaignUpdateRequestFromJSONTyped;
|
|
20
19
|
exports.TenDlcCampaignUpdateRequestToJSON = TenDlcCampaignUpdateRequestToJSON;
|
|
21
20
|
exports.TenDlcCampaignUpdateRequestToJSONTyped = TenDlcCampaignUpdateRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
* @enum {string}
|
|
25
|
-
*/
|
|
26
|
-
var TenDlcCampaignUpdateRequestCampaignStatusEnum;
|
|
27
|
-
(function (TenDlcCampaignUpdateRequestCampaignStatusEnum) {
|
|
28
|
-
TenDlcCampaignUpdateRequestCampaignStatusEnum["NOT_STARTED"] = "not_started";
|
|
29
|
-
TenDlcCampaignUpdateRequestCampaignStatusEnum["IN_PROGRESS"] = "in_progress";
|
|
30
|
-
TenDlcCampaignUpdateRequestCampaignStatusEnum["PENDING_REVIEW"] = "pending_review";
|
|
31
|
-
TenDlcCampaignUpdateRequestCampaignStatusEnum["APPROVED"] = "approved";
|
|
32
|
-
TenDlcCampaignUpdateRequestCampaignStatusEnum["REJECTED"] = "rejected";
|
|
33
|
-
TenDlcCampaignUpdateRequestCampaignStatusEnum["INFO_NEEDED"] = "info_needed";
|
|
34
|
-
})(TenDlcCampaignUpdateRequestCampaignStatusEnum || (exports.TenDlcCampaignUpdateRequestCampaignStatusEnum = TenDlcCampaignUpdateRequestCampaignStatusEnum = {}));
|
|
35
21
|
/**
|
|
36
22
|
* Check if a given object implements the TenDlcCampaignUpdateRequest interface.
|
|
37
23
|
*/
|
|
@@ -93,8 +79,7 @@ function TenDlcCampaignUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
79
|
campaignTermsAndConditionsLink: json['campaignTermsAndConditionsLink'] == null
|
|
94
80
|
? undefined
|
|
95
81
|
: json['campaignTermsAndConditionsLink'],
|
|
96
|
-
campaignUsecase: json['campaignUsecase'] == null ? undefined : json['campaignUsecase']
|
|
97
|
-
campaignStatus: json['campaignStatus'] == null ? undefined : json['campaignStatus']
|
|
82
|
+
campaignUsecase: json['campaignUsecase'] == null ? undefined : json['campaignUsecase']
|
|
98
83
|
};
|
|
99
84
|
}
|
|
100
85
|
function TenDlcCampaignUpdateRequestToJSON(json) {
|
|
@@ -124,7 +109,6 @@ function TenDlcCampaignUpdateRequestToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
124
109
|
campaignDirectLending: value['campaignDirectLending'],
|
|
125
110
|
campaignPrivacyPolicyLink: value['campaignPrivacyPolicyLink'],
|
|
126
111
|
campaignTermsAndConditionsLink: value['campaignTermsAndConditionsLink'],
|
|
127
|
-
campaignUsecase: value['campaignUsecase']
|
|
128
|
-
campaignStatus: value['campaignStatus']
|
|
112
|
+
campaignUsecase: value['campaignUsecase']
|
|
129
113
|
};
|
|
130
114
|
}
|
|
@@ -253,6 +253,8 @@ export * from './TenDlcBrandCreateRequest';
|
|
|
253
253
|
export * from './TenDlcBrandRegistration';
|
|
254
254
|
export * from './TenDlcBrandRegistrationDetails';
|
|
255
255
|
export * from './TenDlcBrandUpdateRequest';
|
|
256
|
+
export * from './TenDlcCampaignAdminUpdateRequest';
|
|
257
|
+
export * from './TenDlcCampaignRegistration';
|
|
256
258
|
export * from './TenDlcCampaignRegistrationDetails';
|
|
257
259
|
export * from './TenDlcCampaignUpdateRequest';
|
|
258
260
|
export * from './Transfer';
|
|
@@ -271,6 +271,8 @@ __exportStar(require("./TenDlcBrandCreateRequest"), exports);
|
|
|
271
271
|
__exportStar(require("./TenDlcBrandRegistration"), exports);
|
|
272
272
|
__exportStar(require("./TenDlcBrandRegistrationDetails"), exports);
|
|
273
273
|
__exportStar(require("./TenDlcBrandUpdateRequest"), exports);
|
|
274
|
+
__exportStar(require("./TenDlcCampaignAdminUpdateRequest"), exports);
|
|
275
|
+
__exportStar(require("./TenDlcCampaignRegistration"), exports);
|
|
274
276
|
__exportStar(require("./TenDlcCampaignRegistrationDetails"), exports);
|
|
275
277
|
__exportStar(require("./TenDlcCampaignUpdateRequest"), exports);
|
|
276
278
|
__exportStar(require("./Transfer"), exports);
|
package/dist/src/client.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.Pingram = void 0;
|
|
9
9
|
const src_1 = require("../generated/src");
|
|
10
10
|
// SDK version for User-Agent header (injected at codegen time)
|
|
11
|
-
const SDK_VERSION = '1.0.
|
|
11
|
+
const SDK_VERSION = '1.0.26';
|
|
12
12
|
const USER_AGENT = `pingram-node/${SDK_VERSION}`;
|
|
13
13
|
const src_2 = require("../generated/src");
|
|
14
14
|
const src_3 = require("../generated/src");
|
package/package.json
CHANGED