@emilgroup/partner-sdk 1.6.0 → 1.6.1-beta.1

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 (54) hide show
  1. package/.openapi-generator/FILES +11 -4
  2. package/README.md +2 -2
  3. package/api/{partners-api.ts → partner-api.ts} +82 -82
  4. package/api/partner-invitation-api.ts +165 -0
  5. package/api/{partner-relations-api.ts → partner-relation-api.ts} +91 -91
  6. package/api/{partner-tags-api.ts → partner-tag-api.ts} +66 -66
  7. package/api/{partner-types-api.ts → partner-type-api.ts} +64 -64
  8. package/api.ts +10 -8
  9. package/dist/api/{partners-api.d.ts → partner-api.d.ts} +74 -74
  10. package/dist/api/{partners-api.js → partner-api.js} +49 -49
  11. package/dist/api/partner-invitation-api.d.ts +97 -0
  12. package/dist/api/partner-invitation-api.js +224 -0
  13. package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +82 -82
  14. package/dist/api/{partner-relations-api.js → partner-relation-api.js} +50 -50
  15. package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +59 -59
  16. package/dist/api/{partner-tags-api.js → partner-tag-api.js} +42 -42
  17. package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +57 -57
  18. package/dist/api/{partner-types-api.js → partner-type-api.js} +39 -39
  19. package/dist/api.d.ts +5 -4
  20. package/dist/api.js +5 -4
  21. package/dist/models/create-partner-request-dto.d.ts +1 -1
  22. package/dist/models/create-partner-response-class.d.ts +7 -0
  23. package/dist/models/create-partner-type-request-dto.d.ts +3 -2
  24. package/dist/models/create-tag-request-dto.d.ts +1 -1
  25. package/dist/models/index.d.ts +6 -0
  26. package/dist/models/index.js +6 -0
  27. package/dist/models/invite-class.d.ts +79 -0
  28. package/dist/models/invite-class.js +15 -0
  29. package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
  30. package/dist/models/invite-partner-to-eis-response-class.js +15 -0
  31. package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
  32. package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
  33. package/dist/models/partner-class.d.ts +6 -0
  34. package/dist/models/partner-type-custom-schema-dto.d.ts +102 -0
  35. package/dist/models/partner-type-custom-schema-dto.js +15 -0
  36. package/dist/models/permission-class.d.ts +72 -0
  37. package/dist/models/permission-class.js +15 -0
  38. package/dist/models/role-class.d.ts +73 -0
  39. package/dist/models/role-class.js +15 -0
  40. package/dist/models/update-partner-type-request-dto.d.ts +3 -2
  41. package/models/create-partner-request-dto.ts +1 -1
  42. package/models/create-partner-response-class.ts +7 -0
  43. package/models/create-partner-type-request-dto.ts +3 -2
  44. package/models/create-tag-request-dto.ts +1 -1
  45. package/models/index.ts +6 -0
  46. package/models/invite-class.ts +85 -0
  47. package/models/invite-partner-to-eis-response-class.ts +31 -0
  48. package/models/invite-partner-to-eisrequest-dto.ts +48 -0
  49. package/models/partner-class.ts +6 -0
  50. package/models/partner-type-custom-schema-dto.ts +108 -0
  51. package/models/permission-class.ts +78 -0
  52. package/models/role-class.ts +79 -0
  53. package/models/update-partner-type-request-dto.ts +3 -2
  54. 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
- * PartnerTagsApi - axios parameter creator
36
+ * PartnerTagApi - axios parameter creator
37
37
  * @export
38
38
  */
