@emilgroup/numbergenerator-sdk 1.5.1-beta.4 → 1.11.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.
@@ -3,7 +3,7 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
- api/default-api.ts
6
+ api/health-api.ts
7
7
  api/numbers-api.ts
8
8
  base.ts
9
9
  common.ts
@@ -16,9 +16,12 @@ models/get-number-response-class.ts
16
16
  models/index.ts
17
17
  models/inline-response200.ts
18
18
  models/inline-response503.ts
19
+ models/list-dto.ts
19
20
  models/list-numbers-response-class.ts
20
21
  models/lookup-number-request-dto.ts
22
+ models/random-dto.ts
21
23
  models/reset-number-request-dto.ts
24
+ models/sequence-dto.ts
22
25
  models/update-number-response-class.ts
23
26
  package.json
24
27
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/numbergenerator-sdk@1.5.1-beta.4 --save
20
+ npm install @emilgroup/numbergenerator-sdk@1.11.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/numbergenerator-sdk@1.5.1-beta.4
24
+ yarn add @emilgroup/numbergenerator-sdk@1.11.0
25
25
  ```
26
26
 
27
27
  And then you can import `NumbersApi`.
@@ -25,10 +25,10 @@ import { InlineResponse200 } from '../models';
25
25
  // @ts-ignore
26
26
  import { InlineResponse503 } from '../models';
27
27
  /**
28
- * DefaultApi - axios parameter creator
28
+ * HealthApi - axios parameter creator
29
29
  * @export
30
30
  */
31
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
31
+ export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
32
32
  return {
33
33
  /**
34
34
  *
@@ -65,11 +65,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
65
65
  };
66
66
 
67
67
  /**
68
- * DefaultApi - functional programming interface
68
+ * HealthApi - functional programming interface
69
69
  * @export
70
70
  */
71
- export const DefaultApiFp = function(configuration?: Configuration) {
72
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
71
+ export const HealthApiFp = function(configuration?: Configuration) {
72
+ const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
73
73
  return {
74
74
  /**
75
75
  *
@@ -84,11 +84,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
84
84
  };
85
85
 
86
86
  /**
87
- * DefaultApi - factory interface
87
+ * HealthApi - factory interface
88
88
  * @export
89
89
  */
90
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
91
- const localVarFp = DefaultApiFp(configuration)
90
+ export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
91
+ const localVarFp = HealthApiFp(configuration)
92
92
  return {
93
93
  /**
94
94
  *
@@ -102,19 +102,19 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
102
102
  };
103
103
 
104
104
  /**
105
- * DefaultApi - object-oriented interface
105
+ * HealthApi - object-oriented interface
106
106
  * @export
107
- * @class DefaultApi
107
+ * @class HealthApi
108
108
  * @extends {BaseAPI}
109
109
  */
110
- export class DefaultApi extends BaseAPI {
110
+ export class HealthApi extends BaseAPI {
111
111
  /**
112
112
  *
113
113
  * @param {*} [options] Override http request option.
114
114
  * @throws {RequiredError}
115
- * @memberof DefaultApi
115
+ * @memberof HealthApi
116
116
  */
117
117
  public check(options?: AxiosRequestConfig) {
118
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
118
+ return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
119
119
  }
120
120
  }
@@ -25,12 +25,18 @@ import { CreateNumberResponseClass } from '../models';
25
25
  // @ts-ignore
26
26
  import { GetNumberResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { ListDto } from '../models';
29
+ // @ts-ignore
28
30
  import { ListNumbersResponseClass } from '../models';
29
31
  // @ts-ignore
30
32
  import { LookupNumberRequestDto } from '../models';
31
33
  // @ts-ignore
34
+ import { RandomDto } from '../models';
35
+ // @ts-ignore
32
36
  import { ResetNumberRequestDto } from '../models';
33
37
  // @ts-ignore
38
+ import { SequenceDto } from '../models';
39
+ // @ts-ignore
34
40
  import { UpdateNumberResponseClass } from '../models';
35
41
  /**
36
42
  * NumbersApi - axios parameter creator
@@ -43,12 +49,12 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
43
49
  * @summary Create the number
44
50
  * @param {string} slug The slug of the number
45
51
  * @param {string} type The type of number generator. This determines the structure of the config object.
46
- * @param {object} config Configuration object that varies based on the type field
52
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
47
53
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
48
54
  * @param {*} [options] Override http request option.
49
55
  * @throws {RequiredError}
50
56
  */
51
- createNumber: async (slug: string, type: string, config: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
57
+ createNumber: async (slug: string, type: string, config: SequenceDto | ListDto | RandomDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
52
58
  // verify required parameter 'slug' is not null or undefined
53
59
  assertParamExists('createNumber', 'slug', slug)
54
60
  // verify required parameter 'type' is not null or undefined
@@ -386,12 +392,12 @@ export const NumbersApiFp = function(configuration?: Configuration) {
386
392
  * @summary Create the number
387
393
  * @param {string} slug The slug of the number
388
394
  * @param {string} type The type of number generator. This determines the structure of the config object.
389
- * @param {object} config Configuration object that varies based on the type field
395
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
390
396
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
391
397
  * @param {*} [options] Override http request option.
392
398
  * @throws {RequiredError}
393
399
  */
394
- async createNumber(slug: string, type: string, config: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>> {
400
+ async createNumber(slug: string, type: string, config: SequenceDto | ListDto | RandomDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>> {
395
401
  const localVarAxiosArgs = await localVarAxiosParamCreator.createNumber(slug, type, config, authorization, options);
396
402
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
397
403
  },
@@ -477,12 +483,12 @@ export const NumbersApiFactory = function (configuration?: Configuration, basePa
477
483
  * @summary Create the number
478
484
  * @param {string} slug The slug of the number
479
485
  * @param {string} type The type of number generator. This determines the structure of the config object.
480
- * @param {object} config Configuration object that varies based on the type field
486
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
481
487
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
488
  * @param {*} [options] Override http request option.
483
489
  * @throws {RequiredError}
484
490
  */
485
- createNumber(slug: string, type: string, config: object, authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass> {
491
+ createNumber(slug: string, type: string, config: SequenceDto | ListDto | RandomDto, authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass> {
486
492
  return localVarFp.createNumber(slug, type, config, authorization, options).then((request) => request(axios, basePath));
487
493
  },
488
494
  /**
@@ -571,11 +577,11 @@ export interface NumbersApiCreateNumberRequest {
571
577
  readonly type: string
572
578
 
573
579
  /**
574
- * Configuration object that varies based on the type field
575
- * @type {object}
580
+ * Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
581
+ * @type {SequenceDto | ListDto | RandomDto}
576
582
  * @memberof NumbersApiCreateNumber
577
583
  */
578
- readonly config: object
584
+ readonly config: SequenceDto | ListDto | RandomDto
579
585
 
580
586
  /**
581
587
  * Bearer Token: provided by the login endpoint under the name accessToken.
package/api.ts CHANGED
@@ -20,10 +20,10 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
- import { DefaultApi } from './api';
23
+ import { HealthApi } from './api';
24
24
  import { NumbersApi } from './api';
25
25
 
26
26
 
27
- export * from './api/default-api';
27
+ export * from './api/health-api';
28
28
  export * from './api/numbers-api';
29
29
 
package/base.ts CHANGED
@@ -53,6 +53,7 @@ export enum Environment {
53
53
  Staging = 'https://apiv2-staging.emil.de',
54
54
  Development = 'https://apiv2-dev.emil.de',
55
55
  ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
56
+ StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
56
57
  }
57
58
 
58
59
  let _retry_count = 0
@@ -14,10 +14,10 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { InlineResponse200 } from '../models';
16
16
  /**
17
- * DefaultApi - axios parameter creator
17
+ * HealthApi - axios parameter creator
18
18
  * @export
19
19
  */
20
- export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
20
+ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
21
21
  /**
22
22
  *
23
23
  * @param {*} [options] Override http request option.
@@ -26,10 +26,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
26
26
  check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
27
  };
28
28
  /**
29
- * DefaultApi - functional programming interface
29
+ * HealthApi - functional programming interface
30
30
  * @export
31
31
  */
32
- export declare const DefaultApiFp: (configuration?: Configuration) => {
32
+ export declare const HealthApiFp: (configuration?: Configuration) => {
33
33
  /**
34
34
  *
35
35
  * @param {*} [options] Override http request option.
@@ -38,10 +38,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
38
38
  check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
39
39
  };
40
40
  /**
41
- * DefaultApi - factory interface
41
+ * HealthApi - factory interface
42
42
  * @export
43
43
  */
44
- export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
44
+ export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
45
  /**
46
46
  *
47
47
  * @param {*} [options] Override http request option.
@@ -50,17 +50,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
50
50
  check(options?: any): AxiosPromise<InlineResponse200>;
51
51
  };
52
52
  /**
53
- * DefaultApi - object-oriented interface
53
+ * HealthApi - object-oriented interface
54
54
  * @export
55
- * @class DefaultApi
55
+ * @class HealthApi
56
56
  * @extends {BaseAPI}
57
57
  */
58
- export declare class DefaultApi extends BaseAPI {
58
+ export declare class HealthApi extends BaseAPI {
59
59
  /**
60
60
  *
61
61
  * @param {*} [options] Override http request option.
62
62
  * @throws {RequiredError}
63
- * @memberof DefaultApi
63
+ * @memberof HealthApi
64
64
  */
65
65
  check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
66
66
  }
@@ -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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
81
+ exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = 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
- * DefaultApi - axios parameter creator
89
+ * HealthApi - axios parameter creator
90
90
  * @export
91
91
  */
92
- var DefaultApiAxiosParamCreator = function (configuration) {
92
+ var HealthApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
@@ -123,13 +123,13 @@ var DefaultApiAxiosParamCreator = function (configuration) {
123
123
  },
124
124
  };
125
125
  };
126
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
126
+ exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
127
127
  /**
128
- * DefaultApi - functional programming interface
128
+ * HealthApi - functional programming interface
129
129
  * @export
130
130
  */
131
- var DefaultApiFp = function (configuration) {
132
- var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
131
+ var HealthApiFp = function (configuration) {
132
+ var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
133
133
  return {
134
134
  /**
135
135
  *
@@ -151,13 +151,13 @@ var DefaultApiFp = function (configuration) {
151
151
  },
152
152
  };
153
153
  };
154
- exports.DefaultApiFp = DefaultApiFp;
154
+ exports.HealthApiFp = HealthApiFp;
155
155
  /**
156
- * DefaultApi - factory interface
156
+ * HealthApi - factory interface
157
157
  * @export
158
158
  */
159
- var DefaultApiFactory = function (configuration, basePath, axios) {
160
- var localVarFp = (0, exports.DefaultApiFp)(configuration);
159
+ var HealthApiFactory = function (configuration, basePath, axios) {
160
+ var localVarFp = (0, exports.HealthApiFp)(configuration);
161
161
  return {
162
162
  /**
163
163
  *
@@ -169,28 +169,28 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
169
169
  },
170
170
  };
171
171
  };
172
- exports.DefaultApiFactory = DefaultApiFactory;
172
+ exports.HealthApiFactory = HealthApiFactory;
173
173
  /**
174
- * DefaultApi - object-oriented interface
174
+ * HealthApi - object-oriented interface
175
175
  * @export
176
- * @class DefaultApi
176
+ * @class HealthApi
177
177
  * @extends {BaseAPI}
178
178
  */
179
- var DefaultApi = /** @class */ (function (_super) {
180
- __extends(DefaultApi, _super);
181
- function DefaultApi() {
179
+ var HealthApi = /** @class */ (function (_super) {
180
+ __extends(HealthApi, _super);
181
+ function HealthApi() {
182
182
  return _super !== null && _super.apply(this, arguments) || this;
183
183
  }
184
184
  /**
185
185
  *
186
186
  * @param {*} [options] Override http request option.
187
187
  * @throws {RequiredError}
188
- * @memberof DefaultApi
188
+ * @memberof HealthApi
189
189
  */
190
- DefaultApi.prototype.check = function (options) {
190
+ HealthApi.prototype.check = function (options) {
191
191
  var _this = this;
192
- return (0, exports.DefaultApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
192
+ return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
193
193
  };
194
- return DefaultApi;
194
+ return HealthApi;
195
195
  }(base_1.BaseAPI));
196
- exports.DefaultApi = DefaultApi;
196
+ exports.HealthApi = HealthApi;
@@ -14,9 +14,12 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateNumberResponseClass } from '../models';
16
16
  import { GetNumberResponseClass } from '../models';
17
+ import { ListDto } from '../models';
17
18
  import { ListNumbersResponseClass } from '../models';
18
19
  import { LookupNumberRequestDto } from '../models';
20
+ import { RandomDto } from '../models';
19
21
  import { ResetNumberRequestDto } from '../models';
22
+ import { SequenceDto } from '../models';
20
23
  import { UpdateNumberResponseClass } from '../models';
21
24
  /**
22
25
  * NumbersApi - axios parameter creator
@@ -28,12 +31,12 @@ export declare const NumbersApiAxiosParamCreator: (configuration?: Configuration
28
31
  * @summary Create the number
29
32
  * @param {string} slug The slug of the number
30
33
  * @param {string} type The type of number generator. This determines the structure of the config object.
31
- * @param {object} config Configuration object that varies based on the type field
34
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
32
35
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
33
36
  * @param {*} [options] Override http request option.
34
37
  * @throws {RequiredError}
35
38
  */
36
- createNumber: (slug: string, type: string, config: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39
+ createNumber: (slug: string, type: string, config: SequenceDto | ListDto | RandomDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
40
  /**
38
41
  * Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
39
42
  * @summary Retrieve the number
@@ -97,12 +100,12 @@ export declare const NumbersApiFp: (configuration?: Configuration) => {
97
100
  * @summary Create the number
98
101
  * @param {string} slug The slug of the number
99
102
  * @param {string} type The type of number generator. This determines the structure of the config object.
100
- * @param {object} config Configuration object that varies based on the type field
103
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
101
104
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
105
  * @param {*} [options] Override http request option.
103
106
  * @throws {RequiredError}
104
107
  */
105
- createNumber(slug: string, type: string, config: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>>;
108
+ createNumber(slug: string, type: string, config: SequenceDto | ListDto | RandomDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>>;
106
109
  /**
107
110
  * Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
108
111
  * @summary Retrieve the number
@@ -166,12 +169,12 @@ export declare const NumbersApiFactory: (configuration?: Configuration, basePath
166
169
  * @summary Create the number
167
170
  * @param {string} slug The slug of the number
168
171
  * @param {string} type The type of number generator. This determines the structure of the config object.
169
- * @param {object} config Configuration object that varies based on the type field
172
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
170
173
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
171
174
  * @param {*} [options] Override http request option.
172
175
  * @throws {RequiredError}
173
176
  */
174
- createNumber(slug: string, type: string, config: object, authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass>;
177
+ createNumber(slug: string, type: string, config: SequenceDto | ListDto | RandomDto, authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass>;
175
178
  /**
176
179
  * Retrieves the details of the number that was previously created. Supply the unique number code that was returned when you created it and Emil Api will return the corresponding number information.
177
180
  * @summary Retrieve the number
@@ -244,11 +247,11 @@ export interface NumbersApiCreateNumberRequest {
244
247
  */
245
248
  readonly type: string;
246
249
  /**
247
- * Configuration object that varies based on the type field
248
- * @type {object}
250
+ * Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
251
+ * @type {SequenceDto | ListDto | RandomDto}
249
252
  * @memberof NumbersApiCreateNumber
250
253
  */
251
- readonly config: object;
254
+ readonly config: SequenceDto | ListDto | RandomDto;
252
255
  /**
253
256
  * Bearer Token: provided by the login endpoint under the name accessToken.
254
257
  * @type {string}
@@ -97,7 +97,7 @@ var NumbersApiAxiosParamCreator = function (configuration) {
97
97
  * @summary Create the number
98
98
  * @param {string} slug The slug of the number
99
99
  * @param {string} type The type of number generator. This determines the structure of the config object.
100
- * @param {object} config Configuration object that varies based on the type field
100
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
101
101
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
102
102
  * @param {*} [options] Override http request option.
103
103
  * @throws {RequiredError}
@@ -443,7 +443,7 @@ var NumbersApiFp = function (configuration) {
443
443
  * @summary Create the number
444
444
  * @param {string} slug The slug of the number
445
445
  * @param {string} type The type of number generator. This determines the structure of the config object.
446
- * @param {object} config Configuration object that varies based on the type field
446
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
447
447
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
448
448
  * @param {*} [options] Override http request option.
449
449
  * @throws {RequiredError}
@@ -588,7 +588,7 @@ var NumbersApiFactory = function (configuration, basePath, axios) {
588
588
  * @summary Create the number
589
589
  * @param {string} slug The slug of the number
590
590
  * @param {string} type The type of number generator. This determines the structure of the config object.
591
- * @param {object} config Configuration object that varies based on the type field
591
+ * @param {SequenceDto | ListDto | RandomDto} config Configuration object. Structure depends on type: sequence - SequenceDto, list - ListDto, random - RandomDto.
592
592
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
593
593
  * @param {*} [options] Override http request option.
594
594
  * @throws {RequiredError}
package/dist/api.d.ts CHANGED
@@ -9,5 +9,5 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export * from './api/default-api';
12
+ export * from './api/health-api';
13
13
  export * from './api/numbers-api';
package/dist/api.js CHANGED
@@ -27,5 +27,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api/default-api"), exports);
30
+ __exportStar(require("./api/health-api"), exports);
31
31
  __exportStar(require("./api/numbers-api"), exports);
package/dist/base.d.ts CHANGED
@@ -39,7 +39,8 @@ export declare enum Environment {
39
39
  Test = "https://apiv2-test.emil.de",
40
40
  Staging = "https://apiv2-staging.emil.de",
41
41
  Development = "https://apiv2-dev.emil.de",
42
- ProductionZurich = "https://eu-central-2.apiv2.emil.de"
42
+ ProductionZurich = "https://eu-central-2.apiv2.emil.de",
43
+ StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
43
44
  }
44
45
  export declare function resetRetry(): void;
45
46
  /**
package/dist/base.js CHANGED
@@ -102,6 +102,7 @@ var Environment;
102
102
  Environment["Staging"] = "https://apiv2-staging.emil.de";
103
103
  Environment["Development"] = "https://apiv2-dev.emil.de";
104
104
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
105
+ Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
105
106
  })(Environment = exports.Environment || (exports.Environment = {}));
106
107
  var _retry_count = 0;
107
108
  var _retry = null;
@@ -9,6 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ListDto } from './list-dto';
13
+ import { RandomDto } from './random-dto';
14
+ import { SequenceDto } from './sequence-dto';
12
15
  /**
13
16
  *
14
17
  * @export
@@ -41,10 +44,10 @@ export interface EntityNumberClass {
41
44
  'type': EntityNumberClassTypeEnum;
42
45
  /**
43
46
  * Entity number configuration.
44
- * @type {object}
47
+ * @type {SequenceDto | ListDto | RandomDto}
45
48
  * @memberof EntityNumberClass
46
49
  */
47
- 'configuration': object;
50
+ 'configuration': SequenceDto | ListDto | RandomDto;
48
51
  /**
49
52
  * Time at which the object was created.
50
53
  * @type {string}
@@ -3,7 +3,10 @@ export * from './entity-number-class';
3
3
  export * from './get-number-response-class';
4
4
  export * from './inline-response200';
5
5
  export * from './inline-response503';
6
+ export * from './list-dto';
6
7
  export * from './list-numbers-response-class';
7
8
  export * from './lookup-number-request-dto';
9
+ export * from './random-dto';
8
10
  export * from './reset-number-request-dto';
11
+ export * from './sequence-dto';
9
12
  export * from './update-number-response-class';
@@ -19,7 +19,10 @@ __exportStar(require("./entity-number-class"), exports);
19
19
  __exportStar(require("./get-number-response-class"), exports);
20
20
  __exportStar(require("./inline-response200"), exports);
21
21
  __exportStar(require("./inline-response503"), exports);
22
+ __exportStar(require("./list-dto"), exports);
22
23
  __exportStar(require("./list-numbers-response-class"), exports);
23
24
  __exportStar(require("./lookup-number-request-dto"), exports);
25
+ __exportStar(require("./random-dto"), exports);
24
26
  __exportStar(require("./reset-number-request-dto"), exports);
27
+ __exportStar(require("./sequence-dto"), exports);
25
28
  __exportStar(require("./update-number-response-class"), exports);
@@ -0,0 +1,24 @@
1
+ /**
2
+ * EMIL Number Generator Service
3
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ListDto
16
+ */
17
+ export interface ListDto {
18
+ /**
19
+ * Array of string items for the list number generator
20
+ * @type {Array<string>}
21
+ * @memberof ListDto
22
+ */
23
+ 'items': Array<string>;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Number Generator Service
6
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
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 });
@@ -17,15 +17,27 @@ import { EntityNumberClass } from './entity-number-class';
17
17
  */
18
18
  export interface ListNumbersResponseClass {
19
19
  /**
20
- * The list of numbers.
21
- * @type {Array<EntityNumberClass>}
20
+ * Next page token.
21
+ * @type {string}
22
22
  * @memberof ListNumbersResponseClass
23
23
  */
24
- 'items': Array<EntityNumberClass>;
24
+ 'nextPageToken': string;
25
25
  /**
26
- * Next page token
27
- * @type {string}
26
+ * Total amount of items.
27
+ * @type {number}
28
28
  * @memberof ListNumbersResponseClass
29
29
  */
30
- 'nextPageToken': string;
30
+ 'totalItems': number;
31
+ /**
32
+ * Items per page.
33
+ * @type {number}
34
+ * @memberof ListNumbersResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * The list of numbers.
39
+ * @type {Array<EntityNumberClass>}
40
+ * @memberof ListNumbersResponseClass
41
+ */
42
+ 'items': Array<EntityNumberClass>;
31
43
  }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * EMIL Number Generator Service
3
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface RandomDto
16
+ */
17
+ export interface RandomDto {
18
+ /**
19
+ * The number of characters in the random number
20
+ * @type {number}
21
+ * @memberof RandomDto
22
+ */
23
+ 'countOfChars': number;
24
+ /**
25
+ * The custom alphabet for the random number
26
+ * @type {string}
27
+ * @memberof RandomDto
28
+ */
29
+ 'customAlphabet'?: string;
30
+ /**
31
+ * The prefix of the random number
32
+ * @type {string}
33
+ * @memberof RandomDto
34
+ */
35
+ 'prefix'?: string;
36
+ /**
37
+ * The suffix of the random number
38
+ * @type {string}
39
+ * @memberof RandomDto
40
+ */
41
+ 'suffix'?: string;
42
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Number Generator Service
6
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
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 });
@@ -0,0 +1,54 @@
1
+ /**
2
+ * EMIL Number Generator Service
3
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SequenceDto
16
+ */
17
+ export interface SequenceDto {
18
+ /**
19
+ * The first value the sequence generates (inclusive lower bound). Must be at least 1.
20
+ * @type {number}
21
+ * @memberof SequenceDto
22
+ */
23
+ 'start': number;
24
+ /**
25
+ * Minimum width of the numeric part. Shorter values are left-padded using fillString.
26
+ * @type {number}
27
+ * @memberof SequenceDto
28
+ */
29
+ 'countOfChars': number;
30
+ /**
31
+ * Single character used to left-pad the numeric part up to countOfChars.
32
+ * @type {string}
33
+ * @memberof SequenceDto
34
+ */
35
+ 'fillString': string;
36
+ /**
37
+ * Optional text prepended to every generated number.
38
+ * @type {string}
39
+ * @memberof SequenceDto
40
+ */
41
+ 'prefix'?: string;
42
+ /**
43
+ * Optional text appended to every generated number.
44
+ * @type {string}
45
+ * @memberof SequenceDto
46
+ */
47
+ 'suffix'?: string;
48
+ /**
49
+ * Optional inclusive upper bound of the sequence. This is the highest number that can be generated, not the total count of unique numbers. When set, must be greater than or equal to start.
50
+ * @type {number}
51
+ * @memberof SequenceDto
52
+ */
53
+ 'maximum'?: number;
54
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Number Generator Service
6
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
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 });
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ import { ListDto } from './list-dto';
17
+ import { RandomDto } from './random-dto';
18
+ import { SequenceDto } from './sequence-dto';
16
19
 
17
20
  /**
18
21
  *
@@ -46,10 +49,10 @@ export interface EntityNumberClass {
46
49
  'type': EntityNumberClassTypeEnum;
47
50
  /**
48
51
  * Entity number configuration.
49
- * @type {object}
52
+ * @type {SequenceDto | ListDto | RandomDto}
50
53
  * @memberof EntityNumberClass
51
54
  */
52
- 'configuration': object;
55
+ 'configuration': SequenceDto | ListDto | RandomDto;
53
56
  /**
54
57
  * Time at which the object was created.
55
58
  * @type {string}
package/models/index.ts CHANGED
@@ -3,7 +3,10 @@ export * from './entity-number-class';
3
3
  export * from './get-number-response-class';
4
4
  export * from './inline-response200';
5
5
  export * from './inline-response503';
6
+ export * from './list-dto';
6
7
  export * from './list-numbers-response-class';
7
8
  export * from './lookup-number-request-dto';
9
+ export * from './random-dto';
8
10
  export * from './reset-number-request-dto';
11
+ export * from './sequence-dto';
9
12
  export * from './update-number-response-class';
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Number Generator Service
5
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ListDto
21
+ */
22
+ export interface ListDto {
23
+ /**
24
+ * Array of string items for the list number generator
25
+ * @type {Array<string>}
26
+ * @memberof ListDto
27
+ */
28
+ 'items': Array<string>;
29
+ }
30
+
@@ -22,16 +22,28 @@ import { EntityNumberClass } from './entity-number-class';
22
22
  */
23
23
  export interface ListNumbersResponseClass {
24
24
  /**
25
- * The list of numbers.
26
- * @type {Array<EntityNumberClass>}
25
+ * Next page token.
26
+ * @type {string}
27
27
  * @memberof ListNumbersResponseClass
28
28
  */
29
- 'items': Array<EntityNumberClass>;
29
+ 'nextPageToken': string;
30
30
  /**
31
- * Next page token
32
- * @type {string}
31
+ * Total amount of items.
32
+ * @type {number}
33
33
  * @memberof ListNumbersResponseClass
34
34
  */
35
- 'nextPageToken': string;
35
+ 'totalItems': number;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListNumbersResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * The list of numbers.
44
+ * @type {Array<EntityNumberClass>}
45
+ * @memberof ListNumbersResponseClass
46
+ */
47
+ 'items': Array<EntityNumberClass>;
36
48
  }
37
49
 
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Number Generator Service
5
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface RandomDto
21
+ */
22
+ export interface RandomDto {
23
+ /**
24
+ * The number of characters in the random number
25
+ * @type {number}
26
+ * @memberof RandomDto
27
+ */
28
+ 'countOfChars': number;
29
+ /**
30
+ * The custom alphabet for the random number
31
+ * @type {string}
32
+ * @memberof RandomDto
33
+ */
34
+ 'customAlphabet'?: string;
35
+ /**
36
+ * The prefix of the random number
37
+ * @type {string}
38
+ * @memberof RandomDto
39
+ */
40
+ 'prefix'?: string;
41
+ /**
42
+ * The suffix of the random number
43
+ * @type {string}
44
+ * @memberof RandomDto
45
+ */
46
+ 'suffix'?: string;
47
+ }
48
+
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Number Generator Service
5
+ * The EMIL Number Generator Service API is a robust tool designed to generate unique and structured entity numbers like policies, accounts, invoices, and other entities. This API streamlines the process of creating distinct identifiers for various business objects.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface SequenceDto
21
+ */
22
+ export interface SequenceDto {
23
+ /**
24
+ * The first value the sequence generates (inclusive lower bound). Must be at least 1.
25
+ * @type {number}
26
+ * @memberof SequenceDto
27
+ */
28
+ 'start': number;
29
+ /**
30
+ * Minimum width of the numeric part. Shorter values are left-padded using fillString.
31
+ * @type {number}
32
+ * @memberof SequenceDto
33
+ */
34
+ 'countOfChars': number;
35
+ /**
36
+ * Single character used to left-pad the numeric part up to countOfChars.
37
+ * @type {string}
38
+ * @memberof SequenceDto
39
+ */
40
+ 'fillString': string;
41
+ /**
42
+ * Optional text prepended to every generated number.
43
+ * @type {string}
44
+ * @memberof SequenceDto
45
+ */
46
+ 'prefix'?: string;
47
+ /**
48
+ * Optional text appended to every generated number.
49
+ * @type {string}
50
+ * @memberof SequenceDto
51
+ */
52
+ 'suffix'?: string;
53
+ /**
54
+ * Optional inclusive upper bound of the sequence. This is the highest number that can be generated, not the total count of unique numbers. When set, must be greater than or equal to start.
55
+ * @type {number}
56
+ * @memberof SequenceDto
57
+ */
58
+ 'maximum'?: number;
59
+ }
60
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/numbergenerator-sdk",
3
- "version": "1.5.1-beta.4",
3
+ "version": "1.11.0",
4
4
  "description": "OpenAPI client for @emilgroup/numbergenerator-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "1.12.0"
21
+ "axios": "1.18.0"
22
22
  },
23
23
  "devDependencies": {
24
24