@emilgroup/partner-sdk 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/.openapi-generator/FILES +14 -1
  2. package/README.md +2 -2
  3. package/api/default-api.ts +8 -4
  4. package/api/partner-relations-api.ts +638 -19
  5. package/api/partner-tags-api.ts +662 -0
  6. package/api/partner-version-api.ts +31 -31
  7. package/api/partners-api.ts +118 -0
  8. package/api.ts +2 -0
  9. package/base.ts +5 -1
  10. package/dist/api/default-api.d.ts +8 -4
  11. package/dist/api/default-api.js +8 -4
  12. package/dist/api/partner-relations-api.d.ts +360 -16
  13. package/dist/api/partner-relations-api.js +513 -8
  14. package/dist/api/partner-tags-api.d.ts +375 -0
  15. package/dist/api/partner-tags-api.js +629 -0
  16. package/dist/api/partner-version-api.d.ts +31 -31
  17. package/dist/api/partner-version-api.js +16 -16
  18. package/dist/api/partners-api.d.ts +65 -0
  19. package/dist/api/partners-api.js +99 -0
  20. package/dist/api.d.ts +1 -0
  21. package/dist/api.js +1 -0
  22. package/dist/base.d.ts +1 -0
  23. package/dist/base.js +4 -1
  24. package/dist/models/create-partner-relation-request-dto-rest.d.ts +65 -0
  25. package/dist/models/create-partner-relation-request-dto-rest.js +26 -0
  26. package/dist/models/create-partner-relation-response-class.d.ts +25 -0
  27. package/dist/models/create-partner-type-request-dto.d.ts +13 -3
  28. package/dist/models/create-partner-type-request-dto.js +5 -0
  29. package/dist/models/create-tag-request-dto.d.ts +36 -0
  30. package/dist/models/create-tag-request-dto.js +15 -0
  31. package/dist/models/create-tag-response-class.d.ts +25 -0
  32. package/dist/models/create-tag-response-class.js +15 -0
  33. package/dist/models/get-partner-relation-class.d.ts +25 -0
  34. package/dist/models/get-partner-relation-class.js +15 -0
  35. package/dist/models/get-tag-response-class.d.ts +25 -0
  36. package/dist/models/get-tag-response-class.js +15 -0
  37. package/dist/models/index.d.ts +13 -1
  38. package/dist/models/index.js +13 -1
  39. package/dist/models/list-partner-relation-class.d.ts +31 -0
  40. package/dist/models/list-partner-relation-class.js +15 -0
  41. package/dist/models/list-tags-response-class.d.ts +31 -0
  42. package/dist/models/list-tags-response-class.js +15 -0
  43. package/dist/models/partner-class.d.ts +6 -0
  44. package/dist/models/partner-relation-class.d.ts +72 -0
  45. package/dist/models/partner-relation-class.js +15 -0
  46. package/dist/models/partner-type-class.d.ts +11 -0
  47. package/dist/models/partner-type-class.js +5 -0
  48. package/dist/models/tag-class.d.ts +54 -0
  49. package/dist/models/tag-class.js +15 -0
  50. package/dist/models/tag-partner-request-dto-rest.d.ts +24 -0
  51. package/dist/models/tag-partner-request-dto-rest.js +15 -0
  52. package/dist/models/update-partner-relation-request-dto-rest.d.ts +36 -0
  53. package/dist/models/update-partner-relation-request-dto-rest.js +15 -0
  54. package/dist/models/update-partner-type-request-dto.d.ts +14 -4
  55. package/dist/models/update-partner-type-request-dto.js +5 -0
  56. package/dist/models/update-tag-response-class.d.ts +25 -0
  57. package/dist/models/update-tag-response-class.js +15 -0
  58. package/models/create-partner-relation-request-dto-rest.ts +74 -0
  59. package/models/create-partner-relation-response-class.ts +31 -0
  60. package/models/create-partner-type-request-dto.ts +16 -3
  61. package/models/create-tag-request-dto.ts +42 -0
  62. package/models/create-tag-response-class.ts +31 -0
  63. package/models/get-partner-relation-class.ts +31 -0
  64. package/models/get-tag-response-class.ts +31 -0
  65. package/models/index.ts +13 -1
  66. package/models/list-partner-relation-class.ts +37 -0
  67. package/models/list-tags-response-class.ts +37 -0
  68. package/models/partner-class.ts +6 -0
  69. package/models/partner-relation-class.ts +78 -0
  70. package/models/partner-type-class.ts +14 -0
  71. package/models/tag-class.ts +60 -0
  72. package/models/tag-partner-request-dto-rest.ts +30 -0
  73. package/models/update-partner-relation-request-dto-rest.ts +42 -0
  74. package/models/update-partner-type-request-dto.ts +17 -4
  75. package/models/update-tag-response-class.ts +31 -0
  76. package/package.json +1 -1
  77. package/dist/models/partner-type-custom-schema-dto.d.ts +0 -66
  78. package/models/partner-type-custom-schema-dto.ts +0 -72
  79. /package/dist/models/{partner-type-custom-schema-dto.js → create-partner-relation-response-class.js} +0 -0
