@emilgroup/partner-sdk 1.0.1 → 1.2.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/.openapi-generator/FILES +21 -1
  2. package/README.md +2 -2
  3. package/api/default-api.ts +8 -4
  4. package/api/partner-relations-api.ts +968 -0
  5. package/api/partner-tags-api.ts +662 -0
  6. package/api/partner-types-api.ts +36 -22
  7. package/api/partner-version-api.ts +375 -0
  8. package/api/partners-api.ts +154 -22
  9. package/api.ts +6 -0
  10. package/base.ts +6 -1
  11. package/dist/api/default-api.d.ts +8 -4
  12. package/dist/api/default-api.js +8 -4
  13. package/dist/api/partner-relations-api.d.ts +550 -0
  14. package/dist/api/partner-relations-api.js +857 -0
  15. package/dist/api/partner-tags-api.d.ts +375 -0
  16. package/dist/api/partner-tags-api.js +629 -0
  17. package/dist/api/partner-types-api.d.ts +28 -19
  18. package/dist/api/partner-types-api.js +26 -20
  19. package/dist/api/partner-version-api.d.ts +224 -0
  20. package/dist/api/partner-version-api.js +363 -0
  21. package/dist/api/partners-api.d.ts +93 -19
  22. package/dist/api/partners-api.js +125 -20
  23. package/dist/api.d.ts +3 -0
  24. package/dist/api.js +3 -0
  25. package/dist/base.d.ts +1 -0
  26. package/dist/base.js +5 -1
  27. package/dist/models/create-partner-relation-request-dto-rest.d.ts +65 -0
  28. package/dist/models/create-partner-relation-request-dto-rest.js +26 -0
  29. package/dist/models/create-partner-relation-response-class.d.ts +25 -0
  30. package/dist/models/create-partner-type-request-dto.d.ts +13 -3
  31. package/dist/models/create-partner-type-request-dto.js +5 -0
  32. package/dist/models/create-tag-request-dto.d.ts +36 -0
  33. package/dist/models/create-tag-request-dto.js +15 -0
  34. package/dist/models/create-tag-response-class.d.ts +25 -0
  35. package/dist/models/create-tag-response-class.js +15 -0
  36. package/dist/models/get-partner-relation-class.d.ts +25 -0
  37. package/dist/models/get-partner-relation-class.js +15 -0
  38. package/dist/models/get-partner-relation-type-class.d.ts +25 -0
  39. package/dist/models/get-partner-relation-type-class.js +15 -0
  40. package/dist/models/get-partner-version-response-class.d.ts +25 -0
  41. package/dist/models/get-partner-version-response-class.js +15 -0
  42. package/dist/models/get-tag-response-class.d.ts +25 -0
  43. package/dist/models/get-tag-response-class.js +15 -0
  44. package/dist/models/index.d.ts +18 -1
  45. package/dist/models/index.js +18 -1
  46. package/dist/models/list-partner-relation-class.d.ts +31 -0
  47. package/dist/models/list-partner-relation-class.js +15 -0
  48. package/dist/models/list-partner-relation-types-class.d.ts +31 -0
  49. package/dist/models/list-partner-relation-types-class.js +15 -0
  50. package/dist/models/list-partner-versions-response-class.d.ts +25 -0
  51. package/dist/models/list-partner-versions-response-class.js +15 -0
  52. package/dist/models/list-tags-response-class.d.ts +31 -0
  53. package/dist/models/list-tags-response-class.js +15 -0
  54. package/dist/models/partner-class.d.ts +18 -0
  55. package/dist/models/partner-relation-class.d.ts +72 -0
  56. package/dist/models/partner-relation-class.js +15 -0
  57. package/dist/models/partner-relation-type-class.d.ts +66 -0
  58. package/dist/models/partner-relation-type-class.js +15 -0
  59. package/dist/models/partner-type-class.d.ts +11 -0
  60. package/dist/models/partner-type-class.js +5 -0
  61. package/dist/models/tag-class.d.ts +54 -0
  62. package/dist/models/tag-class.js +15 -0
  63. package/dist/models/tag-partner-request-dto-rest.d.ts +24 -0
  64. package/dist/models/tag-partner-request-dto-rest.js +15 -0
  65. package/dist/models/update-partner-relation-request-dto-rest.d.ts +36 -0
  66. package/dist/models/update-partner-relation-request-dto-rest.js +15 -0
  67. package/dist/models/update-partner-type-request-dto.d.ts +20 -4
  68. package/dist/models/update-partner-type-request-dto.js +5 -0
  69. package/dist/models/update-tag-response-class.d.ts +25 -0
  70. package/dist/models/update-tag-response-class.js +15 -0
  71. package/models/create-partner-relation-request-dto-rest.ts +74 -0
  72. package/models/create-partner-relation-response-class.ts +31 -0
  73. package/models/create-partner-type-request-dto.ts +16 -3
  74. package/models/create-tag-request-dto.ts +42 -0
  75. package/models/create-tag-response-class.ts +31 -0
  76. package/models/get-partner-relation-class.ts +31 -0
  77. package/models/get-partner-relation-type-class.ts +31 -0
  78. package/models/get-partner-version-response-class.ts +31 -0
  79. package/models/get-tag-response-class.ts +31 -0
  80. package/models/index.ts +18 -1
  81. package/models/list-partner-relation-class.ts +37 -0
  82. package/models/list-partner-relation-types-class.ts +37 -0
  83. package/models/list-partner-versions-response-class.ts +31 -0
  84. package/models/list-tags-response-class.ts +37 -0
  85. package/models/partner-class.ts +18 -0
  86. package/models/partner-relation-class.ts +78 -0
  87. package/models/partner-relation-type-class.ts +72 -0
  88. package/models/partner-type-class.ts +14 -0
  89. package/models/tag-class.ts +60 -0
  90. package/models/tag-partner-request-dto-rest.ts +30 -0
  91. package/models/update-partner-relation-request-dto-rest.ts +42 -0
  92. package/models/update-partner-type-request-dto.ts +23 -4
  93. package/models/update-tag-response-class.ts +31 -0
  94. package/package.json +1 -1
  95. package/dist/models/partner-type-custom-schema-dto.d.ts +0 -66
  96. package/models/partner-type-custom-schema-dto.ts +0 -72
  97. /package/dist/models/{partner-type-custom-schema-dto.js → create-partner-relation-response-class.js} +0 -0
