@emilgroup/numbergenerator-sdk-node 1.0.1-beta.1 → 1.0.1-beta.11
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 +2 -0
- package/README.md +2 -2
- package/api/numbers-api.ts +92 -35
- package/base.ts +0 -1
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/numbers-api.d.ts +54 -25
- package/dist/api/numbers-api.js +58 -32
- package/dist/common.d.ts +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/lookup-number-request-dto.d.ts +24 -0
- package/dist/models/lookup-number-request-dto.js +15 -0
- package/dist/models/reset-number-request-dto.d.ts +24 -0
- package/dist/models/reset-number-request-dto.js +15 -0
- package/models/index.ts +2 -0
- package/models/lookup-number-request-dto.ts +30 -0
- package/models/reset-number-request-dto.ts +30 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -17,6 +17,8 @@ models/index.ts
|
|
|
17
17
|
models/inline-response200.ts
|
|
18
18
|
models/inline-response503.ts
|
|
19
19
|
models/list-numbers-response-class.ts
|
|
20
|
+
models/lookup-number-request-dto.ts
|
|
21
|
+
models/reset-number-request-dto.ts
|
|
20
22
|
models/update-number-response-class.ts
|
|
21
23
|
package.json
|
|
22
24
|
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-node@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/numbergenerator-sdk-node@1.0.1-beta.11 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/numbergenerator-sdk-node@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/numbergenerator-sdk-node@1.0.1-beta.11
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `NumbersApi`.
|
package/api/numbers-api.ts
CHANGED
|
@@ -27,6 +27,10 @@ import { GetNumberResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { ListNumbersResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
+
import { LookupNumberRequestDto } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ResetNumberRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
30
34
|
import { UpdateNumberResponseClass } from '../models';
|
|
31
35
|
// URLSearchParams not necessarily used
|
|
32
36
|
// @ts-ignore
|
|
@@ -41,11 +45,20 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
41
45
|
/**
|
|
42
46
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
43
47
|
* @summary Create the number
|
|
48
|
+
* @param {string} slug The slug of the number
|
|
49
|
+
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
50
|
+
* @param {object} config Configuration object that varies based on the type field
|
|
44
51
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
45
52
|
* @param {*} [options] Override http request option.
|
|
46
53
|
* @throws {RequiredError}
|
|
47
54
|
*/
|
|
48
|
-
createNumber: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55
|
+
createNumber: async (slug: string, type: string, config: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56
|
+
// verify required parameter 'slug' is not null or undefined
|
|
57
|
+
assertParamExists('createNumber', 'slug', slug)
|
|
58
|
+
// verify required parameter 'type' is not null or undefined
|
|
59
|
+
assertParamExists('createNumber', 'type', type)
|
|
60
|
+
// verify required parameter 'config' is not null or undefined
|
|
61
|
+
assertParamExists('createNumber', 'config', config)
|
|
49
62
|
const localVarPath = `/numbergenerator/v1/numbers`;
|
|
50
63
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
64
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -59,6 +72,7 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
59
72
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
60
73
|
const localVarHeaderParameter = {} as any;
|
|
61
74
|
const localVarQueryParameter = {} as any;
|
|
75
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
62
76
|
|
|
63
77
|
// authentication bearer required
|
|
64
78
|
// http bearer authentication required
|
|
@@ -69,10 +83,26 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
69
83
|
}
|
|
70
84
|
|
|
71
85
|
|
|
86
|
+
if (slug !== undefined) {
|
|
87
|
+
localVarFormParams.append('slug', slug as any);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (type !== undefined) {
|
|
91
|
+
localVarFormParams.append('type', type as any);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (config !== undefined) {
|
|
95
|
+
localVarFormParams.append('config', new Blob([JSON.stringify(config)], { type: "application/json", }));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
100
|
+
|
|
72
101
|
|
|
73
102
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
103
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
104
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
105
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
76
106
|
|
|
77
107
|
return {
|
|
78
108
|
url: toPathString(localVarUrlObj),
|
|
@@ -210,14 +240,14 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
210
240
|
/**
|
|
211
241
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
212
242
|
* @summary Lookup entity number
|
|
213
|
-
* @param {
|
|
243
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
214
244
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
215
245
|
* @param {*} [options] Override http request option.
|
|
216
246
|
* @throws {RequiredError}
|
|
217
247
|
*/
|
|
218
|
-
lookupNumber: async (
|
|
219
|
-
// verify required parameter '
|
|
220
|
-
assertParamExists('lookupNumber', '
|
|
248
|
+
lookupNumber: async (lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
249
|
+
// verify required parameter 'lookupNumberRequestDto' is not null or undefined
|
|
250
|
+
assertParamExists('lookupNumber', 'lookupNumberRequestDto', lookupNumberRequestDto)
|
|
221
251
|
const localVarPath = `/numbergenerator/v1/numbers/lookup`;
|
|
222
252
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
223
253
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -247,7 +277,7 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
247
277
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
248
278
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
279
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
250
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
280
|
+
localVarRequestOptions.data = serializeDataIfNeeded(lookupNumberRequestDto, localVarRequestOptions, configuration)
|
|
251
281
|
|
|
252
282
|
return {
|
|
253
283
|
url: toPathString(localVarUrlObj),
|
|
@@ -257,14 +287,14 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
257
287
|
/**
|
|
258
288
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
259
289
|
* @summary Reset entity number
|
|
260
|
-
* @param {
|
|
290
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
261
291
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
262
292
|
* @param {*} [options] Override http request option.
|
|
263
293
|
* @throws {RequiredError}
|
|
264
294
|
*/
|
|
265
|
-
resetNumber: async (
|
|
266
|
-
// verify required parameter '
|
|
267
|
-
assertParamExists('resetNumber', '
|
|
295
|
+
resetNumber: async (resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
296
|
+
// verify required parameter 'resetNumberRequestDto' is not null or undefined
|
|
297
|
+
assertParamExists('resetNumber', 'resetNumberRequestDto', resetNumberRequestDto)
|
|
268
298
|
const localVarPath = `/numbergenerator/v1/numbers/reset`;
|
|
269
299
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
300
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -294,7 +324,7 @@ export const NumbersApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
294
324
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
325
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
326
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
297
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
327
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetNumberRequestDto, localVarRequestOptions, configuration)
|
|
298
328
|
|
|
299
329
|
return {
|
|
300
330
|
url: toPathString(localVarUrlObj),
|
|
@@ -359,12 +389,15 @@ export const NumbersApiFp = function(configuration?: Configuration) {
|
|
|
359
389
|
/**
|
|
360
390
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
361
391
|
* @summary Create the number
|
|
392
|
+
* @param {string} slug The slug of the number
|
|
393
|
+
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
394
|
+
* @param {object} config Configuration object that varies based on the type field
|
|
362
395
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
396
|
* @param {*} [options] Override http request option.
|
|
364
397
|
* @throws {RequiredError}
|
|
365
398
|
*/
|
|
366
|
-
async createNumber(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>> {
|
|
367
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createNumber(authorization, options);
|
|
399
|
+
async createNumber(slug: string, type: string, config: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>> {
|
|
400
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createNumber(slug, type, config, authorization, options);
|
|
368
401
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
369
402
|
},
|
|
370
403
|
/**
|
|
@@ -401,25 +434,25 @@ export const NumbersApiFp = function(configuration?: Configuration) {
|
|
|
401
434
|
/**
|
|
402
435
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
403
436
|
* @summary Lookup entity number
|
|
404
|
-
* @param {
|
|
437
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
405
438
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
406
439
|
* @param {*} [options] Override http request option.
|
|
407
440
|
* @throws {RequiredError}
|
|
408
441
|
*/
|
|
409
|
-
async lookupNumber(
|
|
410
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupNumber(
|
|
442
|
+
async lookupNumber(lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
443
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupNumber(lookupNumberRequestDto, authorization, options);
|
|
411
444
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
412
445
|
},
|
|
413
446
|
/**
|
|
414
447
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
415
448
|
* @summary Reset entity number
|
|
416
|
-
* @param {
|
|
449
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
417
450
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
418
451
|
* @param {*} [options] Override http request option.
|
|
419
452
|
* @throws {RequiredError}
|
|
420
453
|
*/
|
|
421
|
-
async resetNumber(
|
|
422
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.resetNumber(
|
|
454
|
+
async resetNumber(resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
455
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetNumber(resetNumberRequestDto, authorization, options);
|
|
423
456
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
424
457
|
},
|
|
425
458
|
/**
|
|
@@ -447,12 +480,15 @@ export const NumbersApiFactory = function (configuration?: Configuration, basePa
|
|
|
447
480
|
/**
|
|
448
481
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
449
482
|
* @summary Create the number
|
|
483
|
+
* @param {string} slug The slug of the number
|
|
484
|
+
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
485
|
+
* @param {object} config Configuration object that varies based on the type field
|
|
450
486
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
451
487
|
* @param {*} [options] Override http request option.
|
|
452
488
|
* @throws {RequiredError}
|
|
453
489
|
*/
|
|
454
|
-
createNumber(authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass> {
|
|
455
|
-
return localVarFp.createNumber(authorization, options).then((request) => request(axios, basePath));
|
|
490
|
+
createNumber(slug: string, type: string, config: object, authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass> {
|
|
491
|
+
return localVarFp.createNumber(slug, type, config, authorization, options).then((request) => request(axios, basePath));
|
|
456
492
|
},
|
|
457
493
|
/**
|
|
458
494
|
* 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.
|
|
@@ -486,24 +522,24 @@ export const NumbersApiFactory = function (configuration?: Configuration, basePa
|
|
|
486
522
|
/**
|
|
487
523
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
488
524
|
* @summary Lookup entity number
|
|
489
|
-
* @param {
|
|
525
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
490
526
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
491
527
|
* @param {*} [options] Override http request option.
|
|
492
528
|
* @throws {RequiredError}
|
|
493
529
|
*/
|
|
494
|
-
lookupNumber(
|
|
495
|
-
return localVarFp.lookupNumber(
|
|
530
|
+
lookupNumber(lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
531
|
+
return localVarFp.lookupNumber(lookupNumberRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
496
532
|
},
|
|
497
533
|
/**
|
|
498
534
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
499
535
|
* @summary Reset entity number
|
|
500
|
-
* @param {
|
|
536
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
501
537
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
502
538
|
* @param {*} [options] Override http request option.
|
|
503
539
|
* @throws {RequiredError}
|
|
504
540
|
*/
|
|
505
|
-
resetNumber(
|
|
506
|
-
return localVarFp.resetNumber(
|
|
541
|
+
resetNumber(resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
542
|
+
return localVarFp.resetNumber(resetNumberRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
507
543
|
},
|
|
508
544
|
/**
|
|
509
545
|
* This will update an entity number in the database.
|
|
@@ -525,6 +561,27 @@ export const NumbersApiFactory = function (configuration?: Configuration, basePa
|
|
|
525
561
|
* @interface NumbersApiCreateNumberRequest
|
|
526
562
|
*/
|
|
527
563
|
export interface NumbersApiCreateNumberRequest {
|
|
564
|
+
/**
|
|
565
|
+
* The slug of the number
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof NumbersApiCreateNumber
|
|
568
|
+
*/
|
|
569
|
+
readonly slug: string
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* The type of number generator. This determines the structure of the config object.
|
|
573
|
+
* @type {string}
|
|
574
|
+
* @memberof NumbersApiCreateNumber
|
|
575
|
+
*/
|
|
576
|
+
readonly type: string
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Configuration object that varies based on the type field
|
|
580
|
+
* @type {object}
|
|
581
|
+
* @memberof NumbersApiCreateNumber
|
|
582
|
+
*/
|
|
583
|
+
readonly config: object
|
|
584
|
+
|
|
528
585
|
/**
|
|
529
586
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
530
587
|
* @type {string}
|
|
@@ -632,10 +689,10 @@ export interface NumbersApiListNumbersRequest {
|
|
|
632
689
|
export interface NumbersApiLookupNumberRequest {
|
|
633
690
|
/**
|
|
634
691
|
*
|
|
635
|
-
* @type {
|
|
692
|
+
* @type {LookupNumberRequestDto}
|
|
636
693
|
* @memberof NumbersApiLookupNumber
|
|
637
694
|
*/
|
|
638
|
-
readonly
|
|
695
|
+
readonly lookupNumberRequestDto: LookupNumberRequestDto
|
|
639
696
|
|
|
640
697
|
/**
|
|
641
698
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -653,10 +710,10 @@ export interface NumbersApiLookupNumberRequest {
|
|
|
653
710
|
export interface NumbersApiResetNumberRequest {
|
|
654
711
|
/**
|
|
655
712
|
*
|
|
656
|
-
* @type {
|
|
713
|
+
* @type {ResetNumberRequestDto}
|
|
657
714
|
* @memberof NumbersApiResetNumber
|
|
658
715
|
*/
|
|
659
|
-
readonly
|
|
716
|
+
readonly resetNumberRequestDto: ResetNumberRequestDto
|
|
660
717
|
|
|
661
718
|
/**
|
|
662
719
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -702,8 +759,8 @@ export class NumbersApi extends BaseAPI {
|
|
|
702
759
|
* @throws {RequiredError}
|
|
703
760
|
* @memberof NumbersApi
|
|
704
761
|
*/
|
|
705
|
-
public createNumber(requestParameters: NumbersApiCreateNumberRequest
|
|
706
|
-
return NumbersApiFp(this.configuration).createNumber(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
762
|
+
public createNumber(requestParameters: NumbersApiCreateNumberRequest, options?: AxiosRequestConfig) {
|
|
763
|
+
return NumbersApiFp(this.configuration).createNumber(requestParameters.slug, requestParameters.type, requestParameters.config, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
707
764
|
}
|
|
708
765
|
|
|
709
766
|
/**
|
|
@@ -739,7 +796,7 @@ export class NumbersApi extends BaseAPI {
|
|
|
739
796
|
* @memberof NumbersApi
|
|
740
797
|
*/
|
|
741
798
|
public lookupNumber(requestParameters: NumbersApiLookupNumberRequest, options?: AxiosRequestConfig) {
|
|
742
|
-
return NumbersApiFp(this.configuration).lookupNumber(requestParameters.
|
|
799
|
+
return NumbersApiFp(this.configuration).lookupNumber(requestParameters.lookupNumberRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
743
800
|
}
|
|
744
801
|
|
|
745
802
|
/**
|
|
@@ -751,7 +808,7 @@ export class NumbersApi extends BaseAPI {
|
|
|
751
808
|
* @memberof NumbersApi
|
|
752
809
|
*/
|
|
753
810
|
public resetNumber(requestParameters: NumbersApiResetNumberRequest, options?: AxiosRequestConfig) {
|
|
754
|
-
return NumbersApiFp(this.configuration).resetNumber(requestParameters.
|
|
811
|
+
return NumbersApiFp(this.configuration).resetNumber(requestParameters.resetNumberRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
755
812
|
}
|
|
756
813
|
|
|
757
814
|
/**
|
package/base.ts
CHANGED
|
@@ -62,5 +62,5 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
62
62
|
* @throws {RequiredError}
|
|
63
63
|
* @memberof DefaultApi
|
|
64
64
|
*/
|
|
65
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
|
|
65
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
66
66
|
}
|
|
@@ -15,6 +15,8 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreateNumberResponseClass } from '../models';
|
|
16
16
|
import { GetNumberResponseClass } from '../models';
|
|
17
17
|
import { ListNumbersResponseClass } from '../models';
|
|
18
|
+
import { LookupNumberRequestDto } from '../models';
|
|
19
|
+
import { ResetNumberRequestDto } from '../models';
|
|
18
20
|
import { UpdateNumberResponseClass } from '../models';
|
|
19
21
|
/**
|
|
20
22
|
* NumbersApi - axios parameter creator
|
|
@@ -24,11 +26,14 @@ export declare const NumbersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
24
26
|
/**
|
|
25
27
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
26
28
|
* @summary Create the number
|
|
29
|
+
* @param {string} slug The slug of the number
|
|
30
|
+
* @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
|
|
27
32
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
28
33
|
* @param {*} [options] Override http request option.
|
|
29
34
|
* @throws {RequiredError}
|
|
30
35
|
*/
|
|
31
|
-
createNumber: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
createNumber: (slug: string, type: string, config: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
37
|
/**
|
|
33
38
|
* 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.
|
|
34
39
|
* @summary Retrieve the number
|
|
@@ -57,21 +62,21 @@ export declare const NumbersApiAxiosParamCreator: (configuration?: Configuration
|
|
|
57
62
|
/**
|
|
58
63
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
59
64
|
* @summary Lookup entity number
|
|
60
|
-
* @param {
|
|
65
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
61
66
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
62
67
|
* @param {*} [options] Override http request option.
|
|
63
68
|
* @throws {RequiredError}
|
|
64
69
|
*/
|
|
65
|
-
lookupNumber: (
|
|
70
|
+
lookupNumber: (lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
71
|
/**
|
|
67
72
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
68
73
|
* @summary Reset entity number
|
|
69
|
-
* @param {
|
|
74
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
70
75
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
71
76
|
* @param {*} [options] Override http request option.
|
|
72
77
|
* @throws {RequiredError}
|
|
73
78
|
*/
|
|
74
|
-
resetNumber: (
|
|
79
|
+
resetNumber: (resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
75
80
|
/**
|
|
76
81
|
* This will update an entity number in the database.
|
|
77
82
|
* @summary Update the number
|
|
@@ -90,11 +95,14 @@ export declare const NumbersApiFp: (configuration?: Configuration) => {
|
|
|
90
95
|
/**
|
|
91
96
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
92
97
|
* @summary Create the number
|
|
98
|
+
* @param {string} slug The slug of the number
|
|
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
|
|
93
101
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
94
102
|
* @param {*} [options] Override http request option.
|
|
95
103
|
* @throws {RequiredError}
|
|
96
104
|
*/
|
|
97
|
-
createNumber(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>>;
|
|
105
|
+
createNumber(slug: string, type: string, config: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNumberResponseClass>>;
|
|
98
106
|
/**
|
|
99
107
|
* 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.
|
|
100
108
|
* @summary Retrieve the number
|
|
@@ -123,21 +131,21 @@ export declare const NumbersApiFp: (configuration?: Configuration) => {
|
|
|
123
131
|
/**
|
|
124
132
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
125
133
|
* @summary Lookup entity number
|
|
126
|
-
* @param {
|
|
134
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
127
135
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
128
136
|
* @param {*} [options] Override http request option.
|
|
129
137
|
* @throws {RequiredError}
|
|
130
138
|
*/
|
|
131
|
-
lookupNumber(
|
|
139
|
+
lookupNumber(lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
132
140
|
/**
|
|
133
141
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
134
142
|
* @summary Reset entity number
|
|
135
|
-
* @param {
|
|
143
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
136
144
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
137
145
|
* @param {*} [options] Override http request option.
|
|
138
146
|
* @throws {RequiredError}
|
|
139
147
|
*/
|
|
140
|
-
resetNumber(
|
|
148
|
+
resetNumber(resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
141
149
|
/**
|
|
142
150
|
* This will update an entity number in the database.
|
|
143
151
|
* @summary Update the number
|
|
@@ -156,11 +164,14 @@ export declare const NumbersApiFactory: (configuration?: Configuration, basePath
|
|
|
156
164
|
/**
|
|
157
165
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
158
166
|
* @summary Create the number
|
|
167
|
+
* @param {string} slug The slug of the number
|
|
168
|
+
* @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
|
|
159
170
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
160
171
|
* @param {*} [options] Override http request option.
|
|
161
172
|
* @throws {RequiredError}
|
|
162
173
|
*/
|
|
163
|
-
createNumber(authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass>;
|
|
174
|
+
createNumber(slug: string, type: string, config: object, authorization?: string, options?: any): AxiosPromise<CreateNumberResponseClass>;
|
|
164
175
|
/**
|
|
165
176
|
* 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.
|
|
166
177
|
* @summary Retrieve the number
|
|
@@ -189,21 +200,21 @@ export declare const NumbersApiFactory: (configuration?: Configuration, basePath
|
|
|
189
200
|
/**
|
|
190
201
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
191
202
|
* @summary Lookup entity number
|
|
192
|
-
* @param {
|
|
203
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
193
204
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
194
205
|
* @param {*} [options] Override http request option.
|
|
195
206
|
* @throws {RequiredError}
|
|
196
207
|
*/
|
|
197
|
-
lookupNumber(
|
|
208
|
+
lookupNumber(lookupNumberRequestDto: LookupNumberRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
198
209
|
/**
|
|
199
210
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
200
211
|
* @summary Reset entity number
|
|
201
|
-
* @param {
|
|
212
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
202
213
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
214
|
* @param {*} [options] Override http request option.
|
|
204
215
|
* @throws {RequiredError}
|
|
205
216
|
*/
|
|
206
|
-
resetNumber(
|
|
217
|
+
resetNumber(resetNumberRequestDto: ResetNumberRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
207
218
|
/**
|
|
208
219
|
* This will update an entity number in the database.
|
|
209
220
|
* @summary Update the number
|
|
@@ -220,6 +231,24 @@ export declare const NumbersApiFactory: (configuration?: Configuration, basePath
|
|
|
220
231
|
* @interface NumbersApiCreateNumberRequest
|
|
221
232
|
*/
|
|
222
233
|
export interface NumbersApiCreateNumberRequest {
|
|
234
|
+
/**
|
|
235
|
+
* The slug of the number
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof NumbersApiCreateNumber
|
|
238
|
+
*/
|
|
239
|
+
readonly slug: string;
|
|
240
|
+
/**
|
|
241
|
+
* The type of number generator. This determines the structure of the config object.
|
|
242
|
+
* @type {string}
|
|
243
|
+
* @memberof NumbersApiCreateNumber
|
|
244
|
+
*/
|
|
245
|
+
readonly type: string;
|
|
246
|
+
/**
|
|
247
|
+
* Configuration object that varies based on the type field
|
|
248
|
+
* @type {object}
|
|
249
|
+
* @memberof NumbersApiCreateNumber
|
|
250
|
+
*/
|
|
251
|
+
readonly config: object;
|
|
223
252
|
/**
|
|
224
253
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
225
254
|
* @type {string}
|
|
@@ -315,10 +344,10 @@ export interface NumbersApiListNumbersRequest {
|
|
|
315
344
|
export interface NumbersApiLookupNumberRequest {
|
|
316
345
|
/**
|
|
317
346
|
*
|
|
318
|
-
* @type {
|
|
347
|
+
* @type {LookupNumberRequestDto}
|
|
319
348
|
* @memberof NumbersApiLookupNumber
|
|
320
349
|
*/
|
|
321
|
-
readonly
|
|
350
|
+
readonly lookupNumberRequestDto: LookupNumberRequestDto;
|
|
322
351
|
/**
|
|
323
352
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
324
353
|
* @type {string}
|
|
@@ -334,10 +363,10 @@ export interface NumbersApiLookupNumberRequest {
|
|
|
334
363
|
export interface NumbersApiResetNumberRequest {
|
|
335
364
|
/**
|
|
336
365
|
*
|
|
337
|
-
* @type {
|
|
366
|
+
* @type {ResetNumberRequestDto}
|
|
338
367
|
* @memberof NumbersApiResetNumber
|
|
339
368
|
*/
|
|
340
|
-
readonly
|
|
369
|
+
readonly resetNumberRequestDto: ResetNumberRequestDto;
|
|
341
370
|
/**
|
|
342
371
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
343
372
|
* @type {string}
|
|
@@ -379,7 +408,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
379
408
|
* @throws {RequiredError}
|
|
380
409
|
* @memberof NumbersApi
|
|
381
410
|
*/
|
|
382
|
-
createNumber(requestParameters
|
|
411
|
+
createNumber(requestParameters: NumbersApiCreateNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberResponseClass, any, {}>>;
|
|
383
412
|
/**
|
|
384
413
|
* 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.
|
|
385
414
|
* @summary Retrieve the number
|
|
@@ -388,7 +417,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
388
417
|
* @throws {RequiredError}
|
|
389
418
|
* @memberof NumbersApi
|
|
390
419
|
*/
|
|
391
|
-
getNumber(requestParameters: NumbersApiGetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberResponseClass, any>>;
|
|
420
|
+
getNumber(requestParameters: NumbersApiGetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberResponseClass, any, {}>>;
|
|
392
421
|
/**
|
|
393
422
|
* Returns a list of Numbers you have previously created. The Numbers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
394
423
|
* @summary List Numbers
|
|
@@ -397,7 +426,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
397
426
|
* @throws {RequiredError}
|
|
398
427
|
* @memberof NumbersApi
|
|
399
428
|
*/
|
|
400
|
-
listNumbers(requestParameters?: NumbersApiListNumbersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumbersResponseClass, any>>;
|
|
429
|
+
listNumbers(requestParameters?: NumbersApiListNumbersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumbersResponseClass, any, {}>>;
|
|
401
430
|
/**
|
|
402
431
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
403
432
|
* @summary Lookup entity number
|
|
@@ -406,7 +435,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
406
435
|
* @throws {RequiredError}
|
|
407
436
|
* @memberof NumbersApi
|
|
408
437
|
*/
|
|
409
|
-
lookupNumber(requestParameters: NumbersApiLookupNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
438
|
+
lookupNumber(requestParameters: NumbersApiLookupNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
410
439
|
/**
|
|
411
440
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
412
441
|
* @summary Reset entity number
|
|
@@ -415,7 +444,7 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
415
444
|
* @throws {RequiredError}
|
|
416
445
|
* @memberof NumbersApi
|
|
417
446
|
*/
|
|
418
|
-
resetNumber(requestParameters: NumbersApiResetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
447
|
+
resetNumber(requestParameters: NumbersApiResetNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
419
448
|
/**
|
|
420
449
|
* This will update an entity number in the database.
|
|
421
450
|
* @summary Update the number
|
|
@@ -424,5 +453,5 @@ export declare class NumbersApi extends BaseAPI {
|
|
|
424
453
|
* @throws {RequiredError}
|
|
425
454
|
* @memberof NumbersApi
|
|
426
455
|
*/
|
|
427
|
-
updateNumber(requestParameters: NumbersApiUpdateNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNumberResponseClass, any>>;
|
|
456
|
+
updateNumber(requestParameters: NumbersApiUpdateNumberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateNumberResponseClass, any, {}>>;
|
|
428
457
|
}
|
package/dist/api/numbers-api.js
CHANGED
|
@@ -99,17 +99,26 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
101
101
|
* @summary Create the number
|
|
102
|
+
* @param {string} slug The slug of the number
|
|
103
|
+
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
104
|
+
* @param {object} config Configuration object that varies based on the type field
|
|
102
105
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
106
|
* @param {*} [options] Override http request option.
|
|
104
107
|
* @throws {RequiredError}
|
|
105
108
|
*/
|
|
106
|
-
createNumber: function (authorization, options) {
|
|
109
|
+
createNumber: function (slug, type, config, authorization, options) {
|
|
107
110
|
if (options === void 0) { options = {}; }
|
|
108
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
110
113
|
return __generator(this, function (_a) {
|
|
111
114
|
switch (_a.label) {
|
|
112
115
|
case 0:
|
|
116
|
+
// verify required parameter 'slug' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('createNumber', 'slug', slug);
|
|
118
|
+
// verify required parameter 'type' is not null or undefined
|
|
119
|
+
(0, common_1.assertParamExists)('createNumber', 'type', type);
|
|
120
|
+
// verify required parameter 'config' is not null or undefined
|
|
121
|
+
(0, common_1.assertParamExists)('createNumber', 'config', config);
|
|
113
122
|
localVarPath = "/numbergenerator/v1/numbers";
|
|
114
123
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
124
|
if (configuration) {
|
|
@@ -119,6 +128,7 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
119
128
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
120
129
|
localVarHeaderParameter = {};
|
|
121
130
|
localVarQueryParameter = {};
|
|
131
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
122
132
|
// authentication bearer required
|
|
123
133
|
// http bearer authentication required
|
|
124
134
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
@@ -129,9 +139,20 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
129
139
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
140
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
141
|
}
|
|
142
|
+
if (slug !== undefined) {
|
|
143
|
+
localVarFormParams.append('slug', slug);
|
|
144
|
+
}
|
|
145
|
+
if (type !== undefined) {
|
|
146
|
+
localVarFormParams.append('type', type);
|
|
147
|
+
}
|
|
148
|
+
if (config !== undefined) {
|
|
149
|
+
localVarFormParams.append('config', new Blob([JSON.stringify(config)], { type: "application/json", }));
|
|
150
|
+
}
|
|
151
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
132
152
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
153
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
154
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
155
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
135
156
|
return [2 /*return*/, {
|
|
136
157
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
158
|
options: localVarRequestOptions,
|
|
@@ -269,20 +290,20 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
269
290
|
/**
|
|
270
291
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
271
292
|
* @summary Lookup entity number
|
|
272
|
-
* @param {
|
|
293
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
273
294
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
274
295
|
* @param {*} [options] Override http request option.
|
|
275
296
|
* @throws {RequiredError}
|
|
276
297
|
*/
|
|
277
|
-
lookupNumber: function (
|
|
298
|
+
lookupNumber: function (lookupNumberRequestDto, authorization, options) {
|
|
278
299
|
if (options === void 0) { options = {}; }
|
|
279
300
|
return __awaiter(_this, void 0, void 0, function () {
|
|
280
301
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
281
302
|
return __generator(this, function (_a) {
|
|
282
303
|
switch (_a.label) {
|
|
283
304
|
case 0:
|
|
284
|
-
// verify required parameter '
|
|
285
|
-
(0, common_1.assertParamExists)('lookupNumber', '
|
|
305
|
+
// verify required parameter 'lookupNumberRequestDto' is not null or undefined
|
|
306
|
+
(0, common_1.assertParamExists)('lookupNumber', 'lookupNumberRequestDto', lookupNumberRequestDto);
|
|
286
307
|
localVarPath = "/numbergenerator/v1/numbers/lookup";
|
|
287
308
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
288
309
|
if (configuration) {
|
|
@@ -306,7 +327,7 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
306
327
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
328
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
308
329
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
309
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
330
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lookupNumberRequestDto, localVarRequestOptions, configuration);
|
|
310
331
|
return [2 /*return*/, {
|
|
311
332
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
312
333
|
options: localVarRequestOptions,
|
|
@@ -318,20 +339,20 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
318
339
|
/**
|
|
319
340
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
320
341
|
* @summary Reset entity number
|
|
321
|
-
* @param {
|
|
342
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
322
343
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
323
344
|
* @param {*} [options] Override http request option.
|
|
324
345
|
* @throws {RequiredError}
|
|
325
346
|
*/
|
|
326
|
-
resetNumber: function (
|
|
347
|
+
resetNumber: function (resetNumberRequestDto, authorization, options) {
|
|
327
348
|
if (options === void 0) { options = {}; }
|
|
328
349
|
return __awaiter(_this, void 0, void 0, function () {
|
|
329
350
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
330
351
|
return __generator(this, function (_a) {
|
|
331
352
|
switch (_a.label) {
|
|
332
353
|
case 0:
|
|
333
|
-
// verify required parameter '
|
|
334
|
-
(0, common_1.assertParamExists)('resetNumber', '
|
|
354
|
+
// verify required parameter 'resetNumberRequestDto' is not null or undefined
|
|
355
|
+
(0, common_1.assertParamExists)('resetNumber', 'resetNumberRequestDto', resetNumberRequestDto);
|
|
335
356
|
localVarPath = "/numbergenerator/v1/numbers/reset";
|
|
336
357
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
337
358
|
if (configuration) {
|
|
@@ -355,7 +376,7 @@ var NumbersApiAxiosParamCreator = function (configuration) {
|
|
|
355
376
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
377
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
378
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
358
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
379
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resetNumberRequestDto, localVarRequestOptions, configuration);
|
|
359
380
|
return [2 /*return*/, {
|
|
360
381
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
361
382
|
options: localVarRequestOptions,
|
|
@@ -425,16 +446,19 @@ var NumbersApiFp = function (configuration) {
|
|
|
425
446
|
/**
|
|
426
447
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
427
448
|
* @summary Create the number
|
|
449
|
+
* @param {string} slug The slug of the number
|
|
450
|
+
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
451
|
+
* @param {object} config Configuration object that varies based on the type field
|
|
428
452
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
429
453
|
* @param {*} [options] Override http request option.
|
|
430
454
|
* @throws {RequiredError}
|
|
431
455
|
*/
|
|
432
|
-
createNumber: function (authorization, options) {
|
|
456
|
+
createNumber: function (slug, type, config, authorization, options) {
|
|
433
457
|
return __awaiter(this, void 0, void 0, function () {
|
|
434
458
|
var localVarAxiosArgs;
|
|
435
459
|
return __generator(this, function (_a) {
|
|
436
460
|
switch (_a.label) {
|
|
437
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createNumber(authorization, options)];
|
|
461
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createNumber(slug, type, config, authorization, options)];
|
|
438
462
|
case 1:
|
|
439
463
|
localVarAxiosArgs = _a.sent();
|
|
440
464
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -494,17 +518,17 @@ var NumbersApiFp = function (configuration) {
|
|
|
494
518
|
/**
|
|
495
519
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
496
520
|
* @summary Lookup entity number
|
|
497
|
-
* @param {
|
|
521
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
498
522
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
499
523
|
* @param {*} [options] Override http request option.
|
|
500
524
|
* @throws {RequiredError}
|
|
501
525
|
*/
|
|
502
|
-
lookupNumber: function (
|
|
526
|
+
lookupNumber: function (lookupNumberRequestDto, authorization, options) {
|
|
503
527
|
return __awaiter(this, void 0, void 0, function () {
|
|
504
528
|
var localVarAxiosArgs;
|
|
505
529
|
return __generator(this, function (_a) {
|
|
506
530
|
switch (_a.label) {
|
|
507
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.lookupNumber(
|
|
531
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.lookupNumber(lookupNumberRequestDto, authorization, options)];
|
|
508
532
|
case 1:
|
|
509
533
|
localVarAxiosArgs = _a.sent();
|
|
510
534
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -515,17 +539,17 @@ var NumbersApiFp = function (configuration) {
|
|
|
515
539
|
/**
|
|
516
540
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
517
541
|
* @summary Reset entity number
|
|
518
|
-
* @param {
|
|
542
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
519
543
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
520
544
|
* @param {*} [options] Override http request option.
|
|
521
545
|
* @throws {RequiredError}
|
|
522
546
|
*/
|
|
523
|
-
resetNumber: function (
|
|
547
|
+
resetNumber: function (resetNumberRequestDto, authorization, options) {
|
|
524
548
|
return __awaiter(this, void 0, void 0, function () {
|
|
525
549
|
var localVarAxiosArgs;
|
|
526
550
|
return __generator(this, function (_a) {
|
|
527
551
|
switch (_a.label) {
|
|
528
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetNumber(
|
|
552
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.resetNumber(resetNumberRequestDto, authorization, options)];
|
|
529
553
|
case 1:
|
|
530
554
|
localVarAxiosArgs = _a.sent();
|
|
531
555
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -567,12 +591,15 @@ var NumbersApiFactory = function (configuration, basePath, axios) {
|
|
|
567
591
|
/**
|
|
568
592
|
* This will create an entity number in the database. Entity number is a way to generate unique numbers for your entities. You can create as many numbers as you want.
|
|
569
593
|
* @summary Create the number
|
|
594
|
+
* @param {string} slug The slug of the number
|
|
595
|
+
* @param {string} type The type of number generator. This determines the structure of the config object.
|
|
596
|
+
* @param {object} config Configuration object that varies based on the type field
|
|
570
597
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
571
598
|
* @param {*} [options] Override http request option.
|
|
572
599
|
* @throws {RequiredError}
|
|
573
600
|
*/
|
|
574
|
-
createNumber: function (authorization, options) {
|
|
575
|
-
return localVarFp.createNumber(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
601
|
+
createNumber: function (slug, type, config, authorization, options) {
|
|
602
|
+
return localVarFp.createNumber(slug, type, config, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
576
603
|
},
|
|
577
604
|
/**
|
|
578
605
|
* 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.
|
|
@@ -606,24 +633,24 @@ var NumbersApiFactory = function (configuration, basePath, axios) {
|
|
|
606
633
|
/**
|
|
607
634
|
* The endpoint performs a lookup based on an entity number to retrieve a unique string.
|
|
608
635
|
* @summary Lookup entity number
|
|
609
|
-
* @param {
|
|
636
|
+
* @param {LookupNumberRequestDto} lookupNumberRequestDto
|
|
610
637
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
611
638
|
* @param {*} [options] Override http request option.
|
|
612
639
|
* @throws {RequiredError}
|
|
613
640
|
*/
|
|
614
|
-
lookupNumber: function (
|
|
615
|
-
return localVarFp.lookupNumber(
|
|
641
|
+
lookupNumber: function (lookupNumberRequestDto, authorization, options) {
|
|
642
|
+
return localVarFp.lookupNumber(lookupNumberRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
616
643
|
},
|
|
617
644
|
/**
|
|
618
645
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
619
646
|
* @summary Reset entity number
|
|
620
|
-
* @param {
|
|
647
|
+
* @param {ResetNumberRequestDto} resetNumberRequestDto
|
|
621
648
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
622
649
|
* @param {*} [options] Override http request option.
|
|
623
650
|
* @throws {RequiredError}
|
|
624
651
|
*/
|
|
625
|
-
resetNumber: function (
|
|
626
|
-
return localVarFp.resetNumber(
|
|
652
|
+
resetNumber: function (resetNumberRequestDto, authorization, options) {
|
|
653
|
+
return localVarFp.resetNumber(resetNumberRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
627
654
|
},
|
|
628
655
|
/**
|
|
629
656
|
* This will update an entity number in the database.
|
|
@@ -660,8 +687,7 @@ var NumbersApi = /** @class */ (function (_super) {
|
|
|
660
687
|
*/
|
|
661
688
|
NumbersApi.prototype.createNumber = function (requestParameters, options) {
|
|
662
689
|
var _this = this;
|
|
663
|
-
|
|
664
|
-
return (0, exports.NumbersApiFp)(this.configuration).createNumber(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
690
|
+
return (0, exports.NumbersApiFp)(this.configuration).createNumber(requestParameters.slug, requestParameters.type, requestParameters.config, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
665
691
|
};
|
|
666
692
|
/**
|
|
667
693
|
* 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.
|
|
@@ -698,7 +724,7 @@ var NumbersApi = /** @class */ (function (_super) {
|
|
|
698
724
|
*/
|
|
699
725
|
NumbersApi.prototype.lookupNumber = function (requestParameters, options) {
|
|
700
726
|
var _this = this;
|
|
701
|
-
return (0, exports.NumbersApiFp)(this.configuration).lookupNumber(requestParameters.
|
|
727
|
+
return (0, exports.NumbersApiFp)(this.configuration).lookupNumber(requestParameters.lookupNumberRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
702
728
|
};
|
|
703
729
|
/**
|
|
704
730
|
* This endpoint facilitates the resetting of an entity number useful for sequence type numbers.
|
|
@@ -710,7 +736,7 @@ var NumbersApi = /** @class */ (function (_super) {
|
|
|
710
736
|
*/
|
|
711
737
|
NumbersApi.prototype.resetNumber = function (requestParameters, options) {
|
|
712
738
|
var _this = this;
|
|
713
|
-
return (0, exports.NumbersApiFp)(this.configuration).resetNumber(requestParameters.
|
|
739
|
+
return (0, exports.NumbersApiFp)(this.configuration).resetNumber(requestParameters.resetNumberRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
714
740
|
};
|
|
715
741
|
/**
|
|
716
742
|
* This will update an entity number in the database.
|
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL Number Generator Service
|
|
69
69
|
* 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.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ export * from './get-number-response-class';
|
|
|
4
4
|
export * from './inline-response200';
|
|
5
5
|
export * from './inline-response503';
|
|
6
6
|
export * from './list-numbers-response-class';
|
|
7
|
+
export * from './lookup-number-request-dto';
|
|
8
|
+
export * from './reset-number-request-dto';
|
|
7
9
|
export * from './update-number-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -20,4 +20,6 @@ __exportStar(require("./get-number-response-class"), exports);
|
|
|
20
20
|
__exportStar(require("./inline-response200"), exports);
|
|
21
21
|
__exportStar(require("./inline-response503"), exports);
|
|
22
22
|
__exportStar(require("./list-numbers-response-class"), exports);
|
|
23
|
+
__exportStar(require("./lookup-number-request-dto"), exports);
|
|
24
|
+
__exportStar(require("./reset-number-request-dto"), exports);
|
|
23
25
|
__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 LookupNumberRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LookupNumberRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* The slug of the number
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LookupNumberRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'slug': 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 });
|
|
@@ -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 ResetNumberRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ResetNumberRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* The slug of the number
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ResetNumberRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'slug': 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 });
|
package/models/index.ts
CHANGED
|
@@ -4,4 +4,6 @@ export * from './get-number-response-class';
|
|
|
4
4
|
export * from './inline-response200';
|
|
5
5
|
export * from './inline-response503';
|
|
6
6
|
export * from './list-numbers-response-class';
|
|
7
|
+
export * from './lookup-number-request-dto';
|
|
8
|
+
export * from './reset-number-request-dto';
|
|
7
9
|
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 LookupNumberRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface LookupNumberRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The slug of the number
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof LookupNumberRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'slug': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -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 ResetNumberRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface ResetNumberRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The slug of the number
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ResetNumberRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'slug': string;
|
|
29
|
+
}
|
|
30
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/numbergenerator-sdk-node",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.11",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/numbergenerator-sdk-node",
|
|
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": "^
|
|
21
|
+
"axios": "^1.12.0",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|