@@ -80,21 +80,21 @@ export const PartnerVersionApiAxiosParamCreator = function (configuration?: Conf
80
80
  };
81
81
  },
82
82
  /**
83
- * List all partner versions by providing partner code
83
+ * Returns a list of partner versions you have previously created. The partner versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
84
84
  * @summary List partner versions
85
85
  * @param {string} code
86
86
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
87
87
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
88
88
  * @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.
89
- * @param {any} [filter] Filter the response by one or multiple fields<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
89
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
90
90
  * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
91
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: displayName, createdAt, updatedAt, version</i>
92
- * @param {'partnerType'} [expand] Allowed expands for the partner version
93
- * @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.
91
+ * @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: displayName, createdAt, updatedAt, version</i>
92
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: partnerType.<i>
93
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, version, displayName, updatedAt, updatedBy</i>
94
94
  * @param {*} [options] Override http request option.
95
95
  * @throws {RequiredError}
96
96
  */
97
- listPartnerVersion: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partnerType', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ listPartnerVersion: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
98
  // verify required parameter 'code' is not null or undefined
99
99
  assertParamExists('listPartnerVersion', 'code', code)
100
100
  const localVarPath = `/partnerservice/v1/partners/{code}/versions`
@@ -183,21 +183,21 @@ export const PartnerVersionApiFp = function(configuration?: Configuration) {
183
183
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
184
184
  },
185
185
  /**
186
- * List all partner versions by providing partner code
186
+ * Returns a list of partner versions you have previously created. The partner versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
187
187
  * @summary List partner versions
188
188
  * @param {string} code
189
189
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
190
190
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
191
191
  * @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.
192
- * @param {any} [filter] Filter the response by one or multiple fields&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
192
+ * @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: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
193
193
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
194
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: displayName, createdAt, updatedAt, version&lt;/i&gt;
195
- * @param {'partnerType'} [expand] Allowed expands for the partner version
196
- * @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.
194
+ * @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: displayName, createdAt, updatedAt, version&lt;/i&gt;
195
+ * @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: partnerType.&lt;i&gt;
196
+ * @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: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
197
197
  * @param {*} [options] Override http request option.
198
198
  * @throws {RequiredError}
199
199
  */
