@emilgroup/partner-sdk 1.11.1-beta.2 → 1.11.1-beta.4

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.
@@ -30,6 +30,7 @@ models/get-partner-response-class.ts
30
30
  models/get-partner-type-response-class.ts
31
31
  models/get-partner-version-response-class.ts
32
32
  models/get-tag-response-class.ts
33
+ models/grouped-related-partners-class.ts
33
34
  models/index.ts
34
35
  models/inline-response200.ts
35
36
  models/inline-response503.ts
@@ -41,6 +42,7 @@ models/list-partner-relation-types-class.ts
41
42
  models/list-partner-types-response-class.ts
42
43
  models/list-partner-versions-response-class.ts
43
44
  models/list-partners-response-class.ts
45
+ models/list-related-partners-response-class.ts
44
46
  models/list-tags-response-class.ts
45
47
  models/partner-class.ts
46
48
  models/partner-relation-class.ts
@@ -48,6 +50,7 @@ models/partner-relation-type-class.ts
48
50
  models/partner-type-class.ts
49
51
  models/partner-type-custom-schema-dto.ts
50
52
  models/permission-class.ts
53
+ models/related-partner-data-class.ts
51
54
  models/role-class.ts
52
55
  models/tag-class.ts
53
56
  models/tag-partner-request-dto-rest.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/partner-sdk@1.11.1-beta.2 --save
