@emilgroup/partner-sdk-node 1.0.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 (109) hide show
  1. package/.openapi-generator/FILES +41 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/default-api.ts +120 -0
  6. package/api/partner-relations-api.ts +349 -0
  7. package/api/partner-types-api.ts +693 -0
  8. package/api/partner-version-api.ts +375 -0
  9. package/api/partners-api.ts +693 -0
  10. package/api.ts +35 -0
  11. package/base.ts +252 -0
  12. package/common.ts +198 -0
  13. package/configuration.ts +101 -0
  14. package/dist/api/default-api.d.ts +66 -0
  15. package/dist/api/default-api.js +196 -0
  16. package/dist/api/partner-relations-api.d.ts +206 -0
  17. package/dist/api/partner-relations-api.js +352 -0
  18. package/dist/api/partner-types-api.d.ts +394 -0
  19. package/dist/api/partner-types-api.js +642 -0
  20. package/dist/api/partner-version-api.d.ts +224 -0
  21. package/dist/api/partner-version-api.js +363 -0
  22. package/dist/api/partners-api.d.ts +394 -0
  23. package/dist/api/partners-api.js +642 -0
  24. package/dist/api.d.ts +16 -0
  25. package/dist/api.js +34 -0
  26. package/dist/base.d.ts +74 -0
  27. package/dist/base.js +299 -0
  28. package/dist/common.d.ts +91 -0
  29. package/dist/common.js +276 -0
  30. package/dist/configuration.d.ts +83 -0
  31. package/dist/configuration.js +44 -0
  32. package/dist/index.d.ts +15 -0
  33. package/dist/index.js +36 -0
  34. package/dist/models/create-partner-request-dto.d.ts +30 -0
  35. package/dist/models/create-partner-request-dto.js +15 -0
  36. package/dist/models/create-partner-response-class.d.ts +25 -0
  37. package/dist/models/create-partner-response-class.js +15 -0
  38. package/dist/models/create-partner-type-request-dto.d.ts +31 -0
  39. package/dist/models/create-partner-type-request-dto.js +15 -0
  40. package/dist/models/create-partner-type-response-class.d.ts +25 -0
  41. package/dist/models/create-partner-type-response-class.js +15 -0
  42. package/dist/models/delete-response-class.d.ts +24 -0
  43. package/dist/models/delete-response-class.js +15 -0
  44. package/dist/models/get-partner-relation-type-class.d.ts +25 -0
  45. package/dist/models/get-partner-relation-type-class.js +15 -0
  46. package/dist/models/get-partner-response-class.d.ts +25 -0
  47. package/dist/models/get-partner-response-class.js +15 -0
  48. package/dist/models/get-partner-type-response-class.d.ts +25 -0
  49. package/dist/models/get-partner-type-response-class.js +15 -0
  50. package/dist/models/get-partner-version-response-class.d.ts +25 -0
  51. package/dist/models/get-partner-version-response-class.js +15 -0
  52. package/dist/models/index.d.ts +23 -0
  53. package/dist/models/index.js +39 -0
  54. package/dist/models/inline-response200.d.ts +54 -0
  55. package/dist/models/inline-response200.js +15 -0
  56. package/dist/models/inline-response503.d.ts +54 -0
  57. package/dist/models/inline-response503.js +15 -0
  58. package/dist/models/list-partner-relation-types-class.d.ts +31 -0
  59. package/dist/models/list-partner-relation-types-class.js +15 -0
  60. package/dist/models/list-partner-types-response-class.d.ts +31 -0
  61. package/dist/models/list-partner-types-response-class.js +15 -0
  62. package/dist/models/list-partner-versions-response-class.d.ts +25 -0
  63. package/dist/models/list-partner-versions-response-class.js +15 -0
  64. package/dist/models/list-partners-response-class.d.ts +31 -0
  65. package/dist/models/list-partners-response-class.js +15 -0
  66. package/dist/models/partner-class.d.ts +79 -0
  67. package/dist/models/partner-class.js +15 -0
  68. package/dist/models/partner-relation-type-class.d.ts +66 -0
  69. package/dist/models/partner-relation-type-class.js +15 -0
  70. package/dist/models/partner-type-class.d.ts +60 -0
  71. package/dist/models/partner-type-class.js +15 -0
  72. package/dist/models/partner-type-custom-schema-dto.d.ts +66 -0
  73. package/dist/models/partner-type-custom-schema-dto.js +15 -0
  74. package/dist/models/update-partner-request-dto.d.ts +24 -0
  75. package/dist/models/update-partner-request-dto.js +15 -0
  76. package/dist/models/update-partner-response-class.d.ts +25 -0
  77. package/dist/models/update-partner-response-class.js +15 -0
  78. package/dist/models/update-partner-type-request-dto.d.ts +31 -0
  79. package/dist/models/update-partner-type-request-dto.js +15 -0
  80. package/dist/models/update-partner-type-response-class.d.ts +25 -0
  81. package/dist/models/update-partner-type-response-class.js +15 -0
  82. package/git_push.sh +57 -0
  83. package/index.ts +19 -0
  84. package/models/create-partner-request-dto.ts +36 -0
  85. package/models/create-partner-response-class.ts +31 -0
  86. package/models/create-partner-type-request-dto.ts +37 -0
  87. package/models/create-partner-type-response-class.ts +31 -0
  88. package/models/delete-response-class.ts +30 -0
  89. package/models/get-partner-relation-type-class.ts +31 -0
  90. package/models/get-partner-response-class.ts +31 -0
  91. package/models/get-partner-type-response-class.ts +31 -0
  92. package/models/get-partner-version-response-class.ts +31 -0
  93. package/models/index.ts +23 -0
  94. package/models/inline-response200.ts +48 -0
  95. package/models/inline-response503.ts +48 -0
  96. package/models/list-partner-relation-types-class.ts +37 -0
  97. package/models/list-partner-types-response-class.ts +37 -0
  98. package/models/list-partner-versions-response-class.ts +31 -0
  99. package/models/list-partners-response-class.ts +37 -0
  100. package/models/partner-class.ts +85 -0
  101. package/models/partner-relation-type-class.ts +72 -0
  102. package/models/partner-type-class.ts +66 -0
  103. package/models/partner-type-custom-schema-dto.ts +72 -0
  104. package/models/update-partner-request-dto.ts +30 -0
  105. package/models/update-partner-response-class.ts +31 -0
  106. package/models/update-partner-type-request-dto.ts +37 -0
  107. package/models/update-partner-type-response-class.ts +31 -0
  108. package/package.json +29 -0
  109. package/tsconfig.json +22 -0
