@emilgroup/partner-sdk 1.7.0 → 1.8.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 +6 -6
- package/README.md +2 -2
- package/api/{partner-invitation-api.ts → partner-invitations-api.ts} +20 -20
- 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-version-api.ts → partner-versions-api.ts} +37 -37
- package/api/{partner-api.ts → partners-api.ts} +74 -74
- package/api.ts +12 -12
- package/dist/api/{partner-invitation-api.d.ts → partner-invitations-api.d.ts} +17 -17
- package/dist/api/{partner-invitation-api.js → partner-invitations-api.js} +23 -23
- 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-version-api.d.ts → partner-versions-api.d.ts} +33 -33
- package/dist/api/{partner-version-api.js → partner-versions-api.js} +27 -27
- package/dist/api/{partner-api.d.ts → partners-api.d.ts} +66 -66
- package/dist/api/{partner-api.js → partners-api.js} +43 -43
- package/dist/api.d.ts +6 -6
- package/dist/api.js +6 -6
- package/package.json +1 -1
|
@@ -33,10 +33,10 @@ import { ListTagsResponseClass } from '../models';
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { UpdateTagResponseClass } from '../models';
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* PartnerTagsApi - axios parameter creator
|
|
37
37
|
* @export
|
|
38
38
|
*/
|
|
39
|
-
export const
|
|
39
|
+
export const PartnerTagsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
42
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
@@ -300,11 +300,11 @@ export const PartnerTagApiAxiosParamCreator = function (configuration?: Configur
|
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
|
-
*
|
|
303
|
+
* PartnerTagsApi - functional programming interface
|
|
304
304
|
* @export
|
|
305
305
|
*/
|
|
306
|
-
export const
|
|
307
|
-
const localVarAxiosParamCreator =
|
|
306
|
+
export const PartnerTagsApiFp = function(configuration?: Configuration) {
|
|
307
|
+
const localVarAxiosParamCreator = PartnerTagsApiAxiosParamCreator(configuration)
|
|
308
308
|
return {
|
|
309
309
|
/**
|
|
310
310
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
@@ -376,11 +376,11 @@ export const PartnerTagApiFp = function(configuration?: Configuration) {
|
|
|
376
376
|
};
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
|
-
*
|
|
379
|
+
* PartnerTagsApi - factory interface
|
|
380
380
|
* @export
|
|
381
381
|
*/
|
|
382
|
-
export const
|
|
383
|
-
const localVarFp =
|
|
382
|
+
export const PartnerTagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
383
|
+
const localVarFp = PartnerTagsApiFp(configuration)
|
|
384
384
|
return {
|
|
385
385
|
/**
|
|
386
386
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
@@ -447,216 +447,216 @@ export const PartnerTagApiFactory = function (configuration?: Configuration, bas
|
|
|
447
447
|
};
|
|
448
448
|
|
|
449
449
|
/**
|
|
450
|
-
* Request parameters for createTag operation in
|
|
450
|
+
* Request parameters for createTag operation in PartnerTagsApi.
|
|
451
451
|
* @export
|
|
452
|
-
* @interface
|
|
452
|
+
* @interface PartnerTagsApiCreateTagRequest
|
|
453
453
|
*/
|
|
454
|
-
export interface
|
|
454
|
+
export interface PartnerTagsApiCreateTagRequest {
|
|
455
455
|
/**
|
|
456
456
|
*
|
|
457
457
|
* @type {CreateTagRequestDto}
|
|
458
|
-
* @memberof
|
|
458
|
+
* @memberof PartnerTagsApiCreateTag
|
|
459
459
|
*/
|
|
460
460
|
readonly createTagRequestDto: CreateTagRequestDto
|
|
461
461
|
|
|
462
462
|
/**
|
|
463
463
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
464
464
|
* @type {string}
|
|
465
|
-
* @memberof
|
|
465
|
+
* @memberof PartnerTagsApiCreateTag
|
|
466
466
|
*/
|
|
467
467
|
readonly authorization?: string
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
/**
|
|
471
|
-
* Request parameters for deleteTag operation in
|
|
471
|
+
* Request parameters for deleteTag operation in PartnerTagsApi.
|
|
472
472
|
* @export
|
|
473
|
-
* @interface
|
|
473
|
+
* @interface PartnerTagsApiDeleteTagRequest
|
|
474
474
|
*/
|
|
475
|
-
export interface
|
|
475
|
+
export interface PartnerTagsApiDeleteTagRequest {
|
|
476
476
|
/**
|
|
477
477
|
*
|
|
478
478
|
* @type {string}
|
|
479
|
-
* @memberof
|
|
479
|
+
* @memberof PartnerTagsApiDeleteTag
|
|
480
480
|
*/
|
|
481
481
|
readonly code: string
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
484
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
485
485
|
* @type {string}
|
|
486
|
-
* @memberof
|
|
486
|
+
* @memberof PartnerTagsApiDeleteTag
|
|
487
487
|
*/
|
|
488
488
|
readonly authorization?: string
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
/**
|
|
492
|
-
* Request parameters for getTag operation in
|
|
492
|
+
* Request parameters for getTag operation in PartnerTagsApi.
|
|
493
493
|
* @export
|
|
494
|
-
* @interface
|
|
494
|
+
* @interface PartnerTagsApiGetTagRequest
|
|
495
495
|
*/
|
|
496
|
-
export interface
|
|
496
|
+
export interface PartnerTagsApiGetTagRequest {
|
|
497
497
|
/**
|
|
498
498
|
* Unique identifier for the object.
|
|
499
499
|
* @type {string}
|
|
500
|
-
* @memberof
|
|
500
|
+
* @memberof PartnerTagsApiGetTag
|
|
501
501
|
*/
|
|
502
502
|
readonly code: string
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
505
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
506
506
|
* @type {string}
|
|
507
|
-
* @memberof
|
|
507
|
+
* @memberof PartnerTagsApiGetTag
|
|
508
508
|
*/
|
|
509
509
|
readonly authorization?: string
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
/**
|
|
513
|
-
* Request parameters for listTags operation in
|
|
513
|
+
* Request parameters for listTags operation in PartnerTagsApi.
|
|
514
514
|
* @export
|
|
515
|
-
* @interface
|
|
515
|
+
* @interface PartnerTagsApiListTagsRequest
|
|
516
516
|
*/
|
|
517
|
-
export interface
|
|
517
|
+
export interface PartnerTagsApiListTagsRequest {
|
|
518
518
|
/**
|
|
519
519
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
520
520
|
* @type {string}
|
|
521
|
-
* @memberof
|
|
521
|
+
* @memberof PartnerTagsApiListTags
|
|
522
522
|
*/
|
|
523
523
|
readonly authorization?: string
|
|
524
524
|
|
|
525
525
|
/**
|
|
526
526
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
527
527
|
* @type {any}
|
|
528
|
-
* @memberof
|
|
528
|
+
* @memberof PartnerTagsApiListTags
|
|
529
529
|
*/
|
|
530
530
|
readonly pageSize?: any
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
533
|
* 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.
|
|
534
534
|
* @type {any}
|
|
535
|
-
* @memberof
|
|
535
|
+
* @memberof PartnerTagsApiListTags
|
|
536
536
|
*/
|
|
537
537
|
readonly pageToken?: any
|
|
538
538
|
|
|
539
539
|
/**
|
|
540
540
|
* 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: code, slug, label</i>
|
|
541
541
|
* @type {string}
|
|
542
|
-
* @memberof
|
|
542
|
+
* @memberof PartnerTagsApiListTags
|
|
543
543
|
*/
|
|
544
544
|
readonly filter?: string
|
|
545
545
|
|
|
546
546
|
/**
|
|
547
547
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
548
548
|
* @type {any}
|
|
549
|
-
* @memberof
|
|
549
|
+
* @memberof PartnerTagsApiListTags
|
|
550
550
|
*/
|
|
551
551
|
readonly search?: any
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
554
|
* 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: code, slug, label, createdAt, updatedAt</i>
|
|
555
555
|
* @type {string}
|
|
556
|
-
* @memberof
|
|
556
|
+
* @memberof PartnerTagsApiListTags
|
|
557
557
|
*/
|
|
558
558
|
readonly order?: string
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
561
|
* 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>
|
|
562
562
|
* @type {string}
|
|
563
|
-
* @memberof
|
|
563
|
+
* @memberof PartnerTagsApiListTags
|
|
564
564
|
*/
|
|
565
565
|
readonly expand?: string
|
|
566
566
|
|
|
567
567
|
/**
|
|
568
568
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, slug, label</i>
|
|
569
569
|
* @type {string}
|
|
570
|
-
* @memberof
|
|
570
|
+
* @memberof PartnerTagsApiListTags
|
|
571
571
|
*/
|
|
572
572
|
readonly filters?: string
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
|
-
* Request parameters for updateTag operation in
|
|
576
|
+
* Request parameters for updateTag operation in PartnerTagsApi.
|
|
577
577
|
* @export
|
|
578
|
-
* @interface
|
|
578
|
+
* @interface PartnerTagsApiUpdateTagRequest
|
|
579
579
|
*/
|
|
580
|
-
export interface
|
|
580
|
+
export interface PartnerTagsApiUpdateTagRequest {
|
|
581
581
|
/**
|
|
582
582
|
*
|
|
583
583
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
584
|
+
* @memberof PartnerTagsApiUpdateTag
|
|
585
585
|
*/
|
|
586
586
|
readonly code: string
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
590
590
|
* @type {string}
|
|
591
|
-
* @memberof
|
|
591
|
+
* @memberof PartnerTagsApiUpdateTag
|
|
592
592
|
*/
|
|
593
593
|
readonly authorization?: string
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
|
-
*
|
|
597
|
+
* PartnerTagsApi - object-oriented interface
|
|
598
598
|
* @export
|
|
599
|
-
* @class
|
|
599
|
+
* @class PartnerTagsApi
|
|
600
600
|
* @extends {BaseAPI}
|
|
601
601
|
*/
|
|
602
|
-
export class
|
|
602
|
+
export class PartnerTagsApi extends BaseAPI {
|
|
603
603
|
/**
|
|
604
604
|
* This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
|
|
605
605
|
* @summary Create the partner tag
|
|
606
|
-
* @param {
|
|
606
|
+
* @param {PartnerTagsApiCreateTagRequest} requestParameters Request parameters.
|
|
607
607
|
* @param {*} [options] Override http request option.
|
|
608
608
|
* @throws {RequiredError}
|
|
609
|
-
* @memberof
|
|
609
|
+
* @memberof PartnerTagsApi
|
|
610
610
|
*/
|
|
611
|
-
public createTag(requestParameters:
|
|
612
|
-
return
|
|
611
|
+
public createTag(requestParameters: PartnerTagsApiCreateTagRequest, options?: AxiosRequestConfig) {
|
|
612
|
+
return PartnerTagsApiFp(this.configuration).createTag(requestParameters.createTagRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
/**
|
|
616
616
|
* Permanently deletes the partner tag. Supply the unique code that was returned when you created the partner tag and this will delete it.
|
|
617
617
|
* @summary Delete the partner tag
|
|
618
|
-
* @param {
|
|
618
|
+
* @param {PartnerTagsApiDeleteTagRequest} requestParameters Request parameters.
|
|
619
619
|
* @param {*} [options] Override http request option.
|
|
620
620
|
* @throws {RequiredError}
|
|
621
|
-
* @memberof
|
|
621
|
+
* @memberof PartnerTagsApi
|
|
622
622
|
*/
|
|
623
|
-
public deleteTag(requestParameters:
|
|
624
|
-
return
|
|
623
|
+
public deleteTag(requestParameters: PartnerTagsApiDeleteTagRequest, options?: AxiosRequestConfig) {
|
|
624
|
+
return PartnerTagsApiFp(this.configuration).deleteTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
/**
|
|
628
628
|
* Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code that was returned when you created it and Emil Api will return the corresponding partner tag information.
|
|
629
629
|
* @summary Retrieve the partner tag
|
|
630
|
-
* @param {
|
|
630
|
+
* @param {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
|
|
631
631
|
* @param {*} [options] Override http request option.
|
|
632
632
|
* @throws {RequiredError}
|
|
633
|
-
* @memberof
|
|
633
|
+
* @memberof PartnerTagsApi
|
|
634
634
|
*/
|
|
635
|
-
public getTag(requestParameters:
|
|
636
|
-
return
|
|
635
|
+
public getTag(requestParameters: PartnerTagsApiGetTagRequest, options?: AxiosRequestConfig) {
|
|
636
|
+
return PartnerTagsApiFp(this.configuration).getTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
/**
|
|
640
640
|
* Returns a list of partner tags you have previously created. The partner tags are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
641
641
|
* @summary List partner tags
|
|
642
|
-
* @param {
|
|
642
|
+
* @param {PartnerTagsApiListTagsRequest} requestParameters Request parameters.
|
|
643
643
|
* @param {*} [options] Override http request option.
|
|
644
644
|
* @throws {RequiredError}
|
|
645
|
-
* @memberof
|
|
645
|
+
* @memberof PartnerTagsApi
|
|
646
646
|
*/
|
|
647
|
-
public listTags(requestParameters:
|
|
648
|
-
return
|
|
647
|
+
public listTags(requestParameters: PartnerTagsApiListTagsRequest = {}, options?: AxiosRequestConfig) {
|
|
648
|
+
return PartnerTagsApiFp(this.configuration).listTags(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
/**
|
|
652
652
|
* Updates the specified partner tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
653
653
|
* @summary Update the partner tag
|
|
654
|
-
* @param {
|
|
654
|
+
* @param {PartnerTagsApiUpdateTagRequest} requestParameters Request parameters.
|
|
655
655
|
* @param {*} [options] Override http request option.
|
|
656
656
|
* @throws {RequiredError}
|
|
657
|
-
* @memberof
|
|
657
|
+
* @memberof PartnerTagsApi
|
|
658
658
|
*/
|
|
659
|
-
public updateTag(requestParameters:
|
|
660
|
-
return
|
|
659
|
+
public updateTag(requestParameters: PartnerTagsApiUpdateTagRequest, options?: AxiosRequestConfig) {
|
|
660
|
+
return PartnerTagsApiFp(this.configuration).updateTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
661
661
|
}
|
|
662
662
|
}
|
|
@@ -35,10 +35,10 @@ import { UpdatePartnerTypeRequestDto } from '../models';
|
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import { UpdatePartnerTypeResponseClass } from '../models';
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* PartnerTypesApi - axios parameter creator
|
|
39
39
|
* @export
|
|
40
40
|
*/
|
|
41
|
-
export const
|
|
41
|
+
export const PartnerTypesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
42
|
return {
|
|
43
43
|
/**
|
|
44
44
|
* This will create a partner type.
|
|
@@ -313,11 +313,11 @@ export const PartnerTypeApiAxiosParamCreator = function (configuration?: Configu
|
|
|
313
313
|
};
|
|
314
314
|
|
|
315
315
|
/**
|
|
316
|
-
*
|
|
316
|
+
* PartnerTypesApi - functional programming interface
|
|
317
317
|
* @export
|
|
318
318
|
*/
|
|
319
|
-
export const
|
|
320
|
-
const localVarAxiosParamCreator =
|
|
319
|
+
export const PartnerTypesApiFp = function(configuration?: Configuration) {
|
|
320
|
+
const localVarAxiosParamCreator = PartnerTypesApiAxiosParamCreator(configuration)
|
|
321
321
|
return {
|
|
322
322
|
/**
|
|
323
323
|
* This will create a partner type.
|
|
@@ -391,11 +391,11 @@ export const PartnerTypeApiFp = function(configuration?: Configuration) {
|
|
|
391
391
|
};
|
|
392
392
|
|
|
393
393
|
/**
|
|
394
|
-
*
|
|
394
|
+
* PartnerTypesApi - factory interface
|
|
395
395
|
* @export
|
|
396
396
|
*/
|
|
397
|
-
export const
|
|
398
|
-
const localVarFp =
|
|
397
|
+
export const PartnerTypesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
398
|
+
const localVarFp = PartnerTypesApiFp(configuration)
|
|
399
399
|
return {
|
|
400
400
|
/**
|
|
401
401
|
* This will create a partner type.
|
|
@@ -464,230 +464,230 @@ export const PartnerTypeApiFactory = function (configuration?: Configuration, ba
|
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
/**
|
|
467
|
-
* Request parameters for createPartnerType operation in
|
|
467
|
+
* Request parameters for createPartnerType operation in PartnerTypesApi.
|
|
468
468
|
* @export
|
|
469
|
-
* @interface
|
|
469
|
+
* @interface PartnerTypesApiCreatePartnerTypeRequest
|
|
470
470
|
*/
|
|
471
|
-
export interface
|
|
471
|
+
export interface PartnerTypesApiCreatePartnerTypeRequest {
|
|
472
472
|
/**
|
|
473
473
|
*
|
|
474
474
|
* @type {CreatePartnerTypeRequestDto}
|
|
475
|
-
* @memberof
|
|
475
|
+
* @memberof PartnerTypesApiCreatePartnerType
|
|
476
476
|
*/
|
|
477
477
|
readonly createPartnerTypeRequestDto: CreatePartnerTypeRequestDto
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
480
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
481
481
|
* @type {string}
|
|
482
|
-
* @memberof
|
|
482
|
+
* @memberof PartnerTypesApiCreatePartnerType
|
|
483
483
|
*/
|
|
484
484
|
readonly authorization?: string
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
/**
|
|
488
|
-
* Request parameters for deletePartnerType operation in
|
|
488
|
+
* Request parameters for deletePartnerType operation in PartnerTypesApi.
|
|
489
489
|
* @export
|
|
490
|
-
* @interface
|
|
490
|
+
* @interface PartnerTypesApiDeletePartnerTypeRequest
|
|
491
491
|
*/
|
|
492
|
-
export interface
|
|
492
|
+
export interface PartnerTypesApiDeletePartnerTypeRequest {
|
|
493
493
|
/**
|
|
494
494
|
*
|
|
495
495
|
* @type {string}
|
|
496
|
-
* @memberof
|
|
496
|
+
* @memberof PartnerTypesApiDeletePartnerType
|
|
497
497
|
*/
|
|
498
498
|
readonly code: string
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
501
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
502
502
|
* @type {string}
|
|
503
|
-
* @memberof
|
|
503
|
+
* @memberof PartnerTypesApiDeletePartnerType
|
|
504
504
|
*/
|
|
505
505
|
readonly authorization?: string
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
|
-
* Request parameters for getPartnerType operation in
|
|
509
|
+
* Request parameters for getPartnerType operation in PartnerTypesApi.
|
|
510
510
|
* @export
|
|
511
|
-
* @interface
|
|
511
|
+
* @interface PartnerTypesApiGetPartnerTypeRequest
|
|
512
512
|
*/
|
|
513
|
-
export interface
|
|
513
|
+
export interface PartnerTypesApiGetPartnerTypeRequest {
|
|
514
514
|
/**
|
|
515
515
|
* Unique identifier for the object.
|
|
516
516
|
* @type {string}
|
|
517
|
-
* @memberof
|
|
517
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
518
518
|
*/
|
|
519
519
|
readonly code: string
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
522
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
523
|
* @type {string}
|
|
524
|
-
* @memberof
|
|
524
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
525
525
|
*/
|
|
526
526
|
readonly authorization?: string
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
*
|
|
530
530
|
* @type {any}
|
|
531
|
-
* @memberof
|
|
531
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
532
532
|
*/
|
|
533
533
|
readonly expand?: any
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
/**
|
|
537
|
-
* Request parameters for listPartnerTypes operation in
|
|
537
|
+
* Request parameters for listPartnerTypes operation in PartnerTypesApi.
|
|
538
538
|
* @export
|
|
539
|
-
* @interface
|
|
539
|
+
* @interface PartnerTypesApiListPartnerTypesRequest
|
|
540
540
|
*/
|
|
541
|
-
export interface
|
|
541
|
+
export interface PartnerTypesApiListPartnerTypesRequest {
|
|
542
542
|
/**
|
|
543
543
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
544
544
|
* @type {string}
|
|
545
|
-
* @memberof
|
|
545
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
546
546
|
*/
|
|
547
547
|
readonly authorization?: string
|
|
548
548
|
|
|
549
549
|
/**
|
|
550
550
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
551
551
|
* @type {any}
|
|
552
|
-
* @memberof
|
|
552
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
553
553
|
*/
|
|
554
554
|
readonly pageSize?: any
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
557
|
* 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.
|
|
558
558
|
* @type {any}
|
|
559
|
-
* @memberof
|
|
559
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
560
560
|
*/
|
|
561
561
|
readonly pageToken?: any
|
|
562
562
|
|
|
563
563
|
/**
|
|
564
564
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
565
565
|
* @type {any}
|
|
566
|
-
* @memberof
|
|
566
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
567
567
|
*/
|
|
568
568
|
readonly filter?: any
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
572
572
|
* @type {any}
|
|
573
|
-
* @memberof
|
|
573
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
574
574
|
*/
|
|
575
575
|
readonly search?: any
|
|
576
576
|
|
|
577
577
|
/**
|
|
578
578
|
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
579
579
|
* @type {any}
|
|
580
|
-
* @memberof
|
|
580
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
581
581
|
*/
|
|
582
582
|
readonly order?: any
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
586
586
|
* @type {any}
|
|
587
|
-
* @memberof
|
|
587
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
588
588
|
*/
|
|
589
589
|
readonly expand?: any
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
593
593
|
* @type {any}
|
|
594
|
-
* @memberof
|
|
594
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
595
595
|
*/
|
|
596
596
|
readonly filters?: any
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
/**
|
|
600
|
-
* Request parameters for updatePartnerType operation in
|
|
600
|
+
* Request parameters for updatePartnerType operation in PartnerTypesApi.
|
|
601
601
|
* @export
|
|
602
|
-
* @interface
|
|
602
|
+
* @interface PartnerTypesApiUpdatePartnerTypeRequest
|
|
603
603
|
*/
|
|
604
|
-
export interface
|
|
604
|
+
export interface PartnerTypesApiUpdatePartnerTypeRequest {
|
|
605
605
|
/**
|
|
606
606
|
* Unique identifier for the object.
|
|
607
607
|
* @type {string}
|
|
608
|
-
* @memberof
|
|
608
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
609
609
|
*/
|
|
610
610
|
readonly code: string
|
|
611
611
|
|
|
612
612
|
/**
|
|
613
613
|
*
|
|
614
614
|
* @type {UpdatePartnerTypeRequestDto}
|
|
615
|
-
* @memberof
|
|
615
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
616
616
|
*/
|
|
617
617
|
readonly updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
620
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
621
621
|
* @type {string}
|
|
622
|
-
* @memberof
|
|
622
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
623
623
|
*/
|
|
624
624
|
readonly authorization?: string
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
/**
|
|
628
|
-
*
|
|
628
|
+
* PartnerTypesApi - object-oriented interface
|
|
629
629
|
* @export
|
|
630
|
-
* @class
|
|
630
|
+
* @class PartnerTypesApi
|
|
631
631
|
* @extends {BaseAPI}
|
|
632
632
|
*/
|
|
633
|
-
export class
|
|
633
|
+
export class PartnerTypesApi extends BaseAPI {
|
|
634
634
|
/**
|
|
635
635
|
* This will create a partner type.
|
|
636
636
|
* @summary Create the partner-types
|
|
637
|
-
* @param {
|
|
637
|
+
* @param {PartnerTypesApiCreatePartnerTypeRequest} requestParameters Request parameters.
|
|
638
638
|
* @param {*} [options] Override http request option.
|
|
639
639
|
* @throws {RequiredError}
|
|
640
|
-
* @memberof
|
|
640
|
+
* @memberof PartnerTypesApi
|
|
641
641
|
*/
|
|
642
|
-
public createPartnerType(requestParameters:
|
|
643
|
-
return
|
|
642
|
+
public createPartnerType(requestParameters: PartnerTypesApiCreatePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
643
|
+
return PartnerTypesApiFp(this.configuration).createPartnerType(requestParameters.createPartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
/**
|
|
647
647
|
* Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
|
|
648
648
|
* @summary Delete the partner-types
|
|
649
|
-
* @param {
|
|
649
|
+
* @param {PartnerTypesApiDeletePartnerTypeRequest} requestParameters Request parameters.
|
|
650
650
|
* @param {*} [options] Override http request option.
|
|
651
651
|
* @throws {RequiredError}
|
|
652
|
-
* @memberof
|
|
652
|
+
* @memberof PartnerTypesApi
|
|
653
653
|
*/
|
|
654
|
-
public deletePartnerType(requestParameters:
|
|
655
|
-
return
|
|
654
|
+
public deletePartnerType(requestParameters: PartnerTypesApiDeletePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
655
|
+
return PartnerTypesApiFp(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
659
|
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
660
660
|
* @summary Retrieve the partner-types
|
|
661
|
-
* @param {
|
|
661
|
+
* @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
663
663
|
* @throws {RequiredError}
|
|
664
|
-
* @memberof
|
|
664
|
+
* @memberof PartnerTypesApi
|
|
665
665
|
*/
|
|
666
|
-
public getPartnerType(requestParameters:
|
|
667
|
-
return
|
|
666
|
+
public getPartnerType(requestParameters: PartnerTypesApiGetPartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
667
|
+
return PartnerTypesApiFp(this.configuration).getPartnerType(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
668
668
|
}
|
|
669
669
|
|
|
670
670
|
/**
|
|
671
671
|
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
672
672
|
* @summary List partner-types
|
|
673
|
-
* @param {
|
|
673
|
+
* @param {PartnerTypesApiListPartnerTypesRequest} requestParameters Request parameters.
|
|
674
674
|
* @param {*} [options] Override http request option.
|
|
675
675
|
* @throws {RequiredError}
|
|
676
|
-
* @memberof
|
|
676
|
+
* @memberof PartnerTypesApi
|
|
677
677
|
*/
|
|
678
|
-
public listPartnerTypes(requestParameters:
|
|
679
|
-
return
|
|
678
|
+
public listPartnerTypes(requestParameters: PartnerTypesApiListPartnerTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
679
|
+
return PartnerTypesApiFp(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
/**
|
|
683
683
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
684
684
|
* @summary Update the partner-types
|
|
685
|
-
* @param {
|
|
685
|
+
* @param {PartnerTypesApiUpdatePartnerTypeRequest} requestParameters Request parameters.
|
|
686
686
|
* @param {*} [options] Override http request option.
|
|
687
687
|
* @throws {RequiredError}
|
|
688
|
-
* @memberof
|
|
688
|
+
* @memberof PartnerTypesApi
|
|
689
689
|
*/
|
|
690
|
-
public updatePartnerType(requestParameters:
|
|
691
|
-
return
|
|
690
|
+
public updatePartnerType(requestParameters: PartnerTypesApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
691
|
+
return PartnerTypesApiFp(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
692
692
|
}
|
|
693
693
|
}
|