@emilgroup/partner-sdk-node 1.11.1-beta.1 → 1.11.1-beta.3

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.
@@ -251,11 +251,11 @@ var PartnersApiAxiosParamCreator = function (configuration) {
251
251
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
252
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
253
  * @param {any} [pageToken] 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.
254
- * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
254
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
255
255
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
256
256
  * @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: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
257
257
  * @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, tags<i>
258
- * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
258
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
259
259
  * @param {*} [options] Override http request option.
260
260
  * @throws {RequiredError}
261
261
  */
@@ -317,6 +317,82 @@ var PartnersApiAxiosParamCreator = function (configuration) {
317
317
  });
318
318
  });
319
319
  },
320
+ /**
321
+ * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
322
+ * @summary List grouped relations for partner
323
+ * @param {string} code
324
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
325
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
326
+ * @param {any} [pageToken] 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.
327
+ * @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: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
328
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
329
+ * @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: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
330
+ * @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: partner1, partner2, partnerRelationType<i>
331
+ * @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: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
336
+ if (options === void 0) { options = {}; }
337
+ return __awaiter(_this, void 0, void 0, function () {
338
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
339
+ return __generator(this, function (_a) {
340
+ switch (_a.label) {
341
+ case 0:
342
+ // verify required parameter 'code' is not null or undefined
343
+ (0, common_1.assertParamExists)('listRelationsForPartner', 'code', code);
344
+ localVarPath = "/partnerservice/v1/partners/{code}/relations"
345
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
346
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
347
+ if (configuration) {
348
+ baseOptions = configuration.baseOptions;
349
+ baseAccessToken = configuration.accessToken;
350
+ }
351
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
352
+ localVarHeaderParameter = {};
353
+ localVarQueryParameter = {};
354
+ // authentication bearer required
355
+ // http bearer authentication required
356
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
357
+ case 1:
358
+ // authentication bearer required
359
+ // http bearer authentication required
360
+ _a.sent();
361
+ if (pageSize !== undefined) {
362
+ localVarQueryParameter['pageSize'] = pageSize;
363
+ }
364
+ if (pageToken !== undefined) {
365
+ localVarQueryParameter['pageToken'] = pageToken;
366
+ }
367
+ if (filter !== undefined) {
368
+ localVarQueryParameter['filter'] = filter;
369
+ }
370
+ if (search !== undefined) {
371
+ localVarQueryParameter['search'] = search;
372
+ }
373
+ if (order !== undefined) {
374
+ localVarQueryParameter['order'] = order;
375
+ }
376
+ if (expand !== undefined) {
377
+ localVarQueryParameter['expand'] = expand;
378
+ }
379
+ if (filters !== undefined) {
380
+ localVarQueryParameter['filters'] = filters;
381
+ }
382
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
383
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
384
+ }
385
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
386
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
387
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
388
+ return [2 /*return*/, {
389
+ url: (0, common_1.toPathString)(localVarUrlObj),
390
+ options: localVarRequestOptions,
391
+ }];
392
+ }
393
+ });
394
+ });
395
+ },
320
396
  /**
321
397
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
322
398
  * @summary Update the partner
@@ -503,11 +579,11 @@ var PartnersApiFp = function (configuration) {
503
579
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
504
580
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
505
581
  * @param {any} [pageToken] 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.
506
- * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
582
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
507
583
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
508
584
  * @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: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
509
585
  * @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, tags<i>
510
- * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
586
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
511
587
  * @param {*} [options] Override http request option.
512
588
  * @throws {RequiredError}
513
589
  */
@@ -524,6 +600,34 @@ var PartnersApiFp = function (configuration) {
524
600
  });
525
601
  });
526
602
  },
603
+ /**
604
+ * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
605
+ * @summary List grouped relations for partner
606
+ * @param {string} code
607
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
608
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
609
+ * @param {any} [pageToken] 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.
610
+ * @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: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
611
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
612
+ * @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: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
613
+ * @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: partner1, partner2, partnerRelationType<i>
614
+ * @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: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
619
+ return __awaiter(this, void 0, void 0, function () {
620
+ var localVarAxiosArgs;
621
+ return __generator(this, function (_a) {
622
+ switch (_a.label) {
623
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
624
+ case 1:
625
+ localVarAxiosArgs = _a.sent();
626
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
627
+ }
628
+ });
629
+ });
630
+ },
527
631
  /**
528
632
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
529
633
  * @summary Update the partner
@@ -618,17 +722,35 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
618
722
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
619
723
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
620
724
  * @param {any} [pageToken] 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.
621
- * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
725
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
622
726
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
623
727
  * @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: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
624
728
  * @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, tags<i>
625
- * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
729
+ * @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: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode, partnerNumber</i>
626
730
  * @param {*} [options] Override http request option.
627
731
  * @throws {RequiredError}
628
732
  */
