@epilot/customer-portal-client 0.4.2 → 0.4.4
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/client.d.ts +1 -2
- package/dist/definition.js +1 -1
- package/dist/index.js +1 -5
- package/dist/openapi.d.ts +617 -915
- package/package.json +1 -1
- package/src/openapi.d.ts +617 -915
package/dist/openapi.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import
|
|
2
|
+
import {
|
|
3
3
|
OpenAPIClient,
|
|
4
4
|
Parameters,
|
|
5
5
|
UnknownParamsObject,
|
|
@@ -8,926 +8,628 @@ import type {
|
|
|
8
8
|
} from 'openapi-client-axios';
|
|
9
9
|
|
|
10
10
|
declare namespace Components {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
11
|
+
namespace Schemas {
|
|
12
|
+
export interface AddPortalResp {
|
|
13
|
+
message?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface AuthConfig {
|
|
16
|
+
/**
|
|
17
|
+
* example:
|
|
18
|
+
* eu-central-1_CUEQRNbUb
|
|
19
|
+
*/
|
|
20
|
+
user_pool_id: string;
|
|
21
|
+
/**
|
|
22
|
+
* example:
|
|
23
|
+
* 6bsd0jkgoie74k2i8mrhc1vest
|
|
24
|
+
*/
|
|
25
|
+
user_pool_client_id: string;
|
|
26
|
+
/**
|
|
27
|
+
* example:
|
|
28
|
+
* eu-central-1:a63af1f7-ab86-4ab5-a0eb-f461cb37c2b1
|
|
29
|
+
*/
|
|
30
|
+
user_pool_identity_pool_id?: string;
|
|
31
|
+
/**
|
|
32
|
+
* example:
|
|
33
|
+
* 7h2hwdj7hhjsdcjkq03eidna3ep
|
|
34
|
+
*/
|
|
35
|
+
portal_id: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* example:
|
|
39
|
+
* {
|
|
40
|
+
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
41
|
+
* "_org": "123",
|
|
42
|
+
* "_schema": "contact",
|
|
43
|
+
* "_tags": [
|
|
44
|
+
* "example",
|
|
45
|
+
* "mock"
|
|
46
|
+
* ],
|
|
47
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
48
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
49
|
+
* }
|
|
50
|
+
*/
|
|
51
|
+
export interface BaseEntity {
|
|
52
|
+
_id: EntityId; // uuid
|
|
53
|
+
/**
|
|
54
|
+
* Title of entity
|
|
55
|
+
*/
|
|
56
|
+
_title: string;
|
|
57
|
+
/**
|
|
58
|
+
* Organization Id the entity belongs to
|
|
59
|
+
*/
|
|
60
|
+
_org: string;
|
|
61
|
+
_schema: EntitySlug;
|
|
62
|
+
_tags?: string[];
|
|
63
|
+
_created_at: string; // date-time
|
|
64
|
+
_updated_at: string; // date-time
|
|
65
|
+
}
|
|
66
|
+
export interface Brand {
|
|
67
|
+
/**
|
|
68
|
+
* example:
|
|
69
|
+
* 12454
|
|
70
|
+
*/
|
|
71
|
+
id?: string;
|
|
72
|
+
/**
|
|
73
|
+
* example:
|
|
74
|
+
* 66
|
|
75
|
+
*/
|
|
76
|
+
organization_id?: string;
|
|
77
|
+
/**
|
|
78
|
+
* example:
|
|
79
|
+
* 3134
|
|
80
|
+
*/
|
|
81
|
+
design_id?: string;
|
|
82
|
+
/**
|
|
83
|
+
* example:
|
|
84
|
+
* abc.com
|
|
85
|
+
*/
|
|
86
|
+
domain?: string;
|
|
87
|
+
cognito_details?: {
|
|
88
|
+
/**
|
|
89
|
+
* example:
|
|
90
|
+
* 6bsd0jkgoie74k2i8mrhc1vest
|
|
91
|
+
*/
|
|
92
|
+
cognito_user_pool_client_id?: string;
|
|
93
|
+
/**
|
|
94
|
+
* example:
|
|
95
|
+
* arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341
|
|
96
|
+
*/
|
|
97
|
+
cognito_user_pool_arn?: string;
|
|
98
|
+
/**
|
|
99
|
+
* example:
|
|
100
|
+
* eu-central-1_CUEQRNbUb
|
|
101
|
+
*/
|
|
102
|
+
cognito_user_pool_id?: string;
|
|
103
|
+
};
|
|
104
|
+
config?: string;
|
|
105
|
+
/**
|
|
106
|
+
* example:
|
|
107
|
+
* 1234
|
|
108
|
+
*/
|
|
109
|
+
secondary_identifier?: string;
|
|
110
|
+
/**
|
|
111
|
+
* example:
|
|
112
|
+
* CONFIGURING
|
|
113
|
+
*/
|
|
114
|
+
dnsStatus?: string;
|
|
115
|
+
dnsRecords?: {
|
|
116
|
+
/**
|
|
117
|
+
* example:
|
|
118
|
+
* _417aisu1ua82jf1fj1743nhsf9180a45.end-customer-portal.dev.epilot.io.
|
|
119
|
+
*/
|
|
120
|
+
name?: string;
|
|
121
|
+
/**
|
|
122
|
+
* example:
|
|
123
|
+
* CNAME
|
|
124
|
+
*/
|
|
125
|
+
type?: string;
|
|
37
126
|
/**
|
|
38
127
|
* example:
|
|
39
|
-
*
|
|
40
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
41
|
-
* "_org": "123",
|
|
42
|
-
* "_schema": "contact",
|
|
43
|
-
* "_tags": [
|
|
44
|
-
* "example",
|
|
45
|
-
* "mock"
|
|
46
|
-
* ],
|
|
47
|
-
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
48
|
-
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
49
|
-
* }
|
|
128
|
+
* _1b879ajs1746hk92hf81ghcch173gc91.bwlshdtstt.acm-validations.aws.
|
|
50
129
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
* Title of entity
|
|
55
|
-
*/
|
|
56
|
-
_title: string;
|
|
57
|
-
/**
|
|
58
|
-
* Organization Id the entity belongs to
|
|
59
|
-
*/
|
|
60
|
-
_org: string;
|
|
61
|
-
_schema: /**
|
|
62
|
-
* URL-friendly identifier for the entity schema
|
|
63
|
-
* example:
|
|
64
|
-
* contact
|
|
65
|
-
*/
|
|
66
|
-
EntitySlug;
|
|
67
|
-
_tags?: string[];
|
|
68
|
-
_created_at: string; // date-time
|
|
69
|
-
_updated_at: string; // date-time
|
|
70
|
-
}
|
|
71
|
-
export interface Brand {
|
|
72
|
-
/**
|
|
73
|
-
* example:
|
|
74
|
-
* 12454
|
|
75
|
-
*/
|
|
76
|
-
id?: string;
|
|
77
|
-
/**
|
|
78
|
-
* example:
|
|
79
|
-
* 66
|
|
80
|
-
*/
|
|
81
|
-
organization_id?: string;
|
|
82
|
-
/**
|
|
83
|
-
* example:
|
|
84
|
-
* 3134
|
|
85
|
-
*/
|
|
86
|
-
design_id?: string;
|
|
87
|
-
/**
|
|
88
|
-
* example:
|
|
89
|
-
* abc.com
|
|
90
|
-
*/
|
|
91
|
-
domain?: string;
|
|
92
|
-
cognito_details?: {
|
|
93
|
-
/**
|
|
94
|
-
* example:
|
|
95
|
-
* 6bsd0jkgoie74k2i8mrhc1vest
|
|
96
|
-
*/
|
|
97
|
-
cognito_user_pool_client_id?: string;
|
|
98
|
-
/**
|
|
99
|
-
* example:
|
|
100
|
-
* arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341
|
|
101
|
-
*/
|
|
102
|
-
cognito_user_pool_arn?: string;
|
|
103
|
-
/**
|
|
104
|
-
* example:
|
|
105
|
-
* eu-central-1_CUEQRNbUb
|
|
106
|
-
*/
|
|
107
|
-
cognito_user_pool_id?: string;
|
|
108
|
-
};
|
|
109
|
-
config?: string;
|
|
110
|
-
/**
|
|
111
|
-
* example:
|
|
112
|
-
* 1234
|
|
113
|
-
*/
|
|
114
|
-
secondary_identifier?: string;
|
|
115
|
-
/**
|
|
116
|
-
* example:
|
|
117
|
-
* CONFIGURING
|
|
118
|
-
*/
|
|
119
|
-
dnsStatus?: string;
|
|
120
|
-
dnsRecords?: {
|
|
121
|
-
/**
|
|
122
|
-
* example:
|
|
123
|
-
* _417aisu1ua82jf1fj1743nhsf9180a45.end-customer-portal.dev.epilot.io.
|
|
124
|
-
*/
|
|
125
|
-
name?: string;
|
|
126
|
-
/**
|
|
127
|
-
* example:
|
|
128
|
-
* CNAME
|
|
129
|
-
*/
|
|
130
|
-
type?: string;
|
|
131
|
-
/**
|
|
132
|
-
* example:
|
|
133
|
-
* _1b879ajs1746hk92hf81ghcch173gc91.bwlshdtstt.acm-validations.aws.
|
|
134
|
-
*/
|
|
135
|
-
value?: string;
|
|
136
|
-
}[];
|
|
137
|
-
cdnRecords?: {
|
|
138
|
-
/**
|
|
139
|
-
* example:
|
|
140
|
-
* end-customer-portal.dev.epilot.io.
|
|
141
|
-
*/
|
|
142
|
-
name?: string;
|
|
143
|
-
/**
|
|
144
|
-
* example:
|
|
145
|
-
* CNAME
|
|
146
|
-
*/
|
|
147
|
-
type?: string;
|
|
148
|
-
/**
|
|
149
|
-
* example:
|
|
150
|
-
* dm99ajd13901ne9.cloudfront.net
|
|
151
|
-
*/
|
|
152
|
-
value?: string;
|
|
153
|
-
}[];
|
|
154
|
-
}
|
|
155
|
-
export interface BrandCreate {
|
|
156
|
-
/**
|
|
157
|
-
* example:
|
|
158
|
-
* 12345
|
|
159
|
-
*/
|
|
160
|
-
id?: string;
|
|
161
|
-
/**
|
|
162
|
-
* example:
|
|
163
|
-
* test@test.com
|
|
164
|
-
*/
|
|
165
|
-
domain?: string;
|
|
166
|
-
/**
|
|
167
|
-
* example:
|
|
168
|
-
* true
|
|
169
|
-
*/
|
|
170
|
-
enabled?: boolean;
|
|
171
|
-
/**
|
|
172
|
-
* example:
|
|
173
|
-
* true
|
|
174
|
-
*/
|
|
175
|
-
is_epilot_domain?: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* example:
|
|
178
|
-
* 3134
|
|
179
|
-
*/
|
|
180
|
-
design_id?: string;
|
|
181
|
-
cognito_details?: {
|
|
182
|
-
/**
|
|
183
|
-
* example:
|
|
184
|
-
* 6bsd0jkgoie74k2i8mrhc1vest
|
|
185
|
-
*/
|
|
186
|
-
cognito_user_pool_client_id?: string;
|
|
187
|
-
/**
|
|
188
|
-
* example:
|
|
189
|
-
* arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341
|
|
190
|
-
*/
|
|
191
|
-
cognito_user_pool_arn?: string;
|
|
192
|
-
/**
|
|
193
|
-
* example:
|
|
194
|
-
* eu-central-1_CUEQRNbUb
|
|
195
|
-
*/
|
|
196
|
-
cognito_user_pool_id?: string;
|
|
197
|
-
};
|
|
198
|
-
config?: string;
|
|
199
|
-
/**
|
|
200
|
-
* example:
|
|
201
|
-
* full_name
|
|
202
|
-
*/
|
|
203
|
-
contact_secondary_identifier?: string;
|
|
204
|
-
email_templates?: {
|
|
205
|
-
/**
|
|
206
|
-
* example:
|
|
207
|
-
* 701f089d-6953-48b5-ac35-442de7c59cd3
|
|
208
|
-
*/
|
|
209
|
-
confirmAccount?: string;
|
|
210
|
-
/**
|
|
211
|
-
* example:
|
|
212
|
-
* 6538fddb-f0e9-4f0f-af51-6e57891ff20a
|
|
213
|
-
*/
|
|
214
|
-
forgotPassword?: string;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
export interface Entity {
|
|
218
|
-
[name: string]: any;
|
|
219
|
-
}
|
|
220
|
-
export type EntityId = string; // uuid
|
|
130
|
+
value?: string;
|
|
131
|
+
}[];
|
|
132
|
+
cdnRecords?: {
|
|
221
133
|
/**
|
|
222
134
|
* example:
|
|
223
|
-
*
|
|
224
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
225
|
-
* "_org": "123",
|
|
226
|
-
* "_schema": "contact",
|
|
227
|
-
* "_tags": [
|
|
228
|
-
* "example",
|
|
229
|
-
* "mock"
|
|
230
|
-
* ],
|
|
231
|
-
* "_created_at": {},
|
|
232
|
-
* "_updated_at": {}
|
|
233
|
-
* }
|
|
135
|
+
* end-customer-portal.dev.epilot.io.
|
|
234
136
|
*/
|
|
235
|
-
|
|
236
|
-
[name: string]: any;
|
|
237
|
-
_id: EntityId /* uuid */;
|
|
238
|
-
/**
|
|
239
|
-
* Title of entity
|
|
240
|
-
*/
|
|
241
|
-
_title: string;
|
|
242
|
-
/**
|
|
243
|
-
* Organization Id the entity belongs to
|
|
244
|
-
*/
|
|
245
|
-
_org: string;
|
|
246
|
-
_schema: /**
|
|
247
|
-
* URL-friendly identifier for the entity schema
|
|
248
|
-
* example:
|
|
249
|
-
* contact
|
|
250
|
-
*/
|
|
251
|
-
EntitySlug;
|
|
252
|
-
_tags?: string[];
|
|
253
|
-
_created_at: string; // date-time
|
|
254
|
-
_updated_at: string; // date-time
|
|
255
|
-
}
|
|
137
|
+
name?: string;
|
|
256
138
|
/**
|
|
257
|
-
* URL-friendly identifier for the entity schema
|
|
258
139
|
* example:
|
|
259
|
-
*
|
|
140
|
+
* CNAME
|
|
260
141
|
*/
|
|
261
|
-
|
|
262
|
-
export interface ErrorResp {
|
|
263
|
-
message?: string;
|
|
264
|
-
}
|
|
142
|
+
type?: string;
|
|
265
143
|
/**
|
|
266
144
|
* example:
|
|
267
|
-
*
|
|
268
|
-
* "exists": true,
|
|
269
|
-
* "active": false
|
|
270
|
-
* }
|
|
145
|
+
* dm99ajd13901ne9.cloudfront.net
|
|
271
146
|
*/
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
active?: boolean;
|
|
275
|
-
}
|
|
276
|
-
export type InviteToken = string;
|
|
277
|
-
export interface PortalConfig {
|
|
278
|
-
auth_config?: AuthConfig;
|
|
279
|
-
}
|
|
280
|
-
export interface UserActivationPayload {
|
|
281
|
-
/**
|
|
282
|
-
* User's display name (default: email address)
|
|
283
|
-
* example:
|
|
284
|
-
* Example User
|
|
285
|
-
*/
|
|
286
|
-
display_name?: string;
|
|
287
|
-
/**
|
|
288
|
-
* User's password
|
|
289
|
-
* example:
|
|
290
|
-
* AKjhdakjsdh@!34
|
|
291
|
-
*/
|
|
292
|
-
password?: string;
|
|
293
|
-
}
|
|
147
|
+
value?: string;
|
|
148
|
+
}[];
|
|
294
149
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
150
|
+
export interface BrandCreate {
|
|
151
|
+
/**
|
|
152
|
+
* example:
|
|
153
|
+
* 12345
|
|
154
|
+
*/
|
|
155
|
+
id?: string;
|
|
156
|
+
/**
|
|
157
|
+
* example:
|
|
158
|
+
* test@test.com
|
|
159
|
+
*/
|
|
160
|
+
domain?: string;
|
|
161
|
+
/**
|
|
162
|
+
* example:
|
|
163
|
+
* true
|
|
164
|
+
*/
|
|
165
|
+
enabled?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* example:
|
|
168
|
+
* true
|
|
169
|
+
*/
|
|
170
|
+
is_epilot_domain?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* example:
|
|
173
|
+
* 3134
|
|
174
|
+
*/
|
|
175
|
+
design_id?: string;
|
|
176
|
+
cognito_details?: {
|
|
177
|
+
/**
|
|
178
|
+
* example:
|
|
179
|
+
* 6bsd0jkgoie74k2i8mrhc1vest
|
|
180
|
+
*/
|
|
181
|
+
cognito_user_pool_client_id?: string;
|
|
182
|
+
/**
|
|
183
|
+
* example:
|
|
184
|
+
* arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341
|
|
185
|
+
*/
|
|
186
|
+
cognito_user_pool_arn?: string;
|
|
187
|
+
/**
|
|
188
|
+
* example:
|
|
189
|
+
* eu-central-1_CUEQRNbUb
|
|
190
|
+
*/
|
|
191
|
+
cognito_user_pool_id?: string;
|
|
192
|
+
};
|
|
193
|
+
config?: string;
|
|
194
|
+
/**
|
|
195
|
+
* example:
|
|
196
|
+
* full_name
|
|
197
|
+
*/
|
|
198
|
+
contact_secondary_identifier?: string;
|
|
199
|
+
email_templates?: {
|
|
200
|
+
/**
|
|
201
|
+
* example:
|
|
202
|
+
* 701f089d-6953-48b5-ac35-442de7c59cd3
|
|
203
|
+
*/
|
|
204
|
+
confirmAccount?: string;
|
|
205
|
+
/**
|
|
206
|
+
* example:
|
|
207
|
+
* 6538fddb-f0e9-4f0f-af51-6e57891ff20a
|
|
208
|
+
*/
|
|
209
|
+
forgotPassword?: string;
|
|
210
|
+
};
|
|
311
211
|
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* example:
|
|
316
|
-
* 123
|
|
317
|
-
*/
|
|
318
|
-
export type BrandId = string;
|
|
319
|
-
}
|
|
320
|
-
export interface QueryParameters {
|
|
321
|
-
brand_id: /**
|
|
322
|
-
* example:
|
|
323
|
-
* 123
|
|
324
|
-
*/
|
|
325
|
-
Parameters.BrandId;
|
|
326
|
-
}
|
|
327
|
-
namespace Responses {
|
|
328
|
-
export interface $200 {
|
|
329
|
-
/**
|
|
330
|
-
* example:
|
|
331
|
-
* dsj8op4ha01jha23.cloudfront.net
|
|
332
|
-
*/
|
|
333
|
-
domainName?: string;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
212
|
+
export interface Entity {
|
|
213
|
+
[name: string]: any;
|
|
336
214
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
* "_created_at": {},
|
|
368
|
-
* "_updated_at": {}
|
|
369
|
-
* }
|
|
370
|
-
*/
|
|
371
|
-
Components.Schemas.EntityItem;
|
|
372
|
-
}
|
|
215
|
+
export type EntityId = string; // uuid
|
|
216
|
+
/**
|
|
217
|
+
* example:
|
|
218
|
+
* {
|
|
219
|
+
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
220
|
+
* "_org": "123",
|
|
221
|
+
* "_schema": "contact",
|
|
222
|
+
* "_tags": [
|
|
223
|
+
* "example",
|
|
224
|
+
* "mock"
|
|
225
|
+
* ],
|
|
226
|
+
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
227
|
+
* "_updated_at": "2021-02-09T12:41:43.662Z"
|
|
228
|
+
* }
|
|
229
|
+
*/
|
|
230
|
+
export interface EntityItem {
|
|
231
|
+
[name: string]: any;
|
|
232
|
+
_id: EntityId; // uuid
|
|
233
|
+
/**
|
|
234
|
+
* Title of entity
|
|
235
|
+
*/
|
|
236
|
+
_title: string;
|
|
237
|
+
/**
|
|
238
|
+
* Organization Id the entity belongs to
|
|
239
|
+
*/
|
|
240
|
+
_org: string;
|
|
241
|
+
_schema: EntitySlug;
|
|
242
|
+
_tags?: string[];
|
|
243
|
+
_created_at: string; // date-time
|
|
244
|
+
_updated_at: string; // date-time
|
|
373
245
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
* example:
|
|
383
|
-
* Pass1234!
|
|
384
|
-
*/
|
|
385
|
-
password?: string;
|
|
386
|
-
/**
|
|
387
|
-
* example:
|
|
388
|
-
* 728
|
|
389
|
-
*/
|
|
390
|
-
orgId?: string;
|
|
391
|
-
/**
|
|
392
|
-
* example:
|
|
393
|
-
* eu-central-1_391JDA1HFO
|
|
394
|
-
*/
|
|
395
|
-
userPoolId?: string;
|
|
396
|
-
/**
|
|
397
|
-
* example:
|
|
398
|
-
* aj123jfoavnashf2fj
|
|
399
|
-
*/
|
|
400
|
-
clientId?: string;
|
|
401
|
-
/**
|
|
402
|
-
* example:
|
|
403
|
-
* 123456
|
|
404
|
-
*/
|
|
405
|
-
brandId?: string;
|
|
406
|
-
/**
|
|
407
|
-
* example:
|
|
408
|
-
* 123456
|
|
409
|
-
*/
|
|
410
|
-
secondaryIdentifier?: string;
|
|
411
|
-
/**
|
|
412
|
-
* example:
|
|
413
|
-
* 123456
|
|
414
|
-
*/
|
|
415
|
-
contactId?: string;
|
|
416
|
-
}
|
|
417
|
-
namespace Responses {
|
|
418
|
-
export type $201 = Components.Schemas.AddPortalResp;
|
|
419
|
-
export type $400 = Components.Schemas.ErrorResp;
|
|
420
|
-
export type $401 = Components.Schemas.ErrorResp;
|
|
421
|
-
export type $500 = Components.Schemas.ErrorResp;
|
|
422
|
-
}
|
|
246
|
+
/**
|
|
247
|
+
* URL-friendly identifier for the entity schema
|
|
248
|
+
* example:
|
|
249
|
+
* contact
|
|
250
|
+
*/
|
|
251
|
+
export type EntitySlug = string;
|
|
252
|
+
export interface ErrorResp {
|
|
253
|
+
message?: string;
|
|
423
254
|
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
255
|
+
/**
|
|
256
|
+
* example:
|
|
257
|
+
* {
|
|
258
|
+
* "exists": true,
|
|
259
|
+
* "active": false
|
|
260
|
+
* }
|
|
261
|
+
*/
|
|
262
|
+
export interface Exists {
|
|
263
|
+
exists: boolean;
|
|
264
|
+
active?: boolean;
|
|
432
265
|
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
data?: /**
|
|
437
|
-
* example:
|
|
438
|
-
* {
|
|
439
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
440
|
-
* "_org": "123",
|
|
441
|
-
* "_schema": "contact",
|
|
442
|
-
* "_tags": [
|
|
443
|
-
* "example",
|
|
444
|
-
* "mock"
|
|
445
|
-
* ],
|
|
446
|
-
* "_created_at": {},
|
|
447
|
-
* "_updated_at": {}
|
|
448
|
-
* }
|
|
449
|
-
*/
|
|
450
|
-
Components.Schemas.EntityItem[];
|
|
451
|
-
}
|
|
452
|
-
}
|
|
266
|
+
export type InviteToken = string;
|
|
267
|
+
export interface PortalConfig {
|
|
268
|
+
auth_config?: AuthConfig;
|
|
453
269
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
* "_created_at": {},
|
|
468
|
-
* "_updated_at": {}
|
|
469
|
-
* }
|
|
470
|
-
*/
|
|
471
|
-
Components.Schemas.EntityItem[];
|
|
472
|
-
}
|
|
473
|
-
}
|
|
270
|
+
export interface UserActivationPayload {
|
|
271
|
+
/**
|
|
272
|
+
* User's display name (default: email address)
|
|
273
|
+
* example:
|
|
274
|
+
* Example User
|
|
275
|
+
*/
|
|
276
|
+
display_name?: string;
|
|
277
|
+
/**
|
|
278
|
+
* User's password
|
|
279
|
+
* example:
|
|
280
|
+
* AKjhdakjsdh@!34
|
|
281
|
+
*/
|
|
282
|
+
password?: string;
|
|
474
283
|
}
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
* "_org": "123",
|
|
482
|
-
* "_schema": "contact",
|
|
483
|
-
* "_tags": [
|
|
484
|
-
* "example",
|
|
485
|
-
* "mock"
|
|
486
|
-
* ],
|
|
487
|
-
* "_created_at": {},
|
|
488
|
-
* "_updated_at": {}
|
|
489
|
-
* }
|
|
490
|
-
*/
|
|
491
|
-
Components.Schemas.EntityItem;
|
|
492
|
-
export type $500 = Components.Schemas.ErrorResp;
|
|
493
|
-
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
declare namespace Paths {
|
|
287
|
+
namespace ActivateUser {
|
|
288
|
+
namespace Parameters {
|
|
289
|
+
export type Token = Components.Schemas.InviteToken;
|
|
494
290
|
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* example:
|
|
499
|
-
* test@test.com
|
|
500
|
-
*/
|
|
501
|
-
export type Email = string;
|
|
502
|
-
/**
|
|
503
|
-
* example:
|
|
504
|
-
* 123
|
|
505
|
-
*/
|
|
506
|
-
export type OrgId = string;
|
|
507
|
-
}
|
|
508
|
-
export interface QueryParameters {
|
|
509
|
-
email: /**
|
|
510
|
-
* example:
|
|
511
|
-
* test@test.com
|
|
512
|
-
*/
|
|
513
|
-
Parameters.Email;
|
|
514
|
-
org_id: /**
|
|
515
|
-
* example:
|
|
516
|
-
* 123
|
|
517
|
-
*/
|
|
518
|
-
Parameters.OrgId;
|
|
519
|
-
}
|
|
520
|
-
namespace Responses {
|
|
521
|
-
export interface $200 {
|
|
522
|
-
/**
|
|
523
|
-
* example:
|
|
524
|
-
* 2
|
|
525
|
-
*/
|
|
526
|
-
count?: number;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
291
|
+
export interface QueryParameters {
|
|
292
|
+
token: Parameters.Token;
|
|
529
293
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
id: /**
|
|
540
|
-
* example:
|
|
541
|
-
* 1234
|
|
542
|
-
*/
|
|
543
|
-
Parameters.Id;
|
|
544
|
-
}
|
|
545
|
-
namespace Responses {
|
|
546
|
-
export type $200 = /**
|
|
547
|
-
* example:
|
|
548
|
-
* {
|
|
549
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
550
|
-
* "_org": "123",
|
|
551
|
-
* "_schema": "contact",
|
|
552
|
-
* "_tags": [
|
|
553
|
-
* "example",
|
|
554
|
-
* "mock"
|
|
555
|
-
* ],
|
|
556
|
-
* "_created_at": {},
|
|
557
|
-
* "_updated_at": {}
|
|
558
|
-
* }
|
|
559
|
-
*/
|
|
560
|
-
Components.Schemas.EntityItem;
|
|
561
|
-
export type $500 = Components.Schemas.ErrorResp;
|
|
562
|
-
}
|
|
294
|
+
export type RequestBody = Components.Schemas.UserActivationPayload;
|
|
295
|
+
}
|
|
296
|
+
namespace ConfigureDistribution {
|
|
297
|
+
namespace Parameters {
|
|
298
|
+
/**
|
|
299
|
+
* example:
|
|
300
|
+
* 123
|
|
301
|
+
*/
|
|
302
|
+
export type BrandId = string;
|
|
563
303
|
}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
export type Id = Components.Schemas.EntityId /* uuid */;
|
|
567
|
-
}
|
|
568
|
-
export interface PathParameters {
|
|
569
|
-
id: Parameters.Id;
|
|
570
|
-
}
|
|
571
|
-
namespace Responses {
|
|
572
|
-
export interface $200 {
|
|
573
|
-
entity?: /**
|
|
574
|
-
* example:
|
|
575
|
-
* {
|
|
576
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
577
|
-
* "_org": "123",
|
|
578
|
-
* "_schema": "contact",
|
|
579
|
-
* "_tags": [
|
|
580
|
-
* "example",
|
|
581
|
-
* "mock"
|
|
582
|
-
* ],
|
|
583
|
-
* "_created_at": {},
|
|
584
|
-
* "_updated_at": {}
|
|
585
|
-
* }
|
|
586
|
-
*/
|
|
587
|
-
Components.Schemas.EntityItem;
|
|
588
|
-
relations?: /**
|
|
589
|
-
* example:
|
|
590
|
-
* {
|
|
591
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
592
|
-
* "_org": "123",
|
|
593
|
-
* "_schema": "contact",
|
|
594
|
-
* "_tags": [
|
|
595
|
-
* "example",
|
|
596
|
-
* "mock"
|
|
597
|
-
* ],
|
|
598
|
-
* "_created_at": {},
|
|
599
|
-
* "_updated_at": {}
|
|
600
|
-
* }
|
|
601
|
-
*/
|
|
602
|
-
Components.Schemas.EntityItem[];
|
|
603
|
-
}
|
|
604
|
-
}
|
|
304
|
+
export interface QueryParameters {
|
|
305
|
+
brand_id: Parameters.BrandId;
|
|
605
306
|
}
|
|
606
|
-
namespace
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
export interface $200 {
|
|
615
|
-
entity?: /**
|
|
616
|
-
* example:
|
|
617
|
-
* {
|
|
618
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
619
|
-
* "_org": "123",
|
|
620
|
-
* "_schema": "contact",
|
|
621
|
-
* "_tags": [
|
|
622
|
-
* "example",
|
|
623
|
-
* "mock"
|
|
624
|
-
* ],
|
|
625
|
-
* "_created_at": {},
|
|
626
|
-
* "_updated_at": {}
|
|
627
|
-
* }
|
|
628
|
-
*/
|
|
629
|
-
Components.Schemas.EntityItem;
|
|
630
|
-
relations?: /**
|
|
631
|
-
* example:
|
|
632
|
-
* {
|
|
633
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
634
|
-
* "_org": "123",
|
|
635
|
-
* "_schema": "contact",
|
|
636
|
-
* "_tags": [
|
|
637
|
-
* "example",
|
|
638
|
-
* "mock"
|
|
639
|
-
* ],
|
|
640
|
-
* "_created_at": {},
|
|
641
|
-
* "_updated_at": {}
|
|
642
|
-
* }
|
|
643
|
-
*/
|
|
644
|
-
Components.Schemas.EntityItem[];
|
|
645
|
-
}
|
|
646
|
-
}
|
|
307
|
+
namespace Responses {
|
|
308
|
+
export interface $200 {
|
|
309
|
+
/**
|
|
310
|
+
* example:
|
|
311
|
+
* dsj8op4ha01jha23.cloudfront.net
|
|
312
|
+
*/
|
|
313
|
+
domainName?: string;
|
|
314
|
+
}
|
|
647
315
|
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
316
|
+
}
|
|
317
|
+
namespace ConfirmUser {
|
|
318
|
+
namespace Parameters {
|
|
319
|
+
export type Id = Components.Schemas.EntityId; // uuid
|
|
320
|
+
/**
|
|
321
|
+
* example:
|
|
322
|
+
* 123
|
|
323
|
+
*/
|
|
324
|
+
export type OrgId = string;
|
|
652
325
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* example:
|
|
657
|
-
* 12324
|
|
658
|
-
*/
|
|
659
|
-
export type BrandId = string;
|
|
660
|
-
}
|
|
661
|
-
export interface QueryParameters {
|
|
662
|
-
brand_id: /**
|
|
663
|
-
* example:
|
|
664
|
-
* 12324
|
|
665
|
-
*/
|
|
666
|
-
Parameters.BrandId;
|
|
667
|
-
}
|
|
668
|
-
namespace Responses {
|
|
669
|
-
export type $200 = Components.Schemas.Brand;
|
|
670
|
-
}
|
|
326
|
+
export interface PathParameters {
|
|
327
|
+
id: Parameters.Id;
|
|
671
328
|
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* example:
|
|
676
|
-
* example.com
|
|
677
|
-
*/
|
|
678
|
-
export type Domain = string;
|
|
679
|
-
}
|
|
680
|
-
export interface QueryParameters {
|
|
681
|
-
domain: /**
|
|
682
|
-
* example:
|
|
683
|
-
* example.com
|
|
684
|
-
*/
|
|
685
|
-
Parameters.Domain;
|
|
686
|
-
}
|
|
687
|
-
namespace Responses {
|
|
688
|
-
export type $200 = Components.Schemas.Brand;
|
|
689
|
-
}
|
|
329
|
+
export interface QueryParameters {
|
|
330
|
+
org_id: Parameters.OrgId;
|
|
690
331
|
}
|
|
691
|
-
namespace
|
|
692
|
-
|
|
693
|
-
export type $200 = /**
|
|
694
|
-
* example:
|
|
695
|
-
* {
|
|
696
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
697
|
-
* "_org": "123",
|
|
698
|
-
* "_schema": "contact",
|
|
699
|
-
* "_tags": [
|
|
700
|
-
* "example",
|
|
701
|
-
* "mock"
|
|
702
|
-
* ],
|
|
703
|
-
* "_created_at": {},
|
|
704
|
-
* "_updated_at": {}
|
|
705
|
-
* }
|
|
706
|
-
*/
|
|
707
|
-
Components.Schemas.EntityItem;
|
|
708
|
-
}
|
|
332
|
+
namespace Responses {
|
|
333
|
+
export type $200 = Components.Schemas.EntityItem;
|
|
709
334
|
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
335
|
+
}
|
|
336
|
+
namespace CreateUser {
|
|
337
|
+
export interface RequestBody {
|
|
338
|
+
/**
|
|
339
|
+
* example:
|
|
340
|
+
* testemail921@yopmail.com
|
|
341
|
+
*/
|
|
342
|
+
email?: string;
|
|
343
|
+
/**
|
|
344
|
+
* example:
|
|
345
|
+
* Pass1234!
|
|
346
|
+
*/
|
|
347
|
+
password?: string;
|
|
348
|
+
/**
|
|
349
|
+
* example:
|
|
350
|
+
* 728
|
|
351
|
+
*/
|
|
352
|
+
orgId?: string;
|
|
353
|
+
/**
|
|
354
|
+
* example:
|
|
355
|
+
* eu-central-1_391JDA1HFO
|
|
356
|
+
*/
|
|
357
|
+
userPoolId?: string;
|
|
358
|
+
/**
|
|
359
|
+
* example:
|
|
360
|
+
* aj123jfoavnashf2fj
|
|
361
|
+
*/
|
|
362
|
+
clientId?: string;
|
|
363
|
+
/**
|
|
364
|
+
* example:
|
|
365
|
+
* 123456
|
|
366
|
+
*/
|
|
367
|
+
brandId?: string;
|
|
368
|
+
/**
|
|
369
|
+
* example:
|
|
370
|
+
* 123456
|
|
371
|
+
*/
|
|
372
|
+
secondaryIdentifier?: string;
|
|
373
|
+
/**
|
|
374
|
+
* example:
|
|
375
|
+
* 123456
|
|
376
|
+
*/
|
|
377
|
+
contactId?: string;
|
|
738
378
|
}
|
|
739
|
-
namespace
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
* example:
|
|
745
|
-
* first_name
|
|
746
|
-
*/
|
|
747
|
-
name?: string;
|
|
748
|
-
/**
|
|
749
|
-
* example:
|
|
750
|
-
* string
|
|
751
|
-
*/
|
|
752
|
-
type?: string;
|
|
753
|
-
}[];
|
|
754
|
-
}
|
|
755
|
-
}
|
|
379
|
+
namespace Responses {
|
|
380
|
+
export type $201 = Components.Schemas.AddPortalResp;
|
|
381
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
382
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
383
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
756
384
|
}
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
385
|
+
}
|
|
386
|
+
namespace DeletePortalUser {
|
|
387
|
+
namespace Responses {
|
|
388
|
+
/**
|
|
389
|
+
* example:
|
|
390
|
+
* 123
|
|
391
|
+
*/
|
|
392
|
+
export type $200 = string;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
namespace GetAllOpportunities {
|
|
396
|
+
namespace Responses {
|
|
397
|
+
export interface $200 {
|
|
398
|
+
data?: Components.Schemas.EntityItem[];
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
namespace GetAllOrders {
|
|
403
|
+
namespace Responses {
|
|
404
|
+
export interface $200 {
|
|
405
|
+
data?: Components.Schemas.EntityItem[];
|
|
406
|
+
}
|
|
762
407
|
}
|
|
763
|
-
|
|
764
|
-
|
|
408
|
+
}
|
|
409
|
+
namespace GetContact {
|
|
410
|
+
namespace Responses {
|
|
411
|
+
export type $200 = Components.Schemas.EntityItem;
|
|
412
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
namespace GetCountByEmail {
|
|
416
|
+
namespace Parameters {
|
|
417
|
+
/**
|
|
418
|
+
* example:
|
|
419
|
+
* test@test.com
|
|
420
|
+
*/
|
|
421
|
+
export type Email = string;
|
|
422
|
+
/**
|
|
423
|
+
* example:
|
|
424
|
+
* 123
|
|
425
|
+
*/
|
|
426
|
+
export type OrgId = string;
|
|
427
|
+
}
|
|
428
|
+
export interface QueryParameters {
|
|
429
|
+
email: Parameters.Email;
|
|
430
|
+
org_id: Parameters.OrgId;
|
|
431
|
+
}
|
|
432
|
+
namespace Responses {
|
|
433
|
+
export interface $200 {
|
|
434
|
+
/**
|
|
765
435
|
* example:
|
|
766
|
-
*
|
|
767
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
768
|
-
* "_org": "123",
|
|
769
|
-
* "_schema": "contact",
|
|
770
|
-
* "_tags": [
|
|
771
|
-
* "example",
|
|
772
|
-
* "mock"
|
|
773
|
-
* ],
|
|
774
|
-
* "_created_at": {},
|
|
775
|
-
* "_updated_at": {}
|
|
776
|
-
* }
|
|
436
|
+
* 2
|
|
777
437
|
*/
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
438
|
+
count?: number;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
namespace GetECPContact {
|
|
443
|
+
namespace Parameters {
|
|
444
|
+
/**
|
|
445
|
+
* example:
|
|
446
|
+
* 1234
|
|
447
|
+
*/
|
|
448
|
+
export type Id = string;
|
|
449
|
+
}
|
|
450
|
+
export interface QueryParameters {
|
|
451
|
+
id: Parameters.Id;
|
|
452
|
+
}
|
|
453
|
+
namespace Responses {
|
|
454
|
+
export type $200 = Components.Schemas.EntityItem;
|
|
455
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
namespace GetOpportunity {
|
|
459
|
+
namespace Parameters {
|
|
460
|
+
export type Id = Components.Schemas.EntityId; // uuid
|
|
461
|
+
}
|
|
462
|
+
export interface PathParameters {
|
|
463
|
+
id: Parameters.Id;
|
|
464
|
+
}
|
|
465
|
+
namespace Responses {
|
|
466
|
+
export interface $200 {
|
|
467
|
+
entity?: Components.Schemas.EntityItem;
|
|
468
|
+
relations?: Components.Schemas.EntityItem[];
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
namespace GetOrder {
|
|
473
|
+
namespace Parameters {
|
|
474
|
+
export type Id = Components.Schemas.EntityId; // uuid
|
|
475
|
+
}
|
|
476
|
+
export interface PathParameters {
|
|
477
|
+
id: Parameters.Id;
|
|
478
|
+
}
|
|
479
|
+
namespace Responses {
|
|
480
|
+
export interface $200 {
|
|
481
|
+
entity?: Components.Schemas.EntityItem;
|
|
482
|
+
relations?: Components.Schemas.EntityItem[];
|
|
483
|
+
}
|
|
796
484
|
}
|
|
797
|
-
|
|
798
|
-
|
|
485
|
+
}
|
|
486
|
+
namespace GetOrgPortalConfig {
|
|
487
|
+
namespace Responses {
|
|
488
|
+
export type $200 = Components.Schemas.Brand;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
namespace GetPortalConfig {
|
|
492
|
+
namespace Parameters {
|
|
493
|
+
/**
|
|
494
|
+
* example:
|
|
495
|
+
* 12324
|
|
496
|
+
*/
|
|
497
|
+
export type BrandId = string;
|
|
498
|
+
}
|
|
499
|
+
export interface QueryParameters {
|
|
500
|
+
brand_id: Parameters.BrandId;
|
|
501
|
+
}
|
|
502
|
+
namespace Responses {
|
|
503
|
+
export type $200 = Components.Schemas.Brand;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
namespace GetPortalConfigByDomain {
|
|
507
|
+
namespace Parameters {
|
|
508
|
+
/**
|
|
509
|
+
* example:
|
|
510
|
+
* example.com
|
|
511
|
+
*/
|
|
512
|
+
export type Domain = string;
|
|
513
|
+
}
|
|
514
|
+
export interface QueryParameters {
|
|
515
|
+
domain: Parameters.Domain;
|
|
516
|
+
}
|
|
517
|
+
namespace Responses {
|
|
518
|
+
export type $200 = Components.Schemas.Brand;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
namespace GetPortalUser {
|
|
522
|
+
namespace Responses {
|
|
523
|
+
export type $200 = Components.Schemas.EntityItem;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
namespace GetPublicPortalConfig {
|
|
527
|
+
namespace Parameters {
|
|
528
|
+
/**
|
|
529
|
+
* example:
|
|
530
|
+
* 12324
|
|
531
|
+
*/
|
|
532
|
+
export type BrandId = string;
|
|
533
|
+
/**
|
|
534
|
+
* example:
|
|
535
|
+
* 12324
|
|
536
|
+
*/
|
|
537
|
+
export type OrgId = string;
|
|
538
|
+
}
|
|
539
|
+
export interface QueryParameters {
|
|
540
|
+
brand_id: Parameters.BrandId;
|
|
541
|
+
org_id: Parameters.OrgId;
|
|
542
|
+
}
|
|
543
|
+
namespace Responses {
|
|
544
|
+
export type $200 = Components.Schemas.Brand;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
namespace GetValidSecondaryAttributes {
|
|
548
|
+
namespace Responses {
|
|
549
|
+
export interface $200 {
|
|
550
|
+
data?: {
|
|
551
|
+
/**
|
|
552
|
+
* example:
|
|
553
|
+
* first_name
|
|
554
|
+
*/
|
|
555
|
+
name?: string;
|
|
556
|
+
/**
|
|
557
|
+
* example:
|
|
558
|
+
* string
|
|
559
|
+
*/
|
|
560
|
+
type?: string;
|
|
561
|
+
}[];
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
namespace UpdateContact {
|
|
566
|
+
export type RequestBody = Components.Schemas.EntityItem;
|
|
567
|
+
namespace Responses {
|
|
568
|
+
export type $200 = Components.Schemas.EntityItem;
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
namespace UpdateOrder {
|
|
572
|
+
namespace Parameters {
|
|
573
|
+
export type Id = Components.Schemas.EntityId; // uuid
|
|
574
|
+
}
|
|
575
|
+
export interface PathParameters {
|
|
576
|
+
id: Parameters.Id;
|
|
577
|
+
}
|
|
578
|
+
export type RequestBody = Components.Schemas.EntityItem;
|
|
579
|
+
namespace Responses {
|
|
580
|
+
export type $200 = Components.Schemas.EntityItem;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
namespace UpdatePortalUser {
|
|
584
|
+
export type RequestBody = Components.Schemas.EntityItem;
|
|
585
|
+
namespace Responses {
|
|
586
|
+
export type $200 = Components.Schemas.EntityItem;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
namespace UpsertPortal {
|
|
590
|
+
export type RequestBody = Components.Schemas.BrandCreate;
|
|
591
|
+
namespace Responses {
|
|
592
|
+
export type $201 = Components.Schemas.AddPortalResp;
|
|
593
|
+
export type $400 = Components.Schemas.ErrorResp;
|
|
594
|
+
export type $401 = Components.Schemas.ErrorResp;
|
|
595
|
+
export type $500 = Components.Schemas.ErrorResp;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
namespace UserExists {
|
|
599
|
+
namespace Parameters {
|
|
600
|
+
/**
|
|
601
|
+
* example:
|
|
602
|
+
* user@example.com
|
|
603
|
+
*/
|
|
604
|
+
export type Email = string;
|
|
605
|
+
/**
|
|
606
|
+
* example:
|
|
607
|
+
* 123
|
|
608
|
+
*/
|
|
609
|
+
export type OrgId = string;
|
|
610
|
+
}
|
|
611
|
+
export interface QueryParameters {
|
|
612
|
+
email: Parameters.Email;
|
|
613
|
+
org_id: Parameters.OrgId;
|
|
614
|
+
}
|
|
615
|
+
namespace Responses {
|
|
616
|
+
export interface $200 {
|
|
617
|
+
/**
|
|
799
618
|
* example:
|
|
800
|
-
*
|
|
801
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
802
|
-
* "_org": "123",
|
|
803
|
-
* "_schema": "contact",
|
|
804
|
-
* "_tags": [
|
|
805
|
-
* "example",
|
|
806
|
-
* "mock"
|
|
807
|
-
* ],
|
|
808
|
-
* "_created_at": {},
|
|
809
|
-
* "_updated_at": {}
|
|
810
|
-
* }
|
|
619
|
+
* true
|
|
811
620
|
*/
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
818
|
-
* "_org": "123",
|
|
819
|
-
* "_schema": "contact",
|
|
820
|
-
* "_tags": [
|
|
821
|
-
* "example",
|
|
822
|
-
* "mock"
|
|
823
|
-
* ],
|
|
824
|
-
* "_created_at": {},
|
|
825
|
-
* "_updated_at": {}
|
|
826
|
-
* }
|
|
827
|
-
*/
|
|
828
|
-
Components.Schemas.EntityItem;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
namespace UpdatePortalUser {
|
|
832
|
-
export type RequestBody = /**
|
|
621
|
+
exists?: boolean;
|
|
622
|
+
user?: Components.Schemas.EntityItem;
|
|
623
|
+
}
|
|
624
|
+
export interface $404 {
|
|
625
|
+
/**
|
|
833
626
|
* example:
|
|
834
|
-
*
|
|
835
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
836
|
-
* "_org": "123",
|
|
837
|
-
* "_schema": "contact",
|
|
838
|
-
* "_tags": [
|
|
839
|
-
* "example",
|
|
840
|
-
* "mock"
|
|
841
|
-
* ],
|
|
842
|
-
* "_created_at": {},
|
|
843
|
-
* "_updated_at": {}
|
|
844
|
-
* }
|
|
627
|
+
* false
|
|
845
628
|
*/
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
export type $200 = /**
|
|
849
|
-
* example:
|
|
850
|
-
* {
|
|
851
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
852
|
-
* "_org": "123",
|
|
853
|
-
* "_schema": "contact",
|
|
854
|
-
* "_tags": [
|
|
855
|
-
* "example",
|
|
856
|
-
* "mock"
|
|
857
|
-
* ],
|
|
858
|
-
* "_created_at": {},
|
|
859
|
-
* "_updated_at": {}
|
|
860
|
-
* }
|
|
861
|
-
*/
|
|
862
|
-
Components.Schemas.EntityItem;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
namespace UpsertPortal {
|
|
866
|
-
export type RequestBody = Components.Schemas.BrandCreate;
|
|
867
|
-
namespace Responses {
|
|
868
|
-
export type $201 = Components.Schemas.AddPortalResp;
|
|
869
|
-
export type $400 = Components.Schemas.ErrorResp;
|
|
870
|
-
export type $401 = Components.Schemas.ErrorResp;
|
|
871
|
-
export type $500 = Components.Schemas.ErrorResp;
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
namespace UserExists {
|
|
875
|
-
namespace Parameters {
|
|
876
|
-
/**
|
|
877
|
-
* example:
|
|
878
|
-
* user@example.com
|
|
879
|
-
*/
|
|
880
|
-
export type Email = string;
|
|
881
|
-
/**
|
|
882
|
-
* example:
|
|
883
|
-
* 123
|
|
884
|
-
*/
|
|
885
|
-
export type OrgId = string;
|
|
886
|
-
}
|
|
887
|
-
export interface QueryParameters {
|
|
888
|
-
email: /**
|
|
889
|
-
* example:
|
|
890
|
-
* user@example.com
|
|
891
|
-
*/
|
|
892
|
-
Parameters.Email;
|
|
893
|
-
org_id: /**
|
|
894
|
-
* example:
|
|
895
|
-
* 123
|
|
896
|
-
*/
|
|
897
|
-
Parameters.OrgId;
|
|
898
|
-
}
|
|
899
|
-
namespace Responses {
|
|
900
|
-
export interface $200 {
|
|
901
|
-
/**
|
|
902
|
-
* example:
|
|
903
|
-
* true
|
|
904
|
-
*/
|
|
905
|
-
exists?: boolean;
|
|
906
|
-
user?: /**
|
|
907
|
-
* example:
|
|
908
|
-
* {
|
|
909
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
910
|
-
* "_org": "123",
|
|
911
|
-
* "_schema": "contact",
|
|
912
|
-
* "_tags": [
|
|
913
|
-
* "example",
|
|
914
|
-
* "mock"
|
|
915
|
-
* ],
|
|
916
|
-
* "_created_at": {},
|
|
917
|
-
* "_updated_at": {}
|
|
918
|
-
* }
|
|
919
|
-
*/
|
|
920
|
-
Components.Schemas.EntityItem;
|
|
921
|
-
}
|
|
922
|
-
export interface $404 {
|
|
923
|
-
/**
|
|
924
|
-
* example:
|
|
925
|
-
* false
|
|
926
|
-
*/
|
|
927
|
-
exists?: boolean;
|
|
928
|
-
}
|
|
929
|
-
}
|
|
629
|
+
exists?: boolean;
|
|
630
|
+
}
|
|
930
631
|
}
|
|
632
|
+
}
|
|
931
633
|
}
|
|
932
634
|
|
|
933
635
|
export interface OperationMethods {
|
|
@@ -940,7 +642,7 @@ export interface OperationMethods {
|
|
|
940
642
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
941
643
|
data?: Paths.UpsertPortal.RequestBody,
|
|
942
644
|
config?: AxiosRequestConfig
|
|
943
|
-
): OperationResponse<Paths.UpsertPortal.Responses.$201>
|
|
645
|
+
): OperationResponse<Paths.UpsertPortal.Responses.$201 | Paths.UpsertPortal.Responses.$400 | Paths.UpsertPortal.Responses.$401 | Paths.UpsertPortal.Responses.$500>
|
|
944
646
|
/**
|
|
945
647
|
* createUser - creates a user
|
|
946
648
|
*
|
|
@@ -950,7 +652,7 @@ export interface OperationMethods {
|
|
|
950
652
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
951
653
|
data?: Paths.CreateUser.RequestBody,
|
|
952
654
|
config?: AxiosRequestConfig
|
|
953
|
-
): OperationResponse<Paths.CreateUser.Responses.$201>
|
|
655
|
+
): OperationResponse<Paths.CreateUser.Responses.$201 | Paths.CreateUser.Responses.$400 | Paths.CreateUser.Responses.$401 | Paths.CreateUser.Responses.$500>
|
|
954
656
|
/**
|
|
955
657
|
* activateUser - activateUser
|
|
956
658
|
*
|
|
@@ -960,7 +662,7 @@ export interface OperationMethods {
|
|
|
960
662
|
parameters?: Parameters<Paths.ActivateUser.QueryParameters> | null,
|
|
961
663
|
data?: Paths.ActivateUser.RequestBody,
|
|
962
664
|
config?: AxiosRequestConfig
|
|
963
|
-
): OperationResponse<
|
|
665
|
+
): OperationResponse<any>
|
|
964
666
|
/**
|
|
965
667
|
* testAuth - testAuth
|
|
966
668
|
*
|
|
@@ -970,7 +672,7 @@ export interface OperationMethods {
|
|
|
970
672
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
971
673
|
data?: any,
|
|
972
674
|
config?: AxiosRequestConfig
|
|
973
|
-
): OperationResponse<
|
|
675
|
+
): OperationResponse<any>
|
|
974
676
|
/**
|
|
975
677
|
* getPortalConfigByDomain - getPortalConfigByDomain
|
|
976
678
|
*
|
|
@@ -1020,7 +722,7 @@ export interface OperationMethods {
|
|
|
1020
722
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1021
723
|
data?: any,
|
|
1022
724
|
config?: AxiosRequestConfig
|
|
1023
|
-
): OperationResponse<Paths.GetContact.Responses.$200>
|
|
725
|
+
): OperationResponse<Paths.GetContact.Responses.$200 | Paths.GetContact.Responses.$500>
|
|
1024
726
|
/**
|
|
1025
727
|
* updateContact - updateContact
|
|
1026
728
|
*
|
|
@@ -1040,7 +742,7 @@ export interface OperationMethods {
|
|
|
1040
742
|
parameters?: Parameters<Paths.GetECPContact.QueryParameters> | null,
|
|
1041
743
|
data?: any,
|
|
1042
744
|
config?: AxiosRequestConfig
|
|
1043
|
-
): OperationResponse<Paths.GetECPContact.Responses.$200>
|
|
745
|
+
): OperationResponse<Paths.GetECPContact.Responses.$200 | Paths.GetECPContact.Responses.$500>
|
|
1044
746
|
/**
|
|
1045
747
|
* getCountByEmail - getCountByEmail
|
|
1046
748
|
*
|
|
@@ -1110,7 +812,7 @@ export interface OperationMethods {
|
|
|
1110
812
|
parameters?: Parameters<Paths.UserExists.QueryParameters> | null,
|
|
1111
813
|
data?: any,
|
|
1112
814
|
config?: AxiosRequestConfig
|
|
1113
|
-
): OperationResponse<Paths.UserExists.Responses.$200>
|
|
815
|
+
): OperationResponse<Paths.UserExists.Responses.$200 | Paths.UserExists.Responses.$404>
|
|
1114
816
|
/**
|
|
1115
817
|
* configureDistribution - configureDistribution
|
|
1116
818
|
*
|
|
@@ -1131,16 +833,6 @@ export interface OperationMethods {
|
|
|
1131
833
|
data?: any,
|
|
1132
834
|
config?: AxiosRequestConfig
|
|
1133
835
|
): OperationResponse<Paths.GetAllOrders.Responses.$200>
|
|
1134
|
-
/**
|
|
1135
|
-
* updateOrder - updateOrder
|
|
1136
|
-
*
|
|
1137
|
-
* Update the order details
|
|
1138
|
-
*/
|
|
1139
|
-
'updateOrder'(
|
|
1140
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1141
|
-
data?: Paths.UpdateOrder.RequestBody,
|
|
1142
|
-
config?: AxiosRequestConfig
|
|
1143
|
-
): OperationResponse<Paths.UpdateOrder.Responses.$200>
|
|
1144
836
|
/**
|
|
1145
837
|
* getOrder - getOrder
|
|
1146
838
|
*
|
|
@@ -1151,6 +843,16 @@ export interface OperationMethods {
|
|
|
1151
843
|
data?: any,
|
|
1152
844
|
config?: AxiosRequestConfig
|
|
1153
845
|
): OperationResponse<Paths.GetOrder.Responses.$200>
|
|
846
|
+
/**
|
|
847
|
+
* updateOrder - updateOrder
|
|
848
|
+
*
|
|
849
|
+
* Update the order details
|
|
850
|
+
*/
|
|
851
|
+
'updateOrder'(
|
|
852
|
+
parameters?: Parameters<Paths.UpdateOrder.PathParameters> | null,
|
|
853
|
+
data?: Paths.UpdateOrder.RequestBody,
|
|
854
|
+
config?: AxiosRequestConfig
|
|
855
|
+
): OperationResponse<Paths.UpdateOrder.Responses.$200>
|
|
1154
856
|
/**
|
|
1155
857
|
* getAllOpportunities - getAllgetAllOpportunities
|
|
1156
858
|
*
|
|
@@ -1184,7 +886,7 @@ export interface PathsDictionary {
|
|
|
1184
886
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1185
887
|
data?: Paths.UpsertPortal.RequestBody,
|
|
1186
888
|
config?: AxiosRequestConfig
|
|
1187
|
-
): OperationResponse<Paths.UpsertPortal.Responses.$201>
|
|
889
|
+
): OperationResponse<Paths.UpsertPortal.Responses.$201 | Paths.UpsertPortal.Responses.$400 | Paths.UpsertPortal.Responses.$401 | Paths.UpsertPortal.Responses.$500>
|
|
1188
890
|
}
|
|
1189
891
|
['/v1/customer-portal/public/user']: {
|
|
1190
892
|
/**
|
|
@@ -1196,7 +898,7 @@ export interface PathsDictionary {
|
|
|
1196
898
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1197
899
|
data?: Paths.CreateUser.RequestBody,
|
|
1198
900
|
config?: AxiosRequestConfig
|
|
1199
|
-
): OperationResponse<Paths.CreateUser.Responses.$201>
|
|
901
|
+
): OperationResponse<Paths.CreateUser.Responses.$201 | Paths.CreateUser.Responses.$400 | Paths.CreateUser.Responses.$401 | Paths.CreateUser.Responses.$500>
|
|
1200
902
|
}
|
|
1201
903
|
['/v1/customer-portal/public/activate']: {
|
|
1202
904
|
/**
|
|
@@ -1208,7 +910,7 @@ export interface PathsDictionary {
|
|
|
1208
910
|
parameters?: Parameters<Paths.ActivateUser.QueryParameters> | null,
|
|
1209
911
|
data?: Paths.ActivateUser.RequestBody,
|
|
1210
912
|
config?: AxiosRequestConfig
|
|
1211
|
-
): OperationResponse<
|
|
913
|
+
): OperationResponse<any>
|
|
1212
914
|
}
|
|
1213
915
|
['/v1/customer-portal/auth']: {
|
|
1214
916
|
/**
|
|
@@ -1220,7 +922,7 @@ export interface PathsDictionary {
|
|
|
1220
922
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1221
923
|
data?: any,
|
|
1222
924
|
config?: AxiosRequestConfig
|
|
1223
|
-
): OperationResponse<
|
|
925
|
+
): OperationResponse<any>
|
|
1224
926
|
}
|
|
1225
927
|
['/v1/customer-portal/public/config']: {
|
|
1226
928
|
/**
|
|
@@ -1280,7 +982,7 @@ export interface PathsDictionary {
|
|
|
1280
982
|
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1281
983
|
data?: any,
|
|
1282
984
|
config?: AxiosRequestConfig
|
|
1283
|
-
): OperationResponse<Paths.GetContact.Responses.$200>
|
|
985
|
+
): OperationResponse<Paths.GetContact.Responses.$200 | Paths.GetContact.Responses.$500>
|
|
1284
986
|
/**
|
|
1285
987
|
* updateContact - updateContact
|
|
1286
988
|
*
|
|
@@ -1302,7 +1004,7 @@ export interface PathsDictionary {
|
|
|
1302
1004
|
parameters?: Parameters<Paths.GetECPContact.QueryParameters> | null,
|
|
1303
1005
|
data?: any,
|
|
1304
1006
|
config?: AxiosRequestConfig
|
|
1305
|
-
): OperationResponse<Paths.GetECPContact.Responses.$200>
|
|
1007
|
+
): OperationResponse<Paths.GetECPContact.Responses.$200 | Paths.GetECPContact.Responses.$500>
|
|
1306
1008
|
}
|
|
1307
1009
|
['/v1/customer-portal/contact/email/count']: {
|
|
1308
1010
|
/**
|
|
@@ -1382,7 +1084,7 @@ export interface PathsDictionary {
|
|
|
1382
1084
|
parameters?: Parameters<Paths.UserExists.QueryParameters> | null,
|
|
1383
1085
|
data?: any,
|
|
1384
1086
|
config?: AxiosRequestConfig
|
|
1385
|
-
): OperationResponse<Paths.UserExists.Responses.$200>
|
|
1087
|
+
): OperationResponse<Paths.UserExists.Responses.$200 | Paths.UserExists.Responses.$404>
|
|
1386
1088
|
}
|
|
1387
1089
|
['/v1/customer-portal/configure-distribution']: {
|
|
1388
1090
|
/**
|
|
@@ -1407,16 +1109,6 @@ export interface PathsDictionary {
|
|
|
1407
1109
|
data?: any,
|
|
1408
1110
|
config?: AxiosRequestConfig
|
|
1409
1111
|
): OperationResponse<Paths.GetAllOrders.Responses.$200>
|
|
1410
|
-
/**
|
|
1411
|
-
* updateOrder - updateOrder
|
|
1412
|
-
*
|
|
1413
|
-
* Update the order details
|
|
1414
|
-
*/
|
|
1415
|
-
'patch'(
|
|
1416
|
-
parameters?: Parameters<UnknownParamsObject> | null,
|
|
1417
|
-
data?: Paths.UpdateOrder.RequestBody,
|
|
1418
|
-
config?: AxiosRequestConfig
|
|
1419
|
-
): OperationResponse<Paths.UpdateOrder.Responses.$200>
|
|
1420
1112
|
}
|
|
1421
1113
|
['/v1/customer-portal/order/{id}']: {
|
|
1422
1114
|
/**
|
|
@@ -1429,6 +1121,16 @@ export interface PathsDictionary {
|
|
|
1429
1121
|
data?: any,
|
|
1430
1122
|
config?: AxiosRequestConfig
|
|
1431
1123
|
): OperationResponse<Paths.GetOrder.Responses.$200>
|
|
1124
|
+
/**
|
|
1125
|
+
* updateOrder - updateOrder
|
|
1126
|
+
*
|
|
1127
|
+
* Update the order details
|
|
1128
|
+
*/
|
|
1129
|
+
'patch'(
|
|
1130
|
+
parameters?: Parameters<Paths.UpdateOrder.PathParameters> | null,
|
|
1131
|
+
data?: Paths.UpdateOrder.RequestBody,
|
|
1132
|
+
config?: AxiosRequestConfig
|
|
1133
|
+
): OperationResponse<Paths.UpdateOrder.Responses.$200>
|
|
1432
1134
|
}
|
|
1433
1135
|
['/v1/customer-portal/opportunity']: {
|
|
1434
1136
|
/**
|