@emilgroup/partner-sdk-node 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
|
@@ -37,10 +37,10 @@ import { UpdateTagResponseClass } from '../models';
|
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
38
38
|
const FormData = require('form-data');
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* PartnerTagsApi - axios parameter creator
|
|
41
41
|
* @export
|
|
42
42
|
*/
|
|
43
|
-
export const
|
|
43
|
+
export const PartnerTagsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
44
|
return {
|
|
45
45
|
/**
|
|
46
46
|
* 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.
|
|
@@ -304,11 +304,11 @@ export const PartnerTagApiAxiosParamCreator = function (configuration?: Configur
|
|
|
304
304
|
};
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
|
-
*
|
|
307
|
+
* PartnerTagsApi - functional programming interface
|
|
308
308
|
* @export
|
|
309
309
|
*/
|
|
310
|
-
export const
|
|
311
|
-
const localVarAxiosParamCreator =
|
|
310
|
+
export const PartnerTagsApiFp = function(configuration?: Configuration) {
|
|
311
|
+
const localVarAxiosParamCreator = PartnerTagsApiAxiosParamCreator(configuration)
|
|
312
312
|
return {
|
|
313
313
|
/**
|
|
314
314
|
* 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.
|
|
@@ -380,11 +380,11 @@ export const PartnerTagApiFp = function(configuration?: Configuration) {
|
|
|
380
380
|
};
|
|
381
381
|
|
|
382
382
|
/**
|
|
383
|
-
*
|
|
383
|
+
* PartnerTagsApi - factory interface
|
|
384
384
|
* @export
|
|
385
385
|
*/
|
|
386
|
-
export const
|
|
387
|
-
const localVarFp =
|
|
386
|
+
export const PartnerTagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
387
|
+
const localVarFp = PartnerTagsApiFp(configuration)
|
|
388
388
|
return {
|
|
389
389
|
/**
|
|
390
390
|
* 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.
|
|
@@ -451,216 +451,216 @@ export const PartnerTagApiFactory = function (configuration?: Configuration, bas
|
|
|
451
451
|
};
|
|
452
452
|
|
|
453
453
|
/**
|
|
454
|
-
* Request parameters for createTag operation in
|
|
454
|
+
* Request parameters for createTag operation in PartnerTagsApi.
|
|
455
455
|
* @export
|
|
456
|
-
* @interface
|
|
456
|
+
* @interface PartnerTagsApiCreateTagRequest
|
|
457
457
|
*/
|
|
458
|
-
export interface
|
|
458
|
+
export interface PartnerTagsApiCreateTagRequest {
|
|
459
459
|
/**
|
|
460
460
|
*
|
|
461
461
|
* @type {CreateTagRequestDto}
|
|
462
|
-
* @memberof
|
|
462
|
+
* @memberof PartnerTagsApiCreateTag
|
|
463
463
|
*/
|
|
464
464
|
readonly createTagRequestDto: CreateTagRequestDto
|
|
465
465
|
|
|
466
466
|
/**
|
|
467
467
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
468
468
|
* @type {string}
|
|
469
|
-
* @memberof
|
|
469
|
+
* @memberof PartnerTagsApiCreateTag
|
|
470
470
|
*/
|
|
471
471
|
readonly authorization?: string
|
|
472
472
|
}
|
|
473
473
|
|
|
474
474
|
/**
|
|
475
|
-
* Request parameters for deleteTag operation in
|
|
475
|
+
* Request parameters for deleteTag operation in PartnerTagsApi.
|
|
476
476
|
* @export
|
|
477
|
-
* @interface
|
|
477
|
+
* @interface PartnerTagsApiDeleteTagRequest
|
|
478
478
|
*/
|
|
479
|
-
export interface
|
|
479
|
+
export interface PartnerTagsApiDeleteTagRequest {
|
|
480
480
|
/**
|
|
481
481
|
*
|
|
482
482
|
* @type {string}
|
|
483
|
-
* @memberof
|
|
483
|
+
* @memberof PartnerTagsApiDeleteTag
|
|
484
484
|
*/
|
|
485
485
|
readonly code: string
|
|
486
486
|
|
|
487
487
|
/**
|
|
488
488
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
489
489
|
* @type {string}
|
|
490
|
-
* @memberof
|
|
490
|
+
* @memberof PartnerTagsApiDeleteTag
|
|
491
491
|
*/
|
|
492
492
|
readonly authorization?: string
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
/**
|
|
496
|
-
* Request parameters for getTag operation in
|
|
496
|
+
* Request parameters for getTag operation in PartnerTagsApi.
|
|
497
497
|
* @export
|
|
498
|
-
* @interface
|
|
498
|
+
* @interface PartnerTagsApiGetTagRequest
|
|
499
499
|
*/
|
|
500
|
-
export interface
|
|
500
|
+
export interface PartnerTagsApiGetTagRequest {
|
|
501
501
|
/**
|
|
502
502
|
* Unique identifier for the object.
|
|
503
503
|
* @type {string}
|
|
504
|
-
* @memberof
|
|
504
|
+
* @memberof PartnerTagsApiGetTag
|
|
505
505
|
*/
|
|
506
506
|
readonly code: string
|
|
507
507
|
|
|
508
508
|
/**
|
|
509
509
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
510
510
|
* @type {string}
|
|
511
|
-
* @memberof
|
|
511
|
+
* @memberof PartnerTagsApiGetTag
|
|
512
512
|
*/
|
|
513
513
|
readonly authorization?: string
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
/**
|
|
517
|
-
* Request parameters for listTags operation in
|
|
517
|
+
* Request parameters for listTags operation in PartnerTagsApi.
|
|
518
518
|
* @export
|
|
519
|
-
* @interface
|
|
519
|
+
* @interface PartnerTagsApiListTagsRequest
|
|
520
520
|
*/
|
|
521
|
-
export interface
|
|
521
|
+
export interface PartnerTagsApiListTagsRequest {
|
|
522
522
|
/**
|
|
523
523
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
524
524
|
* @type {string}
|
|
525
|
-
* @memberof
|
|
525
|
+
* @memberof PartnerTagsApiListTags
|
|
526
526
|
*/
|
|
527
527
|
readonly authorization?: string
|
|
528
528
|
|
|
529
529
|
/**
|
|
530
530
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
531
531
|
* @type {any}
|
|
532
|
-
* @memberof
|
|
532
|
+
* @memberof PartnerTagsApiListTags
|
|
533
533
|
*/
|
|
534
534
|
readonly pageSize?: any
|
|
535
535
|
|
|
536
536
|
/**
|
|
537
537
|
* 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.
|
|
538
538
|
* @type {any}
|
|
539
|
-
* @memberof
|
|
539
|
+
* @memberof PartnerTagsApiListTags
|
|
540
540
|
*/
|
|
541
541
|
readonly pageToken?: any
|
|
542
542
|
|
|
543
543
|
/**
|
|
544
544
|
* 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>
|
|
545
545
|
* @type {string}
|
|
546
|
-
* @memberof
|
|
546
|
+
* @memberof PartnerTagsApiListTags
|
|
547
547
|
*/
|
|
548
548
|
readonly filter?: string
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
551
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
552
552
|
* @type {any}
|
|
553
|
-
* @memberof
|
|
553
|
+
* @memberof PartnerTagsApiListTags
|
|
554
554
|
*/
|
|
555
555
|
readonly search?: any
|
|
556
556
|
|
|
557
557
|
/**
|
|
558
558
|
* 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>
|
|
559
559
|
* @type {string}
|
|
560
|
-
* @memberof
|
|
560
|
+
* @memberof PartnerTagsApiListTags
|
|
561
561
|
*/
|
|
562
562
|
readonly order?: string
|
|
563
563
|
|
|
564
564
|
/**
|
|
565
565
|
* 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>
|
|
566
566
|
* @type {string}
|
|
567
|
-
* @memberof
|
|
567
|
+
* @memberof PartnerTagsApiListTags
|
|
568
568
|
*/
|
|
569
569
|
readonly expand?: string
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
572
|
* 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>
|
|
573
573
|
* @type {string}
|
|
574
|
-
* @memberof
|
|
574
|
+
* @memberof PartnerTagsApiListTags
|
|
575
575
|
*/
|
|
576
576
|
readonly filters?: string
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
/**
|
|
580
|
-
* Request parameters for updateTag operation in
|
|
580
|
+
* Request parameters for updateTag operation in PartnerTagsApi.
|
|
581
581
|
* @export
|
|
582
|
-
* @interface
|
|
582
|
+
* @interface PartnerTagsApiUpdateTagRequest
|
|
583
583
|
*/
|
|
584
|
-
export interface
|
|
584
|
+
export interface PartnerTagsApiUpdateTagRequest {
|
|
585
585
|
/**
|
|
586
586
|
*
|
|
587
587
|
* @type {string}
|
|
588
|
-
* @memberof
|
|
588
|
+
* @memberof PartnerTagsApiUpdateTag
|
|
589
589
|
*/
|
|
590
590
|
readonly code: string
|
|
591
591
|
|
|
592
592
|
/**
|
|
593
593
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
594
594
|
* @type {string}
|
|
595
|
-
* @memberof
|
|
595
|
+
* @memberof PartnerTagsApiUpdateTag
|
|
596
596
|
*/
|
|
597
597
|
readonly authorization?: string
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
/**
|
|
601
|
-
*
|
|
601
|
+
* PartnerTagsApi - object-oriented interface
|
|
602
602
|
* @export
|
|
603
|
-
* @class
|
|
603
|
+
* @class PartnerTagsApi
|
|
604
604
|
* @extends {BaseAPI}
|
|
605
605
|
*/
|
|
606
|
-
export class
|
|
606
|
+
export class PartnerTagsApi extends BaseAPI {
|
|
607
607
|
/**
|
|
608
608
|
* 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.
|
|
609
609
|
* @summary Create the partner tag
|
|
610
|
-
* @param {
|
|
610
|
+
* @param {PartnerTagsApiCreateTagRequest} requestParameters Request parameters.
|
|
611
611
|
* @param {*} [options] Override http request option.
|
|
612
612
|
* @throws {RequiredError}
|
|
613
|
-
* @memberof
|
|
613
|
+
* @memberof PartnerTagsApi
|
|
614
614
|
*/
|
|
615
|
-
public createTag(requestParameters:
|
|
616
|
-
return
|
|
615
|
+
public createTag(requestParameters: PartnerTagsApiCreateTagRequest, options?: AxiosRequestConfig) {
|
|
616
|
+
return PartnerTagsApiFp(this.configuration).createTag(requestParameters.createTagRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
620
|
* Permanently deletes the partner tag. Supply the unique code that was returned when you created the partner tag and this will delete it.
|
|
621
621
|
* @summary Delete the partner tag
|
|
622
|
-
* @param {
|
|
622
|
+
* @param {PartnerTagsApiDeleteTagRequest} requestParameters Request parameters.
|
|
623
623
|
* @param {*} [options] Override http request option.
|
|
624
624
|
* @throws {RequiredError}
|
|
625
|
-
* @memberof
|
|
625
|
+
* @memberof PartnerTagsApi
|
|
626
626
|
*/
|
|
627
|
-
public deleteTag(requestParameters:
|
|
628
|
-
return
|
|
627
|
+
public deleteTag(requestParameters: PartnerTagsApiDeleteTagRequest, options?: AxiosRequestConfig) {
|
|
628
|
+
return PartnerTagsApiFp(this.configuration).deleteTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
/**
|
|
632
632
|
* 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.
|
|
633
633
|
* @summary Retrieve the partner tag
|
|
634
|
-
* @param {
|
|
634
|
+
* @param {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
|
|
635
635
|
* @param {*} [options] Override http request option.
|
|
636
636
|
* @throws {RequiredError}
|
|
637
|
-
* @memberof
|
|
637
|
+
* @memberof PartnerTagsApi
|
|
638
638
|
*/
|
|
639
|
-
public getTag(requestParameters:
|
|
640
|
-
return
|
|
639
|
+
public getTag(requestParameters: PartnerTagsApiGetTagRequest, options?: AxiosRequestConfig) {
|
|
640
|
+
return PartnerTagsApiFp(this.configuration).getTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
/**
|
|
644
644
|
* 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.
|
|
645
645
|
* @summary List partner tags
|
|
646
|
-
* @param {
|
|
646
|
+
* @param {PartnerTagsApiListTagsRequest} requestParameters Request parameters.
|
|
647
647
|
* @param {*} [options] Override http request option.
|
|
648
648
|
* @throws {RequiredError}
|
|
649
|
-
* @memberof
|
|
649
|
+
* @memberof PartnerTagsApi
|
|
650
650
|
*/
|
|
651
|
-
public listTags(requestParameters:
|
|
652
|
-
return
|
|
651
|
+
public listTags(requestParameters: PartnerTagsApiListTagsRequest = {}, options?: AxiosRequestConfig) {
|
|
652
|
+
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));
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
/**
|
|
656
656
|
* Updates the specified partner tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
657
657
|
* @summary Update the partner tag
|
|
658
|
-
* @param {
|
|
658
|
+
* @param {PartnerTagsApiUpdateTagRequest} requestParameters Request parameters.
|
|
659
659
|
* @param {*} [options] Override http request option.
|
|
660
660
|
* @throws {RequiredError}
|
|
661
|
-
* @memberof
|
|
661
|
+
* @memberof PartnerTagsApi
|
|
662
662
|
*/
|
|
663
|
-
public updateTag(requestParameters:
|
|
664
|
-
return
|
|
663
|
+
public updateTag(requestParameters: PartnerTagsApiUpdateTagRequest, options?: AxiosRequestConfig) {
|
|
664
|
+
return PartnerTagsApiFp(this.configuration).updateTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
665
665
|
}
|
|
666
666
|
}
|
|
@@ -39,10 +39,10 @@ import { UpdatePartnerTypeResponseClass } from '../models';
|
|
|
39
39
|
import { URL, URLSearchParams } from 'url';
|
|
40
40
|
const FormData = require('form-data');
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* PartnerTypesApi - axios parameter creator
|
|
43
43
|
* @export
|
|
44
44
|
*/
|
|
45
|
-
export const
|
|
45
|
+
export const PartnerTypesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
46
46
|
return {
|
|
47
47
|
/**
|
|
48
48
|
* This will create a partner type.
|
|
@@ -317,11 +317,11 @@ export const PartnerTypeApiAxiosParamCreator = function (configuration?: Configu
|
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
*
|
|
320
|
+
* PartnerTypesApi - functional programming interface
|
|
321
321
|
* @export
|
|
322
322
|
*/
|
|
323
|
-
export const
|
|
324
|
-
const localVarAxiosParamCreator =
|
|
323
|
+
export const PartnerTypesApiFp = function(configuration?: Configuration) {
|
|
324
|
+
const localVarAxiosParamCreator = PartnerTypesApiAxiosParamCreator(configuration)
|
|
325
325
|
return {
|
|
326
326
|
/**
|
|
327
327
|
* This will create a partner type.
|
|
@@ -395,11 +395,11 @@ export const PartnerTypeApiFp = function(configuration?: Configuration) {
|
|
|
395
395
|
};
|
|
396
396
|
|
|
397
397
|
/**
|
|
398
|
-
*
|
|
398
|
+
* PartnerTypesApi - factory interface
|
|
399
399
|
* @export
|
|
400
400
|
*/
|
|
401
|
-
export const
|
|
402
|
-
const localVarFp =
|
|
401
|
+
export const PartnerTypesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
402
|
+
const localVarFp = PartnerTypesApiFp(configuration)
|
|
403
403
|
return {
|
|
404
404
|
/**
|
|
405
405
|
* This will create a partner type.
|
|
@@ -468,230 +468,230 @@ export const PartnerTypeApiFactory = function (configuration?: Configuration, ba
|
|
|
468
468
|
};
|
|
469
469
|
|
|
470
470
|
/**
|
|
471
|
-
* Request parameters for createPartnerType operation in
|
|
471
|
+
* Request parameters for createPartnerType operation in PartnerTypesApi.
|
|
472
472
|
* @export
|
|
473
|
-
* @interface
|
|
473
|
+
* @interface PartnerTypesApiCreatePartnerTypeRequest
|
|
474
474
|
*/
|
|
475
|
-
export interface
|
|
475
|
+
export interface PartnerTypesApiCreatePartnerTypeRequest {
|
|
476
476
|
/**
|
|
477
477
|
*
|
|
478
478
|
* @type {CreatePartnerTypeRequestDto}
|
|
479
|
-
* @memberof
|
|
479
|
+
* @memberof PartnerTypesApiCreatePartnerType
|
|
480
480
|
*/
|
|
481
481
|
readonly createPartnerTypeRequestDto: CreatePartnerTypeRequestDto
|
|
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 PartnerTypesApiCreatePartnerType
|
|
487
487
|
*/
|
|
488
488
|
readonly authorization?: string
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
/**
|
|
492
|
-
* Request parameters for deletePartnerType operation in
|
|
492
|
+
* Request parameters for deletePartnerType operation in PartnerTypesApi.
|
|
493
493
|
* @export
|
|
494
|
-
* @interface
|
|
494
|
+
* @interface PartnerTypesApiDeletePartnerTypeRequest
|
|
495
495
|
*/
|
|
496
|
-
export interface
|
|
496
|
+
export interface PartnerTypesApiDeletePartnerTypeRequest {
|
|
497
497
|
/**
|
|
498
498
|
*
|
|
499
499
|
* @type {string}
|
|
500
|
-
* @memberof
|
|
500
|
+
* @memberof PartnerTypesApiDeletePartnerType
|
|
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 PartnerTypesApiDeletePartnerType
|
|
508
508
|
*/
|
|
509
509
|
readonly authorization?: string
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
/**
|
|
513
|
-
* Request parameters for getPartnerType operation in
|
|
513
|
+
* Request parameters for getPartnerType operation in PartnerTypesApi.
|
|
514
514
|
* @export
|
|
515
|
-
* @interface
|
|
515
|
+
* @interface PartnerTypesApiGetPartnerTypeRequest
|
|
516
516
|
*/
|
|
517
|
-
export interface
|
|
517
|
+
export interface PartnerTypesApiGetPartnerTypeRequest {
|
|
518
518
|
/**
|
|
519
519
|
* Unique identifier for the object.
|
|
520
520
|
* @type {string}
|
|
521
|
-
* @memberof
|
|
521
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
522
522
|
*/
|
|
523
523
|
readonly code: string
|
|
524
524
|
|
|
525
525
|
/**
|
|
526
526
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
527
527
|
* @type {string}
|
|
528
|
-
* @memberof
|
|
528
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
529
529
|
*/
|
|
530
530
|
readonly authorization?: string
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
533
|
*
|
|
534
534
|
* @type {any}
|
|
535
|
-
* @memberof
|
|
535
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
536
536
|
*/
|
|
537
537
|
readonly expand?: any
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
/**
|
|
541
|
-
* Request parameters for listPartnerTypes operation in
|
|
541
|
+
* Request parameters for listPartnerTypes operation in PartnerTypesApi.
|
|
542
542
|
* @export
|
|
543
|
-
* @interface
|
|
543
|
+
* @interface PartnerTypesApiListPartnerTypesRequest
|
|
544
544
|
*/
|
|
545
|
-
export interface
|
|
545
|
+
export interface PartnerTypesApiListPartnerTypesRequest {
|
|
546
546
|
/**
|
|
547
547
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
548
548
|
* @type {string}
|
|
549
|
-
* @memberof
|
|
549
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
550
550
|
*/
|
|
551
551
|
readonly authorization?: string
|
|
552
552
|
|
|
553
553
|
/**
|
|
554
554
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
555
555
|
* @type {any}
|
|
556
|
-
* @memberof
|
|
556
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
557
557
|
*/
|
|
558
558
|
readonly pageSize?: any
|
|
559
559
|
|
|
560
560
|
/**
|
|
561
561
|
* 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.
|
|
562
562
|
* @type {any}
|
|
563
|
-
* @memberof
|
|
563
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
564
564
|
*/
|
|
565
565
|
readonly pageToken?: any
|
|
566
566
|
|
|
567
567
|
/**
|
|
568
568
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
569
569
|
* @type {any}
|
|
570
|
-
* @memberof
|
|
570
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
571
571
|
*/
|
|
572
572
|
readonly filter?: any
|
|
573
573
|
|
|
574
574
|
/**
|
|
575
575
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
576
576
|
* @type {any}
|
|
577
|
-
* @memberof
|
|
577
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
578
578
|
*/
|
|
579
579
|
readonly search?: any
|
|
580
580
|
|
|
581
581
|
/**
|
|
582
582
|
* 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.
|
|
583
583
|
* @type {any}
|
|
584
|
-
* @memberof
|
|
584
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
585
585
|
*/
|
|
586
586
|
readonly order?: any
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
* 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.
|
|
590
590
|
* @type {any}
|
|
591
|
-
* @memberof
|
|
591
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
592
592
|
*/
|
|
593
593
|
readonly expand?: any
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* 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.
|
|
597
597
|
* @type {any}
|
|
598
|
-
* @memberof
|
|
598
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
599
599
|
*/
|
|
600
600
|
readonly filters?: any
|
|
601
601
|
}
|
|
602
602
|
|
|
603
603
|
/**
|
|
604
|
-
* Request parameters for updatePartnerType operation in
|
|
604
|
+
* Request parameters for updatePartnerType operation in PartnerTypesApi.
|
|
605
605
|
* @export
|
|
606
|
-
* @interface
|
|
606
|
+
* @interface PartnerTypesApiUpdatePartnerTypeRequest
|
|
607
607
|
*/
|
|
608
|
-
export interface
|
|
608
|
+
export interface PartnerTypesApiUpdatePartnerTypeRequest {
|
|
609
609
|
/**
|
|
610
610
|
* Unique identifier for the object.
|
|
611
611
|
* @type {string}
|
|
612
|
-
* @memberof
|
|
612
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
613
613
|
*/
|
|
614
614
|
readonly code: string
|
|
615
615
|
|
|
616
616
|
/**
|
|
617
617
|
*
|
|
618
618
|
* @type {UpdatePartnerTypeRequestDto}
|
|
619
|
-
* @memberof
|
|
619
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
620
620
|
*/
|
|
621
621
|
readonly updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
624
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
625
625
|
* @type {string}
|
|
626
|
-
* @memberof
|
|
626
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
627
627
|
*/
|
|
628
628
|
readonly authorization?: string
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
/**
|
|
632
|
-
*
|
|
632
|
+
* PartnerTypesApi - object-oriented interface
|
|
633
633
|
* @export
|
|
634
|
-
* @class
|
|
634
|
+
* @class PartnerTypesApi
|
|
635
635
|
* @extends {BaseAPI}
|
|
636
636
|
*/
|
|
637
|
-
export class
|
|
637
|
+
export class PartnerTypesApi extends BaseAPI {
|
|
638
638
|
/**
|
|
639
639
|
* This will create a partner type.
|
|
640
640
|
* @summary Create the partner-types
|
|
641
|
-
* @param {
|
|
641
|
+
* @param {PartnerTypesApiCreatePartnerTypeRequest} requestParameters Request parameters.
|
|
642
642
|
* @param {*} [options] Override http request option.
|
|
643
643
|
* @throws {RequiredError}
|
|
644
|
-
* @memberof
|
|
644
|
+
* @memberof PartnerTypesApi
|
|
645
645
|
*/
|
|
646
|
-
public createPartnerType(requestParameters:
|
|
647
|
-
return
|
|
646
|
+
public createPartnerType(requestParameters: PartnerTypesApiCreatePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
647
|
+
return PartnerTypesApiFp(this.configuration).createPartnerType(requestParameters.createPartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
/**
|
|
651
651
|
* Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
|
|
652
652
|
* @summary Delete the partner-types
|
|
653
|
-
* @param {
|
|
653
|
+
* @param {PartnerTypesApiDeletePartnerTypeRequest} requestParameters Request parameters.
|
|
654
654
|
* @param {*} [options] Override http request option.
|
|
655
655
|
* @throws {RequiredError}
|
|
656
|
-
* @memberof
|
|
656
|
+
* @memberof PartnerTypesApi
|
|
657
657
|
*/
|
|
658
|
-
public deletePartnerType(requestParameters:
|
|
659
|
-
return
|
|
658
|
+
public deletePartnerType(requestParameters: PartnerTypesApiDeletePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
659
|
+
return PartnerTypesApiFp(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
660
660
|
}
|
|
661
661
|
|
|
662
662
|
/**
|
|
663
663
|
* 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.
|
|
664
664
|
* @summary Retrieve the partner-types
|
|
665
|
-
* @param {
|
|
665
|
+
* @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
|
|
666
666
|
* @param {*} [options] Override http request option.
|
|
667
667
|
* @throws {RequiredError}
|
|
668
|
-
* @memberof
|
|
668
|
+
* @memberof PartnerTypesApi
|
|
669
669
|
*/
|
|
670
|
-
public getPartnerType(requestParameters:
|
|
671
|
-
return
|
|
670
|
+
public getPartnerType(requestParameters: PartnerTypesApiGetPartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
671
|
+
return PartnerTypesApiFp(this.configuration).getPartnerType(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
/**
|
|
675
675
|
* 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.
|
|
676
676
|
* @summary List partner-types
|
|
677
|
-
* @param {
|
|
677
|
+
* @param {PartnerTypesApiListPartnerTypesRequest} requestParameters Request parameters.
|
|
678
678
|
* @param {*} [options] Override http request option.
|
|
679
679
|
* @throws {RequiredError}
|
|
680
|
-
* @memberof
|
|
680
|
+
* @memberof PartnerTypesApi
|
|
681
681
|
*/
|
|
682
|
-
public listPartnerTypes(requestParameters:
|
|
683
|
-
return
|
|
682
|
+
public listPartnerTypes(requestParameters: PartnerTypesApiListPartnerTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
683
|
+
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));
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
/**
|
|
687
687
|
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
688
688
|
* @summary Update the partner-types
|
|
689
|
-
* @param {
|
|
689
|
+
* @param {PartnerTypesApiUpdatePartnerTypeRequest} requestParameters Request parameters.
|
|
690
690
|
* @param {*} [options] Override http request option.
|
|
691
691
|
* @throws {RequiredError}
|
|
692
|
-
* @memberof
|
|
692
|
+
* @memberof PartnerTypesApi
|
|
693
693
|
*/
|
|
694
|
-
public updatePartnerType(requestParameters:
|
|
695
|
-
return
|
|
694
|
+
public updatePartnerType(requestParameters: PartnerTypesApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
695
|
+
return PartnerTypesApiFp(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
696
696
|
}
|
|
697
697
|
}
|