@@ -31,6 +31,8 @@ import { GetPartnerResponseClass } from '../models';
31
31
  // @ts-ignore
32
32
  import { ListPartnersResponseClass } from '../models';
33
33
  // @ts-ignore
34
+ import { TagPartnerRequestDtoRest } from '../models';
35
+ // @ts-ignore
34
36
  import { UpdatePartnerRequestDto } from '../models';
35
37
  // @ts-ignore
36
38
  import { UpdatePartnerResponseClass } from '../models';
@@ -133,7 +135,7 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
133
135
  };
134
136
  },
135
137
  /**
136
- * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
138
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
137
139
  * @summary Retrieve the partner
138
140
  * @param {string} code Unique identifier for the object.
139
141
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -183,19 +185,20 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
183
185
  };
184
186
  },
185
187
  /**
186
- * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
188
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
187
189
  * @summary List partners
188
190
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
191
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
192
  * @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.
191
193
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
192
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
194
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
193
195
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
194
196
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
197
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
195
198
  * @param {*} [options] Override http request option.
196
199
  * @throws {RequiredError}
197
200
  */
198
- listPartners: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ listPartners: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
202
  const localVarPath = `/partnerservice/v1/partners`;
200
203
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
201
204
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -238,15 +241,70 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
238
241
  localVarQueryParameter['expand'] = expand;
239
242
  }
240
243
 