629
733
  listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
630
734
  return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
631
735
  },
736
+ /**
737
+ * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
738
+ * @summary List grouped relations for partner
739
+ * @param {string} code
740
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
741
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
742
+ * @param {any} [pageToken] 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.
743
+ * @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: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
744
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
745
+ * @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: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt</i>
746
+ * @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: partner1, partner2, partnerRelationType<i>
747
+ * @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: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId</i>
748
+ * @param {*} [options] Override http request option.
749
+ * @throws {RequiredError}
750
+ */
751
+ listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
752
+ return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
753
+ },
632
754
  /**
633
755
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
634
756
  * @summary Update the partner
@@ -716,6 +838,18 @@ var PartnersApi = /** @class */ (function (_super) {
716
838
  if (requestParameters === void 0) { requestParameters = {}; }
717
839
  return (0, exports.PartnersApiFp)(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
718
840
  };
841
+ /**
842
+ * Returns a list of grouped relations for partner you have previously created. The grouped relations for partner are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
843
+ * @summary List grouped relations for partner
844
+ * @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
845
+ * @param {*} [options] Override http request option.
846
+ * @throws {RequiredError}
847
+ * @memberof PartnersApi
848
+ */
849
+ PartnersApi.prototype.listRelationsForPartner = function (requestParameters, options) {
850
+ var _this = this;
851
+ return (0, exports.PartnersApiFp)(this.configuration).listRelationsForPartner(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
852
+ };
719
853
  /**
720
854
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
721
855
  * @summary Update the partner
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL PartnerService
3
+ * The EMIL PartnerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { RelatedPartnerDataClass } from './related-partner-data-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GroupedRelatedPartnersClass
17
+ */
18
+ export interface GroupedRelatedPartnersClass {
19
+ /**
20
+ * Relation name for the group
21
+ * @type {string}
22
+ * @memberof GroupedRelatedPartnersClass
23
+ */
24
+ 'relationName': string;
25
+ /**
26
+ * Relations belonging to the group
27
+ * @type {Array<RelatedPartnerDataClass>}
28
+ * @memberof GroupedRelatedPartnersClass
29
+ */
30
+ 'relatedPartners': Array<RelatedPartnerDataClass>;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,6 +13,7 @@ export * from './get-partner-response-class';
13
13
  export * from './get-partner-type-response-class';
14
14
  export * from './get-partner-version-response-class';
15
15
  export * from './get-tag-response-class';
16
+ export * from './grouped-related-partners-class';
16
17
  export * from './inline-response200';
17
18
  export * from './inline-response503';
18
19
  export * from './invite-class';
@@ -23,6 +24,7 @@ export * from './list-partner-relation-types-class';
23
24
  export * from './list-partner-types-response-class';
24
25
  export * from './list-partner-versions-response-class';
25
26
  export * from './list-partners-response-class';
27
+ export * from './list-related-partners-response-class';
26
28
  export * from './list-tags-response-class';
27
29
  export * from './partner-class';
28
30
  export * from './partner-relation-class';
@@ -30,6 +32,7 @@ export * from './partner-relation-type-class';
30
32
  export * from './partner-type-class';
31
33
  export * from './partner-type-custom-schema-dto';
32
34
  export * from './permission-class';
35
+ export * from './related-partner-data-class';
33
36
  export * from './role-class';
34
37
  export * from './tag-class';
35
38
  export * from './tag-partner-request-dto-rest';
@@ -29,6 +29,7 @@ __exportStar(require("./get-partner-response-class"), exports);
29
29
  __exportStar(require("./get-partner-type-response-class"), exports);
30
30
  __exportStar(require("./get-partner-version-response-class"), exports);
31
31
  __exportStar(require("./get-tag-response-class"), exports);
32
+ __exportStar(require("./grouped-related-partners-class"), exports);
32
33
  __exportStar(require("./inline-response200"), exports);
33
34
  __exportStar(require("./inline-response503"), exports);
34
35
  __exportStar(require("./invite-class"), exports);
@@ -39,6 +40,7 @@ __exportStar(require("./list-partner-relation-types-class"), exports);
39
40
  __exportStar(require("./list-partner-types-response-class"), exports);
40
41
  __exportStar(require("./list-partner-versions-response-class"), exports);
41
42
  __exportStar(require("./list-partners-response-class"), exports);
43
+ __exportStar(require("./list-related-partners-response-class"), exports);
42
44
  __exportStar(require("./list-tags-response-class"), exports);
43
45
  __exportStar(require("./partner-class"), exports);
44
46
  __exportStar(require("./partner-relation-class"), exports);
@@ -46,6 +48,7 @@ __exportStar(require("./partner-relation-type-class"), exports);
46
48
  __exportStar(require("./partner-type-class"), exports);
47
49
  __exportStar(require("./partner-type-custom-schema-dto"), exports);
48
50
  __exportStar(require("./permission-class"), exports);
51
+ __exportStar(require("./related-partner-data-class"), exports);
49
52
  __exportStar(require("./role-class"), exports);
50
53
  __exportStar(require("./tag-class"), exports);
51
54
  __exportStar(require("./tag-partner-request-dto-rest"), exports);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL PartnerService
3
+ * The EMIL PartnerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { GroupedRelatedPartnersClass } from './grouped-related-partners-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListRelatedPartnersResponseClass
17
+ */
18
+ export interface ListRelatedPartnersResponseClass {
19
+ /**
20
+ * The list of grouped relations for partner
21
+ * @type {Array<GroupedRelatedPartnersClass>}
22
+ * @memberof ListRelatedPartnersResponseClass
23
+ */
24
+ 'items': Array<GroupedRelatedPartnersClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListRelatedPartnersResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -75,4 +75,16 @@ export interface PartnerRelationTypeClass {
75
75
  * @memberof PartnerRelationTypeClass
76
76
  */
77
77
  'updatedBy': string;
78
+ /**
79
+ * The name of the relation from the perspective of the first partner
80
+ * @type {string}
81
+ * @memberof PartnerRelationTypeClass
82
+ */
83
+ 'partner1RelationName': string;
84
+ /**
85
+ * The name of the relation from the perspective of the second partner
86
+ * @type {string}
87
+ * @memberof PartnerRelationTypeClass
88
+ */
89
+ 'partner2RelationName': string;
78
90
  }
@@ -0,0 +1,108 @@
1
+ /**
2
+ * EMIL PartnerService
3
+ * The EMIL PartnerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface RelatedPartnerDataClass
16
+ */
17
+ export interface RelatedPartnerDataClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof RelatedPartnerDataClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Relation type slug to identify the type of the relation
26
+ * @type {string}
27
+ * @memberof RelatedPartnerDataClass
28
+ */
29
+ 'partnerRelationTypeSlug': string;
30
+ /**
31
+ * Starting date of the relation - will default to current time if not provided
32
+ * @type {string}
33
+ * @memberof RelatedPartnerDataClass
34
+ */
35
+ 'startDate': string;
36
+ /**
37
+ * Ending date of the relation - if not provided, the relation is considered active
38
+ * @type {string}
39
+ * @memberof RelatedPartnerDataClass
40
+ */
41
+ 'endDate': string;
42
+ /**
43
+ * Any additional notes for the relation
44
+ * @type {string}
45
+ * @memberof RelatedPartnerDataClass
46
+ */
47
+ 'note': string;
48
+ /**
49
+ * Time at which the object was created.
50
+ * @type {string}
51
+ * @memberof RelatedPartnerDataClass
52
+ */
53
+ 'createdAt': string;
54
+ /**
55
+ * Time at which the object was updated.
56
+ * @type {string}
57
+ * @memberof RelatedPartnerDataClass
58
+ */
59
+ 'updatedAt': string;
60
+ /**
61
+ * Identifier of the user who created the record.
62
+ * @type {string}
63
+ * @memberof RelatedPartnerDataClass
64
+ */
65
+ 'createdBy': string;
66
+ /**
67
+ * Identifier of the user who last updated the record.
68
+ * @type {string}
69
+ * @memberof RelatedPartnerDataClass
70
+ */
71
+ 'updatedBy': string;
72
+ /**
73
+ * Unique identifier of the partner that this object belongs to.
74
+ * @type {string}
75
+ * @memberof RelatedPartnerDataClass
76
+ */
77
+ 'partnerCode': string;
78
+ /**
79
+ * The display name of the specified partner
80
+ * @type {string}
81
+ * @memberof RelatedPartnerDataClass
82
+ */
83
+ 'partnerDisplayName': string;
84
+ /**
85
+ * The name of the relation from the perspective of the specified partner
86
+ * @type {string}
87
+ * @memberof RelatedPartnerDataClass
88
+ */
89
+ 'partnerRelationName': string;
90
+ /**
91
+ * Unique identifier of the related partner
92
+ * @type {string}
93
+ * @memberof RelatedPartnerDataClass
94
+ */
95
+ 'relatedPartnerCode': string;
96
+ /**
97
+ * The display name of the related partner
98
+ * @type {string}
99
+ * @memberof RelatedPartnerDataClass
100
+ */
101
+ 'relatedPartnerDisplayName': string;
102
+ /**
103
+ * The name of the relation from the perspective of the related partner
104
+ * @type {string}
105
+ * @memberof RelatedPartnerDataClass
106
+ */
107
+ 'relatedPartnerRelationName': string;
108
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { RelatedPartnerDataClass } from './related-partner-data-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GroupedRelatedPartnersClass
22
+ */
23
+ export interface GroupedRelatedPartnersClass {
24
+ /**
25
+ * Relation name for the group
26
+ * @type {string}
27
+ * @memberof GroupedRelatedPartnersClass
28
+ */
29
+ 'relationName': string;
30
+ /**
31
+ * Relations belonging to the group
32
+ * @type {Array<RelatedPartnerDataClass>}
33
+ * @memberof GroupedRelatedPartnersClass
34
+ */
35
+ 'relatedPartners': Array<RelatedPartnerDataClass>;
36
+ }
37
+
package/models/index.ts CHANGED
@@ -13,6 +13,7 @@ export * from './get-partner-response-class';
13
13
  export * from './get-partner-type-response-class';
14
14
  export * from './get-partner-version-response-class';
15
15
  export * from './get-tag-response-class';
16
+ export * from './grouped-related-partners-class';
16
17
  export * from './inline-response200';
17
18
  export * from './inline-response503';
18
19
  export * from './invite-class';
@@ -23,6 +24,7 @@ export * from './list-partner-relation-types-class';
23
24
  export * from './list-partner-types-response-class';
24
25
  export * from './list-partner-versions-response-class';
25
26
  export * from './list-partners-response-class';
27
+ export * from './list-related-partners-response-class';
26
28
  export * from './list-tags-response-class';
27
29
  export * from './partner-class';
28
30
  export * from './partner-relation-class';
@@ -30,6 +32,7 @@ export * from './partner-relation-type-class';
30
32
  export * from './partner-type-class';
31
33
  export * from './partner-type-custom-schema-dto';
32
34
  export * from './permission-class';
35
+ export * from './related-partner-data-class';
33
36
  export * from './role-class';
34
37
  export * from './tag-class';
35
38
  export * from './tag-partner-request-dto-rest';
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PartnerService
5
+ * The EMIL PartnerService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { GroupedRelatedPartnersClass } from './grouped-related-partners-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListRelatedPartnersResponseClass
22
+ */
23
+ export interface ListRelatedPartnersResponseClass {
24
+ /**
25
+ * The list of grouped relations for partner
26
+ * @type {Array<GroupedRelatedPartnersClass>}
27
+ * @memberof ListRelatedPartnersResponseClass
28
+ */
29
+ 'items': Array<GroupedRelatedPartnersClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListRelatedPartnersResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -80,5 +80,17 @@ export interface PartnerRelationTypeClass {
80
80
  * @memberof PartnerRelationTypeClass
81
81
  */
82
82
  'updatedBy': string;
83
+ /**
84
+ * The name of the relation from the perspective of the first partner
85
+ * @type {string}
86
+ * @memberof PartnerRelationTypeClass
87
+ */
88
+ 'partner1RelationName': string;
89
+ /**
90
+ * The name of the relation from the perspective of the second partner
91
+ * @type {string}
92
+ * @memberof PartnerRelationTypeClass
93
+ */
94
+ 'partner2RelationName': string;
83
95
  }
84
96