pingram 1.0.24 → 1.0.25-alpha.1387
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/EmailApi.d.ts +9 -9
- package/dist/generated/src/apis/EmailApi.js +3 -3
- package/dist/generated/src/apis/RegistrationsApi.d.ts +94 -0
- package/dist/generated/src/apis/RegistrationsApi.js +217 -0
- package/dist/generated/src/apis/index.d.ts +2 -0
- package/dist/generated/src/apis/index.js +3 -1
- package/dist/generated/src/models/LogsGetResponseLogsInner.d.ts +10 -5
- package/dist/generated/src/models/LogsGetResponseLogsInner.js +5 -0
- package/dist/generated/src/models/TenDlcBrandAdminUpdateRequest.d.ts +205 -0
- package/dist/generated/src/models/TenDlcBrandAdminUpdateRequest.js +151 -0
- package/dist/generated/src/models/TenDlcBrandCreateRequest.d.ts +33 -7
- package/dist/generated/src/models/TenDlcBrandCreateRequest.js +22 -0
- package/dist/generated/src/models/TenDlcBrandRegistrationDetails.d.ts +1 -1
- package/dist/generated/src/models/TenDlcBrandUpdateRequest.d.ts +26 -34
- package/dist/generated/src/models/TenDlcBrandUpdateRequest.js +18 -16
- package/dist/generated/src/models/index.d.ts +1 -1
- package/dist/generated/src/models/index.js +1 -1
- package/dist/src/client.d.ts +2 -0
- package/dist/src/client.js +22 -19
- package/package.json +1 -1
- package/dist/generated/src/models/DeleteEmailSuppressionsResponse.d.ts +0 -38
- package/dist/generated/src/models/DeleteEmailSuppressionsResponse.js +0 -54
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
13
|
+
import type { MessageResponse, SendEmailApiResponse, SendEmailRequest } from '../models/index';
|
|
14
14
|
export interface DeleteSuppressionsRequest {
|
|
15
15
|
reason: string;
|
|
16
16
|
}
|
|
@@ -26,17 +26,17 @@ export interface SendRequest {
|
|
|
26
26
|
export interface EmailApiInterface {
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
|
-
* @summary
|
|
29
|
+
* @summary Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
|
|
30
30
|
* @param {string} reason Suppression reason to clear (retryable | bounces)
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
* @memberof EmailApiInterface
|
|
34
34
|
*/
|
|
35
|
-
deleteSuppressionsRaw(requestParameters: DeleteSuppressionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
35
|
+
deleteSuppressionsRaw(requestParameters: DeleteSuppressionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessageResponse>>;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
|
|
38
38
|
*/
|
|
39
|
-
deleteSuppressions(reason: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
39
|
+
deleteSuppressions(reason: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageResponse>;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @summary Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
|
|
@@ -56,13 +56,13 @@ export interface EmailApiInterface {
|
|
|
56
56
|
*/
|
|
57
57
|
export declare class EmailApi extends runtime.BaseAPI implements EmailApiInterface {
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
|
|
60
60
|
*/
|
|
61
|
-
deleteSuppressionsRaw(requestParameters: DeleteSuppressionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
61
|
+
deleteSuppressionsRaw(requestParameters: DeleteSuppressionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessageResponse>>;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
|
|
64
64
|
*/
|
|
65
|
-
deleteSuppressions(reason: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
65
|
+
deleteSuppressions(reason: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageResponse>;
|
|
66
66
|
/**
|
|
67
67
|
* Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
|
|
68
68
|
*/
|
|
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class EmailApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
|
|
58
58
|
*/
|
|
59
59
|
async deleteSuppressionsRaw(requestParameters, initOverrides) {
|
|
60
60
|
if (requestParameters['reason'] == null) {
|
|
@@ -98,10 +98,10 @@ class EmailApi extends runtime.BaseAPI {
|
|
|
98
98
|
headers: headerParameters,
|
|
99
99
|
query: queryParameters
|
|
100
100
|
}, initOverrides);
|
|
101
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MessageResponseFromJSON)(jsonValue));
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.
|
|
105
105
|
*/
|
|
106
106
|
async deleteSuppressions(reason, initOverrides) {
|
|
107
107
|
const response = await this.deleteSuppressionsRaw({ reason: reason }, initOverrides);
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { TenDlcBrandCreateRequest, TenDlcBrandRegistration, TenDlcBrandUpdateRequest } from '../models/index';
|
|
14
|
+
export interface CreateUs10dlcBrandRequest {
|
|
15
|
+
tenDlcBrandCreateRequest: TenDlcBrandCreateRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface UpdateUs10dlcBrandRequest {
|
|
18
|
+
tenDlcBrandUpdateRequest: TenDlcBrandUpdateRequest;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* RegistrationsApi - interface
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface RegistrationsApiInterface
|
|
25
|
+
*/
|
|
26
|
+
export interface RegistrationsApiInterface {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @summary Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
|
|
30
|
+
* @param {TenDlcBrandCreateRequest} tenDlcBrandCreateRequest
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
* @memberof RegistrationsApiInterface
|
|
34
|
+
*/
|
|
35
|
+
createUs10dlcBrandRaw(requestParameters: CreateUs10dlcBrandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcBrandRegistration>>;
|
|
36
|
+
/**
|
|
37
|
+
* Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
|
|
38
|
+
*/
|
|
39
|
+
createUs10dlcBrand(tenDlcBrandCreateRequest: TenDlcBrandCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
* @memberof RegistrationsApiInterface
|
|
46
|
+
*/
|
|
47
|
+
getUs10dlcBrandRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcBrandRegistration>>;
|
|
48
|
+
/**
|
|
49
|
+
* Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
50
|
+
*/
|
|
51
|
+
getUs10dlcBrand(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
55
|
+
* @param {TenDlcBrandUpdateRequest} tenDlcBrandUpdateRequest
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
* @memberof RegistrationsApiInterface
|
|
59
|
+
*/
|
|
60
|
+
updateUs10dlcBrandRaw(requestParameters: UpdateUs10dlcBrandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcBrandRegistration>>;
|
|
61
|
+
/**
|
|
62
|
+
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
63
|
+
*/
|
|
64
|
+
updateUs10dlcBrand(tenDlcBrandUpdateRequest: TenDlcBrandUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
export declare class RegistrationsApi extends runtime.BaseAPI implements RegistrationsApiInterface {
|
|
70
|
+
/**
|
|
71
|
+
* Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
|
|
72
|
+
*/
|
|
73
|
+
createUs10dlcBrandRaw(requestParameters: CreateUs10dlcBrandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcBrandRegistration>>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
|
|
76
|
+
*/
|
|
77
|
+
createUs10dlcBrand(tenDlcBrandCreateRequest: TenDlcBrandCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
78
|
+
/**
|
|
79
|
+
* Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
80
|
+
*/
|
|
81
|
+
getUs10dlcBrandRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcBrandRegistration>>;
|
|
82
|
+
/**
|
|
83
|
+
* Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
84
|
+
*/
|
|
85
|
+
getUs10dlcBrand(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
86
|
+
/**
|
|
87
|
+
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
88
|
+
*/
|
|
89
|
+
updateUs10dlcBrandRaw(requestParameters: UpdateUs10dlcBrandRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenDlcBrandRegistration>>;
|
|
90
|
+
/**
|
|
91
|
+
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
92
|
+
*/
|
|
93
|
+
updateUs10dlcBrand(tenDlcBrandUpdateRequest: TenDlcBrandUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenDlcBrandRegistration>;
|
|
94
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
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.RegistrationsApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class RegistrationsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
|
|
58
|
+
*/
|
|
59
|
+
async createUs10dlcBrandRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['tenDlcBrandCreateRequest'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('tenDlcBrandCreateRequest', 'Required parameter "tenDlcBrandCreateRequest" was null or undefined when calling createUs10dlcBrand().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
if (this.configuration &&
|
|
67
|
+
(this.configuration.username !== undefined ||
|
|
68
|
+
this.configuration.password !== undefined)) {
|
|
69
|
+
headerParameters['Authorization'] =
|
|
70
|
+
'Basic ' +
|
|
71
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
72
|
+
}
|
|
73
|
+
if (this.configuration &&
|
|
74
|
+
(this.configuration.username !== undefined ||
|
|
75
|
+
this.configuration.password !== undefined)) {
|
|
76
|
+
headerParameters['Authorization'] =
|
|
77
|
+
'Basic ' +
|
|
78
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
79
|
+
}
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = await token('apiKey', []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (this.configuration &&
|
|
88
|
+
(this.configuration.username !== undefined ||
|
|
89
|
+
this.configuration.password !== undefined)) {
|
|
90
|
+
headerParameters['Authorization'] =
|
|
91
|
+
'Basic ' +
|
|
92
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
93
|
+
}
|
|
94
|
+
let urlPath = `/registrations/us/10dlc/brand`;
|
|
95
|
+
const response = await this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.TenDlcBrandCreateRequestToJSON)(requestParameters['tenDlcBrandCreateRequest'])
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TenDlcBrandRegistrationFromJSON)(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.
|
|
106
|
+
*/
|
|
107
|
+
async createUs10dlcBrand(tenDlcBrandCreateRequest, initOverrides) {
|
|
108
|
+
const response = await this.createUs10dlcBrandRaw({ tenDlcBrandCreateRequest: tenDlcBrandCreateRequest }, initOverrides);
|
|
109
|
+
return await response.value();
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
113
|
+
*/
|
|
114
|
+
async getUs10dlcBrandRaw(initOverrides) {
|
|
115
|
+
const queryParameters = {};
|
|
116
|
+
const headerParameters = {};
|
|
117
|
+
if (this.configuration &&
|
|
118
|
+
(this.configuration.username !== undefined ||
|
|
119
|
+
this.configuration.password !== undefined)) {
|
|
120
|
+
headerParameters['Authorization'] =
|
|
121
|
+
'Basic ' +
|
|
122
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
123
|
+
}
|
|
124
|
+
if (this.configuration &&
|
|
125
|
+
(this.configuration.username !== undefined ||
|
|
126
|
+
this.configuration.password !== undefined)) {
|
|
127
|
+
headerParameters['Authorization'] =
|
|
128
|
+
'Basic ' +
|
|
129
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
130
|
+
}
|
|
131
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
132
|
+
const token = this.configuration.accessToken;
|
|
133
|
+
const tokenString = await token('apiKey', []);
|
|
134
|
+
if (tokenString) {
|
|
135
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
if (this.configuration &&
|
|
139
|
+
(this.configuration.username !== undefined ||
|
|
140
|
+
this.configuration.password !== undefined)) {
|
|
141
|
+
headerParameters['Authorization'] =
|
|
142
|
+
'Basic ' +
|
|
143
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
144
|
+
}
|
|
145
|
+
let urlPath = `/registrations/us/10dlc/brand`;
|
|
146
|
+
const response = await this.request({
|
|
147
|
+
path: urlPath,
|
|
148
|
+
method: 'GET',
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters
|
|
151
|
+
}, initOverrides);
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TenDlcBrandRegistrationFromJSON)(jsonValue));
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.
|
|
156
|
+
*/
|
|
157
|
+
async getUs10dlcBrand(initOverrides) {
|
|
158
|
+
const response = await this.getUs10dlcBrandRaw(initOverrides);
|
|
159
|
+
return await response.value();
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
163
|
+
*/
|
|
164
|
+
async updateUs10dlcBrandRaw(requestParameters, initOverrides) {
|
|
165
|
+
if (requestParameters['tenDlcBrandUpdateRequest'] == null) {
|
|
166
|
+
throw new runtime.RequiredError('tenDlcBrandUpdateRequest', 'Required parameter "tenDlcBrandUpdateRequest" was null or undefined when calling updateUs10dlcBrand().');
|
|
167
|
+
}
|
|
168
|
+
const queryParameters = {};
|
|
169
|
+
const headerParameters = {};
|
|
170
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
171
|
+
if (this.configuration &&
|
|
172
|
+
(this.configuration.username !== undefined ||
|
|
173
|
+
this.configuration.password !== undefined)) {
|
|
174
|
+
headerParameters['Authorization'] =
|
|
175
|
+
'Basic ' +
|
|
176
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
177
|
+
}
|
|
178
|
+
if (this.configuration &&
|
|
179
|
+
(this.configuration.username !== undefined ||
|
|
180
|
+
this.configuration.password !== undefined)) {
|
|
181
|
+
headerParameters['Authorization'] =
|
|
182
|
+
'Basic ' +
|
|
183
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
184
|
+
}
|
|
185
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
186
|
+
const token = this.configuration.accessToken;
|
|
187
|
+
const tokenString = await token('apiKey', []);
|
|
188
|
+
if (tokenString) {
|
|
189
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (this.configuration &&
|
|
193
|
+
(this.configuration.username !== undefined ||
|
|
194
|
+
this.configuration.password !== undefined)) {
|
|
195
|
+
headerParameters['Authorization'] =
|
|
196
|
+
'Basic ' +
|
|
197
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
198
|
+
}
|
|
199
|
+
let urlPath = `/registrations/us/10dlc/brand`;
|
|
200
|
+
const response = await this.request({
|
|
201
|
+
path: urlPath,
|
|
202
|
+
method: 'PATCH',
|
|
203
|
+
headers: headerParameters,
|
|
204
|
+
query: queryParameters,
|
|
205
|
+
body: (0, index_1.TenDlcBrandUpdateRequestToJSON)(requestParameters['tenDlcBrandUpdateRequest'])
|
|
206
|
+
}, initOverrides);
|
|
207
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TenDlcBrandRegistrationFromJSON)(jsonValue));
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Update an existing 10DLC brand registration. Business fields are editable before carrier submission; workflow status is managed by Pingram.
|
|
211
|
+
*/
|
|
212
|
+
async updateUs10dlcBrand(tenDlcBrandUpdateRequest, initOverrides) {
|
|
213
|
+
const response = await this.updateUs10dlcBrandRaw({ tenDlcBrandUpdateRequest: tenDlcBrandUpdateRequest }, initOverrides);
|
|
214
|
+
return await response.value();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
exports.RegistrationsApi = RegistrationsApi;
|
|
@@ -34,6 +34,8 @@ 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';
|
|
38
|
+
export { RegistrationsApi } from './RegistrationsApi';
|
|
37
39
|
export type { DeleteScheduleRequest, TestEmailRequest, UpdateScheduleRequest, SenderApiInterface } from './SenderApi';
|
|
38
40
|
export { SenderApi } from './SenderApi';
|
|
39
41
|
export type { SendRequest as SmsApiSendRequest, SmsApiInterface } from './SmsApi';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.WebhooksApi = exports.VoiceApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SmsApi = exports.SenderApi = exports.ProfileApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.AddressesApi = exports.AccountsApi = exports.AccountApi = void 0;
|
|
9
|
+
exports.WebhooksApi = exports.VoiceApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SmsApi = exports.SenderApi = exports.RegistrationsApi = exports.ProfileApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.AddressesApi = exports.AccountsApi = exports.AccountApi = void 0;
|
|
10
10
|
var AccountApi_1 = require("./AccountApi");
|
|
11
11
|
Object.defineProperty(exports, "AccountApi", { enumerable: true, get: function () { return AccountApi_1.AccountApi; } });
|
|
12
12
|
var AccountsApi_1 = require("./AccountsApi");
|
|
@@ -39,6 +39,8 @@ var NumbersApi_1 = require("./NumbersApi");
|
|
|
39
39
|
Object.defineProperty(exports, "NumbersApi", { enumerable: true, get: function () { return NumbersApi_1.NumbersApi; } });
|
|
40
40
|
var ProfileApi_1 = require("./ProfileApi");
|
|
41
41
|
Object.defineProperty(exports, "ProfileApi", { enumerable: true, get: function () { return ProfileApi_1.ProfileApi; } });
|
|
42
|
+
var RegistrationsApi_1 = require("./RegistrationsApi");
|
|
43
|
+
Object.defineProperty(exports, "RegistrationsApi", { enumerable: true, get: function () { return RegistrationsApi_1.RegistrationsApi; } });
|
|
42
44
|
var SenderApi_1 = require("./SenderApi");
|
|
43
45
|
Object.defineProperty(exports, "SenderApi", { enumerable: true, get: function () { return SenderApi_1.SenderApi; } });
|
|
44
46
|
var SmsApi_1 = require("./SmsApi");
|
|
@@ -1121,7 +1121,8 @@ export declare enum LogsGetResponseLogsInnerEmailFailedCodeEnum {
|
|
|
1121
1121
|
VERIFICATION_LIMIT = "VERIFICATION_LIMIT",
|
|
1122
1122
|
TEMPLATE_NOT_FOUND = "TEMPLATE_NOT_FOUND",
|
|
1123
1123
|
NO_DEFAULT_TEMPLATE = "NO_DEFAULT_TEMPLATE",
|
|
1124
|
-
SPAM_CONTENT = "SPAM_CONTENT"
|
|
1124
|
+
SPAM_CONTENT = "SPAM_CONTENT",
|
|
1125
|
+
SMS_FREE_RESTRICTED = "SMS_FREE_RESTRICTED"
|
|
1125
1126
|
}
|
|
1126
1127
|
/**
|
|
1127
1128
|
* @export
|
|
@@ -1144,7 +1145,8 @@ export declare enum LogsGetResponseLogsInnerWebPushFailedCodeEnum {
|
|
|
1144
1145
|
VERIFICATION_LIMIT = "VERIFICATION_LIMIT",
|
|
1145
1146
|
TEMPLATE_NOT_FOUND = "TEMPLATE_NOT_FOUND",
|
|
1146
1147
|
NO_DEFAULT_TEMPLATE = "NO_DEFAULT_TEMPLATE",
|
|
1147
|
-
SPAM_CONTENT = "SPAM_CONTENT"
|
|
1148
|
+
SPAM_CONTENT = "SPAM_CONTENT",
|
|
1149
|
+
SMS_FREE_RESTRICTED = "SMS_FREE_RESTRICTED"
|
|
1148
1150
|
}
|
|
1149
1151
|
/**
|
|
1150
1152
|
* @export
|
|
@@ -1329,7 +1331,8 @@ export declare enum LogsGetResponseLogsInnerSlackFailedCodeEnum {
|
|
|
1329
1331
|
VERIFICATION_LIMIT = "VERIFICATION_LIMIT",
|
|
1330
1332
|
TEMPLATE_NOT_FOUND = "TEMPLATE_NOT_FOUND",
|
|
1331
1333
|
NO_DEFAULT_TEMPLATE = "NO_DEFAULT_TEMPLATE",
|
|
1332
|
-
SPAM_CONTENT = "SPAM_CONTENT"
|
|
1334
|
+
SPAM_CONTENT = "SPAM_CONTENT",
|
|
1335
|
+
SMS_FREE_RESTRICTED = "SMS_FREE_RESTRICTED"
|
|
1333
1336
|
}
|
|
1334
1337
|
/**
|
|
1335
1338
|
* @export
|
|
@@ -1371,7 +1374,8 @@ export declare enum LogsGetResponseLogsInnerCallFailedCodeEnum {
|
|
|
1371
1374
|
VERIFICATION_LIMIT = "VERIFICATION_LIMIT",
|
|
1372
1375
|
TEMPLATE_NOT_FOUND = "TEMPLATE_NOT_FOUND",
|
|
1373
1376
|
NO_DEFAULT_TEMPLATE = "NO_DEFAULT_TEMPLATE",
|
|
1374
|
-
SPAM_CONTENT = "SPAM_CONTENT"
|
|
1377
|
+
SPAM_CONTENT = "SPAM_CONTENT",
|
|
1378
|
+
SMS_FREE_RESTRICTED = "SMS_FREE_RESTRICTED"
|
|
1375
1379
|
}
|
|
1376
1380
|
/**
|
|
1377
1381
|
* @export
|
|
@@ -1403,7 +1407,8 @@ export declare enum LogsGetResponseLogsInnerSmsFailedCodeEnum {
|
|
|
1403
1407
|
VERIFICATION_LIMIT = "VERIFICATION_LIMIT",
|
|
1404
1408
|
TEMPLATE_NOT_FOUND = "TEMPLATE_NOT_FOUND",
|
|
1405
1409
|
NO_DEFAULT_TEMPLATE = "NO_DEFAULT_TEMPLATE",
|
|
1406
|
-
SPAM_CONTENT = "SPAM_CONTENT"
|
|
1410
|
+
SPAM_CONTENT = "SPAM_CONTENT",
|
|
1411
|
+
SMS_FREE_RESTRICTED = "SMS_FREE_RESTRICTED"
|
|
1407
1412
|
}
|
|
1408
1413
|
/**
|
|
1409
1414
|
* Check if a given object implements the LogsGetResponseLogsInner interface.
|
|
@@ -85,6 +85,7 @@ var LogsGetResponseLogsInnerEmailFailedCodeEnum;
|
|
|
85
85
|
LogsGetResponseLogsInnerEmailFailedCodeEnum["TEMPLATE_NOT_FOUND"] = "TEMPLATE_NOT_FOUND";
|
|
86
86
|
LogsGetResponseLogsInnerEmailFailedCodeEnum["NO_DEFAULT_TEMPLATE"] = "NO_DEFAULT_TEMPLATE";
|
|
87
87
|
LogsGetResponseLogsInnerEmailFailedCodeEnum["SPAM_CONTENT"] = "SPAM_CONTENT";
|
|
88
|
+
LogsGetResponseLogsInnerEmailFailedCodeEnum["SMS_FREE_RESTRICTED"] = "SMS_FREE_RESTRICTED";
|
|
88
89
|
})(LogsGetResponseLogsInnerEmailFailedCodeEnum || (exports.LogsGetResponseLogsInnerEmailFailedCodeEnum = LogsGetResponseLogsInnerEmailFailedCodeEnum = {}));
|
|
89
90
|
/**
|
|
90
91
|
* @export
|
|
@@ -110,6 +111,7 @@ var LogsGetResponseLogsInnerWebPushFailedCodeEnum;
|
|
|
110
111
|
LogsGetResponseLogsInnerWebPushFailedCodeEnum["TEMPLATE_NOT_FOUND"] = "TEMPLATE_NOT_FOUND";
|
|
111
112
|
LogsGetResponseLogsInnerWebPushFailedCodeEnum["NO_DEFAULT_TEMPLATE"] = "NO_DEFAULT_TEMPLATE";
|
|
112
113
|
LogsGetResponseLogsInnerWebPushFailedCodeEnum["SPAM_CONTENT"] = "SPAM_CONTENT";
|
|
114
|
+
LogsGetResponseLogsInnerWebPushFailedCodeEnum["SMS_FREE_RESTRICTED"] = "SMS_FREE_RESTRICTED";
|
|
113
115
|
})(LogsGetResponseLogsInnerWebPushFailedCodeEnum || (exports.LogsGetResponseLogsInnerWebPushFailedCodeEnum = LogsGetResponseLogsInnerWebPushFailedCodeEnum = {}));
|
|
114
116
|
/**
|
|
115
117
|
* @export
|
|
@@ -311,6 +313,7 @@ var LogsGetResponseLogsInnerSlackFailedCodeEnum;
|
|
|
311
313
|
LogsGetResponseLogsInnerSlackFailedCodeEnum["TEMPLATE_NOT_FOUND"] = "TEMPLATE_NOT_FOUND";
|
|
312
314
|
LogsGetResponseLogsInnerSlackFailedCodeEnum["NO_DEFAULT_TEMPLATE"] = "NO_DEFAULT_TEMPLATE";
|
|
313
315
|
LogsGetResponseLogsInnerSlackFailedCodeEnum["SPAM_CONTENT"] = "SPAM_CONTENT";
|
|
316
|
+
LogsGetResponseLogsInnerSlackFailedCodeEnum["SMS_FREE_RESTRICTED"] = "SMS_FREE_RESTRICTED";
|
|
314
317
|
})(LogsGetResponseLogsInnerSlackFailedCodeEnum || (exports.LogsGetResponseLogsInnerSlackFailedCodeEnum = LogsGetResponseLogsInnerSlackFailedCodeEnum = {}));
|
|
315
318
|
/**
|
|
316
319
|
* @export
|
|
@@ -355,6 +358,7 @@ var LogsGetResponseLogsInnerCallFailedCodeEnum;
|
|
|
355
358
|
LogsGetResponseLogsInnerCallFailedCodeEnum["TEMPLATE_NOT_FOUND"] = "TEMPLATE_NOT_FOUND";
|
|
356
359
|
LogsGetResponseLogsInnerCallFailedCodeEnum["NO_DEFAULT_TEMPLATE"] = "NO_DEFAULT_TEMPLATE";
|
|
357
360
|
LogsGetResponseLogsInnerCallFailedCodeEnum["SPAM_CONTENT"] = "SPAM_CONTENT";
|
|
361
|
+
LogsGetResponseLogsInnerCallFailedCodeEnum["SMS_FREE_RESTRICTED"] = "SMS_FREE_RESTRICTED";
|
|
358
362
|
})(LogsGetResponseLogsInnerCallFailedCodeEnum || (exports.LogsGetResponseLogsInnerCallFailedCodeEnum = LogsGetResponseLogsInnerCallFailedCodeEnum = {}));
|
|
359
363
|
/**
|
|
360
364
|
* @export
|
|
@@ -388,6 +392,7 @@ var LogsGetResponseLogsInnerSmsFailedCodeEnum;
|
|
|
388
392
|
LogsGetResponseLogsInnerSmsFailedCodeEnum["TEMPLATE_NOT_FOUND"] = "TEMPLATE_NOT_FOUND";
|
|
389
393
|
LogsGetResponseLogsInnerSmsFailedCodeEnum["NO_DEFAULT_TEMPLATE"] = "NO_DEFAULT_TEMPLATE";
|
|
390
394
|
LogsGetResponseLogsInnerSmsFailedCodeEnum["SPAM_CONTENT"] = "SPAM_CONTENT";
|
|
395
|
+
LogsGetResponseLogsInnerSmsFailedCodeEnum["SMS_FREE_RESTRICTED"] = "SMS_FREE_RESTRICTED";
|
|
391
396
|
})(LogsGetResponseLogsInnerSmsFailedCodeEnum || (exports.LogsGetResponseLogsInnerSmsFailedCodeEnum = LogsGetResponseLogsInnerSmsFailedCodeEnum = {}));
|
|
392
397
|
/**
|
|
393
398
|
* Check if a given object implements the LogsGetResponseLogsInner interface.
|