200
- async listPartnerVersion(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partnerType', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerVersionsResponseClass>> {
200
+ async listPartnerVersion(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<ListPartnerVersionsResponseClass>> {
201
201
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerVersion(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
202
202
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
203
203
  },
@@ -224,21 +224,21 @@ export const PartnerVersionApiFactory = function (configuration?: Configuration,
224
224
  return localVarFp.getPartnerVersion(code, version, authorization, options).then((request) => request(axios, basePath));
225
225
  },
226
226
  /**
227
- * List all partner versions by providing partner code
227
+ * Returns a list of partner versions you have previously created. The partner versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
228
228
  * @summary List partner versions
229
229
  * @param {string} code
230
230
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
231
231
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
232
232
  * @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.
233
- * @param {any} [filter] Filter the response by one or multiple fields&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
233
+ * @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: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
234
234
  * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
235
- * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: displayName, createdAt, updatedAt, version&lt;/i&gt;
236
- * @param {'partnerType'} [expand] Allowed expands for the partner version
237
- * @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.
235
+ * @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: displayName, createdAt, updatedAt, version&lt;/i&gt;
236
+ * @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: partnerType.&lt;i&gt;
237
+ * @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: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
238
238
  * @param {*} [options] Override http request option.
239
239
  * @throws {RequiredError}
240
240
  */
241
- listPartnerVersion(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partnerType', filters?: any, options?: any): AxiosPromise<ListPartnerVersionsResponseClass> {
241
+ listPartnerVersion(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPartnerVersionsResponseClass> {
242
242
  return localVarFp.listPartnerVersion(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
243
243
  },
244
244
  };
@@ -307,11 +307,11 @@ export interface PartnerVersionApiListPartnerVersionRequest {
307
307
  readonly pageToken?: any
308
308
 
309
309
  /**
310
- * Filter the response by one or multiple fields&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
311
- * @type {any}
310
+ * 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: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
311
+ * @type {string}
312
312
  * @memberof PartnerVersionApiListPartnerVersion
313
313
  */
314
- readonly filter?: any
314
+ readonly filter?: string
315
315
 
316
316
  /**
317
317
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
@@ -321,25 +321,25 @@ export interface PartnerVersionApiListPartnerVersionRequest {
321
321
  readonly search?: any
322
322
 
323
323
  /**
324
- * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: displayName, createdAt, updatedAt, version&lt;/i&gt;
325
- * @type {any}
324
+ * 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: displayName, createdAt, updatedAt, version&lt;/i&gt;
325
+ * @type {string}
326
326
  * @memberof PartnerVersionApiListPartnerVersion
327
327
  */
328
- readonly order?: any
328
+ readonly order?: string
329
329
 
330
330
  /**
331
- * Allowed expands for the partner version
332
- * @type {'partnerType'}
331
+ * 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: partnerType.&lt;i&gt;
332
+ * @type {string}
333
333
  * @memberof PartnerVersionApiListPartnerVersion
334
334
  */
335
- readonly expand?: 'partnerType'
335
+ readonly expand?: string
336
336
 
337
337
  /**
338
- * 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.
339
- * @type {any}
338
+ * 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: code, version, displayName, updatedAt, updatedBy&lt;/i&gt;
339
+ * @type {string}
340
340
  * @memberof PartnerVersionApiListPartnerVersion
341
341
  */
342
- readonly filters?: any
342
+ readonly filters?: string
343
343
  }
344
344
 
345
345
  /**
@@ -362,7 +362,7 @@ export class PartnerVersionApi extends BaseAPI {
362
362
  }
363
363
 
364
364
  /**
365
- * List all partner versions by providing partner code
365
+ * Returns a list of partner versions you have previously created. The partner versions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
366
366
  * @summary List partner versions
367
367
  * @param {PartnerVersionApiListPartnerVersionRequest} requestParameters Request parameters.
368
368
  * @param {*} [options] Override http request option.
@@ -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';
@@ -258,6 +260,57 @@ export const PartnersApiAxiosParamCreator = function (configuration?: Configurat
258
260
  options: localVarRequestOptions,
259
261
  };
260
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
+
296
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
297
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
298
+ }
299
+
300
+
301
+
302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
303
+
304
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
305
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
307
+ localVarRequestOptions.data = serializeDataIfNeeded(tagPartnerRequestDtoRest, localVarRequestOptions, configuration)
308
+
309
+ return {
310
+ url: toPathString(localVarUrlObj),
311
+ options: localVarRequestOptions,
312
+ };
313
+ },
261
314
  /**
262
315
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
263
316
  * @summary Update the partner
@@ -374,6 +427,19 @@ export const PartnersApiFp = function(configuration?: Configuration) {
374
427
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
375
428
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
376
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);
441
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
442
+ },
377
443
  /**
378
444
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
379
445
  * @summary Update the partner
@@ -448,6 +514,18 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
448
514
  listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPartnersResponseClass> {
449
515
  return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
450
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));
528
+ },
451
529
  /**
452
530
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
453
531
  * @summary Update the partner
@@ -596,6 +674,34 @@ export interface PartnersApiListPartnersRequest {
596
674
  readonly filters?: any
597
675
  }
598
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
703
+ }
704
+
599
705
  /**
600
706
  * Request parameters for updatePartner operation in PartnersApi.
601
707
  * @export
@@ -679,6 +785,18 @@ export class PartnersApi extends BaseAPI {
679
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));
680
786
  }
681
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));
798
+ }
799
+
682
800
  /**
683
801
  * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
684
802
  * @summary Update the partner
package/api.ts CHANGED
@@ -22,6 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { DefaultApi } from './api';
24
24
  import { PartnerRelationsApi } from './api';
25
+ import { PartnerTagsApi } from './api';
25
26
  import { PartnerTypesApi } from './api';
26
27
  import { PartnerVersionApi } from './api';
27
28
  import { PartnersApi } from './api';
@@ -29,6 +30,7 @@ import { PartnersApi } from './api';
29
30
 
30
31
  export * from './api/default-api';
31
32
  export * from './api/partner-relations-api';
33
+ export * from './api/partner-tags-api';
32
34
  export * from './api/partner-types-api';
33
35
  export * from './api/partner-version-api';
34
36
  export * from './api/partners-api';
package/base.ts CHANGED
@@ -102,7 +102,11 @@ export class BaseAPI {
102
102
  }
103
103
 
104
104
  selectEnvironment(env: Environment) {
105
- this.configuration.basePath = env;
105
+ this.selectBasePath(env);
106
+ }
107
+
108
+ selectBasePath(path: string) {
109
+ this.configuration.basePath = path;
106
110
  }
107
111
 
108
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