@emilgroup/partner-sdk 1.6.1-beta.3 → 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.
Files changed (24) hide show
  1. package/.openapi-generator/FILES +6 -6
  2. package/README.md +2 -2
  3. package/api/{partner-invitation-api.ts → partner-invitations-api.ts} +20 -20
  4. package/api/{partner-relation-api.ts → partner-relations-api.ts} +91 -91
  5. package/api/{partner-tag-api.ts → partner-tags-api.ts} +66 -66
  6. package/api/{partner-type-api.ts → partner-types-api.ts} +64 -64
  7. package/api/{partner-version-api.ts → partner-versions-api.ts} +37 -37
  8. package/api/{partner-api.ts → partners-api.ts} +74 -74
  9. package/api.ts +12 -12
  10. package/dist/api/{partner-invitation-api.d.ts → partner-invitations-api.d.ts} +17 -17
  11. package/dist/api/{partner-invitation-api.js → partner-invitations-api.js} +23 -23
  12. package/dist/api/{partner-relation-api.d.ts → partner-relations-api.d.ts} +82 -82
  13. package/dist/api/{partner-relation-api.js → partner-relations-api.js} +50 -50
  14. package/dist/api/{partner-tag-api.d.ts → partner-tags-api.d.ts} +59 -59
  15. package/dist/api/{partner-tag-api.js → partner-tags-api.js} +42 -42
  16. package/dist/api/{partner-type-api.d.ts → partner-types-api.d.ts} +57 -57
  17. package/dist/api/{partner-type-api.js → partner-types-api.js} +39 -39
  18. package/dist/api/{partner-version-api.d.ts → partner-versions-api.d.ts} +33 -33
  19. package/dist/api/{partner-version-api.js → partner-versions-api.js} +27 -27
  20. package/dist/api/{partner-api.d.ts → partners-api.d.ts} +66 -66
  21. package/dist/api/{partner-api.js → partners-api.js} +43 -43
  22. package/dist/api.d.ts +6 -6
  23. package/dist/api.js +6 -6
  24. 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
- * PartnerTagApi - axios parameter creator
36
+ * PartnerTagsApi - axios parameter creator
37
37
  * @export
38
38
  */