@@ -0,0 +1,394 @@
1
+ /**
2
+ * EMIL PartnerService
3
+ * The EMIL PartnerService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreatePartnerRequestDto } from '../models';
16
+ import { CreatePartnerResponseClass } from '../models';
17
+ import { DeleteResponseClass } from '../models';
18
+ import { GetPartnerResponseClass } from '../models';
19
+ import { ListPartnersResponseClass } from '../models';
20
+ import { UpdatePartnerRequestDto } from '../models';
21
+ import { UpdatePartnerResponseClass } from '../models';
22
+ /**
23
+ * PartnersApi - axios parameter creator
24
+ * @export
25
+ */
26
+ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuration) => {
27
+ /**
28
+ * This will create a partner.
29
+ * @summary Create the partner
30
+ * @param {CreatePartnerRequestDto} createPartnerRequestDto
31
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ createPartner: (createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
38
+ * @summary Delete the partner
39
+ * @param {string} code
40
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ deletePartner: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ * 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.
47
+ * @summary Retrieve the partner
48
+ * @param {string} code Unique identifier for the object.
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {any} [expand]
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ getPartner: (code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ * 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.
57
+ * @summary List partners
58
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
59
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
60
+ * @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.
61
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
62
+ * @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.
63
+ * @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.
64
+ * @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.
65
+ * @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.
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ */
69
+ listPartners: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
70
+ /**
71
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
72
+ * @summary Update the partner
73
+ * @param {string} code Unique identifier for the object.
74
+ * @param {UpdatePartnerRequestDto} updatePartnerRequestDto
75
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ updatePartner: (code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
80
+ };
81
+ /**
82
+ * PartnersApi - functional programming interface
83
+ * @export
84
+ */
85
+ export declare const PartnersApiFp: (configuration?: Configuration) => {
86
+ /**
87
+ * This will create a partner.
88
+ * @summary Create the partner
89
+ * @param {CreatePartnerRequestDto} createPartnerRequestDto
90
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ createPartner(createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerResponseClass>>;
95
+ /**
96
+ * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
97
+ * @summary Delete the partner
98
+ * @param {string} code
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ deletePartner(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
104
+ /**
105
+ * 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.
106
+ * @summary Retrieve the partner
107
+ * @param {string} code Unique identifier for the object.
108
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
109
+ * @param {any} [expand]
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ getPartner(code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerResponseClass>>;
114
+ /**
115
+ * 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.
116
+ * @summary List partners
117
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
118
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
119
+ * @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.
120
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
121
+ * @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.
122
+ * @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.
123
+ * @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.
124
+ * @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.
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ 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>>;
129
+ /**
130
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
131
+ * @summary Update the partner
132
+ * @param {string} code Unique identifier for the object.
133
+ * @param {UpdatePartnerRequestDto} updatePartnerRequestDto
134
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerResponseClass>>;
139
+ };
140
+ /**
141
+ * PartnersApi - factory interface
142
+ * @export
143
+ */
144
+ export declare const PartnersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
145
+ /**
146
+ * This will create a partner.
147
+ * @summary Create the partner
148
+ * @param {CreatePartnerRequestDto} createPartnerRequestDto
149
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ createPartner(createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePartnerResponseClass>;
154
+ /**
155
+ * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
156
+ * @summary Delete the partner
157
+ * @param {string} code
158
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ deletePartner(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
163
+ /**
164
+ * 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.
165
+ * @summary Retrieve the partner
166
+ * @param {string} code Unique identifier for the object.
167
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
168
+ * @param {any} [expand]
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ getPartner(code: string, authorization?: string, expand?: any, options?: any): AxiosPromise<GetPartnerResponseClass>;
173
+ /**
174
+ * 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.
175
+ * @summary List partners
176
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
177
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
178
+ * @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.
179
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
180
+ * @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.
181
+ * @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.
182
+ * @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.
183
+ * @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.
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPartnersResponseClass>;
188
+ /**
189
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
190
+ * @summary Update the partner
191
+ * @param {string} code Unique identifier for the object.
192
+ * @param {UpdatePartnerRequestDto} updatePartnerRequestDto
193
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass>;
198
+ };
199
+ /**
200
+ * Request parameters for createPartner operation in PartnersApi.
201
+ * @export
202
+ * @interface PartnersApiCreatePartnerRequest
203
+ */
204
+ export interface PartnersApiCreatePartnerRequest {
205
+ /**
206
+ *
207
+ * @type {CreatePartnerRequestDto}
208
+ * @memberof PartnersApiCreatePartner
209
+ */
210
+ readonly createPartnerRequestDto: CreatePartnerRequestDto;
211
+ /**
212
+ * Bearer Token: provided by the login endpoint under the name accessToken.
213
+ * @type {string}
214
+ * @memberof PartnersApiCreatePartner
215
+ */
216
+ readonly authorization?: string;
217
+ }
218
+ /**
219
+ * Request parameters for deletePartner operation in PartnersApi.
220
+ * @export
221
+ * @interface PartnersApiDeletePartnerRequest
222
+ */
223
+ export interface PartnersApiDeletePartnerRequest {
224
+ /**
225
+ *
226
+ * @type {string}
227
+ * @memberof PartnersApiDeletePartner
228
+ */
229
+ readonly code: string;
230
+ /**
231
+ * Bearer Token: provided by the login endpoint under the name accessToken.
232
+ * @type {string}
233
+ * @memberof PartnersApiDeletePartner
234
+ */
235
+ readonly authorization?: string;
236
+ }
237
+ /**
238
+ * Request parameters for getPartner operation in PartnersApi.
239
+ * @export
240
+ * @interface PartnersApiGetPartnerRequest
241
+ */
242
+ export interface PartnersApiGetPartnerRequest {
243
+ /**
244
+ * Unique identifier for the object.
245
+ * @type {string}
246
+ * @memberof PartnersApiGetPartner
247
+ */
248
+ readonly code: string;
249
+ /**
250
+ * Bearer Token: provided by the login endpoint under the name accessToken.
251
+ * @type {string}
252
+ * @memberof PartnersApiGetPartner
253
+ */
254
+ readonly authorization?: string;
255
+ /**
256
+ *
257
+ * @type {any}
258
+ * @memberof PartnersApiGetPartner
259
+ */
260
+ readonly expand?: any;
261
+ }
262
+ /**
263
+ * Request parameters for listPartners operation in PartnersApi.
264
+ * @export
265
+ * @interface PartnersApiListPartnersRequest
266
+ */
267
+ export interface PartnersApiListPartnersRequest {
268
+ /**
269
+ * Bearer Token: provided by the login endpoint under the name accessToken.
270
+ * @type {string}
271
+ * @memberof PartnersApiListPartners
272
+ */
273
+ readonly authorization?: string;
274
+ /**
275
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
276
+ * @type {any}
277
+ * @memberof PartnersApiListPartners
278
+ */
279
+ readonly pageSize?: any;
280
+ /**
281
+ * 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.
282
+ * @type {any}
283
+ * @memberof PartnersApiListPartners
284
+ */
285
+ readonly pageToken?: any;
286
+ /**
287
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
288
+ * @type {any}
289
+ * @memberof PartnersApiListPartners
290
+ */
291
+ readonly filter?: any;
292
+ /**
293
+ * 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.
294
+ * @type {any}
295
+ * @memberof PartnersApiListPartners
296
+ */
297
+ readonly search?: any;
298
+ /**
299
+ * 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.
300
+ * @type {any}
301
+ * @memberof PartnersApiListPartners
302
+ */
303
+ readonly order?: any;
304
+ /**
305
+ * 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.
306
+ * @type {any}
307
+ * @memberof PartnersApiListPartners
308
+ */
309
+ readonly expand?: any;
310
+ /**
311
+ * 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.
312
+ * @type {any}
313
+ * @memberof PartnersApiListPartners
314
+ */
315
+ readonly filters?: any;
316
+ }
317
+ /**
318
+ * Request parameters for updatePartner operation in PartnersApi.
319
+ * @export
320
+ * @interface PartnersApiUpdatePartnerRequest
321
+ */
322
+ export interface PartnersApiUpdatePartnerRequest {
323
+ /**
324
+ * Unique identifier for the object.
325
+ * @type {string}
326
+ * @memberof PartnersApiUpdatePartner
327
+ */
328
+ readonly code: string;
329
+ /**
330
+ *
331
+ * @type {UpdatePartnerRequestDto}
332
+ * @memberof PartnersApiUpdatePartner
333
+ */
334
+ readonly updatePartnerRequestDto: UpdatePartnerRequestDto;
335
+ /**
336
+ * Bearer Token: provided by the login endpoint under the name accessToken.
337
+ * @type {string}
338
+ * @memberof PartnersApiUpdatePartner
339
+ */
340
+ readonly authorization?: string;
341
+ }
342
+ /**
343
+ * PartnersApi - object-oriented interface
344
+ * @export
345
+ * @class PartnersApi
346
+ * @extends {BaseAPI}
347
+ */
348
+ export declare class PartnersApi extends BaseAPI {
349
+ /**
350
+ * This will create a partner.
351
+ * @summary Create the partner
352
+ * @param {PartnersApiCreatePartnerRequest} requestParameters Request parameters.
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ * @memberof PartnersApi
356
+ */
357
+ createPartner(requestParameters: PartnersApiCreatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerResponseClass, any>>;
358
+ /**
359
+ * Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
360
+ * @summary Delete the partner
361
+ * @param {PartnersApiDeletePartnerRequest} requestParameters Request parameters.
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ * @memberof PartnersApi
365
+ */
366
+ deletePartner(requestParameters: PartnersApiDeletePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
367
+ /**
368
+ * 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.
369
+ * @summary Retrieve the partner
370
+ * @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ * @memberof PartnersApi
374
+ */
375
+ getPartner(requestParameters: PartnersApiGetPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerResponseClass, any>>;
376
+ /**
377
+ * 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.
378
+ * @summary List partners
379
+ * @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ * @memberof PartnersApi
383
+ */
384
+ listPartners(requestParameters?: PartnersApiListPartnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnersResponseClass, any>>;
385
+ /**
386
+ * Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
387
+ * @summary Update the partner
388
+ * @param {PartnersApiUpdatePartnerRequest} requestParameters Request parameters.
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ * @memberof PartnersApi
392
+ */
393
+ updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerResponseClass, any>>;
394
+ }