20
+ npm install @emilgroup/partner-sdk@1.11.1-beta.4 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/partner-sdk@1.11.1-beta.2
24
+ yarn add @emilgroup/partner-sdk@1.11.1-beta.4
25
25
  ```
26
26
 
27
27
  And then you can import `PartnersApi`.
@@ -31,6 +31,8 @@ import { GetPartnerResponseClass } from '../models';
31
31
  // @ts-ignore
32
32
  import { ListPartnersResponseClass } from '../models';
33
33
  // @ts-ignore
34
+ import { ListRelatedPartnersResponseClass } from '../models';
35
+ // @ts-ignore
34
36
  import { TagPartnerRequestDtoRest } from '../models';
35
37
  // @ts-ignore
36
38
  import { UpdatePartnerRequestDto } from '../models';
@@ -251,6 +253,86 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
251
253
 
252
254
 
253
255
 
256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
+
260
+ return {
261
+ url: toPathString(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ },
265
+ /**
266
+ * 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.
267
+ * @summary List grouped relations for partner
268
+ * @param {string} code
269
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
270
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
271
+ * @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.
272
+ * @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>
273
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
274
+ * @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>
275
+ * @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>
276
+ * @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>
277
+ * @param {*} [options] Override http request option.
278
+ * @throws {RequiredError}
279
+ */
280
+ listRelationsForPartner: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
281
+ // verify required parameter 'code' is not null or undefined
282
+ assertParamExists('listRelationsForPartner', 'code', code)
283
+ const localVarPath = `/partnerservice/v1/partners/{code}/relations`
284
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
286
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
287
+ let baseOptions;
288
+ let baseAccessToken;
289
+ if (configuration) {
290
+ baseOptions = configuration.baseOptions;
291
+ baseAccessToken = configuration.accessToken;
292
+ }
293
+
294
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
295
+ const localVarHeaderParameter = {} as any;
296
+ const localVarQueryParameter = {} as any;
297
+
298
+ // authentication bearer required
299
+ // http bearer authentication required
300
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
301
+
302
+ if (pageSize !== undefined) {
303
+ localVarQueryParameter['pageSize'] = pageSize;
304
+ }
305
+
306
+ if (pageToken !== undefined) {
307
+ localVarQueryParameter['pageToken'] = pageToken;
308
+ }
309
+
310
+ if (filter !== undefined) {
311
+ localVarQueryParameter['filter'] = filter;
312
+ }
313
+
314
+ if (search !== undefined) {
315
+ localVarQueryParameter['search'] = search;
316
+ }
317
+
318
+ if (order !== undefined) {
319
+ localVarQueryParameter['order'] = order;
320
+ }
321
+
322
+ if (expand !== undefined) {
323
+ localVarQueryParameter['expand'] = expand;
324
+ }
325
+
326
+ if (filters !== undefined) {
327
+ localVarQueryParameter['filters'] = filters;
328
+ }
329
+
330
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
331
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
332
+ }
333
+
334
+
335
+
254
336
  setSearchParams(localVarUrlObj, localVarQueryParameter);
255
337
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
338
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -427,6 +509,25 @@ export const PartnersApiFp = function(configuration?: Configuration) {
427
509
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
428
510
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
429
511
  },
512
+ /**
513
+ * 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.
514
+ * @summary List grouped relations for partner
515
+ * @param {string} code
516
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
517
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
518
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
519
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
520
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
521
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
522
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
523
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ async listRelationsForPartner(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRelatedPartnersResponseClass>> {
528
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
529
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
530
+ },
430
531
  /**
431
532
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
432
533
  * @summary Update the partner
@@ -514,6 +615,24 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
514
615
  listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass> {
515
616
  return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
516
617
  },
618
+ /**
619
+ * 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.
620
+ * @summary List grouped relations for partner
621
+ * @param {string} code
622
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
623
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
624
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
625
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
626
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
627
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
628
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
629
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ */
633
+ listRelationsForPartner(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass> {
634
+ return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
635
+ },
517
636
  /**
518
637
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
519
638
  * @summary Update the partner
@@ -674,6 +793,76 @@ export interface PartnersApiListPartnersRequest {
674
793
  readonly filters?: string
675
794
  }
676
795
 
796
+ /**
797
+ * Request parameters for listRelationsForPartner operation in PartnersApi.
798
+ * @export
799
+ * @interface PartnersApiListRelationsForPartnerRequest
800
+ */
801
+ export interface PartnersApiListRelationsForPartnerRequest {
802
+ /**
803
+ *
804
+ * @type {string}
805
+ * @memberof PartnersApiListRelationsForPartner
806
+ */
807
+ readonly code: string
808
+
809
+ /**
810
+ * Bearer Token: provided by the login endpoint under the name accessToken.
811
+ * @type {string}
812
+ * @memberof PartnersApiListRelationsForPartner
813
+ */
814
+ readonly authorization?: string
815
+
816
+ /**
817
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
818
+ * @type {any}
819
+ * @memberof PartnersApiListRelationsForPartner
820
+ */
821
+ readonly pageSize?: any
822
+
823
+ /**
824
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
825
+ * @type {any}
826
+ * @memberof PartnersApiListRelationsForPartner
827
+ */
828
+ readonly pageToken?: any
829
+
830
+ /**
831
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
832
+ * @type {string}
833
+ * @memberof PartnersApiListRelationsForPartner
834
+ */
835
+ readonly filter?: string
836
+
837
+ /**
838
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
839
+ * @type {any}
840
+ * @memberof PartnersApiListRelationsForPartner
841
+ */
842
+ readonly search?: any
843
+
844
+ /**
845
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
846
+ * @type {string}
847
+ * @memberof PartnersApiListRelationsForPartner
848
+ */
849
+ readonly order?: string
850
+
851
+ /**
852
+ * 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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
853
+ * @type {string}
854
+ * @memberof PartnersApiListRelationsForPartner
855
+ */
856
+ readonly expand?: string
857
+
858
+ /**
859
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
860
+ * @type {string}
861
+ * @memberof PartnersApiListRelationsForPartner
862
+ */
863
+ readonly filters?: string
864
+ }
865
+
677
866
  /**
678
867
  * Request parameters for tagPartner operation in PartnersApi.
679
868
  * @export
@@ -785,6 +974,18 @@ export class PartnersApi extends BaseAPI {
785
974
  return PartnersApiFp(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
786
975
  }
787
976
 
977
+ /**
978
+ * 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.
979
+ * @summary List grouped relations for partner
980
+ * @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
981
+ * @param {*} [options] Override http request option.
982
+ * @throws {RequiredError}
983
+ * @memberof PartnersApi
984
+ */
985
+ public listRelationsForPartner(requestParameters: PartnersApiListRelationsForPartnerRequest, options?: AxiosRequestConfig) {
986
+ return PartnersApiFp(this.configuration).listRelationsForPartner(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
987
+ }
988
+
788
989
  /**
789
990
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
790
991
  * @summary Update the partner
@@ -17,6 +17,7 @@ import { CreatePartnerResponseClass } from '../models';
17
17
  import { DeleteResponseClass } from '../models';
18
18
  import { GetPartnerResponseClass } from '../models';
19
19
  import { ListPartnersResponseClass } from '../models';
20
+ import { ListRelatedPartnersResponseClass } from '../models';
20
21
  import { TagPartnerRequestDtoRest } from '../models';
21
22
  import { UpdatePartnerRequestDto } from '../models';
22
23
  import { UpdatePartnerResponseClass } from '../models';
@@ -68,6 +69,22 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
68
69
  * @throws {RequiredError}
69
70
  */
70
71
  listPartners: (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
72
+ /**
73
+ * 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.
74
+ * @summary List grouped relations for partner
75
+ * @param {string} code
76
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
77
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
78
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
79
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
80
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
81
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
82
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
83
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ listRelationsForPartner: (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
71
88
  /**
72
89
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
73
90
  * @summary Update the partner
@@ -137,6 +154,22 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
137
154
  * @throws {RequiredError}
138
155
  */
139
156
  listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>>;
157
+ /**
158
+ * 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.
159
+ * @summary List grouped relations for partner
160
+ * @param {string} code
161
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
162
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
163
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
164
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
165
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
166
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
167
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
168
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ listRelationsForPartner(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRelatedPartnersResponseClass>>;
140
173
  /**
141
174
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
142
175
  * @summary Update the partner
@@ -206,6 +239,22 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
206
239
  * @throws {RequiredError}
207
240
  */
208
241
  listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnersResponseClass>;
242
+ /**
243
+ * 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.
244
+ * @summary List grouped relations for partner
245
+ * @param {string} code
246
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
247
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
248
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
249
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
250
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
251
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
252
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
253
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ listRelationsForPartner(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRelatedPartnersResponseClass>;
209
258
  /**
210
259
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
211
260
  * @summary Update the partner
@@ -345,6 +394,67 @@ export interface PartnersApiListPartnersRequest {
345
394
  */
346
395
  readonly filters?: string;
347
396
  }
397
+ /**
398
+ * Request parameters for listRelationsForPartner operation in PartnersApi.
399
+ * @export
400
+ * @interface PartnersApiListRelationsForPartnerRequest
401
+ */
402
+ export interface PartnersApiListRelationsForPartnerRequest {
403
+ /**
404
+ *
405
+ * @type {string}
406
+ * @memberof PartnersApiListRelationsForPartner
407
+ */
408
+ readonly code: string;
409
+ /**
410
+ * Bearer Token: provided by the login endpoint under the name accessToken.
411
+ * @type {string}
412
+ * @memberof PartnersApiListRelationsForPartner
413
+ */
414
+ readonly authorization?: string;
415
+ /**
416
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
417
+ * @type {any}
418
+ * @memberof PartnersApiListRelationsForPartner
419
+ */
420
+ readonly pageSize?: any;
421
+ /**
422
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
423
+ * @type {any}
424
+ * @memberof PartnersApiListRelationsForPartner
425
+ */
426
+ readonly pageToken?: any;
427
+ /**
428
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
429
+ * @type {string}
430
+ * @memberof PartnersApiListRelationsForPartner
431
+ */
432
+ readonly filter?: string;
433
+ /**
434
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
435
+ * @type {any}
436
+ * @memberof PartnersApiListRelationsForPartner
437
+ */
438
+ readonly search?: any;
439
+ /**
440
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
441
+ * @type {string}
442
+ * @memberof PartnersApiListRelationsForPartner
443
+ */
444
+ readonly order?: string;
445
+ /**
446
+ * 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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
447
+ * @type {string}
448
+ * @memberof PartnersApiListRelationsForPartner
449
+ */
450
+ readonly expand?: string;
451
+ /**
452
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
453
+ * @type {string}
454
+ * @memberof PartnersApiListRelationsForPartner
455
+ */
456
+ readonly filters?: string;
457
+ }
348
458
  /**
349
459
  * Request parameters for tagPartner operation in PartnersApi.
350
460
  * @export
@@ -438,6 +548,15 @@ export declare class PartnersApi extends BaseAPI {
438
548
  * @memberof PartnersApi
439
549
  */
440
550
  listPartners(requestParameters?: PartnersApiListPartnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnersResponseClass, any>>;
551
+ /**
552
+ * 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.
553
+ * @summary List grouped relations for partner
554
+ * @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ * @memberof PartnersApi
558
+ */
559
+ listRelationsForPartner(requestParameters: PartnersApiListRelationsForPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRelatedPartnersResponseClass, any>>;
441
560
  /**
442
561
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
443
562
  * @summary Update the partner
@@ -313,6 +313,82 @@ var PartnersApiAxiosParamCreator = function (configuration) {
313
313
  });
314
314
  });
315
315
  },
316
+ /**
317
+ * 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.
318
+ * @summary List grouped relations for partner
319
+ * @param {string} code
320
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
321
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
322
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
323
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
324
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
325
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
326
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
327
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
332
+ if (options === void 0) { options = {}; }
333
+ return __awaiter(_this, void 0, void 0, function () {
334
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
335
+ return __generator(this, function (_a) {
336
+ switch (_a.label) {
337
+ case 0:
338
+ // verify required parameter 'code' is not null or undefined
339
+ (0, common_1.assertParamExists)('listRelationsForPartner', 'code', code);
340
+ localVarPath = "/partnerservice/v1/partners/{code}/relations"
341
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
342
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
343
+ if (configuration) {
344
+ baseOptions = configuration.baseOptions;
345
+ baseAccessToken = configuration.accessToken;
346
+ }
347
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
348
+ localVarHeaderParameter = {};
349
+ localVarQueryParameter = {};
350
+ // authentication bearer required
351
+ // http bearer authentication required
352
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
353
+ case 1:
354
+ // authentication bearer required
355
+ // http bearer authentication required
356
+ _a.sent();
357
+ if (pageSize !== undefined) {
358
+ localVarQueryParameter['pageSize'] = pageSize;
359
+ }
360
+ if (pageToken !== undefined) {
361
+ localVarQueryParameter['pageToken'] = pageToken;
362
+ }
363
+ if (filter !== undefined) {
364
+ localVarQueryParameter['filter'] = filter;
365
+ }
366
+ if (search !== undefined) {
367
+ localVarQueryParameter['search'] = search;
368
+ }
369
+ if (order !== undefined) {
370
+ localVarQueryParameter['order'] = order;
371
+ }
372
+ if (expand !== undefined) {
373
+ localVarQueryParameter['expand'] = expand;
374
+ }
375
+ if (filters !== undefined) {
376
+ localVarQueryParameter['filters'] = filters;
377
+ }
378
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
379
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
380
+ }
381
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
382
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
383
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
384
+ return [2 /*return*/, {
385
+ url: (0, common_1.toPathString)(localVarUrlObj),
386
+ options: localVarRequestOptions,
387
+ }];
388
+ }
389
+ });
390
+ });
391
+ },
316
392
  /**
317
393
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
318
394
  * @summary Update the partner
@@ -520,6 +596,34 @@ var PartnersApiFp = function (configuration) {
520
596
  });
521
597
  });
522
598
  },
599
+ /**
600
+ * 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.
601
+ * @summary List grouped relations for partner
602
+ * @param {string} code
603
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
604
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
605
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
606
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
607
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
608
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
609
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
610
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
614
+ listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
615
+ return __awaiter(this, void 0, void 0, function () {
616
+ var localVarAxiosArgs;
617
+ return __generator(this, function (_a) {
618
+ switch (_a.label) {
619
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
620
+ case 1:
621
+ localVarAxiosArgs = _a.sent();
622
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
623
+ }
624
+ });
625
+ });
626
+ },
523
627
  /**
524
628
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
525
629
  * @summary Update the partner
@@ -625,6 +729,24 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
625
729
  listPartners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
626
730
  return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
627
731
  },
732
+ /**
733
+ * 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.
734
+ * @summary List grouped relations for partner
735
+ * @param {string} code
736
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
737
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
738
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
739
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
740
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
741
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partnerRelationTypeId, startDate, endDate, createdAt, updatedAt&lt;/i&gt;
742
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: partner1, partner2, partnerRelationType&lt;i&gt;
743
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, partner1Id, partner2Id, partnerRelationTypeSlug, partnerRelationTypeId&lt;/i&gt;
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ listRelationsForPartner: function (code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
748
+ return localVarFp.listRelationsForPartner(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
749
+ },
628
750
  /**
629
751
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
630
752
  * @summary Update the partner
@@ -712,6 +834,18 @@ var PartnersApi = /** @class */ (function (_super) {
712
834
  if (requestParameters === void 0) { requestParameters = {}; }
713
835
  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); });
714
836
  };
837
+ /**
838
+ * 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.
839
+ * @summary List grouped relations for partner
840
+ * @param {PartnersApiListRelationsForPartnerRequest} requestParameters Request parameters.
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ * @memberof PartnersApi
844
+ */
845
+ PartnersApi.prototype.listRelationsForPartner = function (requestParameters, options) {
846
+ var _this = this;
847
+ 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); });
848
+ };
715
849
  /**
716
850
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
717
851
  * @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 });
@@ -20,7 +20,7 @@ export interface UpdatePartnerRelationRequestDtoRest {
20
20
  * @type {string}
21
21
  * @memberof UpdatePartnerRelationRequestDtoRest
22
22
  */
23
- 'startDate'?: string;
23
+ 'startDate': string;
24
24
  /**
25
25
  * The end datetime of the relationship, provided in ISO 8601 format
26
26
  * @type {string}
@@ -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
 
@@ -0,0 +1,114 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface RelatedPartnerDataClass
21
+ */
22
+ export interface RelatedPartnerDataClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof RelatedPartnerDataClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Relation type slug to identify the type of the relation
31
+ * @type {string}
32
+ * @memberof RelatedPartnerDataClass
33
+ */
34
+ 'partnerRelationTypeSlug': string;
35
+ /**
36
+ * Starting date of the relation - will default to current time if not provided
37
+ * @type {string}
38
+ * @memberof RelatedPartnerDataClass
39
+ */
40
+ 'startDate': string;
41
+ /**
42
+ * Ending date of the relation - if not provided, the relation is considered active
43
+ * @type {string}
44
+ * @memberof RelatedPartnerDataClass
45
+ */
46
+ 'endDate': string;
47
+ /**
48
+ * Any additional notes for the relation
49
+ * @type {string}
50
+ * @memberof RelatedPartnerDataClass
51
+ */
52
+ 'note': string;
53
+ /**
54
+ * Time at which the object was created.
55
+ * @type {string}
56
+ * @memberof RelatedPartnerDataClass
57
+ */
58
+ 'createdAt': string;
59
+ /**
60
+ * Time at which the object was updated.
61
+ * @type {string}
62
+ * @memberof RelatedPartnerDataClass
63
+ */
64
+ 'updatedAt': string;
65
+ /**
66
+ * Identifier of the user who created the record.
67
+ * @type {string}
68
+ * @memberof RelatedPartnerDataClass
69
+ */
70
+ 'createdBy': string;
71
+ /**
72
+ * Identifier of the user who last updated the record.
73
+ * @type {string}
74
+ * @memberof RelatedPartnerDataClass
75
+ */
76
+ 'updatedBy': string;
77
+ /**
78
+ * Unique identifier of the partner that this object belongs to.
79
+ * @type {string}
80
+ * @memberof RelatedPartnerDataClass
81
+ */
82
+ 'partnerCode': string;
83
+ /**
84
+ * The display name of the specified partner
85
+ * @type {string}
86
+ * @memberof RelatedPartnerDataClass
87
+ */
88
+ 'partnerDisplayName': string;
89
+ /**
90
+ * The name of the relation from the perspective of the specified partner
91
+ * @type {string}
92
+ * @memberof RelatedPartnerDataClass
93
+ */
94
+ 'partnerRelationName': string;
95
+ /**
96
+ * Unique identifier of the related partner
97
+ * @type {string}
98
+ * @memberof RelatedPartnerDataClass
99
+ */
100
+ 'relatedPartnerCode': string;
101
+ /**
102
+ * The display name of the related partner
103
+ * @type {string}
104
+ * @memberof RelatedPartnerDataClass
105
+ */
106
+ 'relatedPartnerDisplayName': string;
107
+ /**
108
+ * The name of the relation from the perspective of the related partner
109
+ * @type {string}
110
+ * @memberof RelatedPartnerDataClass
111
+ */
112
+ 'relatedPartnerRelationName': string;
113
+ }
114
+
@@ -25,7 +25,7 @@ export interface UpdatePartnerRelationRequestDtoRest {
25
25
  * @type {string}
26
26
  * @memberof UpdatePartnerRelationRequestDtoRest
27
27
  */
28
- 'startDate'?: string;
28
+ 'startDate': string;
29
29
  /**
30
30
  * The end datetime of the relationship, provided in ISO 8601 format
31
31
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/partner-sdk",
3
- "version": "1.11.1-beta.2",
3
+ "version": "1.11.1-beta.4",
4
4
  "description": "OpenAPI client for @emilgroup/partner-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [