@emilgroup/partner-sdk 1.5.1-beta.3 → 1.6.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 +4 -10
- package/README.md +2 -2
- package/api/{partner-relation-api.ts → partner-relations-api.ts} +87 -87
- package/api/{partner-tag-api.ts → partner-tags-api.ts} +62 -62
- package/api/{partner-type-api.ts → partner-types-api.ts} +64 -64
- package/api/{partner-api.ts → partners-api.ts} +82 -82
- package/api.ts +8 -10
- package/dist/api/{partner-relation-api.d.ts → partner-relations-api.d.ts} +78 -78
- package/dist/api/{partner-relation-api.js → partner-relations-api.js} +47 -47
- package/dist/api/{partner-tag-api.d.ts → partner-tags-api.d.ts} +55 -55
- package/dist/api/{partner-tag-api.js → partner-tags-api.js} +39 -39
- package/dist/api/{partner-type-api.d.ts → partner-types-api.d.ts} +57 -57
- package/dist/api/{partner-type-api.js → partner-types-api.js} +39 -39
- package/dist/api/{partner-api.d.ts → partners-api.d.ts} +74 -74
- package/dist/api/{partner-api.js → partners-api.js} +49 -49
- package/dist/api.d.ts +4 -5
- package/dist/api.js +4 -5
- package/dist/models/create-partner-response-class.d.ts +0 -7
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/dist/models/partner-class.d.ts +0 -6
- package/models/create-partner-response-class.ts +0 -7
- package/models/index.ts +0 -5
- package/models/partner-class.ts +0 -6
- package/package.json +1 -1
- package/api/partner-invitation-api.ts +0 -165
- package/dist/api/partner-invitation-api.d.ts +0 -97
- package/dist/api/partner-invitation-api.js +0 -224
- package/dist/models/invite-class.d.ts +0 -79
- package/dist/models/invite-class.js +0 -15
- package/dist/models/invite-partner-to-eis-response-class.d.ts +0 -25
- package/dist/models/invite-partner-to-eis-response-class.js +0 -15
- package/dist/models/invite-partner-to-eisrequest-dto.d.ts +0 -42
- package/dist/models/invite-partner-to-eisrequest-dto.js +0 -15
- package/dist/models/permission-class.d.ts +0 -72
- package/dist/models/permission-class.js +0 -15
- package/dist/models/role-class.d.ts +0 -73
- package/dist/models/role-class.js +0 -15
- package/models/invite-class.ts +0 -85
- package/models/invite-partner-to-eis-response-class.ts +0 -31
- package/models/invite-partner-to-eisrequest-dto.ts +0 -48
- package/models/permission-class.ts +0 -78
- package/models/role-class.ts +0 -79
|
@@ -21,10 +21,10 @@ import { TagPartnerRequestDtoRest } from '../models';
|
|
|
21
21
|
import { UpdatePartnerRequestDto } from '../models';
|
|
22
22
|
import { UpdatePartnerResponseClass } from '../models';
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* PartnersApi - axios parameter creator
|
|
25
25
|
* @export
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const PartnersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
28
|
/**
|
|
29
29
|
* This will create a partner.
|
|
30
30
|
* @summary Create the partner
|
|
@@ -59,11 +59,11 @@ export declare const PartnerApiAxiosParamCreator: (configuration?: Configuration
|
|
|
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
|
|
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>
|
|
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
|
|
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>
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
68
68
|
* @throws {RequiredError}
|
|
69
69
|
*/
|
|
@@ -90,10 +90,10 @@ export declare const PartnerApiAxiosParamCreator: (configuration?: Configuration
|
|
|
90
90
|
updatePartner: (code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* PartnersApi - functional programming interface
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
export declare const
|
|
96
|
+
export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
97
97
|
/**
|
|
98
98
|
* This will create a partner.
|
|
99
99
|
* @summary Create the partner
|
|
@@ -128,11 +128,11 @@ export declare const PartnerApiFp: (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
|
|
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>
|
|
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
|
|
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>
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
@@ -159,10 +159,10 @@ export declare const PartnerApiFp: (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
|
+
* PartnersApi - factory interface
|
|
163
163
|
* @export
|
|
164
164
|
*/
|
|
165
|
-
export declare const
|
|
165
|
+
export declare const PartnersApiFactory: (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 PartnerApiFactory: (configuration?: Configuration, basePath
|
|
|
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
|
|
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>
|
|
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
|
|
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>
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
207
207
|
*/
|
|
@@ -228,232 +228,232 @@ export declare const PartnerApiFactory: (configuration?: Configuration, basePath
|
|
|
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 PartnersApi.
|
|
232
232
|
* @export
|
|
233
|
-
* @interface
|
|
233
|
+
* @interface PartnersApiCreatePartnerRequest
|
|
234
234
|
*/
|
|
235
|
-
export interface
|
|
235
|
+
export interface PartnersApiCreatePartnerRequest {
|
|
236
236
|
/**
|
|
237
237
|
*
|
|
238
238
|
* @type {CreatePartnerRequestDto}
|
|
239
|
-
* @memberof
|
|
239
|
+
* @memberof PartnersApiCreatePartner
|
|
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 PartnersApiCreatePartner
|
|
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 PartnersApi.
|
|
251
251
|
* @export
|
|
252
|
-
* @interface
|
|
252
|
+
* @interface PartnersApiDeletePartnerRequest
|
|
253
253
|
*/
|
|
254
|
-
export interface
|
|
254
|
+
export interface PartnersApiDeletePartnerRequest {
|
|
255
255
|
/**
|
|
256
256
|
*
|
|
257
257
|
* @type {string}
|
|
258
|
-
* @memberof
|
|
258
|
+
* @memberof PartnersApiDeletePartner
|
|
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 PartnersApiDeletePartner
|
|
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 PartnersApi.
|
|
270
270
|
* @export
|
|
271
|
-
* @interface
|
|
271
|
+
* @interface PartnersApiGetPartnerRequest
|
|
272
272
|
*/
|
|
273
|
-
export interface
|
|
273
|
+
export interface PartnersApiGetPartnerRequest {
|
|
274
274
|
/**
|
|
275
275
|
* Unique identifier for the object.
|
|
276
276
|
* @type {string}
|
|
277
|
-
* @memberof
|
|
277
|
+
* @memberof PartnersApiGetPartner
|
|
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 PartnersApiGetPartner
|
|
284
284
|
*/
|
|
285
285
|
readonly authorization?: string;
|
|
286
286
|
/**
|
|
287
287
|
*
|
|
288
288
|
* @type {any}
|
|
289
|
-
* @memberof
|
|
289
|
+
* @memberof PartnersApiGetPartner
|
|
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 PartnersApi.
|
|
295
295
|
* @export
|
|
296
|
-
* @interface
|
|
296
|
+
* @interface PartnersApiListPartnersRequest
|
|
297
297
|
*/
|
|
298
|
-
export interface
|
|
298
|
+
export interface PartnersApiListPartnersRequest {
|
|
299
299
|
/**
|
|
300
300
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
301
301
|
* @type {string}
|
|
302
|
-
* @memberof
|
|
302
|
+
* @memberof PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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
|
|
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>
|
|
319
319
|
* @type {string}
|
|
320
|
-
* @memberof
|
|
320
|
+
* @memberof PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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
|
|
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>
|
|
343
343
|
* @type {string}
|
|
344
|
-
* @memberof
|
|
344
|
+
* @memberof PartnersApiListPartners
|
|
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 PartnersApi.
|
|
350
350
|
* @export
|
|
351
|
-
* @interface
|
|
351
|
+
* @interface PartnersApiTagPartnerRequest
|
|
352
352
|
*/
|
|
353
|
-
export interface
|
|
353
|
+
export interface PartnersApiTagPartnerRequest {
|
|
354
354
|
/**
|
|
355
355
|
*
|
|
356
356
|
* @type {string}
|
|
357
|
-
* @memberof
|
|
357
|
+
* @memberof PartnersApiTagPartner
|
|
358
358
|
*/
|
|
359
359
|
readonly code: string;
|
|
360
360
|
/**
|
|
361
361
|
*
|
|
362
362
|
* @type {TagPartnerRequestDtoRest}
|
|
363
|
-
* @memberof
|
|
363
|
+
* @memberof PartnersApiTagPartner
|
|
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 PartnersApiTagPartner
|
|
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 PartnersApi.
|
|
375
375
|
* @export
|
|
376
|
-
* @interface
|
|
376
|
+
* @interface PartnersApiUpdatePartnerRequest
|
|
377
377
|
*/
|
|
378
|
-
export interface
|
|
378
|
+
export interface PartnersApiUpdatePartnerRequest {
|
|
379
379
|
/**
|
|
380
380
|
* Unique identifier for the object.
|
|
381
381
|
* @type {string}
|
|
382
|
-
* @memberof
|
|
382
|
+
* @memberof PartnersApiUpdatePartner
|
|
383
383
|
*/
|
|
384
384
|
readonly code: string;
|
|
385
385
|
/**
|
|
386
386
|
*
|
|
387
387
|
* @type {UpdatePartnerRequestDto}
|
|
388
|
-
* @memberof
|
|
388
|
+
* @memberof PartnersApiUpdatePartner
|
|
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 PartnersApiUpdatePartner
|
|
395
395
|
*/
|
|
396
396
|
readonly authorization?: string;
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
|
-
*
|
|
399
|
+
* PartnersApi - object-oriented interface
|
|
400
400
|
* @export
|
|
401
|
-
* @class
|
|
401
|
+
* @class PartnersApi
|
|
402
402
|
* @extends {BaseAPI}
|
|
403
403
|
*/
|
|
404
|
-
export declare class
|
|
404
|
+
export declare class PartnersApi extends BaseAPI {
|
|
405
405
|
/**
|
|
406
406
|
* This will create a partner.
|
|
407
407
|
* @summary Create the partner
|
|
408
|
-
* @param {
|
|
408
|
+
* @param {PartnersApiCreatePartnerRequest} requestParameters Request parameters.
|
|
409
409
|
* @param {*} [options] Override http request option.
|
|
410
410
|
* @throws {RequiredError}
|
|
411
|
-
* @memberof
|
|
411
|
+
* @memberof PartnersApi
|
|
412
412
|
*/
|
|
413
|
-
createPartner(requestParameters:
|
|
413
|
+
createPartner(requestParameters: PartnersApiCreatePartnerRequest, 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 {PartnersApiDeletePartnerRequest} requestParameters Request parameters.
|
|
418
418
|
* @param {*} [options] Override http request option.
|
|
419
419
|
* @throws {RequiredError}
|
|
420
|
-
* @memberof
|
|
420
|
+
* @memberof PartnersApi
|
|
421
421
|
*/
|
|
422
|
-
deletePartner(requestParameters:
|
|
422
|
+
deletePartner(requestParameters: PartnersApiDeletePartnerRequest, 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 {PartnersApiGetPartnerRequest} requestParameters Request parameters.
|
|
427
427
|
* @param {*} [options] Override http request option.
|
|
428
428
|
* @throws {RequiredError}
|
|
429
|
-
* @memberof
|
|
429
|
+
* @memberof PartnersApi
|
|
430
430
|
*/
|
|
431
|
-
getPartner(requestParameters:
|
|
431
|
+
getPartner(requestParameters: PartnersApiGetPartnerRequest, 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 {PartnersApiListPartnersRequest} requestParameters Request parameters.
|
|
436
436
|
* @param {*} [options] Override http request option.
|
|
437
437
|
* @throws {RequiredError}
|
|
438
|
-
* @memberof
|
|
438
|
+
* @memberof PartnersApi
|
|
439
439
|
*/
|
|
440
|
-
listPartners(requestParameters?:
|
|
440
|
+
listPartners(requestParameters?: PartnersApiListPartnersRequest, 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 {PartnersApiTagPartnerRequest} requestParameters Request parameters.
|
|
445
445
|
* @param {*} [options] Override http request option.
|
|
446
446
|
* @throws {RequiredError}
|
|
447
|
-
* @memberof
|
|
447
|
+
* @memberof PartnersApi
|
|
448
448
|
*/
|
|
449
|
-
tagPartner(requestParameters:
|
|
449
|
+
tagPartner(requestParameters: PartnersApiTagPartnerRequest, 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 {PartnersApiUpdatePartnerRequest} requestParameters Request parameters.
|
|
454
454
|
* @param {*} [options] Override http request option.
|
|
455
455
|
* @throws {RequiredError}
|
|
456
|
-
* @memberof
|
|
456
|
+
* @memberof PartnersApi
|
|
457
457
|
*/
|
|
458
|
-
updatePartner(requestParameters:
|
|
458
|
+
updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, 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.PartnersApi = exports.PartnersApiFactory = exports.PartnersApiFp = exports.PartnersApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -86,10 +86,10 @@ var common_1 = require("../common");
|
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("../base");
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* PartnersApi - axios parameter creator
|
|
90
90
|
* @export
|
|
91
91
|
*/
|
|
92
|
-
var
|
|
92
|
+
var PartnersApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
@@ -247,11 +247,11 @@ var PartnerApiAxiosParamCreator = function (configuration) {
|
|
|
247
247
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
248
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
249
|
* @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.
|
|
250
|
-
* @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
|
|
250
|
+
* @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>
|
|
251
251
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
252
252
|
* @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>
|
|
253
253
|
* @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>
|
|
254
|
-
* @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
|
|
254
|
+
* @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>
|
|
255
255
|
* @param {*} [options] Override http request option.
|
|
256
256
|
* @throws {RequiredError}
|
|
257
257
|
*/
|
|
@@ -421,13 +421,13 @@ var PartnerApiAxiosParamCreator = function (configuration) {
|
|
|
421
421
|
},
|
|
422
422
|
};
|
|
423
423
|
};
|
|
424
|
-
exports.
|
|
424
|
+
exports.PartnersApiAxiosParamCreator = PartnersApiAxiosParamCreator;
|
|
425
425
|
/**
|
|
426
|
-
*
|
|
426
|
+
* PartnersApi - functional programming interface
|
|
427
427
|
* @export
|
|
428
428
|
*/
|
|
429
|
-
var
|
|
430
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
429
|
+
var PartnersApiFp = function (configuration) {
|
|
430
|
+
var localVarAxiosParamCreator = (0, exports.PartnersApiAxiosParamCreator)(configuration);
|
|
431
431
|
return {
|
|
432
432
|
/**
|
|
433
433
|
* This will create a partner.
|
|
@@ -499,11 +499,11 @@ var PartnerApiFp = function (configuration) {
|
|
|
499
499
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
500
500
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
501
501
|
* @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.
|
|
502
|
-
* @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
|
|
502
|
+
* @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>
|
|
503
503
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
504
504
|
* @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>
|
|
505
505
|
* @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>
|
|
506
|
-
* @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
|
|
506
|
+
* @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>
|
|
507
507
|
* @param {*} [options] Override http request option.
|
|
508
508
|
* @throws {RequiredError}
|
|
509
509
|
*/
|
|
@@ -566,13 +566,13 @@ var PartnerApiFp = function (configuration) {
|
|
|
566
566
|
},
|
|
567
567
|
};
|
|
568
568
|
};
|
|
569
|
-
exports.
|
|
569
|
+
exports.PartnersApiFp = PartnersApiFp;
|
|
570
570
|
/**
|
|
571
|
-
*
|
|
571
|
+
* PartnersApi - factory interface
|
|
572
572
|
* @export
|
|
573
573
|
*/
|
|
574
|
-
var
|
|
575
|
-
var localVarFp = (0, exports.
|
|
574
|
+
var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
575
|
+
var localVarFp = (0, exports.PartnersApiFp)(configuration);
|
|
576
576
|
return {
|
|
577
577
|
/**
|
|
578
578
|
* This will create a partner.
|
|
@@ -614,11 +614,11 @@ var PartnerApiFactory = function (configuration, basePath, axios) {
|
|
|
614
614
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
615
615
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
616
616
|
* @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.
|
|
617
|
-
* @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
|
|
617
|
+
* @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>
|
|
618
618
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
619
619
|
* @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>
|
|
620
620
|
* @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>
|
|
621
|
-
* @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
|
|
621
|
+
* @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>
|
|
622
622
|
* @param {*} [options] Override http request option.
|
|
623
623
|
* @throws {RequiredError}
|
|
624
624
|
*/
|
|
@@ -651,91 +651,91 @@ var PartnerApiFactory = function (configuration, basePath, axios) {
|
|
|
651
651
|
},
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
|
-
exports.
|
|
654
|
+
exports.PartnersApiFactory = PartnersApiFactory;
|
|
655
655
|
/**
|
|
656
|
-
*
|
|
656
|
+
* PartnersApi - object-oriented interface
|
|
657
657
|
* @export
|
|
658
|
-
* @class
|
|
658
|
+
* @class PartnersApi
|
|
659
659
|
* @extends {BaseAPI}
|
|
660
660
|
*/
|
|
661
|
-
var
|
|
662
|
-
__extends(
|
|
663
|
-
function
|
|
661
|
+
var PartnersApi = /** @class */ (function (_super) {
|
|
662
|
+
__extends(PartnersApi, _super);
|
|
663
|
+
function PartnersApi() {
|
|
664
664
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
665
665
|
}
|
|
666
666
|
/**
|
|
667
667
|
* This will create a partner.
|
|
668
668
|
* @summary Create the partner
|
|
669
|
-
* @param {
|
|
669
|
+
* @param {PartnersApiCreatePartnerRequest} requestParameters Request parameters.
|
|
670
670
|
* @param {*} [options] Override http request option.
|
|
671
671
|
* @throws {RequiredError}
|
|
672
|
-
* @memberof
|
|
672
|
+
* @memberof PartnersApi
|
|
673
673
|
*/
|
|
674
|
-
|
|
674
|
+
PartnersApi.prototype.createPartner = function (requestParameters, options) {
|
|
675
675
|
var _this = this;
|
|
676
|
-
return (0, exports.
|
|
676
|
+
return (0, exports.PartnersApiFp)(this.configuration).createPartner(requestParameters.createPartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
677
677
|
};
|
|
678
678
|
/**
|
|
679
679
|
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
680
680
|
* @summary Delete the partner
|
|
681
|
-
* @param {
|
|
681
|
+
* @param {PartnersApiDeletePartnerRequest} requestParameters Request parameters.
|
|
682
682
|
* @param {*} [options] Override http request option.
|
|
683
683
|
* @throws {RequiredError}
|
|
684
|
-
* @memberof
|
|
684
|
+
* @memberof PartnersApi
|
|
685
685
|
*/
|
|
686
|
-
|
|
686
|
+
PartnersApi.prototype.deletePartner = function (requestParameters, options) {
|
|
687
687
|
var _this = this;
|
|
688
|
-
return (0, exports.
|
|
688
|
+
return (0, exports.PartnersApiFp)(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
689
689
|
};
|
|
690
690
|
/**
|
|
691
691
|
* 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.
|
|
692
692
|
* @summary Retrieve the partner
|
|
693
|
-
* @param {
|
|
693
|
+
* @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
|
|
694
694
|
* @param {*} [options] Override http request option.
|
|
695
695
|
* @throws {RequiredError}
|
|
696
|
-
* @memberof
|
|
696
|
+
* @memberof PartnersApi
|
|
697
697
|
*/
|
|
698
|
-
|
|
698
|
+
PartnersApi.prototype.getPartner = function (requestParameters, options) {
|
|
699
699
|
var _this = this;
|
|
700
|
-
return (0, exports.
|
|
700
|
+
return (0, exports.PartnersApiFp)(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
701
701
|
};
|
|
702
702
|
/**
|
|
703
703
|
* 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.
|
|
704
704
|
* @summary List partners
|
|
705
|
-
* @param {
|
|
705
|
+
* @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
|
|
706
706
|
* @param {*} [options] Override http request option.
|
|
707
707
|
* @throws {RequiredError}
|
|
708
|
-
* @memberof
|
|
708
|
+
* @memberof PartnersApi
|
|
709
709
|
*/
|
|
710
|
-
|
|
710
|
+
PartnersApi.prototype.listPartners = function (requestParameters, options) {
|
|
711
711
|
var _this = this;
|
|
712
712
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
713
|
-
return (0, exports.
|
|
713
|
+
return (0, exports.PartnersApiFp)(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); });
|
|
714
714
|
};
|
|
715
715
|
/**
|
|
716
716
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
717
717
|
* @summary Update the partner
|
|
718
|
-
* @param {
|
|
718
|
+
* @param {PartnersApiTagPartnerRequest} requestParameters Request parameters.
|
|
719
719
|
* @param {*} [options] Override http request option.
|
|
720
720
|
* @throws {RequiredError}
|
|
721
|
-
* @memberof
|
|
721
|
+
* @memberof PartnersApi
|
|
722
722
|
*/
|
|
723
|
-
|
|
723
|
+
PartnersApi.prototype.tagPartner = function (requestParameters, options) {
|
|
724
724
|
var _this = this;
|
|
725
|
-
return (0, exports.
|
|
725
|
+
return (0, exports.PartnersApiFp)(this.configuration).tagPartner(requestParameters.code, requestParameters.tagPartnerRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
726
726
|
};
|
|
727
727
|
/**
|
|
728
728
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
729
729
|
* @summary Update the partner
|
|
730
|
-
* @param {
|
|
730
|
+
* @param {PartnersApiUpdatePartnerRequest} requestParameters Request parameters.
|
|
731
731
|
* @param {*} [options] Override http request option.
|
|
732
732
|
* @throws {RequiredError}
|
|
733
|
-
* @memberof
|
|
733
|
+
* @memberof PartnersApi
|
|
734
734
|
*/
|
|
735
|
-
|
|
735
|
+
PartnersApi.prototype.updatePartner = function (requestParameters, options) {
|
|
736
736
|
var _this = this;
|
|
737
|
-
return (0, exports.
|
|
737
|
+
return (0, exports.PartnersApiFp)(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
738
738
|
};
|
|
739
|
-
return
|
|
739
|
+
return PartnersApi;
|
|
740
740
|
}(base_1.BaseAPI));
|
|
741
|
-
exports.
|
|
741
|
+
exports.PartnersApi = PartnersApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/default-api';
|
|
13
|
-
export * from './api/partner-api';
|
|
14
|
-
export * from './api/partner-
|
|
15
|
-
export * from './api/partner-
|
|
16
|
-
export * from './api/partner-tag-api';
|
|
17
|
-
export * from './api/partner-type-api';
|
|
13
|
+
export * from './api/partner-relations-api';
|
|
14
|
+
export * from './api/partner-tags-api';
|
|
15
|
+
export * from './api/partner-types-api';
|
|
18
16
|
export * from './api/partner-version-api';
|
|
17
|
+
export * from './api/partners-api';
|