@emilgroup/partner-sdk 1.4.0 → 1.5.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -4
- package/README.md +2 -2
- package/api/{partners-api.ts → partner-api.ts} +90 -90
- package/api/partner-invitation-api.ts +165 -0
- package/api/{partner-relations-api.ts → partner-relation-api.ts} +95 -95
- package/api/{partner-tags-api.ts → partner-tag-api.ts} +70 -70
- package/api/{partner-types-api.ts → partner-type-api.ts} +68 -68
- package/api/partner-version-api.ts +4 -4
- package/api.ts +10 -8
- package/base.ts +3 -3
- package/dist/api/{partners-api.d.ts → partner-api.d.ts} +82 -82
- package/dist/api/{partners-api.js → partner-api.js} +56 -56
- package/dist/api/partner-invitation-api.d.ts +97 -0
- package/dist/api/partner-invitation-api.js +224 -0
- package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +86 -86
- package/dist/api/{partner-relations-api.js → partner-relation-api.js} +53 -53
- package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +63 -63
- package/dist/api/{partner-tags-api.js → partner-tag-api.js} +46 -46
- package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +61 -61
- package/dist/api/{partner-types-api.js → partner-type-api.js} +43 -43
- package/dist/api/partner-version-api.d.ts +4 -4
- package/dist/api/partner-version-api.js +3 -3
- package/dist/api.d.ts +5 -4
- package/dist/api.js +5 -4
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -2
- package/dist/models/create-partner-response-class.d.ts +7 -0
- package/dist/models/create-partner-type-response-class.d.ts +1 -1
- package/dist/models/get-partner-type-response-class.d.ts +1 -1
- package/dist/models/get-partner-version-response-class.d.ts +3 -3
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/invite-class.d.ts +79 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
- package/dist/models/invite-partner-to-eis-response-class.js +15 -0
- package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
- package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
- package/dist/models/list-partner-relation-class.d.ts +1 -1
- package/dist/models/list-partner-relation-types-class.d.ts +1 -1
- package/dist/models/list-partner-types-response-class.d.ts +1 -1
- package/dist/models/list-partner-versions-response-class.d.ts +7 -1
- package/dist/models/list-partners-response-class.d.ts +1 -1
- package/dist/models/partner-class.d.ts +24 -6
- package/dist/models/partner-relation-class.d.ts +12 -0
- package/dist/models/partner-relation-type-class.d.ts +12 -0
- package/dist/models/partner-type-class.d.ts +12 -0
- package/dist/models/permission-class.d.ts +72 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/role-class.d.ts +73 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/tag-class.d.ts +12 -0
- package/dist/models/update-partner-type-response-class.d.ts +1 -1
- package/models/create-partner-response-class.ts +7 -0
- package/models/create-partner-type-response-class.ts +1 -1
- package/models/get-partner-type-response-class.ts +1 -1
- package/models/get-partner-version-response-class.ts +3 -3
- package/models/index.ts +5 -0
- package/models/invite-class.ts +85 -0
- package/models/invite-partner-to-eis-response-class.ts +31 -0
- package/models/invite-partner-to-eisrequest-dto.ts +48 -0
- package/models/list-partner-relation-class.ts +1 -1
- package/models/list-partner-relation-types-class.ts +1 -1
- package/models/list-partner-types-response-class.ts +1 -1
- package/models/list-partner-versions-response-class.ts +7 -1
- package/models/list-partners-response-class.ts +1 -1
- package/models/partner-class.ts +24 -6
- package/models/partner-relation-class.ts +12 -0
- package/models/partner-relation-type-class.ts +12 -0
- package/models/partner-type-class.ts +12 -0
- package/models/permission-class.ts +78 -0
- package/models/role-class.ts +79 -0
- package/models/tag-class.ts +12 -0
- package/models/update-partner-type-response-class.ts +1 -1
- package/package.json +1 -1
|
@@ -35,10 +35,10 @@ import { UpdatePartnerTypeRequestDto } from '../models';
|
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import { UpdatePartnerTypeResponseClass } from '../models';
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* PartnerTypeApi - axios parameter creator
|
|
39
39
|
* @export
|
|
40
40
|
*/
|
|
41
|
-
export const
|
|
41
|
+
export const PartnerTypeApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
42
|
return {
|
|
43
43
|
/**
|
|
44
44
|
* This will create a partner type.
|
|
@@ -133,7 +133,7 @@ export const PartnerTypesApiAxiosParamCreator = function (configuration?: Config
|
|
|
133
133
|
};
|
|
134
134
|
},
|
|
135
135
|
/**
|
|
136
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
136
|
+
* 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.
|
|
137
137
|
* @summary Retrieve the partner-types
|
|
138
138
|
* @param {string} code Unique identifier for the object.
|
|
139
139
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -313,11 +313,11 @@ export const PartnerTypesApiAxiosParamCreator = function (configuration?: Config
|
|
|
313
313
|
};
|
|
314
314
|
|
|
315
315
|
/**
|
|
316
|
-
*
|
|
316
|
+
* PartnerTypeApi - functional programming interface
|
|
317
317
|
* @export
|
|
318
318
|
*/
|
|
319
|
-
export const
|
|
320
|
-
const localVarAxiosParamCreator =
|
|
319
|
+
export const PartnerTypeApiFp = function(configuration?: Configuration) {
|
|
320
|
+
const localVarAxiosParamCreator = PartnerTypeApiAxiosParamCreator(configuration)
|
|
321
321
|
return {
|
|
322
322
|
/**
|
|
323
323
|
* This will create a partner type.
|
|
@@ -344,7 +344,7 @@ export const PartnerTypesApiFp = function(configuration?: Configuration) {
|
|
|
344
344
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
345
|
},
|
|
346
346
|
/**
|
|
347
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
347
|
+
* 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.
|
|
348
348
|
* @summary Retrieve the partner-types
|
|
349
349
|
* @param {string} code Unique identifier for the object.
|
|
350
350
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -391,11 +391,11 @@ export const PartnerTypesApiFp = function(configuration?: Configuration) {
|
|
|
391
391
|
};
|
|
392
392
|
|
|
393
393
|
/**
|
|
394
|
-
*
|
|
394
|
+
* PartnerTypeApi - factory interface
|
|
395
395
|
* @export
|
|
396
396
|
*/
|
|
397
|
-
export const
|
|
398
|
-
const localVarFp =
|
|
397
|
+
export const PartnerTypeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
398
|
+
const localVarFp = PartnerTypeApiFp(configuration)
|
|
399
399
|
return {
|
|
400
400
|
/**
|
|
401
401
|
* This will create a partner type.
|
|
@@ -420,7 +420,7 @@ export const PartnerTypesApiFactory = function (configuration?: Configuration, b
|
|
|
420
420
|
return localVarFp.deletePartnerType(code, authorization, options).then((request) => request(axios, basePath));
|
|
421
421
|
},
|
|
422
422
|
/**
|
|
423
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
423
|
+
* 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.
|
|
424
424
|
* @summary Retrieve the partner-types
|
|
425
425
|
* @param {string} code Unique identifier for the object.
|
|
426
426
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -464,230 +464,230 @@ export const PartnerTypesApiFactory = function (configuration?: Configuration, b
|
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
/**
|
|
467
|
-
* Request parameters for createPartnerType operation in
|
|
467
|
+
* Request parameters for createPartnerType operation in PartnerTypeApi.
|
|
468
468
|
* @export
|
|
469
|
-
* @interface
|
|
469
|
+
* @interface PartnerTypeApiCreatePartnerTypeRequest
|
|
470
470
|
*/
|
|
471
|
-
export interface
|
|
471
|
+
export interface PartnerTypeApiCreatePartnerTypeRequest {
|
|
472
472
|
/**
|
|
473
473
|
*
|
|
474
474
|
* @type {CreatePartnerTypeRequestDto}
|
|
475
|
-
* @memberof
|
|
475
|
+
* @memberof PartnerTypeApiCreatePartnerType
|
|
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 PartnerTypeApiCreatePartnerType
|
|
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 PartnerTypeApi.
|
|
489
489
|
* @export
|
|
490
|
-
* @interface
|
|
490
|
+
* @interface PartnerTypeApiDeletePartnerTypeRequest
|
|
491
491
|
*/
|
|
492
|
-
export interface
|
|
492
|
+
export interface PartnerTypeApiDeletePartnerTypeRequest {
|
|
493
493
|
/**
|
|
494
494
|
*
|
|
495
495
|
* @type {string}
|
|
496
|
-
* @memberof
|
|
496
|
+
* @memberof PartnerTypeApiDeletePartnerType
|
|
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 PartnerTypeApiDeletePartnerType
|
|
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 PartnerTypeApi.
|
|
510
510
|
* @export
|
|
511
|
-
* @interface
|
|
511
|
+
* @interface PartnerTypeApiGetPartnerTypeRequest
|
|
512
512
|
*/
|
|
513
|
-
export interface
|
|
513
|
+
export interface PartnerTypeApiGetPartnerTypeRequest {
|
|
514
514
|
/**
|
|
515
515
|
* Unique identifier for the object.
|
|
516
516
|
* @type {string}
|
|
517
|
-
* @memberof
|
|
517
|
+
* @memberof PartnerTypeApiGetPartnerType
|
|
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 PartnerTypeApiGetPartnerType
|
|
525
525
|
*/
|
|
526
526
|
readonly authorization?: string
|
|
527
527
|
|
|
528
528
|
/**
|
|
529
529
|
*
|
|
530
530
|
* @type {any}
|
|
531
|
-
* @memberof
|
|
531
|
+
* @memberof PartnerTypeApiGetPartnerType
|
|
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 PartnerTypeApi.
|
|
538
538
|
* @export
|
|
539
|
-
* @interface
|
|
539
|
+
* @interface PartnerTypeApiListPartnerTypesRequest
|
|
540
540
|
*/
|
|
541
|
-
export interface
|
|
541
|
+
export interface PartnerTypeApiListPartnerTypesRequest {
|
|
542
542
|
/**
|
|
543
543
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
544
544
|
* @type {string}
|
|
545
|
-
* @memberof
|
|
545
|
+
* @memberof PartnerTypeApiListPartnerTypes
|
|
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 PartnerTypeApiListPartnerTypes
|
|
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 PartnerTypeApiListPartnerTypes
|
|
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 PartnerTypeApiListPartnerTypes
|
|
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 PartnerTypeApiListPartnerTypes
|
|
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 PartnerTypeApiListPartnerTypes
|
|
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 PartnerTypeApiListPartnerTypes
|
|
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 PartnerTypeApiListPartnerTypes
|
|
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 PartnerTypeApi.
|
|
601
601
|
* @export
|
|
602
|
-
* @interface
|
|
602
|
+
* @interface PartnerTypeApiUpdatePartnerTypeRequest
|
|
603
603
|
*/
|
|
604
|
-
export interface
|
|
604
|
+
export interface PartnerTypeApiUpdatePartnerTypeRequest {
|
|
605
605
|
/**
|
|
606
606
|
* Unique identifier for the object.
|
|
607
607
|
* @type {string}
|
|
608
|
-
* @memberof
|
|
608
|
+
* @memberof PartnerTypeApiUpdatePartnerType
|
|
609
609
|
*/
|
|
610
610
|
readonly code: string
|
|
611
611
|
|
|
612
612
|
/**
|
|
613
613
|
*
|
|
614
614
|
* @type {UpdatePartnerTypeRequestDto}
|
|
615
|
-
* @memberof
|
|
615
|
+
* @memberof PartnerTypeApiUpdatePartnerType
|
|
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 PartnerTypeApiUpdatePartnerType
|
|
623
623
|
*/
|
|
624
624
|
readonly authorization?: string
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
/**
|
|
628
|
-
*
|
|
628
|
+
* PartnerTypeApi - object-oriented interface
|
|
629
629
|
* @export
|
|
630
|
-
* @class
|
|
630
|
+
* @class PartnerTypeApi
|
|
631
631
|
* @extends {BaseAPI}
|
|
632
632
|
*/
|
|
633
|
-
export class
|
|
633
|
+
export class PartnerTypeApi extends BaseAPI {
|
|
634
634
|
/**
|
|
635
635
|
* This will create a partner type.
|
|
636
636
|
* @summary Create the partner-types
|
|
637
|
-
* @param {
|
|
637
|
+
* @param {PartnerTypeApiCreatePartnerTypeRequest} requestParameters Request parameters.
|
|
638
638
|
* @param {*} [options] Override http request option.
|
|
639
639
|
* @throws {RequiredError}
|
|
640
|
-
* @memberof
|
|
640
|
+
* @memberof PartnerTypeApi
|
|
641
641
|
*/
|
|
642
|
-
public createPartnerType(requestParameters:
|
|
643
|
-
return
|
|
642
|
+
public createPartnerType(requestParameters: PartnerTypeApiCreatePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
643
|
+
return PartnerTypeApiFp(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 {PartnerTypeApiDeletePartnerTypeRequest} requestParameters Request parameters.
|
|
650
650
|
* @param {*} [options] Override http request option.
|
|
651
651
|
* @throws {RequiredError}
|
|
652
|
-
* @memberof
|
|
652
|
+
* @memberof PartnerTypeApi
|
|
653
653
|
*/
|
|
654
|
-
public deletePartnerType(requestParameters:
|
|
655
|
-
return
|
|
654
|
+
public deletePartnerType(requestParameters: PartnerTypeApiDeletePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
655
|
+
return PartnerTypeApiFp(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
|
-
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code
|
|
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 {PartnerTypeApiGetPartnerTypeRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
663
663
|
* @throws {RequiredError}
|
|
664
|
-
* @memberof
|
|
664
|
+
* @memberof PartnerTypeApi
|
|
665
665
|
*/
|
|
666
|
-
public getPartnerType(requestParameters:
|
|
667
|
-
return
|
|
666
|
+
public getPartnerType(requestParameters: PartnerTypeApiGetPartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
667
|
+
return PartnerTypeApiFp(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 {PartnerTypeApiListPartnerTypesRequest} requestParameters Request parameters.
|
|
674
674
|
* @param {*} [options] Override http request option.
|
|
675
675
|
* @throws {RequiredError}
|
|
676
|
-
* @memberof
|
|
676
|
+
* @memberof PartnerTypeApi
|
|
677
677
|
*/
|
|
678
|
-
public listPartnerTypes(requestParameters:
|
|
679
|
-
return
|
|
678
|
+
public listPartnerTypes(requestParameters: PartnerTypeApiListPartnerTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
679
|
+
return PartnerTypeApiFp(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 {PartnerTypeApiUpdatePartnerTypeRequest} requestParameters Request parameters.
|
|
686
686
|
* @param {*} [options] Override http request option.
|
|
687
687
|
* @throws {RequiredError}
|
|
688
|
-
* @memberof
|
|
688
|
+
* @memberof PartnerTypeApi
|
|
689
689
|
*/
|
|
690
|
-
public updatePartnerType(requestParameters:
|
|
691
|
-
return
|
|
690
|
+
public updatePartnerType(requestParameters: PartnerTypeApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
691
|
+
return PartnerTypeApiFp(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
692
692
|
}
|
|
693
693
|
}
|
|
@@ -89,7 +89,7 @@ export const PartnerVersionApiAxiosParamCreator = function (configuration?: Conf
|
|
|
89
89
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
90
90
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
91
91
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: displayName, createdAt, updatedAt, version</i>
|
|
92
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
92
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType<i>
|
|
93
93
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
94
94
|
* @param {*} [options] Override http request option.
|
|
95
95
|
* @throws {RequiredError}
|
|
@@ -192,7 +192,7 @@ export const PartnerVersionApiFp = function(configuration?: Configuration) {
|
|
|
192
192
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
193
193
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
194
194
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: displayName, createdAt, updatedAt, version</i>
|
|
195
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
195
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType<i>
|
|
196
196
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
197
197
|
* @param {*} [options] Override http request option.
|
|
198
198
|
* @throws {RequiredError}
|
|
@@ -233,7 +233,7 @@ export const PartnerVersionApiFactory = function (configuration?: Configuration,
|
|
|
233
233
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
234
234
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
235
235
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: displayName, createdAt, updatedAt, version</i>
|
|
236
|
-
* @param {string} [expand] Expand to fetch additional information about the list items.
|
|
236
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType<i>
|
|
237
237
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
|
|
238
238
|
* @param {*} [options] Override http request option.
|
|
239
239
|
* @throws {RequiredError}
|
|
@@ -328,7 +328,7 @@ export interface PartnerVersionApiListPartnerVersionRequest {
|
|
|
328
328
|
readonly order?: string
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
|
-
* Expand to fetch additional information about the list items.
|
|
331
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType<i>
|
|
332
332
|
* @type {string}
|
|
333
333
|
* @memberof PartnerVersionApiListPartnerVersion
|
|
334
334
|
*/
|
package/api.ts
CHANGED
|
@@ -21,17 +21,19 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { DefaultApi } from './api';
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
24
|
+
import { PartnerApi } from './api';
|
|
25
|
+
import { PartnerInvitationApi } from './api';
|
|
26
|
+
import { PartnerRelationApi } from './api';
|
|
27
|
+
import { PartnerTagApi } from './api';
|
|
28
|
+
import { PartnerTypeApi } from './api';
|
|
27
29
|
import { PartnerVersionApi } from './api';
|
|
28
|
-
import { PartnersApi } from './api';
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
export * from './api/default-api';
|
|
32
|
-
export * from './api/partner-
|
|
33
|
-
export * from './api/partner-
|
|
34
|
-
export * from './api/partner-
|
|
33
|
+
export * from './api/partner-api';
|
|
34
|
+
export * from './api/partner-invitation-api';
|
|
35
|
+
export * from './api/partner-relation-api';
|
|
36
|
+
export * from './api/partner-tag-api';
|
|
37
|
+
export * from './api/partner-type-api';
|
|
35
38
|
export * from './api/partner-version-api';
|
|
36
|
-
export * from './api/partners-api';
|
|
37
39
|
|
package/base.ts
CHANGED
|
@@ -34,7 +34,7 @@ export const COLLECTION_FORMATS = {
|
|
|
34
34
|
|
|
35
35
|
export interface LoginClass {
|
|
36
36
|
accessToken: string;
|
|
37
|
-
permissions:
|
|
37
|
+
permissions: string;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export enum Environment {
|
|
@@ -77,7 +77,7 @@ const TOKEN_DATA = 'APP_TOKEN';
|
|
|
77
77
|
export class BaseAPI {
|
|
78
78
|
protected configuration: Configuration | undefined;
|
|
79
79
|
private tokenData?: TokenData;
|
|
80
|
-
private permissions
|
|
80
|
+
private permissions?: string;
|
|
81
81
|
|
|
82
82
|
constructor(configuration?: Configuration,
|
|
83
83
|
protected basePath: string = BASE_PATH,
|
|
@@ -111,7 +111,7 @@ export class BaseAPI {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
getPermissions(): Array<string> {
|
|
114
|
-
return this.permissions;
|
|
114
|
+
return this.permissions.split(',');
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
async authorize(username: string, password: string): Promise<void> {
|