@emilgroup/partner-sdk-node 1.6.0 → 1.6.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.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +10 -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 +169 -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 +228 -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-response-class.d.ts +7 -0
  22. package/dist/models/index.d.ts +5 -0
  23. package/dist/models/index.js +5 -0
  24. package/dist/models/invite-class.d.ts +79 -0
  25. package/dist/models/invite-class.js +15 -0
  26. package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
  27. package/dist/models/invite-partner-to-eis-response-class.js +15 -0
  28. package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
  29. package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
  30. package/dist/models/partner-class.d.ts +6 -0
  31. package/dist/models/permission-class.d.ts +72 -0
  32. package/dist/models/permission-class.js +15 -0
  33. package/dist/models/role-class.d.ts +73 -0
  34. package/dist/models/role-class.js +15 -0
  35. package/models/create-partner-response-class.ts +7 -0
  36. package/models/index.ts +5 -0
  37. package/models/invite-class.ts +85 -0
  38. package/models/invite-partner-to-eis-response-class.ts +31 -0
  39. package/models/invite-partner-to-eisrequest-dto.ts +48 -0
  40. package/models/partner-class.ts +6 -0
  41. package/models/permission-class.ts +78 -0
  42. package/models/role-class.ts +79 -0
  43. 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
- * PartnerTagsApi - axios parameter creator
40
+ * PartnerTagApi - axios parameter creator
41
41
  * @export
42
42
  */
