@emilgroup/partner-sdk-node 1.5.1-beta.2 → 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 -169
- package/dist/api/partner-invitation-api.d.ts +0 -97
- package/dist/api/partner-invitation-api.js +0 -228
- 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 { ListPartnerRelationClass } from '../models';
|
|
|
21
21
|
import { ListPartnerRelationTypesClass } from '../models';
|
|
22
22
|
import { UpdatePartnerRelationRequestDtoRest } from '../models';
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* PartnerRelationsApi - axios parameter creator
|
|
25
25
|
* @export
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const PartnerRelationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
28
|
/**
|
|
29
29
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
30
30
|
* @summary Create the partner relation
|
|
@@ -103,10 +103,10 @@ export declare const PartnerRelationApiAxiosParamCreator: (configuration?: Confi
|
|
|
103
103
|
updatePartnerRelation: (id: number, updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
104
104
|
};
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* PartnerRelationsApi - functional programming interface
|
|
107
107
|
* @export
|
|
108
108
|
*/
|
|
109
|
-
export declare const
|
|
109
|
+
export declare const PartnerRelationsApiFp: (configuration?: Configuration) => {
|
|
110
110
|
/**
|
|
111
111
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
112
112
|
* @summary Create the partner relation
|
|
@@ -185,10 +185,10 @@ export declare const PartnerRelationApiFp: (configuration?: Configuration) => {
|
|
|
185
185
|
updatePartnerRelation(id: number, updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerRelationClass>>;
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
188
|
+
* PartnerRelationsApi - factory interface
|
|
189
189
|
* @export
|
|
190
190
|
*/
|
|
191
|
-
export declare const
|
|
191
|
+
export declare const PartnerRelationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
192
192
|
/**
|
|
193
193
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
194
194
|
* @summary Create the partner relation
|
|
@@ -267,284 +267,284 @@ export declare const PartnerRelationApiFactory: (configuration?: Configuration,
|
|
|
267
267
|
updatePartnerRelation(id: number, updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetPartnerRelationClass>;
|
|
268
268
|
};
|
|
269
269
|
/**
|
|
270
|
-
* Request parameters for createPartnerRelation operation in
|
|
270
|
+
* Request parameters for createPartnerRelation operation in PartnerRelationsApi.
|
|
271
271
|
* @export
|
|
272
|
-
* @interface
|
|
272
|
+
* @interface PartnerRelationsApiCreatePartnerRelationRequest
|
|
273
273
|
*/
|
|
274
|
-
export interface
|
|
274
|
+
export interface PartnerRelationsApiCreatePartnerRelationRequest {
|
|
275
275
|
/**
|
|
276
276
|
*
|
|
277
277
|
* @type {CreatePartnerRelationRequestDtoRest}
|
|
278
|
-
* @memberof
|
|
278
|
+
* @memberof PartnerRelationsApiCreatePartnerRelation
|
|
279
279
|
*/
|
|
280
280
|
readonly createPartnerRelationRequestDtoRest: CreatePartnerRelationRequestDtoRest;
|
|
281
281
|
/**
|
|
282
282
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
283
283
|
* @type {string}
|
|
284
|
-
* @memberof
|
|
284
|
+
* @memberof PartnerRelationsApiCreatePartnerRelation
|
|
285
285
|
*/
|
|
286
286
|
readonly authorization?: string;
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
289
|
-
* Request parameters for deletePartnerRelation operation in
|
|
289
|
+
* Request parameters for deletePartnerRelation operation in PartnerRelationsApi.
|
|
290
290
|
* @export
|
|
291
|
-
* @interface
|
|
291
|
+
* @interface PartnerRelationsApiDeletePartnerRelationRequest
|
|
292
292
|
*/
|
|
293
|
-
export interface
|
|
293
|
+
export interface PartnerRelationsApiDeletePartnerRelationRequest {
|
|
294
294
|
/**
|
|
295
295
|
*
|
|
296
296
|
* @type {number}
|
|
297
|
-
* @memberof
|
|
297
|
+
* @memberof PartnerRelationsApiDeletePartnerRelation
|
|
298
298
|
*/
|
|
299
299
|
readonly id: number;
|
|
300
300
|
/**
|
|
301
301
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
302
302
|
* @type {string}
|
|
303
|
-
* @memberof
|
|
303
|
+
* @memberof PartnerRelationsApiDeletePartnerRelation
|
|
304
304
|
*/
|
|
305
305
|
readonly authorization?: string;
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
308
|
-
* Request parameters for getPartnerRelation operation in
|
|
308
|
+
* Request parameters for getPartnerRelation operation in PartnerRelationsApi.
|
|
309
309
|
* @export
|
|
310
|
-
* @interface
|
|
310
|
+
* @interface PartnerRelationsApiGetPartnerRelationRequest
|
|
311
311
|
*/
|
|
312
|
-
export interface
|
|
312
|
+
export interface PartnerRelationsApiGetPartnerRelationRequest {
|
|
313
313
|
/**
|
|
314
314
|
* Id of the partner relation
|
|
315
315
|
* @type {number}
|
|
316
|
-
* @memberof
|
|
316
|
+
* @memberof PartnerRelationsApiGetPartnerRelation
|
|
317
317
|
*/
|
|
318
318
|
readonly id: number;
|
|
319
319
|
/**
|
|
320
320
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
321
321
|
* @type {string}
|
|
322
|
-
* @memberof
|
|
322
|
+
* @memberof PartnerRelationsApiGetPartnerRelation
|
|
323
323
|
*/
|
|
324
324
|
readonly authorization?: string;
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
|
-
* Request parameters for getPartnerRelationType operation in
|
|
327
|
+
* Request parameters for getPartnerRelationType operation in PartnerRelationsApi.
|
|
328
328
|
* @export
|
|
329
|
-
* @interface
|
|
329
|
+
* @interface PartnerRelationsApiGetPartnerRelationTypeRequest
|
|
330
330
|
*/
|
|
331
|
-
export interface
|
|
331
|
+
export interface PartnerRelationsApiGetPartnerRelationTypeRequest {
|
|
332
332
|
/**
|
|
333
333
|
* Identifying slug of the partner relation type
|
|
334
334
|
* @type {string}
|
|
335
|
-
* @memberof
|
|
335
|
+
* @memberof PartnerRelationsApiGetPartnerRelationType
|
|
336
336
|
*/
|
|
337
337
|
readonly slug: string;
|
|
338
338
|
/**
|
|
339
339
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
340
340
|
* @type {string}
|
|
341
|
-
* @memberof
|
|
341
|
+
* @memberof PartnerRelationsApiGetPartnerRelationType
|
|
342
342
|
*/
|
|
343
343
|
readonly authorization?: string;
|
|
344
344
|
}
|
|
345
345
|
/**
|
|
346
|
-
* Request parameters for listPartnerRelationTypes operation in
|
|
346
|
+
* Request parameters for listPartnerRelationTypes operation in PartnerRelationsApi.
|
|
347
347
|
* @export
|
|
348
|
-
* @interface
|
|
348
|
+
* @interface PartnerRelationsApiListPartnerRelationTypesRequest
|
|
349
349
|
*/
|
|
350
|
-
export interface
|
|
350
|
+
export interface PartnerRelationsApiListPartnerRelationTypesRequest {
|
|
351
351
|
/**
|
|
352
352
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
353
353
|
* @type {string}
|
|
354
|
-
* @memberof
|
|
354
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
355
355
|
*/
|
|
356
356
|
readonly authorization?: string;
|
|
357
357
|
/**
|
|
358
358
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
359
359
|
* @type {any}
|
|
360
|
-
* @memberof
|
|
360
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
361
361
|
*/
|
|
362
362
|
readonly pageSize?: any;
|
|
363
363
|
/**
|
|
364
364
|
* 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.
|
|
365
365
|
* @type {any}
|
|
366
|
-
* @memberof
|
|
366
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
367
367
|
*/
|
|
368
368
|
readonly pageToken?: any;
|
|
369
369
|
/**
|
|
370
370
|
* 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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
371
371
|
* @type {string}
|
|
372
|
-
* @memberof
|
|
372
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
373
373
|
*/
|
|
374
374
|
readonly filter?: string;
|
|
375
375
|
/**
|
|
376
376
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
377
377
|
* @type {any}
|
|
378
|
-
* @memberof
|
|
378
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
379
379
|
*/
|
|
380
380
|
readonly search?: any;
|
|
381
381
|
/**
|
|
382
382
|
* 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, slug, maxCardinality, inverseMaxCardinality, createdAt, updatedAt</i>
|
|
383
383
|
* @type {string}
|
|
384
|
-
* @memberof
|
|
384
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
385
385
|
*/
|
|
386
386
|
readonly order?: string;
|
|
387
387
|
/**
|
|
388
388
|
* 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: <i>
|
|
389
389
|
* @type {string}
|
|
390
|
-
* @memberof
|
|
390
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
391
391
|
*/
|
|
392
392
|
readonly expand?: string;
|
|
393
393
|
/**
|
|
394
394
|
* 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, slug, relationName, maxCardinality, inverseMaxCardinality</i>
|
|
395
395
|
* @type {string}
|
|
396
|
-
* @memberof
|
|
396
|
+
* @memberof PartnerRelationsApiListPartnerRelationTypes
|
|
397
397
|
*/
|
|
398
398
|
readonly filters?: string;
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
|
-
* Request parameters for listPartnerRelations operation in
|
|
401
|
+
* Request parameters for listPartnerRelations operation in PartnerRelationsApi.
|
|
402
402
|
* @export
|
|
403
|
-
* @interface
|
|
403
|
+
* @interface PartnerRelationsApiListPartnerRelationsRequest
|
|
404
404
|
*/
|
|
405
|
-
export interface
|
|
405
|
+
export interface PartnerRelationsApiListPartnerRelationsRequest {
|
|
406
406
|
/**
|
|
407
407
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
408
408
|
* @type {string}
|
|
409
|
-
* @memberof
|
|
409
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
410
410
|
*/
|
|
411
411
|
readonly authorization?: string;
|
|
412
412
|
/**
|
|
413
413
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
414
414
|
* @type {any}
|
|
415
|
-
* @memberof
|
|
415
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
416
416
|
*/
|
|
417
417
|
readonly pageSize?: any;
|
|
418
418
|
/**
|
|
419
419
|
* 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.
|
|
420
420
|
* @type {any}
|
|
421
|
-
* @memberof
|
|
421
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
422
422
|
*/
|
|
423
423
|
readonly pageToken?: any;
|
|
424
424
|
/**
|
|
425
425
|
* 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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
426
426
|
* @type {string}
|
|
427
|
-
* @memberof
|
|
427
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
428
428
|
*/
|
|
429
429
|
readonly filter?: string;
|
|
430
430
|
/**
|
|
431
431
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
432
432
|
* @type {any}
|
|
433
|
-
* @memberof
|
|
433
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
434
434
|
*/
|
|
435
435
|
readonly search?: any;
|
|
436
436
|
/**
|
|
437
437
|
* 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, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
|
|
438
438
|
* @type {string}
|
|
439
|
-
* @memberof
|
|
439
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
440
440
|
*/
|
|
441
441
|
readonly order?: string;
|
|
442
442
|
/**
|
|
443
443
|
* 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: partnerRelationType<i>
|
|
444
444
|
* @type {string}
|
|
445
|
-
* @memberof
|
|
445
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
446
446
|
*/
|
|
447
447
|
readonly expand?: string;
|
|
448
448
|
/**
|
|
449
449
|
* 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, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
|
|
450
450
|
* @type {string}
|
|
451
|
-
* @memberof
|
|
451
|
+
* @memberof PartnerRelationsApiListPartnerRelations
|
|
452
452
|
*/
|
|
453
453
|
readonly filters?: string;
|
|
454
454
|
}
|
|
455
455
|
/**
|
|
456
|
-
* Request parameters for updatePartnerRelation operation in
|
|
456
|
+
* Request parameters for updatePartnerRelation operation in PartnerRelationsApi.
|
|
457
457
|
* @export
|
|
458
|
-
* @interface
|
|
458
|
+
* @interface PartnerRelationsApiUpdatePartnerRelationRequest
|
|
459
459
|
*/
|
|
460
|
-
export interface
|
|
460
|
+
export interface PartnerRelationsApiUpdatePartnerRelationRequest {
|
|
461
461
|
/**
|
|
462
462
|
* Id of the partner relation
|
|
463
463
|
* @type {number}
|
|
464
|
-
* @memberof
|
|
464
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
465
465
|
*/
|
|
466
466
|
readonly id: number;
|
|
467
467
|
/**
|
|
468
468
|
*
|
|
469
469
|
* @type {UpdatePartnerRelationRequestDtoRest}
|
|
470
|
-
* @memberof
|
|
470
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
471
471
|
*/
|
|
472
472
|
readonly updatePartnerRelationRequestDtoRest: UpdatePartnerRelationRequestDtoRest;
|
|
473
473
|
/**
|
|
474
474
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
475
475
|
* @type {string}
|
|
476
|
-
* @memberof
|
|
476
|
+
* @memberof PartnerRelationsApiUpdatePartnerRelation
|
|
477
477
|
*/
|
|
478
478
|
readonly authorization?: string;
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
481
|
-
*
|
|
481
|
+
* PartnerRelationsApi - object-oriented interface
|
|
482
482
|
* @export
|
|
483
|
-
* @class
|
|
483
|
+
* @class PartnerRelationsApi
|
|
484
484
|
* @extends {BaseAPI}
|
|
485
485
|
*/
|
|
486
|
-
export declare class
|
|
486
|
+
export declare class PartnerRelationsApi extends BaseAPI {
|
|
487
487
|
/**
|
|
488
488
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
489
489
|
* @summary Create the partner relation
|
|
490
|
-
* @param {
|
|
490
|
+
* @param {PartnerRelationsApiCreatePartnerRelationRequest} requestParameters Request parameters.
|
|
491
491
|
* @param {*} [options] Override http request option.
|
|
492
492
|
* @throws {RequiredError}
|
|
493
|
-
* @memberof
|
|
493
|
+
* @memberof PartnerRelationsApi
|
|
494
494
|
*/
|
|
495
|
-
createPartnerRelation(requestParameters:
|
|
495
|
+
createPartnerRelation(requestParameters: PartnerRelationsApiCreatePartnerRelationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerRelationResponseClass, any>>;
|
|
496
496
|
/**
|
|
497
497
|
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
498
498
|
* @summary Delete the partner-relation
|
|
499
|
-
* @param {
|
|
499
|
+
* @param {PartnerRelationsApiDeletePartnerRelationRequest} requestParameters Request parameters.
|
|
500
500
|
* @param {*} [options] Override http request option.
|
|
501
501
|
* @throws {RequiredError}
|
|
502
|
-
* @memberof
|
|
502
|
+
* @memberof PartnerRelationsApi
|
|
503
503
|
*/
|
|
504
|
-
deletePartnerRelation(requestParameters:
|
|
504
|
+
deletePartnerRelation(requestParameters: PartnerRelationsApiDeletePartnerRelationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
505
505
|
/**
|
|
506
506
|
* Retrieve a single partner relation identified by its id
|
|
507
507
|
* @summary Retrieve the partner relation
|
|
508
|
-
* @param {
|
|
508
|
+
* @param {PartnerRelationsApiGetPartnerRelationRequest} requestParameters Request parameters.
|
|
509
509
|
* @param {*} [options] Override http request option.
|
|
510
510
|
* @throws {RequiredError}
|
|
511
|
-
* @memberof
|
|
511
|
+
* @memberof PartnerRelationsApi
|
|
512
512
|
*/
|
|
513
|
-
getPartnerRelation(requestParameters:
|
|
513
|
+
getPartnerRelation(requestParameters: PartnerRelationsApiGetPartnerRelationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerRelationClass, any>>;
|
|
514
514
|
/**
|
|
515
515
|
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
516
516
|
* @summary Retrieve the partner relation type
|
|
517
|
-
* @param {
|
|
517
|
+
* @param {PartnerRelationsApiGetPartnerRelationTypeRequest} requestParameters Request parameters.
|
|
518
518
|
* @param {*} [options] Override http request option.
|
|
519
519
|
* @throws {RequiredError}
|
|
520
|
-
* @memberof
|
|
520
|
+
* @memberof PartnerRelationsApi
|
|
521
521
|
*/
|
|
522
|
-
getPartnerRelationType(requestParameters:
|
|
522
|
+
getPartnerRelationType(requestParameters: PartnerRelationsApiGetPartnerRelationTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerRelationTypeClass, any>>;
|
|
523
523
|
/**
|
|
524
524
|
* List all partner relation types - is used to create partner relations
|
|
525
525
|
* @summary List partner relation types
|
|
526
|
-
* @param {
|
|
526
|
+
* @param {PartnerRelationsApiListPartnerRelationTypesRequest} requestParameters Request parameters.
|
|
527
527
|
* @param {*} [options] Override http request option.
|
|
528
528
|
* @throws {RequiredError}
|
|
529
|
-
* @memberof
|
|
529
|
+
* @memberof PartnerRelationsApi
|
|
530
530
|
*/
|
|
531
|
-
listPartnerRelationTypes(requestParameters?:
|
|
531
|
+
listPartnerRelationTypes(requestParameters?: PartnerRelationsApiListPartnerRelationTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerRelationTypesClass, any>>;
|
|
532
532
|
/**
|
|
533
533
|
* List all partner relations
|
|
534
534
|
* @summary List partner relations
|
|
535
|
-
* @param {
|
|
535
|
+
* @param {PartnerRelationsApiListPartnerRelationsRequest} requestParameters Request parameters.
|
|
536
536
|
* @param {*} [options] Override http request option.
|
|
537
537
|
* @throws {RequiredError}
|
|
538
|
-
* @memberof
|
|
538
|
+
* @memberof PartnerRelationsApi
|
|
539
539
|
*/
|
|
540
|
-
listPartnerRelations(requestParameters?:
|
|
540
|
+
listPartnerRelations(requestParameters?: PartnerRelationsApiListPartnerRelationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerRelationClass, any>>;
|
|
541
541
|
/**
|
|
542
542
|
* Update a partner relation identified by its id
|
|
543
543
|
* @summary Update the partner relation
|
|
544
|
-
* @param {
|
|
544
|
+
* @param {PartnerRelationsApiUpdatePartnerRelationRequest} requestParameters Request parameters.
|
|
545
545
|
* @param {*} [options] Override http request option.
|
|
546
546
|
* @throws {RequiredError}
|
|
547
|
-
* @memberof
|
|
547
|
+
* @memberof PartnerRelationsApi
|
|
548
548
|
*/
|
|
549
|
-
updatePartnerRelation(requestParameters:
|
|
549
|
+
updatePartnerRelation(requestParameters: PartnerRelationsApiUpdatePartnerRelationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerRelationClass, any>>;
|
|
550
550
|
}
|
|
@@ -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.PartnerRelationsApi = exports.PartnerRelationsApiFactory = exports.PartnerRelationsApiFp = exports.PartnerRelationsApiAxiosParamCreator = 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
|
+
* PartnerRelationsApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var PartnerRelationsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
@@ -488,13 +488,13 @@ var PartnerRelationApiAxiosParamCreator = function (configuration) {
|
|
|
488
488
|
},
|
|
489
489
|
};
|
|
490
490
|
};
|
|
491
|
-
exports.
|
|
491
|
+
exports.PartnerRelationsApiAxiosParamCreator = PartnerRelationsApiAxiosParamCreator;
|
|
492
492
|
/**
|
|
493
|
-
*
|
|
493
|
+
* PartnerRelationsApi - functional programming interface
|
|
494
494
|
* @export
|
|
495
495
|
*/
|
|
496
|
-
var
|
|
497
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
496
|
+
var PartnerRelationsApiFp = function (configuration) {
|
|
497
|
+
var localVarAxiosParamCreator = (0, exports.PartnerRelationsApiAxiosParamCreator)(configuration);
|
|
498
498
|
return {
|
|
499
499
|
/**
|
|
500
500
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
@@ -658,13 +658,13 @@ var PartnerRelationApiFp = function (configuration) {
|
|
|
658
658
|
},
|
|
659
659
|
};
|
|
660
660
|
};
|
|
661
|
-
exports.
|
|
661
|
+
exports.PartnerRelationsApiFp = PartnerRelationsApiFp;
|
|
662
662
|
/**
|
|
663
|
-
*
|
|
663
|
+
* PartnerRelationsApi - factory interface
|
|
664
664
|
* @export
|
|
665
665
|
*/
|
|
666
|
-
var
|
|
667
|
-
var localVarFp = (0, exports.
|
|
666
|
+
var PartnerRelationsApiFactory = function (configuration, basePath, axios) {
|
|
667
|
+
var localVarFp = (0, exports.PartnerRelationsApiFp)(configuration);
|
|
668
668
|
return {
|
|
669
669
|
/**
|
|
670
670
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
@@ -758,104 +758,104 @@ var PartnerRelationApiFactory = function (configuration, basePath, axios) {
|
|
|
758
758
|
},
|
|
759
759
|
};
|
|
760
760
|
};
|
|
761
|
-
exports.
|
|
761
|
+
exports.PartnerRelationsApiFactory = PartnerRelationsApiFactory;
|
|
762
762
|
/**
|
|
763
|
-
*
|
|
763
|
+
* PartnerRelationsApi - object-oriented interface
|
|
764
764
|
* @export
|
|
765
|
-
* @class
|
|
765
|
+
* @class PartnerRelationsApi
|
|
766
766
|
* @extends {BaseAPI}
|
|
767
767
|
*/
|
|
768
|
-
var
|
|
769
|
-
__extends(
|
|
770
|
-
function
|
|
768
|
+
var PartnerRelationsApi = /** @class */ (function (_super) {
|
|
769
|
+
__extends(PartnerRelationsApi, _super);
|
|
770
|
+
function PartnerRelationsApi() {
|
|
771
771
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
772
772
|
}
|
|
773
773
|
/**
|
|
774
774
|
* This will create a relationship between two partners. For example a parent-child relationship, or a partnership agreement.
|
|
775
775
|
* @summary Create the partner relation
|
|
776
|
-
* @param {
|
|
776
|
+
* @param {PartnerRelationsApiCreatePartnerRelationRequest} requestParameters Request parameters.
|
|
777
777
|
* @param {*} [options] Override http request option.
|
|
778
778
|
* @throws {RequiredError}
|
|
779
|
-
* @memberof
|
|
779
|
+
* @memberof PartnerRelationsApi
|
|
780
780
|
*/
|
|
781
|
-
|
|
781
|
+
PartnerRelationsApi.prototype.createPartnerRelation = function (requestParameters, options) {
|
|
782
782
|
var _this = this;
|
|
783
|
-
return (0, exports.
|
|
783
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).createPartnerRelation(requestParameters.createPartnerRelationRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
784
784
|
};
|
|
785
785
|
/**
|
|
786
786
|
* Permanently deletes the partner-relation. Supply the unique code that was returned when you created the partner-relation and this will delete it.
|
|
787
787
|
* @summary Delete the partner-relation
|
|
788
|
-
* @param {
|
|
788
|
+
* @param {PartnerRelationsApiDeletePartnerRelationRequest} requestParameters Request parameters.
|
|
789
789
|
* @param {*} [options] Override http request option.
|
|
790
790
|
* @throws {RequiredError}
|
|
791
|
-
* @memberof
|
|
791
|
+
* @memberof PartnerRelationsApi
|
|
792
792
|
*/
|
|
793
|
-
|
|
793
|
+
PartnerRelationsApi.prototype.deletePartnerRelation = function (requestParameters, options) {
|
|
794
794
|
var _this = this;
|
|
795
|
-
return (0, exports.
|
|
795
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).deletePartnerRelation(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
796
796
|
};
|
|
797
797
|
/**
|
|
798
798
|
* Retrieve a single partner relation identified by its id
|
|
799
799
|
* @summary Retrieve the partner relation
|
|
800
|
-
* @param {
|
|
800
|
+
* @param {PartnerRelationsApiGetPartnerRelationRequest} requestParameters Request parameters.
|
|
801
801
|
* @param {*} [options] Override http request option.
|
|
802
802
|
* @throws {RequiredError}
|
|
803
|
-
* @memberof
|
|
803
|
+
* @memberof PartnerRelationsApi
|
|
804
804
|
*/
|
|
805
|
-
|
|
805
|
+
PartnerRelationsApi.prototype.getPartnerRelation = function (requestParameters, options) {
|
|
806
806
|
var _this = this;
|
|
807
|
-
return (0, exports.
|
|
807
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).getPartnerRelation(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
808
808
|
};
|
|
809
809
|
/**
|
|
810
810
|
* Retrieve a single partner relation type identified with a slug - can be used to create partner relations
|
|
811
811
|
* @summary Retrieve the partner relation type
|
|
812
|
-
* @param {
|
|
812
|
+
* @param {PartnerRelationsApiGetPartnerRelationTypeRequest} requestParameters Request parameters.
|
|
813
813
|
* @param {*} [options] Override http request option.
|
|
814
814
|
* @throws {RequiredError}
|
|
815
|
-
* @memberof
|
|
815
|
+
* @memberof PartnerRelationsApi
|
|
816
816
|
*/
|
|
817
|
-
|
|
817
|
+
PartnerRelationsApi.prototype.getPartnerRelationType = function (requestParameters, options) {
|
|
818
818
|
var _this = this;
|
|
819
|
-
return (0, exports.
|
|
819
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).getPartnerRelationType(requestParameters.slug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
820
820
|
};
|
|
821
821
|
/**
|
|
822
822
|
* List all partner relation types - is used to create partner relations
|
|
823
823
|
* @summary List partner relation types
|
|
824
|
-
* @param {
|
|
824
|
+
* @param {PartnerRelationsApiListPartnerRelationTypesRequest} requestParameters Request parameters.
|
|
825
825
|
* @param {*} [options] Override http request option.
|
|
826
826
|
* @throws {RequiredError}
|
|
827
|
-
* @memberof
|
|
827
|
+
* @memberof PartnerRelationsApi
|
|
828
828
|
*/
|
|
829
|
-
|
|
829
|
+
PartnerRelationsApi.prototype.listPartnerRelationTypes = function (requestParameters, options) {
|
|
830
830
|
var _this = this;
|
|
831
831
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
832
|
-
return (0, exports.
|
|
832
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).listPartnerRelationTypes(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); });
|
|
833
833
|
};
|
|
834
834
|
/**
|
|
835
835
|
* List all partner relations
|
|
836
836
|
* @summary List partner relations
|
|
837
|
-
* @param {
|
|
837
|
+
* @param {PartnerRelationsApiListPartnerRelationsRequest} requestParameters Request parameters.
|
|
838
838
|
* @param {*} [options] Override http request option.
|
|
839
839
|
* @throws {RequiredError}
|
|
840
|
-
* @memberof
|
|
840
|
+
* @memberof PartnerRelationsApi
|
|
841
841
|
*/
|
|
842
|
-
|
|
842
|
+
PartnerRelationsApi.prototype.listPartnerRelations = function (requestParameters, options) {
|
|
843
843
|
var _this = this;
|
|
844
844
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
845
|
-
return (0, exports.
|
|
845
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).listPartnerRelations(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); });
|
|
846
846
|
};
|
|
847
847
|
/**
|
|
848
848
|
* Update a partner relation identified by its id
|
|
849
849
|
* @summary Update the partner relation
|
|
850
|
-
* @param {
|
|
850
|
+
* @param {PartnerRelationsApiUpdatePartnerRelationRequest} requestParameters Request parameters.
|
|
851
851
|
* @param {*} [options] Override http request option.
|
|
852
852
|
* @throws {RequiredError}
|
|
853
|
-
* @memberof
|
|
853
|
+
* @memberof PartnerRelationsApi
|
|
854
854
|
*/
|
|
855
|
-
|
|
855
|
+
PartnerRelationsApi.prototype.updatePartnerRelation = function (requestParameters, options) {
|
|
856
856
|
var _this = this;
|
|
857
|
-
return (0, exports.
|
|
857
|
+
return (0, exports.PartnerRelationsApiFp)(this.configuration).updatePartnerRelation(requestParameters.id, requestParameters.updatePartnerRelationRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
858
858
|
};
|
|
859
|
-
return
|
|
859
|
+
return PartnerRelationsApi;
|
|
860
860
|
}(base_1.BaseAPI));
|
|
861
|
-
exports.
|
|
861
|
+
exports.PartnerRelationsApi = PartnerRelationsApi;
|