244
+ if (filters !== undefined) {
245
+ localVarQueryParameter['filters'] = filters;
246
+ }
247
+
248
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
249
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
+ }
251
+
252
+
253
+
254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
257
+
258
+ return {
259
+ url: toPathString(localVarUrlObj),
260
+ options: localVarRequestOptions,
261
+ };
262
+ },
263
+ /**
264
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
265
+ * @summary Update the partner
266
+ * @param {string} code
267
+ * @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
268
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ tagPartner: async (code: string, tagPartnerRequestDtoRest: TagPartnerRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
273
+ // verify required parameter 'code' is not null or undefined
274
+ assertParamExists('tagPartner', 'code', code)
275
+ // verify required parameter 'tagPartnerRequestDtoRest' is not null or undefined
276
+ assertParamExists('tagPartner', 'tagPartnerRequestDtoRest', tagPartnerRequestDtoRest)
277
+ const localVarPath = `/partnerservice/v1/partners/{code}/tag`
278
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
279
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
280
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
281
+ let baseOptions;
282
+ let baseAccessToken;
283
+ if (configuration) {
284
+ baseOptions = configuration.baseOptions;
285
+ baseAccessToken = configuration.accessToken;
286
+ }
287
+
288
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
289
+ const localVarHeaderParameter = {} as any;
290
+ const localVarQueryParameter = {} as any;
291
+
292
+ // authentication bearer required
293
+ // http bearer authentication required
294
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
295
+
241
296
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
242
297
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
298
  }
244
299
 
245
300
 
246
301
 
302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
303
+
247
304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
248
305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
306
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
307
+ localVarRequestOptions.data = serializeDataIfNeeded(tagPartnerRequestDtoRest, localVarRequestOptions, configuration)
250
308
 
251
309
  return {
252
310
  url: toPathString(localVarUrlObj),
@@ -339,7 +397,7 @@ export const PartnersApiFp = function(configuration?: Configuration) {
339
397
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
340
398
  },
341
399
  /**
342
- * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
400
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
343
401
  * @summary Retrieve the partner
344
402
  * @param {string} code Unique identifier for the object.
345
403
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -352,20 +410,34 @@ export const PartnersApiFp = function(configuration?: Configuration) {
352
410
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
353
411
  },
354
412
  /**
355
- * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
413
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
356
414
  * @summary List partners
357
415
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
358
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
416
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
359
417
  * @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.
360
418
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
361
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
419
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
362
420
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
363
421
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
422
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
364
423
  * @param {*} [options] Override http request option.
365
424
  * @throws {RequiredError}
366
425
  */
367
- async listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>> {
368
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options);
426
+ async listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>> {
427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
428
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
429
+ },
430
+ /**
431
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
432
+ * @summary Update the partner
433
+ * @param {string} code
434
+ * @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
435
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ async tagPartner(code: string, tagPartnerRequestDtoRest: TagPartnerRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerResponseClass>> {
440
+ const localVarAxiosArgs = await localVarAxiosParamCreator.tagPartner(code, tagPartnerRequestDtoRest, authorization, options);
369
441
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
370
442
  },
371
443
  /**
@@ -414,7 +486,7 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
414
486
  return localVarFp.deletePartner(code, authorization, options).then((request) => request(axios, basePath));
415
487
  },
416
488
  /**
417
- * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
489
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
418
490
  * @summary Retrieve the partner
419
491
  * @param {string} code Unique identifier for the object.
420
492
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -426,20 +498,33 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
426
498
  return localVarFp.getPartner(code, authorization, expand, options).then((request) => request(axios, basePath));
427
499
  },
428
500
  /**
429
- * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
501
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
430
502
  * @summary List partners
431
503
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
504
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
433
505
  * @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.
434
506
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
435
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
507
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
436
508
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
437
509
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
510
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
438
511
  * @param {*} [options] Override http request option.
439
512
  * @throws {RequiredError}
440
513
  */