43
- export const PartnerTagsApiAxiosParamCreator = function (configuration?: Configuration) {
43
+ export const PartnerTagApiAxiosParamCreator = 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.
@@ -188,7 +188,7 @@ export const PartnerTagsApiAxiosParamCreator = function (configuration?: Configu
188
188
  * @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>
189
189
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
190
190
  * @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>
191
- * @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>
191
+ * @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/>
192
192
  * @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>
193
193
  * @param {*} [options] Override http request option.
194
194
  * @throws {RequiredError}
@@ -304,11 +304,11 @@ export const PartnerTagsApiAxiosParamCreator = function (configuration?: Configu
304
304
  };
305
305
 
306
306
  /**
307
- * PartnerTagsApi - functional programming interface
307
+ * PartnerTagApi - functional programming interface
308
308
  * @export
309
309
  */
310
- export const PartnerTagsApiFp = function(configuration?: Configuration) {
311
- const localVarAxiosParamCreator = PartnerTagsApiAxiosParamCreator(configuration)
310
+ export const PartnerTagApiFp = function(configuration?: Configuration) {
311
+ const localVarAxiosParamCreator = PartnerTagApiAxiosParamCreator(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.
@@ -355,7 +355,7 @@ export const PartnerTagsApiFp = function(configuration?: Configuration) {
355
355
  * @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>
356
356
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
357
357
  * @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>
358
- * @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>
358
+ * @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/>
359
359
  * @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>
360
360
  * @param {*} [options] Override http request option.
361
361
  * @throws {RequiredError}
@@ -380,11 +380,11 @@ export const PartnerTagsApiFp = function(configuration?: Configuration) {
380
380
  };
381
381
 
382
382
  /**
383
- * PartnerTagsApi - factory interface
383
+ * PartnerTagApi - factory interface
384
384
  * @export
385
385
  */
386
- export const PartnerTagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
387
- const localVarFp = PartnerTagsApiFp(configuration)
386
+ export const PartnerTagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
387
+ const localVarFp = PartnerTagApiFp(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.
@@ -428,7 +428,7 @@ export const PartnerTagsApiFactory = function (configuration?: Configuration, ba
428
428
  * @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>
429
429
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
430
430
  * @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>
431
- * @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>
431
+ * @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/>
432
432
  * @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>
433
433
  * @param {*} [options] Override http request option.
434
434
  * @throws {RequiredError}
@@ -451,216 +451,216 @@ export const PartnerTagsApiFactory = function (configuration?: Configuration, ba
451
451
  };
452
452
 
453
453
  /**
454
- * Request parameters for createTag operation in PartnerTagsApi.
454
+ * Request parameters for createTag operation in PartnerTagApi.
455
455
  * @export
456
- * @interface PartnerTagsApiCreateTagRequest
456
+ * @interface PartnerTagApiCreateTagRequest
457
457
  */
458
- export interface PartnerTagsApiCreateTagRequest {
458
+ export interface PartnerTagApiCreateTagRequest {
459
459
  /**
460
460
  *
461
461
  * @type {CreateTagRequestDto}
462
- * @memberof PartnerTagsApiCreateTag
462
+ * @memberof PartnerTagApiCreateTag
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 PartnerTagsApiCreateTag
469
+ * @memberof PartnerTagApiCreateTag
470
470
  */
471
471
  readonly authorization?: string
472
472
  }
473
473
 
474
474
  /**
475
- * Request parameters for deleteTag operation in PartnerTagsApi.
475
+ * Request parameters for deleteTag operation in PartnerTagApi.
476
476
  * @export
477
- * @interface PartnerTagsApiDeleteTagRequest
477
+ * @interface PartnerTagApiDeleteTagRequest
478
478
  */
479
- export interface PartnerTagsApiDeleteTagRequest {
479
+ export interface PartnerTagApiDeleteTagRequest {
480
480
  /**
481
481
  *
482
482
  * @type {string}
483
- * @memberof PartnerTagsApiDeleteTag
483
+ * @memberof PartnerTagApiDeleteTag
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 PartnerTagsApiDeleteTag
490
+ * @memberof PartnerTagApiDeleteTag
491
491
  */
492
492
  readonly authorization?: string
493
493
  }
494
494
 
495
495
  /**
496
- * Request parameters for getTag operation in PartnerTagsApi.
496
+ * Request parameters for getTag operation in PartnerTagApi.
497
497
  * @export
498
- * @interface PartnerTagsApiGetTagRequest
498
+ * @interface PartnerTagApiGetTagRequest
499
499
  */
500
- export interface PartnerTagsApiGetTagRequest {
500
+ export interface PartnerTagApiGetTagRequest {
501
501
  /**
502
502
  * Unique identifier for the object.
503
503
  * @type {string}
504
- * @memberof PartnerTagsApiGetTag
504
+ * @memberof PartnerTagApiGetTag
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 PartnerTagsApiGetTag
511
+ * @memberof PartnerTagApiGetTag
512
512
  */
513
513
  readonly authorization?: string
514
514
  }
515
515
 
516
516
  /**
517
- * Request parameters for listTags operation in PartnerTagsApi.
517
+ * Request parameters for listTags operation in PartnerTagApi.
518
518
  * @export
519
- * @interface PartnerTagsApiListTagsRequest
519
+ * @interface PartnerTagApiListTagsRequest
520
520
  */
521
- export interface PartnerTagsApiListTagsRequest {
521
+ export interface PartnerTagApiListTagsRequest {
522
522
  /**
523
523
  * Bearer Token: provided by the login endpoint under the name accessToken.
524
524
  * @type {string}
525
- * @memberof PartnerTagsApiListTags
525
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
532
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
539
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
546
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
553
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
560
+ * @memberof PartnerTagApiListTags
561
561
  */
562
562
  readonly order?: string
563
563
 
564
564
  /**
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>
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/>
566
566
  * @type {string}
567
- * @memberof PartnerTagsApiListTags
567
+ * @memberof PartnerTagApiListTags
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 PartnerTagsApiListTags
574
+ * @memberof PartnerTagApiListTags
575
575
  */
576
576
  readonly filters?: string
577
577
  }
578
578
 
579
579
  /**
580
- * Request parameters for updateTag operation in PartnerTagsApi.
580
+ * Request parameters for updateTag operation in PartnerTagApi.
581
581
  * @export
582
- * @interface PartnerTagsApiUpdateTagRequest
582
+ * @interface PartnerTagApiUpdateTagRequest
583
583
  */
584
- export interface PartnerTagsApiUpdateTagRequest {
584
+ export interface PartnerTagApiUpdateTagRequest {
585
585
  /**
586
586
  *
587
587
  * @type {string}
588
- * @memberof PartnerTagsApiUpdateTag
588
+ * @memberof PartnerTagApiUpdateTag
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 PartnerTagsApiUpdateTag
595
+ * @memberof PartnerTagApiUpdateTag
596
596
  */
597
597
  readonly authorization?: string
598
598
  }
599
599
 
600
600
  /**
601
- * PartnerTagsApi - object-oriented interface
601
+ * PartnerTagApi - object-oriented interface
602
602
  * @export
603
- * @class PartnerTagsApi
603
+ * @class PartnerTagApi
604
604
  * @extends {BaseAPI}
605
605
  */
606
- export class PartnerTagsApi extends BaseAPI {
606
+ export class PartnerTagApi 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 {PartnerTagsApiCreateTagRequest} requestParameters Request parameters.
610
+ * @param {PartnerTagApiCreateTagRequest} requestParameters Request parameters.
611
611
  * @param {*} [options] Override http request option.
612
612
  * @throws {RequiredError}
613
- * @memberof PartnerTagsApi
613
+ * @memberof PartnerTagApi
614
614
  */
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));
615
+ public createTag(requestParameters: PartnerTagApiCreateTagRequest, options?: AxiosRequestConfig) {
616
+ return PartnerTagApiFp(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 {PartnerTagsApiDeleteTagRequest} requestParameters Request parameters.
622
+ * @param {PartnerTagApiDeleteTagRequest} requestParameters Request parameters.
623
623
  * @param {*} [options] Override http request option.
624
624
  * @throws {RequiredError}
625
- * @memberof PartnerTagsApi
625
+ * @memberof PartnerTagApi
626
626
  */
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));
627
+ public deleteTag(requestParameters: PartnerTagApiDeleteTagRequest, options?: AxiosRequestConfig) {
628
+ return PartnerTagApiFp(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 {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
634
+ * @param {PartnerTagApiGetTagRequest} requestParameters Request parameters.
635
635
  * @param {*} [options] Override http request option.
636
636
  * @throws {RequiredError}
637
- * @memberof PartnerTagsApi
637
+ * @memberof PartnerTagApi
638
638
  */
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));
639
+ public getTag(requestParameters: PartnerTagApiGetTagRequest, options?: AxiosRequestConfig) {
640
+ return PartnerTagApiFp(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 {PartnerTagsApiListTagsRequest} requestParameters Request parameters.
646
+ * @param {PartnerTagApiListTagsRequest} requestParameters Request parameters.
647
647
  * @param {*} [options] Override http request option.
648
648
  * @throws {RequiredError}
649
- * @memberof PartnerTagsApi
649
+ * @memberof PartnerTagApi
650
650
  */
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));
651
+ public listTags(requestParameters: PartnerTagApiListTagsRequest = {}, options?: AxiosRequestConfig) {
652
+ 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));
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 {PartnerTagsApiUpdateTagRequest} requestParameters Request parameters.
658
+ * @param {PartnerTagApiUpdateTagRequest} requestParameters Request parameters.
659
659
  * @param {*} [options] Override http request option.
660
660
  * @throws {RequiredError}
661
- * @memberof PartnerTagsApi
661
+ * @memberof PartnerTagApi
662
662
  */
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));
663
+ public updateTag(requestParameters: PartnerTagApiUpdateTagRequest, options?: AxiosRequestConfig) {
664
+ return PartnerTagApiFp(this.configuration).updateTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
665
665
  }
666
666
  }