39
- export const PartnerTagsApiAxiosParamCreator = function (configuration?: Configuration) {
39
+ export const PartnerTagApiAxiosParamCreator = 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 PartnerTagsApiAxiosParamCreator = function (configuration?: Configu
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/> <i>Allowed values: <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/>
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 PartnerTagsApiAxiosParamCreator = function (configuration?: Configu
300
300
  };
301
301
 
302
302
  /**
303
- * PartnerTagsApi - functional programming interface
303
+ * PartnerTagApi - functional programming interface
304
304
  * @export
305
305
  */
306
- export const PartnerTagsApiFp = function(configuration?: Configuration) {
307
- const localVarAxiosParamCreator = PartnerTagsApiAxiosParamCreator(configuration)
306
+ export const PartnerTagApiFp = function(configuration?: Configuration) {
307
+ const localVarAxiosParamCreator = PartnerTagApiAxiosParamCreator(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 PartnerTagsApiFp = 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/> <i>Allowed values: <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/>
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 PartnerTagsApiFp = function(configuration?: Configuration) {
376
376
  };
377
377
 
378
378
  /**
379
- * PartnerTagsApi - factory interface
379
+ * PartnerTagApi - factory interface
380
380
  * @export
381
381
  */
382
- export const PartnerTagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
383
- const localVarFp = PartnerTagsApiFp(configuration)
382
+ export const PartnerTagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
383
+ const localVarFp = PartnerTagApiFp(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 PartnerTagsApiFactory = function (configuration?: Configuration, ba
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/> <i>Allowed values: <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/>
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 PartnerTagsApiFactory = function (configuration?: Configuration, ba
447
447
  };
448
448
 
449
449
  /**
450
- * Request parameters for createTag operation in PartnerTagsApi.
450
+ * Request parameters for createTag operation in PartnerTagApi.
451
451
  * @export
452
- * @interface PartnerTagsApiCreateTagRequest
452
+ * @interface PartnerTagApiCreateTagRequest
453
453
  */
454
- export interface PartnerTagsApiCreateTagRequest {
454
+ export interface PartnerTagApiCreateTagRequest {
455
455
  /**
456
456
  *
457
457
  * @type {CreateTagRequestDto}
458
- * @memberof PartnerTagsApiCreateTag
458
+ * @memberof PartnerTagApiCreateTag
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 PartnerTagsApiCreateTag
465
+ * @memberof PartnerTagApiCreateTag
466
466
  */
467
467
  readonly authorization?: string
468
468
  }
469
469
 
470
470
  /**
471
- * Request parameters for deleteTag operation in PartnerTagsApi.
471
+ * Request parameters for deleteTag operation in PartnerTagApi.
472
472
  * @export
473
- * @interface PartnerTagsApiDeleteTagRequest
473
+ * @interface PartnerTagApiDeleteTagRequest
474
474
  */
475
- export interface PartnerTagsApiDeleteTagRequest {
475
+ export interface PartnerTagApiDeleteTagRequest {
476
476
  /**
477
477
  *
478
478
  * @type {string}
479
- * @memberof PartnerTagsApiDeleteTag
479
+ * @memberof PartnerTagApiDeleteTag
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 PartnerTagsApiDeleteTag
486
+ * @memberof PartnerTagApiDeleteTag
487
487
  */
488
488
  readonly authorization?: string
489
489
  }
490
490
 
491
491
  /**
492
- * Request parameters for getTag operation in PartnerTagsApi.
492
+ * Request parameters for getTag operation in PartnerTagApi.
493
493
  * @export
494
- * @interface PartnerTagsApiGetTagRequest
494
+ * @interface PartnerTagApiGetTagRequest
495
495
  */
496
- export interface PartnerTagsApiGetTagRequest {
496
+ export interface PartnerTagApiGetTagRequest {
497
497
  /**
498
498
  * Unique identifier for the object.
499
499
  * @type {string}
500
- * @memberof PartnerTagsApiGetTag
500
+ * @memberof PartnerTagApiGetTag
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 PartnerTagsApiGetTag
507
+ * @memberof PartnerTagApiGetTag
508
508
  */
509
509
  readonly authorization?: string
510
510
  }
511
511
 
512
512
  /**
513
- * Request parameters for listTags operation in PartnerTagsApi.
513
+ * Request parameters for listTags operation in PartnerTagApi.
514
514
  * @export
515
- * @interface PartnerTagsApiListTagsRequest
515
+ * @interface PartnerTagApiListTagsRequest
516
516
  */
517
- export interface PartnerTagsApiListTagsRequest {
517
+ export interface PartnerTagApiListTagsRequest {
518
518
  /**
519
519
  * Bearer Token: provided by the login endpoint under the name accessToken.
520
520
  * @type {string}
521
- * @memberof PartnerTagsApiListTags
521
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
528
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
535
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
542
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
549
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
556
+ * @memberof PartnerTagApiListTags
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/> <i>Allowed values: <i>
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/>
562
562
  * @type {string}
563
- * @memberof PartnerTagsApiListTags
563
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
570
+ * @memberof PartnerTagApiListTags
571
571
  */
572
572
  readonly filters?: string
573
573
  }
574
574
 
575
575
  /**
576
- * Request parameters for updateTag operation in PartnerTagsApi.
576
+ * Request parameters for updateTag operation in PartnerTagApi.
577
577
  * @export
578
- * @interface PartnerTagsApiUpdateTagRequest
578
+ * @interface PartnerTagApiUpdateTagRequest
579
579
  */
580
- export interface PartnerTagsApiUpdateTagRequest {
580
+ export interface PartnerTagApiUpdateTagRequest {
581
581
  /**
582
582
  *
583
583
  * @type {string}
584
- * @memberof PartnerTagsApiUpdateTag
584
+ * @memberof PartnerTagApiUpdateTag
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 PartnerTagsApiUpdateTag
591
+ * @memberof PartnerTagApiUpdateTag
592
592
  */
593
593
  readonly authorization?: string
594
594
  }
595
595
 
596
596
  /**
597
- * PartnerTagsApi - object-oriented interface
597
+ * PartnerTagApi - object-oriented interface
598
598
  * @export
599
- * @class PartnerTagsApi
599
+ * @class PartnerTagApi
600
600
  * @extends {BaseAPI}
601
601
  */
602
- export class PartnerTagsApi extends BaseAPI {
602
+ export class PartnerTagApi 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 {PartnerTagsApiCreateTagRequest} requestParameters Request parameters.
606
+ * @param {PartnerTagApiCreateTagRequest} requestParameters Request parameters.
607
607
  * @param {*} [options] Override http request option.
608
608
  * @throws {RequiredError}
609
- * @memberof PartnerTagsApi
609
+ * @memberof PartnerTagApi
610
610
  */
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));
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));
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 {PartnerTagsApiDeleteTagRequest} requestParameters Request parameters.
618
+ * @param {PartnerTagApiDeleteTagRequest} requestParameters Request parameters.
619
619
  * @param {*} [options] Override http request option.
620
620
  * @throws {RequiredError}
621
- * @memberof PartnerTagsApi
621
+ * @memberof PartnerTagApi
622
622
  */
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));
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));
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 {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
630
+ * @param {PartnerTagApiGetTagRequest} requestParameters Request parameters.
631
631
  * @param {*} [options] Override http request option.
632
632
  * @throws {RequiredError}
633
- * @memberof PartnerTagsApi
633
+ * @memberof PartnerTagApi
634
634
  */
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));
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));
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 {PartnerTagsApiListTagsRequest} requestParameters Request parameters.
642
+ * @param {PartnerTagApiListTagsRequest} requestParameters Request parameters.
643
643
  * @param {*} [options] Override http request option.
644
644
  * @throws {RequiredError}
645
- * @memberof PartnerTagsApi
645
+ * @memberof PartnerTagApi
646
646
  */
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));
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));
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 {PartnerTagsApiUpdateTagRequest} requestParameters Request parameters.
654
+ * @param {PartnerTagApiUpdateTagRequest} requestParameters Request parameters.
655
655
  * @param {*} [options] Override http request option.
656
656
  * @throws {RequiredError}
657
- * @memberof PartnerTagsApi
657
+ * @memberof PartnerTagApi
658
658
  */
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));
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));
661
661
  }
662
662
  }