39
- export const PartnerTagApiAxiosParamCreator = function (configuration?: Configuration) {
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.
@@ -184,7 +184,7 @@ export const PartnerTagApiAxiosParamCreator = function (configuration?: Configur
184
184
  * @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, slug, label</i>
185
185
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
186
186
  * @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: code, slug, label, createdAt, updatedAt</i>
187
- * @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/>
187
+ * @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: <i>
188
188
  * @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, slug, label</i>
189
189
  * @param {*} [options] Override http request option.
190
190
  * @throws {RequiredError}
@@ -300,11 +300,11 @@ export const PartnerTagApiAxiosParamCreator = function (configuration?: Configur
300
300
  };
301
301
 
302
302
  /**
303
- * PartnerTagApi - functional programming interface
303
+ * PartnerTagsApi - functional programming interface
304
304
  * @export
305
305
  */
306
- export const PartnerTagApiFp = function(configuration?: Configuration) {
307
- const localVarAxiosParamCreator = PartnerTagApiAxiosParamCreator(configuration)
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.
@@ -351,7 +351,7 @@ export const PartnerTagApiFp = function(configuration?: Configuration) {
351
351
  * @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, slug, label</i>
352
352
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
353
353
  * @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: code, slug, label, createdAt, updatedAt</i>
354
- * @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/>
354
+ * @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: <i>
355
355
  * @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, slug, label</i>
356
356
  * @param {*} [options] Override http request option.
357
357
  * @throws {RequiredError}
@@ -376,11 +376,11 @@ export const PartnerTagApiFp = function(configuration?: Configuration) {
376
376
  };
377
377
 
378
378
  /**
379
- * PartnerTagApi - factory interface
379
+ * PartnerTagsApi - factory interface
380
380
  * @export
381
381
  */
382
- export const PartnerTagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
383
- const localVarFp = PartnerTagApiFp(configuration)
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.
@@ -424,7 +424,7 @@ export const PartnerTagApiFactory = function (configuration?: Configuration, bas
424
424
  * @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, slug, label</i>
425
425
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
426
426
  * @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: code, slug, label, createdAt, updatedAt</i>
427
- * @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/>
427
+ * @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: <i>
428
428
  * @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, slug, label</i>
429
429
  * @param {*} [options] Override http request option.
430
430
  * @throws {RequiredError}
@@ -447,216 +447,216 @@ export const PartnerTagApiFactory = function (configuration?: Configuration, bas
447
447
  };
448
448
 
449
449
  /**
450
- * Request parameters for createTag operation in PartnerTagApi.
450
+ * Request parameters for createTag operation in PartnerTagsApi.
451
451
  * @export
452
- * @interface PartnerTagApiCreateTagRequest
452
+ * @interface PartnerTagsApiCreateTagRequest
453
453
  */
454
- export interface PartnerTagApiCreateTagRequest {
454
+ export interface PartnerTagsApiCreateTagRequest {
455
455
  /**
456
456
  *
457
457
  * @type {CreateTagRequestDto}
458
- * @memberof PartnerTagApiCreateTag
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 PartnerTagApiCreateTag
465
+ * @memberof PartnerTagsApiCreateTag
466
466
  */
467
467
  readonly authorization?: string
468
468
  }
469
469
 
470
470
  /**
471
- * Request parameters for deleteTag operation in PartnerTagApi.
471
+ * Request parameters for deleteTag operation in PartnerTagsApi.
472
472
  * @export
473
- * @interface PartnerTagApiDeleteTagRequest
473
+ * @interface PartnerTagsApiDeleteTagRequest
474
474
  */
475
- export interface PartnerTagApiDeleteTagRequest {
475
+ export interface PartnerTagsApiDeleteTagRequest {
476
476
  /**
477
477
  *
478
478
  * @type {string}
479
- * @memberof PartnerTagApiDeleteTag
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 PartnerTagApiDeleteTag
486
+ * @memberof PartnerTagsApiDeleteTag
487
487
  */
488
488
  readonly authorization?: string
489
489
  }
490
490
 
491
491
  /**
492
- * Request parameters for getTag operation in PartnerTagApi.
492
+ * Request parameters for getTag operation in PartnerTagsApi.
493
493
  * @export
494
- * @interface PartnerTagApiGetTagRequest
494
+ * @interface PartnerTagsApiGetTagRequest
495
495
  */
496
- export interface PartnerTagApiGetTagRequest {
496
+ export interface PartnerTagsApiGetTagRequest {
497
497
  /**
498
498
  * Unique identifier for the object.
499
499
  * @type {string}
500
- * @memberof PartnerTagApiGetTag
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 PartnerTagApiGetTag
507
+ * @memberof PartnerTagsApiGetTag
508
508
  */
509
509
  readonly authorization?: string
510
510
  }
511
511
 
512
512
  /**
513
- * Request parameters for listTags operation in PartnerTagApi.
513
+ * Request parameters for listTags operation in PartnerTagsApi.
514
514
  * @export
515
- * @interface PartnerTagApiListTagsRequest
515
+ * @interface PartnerTagsApiListTagsRequest
516
516
  */
517
- export interface PartnerTagApiListTagsRequest {
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 PartnerTagApiListTags
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 PartnerTagApiListTags
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 PartnerTagApiListTags
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 PartnerTagApiListTags
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 PartnerTagApiListTags
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 PartnerTagApiListTags
556
+ * @memberof PartnerTagsApiListTags
557
557
  */
558
558
  readonly order?: string
559
559
 
560
560
  /**
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/>
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 PartnerTagApiListTags
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 PartnerTagApiListTags
570
+ * @memberof PartnerTagsApiListTags
571
571
  */
572
572
  readonly filters?: string
573
573
  }
574
574
 
575
575
  /**
576
- * Request parameters for updateTag operation in PartnerTagApi.
576
+ * Request parameters for updateTag operation in PartnerTagsApi.
577
577
  * @export
578
- * @interface PartnerTagApiUpdateTagRequest
578
+ * @interface PartnerTagsApiUpdateTagRequest
579
579
  */
580
- export interface PartnerTagApiUpdateTagRequest {
580
+ export interface PartnerTagsApiUpdateTagRequest {
581
581
  /**
582
582
  *
583
583
  * @type {string}
584
- * @memberof PartnerTagApiUpdateTag
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 PartnerTagApiUpdateTag
591
+ * @memberof PartnerTagsApiUpdateTag
592
592
  */
593
593
  readonly authorization?: string
594
594
  }
595
595
 
596
596
  /**
597
- * PartnerTagApi - object-oriented interface
597
+ * PartnerTagsApi - object-oriented interface
598
598
  * @export
599
- * @class PartnerTagApi
599
+ * @class PartnerTagsApi
600
600
  * @extends {BaseAPI}
601
601
  */
602
- export class PartnerTagApi extends BaseAPI {
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 {PartnerTagApiCreateTagRequest} requestParameters Request parameters.
606
+ * @param {PartnerTagsApiCreateTagRequest} requestParameters Request parameters.
607
607
  * @param {*} [options] Override http request option.
608
608
  * @throws {RequiredError}
609
- * @memberof PartnerTagApi
609
+ * @memberof PartnerTagsApi
610
610
  */
611
- public createTag(requestParameters: PartnerTagApiCreateTagRequest, options?: AxiosRequestConfig) {
612
- return PartnerTagApiFp(this.configuration).createTag(requestParameters.createTagRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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 {PartnerTagApiDeleteTagRequest} requestParameters Request parameters.
618
+ * @param {PartnerTagsApiDeleteTagRequest} requestParameters Request parameters.
619
619
  * @param {*} [options] Override http request option.
620
620
  * @throws {RequiredError}
621
- * @memberof PartnerTagApi
621
+ * @memberof PartnerTagsApi
622
622
  */
623
- public deleteTag(requestParameters: PartnerTagApiDeleteTagRequest, options?: AxiosRequestConfig) {
624
- return PartnerTagApiFp(this.configuration).deleteTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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 {PartnerTagApiGetTagRequest} requestParameters Request parameters.
630
+ * @param {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
631
631
  * @param {*} [options] Override http request option.
632
632
  * @throws {RequiredError}
633
- * @memberof PartnerTagApi
633
+ * @memberof PartnerTagsApi
634
634
  */
635
- public getTag(requestParameters: PartnerTagApiGetTagRequest, options?: AxiosRequestConfig) {
636
- return PartnerTagApiFp(this.configuration).getTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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 {PartnerTagApiListTagsRequest} requestParameters Request parameters.
642
+ * @param {PartnerTagsApiListTagsRequest} requestParameters Request parameters.
643
643
  * @param {*} [options] Override http request option.
644
644
  * @throws {RequiredError}
645
- * @memberof PartnerTagApi
645
+ * @memberof PartnerTagsApi
646
646
  */
647
- public listTags(requestParameters: PartnerTagApiListTagsRequest = {}, options?: AxiosRequestConfig) {
648
- return PartnerTagApiFp(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));
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 {PartnerTagApiUpdateTagRequest} requestParameters Request parameters.
654
+ * @param {PartnerTagsApiUpdateTagRequest} requestParameters Request parameters.
655
655
  * @param {*} [options] Override http request option.
656
656
  * @throws {RequiredError}
657
- * @memberof PartnerTagApi
657
+ * @memberof PartnerTagsApi
658
658
  */
659
- public updateTag(requestParameters: PartnerTagApiUpdateTagRequest, options?: AxiosRequestConfig) {
660
- return PartnerTagApiFp(this.configuration).updateTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
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
  }