@emilgroup/partner-sdk 1.5.0 → 1.5.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 (45) hide show
  1. package/.openapi-generator/FILES +10 -4
  2. package/README.md +2 -2
  3. package/api/{partners-api.ts → partner-api.ts} +82 -82
  4. package/api/partner-invitation-api.ts +165 -0
  5. package/api/{partner-relations-api.ts → partner-relation-api.ts} +87 -87
  6. package/api/{partner-tags-api.ts → partner-tag-api.ts} +62 -62
  7. package/api/{partner-types-api.ts → partner-type-api.ts} +64 -64
  8. package/api.ts +10 -8
  9. package/dist/api/{partners-api.d.ts → partner-api.d.ts} +74 -74
  10. package/dist/api/{partners-api.js → partner-api.js} +49 -49
  11. package/dist/api/partner-invitation-api.d.ts +97 -0
  12. package/dist/api/partner-invitation-api.js +224 -0
  13. package/dist/api/{partner-relations-api.d.ts → partner-relation-api.d.ts} +78 -78
  14. package/dist/api/{partner-relations-api.js → partner-relation-api.js} +47 -47
  15. package/dist/api/{partner-tags-api.d.ts → partner-tag-api.d.ts} +55 -55
  16. package/dist/api/{partner-tags-api.js → partner-tag-api.js} +39 -39
  17. package/dist/api/{partner-types-api.d.ts → partner-type-api.d.ts} +57 -57
  18. package/dist/api/{partner-types-api.js → partner-type-api.js} +39 -39
  19. package/dist/api.d.ts +5 -4
  20. package/dist/api.js +5 -4
  21. package/dist/models/create-partner-request-dto.d.ts +6 -0
  22. package/dist/models/create-partner-response-class.d.ts +7 -0
  23. package/dist/models/index.d.ts +5 -0
  24. package/dist/models/index.js +5 -0
  25. package/dist/models/invite-class.d.ts +79 -0
  26. package/dist/models/invite-class.js +15 -0
  27. package/dist/models/invite-partner-to-eis-response-class.d.ts +25 -0
  28. package/dist/models/invite-partner-to-eis-response-class.js +15 -0
  29. package/dist/models/invite-partner-to-eisrequest-dto.d.ts +42 -0
  30. package/dist/models/invite-partner-to-eisrequest-dto.js +15 -0
  31. package/dist/models/partner-class.d.ts +18 -0
  32. package/dist/models/permission-class.d.ts +72 -0
  33. package/dist/models/permission-class.js +15 -0
  34. package/dist/models/role-class.d.ts +73 -0
  35. package/dist/models/role-class.js +15 -0
  36. package/models/create-partner-request-dto.ts +6 -0
  37. package/models/create-partner-response-class.ts +7 -0
  38. package/models/index.ts +5 -0
  39. package/models/invite-class.ts +85 -0
  40. package/models/invite-partner-to-eis-response-class.ts +31 -0
  41. package/models/invite-partner-to-eisrequest-dto.ts +48 -0
  42. package/models/partner-class.ts +18 -0
  43. package/models/permission-class.ts +78 -0
  44. package/models/role-class.ts +79 -0
  45. package/package.json +1 -1
@@ -20,10 +20,10 @@ import { ListPartnerTypesResponseClass } from '../models';
20
20
  import { UpdatePartnerTypeRequestDto } from '../models';
21
21
  import { UpdatePartnerTypeResponseClass } from '../models';
22
22
  /**
23
- * PartnerTypesApi - axios parameter creator
23
+ * PartnerTypeApi - axios parameter creator
24
24
  * @export
25
25
  */
