@emilgroup/partner-sdk 1.5.0 → 1.5.1-beta.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.
- package/.openapi-generator/FILES +10 -4
- package/README.md +2 -2
- package/api/{partners-api.ts → partner-api.ts} +82 -82
- package/api/partner-invitation-api.ts +165 -0
- package/api/{partner-relations-api.ts → partner-relation-api.ts} +87 -87
- package/api/{partner-tags-api.ts → partner-tag-api.ts} +62 -62
- package/api/{partner-types-api.ts → partner-type-api.ts} +64 -64
- package/api.ts +10 -8
- package/dist/api/{partners-api.d.ts → partner-api.d.ts} +74 -74
- package/dist/api/{partners-api.js → partner-api.js} +49 -49
- package/dist/api/partner-invitation-api.d.ts +97 -0
- package/dist/api/partner-invitation-api.js +224 -0
- package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +78 -78
- package/dist/api/{partner-relations-api.js → partner-relation-api.js} +47 -47
- package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +55 -55
- package/dist/api/{partner-tags-api.js → partner-tag-api.js} +39 -39
- package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +57 -57
- package/dist/api/{partner-types-api.js → partner-type-api.js} +39 -39
- package/dist/api.d.ts +5 -4
- package/dist/api.js +5 -4
- package/dist/models/create-partner-response-class.d.ts +7 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/invite-class.d.ts +79 -0
- package/dist/models/invite-class.js +15 -0
- package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
- package/dist/models/invite-partner-to-eis-response-class.js +15 -0
- package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
- package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
- package/dist/models/partner-class.d.ts +12 -0
- package/dist/models/permission-class.d.ts +72 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/role-class.d.ts +73 -0
- package/dist/models/role-class.js +15 -0
- package/models/create-partner-response-class.ts +7 -0
- package/models/index.ts +5 -0
- package/models/invite-class.ts +85 -0
- package/models/invite-partner-to-eis-response-class.ts +31 -0
- package/models/invite-partner-to-eisrequest-dto.ts +48 -0
- package/models/partner-class.ts +12 -0
- package/models/permission-class.ts +78 -0
- package/models/role-class.ts +79 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -21,17 +21,19 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { DefaultApi } from './api';
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
24
|
+
import { PartnerApi } from './api';
|
|
25
|
+
import { PartnerInvitationApi } from './api';
|
|
26
|
+
import { PartnerRelationApi } from './api';
|
|
27
|
+
import { PartnerTagApi } from './api';
|
|
28
|
+
import { PartnerTypeApi } from './api';
|
|
27
29
|
import { PartnerVersionApi } from './api';
|
|
28
|
-
import { PartnersApi } from './api';
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
export * from './api/default-api';
|
|
32
|
-
export * from './api/partner-
|
|
33
|
-
export * from './api/partner-
|
|
34
|
-
export * from './api/partner-
|
|
33
|
+
export * from './api/partner-api';
|
|
34
|
+
export * from './api/partner-invitation-api';
|
|
35
|
+
export * from './api/partner-relation-api';
|
|
36
|
+
export * from './api/partner-tag-api';
|
|
37
|
+
export * from './api/partner-type-api';
|
|
35
38
|
export * from './api/partner-version-api';
|
|
36
|
-
export * from './api/partners-api';
|
|
37
39
|
|
|
@@ -21,10 +21,10 @@ import { TagPartnerRequestDtoRest } from '../models';
|
|
|
21
21
|
import { UpdatePartnerRequestDto } from '../models';
|
|
22
22
|
import { UpdatePartnerResponseClass } from '../models';
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* PartnerApi - axios parameter creator
|
|
25
25
|
* @export
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const PartnerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
28
|
/**
|
|
29
29
|
* This will create a partner.
|
|
30
30
|
* @summary Create the partner
|
|
@@ -59,11 +59,11 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
59
59
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
60
60
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
61
61
|
* @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.
|
|
62
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
62
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
63
63
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
64
64
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
65
65
|
* @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, tags<i>
|
|
66
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
66
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
68
68
|
* @throws {RequiredError}
|
|
69
69
|
*/
|
|
@@ -90,10 +90,10 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
90
90
|
updatePartner: (code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* PartnerApi - functional programming interface
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
export declare const
|
|
96
|
+
export declare const PartnerApiFp: (configuration?: Configuration) => {
|
|
97
97
|
/**
|
|
98
98
|
* This will create a partner.
|
|
99
99
|
* @summary Create the partner
|
|
@@ -128,11 +128,11 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
128
128
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
129
129
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
130
130
|
* @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.
|
|
131
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
131
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
132
132
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
133
133
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
134
134
|
* @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, tags<i>
|
|
135
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
135
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
@@ -159,10 +159,10 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
159
159
|
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerResponseClass>>;
|
|
160
160
|
};
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* PartnerApi - factory interface
|
|
163
163
|
* @export
|
|
164
164
|
*/
|
|
165
|
-
export declare const
|
|
165
|
+
export declare const PartnerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
166
166
|
/**
|
|
167
167
|
* This will create a partner.
|
|
168
168
|
* @summary Create the partner
|
|
@@ -197,11 +197,11 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
197
197
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
198
198
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
199
199
|
* @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.
|
|
200
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
200
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
201
201
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
202
202
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
203
203
|
* @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, tags<i>
|
|
204
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
204
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
207
207
|
*/
|
|
@@ -228,232 +228,232 @@ export declare const PartnersApiFactory: (configuration?: Configuration, basePat
|
|
|
228
228
|
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass>;
|
|
229
229
|
};
|
|
230
230
|
/**
|
|
231
|
-
* Request parameters for createPartner operation in
|
|
231
|
+
* Request parameters for createPartner operation in PartnerApi.
|
|
232
232
|
* @export
|
|
233
|
-
* @interface
|
|
233
|
+
* @interface PartnerApiCreatePartnerRequest
|
|
234
234
|
*/
|
|
235
|
-
export interface
|
|
235
|
+
export interface PartnerApiCreatePartnerRequest {
|
|
236
236
|
/**
|
|
237
237
|
*
|
|
238
238
|
* @type {CreatePartnerRequestDto}
|
|
239
|
-
* @memberof
|
|
239
|
+
* @memberof PartnerApiCreatePartner
|
|
240
240
|
*/
|
|
241
241
|
readonly createPartnerRequestDto: CreatePartnerRequestDto;
|
|
242
242
|
/**
|
|
243
243
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
244
|
* @type {string}
|
|
245
|
-
* @memberof
|
|
245
|
+
* @memberof PartnerApiCreatePartner
|
|
246
246
|
*/
|
|
247
247
|
readonly authorization?: string;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
* Request parameters for deletePartner operation in
|
|
250
|
+
* Request parameters for deletePartner operation in PartnerApi.
|
|
251
251
|
* @export
|
|
252
|
-
* @interface
|
|
252
|
+
* @interface PartnerApiDeletePartnerRequest
|
|
253
253
|
*/
|
|
254
|
-
export interface
|
|
254
|
+
export interface PartnerApiDeletePartnerRequest {
|
|
255
255
|
/**
|
|
256
256
|
*
|
|
257
257
|
* @type {string}
|
|
258
|
-
* @memberof
|
|
258
|
+
* @memberof PartnerApiDeletePartner
|
|
259
259
|
*/
|
|
260
260
|
readonly code: string;
|
|
261
261
|
/**
|
|
262
262
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
263
263
|
* @type {string}
|
|
264
|
-
* @memberof
|
|
264
|
+
* @memberof PartnerApiDeletePartner
|
|
265
265
|
*/
|
|
266
266
|
readonly authorization?: string;
|
|
267
267
|
}
|
|
268
268
|
/**
|
|
269
|
-
* Request parameters for getPartner operation in
|
|
269
|
+
* Request parameters for getPartner operation in PartnerApi.
|
|
270
270
|
* @export
|
|
271
|
-
* @interface
|
|
271
|
+
* @interface PartnerApiGetPartnerRequest
|
|
272
272
|
*/
|
|
273
|
-
export interface
|
|
273
|
+
export interface PartnerApiGetPartnerRequest {
|
|
274
274
|
/**
|
|
275
275
|
* Unique identifier for the object.
|
|
276
276
|
* @type {string}
|
|
277
|
-
* @memberof
|
|
277
|
+
* @memberof PartnerApiGetPartner
|
|
278
278
|
*/
|
|
279
279
|
readonly code: string;
|
|
280
280
|
/**
|
|
281
281
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
282
282
|
* @type {string}
|
|
283
|
-
* @memberof
|
|
283
|
+
* @memberof PartnerApiGetPartner
|
|
284
284
|
*/
|
|
285
285
|
readonly authorization?: string;
|
|
286
286
|
/**
|
|
287
287
|
*
|
|
288
288
|
* @type {any}
|
|
289
|
-
* @memberof
|
|
289
|
+
* @memberof PartnerApiGetPartner
|
|
290
290
|
*/
|
|
291
291
|
readonly expand?: any;
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
|
-
* Request parameters for listPartners operation in
|
|
294
|
+
* Request parameters for listPartners operation in PartnerApi.
|
|
295
295
|
* @export
|
|
296
|
-
* @interface
|
|
296
|
+
* @interface PartnerApiListPartnersRequest
|
|
297
297
|
*/
|
|
298
|
-
export interface
|
|
298
|
+
export interface PartnerApiListPartnersRequest {
|
|
299
299
|
/**
|
|
300
300
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
301
301
|
* @type {string}
|
|
302
|
-
* @memberof
|
|
302
|
+
* @memberof PartnerApiListPartners
|
|
303
303
|
*/
|
|
304
304
|
readonly authorization?: string;
|
|
305
305
|
/**
|
|
306
306
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
307
307
|
* @type {any}
|
|
308
|
-
* @memberof
|
|
308
|
+
* @memberof PartnerApiListPartners
|
|
309
309
|
*/
|
|
310
310
|
readonly pageSize?: any;
|
|
311
311
|
/**
|
|
312
312
|
* 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.
|
|
313
313
|
* @type {any}
|
|
314
|
-
* @memberof
|
|
314
|
+
* @memberof PartnerApiListPartners
|
|
315
315
|
*/
|
|
316
316
|
readonly pageToken?: any;
|
|
317
317
|
/**
|
|
318
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
318
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
319
319
|
* @type {string}
|
|
320
|
-
* @memberof
|
|
320
|
+
* @memberof PartnerApiListPartners
|
|
321
321
|
*/
|
|
322
322
|
readonly filter?: string;
|
|
323
323
|
/**
|
|
324
324
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
325
325
|
* @type {any}
|
|
326
|
-
* @memberof
|
|
326
|
+
* @memberof PartnerApiListPartners
|
|
327
327
|
*/
|
|
328
328
|
readonly search?: any;
|
|
329
329
|
/**
|
|
330
330
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, version, tags, tagSlugs</i>
|
|
331
331
|
* @type {string}
|
|
332
|
-
* @memberof
|
|
332
|
+
* @memberof PartnerApiListPartners
|
|
333
333
|
*/
|
|
334
334
|
readonly order?: string;
|
|
335
335
|
/**
|
|
336
336
|
* 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, tags<i>
|
|
337
337
|
* @type {string}
|
|
338
|
-
* @memberof
|
|
338
|
+
* @memberof PartnerApiListPartners
|
|
339
339
|
*/
|
|
340
340
|
readonly expand?: string;
|
|
341
341
|
/**
|
|
342
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId</i>
|
|
342
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, createdAt, updatedAt, tags, tagSlugs, partnerTypeId, tenantUserCode</i>
|
|
343
343
|
* @type {string}
|
|
344
|
-
* @memberof
|
|
344
|
+
* @memberof PartnerApiListPartners
|
|
345
345
|
*/
|
|
346
346
|
readonly filters?: string;
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
|
-
* Request parameters for tagPartner operation in
|
|
349
|
+
* Request parameters for tagPartner operation in PartnerApi.
|
|
350
350
|
* @export
|
|
351
|
-
* @interface
|
|
351
|
+
* @interface PartnerApiTagPartnerRequest
|
|
352
352
|
*/
|
|
353
|
-
export interface
|
|
353
|
+
export interface PartnerApiTagPartnerRequest {
|
|
354
354
|
/**
|
|
355
355
|
*
|
|
356
356
|
* @type {string}
|
|
357
|
-
* @memberof
|
|
357
|
+
* @memberof PartnerApiTagPartner
|
|
358
358
|
*/
|
|
359
359
|
readonly code: string;
|
|
360
360
|
/**
|
|
361
361
|
*
|
|
362
362
|
* @type {TagPartnerRequestDtoRest}
|
|
363
|
-
* @memberof
|
|
363
|
+
* @memberof PartnerApiTagPartner
|
|
364
364
|
*/
|
|
365
365
|
readonly tagPartnerRequestDtoRest: TagPartnerRequestDtoRest;
|
|
366
366
|
/**
|
|
367
367
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
368
368
|
* @type {string}
|
|
369
|
-
* @memberof
|
|
369
|
+
* @memberof PartnerApiTagPartner
|
|
370
370
|
*/
|
|
371
371
|
readonly authorization?: string;
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
|
-
* Request parameters for updatePartner operation in
|
|
374
|
+
* Request parameters for updatePartner operation in PartnerApi.
|
|
375
375
|
* @export
|
|
376
|
-
* @interface
|
|
376
|
+
* @interface PartnerApiUpdatePartnerRequest
|
|
377
377
|
*/
|
|
378
|
-
export interface
|
|
378
|
+
export interface PartnerApiUpdatePartnerRequest {
|
|
379
379
|
/**
|
|
380
380
|
* Unique identifier for the object.
|
|
381
381
|
* @type {string}
|
|
382
|
-
* @memberof
|
|
382
|
+
* @memberof PartnerApiUpdatePartner
|
|
383
383
|
*/
|
|
384
384
|
readonly code: string;
|
|
385
385
|
/**
|
|
386
386
|
*
|
|
387
387
|
* @type {UpdatePartnerRequestDto}
|
|
388
|
-
* @memberof
|
|
388
|
+
* @memberof PartnerApiUpdatePartner
|
|
389
389
|
*/
|
|
390
390
|
readonly updatePartnerRequestDto: UpdatePartnerRequestDto;
|
|
391
391
|
/**
|
|
392
392
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
393
393
|
* @type {string}
|
|
394
|
-
* @memberof
|
|
394
|
+
* @memberof PartnerApiUpdatePartner
|
|
395
395
|
*/
|
|
396
396
|
readonly authorization?: string;
|
|
397
397
|
}
|
|
398
398
|
/**
|
|
399
|
-
*
|
|
399
|
+
* PartnerApi - object-oriented interface
|
|
400
400
|
* @export
|
|
401
|
-
* @class
|
|
401
|
+
* @class PartnerApi
|
|
402
402
|
* @extends {BaseAPI}
|
|
403
403
|
*/
|
|
404
|
-
export declare class
|
|
404
|
+
export declare class PartnerApi extends BaseAPI {
|
|
405
405
|
/**
|
|
406
406
|
* This will create a partner.
|
|
407
407
|
* @summary Create the partner
|
|
408
|
-
* @param {
|
|
408
|
+
* @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
|
|
409
409
|
* @param {*} [options] Override http request option.
|
|
410
410
|
* @throws {RequiredError}
|
|
411
|
-
* @memberof
|
|
411
|
+
* @memberof PartnerApi
|
|
412
412
|
*/
|
|
413
|
-
createPartner(requestParameters:
|
|
413
|
+
createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerResponseClass, any>>;
|
|
414
414
|
/**
|
|
415
415
|
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
416
416
|
* @summary Delete the partner
|
|
417
|
-
* @param {
|
|
417
|
+
* @param {PartnerApiDeletePartnerRequest} requestParameters Request parameters.
|
|
418
418
|
* @param {*} [options] Override http request option.
|
|
419
419
|
* @throws {RequiredError}
|
|
420
|
-
* @memberof
|
|
420
|
+
* @memberof PartnerApi
|
|
421
421
|
*/
|
|
422
|
-
deletePartner(requestParameters:
|
|
422
|
+
deletePartner(requestParameters: PartnerApiDeletePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
423
423
|
/**
|
|
424
424
|
* 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.
|
|
425
425
|
* @summary Retrieve the partner
|
|
426
|
-
* @param {
|
|
426
|
+
* @param {PartnerApiGetPartnerRequest} requestParameters Request parameters.
|
|
427
427
|
* @param {*} [options] Override http request option.
|
|
428
428
|
* @throws {RequiredError}
|
|
429
|
-
* @memberof
|
|
429
|
+
* @memberof PartnerApi
|
|
430
430
|
*/
|
|
431
|
-
getPartner(requestParameters:
|
|
431
|
+
getPartner(requestParameters: PartnerApiGetPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerResponseClass, any>>;
|
|
432
432
|
/**
|
|
433
433
|
* 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.
|
|
434
434
|
* @summary List partners
|
|
435
|
-
* @param {
|
|
435
|
+
* @param {PartnerApiListPartnersRequest} requestParameters Request parameters.
|
|
436
436
|
* @param {*} [options] Override http request option.
|
|
437
437
|
* @throws {RequiredError}
|
|
438
|
-
* @memberof
|
|
438
|
+
* @memberof PartnerApi
|
|
439
439
|
*/
|
|
440
|
-
listPartners(requestParameters?:
|
|
440
|
+
listPartners(requestParameters?: PartnerApiListPartnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnersResponseClass, any>>;
|
|
441
441
|
/**
|
|
442
442
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
443
443
|
* @summary Update the partner
|
|
444
|
-
* @param {
|
|
444
|
+
* @param {PartnerApiTagPartnerRequest} requestParameters Request parameters.
|
|
445
445
|
* @param {*} [options] Override http request option.
|
|
446
446
|
* @throws {RequiredError}
|
|
447
|
-
* @memberof
|
|
447
|
+
* @memberof PartnerApi
|
|
448
448
|
*/
|
|
449
|
-
tagPartner(requestParameters:
|
|
449
|
+
tagPartner(requestParameters: PartnerApiTagPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerResponseClass, any>>;
|
|
450
450
|
/**
|
|
451
451
|
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
452
452
|
* @summary Update the partner
|
|
453
|
-
* @param {
|
|
453
|
+
* @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
|
|
454
454
|
* @param {*} [options] Override http request option.
|
|
455
455
|
* @throws {RequiredError}
|
|
456
|
-
* @memberof
|
|
456
|
+
* @memberof PartnerApi
|
|
457
457
|
*/
|
|
458
|
-
updatePartner(requestParameters:
|
|
458
|
+
updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerResponseClass, any>>;
|
|
459
459
|
}
|