@emilgroup/partner-sdk-node 1.6.0 → 1.6.1-beta.0
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/.openapi-generator/FILES +10 -4
- package/README.md +2 -2
- package/api/{partners-api.ts → partner-api.ts} +82 -82
- package/api/partner-invitation-api.ts +169 -0
- package/api/{partner-relations-api.ts → partner-relation-api.ts} +91 -91
- package/api/{partner-tags-api.ts → partner-tag-api.ts} +66 -66
- package/api/{partner-types-api.ts → partner-type-api.ts} +64 -64
- package/api.ts +10 -8
- package/dist/api/{partners-api.d.ts → partner-api.d.ts} +74 -74
- package/dist/api/{partners-api.js → partner-api.js} +49 -49
- package/dist/api/partner-invitation-api.d.ts +97 -0
- package/dist/api/partner-invitation-api.js +228 -0
- package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +82 -82
- package/dist/api/{partner-relations-api.js → partner-relation-api.js} +50 -50
- package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +59 -59
- package/dist/api/{partner-tags-api.js → partner-tag-api.js} +42 -42
- package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +57 -57
- package/dist/api/{partner-types-api.js → partner-type-api.js} +39 -39
- package/dist/api.d.ts +5 -4
- package/dist/api.js +5 -4
- package/dist/models/create-partner-response-class.d.ts +7 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/invite-class.d.ts +79 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
- package/dist/models/invite-partner-to-eis-response-class.js +15 -0
- package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
- package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
- package/dist/models/partner-class.d.ts +6 -0
- package/dist/models/permission-class.d.ts +72 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/role-class.d.ts +73 -0
- package/dist/models/role-class.js +15 -0
- package/models/create-partner-response-class.ts +7 -0
- package/models/index.ts +5 -0
- package/models/invite-class.ts +85 -0
- package/models/invite-partner-to-eis-response-class.ts +31 -0
- package/models/invite-partner-to-eisrequest-dto.ts +48 -0
- package/models/partner-class.ts +6 -0
- package/models/permission-class.ts +78 -0
- package/models/role-class.ts +79 -0
- package/package.json +1 -1
|
@@ -21,10 +21,10 @@ import { TagPartnerRequestDtoRest } from '../models';
|
|
|
21
21
|
import { UpdatePartnerRequestDto } from '../models';
|
|
22
22
|
import { UpdatePartnerResponseClass } from '../models';
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* PartnerApi - axios parameter creator
|
|
25
25
|
* @export
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const PartnerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
28
|
/**
|
|
29
29
|
* This will create a partner.
|
|
30
30
|
* @summary Create the partner
|
|
@@ -59,11 +59,11 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
59
59
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
60
60
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
61
61
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
62
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
62
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
63
63
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
64
64
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
65
65
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags<i>
|
|
66
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
66
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
68
68
|
* @throws {RequiredError}
|
|
69
69
|
*/
|
|
@@ -90,10 +90,10 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
90
90
|
updatePartner: (code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* PartnerApi - functional programming interface
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
export declare const
|
|
96
|
+
export declare const PartnerApiFp: (configuration?: Configuration) => {
|
|
97
97
|
/**
|
|
98
98
|
* This will create a partner.
|
|
99
99
|
* @summary Create the partner
|
|
@@ -128,11 +128,11 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
128
128
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
129
129
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
130
130
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
131
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
131
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
132
132
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
133
133
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
134
134
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags<i>
|
|
135
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
135
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
@@ -159,10 +159,10 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
159
159
|
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerResponseClass>>;
|
|
160
160
|
};
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* PartnerApi - factory interface
|
|
163
163
|
* @export
|
|
164
164
|
*/
|
|
165
|
-
export declare const
|
|
165
|
+
export declare const PartnerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
166
166
|
/**
|
|
167
167
|
* This will create a partner.
|
|
168
168
|
* @summary Create the partner
|
|
@@ -197,11 +197,11 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
197
197
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
198
198
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
199
199
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
200
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
200
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
201
201
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
202
202
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
203
203
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags<i>
|
|
204
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
204
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
207
207
|
*/
|
|
@@ -228,232 +228,232 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
228
228
|
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass>;
|
|
229
229
|
};
|
|
230
230
|
/**
|
|
231
|
-
* Request parameters for createPartner operation in
|
|
231
|
+
* Request parameters for createPartner operation in PartnerApi.
|
|
232
232
|
* @export
|
|
233
|
-
* @interface
|
|
233
|
+
* @interface PartnerApiCreatePartnerRequest
|
|
234
234
|
*/
|
|
235
|
-
export interface
|
|
235
|
+
export interface PartnerApiCreatePartnerRequest {
|
|
236
236
|
/**
|
|
237
237
|
*
|
|
238
238
|
* @type {CreatePartnerRequestDto}
|
|
239
|
-
* @memberof
|
|
239
|
+
* @memberof PartnerApiCreatePartner
|
|
240
240
|
*/
|
|
241
241
|
readonly createPartnerRequestDto: CreatePartnerRequestDto;
|
|
242
242
|
/**
|
|
243
243
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
244
|
* @type {string}
|
|
245
|
-
* @memberof
|
|
245
|
+
* @memberof PartnerApiCreatePartner
|
|
246
246
|
*/
|
|
247
247
|
readonly authorization?: string;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
* Request parameters for deletePartner operation in
|
|
250
|
+
* Request parameters for deletePartner operation in PartnerApi.
|
|
251
251
|
* @export
|
|
252
|
-
* @interface
|
|
252
|
+
* @interface PartnerApiDeletePartnerRequest
|
|
253
253
|
*/
|
|
254
|
-
export interface
|
|
254
|
+
export interface PartnerApiDeletePartnerRequest {
|
|
255
255
|
/**
|
|
256
256
|
*
|
|
257
257
|
* @type {string}
|
|
258
|
-
* @memberof
|
|
258
|
+
* @memberof PartnerApiDeletePartner
|
|
259
259
|
*/
|
|
260
260
|
readonly code: string;
|
|
261
261
|
/**
|
|
262
262
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
263
263
|
* @type {string}
|
|
264
|
-
* @memberof
|
|
264
|
+
* @memberof PartnerApiDeletePartner
|
|
265
265
|
*/
|
|
266
266
|
readonly authorization?: string;
|
|
267
267
|
}
|
|
268
268
|
/**
|
|
269
|
-
* Request parameters for getPartner operation in
|
|
269
|
+
* Request parameters for getPartner operation in PartnerApi.
|
|
270
270
|
* @export
|
|
271
|
-
* @interface
|
|
271
|
+
* @interface PartnerApiGetPartnerRequest
|
|
272
272
|
*/
|
|
273
|
-
export interface
|
|
273
|
+
export interface PartnerApiGetPartnerRequest {
|
|
274
274
|
/**
|
|
275
275
|
* Unique identifier for the object.
|
|
276
276
|
* @type {string}
|
|
277
|
-
* @memberof
|
|
277
|
+
* @memberof PartnerApiGetPartner
|
|
278
278
|
*/
|
|
279
279
|
readonly code: string;
|
|
280
280
|
/**
|
|
281
281
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
282
282
|
* @type {string}
|
|
283
|
-
* @memberof
|
|
283
|
+
* @memberof PartnerApiGetPartner
|
|
284
284
|
*/
|
|
285
285
|
readonly authorization?: string;
|
|
286
286
|
/**
|
|
287
287
|
*
|
|
288
288
|
* @type {any}
|
|
289
|
-
* @memberof
|
|
289
|
+
* @memberof PartnerApiGetPartner
|
|
290
290
|
*/
|
|
291
291
|
readonly expand?: any;
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
|
-
* Request parameters for listPartners operation in
|
|
294
|
+
* Request parameters for listPartners operation in PartnerApi.
|
|
295
295
|
* @export
|
|
296
|
-
* @interface
|
|
296
|
+
* @interface PartnerApiListPartnersRequest
|
|
297
297
|
*/
|
|
298
|
-
export interface
|
|
298
|
+
export interface PartnerApiListPartnersRequest {
|
|
299
299
|
/**
|
|
300
300
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
301
301
|
* @type {string}
|
|
302
|
-
* @memberof
|
|
302
|
+
* @memberof PartnerApiListPartners
|
|
303
303
|
*/
|
|
304
304
|
readonly authorization?: string;
|
|
305
305
|
/**
|
|
306
306
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
307
307
|
* @type {any}
|
|
308
|
-
* @memberof
|
|
308
|
+
* @memberof PartnerApiListPartners
|
|
309
309
|
*/
|
|
310
310
|
readonly pageSize?: any;
|
|
311
311
|
/**
|
|
312
312
|
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
313
313
|
* @type {any}
|
|
314
|
-
* @memberof
|
|
314
|
+
* @memberof PartnerApiListPartners
|
|
315
315
|
*/
|
|
316
316
|
readonly pageToken?: any;
|
|
317
317
|
/**
|
|
318
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
318
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
319
319
|
* @type {string}
|
|
320
|
-
* @memberof
|
|
320
|
+
* @memberof PartnerApiListPartners
|
|
321
321
|
*/
|
|
322
322
|
readonly filter?: string;
|
|
323
323
|
/**
|
|
324
324
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
325
325
|
* @type {any}
|
|
326
|
-
* @memberof
|
|
326
|
+
* @memberof PartnerApiListPartners
|
|
327
327
|
*/
|
|
328
328
|
readonly search?: any;
|
|
329
329
|
/**
|
|
330
330
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
331
331
|
* @type {string}
|
|
332
|
-
* @memberof
|
|
332
|
+
* @memberof PartnerApiListPartners
|
|
333
333
|
*/
|
|
334
334
|
readonly order?: string;
|
|
335
335
|
/**
|
|
336
336
|
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags<i>
|
|
337
337
|
* @type {string}
|
|
338
|
-
* @memberof
|
|
338
|
+
* @memberof PartnerApiListPartners
|
|
339
339
|
*/
|
|
340
340
|
readonly expand?: string;
|
|
341
341
|
/**
|
|
342
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
342
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
343
343
|
* @type {string}
|
|
344
|
-
* @memberof
|
|
344
|
+
* @memberof PartnerApiListPartners
|
|
345
345
|
*/
|
|
346
346
|
readonly filters?: string;
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
|
-
* Request parameters for tagPartner operation in
|
|
349
|
+
* Request parameters for tagPartner operation in PartnerApi.
|
|
350
350
|
* @export
|
|
351
|
-
* @interface
|
|
351
|
+
* @interface PartnerApiTagPartnerRequest
|
|
352
352
|
*/
|
|
353
|
-
export interface
|
|
353
|
+
export interface PartnerApiTagPartnerRequest {
|
|
354
354
|
/**
|
|
355
355
|
*
|
|
356
356
|
* @type {string}
|
|
357
|
-
* @memberof
|
|
357
|
+
* @memberof PartnerApiTagPartner
|
|
358
358
|
*/
|
|
359
359
|
readonly code: string;
|
|
360
360
|
/**
|
|
361
361
|
*
|
|
362
362
|
* @type {TagPartnerRequestDtoRest}
|
|
363
|
-
* @memberof
|
|
363
|
+
* @memberof PartnerApiTagPartner
|
|
364
364
|
*/
|
|
365
365
|
readonly tagPartnerRequestDtoRest: TagPartnerRequestDtoRest;
|
|
366
366
|
/**
|
|
367
367
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
368
368
|
* @type {string}
|
|
369
|
-
* @memberof
|
|
369
|
+
* @memberof PartnerApiTagPartner
|
|
370
370
|
*/
|
|
371
371
|
readonly authorization?: string;
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
|
-
* Request parameters for updatePartner operation in
|
|
374
|
+
* Request parameters for updatePartner operation in PartnerApi.
|
|
375
375
|
* @export
|
|
376
|
-
* @interface
|
|
376
|
+
* @interface PartnerApiUpdatePartnerRequest
|
|
377
377
|
*/
|
|
378
|
-
export interface
|
|
378
|
+
export interface PartnerApiUpdatePartnerRequest {
|
|
379
379
|
/**
|
|
380
380
|
* Unique identifier for the object.
|
|
381
381
|
* @type {string}
|
|
382
|
-
* @memberof
|
|
382
|
+
* @memberof PartnerApiUpdatePartner
|
|
383
383
|
*/
|
|
384
384
|
readonly code: string;
|
|
385
385
|
/**
|
|
386
386
|
*
|
|
387
387
|
* @type {UpdatePartnerRequestDto}
|
|
388
|
-
* @memberof
|
|
388
|
+
* @memberof PartnerApiUpdatePartner
|
|
389
389
|
*/
|
|
390
390
|
readonly updatePartnerRequestDto: UpdatePartnerRequestDto;
|
|
391
391
|
/**
|
|
392
392
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
393
393
|
* @type {string}
|
|
394
|
-
* @memberof
|
|
394
|
+
* @memberof PartnerApiUpdatePartner
|
|
395
395
|
*/
|
|
396
396
|
readonly authorization?: string;
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
|
-
*
|
|
399
|
+
* PartnerApi - object-oriented interface
|
|
400
400
|
* @export
|
|
401
|
-
* @class
|
|
401
|
+
* @class PartnerApi
|
|
402
402
|
* @extends {BaseAPI}
|
|
403
403
|
*/
|
|
404
|
-
export declare class
|
|
404
|
+
export declare class PartnerApi extends BaseAPI {
|
|
405
405
|
/**
|
|
406
406
|
* This will create a partner.
|
|
407
407
|
* @summary Create the partner
|
|
408
|
-
* @param {
|
|
408
|
+
* @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
|
|
409
409
|
* @param {*} [options] Override http request option.
|
|
410
410
|
* @throws {RequiredError}
|
|
411
|
-
* @memberof
|
|
411
|
+
* @memberof PartnerApi
|
|
412
412
|
*/
|
|
413
|
-
createPartner(requestParameters:
|
|
413
|
+
createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerResponseClass, any>>;
|
|
414
414
|
/**
|
|
415
415
|
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
416
416
|
* @summary Delete the partner
|
|
417
|
-
* @param {
|
|
417
|
+
* @param {PartnerApiDeletePartnerRequest} requestParameters Request parameters.
|
|
418
418
|
* @param {*} [options] Override http request option.
|
|
419
419
|
* @throws {RequiredError}
|
|
420
|
-
* @memberof
|
|
420
|
+
* @memberof PartnerApi
|
|
421
421
|
*/
|
|
422
|
-
deletePartner(requestParameters:
|
|
422
|
+
deletePartner(requestParameters: PartnerApiDeletePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
423
423
|
/**
|
|
424
424
|
* Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
|
|
425
425
|
* @summary Retrieve the partner
|
|
426
|
-
* @param {
|
|
426
|
+
* @param {PartnerApiGetPartnerRequest} requestParameters Request parameters.
|
|
427
427
|
* @param {*} [options] Override http request option.
|
|
428
428
|
* @throws {RequiredError}
|
|
429
|
-
* @memberof
|
|
429
|
+
* @memberof PartnerApi
|
|
430
430
|
*/
|
|
431
|
-
getPartner(requestParameters:
|
|
431
|
+
getPartner(requestParameters: PartnerApiGetPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerResponseClass, any>>;
|
|
432
432
|
/**
|
|
433
433
|
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
434
434
|
* @summary List partners
|
|
435
|
-
* @param {
|
|
435
|
+
* @param {PartnerApiListPartnersRequest} requestParameters Request parameters.
|
|
436
436
|
* @param {*} [options] Override http request option.
|
|
437
437
|
* @throws {RequiredError}
|
|
438
|
-
* @memberof
|
|
438
|
+
* @memberof PartnerApi
|
|
439
439
|
*/
|
|
440
|
-
listPartners(requestParameters?:
|
|
440
|
+
listPartners(requestParameters?: PartnerApiListPartnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnersResponseClass, any>>;
|
|
441
441
|
/**
|
|
442
442
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
443
443
|
* @summary Update the partner
|
|
444
|
-
* @param {
|
|
444
|
+
* @param {PartnerApiTagPartnerRequest} requestParameters Request parameters.
|
|
445
445
|
* @param {*} [options] Override http request option.
|
|
446
446
|
* @throws {RequiredError}
|
|
447
|
-
* @memberof
|
|
447
|
+
* @memberof PartnerApi
|
|
448
448
|
*/
|
|
449
|
-
tagPartner(requestParameters:
|
|
449
|
+
tagPartner(requestParameters: PartnerApiTagPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerResponseClass, any>>;
|
|
450
450
|
/**
|
|
451
451
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
452
452
|
* @summary Update the partner
|
|
453
|
-
* @param {
|
|
453
|
+
* @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
|
|
454
454
|
* @param {*} [options] Override http request option.
|
|
455
455
|
* @throws {RequiredError}
|
|
456
|
-
* @memberof
|
|
456
|
+
* @memberof PartnerApi
|
|
457
457
|
*/
|
|
458
|
-
updatePartner(requestParameters:
|
|
458
|
+
updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerResponseClass, any>>;
|
|
459
459
|
}
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.PartnerApi = exports.PartnerApiFactory = exports.PartnerApiFp = exports.PartnerApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,10 +90,10 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* PartnerApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var PartnerApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
@@ -251,11 +251,11 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
251
251
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
252
252
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
253
253
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
254
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
254
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
255
255
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
256
256
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
257
257
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags<i>
|
|
258
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
258
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
259
259
|
* @param {*} [options] Override http request option.
|
|
260
260
|
* @throws {RequiredError}
|
|
261
261
|
*/
|
|
@@ -425,13 +425,13 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
425
425
|
},
|
|
426
426
|
};
|
|
427
427
|
};
|
|
428
|
-
exports.
|
|
428
|
+
exports.PartnerApiAxiosParamCreator = PartnerApiAxiosParamCreator;
|
|
429
429
|
/**
|
|
430
|
-
*
|
|
430
|
+
* PartnerApi - functional programming interface
|
|
431
431
|
* @export
|
|
432
432
|
*/
|
|
433
|
-
var
|
|
434
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
433
|
+
var PartnerApiFp = function (configuration) {
|
|
434
|
+
var localVarAxiosParamCreator = (0, exports.PartnerApiAxiosParamCreator)(configuration);
|
|
435
435
|
return {
|
|
436
436
|
/**
|
|
437
437
|
* This will create a partner.
|
|
@@ -503,11 +503,11 @@ var PartnersApiFp = function (configuration) {
|
|
|
503
503
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
504
504
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
505
505
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
506
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
506
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
507
507
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
508
508
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
509
509
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags<i>
|
|
510
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
510
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
511
511
|
* @param {*} [options] Override http request option.
|
|
512
512
|
* @throws {RequiredError}
|
|
513
513
|
*/
|
|
@@ -570,13 +570,13 @@ var PartnersApiFp = function (configuration) {
|
|
|
570
570
|
},
|
|
571
571
|
};
|
|
572
572
|
};
|
|
573
|
-
exports.
|
|
573
|
+
exports.PartnerApiFp = PartnerApiFp;
|
|
574
574
|
/**
|
|
575
|
-
*
|
|
575
|
+
* PartnerApi - factory interface
|
|
576
576
|
* @export
|
|
577
577
|
*/
|
|
578
|
-
var
|
|
579
|
-
var localVarFp = (0, exports.
|
|
578
|
+
var PartnerApiFactory = function (configuration, basePath, axios) {
|
|
579
|
+
var localVarFp = (0, exports.PartnerApiFp)(configuration);
|
|
580
580
|
return {
|
|
581
581
|
/**
|
|
582
582
|
* This will create a partner.
|
|
@@ -618,11 +618,11 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
618
618
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
619
619
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
620
620
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
621
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
621
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
622
622
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
623
623
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
624
624
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType, tags<i>
|
|
625
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
625
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
626
626
|
* @param {*} [options] Override http request option.
|
|
627
627
|
* @throws {RequiredError}
|
|
628
628
|
*/
|
|
@@ -655,91 +655,91 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
655
655
|
},
|
|
656
656
|
};
|
|
657
657
|
};
|
|
658
|
-
exports.
|
|
658
|
+
exports.PartnerApiFactory = PartnerApiFactory;
|
|
659
659
|
/**
|
|
660
|
-
*
|
|
660
|
+
* PartnerApi - object-oriented interface
|
|
661
661
|
* @export
|
|
662
|
-
* @class
|
|
662
|
+
* @class PartnerApi
|
|
663
663
|
* @extends {BaseAPI}
|
|
664
664
|
*/
|
|
665
|
-
var
|
|
666
|
-
__extends(
|
|
667
|
-
function
|
|
665
|
+
var PartnerApi = /** @class */ (function (_super) {
|
|
666
|
+
__extends(PartnerApi, _super);
|
|
667
|
+
function PartnerApi() {
|
|
668
668
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
669
669
|
}
|
|
670
670
|
/**
|
|
671
671
|
* This will create a partner.
|
|
672
672
|
* @summary Create the partner
|
|
673
|
-
* @param {
|
|
673
|
+
* @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
|
|
674
674
|
* @param {*} [options] Override http request option.
|
|
675
675
|
* @throws {RequiredError}
|
|
676
|
-
* @memberof
|
|
676
|
+
* @memberof PartnerApi
|
|
677
677
|
*/
|
|
678
|
-
|
|
678
|
+
PartnerApi.prototype.createPartner = function (requestParameters, options) {
|
|
679
679
|
var _this = this;
|
|
680
|
-
return (0, exports.
|
|
680
|
+
return (0, exports.PartnerApiFp)(this.configuration).createPartner(requestParameters.createPartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
681
681
|
};
|
|
682
682
|
/**
|
|
683
683
|
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
684
684
|
* @summary Delete the partner
|
|
685
|
-
* @param {
|
|
685
|
+
* @param {PartnerApiDeletePartnerRequest} requestParameters Request parameters.
|
|
686
686
|
* @param {*} [options] Override http request option.
|
|
687
687
|
* @throws {RequiredError}
|
|
688
|
-
* @memberof
|
|
688
|
+
* @memberof PartnerApi
|
|
689
689
|
*/
|
|
690
|
-
|
|
690
|
+
PartnerApi.prototype.deletePartner = function (requestParameters, options) {
|
|
691
691
|
var _this = this;
|
|
692
|
-
return (0, exports.
|
|
692
|
+
return (0, exports.PartnerApiFp)(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
693
693
|
};
|
|
694
694
|
/**
|
|
695
695
|
* Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
|
|
696
696
|
* @summary Retrieve the partner
|
|
697
|
-
* @param {
|
|
697
|
+
* @param {PartnerApiGetPartnerRequest} requestParameters Request parameters.
|
|
698
698
|
* @param {*} [options] Override http request option.
|
|
699
699
|
* @throws {RequiredError}
|
|
700
|
-
* @memberof
|
|
700
|
+
* @memberof PartnerApi
|
|
701
701
|
*/
|
|
702
|
-
|
|
702
|
+
PartnerApi.prototype.getPartner = function (requestParameters, options) {
|
|
703
703
|
var _this = this;
|
|
704
|
-
return (0, exports.
|
|
704
|
+
return (0, exports.PartnerApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
705
705
|
};
|
|
706
706
|
/**
|
|
707
707
|
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
708
708
|
* @summary List partners
|
|
709
|
-
* @param {
|
|
709
|
+
* @param {PartnerApiListPartnersRequest} requestParameters Request parameters.
|
|
710
710
|
* @param {*} [options] Override http request option.
|
|
711
711
|
* @throws {RequiredError}
|
|
712
|
-
* @memberof
|
|
712
|
+
* @memberof PartnerApi
|
|
713
713
|
*/
|
|
714
|
-
|
|
714
|
+
PartnerApi.prototype.listPartners = function (requestParameters, options) {
|
|
715
715
|
var _this = this;
|
|
716
716
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
717
|
-
return (0, exports.
|
|
717
|
+
return (0, exports.PartnerApiFp)(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
718
718
|
};
|
|
719
719
|
/**
|
|
720
720
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
721
721
|
* @summary Update the partner
|
|
722
|
-
* @param {
|
|
722
|
+
* @param {PartnerApiTagPartnerRequest} requestParameters Request parameters.
|
|
723
723
|
* @param {*} [options] Override http request option.
|
|
724
724
|
* @throws {RequiredError}
|
|
725
|
-
* @memberof
|
|
725
|
+
* @memberof PartnerApi
|
|
726
726
|
*/
|
|
727
|
-
|
|
727
|
+
PartnerApi.prototype.tagPartner = function (requestParameters, options) {
|
|
728
728
|
var _this = this;
|
|
729
|
-
return (0, exports.
|
|
729
|
+
return (0, exports.PartnerApiFp)(this.configuration).tagPartner(requestParameters.code, requestParameters.tagPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
730
730
|
};
|
|
731
731
|
/**
|
|
732
732
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
733
733
|
* @summary Update the partner
|
|
734
|
-
* @param {
|
|
734
|
+
* @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
|
|
735
735
|
* @param {*} [options] Override http request option.
|
|
736
736
|
* @throws {RequiredError}
|
|
737
|
-
* @memberof
|
|
737
|
+
* @memberof PartnerApi
|
|
738
738
|
*/
|
|
739
|
-
|
|
739
|
+
PartnerApi.prototype.updatePartner = function (requestParameters, options) {
|
|
740
740
|
var _this = this;
|
|
741
|
-
return (0, exports.
|
|
741
|
+
return (0, exports.PartnerApiFp)(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
742
742
|
};
|
|
743
|
-
return
|
|
743
|
+
return PartnerApi;
|
|
744
744
|
}(base_1.BaseAPI));
|
|
745
|
-
exports.
|
|
745
|
+
exports.PartnerApi = PartnerApi;
|