26
- export declare const PartnerTypesApiAxiosParamCreator: (configuration?: Configuration) => {
26
+ export declare const PartnerTypeApiAxiosParamCreator: (configuration?: Configuration) => {
27
27
  /**
28
28
  * This will create a partner type.
29
29
  * @summary Create the partner-types
@@ -79,10 +79,10 @@ export declare const PartnerTypesApiAxiosParamCreator: (configuration?: Configur
79
79
  updatePartnerType: (code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
80
80
  };
81
81
  /**
82
- * PartnerTypesApi - functional programming interface
82
+ * PartnerTypeApi - functional programming interface
83
83
  * @export
84
84
  */
85
- export declare const PartnerTypesApiFp: (configuration?: Configuration) => {
85
+ export declare const PartnerTypeApiFp: (configuration?: Configuration) => {
86
86
  /**
87
87
  * This will create a partner type.
88
88
  * @summary Create the partner-types
@@ -138,10 +138,10 @@ export declare const PartnerTypesApiFp: (configuration?: Configuration) => {
138
138
  updatePartnerType(code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerTypeResponseClass>>;
139
139
  };
140
140
  /**
141
- * PartnerTypesApi - factory interface
141
+ * PartnerTypeApi - factory interface
142
142
  * @export
143
143
  */
144
- export declare const PartnerTypesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
144
+ export declare const PartnerTypeApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
145
145
  /**
146
146
  * This will create a partner type.
147
147
  * @summary Create the partner-types
@@ -197,198 +197,198 @@ export declare const PartnerTypesApiFactory: (configuration?: Configuration, bas
197
197
  updatePartnerType(code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerTypeResponseClass>;
198
198
  };
199
199
  /**
200
- * Request parameters for createPartnerType operation in PartnerTypesApi.
200
+ * Request parameters for createPartnerType operation in PartnerTypeApi.
201
201
  * @export
202
- * @interface PartnerTypesApiCreatePartnerTypeRequest
202
+ * @interface PartnerTypeApiCreatePartnerTypeRequest
203
203
  */
204
- export interface PartnerTypesApiCreatePartnerTypeRequest {
204
+ export interface PartnerTypeApiCreatePartnerTypeRequest {
205
205
  /**
206
206
  *
207
207
  * @type {CreatePartnerTypeRequestDto}
208
- * @memberof PartnerTypesApiCreatePartnerType
208
+ * @memberof PartnerTypeApiCreatePartnerType
209
209
  */
210
210
  readonly createPartnerTypeRequestDto: CreatePartnerTypeRequestDto;
211
211
  /**
212
212
  * Bearer Token: provided by the login endpoint under the name accessToken.
213
213
  * @type {string}
214
- * @memberof PartnerTypesApiCreatePartnerType
214
+ * @memberof PartnerTypeApiCreatePartnerType
215
215
  */
216
216
  readonly authorization?: string;
217
217
  }
218
218
  /**
219
- * Request parameters for deletePartnerType operation in PartnerTypesApi.
219
+ * Request parameters for deletePartnerType operation in PartnerTypeApi.
220
220
  * @export
221
- * @interface PartnerTypesApiDeletePartnerTypeRequest
221
+ * @interface PartnerTypeApiDeletePartnerTypeRequest
222
222
  */
223
- export interface PartnerTypesApiDeletePartnerTypeRequest {
223
+ export interface PartnerTypeApiDeletePartnerTypeRequest {
224
224
  /**
225
225
  *
226
226
  * @type {string}
227
- * @memberof PartnerTypesApiDeletePartnerType
227
+ * @memberof PartnerTypeApiDeletePartnerType
228
228
  */
229
229
  readonly code: string;
230
230
  /**
231
231
  * Bearer Token: provided by the login endpoint under the name accessToken.
232
232
  * @type {string}
233
- * @memberof PartnerTypesApiDeletePartnerType
233
+ * @memberof PartnerTypeApiDeletePartnerType
234
234
  */
235
235
  readonly authorization?: string;
236
236
  }
237
237
  /**
238
- * Request parameters for getPartnerType operation in PartnerTypesApi.
238
+ * Request parameters for getPartnerType operation in PartnerTypeApi.
239
239
  * @export
240
- * @interface PartnerTypesApiGetPartnerTypeRequest
240
+ * @interface PartnerTypeApiGetPartnerTypeRequest
241
241
  */
242
- export interface PartnerTypesApiGetPartnerTypeRequest {
242
+ export interface PartnerTypeApiGetPartnerTypeRequest {
243
243
  /**
244
244
  * Unique identifier for the object.
245
245
  * @type {string}
246
- * @memberof PartnerTypesApiGetPartnerType
246
+ * @memberof PartnerTypeApiGetPartnerType
247
247
  */
248
248
  readonly code: string;
249
249
  /**
250
250
  * Bearer Token: provided by the login endpoint under the name accessToken.
251
251
  * @type {string}
252
- * @memberof PartnerTypesApiGetPartnerType
252
+ * @memberof PartnerTypeApiGetPartnerType
253
253
  */
254
254
  readonly authorization?: string;
255
255
  /**
256
256
  *
257
257
  * @type {any}
258
- * @memberof PartnerTypesApiGetPartnerType
258
+ * @memberof PartnerTypeApiGetPartnerType
259
259
  */
260
260
  readonly expand?: any;
261
261
  }
262
262
  /**
263
- * Request parameters for listPartnerTypes operation in PartnerTypesApi.
263
+ * Request parameters for listPartnerTypes operation in PartnerTypeApi.
264
264
  * @export
265
- * @interface PartnerTypesApiListPartnerTypesRequest
265
+ * @interface PartnerTypeApiListPartnerTypesRequest
266
266
  */
267
- export interface PartnerTypesApiListPartnerTypesRequest {
267
+ export interface PartnerTypeApiListPartnerTypesRequest {
268
268
  /**
269
269
  * Bearer Token: provided by the login endpoint under the name accessToken.
270
270
  * @type {string}
271
- * @memberof PartnerTypesApiListPartnerTypes
271
+ * @memberof PartnerTypeApiListPartnerTypes
272
272
  */
273
273
  readonly authorization?: string;
274
274
  /**
275
275
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
276
276
  * @type {any}
277
- * @memberof PartnerTypesApiListPartnerTypes
277
+ * @memberof PartnerTypeApiListPartnerTypes
278
278
  */
279
279
  readonly pageSize?: any;
280
280
  /**
281
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
282
  * @type {any}
283
- * @memberof PartnerTypesApiListPartnerTypes
283
+ * @memberof PartnerTypeApiListPartnerTypes
284
284
  */
285
285
  readonly pageToken?: any;
286
286
  /**
287
287
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
288
288
  * @type {any}
289
- * @memberof PartnerTypesApiListPartnerTypes
289
+ * @memberof PartnerTypeApiListPartnerTypes
290
290
  */
291
291
  readonly filter?: any;
292
292
  /**
293
293
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
294
294
  * @type {any}
295
- * @memberof PartnerTypesApiListPartnerTypes
295
+ * @memberof PartnerTypeApiListPartnerTypes
296
296
  */
297
297
  readonly search?: any;
298
298
  /**
299
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
300
  * @type {any}
301
- * @memberof PartnerTypesApiListPartnerTypes
301
+ * @memberof PartnerTypeApiListPartnerTypes
302
302
  */
303
303
  readonly order?: any;
304
304
  /**
305
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
306
  * @type {any}
307
- * @memberof PartnerTypesApiListPartnerTypes
307
+ * @memberof PartnerTypeApiListPartnerTypes
308
308
  */
309
309
  readonly expand?: any;
310
310
  /**
311
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
312
  * @type {any}
313
- * @memberof PartnerTypesApiListPartnerTypes
313
+ * @memberof PartnerTypeApiListPartnerTypes
314
314
  */
315
315
  readonly filters?: any;
316
316
  }
317
317
  /**
318
- * Request parameters for updatePartnerType operation in PartnerTypesApi.
318
+ * Request parameters for updatePartnerType operation in PartnerTypeApi.
319
319
  * @export
320
- * @interface PartnerTypesApiUpdatePartnerTypeRequest
320
+ * @interface PartnerTypeApiUpdatePartnerTypeRequest
321
321
  */
322
- export interface PartnerTypesApiUpdatePartnerTypeRequest {
322
+ export interface PartnerTypeApiUpdatePartnerTypeRequest {
323
323
  /**
324
324
  * Unique identifier for the object.
325
325
  * @type {string}
326
- * @memberof PartnerTypesApiUpdatePartnerType
326
+ * @memberof PartnerTypeApiUpdatePartnerType
327
327
  */
328
328
  readonly code: string;
329
329
  /**
330
330
  *
331
331
  * @type {UpdatePartnerTypeRequestDto}
332
- * @memberof PartnerTypesApiUpdatePartnerType
332
+ * @memberof PartnerTypeApiUpdatePartnerType
333
333
  */
334
334
  readonly updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto;
335
335
  /**
336
336
  * Bearer Token: provided by the login endpoint under the name accessToken.
337
337
  * @type {string}
338
- * @memberof PartnerTypesApiUpdatePartnerType
338
+ * @memberof PartnerTypeApiUpdatePartnerType
339
339
  */
340
340
  readonly authorization?: string;
341
341
  }
342
342
  /**
343
- * PartnerTypesApi - object-oriented interface
343
+ * PartnerTypeApi - object-oriented interface
344
344
  * @export
345
- * @class PartnerTypesApi
345
+ * @class PartnerTypeApi
346
346
  * @extends {BaseAPI}
347
347
  */
348
- export declare class PartnerTypesApi extends BaseAPI {
348
+ export declare class PartnerTypeApi extends BaseAPI {
349
349
  /**
350
350
  * This will create a partner type.
351
351
  * @summary Create the partner-types
352
- * @param {PartnerTypesApiCreatePartnerTypeRequest} requestParameters Request parameters.
352
+ * @param {PartnerTypeApiCreatePartnerTypeRequest} requestParameters Request parameters.
353
353
  * @param {*} [options] Override http request option.
354
354
  * @throws {RequiredError}
355
- * @memberof PartnerTypesApi
355
+ * @memberof PartnerTypeApi
356
356
  */
357
- createPartnerType(requestParameters: PartnerTypesApiCreatePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerTypeResponseClass, any>>;
357
+ createPartnerType(requestParameters: PartnerTypeApiCreatePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerTypeResponseClass, any>>;
358
358
  /**
359
359
  * Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
360
360
  * @summary Delete the partner-types
361
- * @param {PartnerTypesApiDeletePartnerTypeRequest} requestParameters Request parameters.
361
+ * @param {PartnerTypeApiDeletePartnerTypeRequest} requestParameters Request parameters.
362
362
  * @param {*} [options] Override http request option.
363
363
  * @throws {RequiredError}
364
- * @memberof PartnerTypesApi
364
+ * @memberof PartnerTypeApi
365
365
  */
366
- deletePartnerType(requestParameters: PartnerTypesApiDeletePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
366
+ deletePartnerType(requestParameters: PartnerTypeApiDeletePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
367
367
  /**
368
368
  * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
369
369
  * @summary Retrieve the partner-types
370
- * @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
370
+ * @param {PartnerTypeApiGetPartnerTypeRequest} requestParameters Request parameters.
371
371
  * @param {*} [options] Override http request option.
372
372
  * @throws {RequiredError}
373
- * @memberof PartnerTypesApi
373
+ * @memberof PartnerTypeApi
374
374
  */
375
- getPartnerType(requestParameters: PartnerTypesApiGetPartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerTypeResponseClass, any>>;
375
+ getPartnerType(requestParameters: PartnerTypeApiGetPartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerTypeResponseClass, any>>;
376
376
  /**
377
377
  * Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
378
378
  * @summary List partner-types
379
- * @param {PartnerTypesApiListPartnerTypesRequest} requestParameters Request parameters.
379
+ * @param {PartnerTypeApiListPartnerTypesRequest} requestParameters Request parameters.
380
380
  * @param {*} [options] Override http request option.
381
381
  * @throws {RequiredError}
382
- * @memberof PartnerTypesApi
382
+ * @memberof PartnerTypeApi
383
383
  */
384
- listPartnerTypes(requestParameters?: PartnerTypesApiListPartnerTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerTypesResponseClass, any>>;
384
+ listPartnerTypes(requestParameters?: PartnerTypeApiListPartnerTypesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnerTypesResponseClass, any>>;
385
385
  /**
386
386
  * Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
387
387
  * @summary Update the partner-types
388
- * @param {PartnerTypesApiUpdatePartnerTypeRequest} requestParameters Request parameters.
388
+ * @param {PartnerTypeApiUpdatePartnerTypeRequest} requestParameters Request parameters.
389
389
  * @param {*} [options] Override http request option.
390
390
  * @throws {RequiredError}
391
- * @memberof PartnerTypesApi
391
+ * @memberof PartnerTypeApi
392
392
  */
393
- updatePartnerType(requestParameters: PartnerTypesApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerTypeResponseClass, any>>;
393
+ updatePartnerType(requestParameters: PartnerTypeApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerTypeResponseClass, any>>;
394
394
  }
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.PartnerTypesApi = exports.PartnerTypesApiFactory = exports.PartnerTypesApiFp = exports.PartnerTypesApiAxiosParamCreator = void 0;
81
+ exports.PartnerTypeApi = exports.PartnerTypeApiFactory = exports.PartnerTypeApiFp = exports.PartnerTypeApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -86,10 +86,10 @@ var common_1 = require("../common");
86
86
  // @ts-ignore
87
87
  var base_1 = require("../base");
88
88
  /**
89
- * PartnerTypesApi - axios parameter creator
89
+ * PartnerTypeApi - axios parameter creator
90
90
  * @export
91
91
  */
92
- var PartnerTypesApiAxiosParamCreator = function (configuration) {
92
+ var PartnerTypeApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
@@ -368,13 +368,13 @@ var PartnerTypesApiAxiosParamCreator = function (configuration) {
368
368
  },
369
369
  };
370
370
  };
371
- exports.PartnerTypesApiAxiosParamCreator = PartnerTypesApiAxiosParamCreator;
371
+ exports.PartnerTypeApiAxiosParamCreator = PartnerTypeApiAxiosParamCreator;
372
372
  /**
373
- * PartnerTypesApi - functional programming interface
373
+ * PartnerTypeApi - functional programming interface
374
374
  * @export
375
375
  */
376
- var PartnerTypesApiFp = function (configuration) {
377
- var localVarAxiosParamCreator = (0, exports.PartnerTypesApiAxiosParamCreator)(configuration);
376
+ var PartnerTypeApiFp = function (configuration) {
377
+ var localVarAxiosParamCreator = (0, exports.PartnerTypeApiAxiosParamCreator)(configuration);
378
378
  return {
379
379
  /**
380
380
  * This will create a partner type.
@@ -491,13 +491,13 @@ var PartnerTypesApiFp = function (configuration) {
491
491
  },
492
492
  };
493
493
  };
494
- exports.PartnerTypesApiFp = PartnerTypesApiFp;
494
+ exports.PartnerTypeApiFp = PartnerTypeApiFp;
495
495
  /**
496
- * PartnerTypesApi - factory interface
496
+ * PartnerTypeApi - factory interface
497
497
  * @export
498
498
  */
499
- var PartnerTypesApiFactory = function (configuration, basePath, axios) {
500
- var localVarFp = (0, exports.PartnerTypesApiFp)(configuration);
499
+ var PartnerTypeApiFactory = function (configuration, basePath, axios) {
500
+ var localVarFp = (0, exports.PartnerTypeApiFp)(configuration);
501
501
  return {
502
502
  /**
503
503
  * This will create a partner type.
@@ -564,79 +564,79 @@ var PartnerTypesApiFactory = function (configuration, basePath, axios) {
564
564
  },
565
565
  };
566
566
  };
567
- exports.PartnerTypesApiFactory = PartnerTypesApiFactory;
567
+ exports.PartnerTypeApiFactory = PartnerTypeApiFactory;
568
568
  /**
569
- * PartnerTypesApi - object-oriented interface
569
+ * PartnerTypeApi - object-oriented interface
570
570
  * @export
571
- * @class PartnerTypesApi
571
+ * @class PartnerTypeApi
572
572
  * @extends {BaseAPI}
573
573
  */
574
- var PartnerTypesApi = /** @class */ (function (_super) {
575
- __extends(PartnerTypesApi, _super);
576
- function PartnerTypesApi() {
574
+ var PartnerTypeApi = /** @class */ (function (_super) {
575
+ __extends(PartnerTypeApi, _super);
576
+ function PartnerTypeApi() {
577
577
  return _super !== null && _super.apply(this, arguments) || this;
578
578
  }
579
579
  /**
580
580
  * This will create a partner type.
581
581
  * @summary Create the partner-types
582
- * @param {PartnerTypesApiCreatePartnerTypeRequest} requestParameters Request parameters.
582
+ * @param {PartnerTypeApiCreatePartnerTypeRequest} requestParameters Request parameters.
583
583
  * @param {*} [options] Override http request option.
584
584
  * @throws {RequiredError}
585
- * @memberof PartnerTypesApi
585
+ * @memberof PartnerTypeApi
586
586
  */
587
- PartnerTypesApi.prototype.createPartnerType = function (requestParameters, options) {
587
+ PartnerTypeApi.prototype.createPartnerType = function (requestParameters, options) {
588
588
  var _this = this;
589
- return (0, exports.PartnerTypesApiFp)(this.configuration).createPartnerType(requestParameters.createPartnerTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
589
+ return (0, exports.PartnerTypeApiFp)(this.configuration).createPartnerType(requestParameters.createPartnerTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
590
590
  };
591
591
  /**
592
592
  * Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
593
593
  * @summary Delete the partner-types
594
- * @param {PartnerTypesApiDeletePartnerTypeRequest} requestParameters Request parameters.
594
+ * @param {PartnerTypeApiDeletePartnerTypeRequest} requestParameters Request parameters.
595
595
  * @param {*} [options] Override http request option.
596
596
  * @throws {RequiredError}
597
- * @memberof PartnerTypesApi
597
+ * @memberof PartnerTypeApi
598
598
  */
599
- PartnerTypesApi.prototype.deletePartnerType = function (requestParameters, options) {
599
+ PartnerTypeApi.prototype.deletePartnerType = function (requestParameters, options) {
600
600
  var _this = this;
601
- return (0, exports.PartnerTypesApiFp)(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
601
+ return (0, exports.PartnerTypeApiFp)(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
602
602
  };
603
603
  /**
604
604
  * Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
605
605
  * @summary Retrieve the partner-types
606
- * @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
606
+ * @param {PartnerTypeApiGetPartnerTypeRequest} requestParameters Request parameters.
607
607
  * @param {*} [options] Override http request option.
608
608
  * @throws {RequiredError}
609
- * @memberof PartnerTypesApi
609
+ * @memberof PartnerTypeApi
610
610
  */
611
- PartnerTypesApi.prototype.getPartnerType = function (requestParameters, options) {
611
+ PartnerTypeApi.prototype.getPartnerType = function (requestParameters, options) {
612
612
  var _this = this;
613
- return (0, exports.PartnerTypesApiFp)(this.configuration).getPartnerType(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
613
+ return (0, exports.PartnerTypeApiFp)(this.configuration).getPartnerType(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
614
614
  };
615
615
  /**
616
616
  * Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
617
617
  * @summary List partner-types
618
- * @param {PartnerTypesApiListPartnerTypesRequest} requestParameters Request parameters.
618
+ * @param {PartnerTypeApiListPartnerTypesRequest} requestParameters Request parameters.
619
619
  * @param {*} [options] Override http request option.
620
620
  * @throws {RequiredError}
621
- * @memberof PartnerTypesApi
621
+ * @memberof PartnerTypeApi
622
622
  */
623
- PartnerTypesApi.prototype.listPartnerTypes = function (requestParameters, options) {
623
+ PartnerTypeApi.prototype.listPartnerTypes = function (requestParameters, options) {
624
624
  var _this = this;
625
625
  if (requestParameters === void 0) { requestParameters = {}; }
626
- return (0, exports.PartnerTypesApiFp)(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
626
+ return (0, exports.PartnerTypeApiFp)(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
627
627
  };
628
628
  /**
629
629
  * Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
630
630
  * @summary Update the partner-types
631
- * @param {PartnerTypesApiUpdatePartnerTypeRequest} requestParameters Request parameters.
631
+ * @param {PartnerTypeApiUpdatePartnerTypeRequest} requestParameters Request parameters.
632
632
  * @param {*} [options] Override http request option.
633
633
  * @throws {RequiredError}
634
- * @memberof PartnerTypesApi
634
+ * @memberof PartnerTypeApi
635
635
  */
636
- PartnerTypesApi.prototype.updatePartnerType = function (requestParameters, options) {
636
+ PartnerTypeApi.prototype.updatePartnerType = function (requestParameters, options) {
637
637
  var _this = this;
638
- return (0, exports.PartnerTypesApiFp)(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
638
+ return (0, exports.PartnerTypeApiFp)(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
639
639
  };
640
- return PartnerTypesApi;
640
+ return PartnerTypeApi;
641
641
  }(base_1.BaseAPI));
642
- exports.PartnerTypesApi = PartnerTypesApi;
642
+ exports.PartnerTypeApi = PartnerTypeApi;
package/dist/api.d.ts CHANGED
@@ -10,8 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/default-api';
13
- export * from './api/partner-relations-api';
14
- export * from './api/partner-tags-api';
15
- export * from './api/partner-types-api';
13
+ export * from './api/partner-api';
14
+ export * from './api/partner-invitation-api';
15
+ export * from './api/partner-relation-api';
16
+ export * from './api/partner-tag-api';
17
+ export * from './api/partner-type-api';
16
18
  export * from './api/partner-version-api';
17
- export * from './api/partners-api';
package/dist/api.js CHANGED
@@ -28,8 +28,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/default-api"), exports);
31
- __exportStar(require("./api/partner-relations-api"), exports);
32
- __exportStar(require("./api/partner-tags-api"), exports);
33
- __exportStar(require("./api/partner-types-api"), exports);
31
+ __exportStar(require("./api/partner-api"), exports);
32
+ __exportStar(require("./api/partner-invitation-api"), exports);
33
+ __exportStar(require("./api/partner-relation-api"), exports);
34
+ __exportStar(require("./api/partner-tag-api"), exports);
35
+ __exportStar(require("./api/partner-type-api"), exports);
34
36
  __exportStar(require("./api/partner-version-api"), exports);
35
- __exportStar(require("./api/partners-api"), exports);
@@ -27,4 +27,10 @@ export interface CreatePartnerRequestDto {
27
27
  * @memberof CreatePartnerRequestDto
28
28
  */
29
29
  'partner': object;
30
+ /**
31
+ * Unique number assigned to the partner.
32
+ * @type {string}
33
+ * @memberof CreatePartnerRequestDto
34
+ */
35
+ 'partnerNumber': string;
30
36
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { InviteClass } from './invite-class';
12
13
  import { PartnerClass } from './partner-class';
13
14
  /**
14
15
  *
@@ -22,4 +23,10 @@ export interface CreatePartnerResponseClass {
22
23
  * @memberof CreatePartnerResponseClass
23
24
  */
24
25
  'partner': PartnerClass;
26
+ /**
27
+ * The invite response.
28
+ * @type {InviteClass}
29
+ * @memberof CreatePartnerResponseClass
30
+ */
31
+ 'invite': InviteClass;
25
32
  }
@@ -15,6 +15,9 @@ export * from './get-partner-version-response-class';
15
15
  export * from './get-tag-response-class';
16
16
  export * from './inline-response200';
17
17
  export * from './inline-response503';
18
+ export * from './invite-class';
19
+ export * from './invite-partner-to-eisrequest-dto';
20
+ export * from './invite-partner-to-eis-response-class';
18
21
  export * from './list-partner-relation-class';
19
22
  export * from './list-partner-relation-types-class';
20
23
  export * from './list-partner-types-response-class';
@@ -25,6 +28,8 @@ export * from './partner-class';
25
28
  export * from './partner-relation-class';
26
29
  export * from './partner-relation-type-class';
27
30
  export * from './partner-type-class';
31
+ export * from './permission-class';
32
+ export * from './role-class';
28
33
  export * from './tag-class';
29
34
  export * from './tag-partner-request-dto-rest';
30
35
  export * from './update-partner-relation-request-dto-rest';
@@ -31,6 +31,9 @@ __exportStar(require("./get-partner-version-response-class"), exports);
31
31
  __exportStar(require("./get-tag-response-class"), exports);
32
32
  __exportStar(require("./inline-response200"), exports);
33
33
  __exportStar(require("./inline-response503"), exports);
34
+ __exportStar(require("./invite-class"), exports);
35
+ __exportStar(require("./invite-partner-to-eisrequest-dto"), exports);
36
+ __exportStar(require("./invite-partner-to-eis-response-class"), exports);
34
37
  __exportStar(require("./list-partner-relation-class"), exports);
35
38
  __exportStar(require("./list-partner-relation-types-class"), exports);
36
39
  __exportStar(require("./list-partner-types-response-class"), exports);
@@ -41,6 +44,8 @@ __exportStar(require("./partner-class"), exports);
41
44
  __exportStar(require("./partner-relation-class"), exports);
42
45
  __exportStar(require("./partner-relation-type-class"), exports);
43
46
  __exportStar(require("./partner-type-class"), exports);
47
+ __exportStar(require("./permission-class"), exports);
48
+ __exportStar(require("./role-class"), exports);
44
49
  __exportStar(require("./tag-class"), exports);
45
50
  __exportStar(require("./tag-partner-request-dto-rest"), exports);
46
51
  __exportStar(require("./update-partner-relation-request-dto-rest"), exports);
@@ -0,0 +1,79 @@
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 { RoleClass } from './role-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface InviteClass
17
+ */
18
+ export interface InviteClass {
19
+ /**
20
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
21
+ * @type {number}
22
+ * @memberof InviteClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * User email address.
27
+ * @type {string}
28
+ * @memberof InviteClass
29
+ */
30
+ 'email': string;
31
+ /**
32
+ * Roles associated with the invite.
33
+ * @type {Array<RoleClass>}
34
+ * @memberof InviteClass
35
+ */
36
+ 'roles': Array<RoleClass>;
37
+ /**
38
+ * Expiry date of invitation email.
39
+ * @type {string}
40
+ * @memberof InviteClass
41
+ */
42
+ 'expiresOn': string;
43
+ /**
44
+ * Time at which the object was created.
45
+ * @type {string}
46
+ * @memberof InviteClass
47
+ */
48
+ 'createdAt': string;
49
+ /**
50
+ * Time at which the object was updated.
51
+ * @type {string}
52
+ * @memberof InviteClass
53
+ */
54
+ 'updatedAt': string;
55
+ /**
56
+ * Identifier of the user who created the record.
57
+ * @type {string}
58
+ * @memberof InviteClass
59
+ */
60
+ 'createdBy': string;
61
+ /**
62
+ * Identifier of the user who last updated the record.
63
+ * @type {string}
64
+ * @memberof InviteClass
65
+ */
66
+ 'updatedBy': string;
67
+ /**
68
+ * Emil Resources Names (ERN) identifies the most specific owner of a resource.
69
+ * @type {string}
70
+ * @memberof InviteClass
71
+ */
72
+ 'ern': string;
73
+ /**
74
+ * Optional metadata associated with the invite - useful for passing data to the front end for custom logic.
75
+ * @type {object}
76
+ * @memberof InviteClass
77
+ */
78
+ 'metadata': object;
79
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL PartnerService
6
+ * The EMIL PartnerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });