@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
@@ -0,0 +1,662 @@
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateTagRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateTagResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetTagResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListTagsResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateTagResponseClass } from '../models';
35
+ /**
36
+ * PartnerTagsApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const PartnerTagsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
43
+ * @summary Create the partner tag
44
+ * @param {CreateTagRequestDto} createTagRequestDto
45
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ createTag: async (createTagRequestDto: CreateTagRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createTagRequestDto' is not null or undefined
51
+ assertParamExists('createTag', 'createTagRequestDto', createTagRequestDto)
52
+ const localVarPath = `/partnerservice/v1/tags`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createTagRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * Permanently deletes the partner tag. Supply the unique code that was returned when you created the partner tag and this will delete it.
90
+ * @summary Delete the partner tag
91
+ * @param {string} code
92
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ deleteTag: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'code' is not null or undefined
98
+ assertParamExists('deleteTag', 'code', code)
99
+ const localVarPath = `/partnerservice/v1/tags/{code}`
100
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
101
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
+ let baseOptions;
104
+ let baseAccessToken;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ baseAccessToken = configuration.accessToken;
108
+ }
109
+
110
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
111
+ const localVarHeaderParameter = {} as any;
112
+ const localVarQueryParameter = {} as any;
113
+
114
+ // authentication bearer required
115
+ // http bearer authentication required
116
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
+
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ }
121
+
122
+
123
+
124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
127
+
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ },
133
+ /**
134
+ * Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code that was returned when you created it and Emil Api will return the corresponding partner tag information.
135
+ * @summary Retrieve the partner tag
136
+ * @param {string} code Unique identifier for the object.
137
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ getTag: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
142
+ // verify required parameter 'code' is not null or undefined
143
+ assertParamExists('getTag', 'code', code)
144
+ const localVarPath = `/partnerservice/v1/tags/{code}`
145
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
178
+ /**
179
+ * Returns a list of partner tags you have previously created. The partner tags are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
180
+ * @summary List partner tags
181
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
182
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
183
+ * @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.
184
+ * @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, slug, label&lt;/i&gt;
185
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
186
+ * @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: code, slug, label, createdAt, updatedAt&lt;/i&gt;
187
+ * @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: .&lt;i&gt;
188
+ * @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, slug, label&lt;/i&gt;
189
+ * @param {*} [options] Override http request option.
190
+ * @throws {RequiredError}
191
+ */
192
+ listTags: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
193
+ const localVarPath = `/partnerservice/v1/tags`;
194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
196
+ let baseOptions;
197
+ let baseAccessToken;
198
+ if (configuration) {
199
+ baseOptions = configuration.baseOptions;
200
+ baseAccessToken = configuration.accessToken;
201
+ }
202
+
203
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
204
+ const localVarHeaderParameter = {} as any;
205
+ const localVarQueryParameter = {} as any;
206
+
207
+ // authentication bearer required
208
+ // http bearer authentication required
209
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
210
+
211
+ if (pageSize !== undefined) {
212
+ localVarQueryParameter['pageSize'] = pageSize;
213
+ }
214
+
215
+ if (pageToken !== undefined) {
216
+ localVarQueryParameter['pageToken'] = pageToken;
217
+ }
218
+
219
+ if (filter !== undefined) {
220
+ localVarQueryParameter['filter'] = filter;
221
+ }
222
+
223
+ if (search !== undefined) {
224
+ localVarQueryParameter['search'] = search;
225
+ }
226
+
227
+ if (order !== undefined) {
228
+ localVarQueryParameter['order'] = order;
229
+ }
230
+
231
+ if (expand !== undefined) {
232
+ localVarQueryParameter['expand'] = expand;
233
+ }
234
+
235
+ if (filters !== undefined) {
236
+ localVarQueryParameter['filters'] = filters;
237
+ }
238
+
239
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
+ }
242
+
243
+
244
+
245
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
248
+
249
+ return {
250
+ url: toPathString(localVarUrlObj),
251
+ options: localVarRequestOptions,
252
+ };
253
+ },
254
+ /**
255
+ * Updates the specified partner tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
256
+ * @summary Update the partner tag
257
+ * @param {string} code
258
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ updateTag: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
263
+ // verify required parameter 'code' is not null or undefined
264
+ assertParamExists('updateTag', 'code', code)
265
+ const localVarPath = `/partnerservice/v1/tags/{code}`
266
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
269
+ let baseOptions;
270
+ let baseAccessToken;
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ baseAccessToken = configuration.accessToken;
274
+ }
275
+
276
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
277
+ const localVarHeaderParameter = {} as any;
278
+ const localVarQueryParameter = {} as any;
279
+
280
+ // authentication bearer required
281
+ // http bearer authentication required
282
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
283
+
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
+ }
287
+
288
+
289
+
290
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
293
+
294
+ return {
295
+ url: toPathString(localVarUrlObj),
296
+ options: localVarRequestOptions,
297
+ };
298
+ },
299
+ }
300
+ };
301
+
302
+ /**
303
+ * PartnerTagsApi - functional programming interface
304
+ * @export
305
+ */
306
+ export const PartnerTagsApiFp = function(configuration?: Configuration) {
307
+ const localVarAxiosParamCreator = PartnerTagsApiAxiosParamCreator(configuration)
308
+ return {
309
+ /**
310
+ * This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
311
+ * @summary Create the partner tag
312
+ * @param {CreateTagRequestDto} createTagRequestDto
313
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ async createTag(createTagRequestDto: CreateTagRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateTagResponseClass>> {
318
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagRequestDto, authorization, options);
319
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
320
+ },
321
+ /**
322
+ * Permanently deletes the partner tag. Supply the unique code that was returned when you created the partner tag and this will delete it.
323
+ * @summary Delete the partner tag
324
+ * @param {string} code
325
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ async deleteTag(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
330
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(code, authorization, options);
331
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
332
+ },
333
+ /**
334
+ * Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code that was returned when you created it and Emil Api will return the corresponding partner tag information.
335
+ * @summary Retrieve the partner tag
336
+ * @param {string} code Unique identifier for the object.
337
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ async getTag(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTagResponseClass>> {
342
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTag(code, authorization, options);
343
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
344
+ },
345
+ /**
346
+ * Returns a list of partner tags you have previously created. The partner tags are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
347
+ * @summary List partner tags
348
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
349
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
350
+ * @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.
351
+ * @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, slug, label&lt;/i&gt;
352
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
353
+ * @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: code, slug, label, createdAt, updatedAt&lt;/i&gt;
354
+ * @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: .&lt;i&gt;
355
+ * @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, slug, label&lt;/i&gt;
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ async listTags(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTagsResponseClass>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTags(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
361
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
+ },
363
+ /**
364
+ * Updates the specified partner tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
365
+ * @summary Update the partner tag
366
+ * @param {string} code
367
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
368
+ * @param {*} [options] Override http request option.
369
+ * @throws {RequiredError}
370
+ */
371
+ async updateTag(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateTagResponseClass>> {
372
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(code, authorization, options);
373
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
374
+ },
375
+ }
376
+ };
377
+
378
+ /**
379
+ * PartnerTagsApi - factory interface
380
+ * @export
381
+ */
382
+ export const PartnerTagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
383
+ const localVarFp = PartnerTagsApiFp(configuration)
384
+ return {
385
+ /**
386
+ * This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
387
+ * @summary Create the partner tag
388
+ * @param {CreateTagRequestDto} createTagRequestDto
389
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ createTag(createTagRequestDto: CreateTagRequestDto, authorization?: string, options?: any): AxiosPromise<CreateTagResponseClass> {
394
+ return localVarFp.createTag(createTagRequestDto, authorization, options).then((request) => request(axios, basePath));
395
+ },
396
+ /**
397
+ * Permanently deletes the partner tag. Supply the unique code that was returned when you created the partner tag and this will delete it.
398
+ * @summary Delete the partner tag
399
+ * @param {string} code
400
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ deleteTag(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
405
+ return localVarFp.deleteTag(code, authorization, options).then((request) => request(axios, basePath));
406
+ },
407
+ /**
408
+ * Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code that was returned when you created it and Emil Api will return the corresponding partner tag information.
409
+ * @summary Retrieve the partner tag
410
+ * @param {string} code Unique identifier for the object.
411
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ getTag(code: string, authorization?: string, options?: any): AxiosPromise<GetTagResponseClass> {
416
+ return localVarFp.getTag(code, authorization, options).then((request) => request(axios, basePath));
417
+ },
418
+ /**
419
+ * Returns a list of partner tags you have previously created. The partner tags are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
420
+ * @summary List partner tags
421
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
422
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
423
+ * @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.
424
+ * @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, slug, label&lt;/i&gt;
425
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
426
+ * @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: code, slug, label, createdAt, updatedAt&lt;/i&gt;
427
+ * @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: .&lt;i&gt;
428
+ * @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, slug, label&lt;/i&gt;
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ listTags(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTagsResponseClass> {
433
+ return localVarFp.listTags(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
434
+ },
435
+ /**
436
+ * Updates the specified partner tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
437
+ * @summary Update the partner tag
438
+ * @param {string} code
439
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ updateTag(code: string, authorization?: string, options?: any): AxiosPromise<UpdateTagResponseClass> {
444
+ return localVarFp.updateTag(code, authorization, options).then((request) => request(axios, basePath));
445
+ },
446
+ };
447
+ };
448
+
449
+ /**
450
+ * Request parameters for createTag operation in PartnerTagsApi.
451
+ * @export
452
+ * @interface PartnerTagsApiCreateTagRequest
453
+ */
454
+ export interface PartnerTagsApiCreateTagRequest {
455
+ /**
456
+ *
457
+ * @type {CreateTagRequestDto}
458
+ * @memberof PartnerTagsApiCreateTag
459
+ */
460
+ readonly createTagRequestDto: CreateTagRequestDto
461
+
462
+ /**
463
+ * Bearer Token: provided by the login endpoint under the name accessToken.
464
+ * @type {string}
465
+ * @memberof PartnerTagsApiCreateTag
466
+ */
467
+ readonly authorization?: string
468
+ }
469
+
470
+ /**
471
+ * Request parameters for deleteTag operation in PartnerTagsApi.
472
+ * @export
473
+ * @interface PartnerTagsApiDeleteTagRequest
474
+ */
475
+ export interface PartnerTagsApiDeleteTagRequest {
476
+ /**
477
+ *
478
+ * @type {string}
479
+ * @memberof PartnerTagsApiDeleteTag
480
+ */
481
+ readonly code: string
482
+
483
+ /**
484
+ * Bearer Token: provided by the login endpoint under the name accessToken.
485
+ * @type {string}
486
+ * @memberof PartnerTagsApiDeleteTag
487
+ */
488
+ readonly authorization?: string
489
+ }
490
+
491
+ /**
492
+ * Request parameters for getTag operation in PartnerTagsApi.
493
+ * @export
494
+ * @interface PartnerTagsApiGetTagRequest
495
+ */
496
+ export interface PartnerTagsApiGetTagRequest {
497
+ /**
498
+ * Unique identifier for the object.
499
+ * @type {string}
500
+ * @memberof PartnerTagsApiGetTag
501
+ */
502
+ readonly code: string
503
+
504
+ /**
505
+ * Bearer Token: provided by the login endpoint under the name accessToken.
506
+ * @type {string}
507
+ * @memberof PartnerTagsApiGetTag
508
+ */
509
+ readonly authorization?: string
510
+ }
511
+
512
+ /**
513
+ * Request parameters for listTags operation in PartnerTagsApi.
514
+ * @export
515
+ * @interface PartnerTagsApiListTagsRequest
516
+ */
517
+ export interface PartnerTagsApiListTagsRequest {
518
+ /**
519
+ * Bearer Token: provided by the login endpoint under the name accessToken.
520
+ * @type {string}
521
+ * @memberof PartnerTagsApiListTags
522
+ */
523
+ readonly authorization?: string
524
+
525
+ /**
526
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
527
+ * @type {any}
528
+ * @memberof PartnerTagsApiListTags
529
+ */
530
+ readonly pageSize?: any
531
+
532
+ /**
533
+ * 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.
534
+ * @type {any}
535
+ * @memberof PartnerTagsApiListTags
536
+ */
537
+ readonly pageToken?: any
538
+
539
+ /**
540
+ * 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, slug, label&lt;/i&gt;
541
+ * @type {string}
542
+ * @memberof PartnerTagsApiListTags
543
+ */
544
+ readonly filter?: string
545
+
546
+ /**
547
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
548
+ * @type {any}
549
+ * @memberof PartnerTagsApiListTags
550
+ */
551
+ readonly search?: any
552
+
553
+ /**
554
+ * 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: code, slug, label, createdAt, updatedAt&lt;/i&gt;
555
+ * @type {string}
556
+ * @memberof PartnerTagsApiListTags
557
+ */
558
+ readonly order?: string
559
+
560
+ /**
561
+ * 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: .&lt;i&gt;
562
+ * @type {string}
563
+ * @memberof PartnerTagsApiListTags
564
+ */
565
+ readonly expand?: string
566
+
567
+ /**
568
+ * 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, slug, label&lt;/i&gt;
569
+ * @type {string}
570
+ * @memberof PartnerTagsApiListTags
571
+ */
572
+ readonly filters?: string
573
+ }
574
+
575
+ /**
576
+ * Request parameters for updateTag operation in PartnerTagsApi.
577
+ * @export
578
+ * @interface PartnerTagsApiUpdateTagRequest
579
+ */
580
+ export interface PartnerTagsApiUpdateTagRequest {
581
+ /**
582
+ *
583
+ * @type {string}
584
+ * @memberof PartnerTagsApiUpdateTag
585
+ */
586
+ readonly code: string
587
+
588
+ /**
589
+ * Bearer Token: provided by the login endpoint under the name accessToken.
590
+ * @type {string}
591
+ * @memberof PartnerTagsApiUpdateTag
592
+ */
593
+ readonly authorization?: string
594
+ }
595
+
596
+ /**
597
+ * PartnerTagsApi - object-oriented interface
598
+ * @export
599
+ * @class PartnerTagsApi
600
+ * @extends {BaseAPI}
601
+ */
602
+ export class PartnerTagsApi extends BaseAPI {
603
+ /**
604
+ * This will create a tag that can be used tag partners. Tags can be used to categorize partners and to apply specific rules to them.
605
+ * @summary Create the partner tag
606
+ * @param {PartnerTagsApiCreateTagRequest} requestParameters Request parameters.
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ * @memberof PartnerTagsApi
610
+ */
611
+ public createTag(requestParameters: PartnerTagsApiCreateTagRequest, options?: AxiosRequestConfig) {
612
+ return PartnerTagsApiFp(this.configuration).createTag(requestParameters.createTagRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
613
+ }
614
+
615
+ /**
616
+ * Permanently deletes the partner tag. Supply the unique code that was returned when you created the partner tag and this will delete it.
617
+ * @summary Delete the partner tag
618
+ * @param {PartnerTagsApiDeleteTagRequest} requestParameters Request parameters.
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ * @memberof PartnerTagsApi
622
+ */
623
+ public deleteTag(requestParameters: PartnerTagsApiDeleteTagRequest, options?: AxiosRequestConfig) {
624
+ return PartnerTagsApiFp(this.configuration).deleteTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
625
+ }
626
+
627
+ /**
628
+ * Retrieves the details of the partner tag that was previously created. Supply the unique partner tag code that was returned when you created it and Emil Api will return the corresponding partner tag information.
629
+ * @summary Retrieve the partner tag
630
+ * @param {PartnerTagsApiGetTagRequest} requestParameters Request parameters.
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ * @memberof PartnerTagsApi
634
+ */
635
+ public getTag(requestParameters: PartnerTagsApiGetTagRequest, options?: AxiosRequestConfig) {
636
+ return PartnerTagsApiFp(this.configuration).getTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
637
+ }
638
+
639
+ /**
640
+ * Returns a list of partner tags you have previously created. The partner tags are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
641
+ * @summary List partner tags
642
+ * @param {PartnerTagsApiListTagsRequest} requestParameters Request parameters.
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ * @memberof PartnerTagsApi
646
+ */
647
+ public listTags(requestParameters: PartnerTagsApiListTagsRequest = {}, options?: AxiosRequestConfig) {
648
+ return PartnerTagsApiFp(this.configuration).listTags(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
649
+ }
650
+
651
+ /**
652
+ * Updates the specified partner tag by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
653
+ * @summary Update the partner tag
654
+ * @param {PartnerTagsApiUpdateTagRequest} requestParameters Request parameters.
655
+ * @param {*} [options] Override http request option.
656
+ * @throws {RequiredError}
657
+ * @memberof PartnerTagsApi
658
+ */
659
+ public updateTag(requestParameters: PartnerTagsApiUpdateTagRequest, options?: AxiosRequestConfig) {
660
+ return PartnerTagsApiFp(this.configuration).updateTag(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
661
+ }
662
+ }