pingram 1.0.17 → 1.0.18-alpha.1310
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/models/BrandWebhookResponse.d.ts +32 -0
- package/dist/generated/src/models/BrandWebhookResponse.js +50 -0
- package/dist/generated/src/models/SenderPostBodyOptionsEmail.d.ts +0 -6
- package/dist/generated/src/models/SenderPostBodyOptionsEmail.js +2 -4
- package/dist/generated/src/models/TenDlcBrandCreateRequest.d.ts +12 -0
- package/dist/generated/src/models/TenDlcBrandCreateRequest.js +4 -0
- package/dist/generated/src/models/TenDlcBrandRegistration.d.ts +12 -0
- package/dist/generated/src/models/TenDlcBrandRegistration.js +4 -0
- package/dist/generated/src/models/TenDlcBrandRegistrationDetails.d.ts +208 -0
- package/dist/generated/src/models/TenDlcBrandRegistrationDetails.js +149 -0
- package/dist/generated/src/models/TenDlcBrandUpdateRequest.d.ts +52 -0
- package/dist/generated/src/models/TenDlcBrandUpdateRequest.js +26 -0
- 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
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Response for brand Telnyx webhook handler.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BrandWebhookResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface BrandWebhookResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BrandWebhookResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BrandWebhookResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBrandWebhookResponse(value: object): value is BrandWebhookResponse;
|
|
29
|
+
export declare function BrandWebhookResponseFromJSON(json: any): BrandWebhookResponse;
|
|
30
|
+
export declare function BrandWebhookResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandWebhookResponse;
|
|
31
|
+
export declare function BrandWebhookResponseToJSON(json: any): BrandWebhookResponse;
|
|
32
|
+
export declare function BrandWebhookResponseToJSONTyped(value?: BrandWebhookResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfBrandWebhookResponse = instanceOfBrandWebhookResponse;
|
|
17
|
+
exports.BrandWebhookResponseFromJSON = BrandWebhookResponseFromJSON;
|
|
18
|
+
exports.BrandWebhookResponseFromJSONTyped = BrandWebhookResponseFromJSONTyped;
|
|
19
|
+
exports.BrandWebhookResponseToJSON = BrandWebhookResponseToJSON;
|
|
20
|
+
exports.BrandWebhookResponseToJSONTyped = BrandWebhookResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BrandWebhookResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBrandWebhookResponse(value) {
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function BrandWebhookResponseFromJSON(json) {
|
|
30
|
+
return BrandWebhookResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function BrandWebhookResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
message: json['message']
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function BrandWebhookResponseToJSON(json) {
|
|
41
|
+
return BrandWebhookResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function BrandWebhookResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
message: value['message']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -52,12 +52,6 @@ export interface SenderPostBodyOptionsEmail {
|
|
|
52
52
|
* @memberof SenderPostBodyOptionsEmail
|
|
53
53
|
*/
|
|
54
54
|
attachments?: Array<SenderPostBodyOptionsEmailAttachmentsInner>;
|
|
55
|
-
/**
|
|
56
|
-
* Conditional expression for when to send (e.g. merge tag logic).
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof SenderPostBodyOptionsEmail
|
|
59
|
-
*/
|
|
60
|
-
condition?: string;
|
|
61
55
|
}
|
|
62
56
|
/**
|
|
63
57
|
* Check if a given object implements the SenderPostBodyOptionsEmail interface.
|
|
@@ -40,8 +40,7 @@ function SenderPostBodyOptionsEmailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
fromName: json['fromName'] == null ? undefined : json['fromName'],
|
|
41
41
|
attachments: json['attachments'] == null
|
|
42
42
|
? undefined
|
|
43
|
-
: json['attachments'].map(SenderPostBodyOptionsEmailAttachmentsInner_1.SenderPostBodyOptionsEmailAttachmentsInnerFromJSON)
|
|
44
|
-
condition: json['condition'] == null ? undefined : json['condition']
|
|
43
|
+
: json['attachments'].map(SenderPostBodyOptionsEmailAttachmentsInner_1.SenderPostBodyOptionsEmailAttachmentsInnerFromJSON)
|
|
45
44
|
};
|
|
46
45
|
}
|
|
47
46
|
function SenderPostBodyOptionsEmailToJSON(json) {
|
|
@@ -59,7 +58,6 @@ function SenderPostBodyOptionsEmailToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
59
58
|
fromName: value['fromName'],
|
|
60
59
|
attachments: value['attachments'] == null
|
|
61
60
|
? undefined
|
|
62
|
-
: (value['attachments'] ?? []).map(SenderPostBodyOptionsEmailAttachmentsInner_1.SenderPostBodyOptionsEmailAttachmentsInnerToJSON)
|
|
63
|
-
condition: value['condition']
|
|
61
|
+
: (value['attachments'] ?? []).map(SenderPostBodyOptionsEmailAttachmentsInner_1.SenderPostBodyOptionsEmailAttachmentsInnerToJSON)
|
|
64
62
|
};
|
|
65
63
|
}
|
|
@@ -33,6 +33,18 @@ export interface TenDlcBrandCreateRequest {
|
|
|
33
33
|
* @memberof TenDlcBrandCreateRequest
|
|
34
34
|
*/
|
|
35
35
|
legalName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TenDlcBrandCreateRequest
|
|
40
|
+
*/
|
|
41
|
+
firstName?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TenDlcBrandCreateRequest
|
|
46
|
+
*/
|
|
47
|
+
lastName?: string;
|
|
36
48
|
/**
|
|
37
49
|
*
|
|
38
50
|
* @type {string}
|
|
@@ -51,6 +51,8 @@ function TenDlcBrandCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
scenarioId: json['scenarioId'],
|
|
52
52
|
businessType: json['businessType'],
|
|
53
53
|
legalName: json['legalName'],
|
|
54
|
+
firstName: json['firstName'] == null ? undefined : json['firstName'],
|
|
55
|
+
lastName: json['lastName'] == null ? undefined : json['lastName'],
|
|
54
56
|
taxId: json['taxId'] == null ? undefined : json['taxId'],
|
|
55
57
|
website: json['website'],
|
|
56
58
|
country: json['country'],
|
|
@@ -73,6 +75,8 @@ function TenDlcBrandCreateRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
73
75
|
scenarioId: value['scenarioId'],
|
|
74
76
|
businessType: value['businessType'],
|
|
75
77
|
legalName: value['legalName'],
|
|
78
|
+
firstName: value['firstName'],
|
|
79
|
+
lastName: value['lastName'],
|
|
76
80
|
taxId: value['taxId'],
|
|
77
81
|
website: value['website'],
|
|
78
82
|
country: value['country'],
|
|
@@ -45,6 +45,18 @@ export interface TenDlcBrandRegistration {
|
|
|
45
45
|
* @memberof TenDlcBrandRegistration
|
|
46
46
|
*/
|
|
47
47
|
displayName?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TenDlcBrandRegistration
|
|
52
|
+
*/
|
|
53
|
+
firstName?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TenDlcBrandRegistration
|
|
58
|
+
*/
|
|
59
|
+
lastName?: string;
|
|
48
60
|
/**
|
|
49
61
|
*
|
|
50
62
|
* @type {string}
|
|
@@ -90,6 +90,8 @@ function TenDlcBrandRegistrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
90
90
|
businessType: json['businessType'],
|
|
91
91
|
legalName: json['legalName'],
|
|
92
92
|
displayName: json['displayName'] == null ? undefined : json['displayName'],
|
|
93
|
+
firstName: json['firstName'] == null ? undefined : json['firstName'],
|
|
94
|
+
lastName: json['lastName'] == null ? undefined : json['lastName'],
|
|
93
95
|
taxId: json['taxId'] == null ? undefined : json['taxId'],
|
|
94
96
|
website: json['website'],
|
|
95
97
|
country: json['country'],
|
|
@@ -119,6 +121,8 @@ function TenDlcBrandRegistrationToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
119
121
|
businessType: value['businessType'],
|
|
120
122
|
legalName: value['legalName'],
|
|
121
123
|
displayName: value['displayName'],
|
|
124
|
+
firstName: value['firstName'],
|
|
125
|
+
lastName: value['lastName'],
|
|
122
126
|
taxId: value['taxId'],
|
|
123
127
|
website: value['website'],
|
|
124
128
|
country: value['country'],
|
|
@@ -0,0 +1,208 @@
|
|
|
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
|
+
* System-access GET response; includes internal Telnyx provider IDs and admin-only fields.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TenDlcBrandRegistrationDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface TenDlcBrandRegistrationDetails {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
28
|
+
*/
|
|
29
|
+
scenarioId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
34
|
+
*/
|
|
35
|
+
businessType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
40
|
+
*/
|
|
41
|
+
legalName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Brand display name (marketing/DBA); defaults to legalName on customer submit.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
46
|
+
*/
|
|
47
|
+
displayName?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
52
|
+
*/
|
|
53
|
+
firstName?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
58
|
+
*/
|
|
59
|
+
lastName?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
64
|
+
*/
|
|
65
|
+
taxId?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
70
|
+
*/
|
|
71
|
+
website: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
76
|
+
*/
|
|
77
|
+
country: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
82
|
+
*/
|
|
83
|
+
street?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
88
|
+
*/
|
|
89
|
+
city?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
94
|
+
*/
|
|
95
|
+
state?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
100
|
+
*/
|
|
101
|
+
postalCode?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Legacy records only; new submissions use structured address fields.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
106
|
+
*/
|
|
107
|
+
fullAddress?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
112
|
+
*/
|
|
113
|
+
complianceContactEmail: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
118
|
+
*/
|
|
119
|
+
complianceContactPhone: string;
|
|
120
|
+
/**
|
|
121
|
+
* Pingram-side brand registration workflow status.
|
|
122
|
+
* - not_started: no customer submission yet
|
|
123
|
+
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
124
|
+
* - in_progress: submitted for carrier review
|
|
125
|
+
* - approved | rejected | info_needed: review outcome
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
128
|
+
*/
|
|
129
|
+
brandStatus: TenDlcBrandRegistrationDetailsBrandStatusEnum;
|
|
130
|
+
/**
|
|
131
|
+
* Pingram-side brand registration workflow status.
|
|
132
|
+
* - not_started: no customer submission yet
|
|
133
|
+
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
134
|
+
* - in_progress: submitted for carrier review
|
|
135
|
+
* - approved | rejected | info_needed: review outcome
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
138
|
+
*/
|
|
139
|
+
campaignStatus: TenDlcBrandRegistrationDetailsCampaignStatusEnum;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
144
|
+
*/
|
|
145
|
+
createdAt: string;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
150
|
+
*/
|
|
151
|
+
updatedAt: string;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
156
|
+
*/
|
|
157
|
+
vertical?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Legacy only when businessType is Other.
|
|
160
|
+
* @type {string}
|
|
161
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
162
|
+
*/
|
|
163
|
+
entityType?: string;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
168
|
+
*/
|
|
169
|
+
telnyxProfileId?: string;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof TenDlcBrandRegistrationDetails
|
|
174
|
+
*/
|
|
175
|
+
telnyxBrandId?: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @export
|
|
179
|
+
* @enum {string}
|
|
180
|
+
*/
|
|
181
|
+
export declare enum TenDlcBrandRegistrationDetailsBrandStatusEnum {
|
|
182
|
+
NOT_STARTED = "not_started",
|
|
183
|
+
IN_PROGRESS = "in_progress",
|
|
184
|
+
PENDING_REVIEW = "pending_review",
|
|
185
|
+
APPROVED = "approved",
|
|
186
|
+
REJECTED = "rejected",
|
|
187
|
+
INFO_NEEDED = "info_needed"
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* @export
|
|
191
|
+
* @enum {string}
|
|
192
|
+
*/
|
|
193
|
+
export declare enum TenDlcBrandRegistrationDetailsCampaignStatusEnum {
|
|
194
|
+
NOT_STARTED = "not_started",
|
|
195
|
+
IN_PROGRESS = "in_progress",
|
|
196
|
+
PENDING_REVIEW = "pending_review",
|
|
197
|
+
APPROVED = "approved",
|
|
198
|
+
REJECTED = "rejected",
|
|
199
|
+
INFO_NEEDED = "info_needed"
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Check if a given object implements the TenDlcBrandRegistrationDetails interface.
|
|
203
|
+
*/
|
|
204
|
+
export declare function instanceOfTenDlcBrandRegistrationDetails(value: object): value is TenDlcBrandRegistrationDetails;
|
|
205
|
+
export declare function TenDlcBrandRegistrationDetailsFromJSON(json: any): TenDlcBrandRegistrationDetails;
|
|
206
|
+
export declare function TenDlcBrandRegistrationDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenDlcBrandRegistrationDetails;
|
|
207
|
+
export declare function TenDlcBrandRegistrationDetailsToJSON(json: any): TenDlcBrandRegistrationDetails;
|
|
208
|
+
export declare function TenDlcBrandRegistrationDetailsToJSONTyped(value?: TenDlcBrandRegistrationDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,149 @@
|
|
|
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.TenDlcBrandRegistrationDetailsCampaignStatusEnum = exports.TenDlcBrandRegistrationDetailsBrandStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfTenDlcBrandRegistrationDetails = instanceOfTenDlcBrandRegistrationDetails;
|
|
18
|
+
exports.TenDlcBrandRegistrationDetailsFromJSON = TenDlcBrandRegistrationDetailsFromJSON;
|
|
19
|
+
exports.TenDlcBrandRegistrationDetailsFromJSONTyped = TenDlcBrandRegistrationDetailsFromJSONTyped;
|
|
20
|
+
exports.TenDlcBrandRegistrationDetailsToJSON = TenDlcBrandRegistrationDetailsToJSON;
|
|
21
|
+
exports.TenDlcBrandRegistrationDetailsToJSONTyped = TenDlcBrandRegistrationDetailsToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var TenDlcBrandRegistrationDetailsBrandStatusEnum;
|
|
27
|
+
(function (TenDlcBrandRegistrationDetailsBrandStatusEnum) {
|
|
28
|
+
TenDlcBrandRegistrationDetailsBrandStatusEnum["NOT_STARTED"] = "not_started";
|
|
29
|
+
TenDlcBrandRegistrationDetailsBrandStatusEnum["IN_PROGRESS"] = "in_progress";
|
|
30
|
+
TenDlcBrandRegistrationDetailsBrandStatusEnum["PENDING_REVIEW"] = "pending_review";
|
|
31
|
+
TenDlcBrandRegistrationDetailsBrandStatusEnum["APPROVED"] = "approved";
|
|
32
|
+
TenDlcBrandRegistrationDetailsBrandStatusEnum["REJECTED"] = "rejected";
|
|
33
|
+
TenDlcBrandRegistrationDetailsBrandStatusEnum["INFO_NEEDED"] = "info_needed";
|
|
34
|
+
})(TenDlcBrandRegistrationDetailsBrandStatusEnum || (exports.TenDlcBrandRegistrationDetailsBrandStatusEnum = TenDlcBrandRegistrationDetailsBrandStatusEnum = {}));
|
|
35
|
+
/**
|
|
36
|
+
* @export
|
|
37
|
+
* @enum {string}
|
|
38
|
+
*/
|
|
39
|
+
var TenDlcBrandRegistrationDetailsCampaignStatusEnum;
|
|
40
|
+
(function (TenDlcBrandRegistrationDetailsCampaignStatusEnum) {
|
|
41
|
+
TenDlcBrandRegistrationDetailsCampaignStatusEnum["NOT_STARTED"] = "not_started";
|
|
42
|
+
TenDlcBrandRegistrationDetailsCampaignStatusEnum["IN_PROGRESS"] = "in_progress";
|
|
43
|
+
TenDlcBrandRegistrationDetailsCampaignStatusEnum["PENDING_REVIEW"] = "pending_review";
|
|
44
|
+
TenDlcBrandRegistrationDetailsCampaignStatusEnum["APPROVED"] = "approved";
|
|
45
|
+
TenDlcBrandRegistrationDetailsCampaignStatusEnum["REJECTED"] = "rejected";
|
|
46
|
+
TenDlcBrandRegistrationDetailsCampaignStatusEnum["INFO_NEEDED"] = "info_needed";
|
|
47
|
+
})(TenDlcBrandRegistrationDetailsCampaignStatusEnum || (exports.TenDlcBrandRegistrationDetailsCampaignStatusEnum = TenDlcBrandRegistrationDetailsCampaignStatusEnum = {}));
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the TenDlcBrandRegistrationDetails interface.
|
|
50
|
+
*/
|
|
51
|
+
function instanceOfTenDlcBrandRegistrationDetails(value) {
|
|
52
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('scenarioId' in value) || value['scenarioId'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('businessType' in value) || value['businessType'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('legalName' in value) || value['legalName'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('country' in value) || value['country'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('complianceContactEmail' in value) ||
|
|
65
|
+
value['complianceContactEmail'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('complianceContactPhone' in value) ||
|
|
68
|
+
value['complianceContactPhone'] === undefined)
|
|
69
|
+
return false;
|
|
70
|
+
if (!('brandStatus' in value) || value['brandStatus'] === undefined)
|
|
71
|
+
return false;
|
|
72
|
+
if (!('campaignStatus' in value) || value['campaignStatus'] === undefined)
|
|
73
|
+
return false;
|
|
74
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
75
|
+
return false;
|
|
76
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
function TenDlcBrandRegistrationDetailsFromJSON(json) {
|
|
81
|
+
return TenDlcBrandRegistrationDetailsFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
function TenDlcBrandRegistrationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
accountId: json['accountId'],
|
|
89
|
+
scenarioId: json['scenarioId'],
|
|
90
|
+
businessType: json['businessType'],
|
|
91
|
+
legalName: json['legalName'],
|
|
92
|
+
displayName: json['displayName'] == null ? undefined : json['displayName'],
|
|
93
|
+
firstName: json['firstName'] == null ? undefined : json['firstName'],
|
|
94
|
+
lastName: json['lastName'] == null ? undefined : json['lastName'],
|
|
95
|
+
taxId: json['taxId'] == null ? undefined : json['taxId'],
|
|
96
|
+
website: json['website'],
|
|
97
|
+
country: json['country'],
|
|
98
|
+
street: json['street'] == null ? undefined : json['street'],
|
|
99
|
+
city: json['city'] == null ? undefined : json['city'],
|
|
100
|
+
state: json['state'] == null ? undefined : json['state'],
|
|
101
|
+
postalCode: json['postalCode'] == null ? undefined : json['postalCode'],
|
|
102
|
+
fullAddress: json['fullAddress'] == null ? undefined : json['fullAddress'],
|
|
103
|
+
complianceContactEmail: json['complianceContactEmail'],
|
|
104
|
+
complianceContactPhone: json['complianceContactPhone'],
|
|
105
|
+
brandStatus: json['brandStatus'],
|
|
106
|
+
campaignStatus: json['campaignStatus'],
|
|
107
|
+
createdAt: json['createdAt'],
|
|
108
|
+
updatedAt: json['updatedAt'],
|
|
109
|
+
vertical: json['vertical'] == null ? undefined : json['vertical'],
|
|
110
|
+
entityType: json['entityType'] == null ? undefined : json['entityType'],
|
|
111
|
+
telnyxProfileId: json['telnyxProfileId'] == null ? undefined : json['telnyxProfileId'],
|
|
112
|
+
telnyxBrandId: json['telnyxBrandId'] == null ? undefined : json['telnyxBrandId']
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function TenDlcBrandRegistrationDetailsToJSON(json) {
|
|
116
|
+
return TenDlcBrandRegistrationDetailsToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
function TenDlcBrandRegistrationDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
119
|
+
if (value == null) {
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
accountId: value['accountId'],
|
|
124
|
+
scenarioId: value['scenarioId'],
|
|
125
|
+
businessType: value['businessType'],
|
|
126
|
+
legalName: value['legalName'],
|
|
127
|
+
displayName: value['displayName'],
|
|
128
|
+
firstName: value['firstName'],
|
|
129
|
+
lastName: value['lastName'],
|
|
130
|
+
taxId: value['taxId'],
|
|
131
|
+
website: value['website'],
|
|
132
|
+
country: value['country'],
|
|
133
|
+
street: value['street'],
|
|
134
|
+
city: value['city'],
|
|
135
|
+
state: value['state'],
|
|
136
|
+
postalCode: value['postalCode'],
|
|
137
|
+
fullAddress: value['fullAddress'],
|
|
138
|
+
complianceContactEmail: value['complianceContactEmail'],
|
|
139
|
+
complianceContactPhone: value['complianceContactPhone'],
|
|
140
|
+
brandStatus: value['brandStatus'],
|
|
141
|
+
campaignStatus: value['campaignStatus'],
|
|
142
|
+
createdAt: value['createdAt'],
|
|
143
|
+
updatedAt: value['updatedAt'],
|
|
144
|
+
vertical: value['vertical'],
|
|
145
|
+
entityType: value['entityType'],
|
|
146
|
+
telnyxProfileId: value['telnyxProfileId'],
|
|
147
|
+
telnyxBrandId: value['telnyxBrandId']
|
|
148
|
+
};
|
|
149
|
+
}
|
|
@@ -33,6 +33,46 @@ export interface TenDlcBrandUpdateRequest {
|
|
|
33
33
|
* @memberof TenDlcBrandUpdateRequest
|
|
34
34
|
*/
|
|
35
35
|
legalName?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Brand display name (marketing/DBA); defaults to legalName when omitted on legalName-only updates.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TenDlcBrandUpdateRequest
|
|
40
|
+
*/
|
|
41
|
+
displayName?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TenDlcBrandUpdateRequest
|
|
46
|
+
*/
|
|
47
|
+
firstName?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof TenDlcBrandUpdateRequest
|
|
52
|
+
*/
|
|
53
|
+
lastName?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof TenDlcBrandUpdateRequest
|
|
58
|
+
*/
|
|
59
|
+
vertical?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Admin-only; legacy Other records. Ignored on customer PATCH.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof TenDlcBrandUpdateRequest
|
|
64
|
+
*/
|
|
65
|
+
entityType?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Pingram-side brand registration workflow status.
|
|
68
|
+
* - not_started: no customer submission yet
|
|
69
|
+
* - pending_review: customer submitted; Pingram has not submitted to carriers
|
|
70
|
+
* - in_progress: submitted for carrier review
|
|
71
|
+
* - approved | rejected | info_needed: review outcome
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof TenDlcBrandUpdateRequest
|
|
74
|
+
*/
|
|
75
|
+
brandStatus?: TenDlcBrandUpdateRequestBrandStatusEnum;
|
|
36
76
|
/**
|
|
37
77
|
*
|
|
38
78
|
* @type {string}
|
|
@@ -88,6 +128,18 @@ export interface TenDlcBrandUpdateRequest {
|
|
|
88
128
|
*/
|
|
89
129
|
complianceContactPhone?: string;
|
|
90
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
* @enum {string}
|
|
134
|
+
*/
|
|
135
|
+
export declare enum TenDlcBrandUpdateRequestBrandStatusEnum {
|
|
136
|
+
NOT_STARTED = "not_started",
|
|
137
|
+
IN_PROGRESS = "in_progress",
|
|
138
|
+
PENDING_REVIEW = "pending_review",
|
|
139
|
+
APPROVED = "approved",
|
|
140
|
+
REJECTED = "rejected",
|
|
141
|
+
INFO_NEEDED = "info_needed"
|
|
142
|
+
}
|
|
91
143
|
/**
|
|
92
144
|
* Check if a given object implements the TenDlcBrandUpdateRequest interface.
|
|
93
145
|
*/
|
|
@@ -13,11 +13,25 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TenDlcBrandUpdateRequestBrandStatusEnum = void 0;
|
|
16
17
|
exports.instanceOfTenDlcBrandUpdateRequest = instanceOfTenDlcBrandUpdateRequest;
|
|
17
18
|
exports.TenDlcBrandUpdateRequestFromJSON = TenDlcBrandUpdateRequestFromJSON;
|
|
18
19
|
exports.TenDlcBrandUpdateRequestFromJSONTyped = TenDlcBrandUpdateRequestFromJSONTyped;
|
|
19
20
|
exports.TenDlcBrandUpdateRequestToJSON = TenDlcBrandUpdateRequestToJSON;
|
|
20
21
|
exports.TenDlcBrandUpdateRequestToJSONTyped = TenDlcBrandUpdateRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
* @enum {string}
|
|
25
|
+
*/
|
|
26
|
+
var TenDlcBrandUpdateRequestBrandStatusEnum;
|
|
27
|
+
(function (TenDlcBrandUpdateRequestBrandStatusEnum) {
|
|
28
|
+
TenDlcBrandUpdateRequestBrandStatusEnum["NOT_STARTED"] = "not_started";
|
|
29
|
+
TenDlcBrandUpdateRequestBrandStatusEnum["IN_PROGRESS"] = "in_progress";
|
|
30
|
+
TenDlcBrandUpdateRequestBrandStatusEnum["PENDING_REVIEW"] = "pending_review";
|
|
31
|
+
TenDlcBrandUpdateRequestBrandStatusEnum["APPROVED"] = "approved";
|
|
32
|
+
TenDlcBrandUpdateRequestBrandStatusEnum["REJECTED"] = "rejected";
|
|
33
|
+
TenDlcBrandUpdateRequestBrandStatusEnum["INFO_NEEDED"] = "info_needed";
|
|
34
|
+
})(TenDlcBrandUpdateRequestBrandStatusEnum || (exports.TenDlcBrandUpdateRequestBrandStatusEnum = TenDlcBrandUpdateRequestBrandStatusEnum = {}));
|
|
21
35
|
/**
|
|
22
36
|
* Check if a given object implements the TenDlcBrandUpdateRequest interface.
|
|
23
37
|
*/
|
|
@@ -35,6 +49,12 @@ function TenDlcBrandUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
49
|
scenarioId: json['scenarioId'] == null ? undefined : json['scenarioId'],
|
|
36
50
|
businessType: json['businessType'] == null ? undefined : json['businessType'],
|
|
37
51
|
legalName: json['legalName'] == null ? undefined : json['legalName'],
|
|
52
|
+
displayName: json['displayName'] == null ? undefined : json['displayName'],
|
|
53
|
+
firstName: json['firstName'] == null ? undefined : json['firstName'],
|
|
54
|
+
lastName: json['lastName'] == null ? undefined : json['lastName'],
|
|
55
|
+
vertical: json['vertical'] == null ? undefined : json['vertical'],
|
|
56
|
+
entityType: json['entityType'] == null ? undefined : json['entityType'],
|
|
57
|
+
brandStatus: json['brandStatus'] == null ? undefined : json['brandStatus'],
|
|
38
58
|
taxId: json['taxId'] == null ? undefined : json['taxId'],
|
|
39
59
|
website: json['website'] == null ? undefined : json['website'],
|
|
40
60
|
country: json['country'] == null ? undefined : json['country'],
|
|
@@ -61,6 +81,12 @@ function TenDlcBrandUpdateRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
61
81
|
scenarioId: value['scenarioId'],
|
|
62
82
|
businessType: value['businessType'],
|
|
63
83
|
legalName: value['legalName'],
|
|
84
|
+
displayName: value['displayName'],
|
|
85
|
+
firstName: value['firstName'],
|
|
86
|
+
lastName: value['lastName'],
|
|
87
|
+
vertical: value['vertical'],
|
|
88
|
+
entityType: value['entityType'],
|
|
89
|
+
brandStatus: value['brandStatus'],
|
|
64
90
|
taxId: value['taxId'],
|
|
65
91
|
website: value['website'],
|
|
66
92
|
country: value['country'],
|
|
@@ -24,6 +24,7 @@ export * from './BindNumberResponseAgentSpecModel';
|
|
|
24
24
|
export * from './BindNumberResponseAgentSpecOutbound';
|
|
25
25
|
export * from './BindNumberResponseAgentSpecToolsInner';
|
|
26
26
|
export * from './BindNumberResponseAgentSpecVariablesInner';
|
|
27
|
+
export * from './BrandWebhookResponse';
|
|
27
28
|
export * from './Chained';
|
|
28
29
|
export * from './ChangeEmailRequest';
|
|
29
30
|
export * from './ChangePhoneRequest';
|
|
@@ -244,6 +245,7 @@ export * from './TemplatePatchRequestInstant';
|
|
|
244
245
|
export * from './TemplatePostRequest';
|
|
245
246
|
export * from './TenDlcBrandCreateRequest';
|
|
246
247
|
export * from './TenDlcBrandRegistration';
|
|
248
|
+
export * from './TenDlcBrandRegistrationDetails';
|
|
247
249
|
export * from './TenDlcBrandUpdateRequest';
|
|
248
250
|
export * from './Transfer';
|
|
249
251
|
export * from './UnbindNumberResponse';
|
|
@@ -42,6 +42,7 @@ __exportStar(require("./BindNumberResponseAgentSpecModel"), exports);
|
|
|
42
42
|
__exportStar(require("./BindNumberResponseAgentSpecOutbound"), exports);
|
|
43
43
|
__exportStar(require("./BindNumberResponseAgentSpecToolsInner"), exports);
|
|
44
44
|
__exportStar(require("./BindNumberResponseAgentSpecVariablesInner"), exports);
|
|
45
|
+
__exportStar(require("./BrandWebhookResponse"), exports);
|
|
45
46
|
__exportStar(require("./Chained"), exports);
|
|
46
47
|
__exportStar(require("./ChangeEmailRequest"), exports);
|
|
47
48
|
__exportStar(require("./ChangePhoneRequest"), exports);
|
|
@@ -262,6 +263,7 @@ __exportStar(require("./TemplatePatchRequestInstant"), exports);
|
|
|
262
263
|
__exportStar(require("./TemplatePostRequest"), exports);
|
|
263
264
|
__exportStar(require("./TenDlcBrandCreateRequest"), exports);
|
|
264
265
|
__exportStar(require("./TenDlcBrandRegistration"), exports);
|
|
266
|
+
__exportStar(require("./TenDlcBrandRegistrationDetails"), exports);
|
|
265
267
|
__exportStar(require("./TenDlcBrandUpdateRequest"), exports);
|
|
266
268
|
__exportStar(require("./Transfer"), exports);
|
|
267
269
|
__exportStar(require("./UnbindNumberResponse"), 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.18';
|
|
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