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