441
- listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnersResponseClass> {
442
- return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
514
+ listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPartnersResponseClass> {
515
+ return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
516
+ },
517
+ /**
518
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
519
+ * @summary Update the partner
520
+ * @param {string} code
521
+ * @param {TagPartnerRequestDtoRest} tagPartnerRequestDtoRest
522
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ tagPartner(code: string, tagPartnerRequestDtoRest: TagPartnerRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetPartnerResponseClass> {
527
+ return localVarFp.tagPartner(code, tagPartnerRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
443
528
  },
444
529
  /**
445
530
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -540,7 +625,7 @@ export interface PartnersApiListPartnersRequest {
540
625
  readonly authorization?: string
541
626
 
542
627
  /**
543
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
628
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
544
629
  * @type {any}
545
630
  * @memberof PartnersApiListPartners
546
631
  */
@@ -561,7 +646,7 @@ export interface PartnersApiListPartnersRequest {
561
646
  readonly filter?: any
562
647
 
563
648
  /**
564
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
649
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
565
650
  * @type {any}
566
651
  * @memberof PartnersApiListPartners
567
652
  */
@@ -580,6 +665,41 @@ export interface PartnersApiListPartnersRequest {
580
665
  * @memberof PartnersApiListPartners
581
666
  */
582
667
  readonly expand?: any
668
+
669
+ /**
670
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
671
+ * @type {any}
672
+ * @memberof PartnersApiListPartners
673
+ */
674
+ readonly filters?: any
675
+ }
676
+
677
+ /**
678
+ * Request parameters for tagPartner operation in PartnersApi.
679
+ * @export
680
+ * @interface PartnersApiTagPartnerRequest
681
+ */
682
+ export interface PartnersApiTagPartnerRequest {
683
+ /**
684
+ *
685
+ * @type {string}
686
+ * @memberof PartnersApiTagPartner
687
+ */
688
+ readonly code: string
689
+
690
+ /**
691
+ *
692
+ * @type {TagPartnerRequestDtoRest}
693
+ * @memberof PartnersApiTagPartner
694
+ */
695
+ readonly tagPartnerRequestDtoRest: TagPartnerRequestDtoRest
696
+
697
+ /**
698
+ * Bearer Token: provided by the login endpoint under the name accessToken.
699
+ * @type {string}
700
+ * @memberof PartnersApiTagPartner
701
+ */
702
+ readonly authorization?: string
583
703
  }
584
704
 
585
705
  /**
@@ -642,7 +762,7 @@ export class PartnersApi extends BaseAPI {
642
762
  }
643
763
 
644
764
  /**
645
- * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
765
+ * Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
646
766
  * @summary Retrieve the partner
647
767
  * @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
648
768
  * @param {*} [options] Override http request option.
@@ -654,7 +774,7 @@ export class PartnersApi extends BaseAPI {
654
774
  }
655
775
 
656
776
  /**
657
- * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
777
+ * Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
658
778
  * @summary List partners
659
779
  * @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
660
780
  * @param {*} [options] Override http request option.
@@ -662,7 +782,19 @@ export class PartnersApi extends BaseAPI {
662
782
  * @memberof PartnersApi
663
783
  */
664
784
  public listPartners(requestParameters: PartnersApiListPartnersRequest = {}, options?: AxiosRequestConfig) {
665
- return PartnersApiFp(this.configuration).listPartners(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
785
+ 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
+ }
787
+
788
+ /**
789
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
790
+ * @summary Update the partner
791
+ * @param {PartnersApiTagPartnerRequest} requestParameters Request parameters.
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ * @memberof PartnersApi
795
+ */
796
+ public tagPartner(requestParameters: PartnersApiTagPartnerRequest, options?: AxiosRequestConfig) {
797
+ return PartnersApiFp(this.configuration).tagPartner(requestParameters.code, requestParameters.tagPartnerRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
666
798
  }
667
799
 
668
800
  /**
package/api.ts CHANGED
@@ -21,11 +21,17 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { DefaultApi } from './api';
24
+ import { PartnerRelationsApi } from './api';
25
+ import { PartnerTagsApi } from './api';
24
26
  import { PartnerTypesApi } from './api';
27
+ import { PartnerVersionApi } from './api';
25
28
  import { PartnersApi } from './api';
26
29
 
27
30
 
28
31
  export * from './api/default-api';
32
+ export * from './api/partner-relations-api';
33
+ export * from './api/partner-tags-api';
29
34
  export * from './api/partner-types-api';
35
+ export * from './api/partner-version-api';
30
36
  export * from './api/partners-api';
31
37
 
package/base.ts CHANGED
@@ -87,6 +87,7 @@ export class BaseAPI {
87
87
  if (configuration) {
88
88
  this.configuration = configuration;
89
89
  this.basePath = configuration.basePath || this.basePath;
90
+ this.configuration.accessToken = this.tokenData.accessToken ? `Bearer ${this.tokenData.accessToken}` : '';
90
91
  } else {
91
92
  const { accessToken, username } = this.tokenData;
92
93
 
@@ -101,7 +102,11 @@ export class BaseAPI {
101
102
  }
102
103
 
103
104
  selectEnvironment(env: Environment) {
104
- this.configuration.basePath = env;
105
+ this.selectBasePath(env);
106
+ }
107
+
108
+ selectBasePath(path: string) {
109
+ this.configuration.basePath = path;
105
110
  }
106
111
 
107
112
  async authorize(username: string, password: string): Promise<void> {
@@ -19,7 +19,8 @@ import { InlineResponse200 } from '../models';
19
19
  */
20
20
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
- *
22
+ * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
23
+ * @summary Health Check
23
24
  * @param {*} [options] Override http request option.
24
25
  * @throws {RequiredError}
25
26
  */
@@ -31,7 +32,8 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
31
32
  */
32
33
  export declare const DefaultApiFp: (configuration?: Configuration) => {
33
34
  /**
34
- *
35
+ * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
36
+ * @summary Health Check
35
37
  * @param {*} [options] Override http request option.
36
38
  * @throws {RequiredError}
37
39
  */
@@ -43,7 +45,8 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
43
45
  */
44
46
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
47
  /**
46
- *
48
+ * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
49
+ * @summary Health Check
47
50
  * @param {*} [options] Override http request option.
48
51
  * @throws {RequiredError}
49
52
  */
@@ -57,7 +60,8 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
57
60
  */
58
61
  export declare class DefaultApi extends BaseAPI {
59
62
  /**
60
- *
63
+ * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
64
+ * @summary Health Check
61
65
  * @param {*} [options] Override http request option.
62
66
  * @throws {RequiredError}
63
67
  * @memberof DefaultApi
@@ -93,7 +93,8 @@ var DefaultApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- *
96
+ * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
97
+ * @summary Health Check
97
98
  * @param {*} [options] Override http request option.
98
99
  * @throws {RequiredError}
99
100
  */
@@ -132,7 +133,8 @@ var DefaultApiFp = function (configuration) {
132
133
  var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
133
134
  return {
134
135
  /**
135
- *
136
+ * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
137
+ * @summary Health Check
136
138
  * @param {*} [options] Override http request option.
137
139
  * @throws {RequiredError}
138
140
  */
@@ -160,7 +162,8 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
160
162
  var localVarFp = (0, exports.DefaultApiFp)(configuration);
161
163
  return {
162
164
  /**
163
- *
165
+ * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
166
+ * @summary Health Check
164
167
  * @param {*} [options] Override http request option.
165
168
  * @throws {RequiredError}
166
169
  */
@@ -182,7 +185,8 @@ var DefaultApi = /** @class */ (function (_super) {
182
185
  return _super !== null && _super.apply(this, arguments) || this;
183
186
  }
184
187
  /**
185
- *
188
+ * Returns the health status of the partner service. This endpoint is used to monitor the operational status of the partner service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
189
+ * @summary Health Check
186
190
  * @param {*} [options] Override http request option.
187
191
  * @throws {RequiredError}
188
192
  * @memberof DefaultApi