ob-bms-sdk 0.0.6 → 0.0.7
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/api/api.ts +38 -38
- package/dist/api/api.d.ts +20 -20
- package/dist/api/api.js +38 -38
- package/dist/index.d.ts +4 -2
- package/dist/index.js +13 -2
- package/dist/test.d.ts +1 -0
- package/dist/test.js +12 -0
- package/index.ts +9 -2
- package/package.json +1 -1
- package/test.ts +7 -0
- package/tsconfig.json +1 -1
package/api/api.ts
CHANGED
|
@@ -355,14 +355,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
355
355
|
return {
|
|
356
356
|
/**
|
|
357
357
|
*
|
|
358
|
-
* @param {
|
|
358
|
+
* @param {any} body
|
|
359
359
|
* @param {*} [options] Override http request option.
|
|
360
360
|
* @throws {RequiredError}
|
|
361
361
|
*/
|
|
362
|
-
create: async (
|
|
363
|
-
// verify required parameter '
|
|
364
|
-
assertParamExists('create', '
|
|
365
|
-
const localVarPath = `/integrations/fs/
|
|
362
|
+
create: async (body: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
363
|
+
// verify required parameter 'body' is not null or undefined
|
|
364
|
+
assertParamExists('create', 'body', body)
|
|
365
|
+
const localVarPath = `/integrations/fs/webhook`;
|
|
366
366
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
367
367
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
368
368
|
let baseOptions;
|
|
@@ -381,7 +381,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
381
381
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
382
382
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
383
383
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
384
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
384
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
385
385
|
|
|
386
386
|
return {
|
|
387
387
|
url: toPathString(localVarUrlObj),
|
|
@@ -390,14 +390,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
390
390
|
},
|
|
391
391
|
/**
|
|
392
392
|
*
|
|
393
|
-
* @param {
|
|
393
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
394
394
|
* @param {*} [options] Override http request option.
|
|
395
395
|
* @throws {RequiredError}
|
|
396
396
|
*/
|
|
397
|
-
|
|
398
|
-
// verify required parameter '
|
|
399
|
-
assertParamExists('
|
|
400
|
-
const localVarPath = `/integrations/fs/
|
|
397
|
+
integrationsFsMembersCreate: async (createFSMembersBody: CreateFSMembersBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
398
|
+
// verify required parameter 'createFSMembersBody' is not null or undefined
|
|
399
|
+
assertParamExists('integrationsFsMembersCreate', 'createFSMembersBody', createFSMembersBody)
|
|
400
|
+
const localVarPath = `/integrations/fs/members`;
|
|
401
401
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
402
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
403
403
|
let baseOptions;
|
|
@@ -416,7 +416,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
416
416
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
417
417
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
418
418
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
419
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
419
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createFSMembersBody, localVarRequestOptions, configuration)
|
|
420
420
|
|
|
421
421
|
return {
|
|
422
422
|
url: toPathString(localVarUrlObj),
|
|
@@ -429,9 +429,9 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
429
429
|
* @param {*} [options] Override http request option.
|
|
430
430
|
* @throws {RequiredError}
|
|
431
431
|
*/
|
|
432
|
-
|
|
432
|
+
integrationsFsMembersDelete: async (destroyFSMembers: DestroyFSMembers, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
433
433
|
// verify required parameter 'destroyFSMembers' is not null or undefined
|
|
434
|
-
assertParamExists('
|
|
434
|
+
assertParamExists('integrationsFsMembersDelete', 'destroyFSMembers', destroyFSMembers)
|
|
435
435
|
const localVarPath = `/integrations/fs/members`;
|
|
436
436
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
437
437
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -602,22 +602,22 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
602
602
|
return {
|
|
603
603
|
/**
|
|
604
604
|
*
|
|
605
|
-
* @param {
|
|
605
|
+
* @param {any} body
|
|
606
606
|
* @param {*} [options] Override http request option.
|
|
607
607
|
* @throws {RequiredError}
|
|
608
608
|
*/
|
|
609
|
-
async create(
|
|
610
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.create(
|
|
609
|
+
async create(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
610
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.create(body, options);
|
|
611
611
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
612
612
|
},
|
|
613
613
|
/**
|
|
614
614
|
*
|
|
615
|
-
* @param {
|
|
615
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
616
616
|
* @param {*} [options] Override http request option.
|
|
617
617
|
* @throws {RequiredError}
|
|
618
618
|
*/
|
|
619
|
-
async
|
|
620
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
619
|
+
async integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMemberResult>> {
|
|
620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationsFsMembersCreate(createFSMembersBody, options);
|
|
621
621
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
622
622
|
},
|
|
623
623
|
/**
|
|
@@ -626,8 +626,8 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
626
626
|
* @param {*} [options] Override http request option.
|
|
627
627
|
* @throws {RequiredError}
|
|
628
628
|
*/
|
|
629
|
-
async
|
|
630
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
629
|
+
async integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
630
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
|
|
631
631
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
632
632
|
},
|
|
633
633
|
/**
|
|
@@ -681,21 +681,21 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
681
681
|
return {
|
|
682
682
|
/**
|
|
683
683
|
*
|
|
684
|
-
* @param {
|
|
684
|
+
* @param {any} body
|
|
685
685
|
* @param {*} [options] Override http request option.
|
|
686
686
|
* @throws {RequiredError}
|
|
687
687
|
*/
|
|
688
|
-
create(
|
|
689
|
-
return localVarFp.create(
|
|
688
|
+
create(body: any, options?: any): AxiosPromise<void> {
|
|
689
|
+
return localVarFp.create(body, options).then((request) => request(axios, basePath));
|
|
690
690
|
},
|
|
691
691
|
/**
|
|
692
692
|
*
|
|
693
|
-
* @param {
|
|
693
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
694
694
|
* @param {*} [options] Override http request option.
|
|
695
695
|
* @throws {RequiredError}
|
|
696
696
|
*/
|
|
697
|
-
|
|
698
|
-
return localVarFp.
|
|
697
|
+
integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: any): AxiosPromise<CreateMemberResult> {
|
|
698
|
+
return localVarFp.integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(axios, basePath));
|
|
699
699
|
},
|
|
700
700
|
/**
|
|
701
701
|
*
|
|
@@ -703,8 +703,8 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
703
703
|
* @param {*} [options] Override http request option.
|
|
704
704
|
* @throws {RequiredError}
|
|
705
705
|
*/
|
|
706
|
-
|
|
707
|
-
return localVarFp.
|
|
706
|
+
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<void> {
|
|
707
|
+
return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
|
|
708
708
|
},
|
|
709
709
|
/**
|
|
710
710
|
*
|
|
@@ -753,24 +753,24 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
753
753
|
export class DefaultApi extends BaseAPI {
|
|
754
754
|
/**
|
|
755
755
|
*
|
|
756
|
-
* @param {
|
|
756
|
+
* @param {any} body
|
|
757
757
|
* @param {*} [options] Override http request option.
|
|
758
758
|
* @throws {RequiredError}
|
|
759
759
|
* @memberof DefaultApi
|
|
760
760
|
*/
|
|
761
|
-
public create(
|
|
762
|
-
return DefaultApiFp(this.configuration).create(
|
|
761
|
+
public create(body: any, options?: AxiosRequestConfig) {
|
|
762
|
+
return DefaultApiFp(this.configuration).create(body, options).then((request) => request(this.axios, this.basePath));
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
/**
|
|
766
766
|
*
|
|
767
|
-
* @param {
|
|
767
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
768
768
|
* @param {*} [options] Override http request option.
|
|
769
769
|
* @throws {RequiredError}
|
|
770
770
|
* @memberof DefaultApi
|
|
771
771
|
*/
|
|
772
|
-
public
|
|
773
|
-
return DefaultApiFp(this.configuration).
|
|
772
|
+
public integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig) {
|
|
773
|
+
return DefaultApiFp(this.configuration).integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(this.axios, this.basePath));
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
/**
|
|
@@ -780,8 +780,8 @@ export class DefaultApi extends BaseAPI {
|
|
|
780
780
|
* @throws {RequiredError}
|
|
781
781
|
* @memberof DefaultApi
|
|
782
782
|
*/
|
|
783
|
-
public
|
|
784
|
-
return DefaultApiFp(this.configuration).
|
|
783
|
+
public integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) {
|
|
784
|
+
return DefaultApiFp(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
/**
|
package/dist/api/api.d.ts
CHANGED
|
@@ -343,25 +343,25 @@ export interface WrappedResponseShowVisitorResponseData {
|
|
|
343
343
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
344
344
|
/**
|
|
345
345
|
*
|
|
346
|
-
* @param {
|
|
346
|
+
* @param {any} body
|
|
347
347
|
* @param {*} [options] Override http request option.
|
|
348
348
|
* @throws {RequiredError}
|
|
349
349
|
*/
|
|
350
|
-
create: (
|
|
350
|
+
create: (body: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
351
351
|
/**
|
|
352
352
|
*
|
|
353
|
-
* @param {
|
|
353
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
354
354
|
* @param {*} [options] Override http request option.
|
|
355
355
|
* @throws {RequiredError}
|
|
356
356
|
*/
|
|
357
|
-
|
|
357
|
+
integrationsFsMembersCreate: (createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
358
358
|
/**
|
|
359
359
|
*
|
|
360
360
|
* @param {DestroyFSMembers} destroyFSMembers
|
|
361
361
|
* @param {*} [options] Override http request option.
|
|
362
362
|
* @throws {RequiredError}
|
|
363
363
|
*/
|
|
364
|
-
|
|
364
|
+
integrationsFsMembersDelete: (destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
365
365
|
/**
|
|
366
366
|
*
|
|
367
367
|
* @param {*} [options] Override http request option.
|
|
@@ -397,25 +397,25 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
397
397
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
398
398
|
/**
|
|
399
399
|
*
|
|
400
|
-
* @param {
|
|
400
|
+
* @param {any} body
|
|
401
401
|
* @param {*} [options] Override http request option.
|
|
402
402
|
* @throws {RequiredError}
|
|
403
403
|
*/
|
|
404
|
-
create(
|
|
404
|
+
create(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
405
405
|
/**
|
|
406
406
|
*
|
|
407
|
-
* @param {
|
|
407
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
408
408
|
* @param {*} [options] Override http request option.
|
|
409
409
|
* @throws {RequiredError}
|
|
410
410
|
*/
|
|
411
|
-
|
|
411
|
+
integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMemberResult>>;
|
|
412
412
|
/**
|
|
413
413
|
*
|
|
414
414
|
* @param {DestroyFSMembers} destroyFSMembers
|
|
415
415
|
* @param {*} [options] Override http request option.
|
|
416
416
|
* @throws {RequiredError}
|
|
417
417
|
*/
|
|
418
|
-
|
|
418
|
+
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
419
419
|
/**
|
|
420
420
|
*
|
|
421
421
|
* @param {*} [options] Override http request option.
|
|
@@ -451,25 +451,25 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
451
451
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
452
452
|
/**
|
|
453
453
|
*
|
|
454
|
-
* @param {
|
|
454
|
+
* @param {any} body
|
|
455
455
|
* @param {*} [options] Override http request option.
|
|
456
456
|
* @throws {RequiredError}
|
|
457
457
|
*/
|
|
458
|
-
create(
|
|
458
|
+
create(body: any, options?: any): AxiosPromise<void>;
|
|
459
459
|
/**
|
|
460
460
|
*
|
|
461
|
-
* @param {
|
|
461
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
462
462
|
* @param {*} [options] Override http request option.
|
|
463
463
|
* @throws {RequiredError}
|
|
464
464
|
*/
|
|
465
|
-
|
|
465
|
+
integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: any): AxiosPromise<CreateMemberResult>;
|
|
466
466
|
/**
|
|
467
467
|
*
|
|
468
468
|
* @param {DestroyFSMembers} destroyFSMembers
|
|
469
469
|
* @param {*} [options] Override http request option.
|
|
470
470
|
* @throws {RequiredError}
|
|
471
471
|
*/
|
|
472
|
-
|
|
472
|
+
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<void>;
|
|
473
473
|
/**
|
|
474
474
|
*
|
|
475
475
|
* @param {*} [options] Override http request option.
|
|
@@ -507,20 +507,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
507
507
|
export declare class DefaultApi extends BaseAPI {
|
|
508
508
|
/**
|
|
509
509
|
*
|
|
510
|
-
* @param {
|
|
510
|
+
* @param {any} body
|
|
511
511
|
* @param {*} [options] Override http request option.
|
|
512
512
|
* @throws {RequiredError}
|
|
513
513
|
* @memberof DefaultApi
|
|
514
514
|
*/
|
|
515
|
-
create(
|
|
515
|
+
create(body: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
516
516
|
/**
|
|
517
517
|
*
|
|
518
|
-
* @param {
|
|
518
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
519
519
|
* @param {*} [options] Override http request option.
|
|
520
520
|
* @throws {RequiredError}
|
|
521
521
|
* @memberof DefaultApi
|
|
522
522
|
*/
|
|
523
|
-
|
|
523
|
+
integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMemberResult, any>>;
|
|
524
524
|
/**
|
|
525
525
|
*
|
|
526
526
|
* @param {DestroyFSMembers} destroyFSMembers
|
|
@@ -528,7 +528,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
528
528
|
* @throws {RequiredError}
|
|
529
529
|
* @memberof DefaultApi
|
|
530
530
|
*/
|
|
531
|
-
|
|
531
|
+
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
532
532
|
/**
|
|
533
533
|
*
|
|
534
534
|
* @param {*} [options] Override http request option.
|
package/dist/api/api.js
CHANGED
|
@@ -40,14 +40,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @param {
|
|
43
|
+
* @param {any} body
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
*/
|
|
47
|
-
create: (
|
|
48
|
-
// verify required parameter '
|
|
49
|
-
(0, common_1.assertParamExists)('create', '
|
|
50
|
-
const localVarPath = `/integrations/fs/
|
|
47
|
+
create: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
// verify required parameter 'body' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('create', 'body', body);
|
|
50
|
+
const localVarPath = `/integrations/fs/webhook`;
|
|
51
51
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
52
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
53
53
|
let baseOptions;
|
|
@@ -61,7 +61,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
61
61
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
62
62
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
63
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
64
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
64
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
65
65
|
return {
|
|
66
66
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
67
|
options: localVarRequestOptions,
|
|
@@ -69,14 +69,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
69
69
|
}),
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
|
-
* @param {
|
|
72
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
|
|
77
|
-
// verify required parameter '
|
|
78
|
-
(0, common_1.assertParamExists)('
|
|
79
|
-
const localVarPath = `/integrations/fs/
|
|
76
|
+
integrationsFsMembersCreate: (createFSMembersBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
// verify required parameter 'createFSMembersBody' is not null or undefined
|
|
78
|
+
(0, common_1.assertParamExists)('integrationsFsMembersCreate', 'createFSMembersBody', createFSMembersBody);
|
|
79
|
+
const localVarPath = `/integrations/fs/members`;
|
|
80
80
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
81
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
82
82
|
let baseOptions;
|
|
@@ -90,7 +90,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
90
90
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
91
91
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
92
92
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
93
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
93
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFSMembersBody, localVarRequestOptions, configuration);
|
|
94
94
|
return {
|
|
95
95
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
96
96
|
options: localVarRequestOptions,
|
|
@@ -102,9 +102,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
* @param {*} [options] Override http request option.
|
|
103
103
|
* @throws {RequiredError}
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
integrationsFsMembersDelete: (destroyFSMembers, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
106
106
|
// verify required parameter 'destroyFSMembers' is not null or undefined
|
|
107
|
-
(0, common_1.assertParamExists)('
|
|
107
|
+
(0, common_1.assertParamExists)('integrationsFsMembersDelete', 'destroyFSMembers', destroyFSMembers);
|
|
108
108
|
const localVarPath = `/integrations/fs/members`;
|
|
109
109
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
110
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -247,25 +247,25 @@ const DefaultApiFp = function (configuration) {
|
|
|
247
247
|
return {
|
|
248
248
|
/**
|
|
249
249
|
*
|
|
250
|
-
* @param {
|
|
250
|
+
* @param {any} body
|
|
251
251
|
* @param {*} [options] Override http request option.
|
|
252
252
|
* @throws {RequiredError}
|
|
253
253
|
*/
|
|
254
|
-
create(
|
|
254
|
+
create(body, options) {
|
|
255
255
|
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.create(
|
|
256
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.create(body, options);
|
|
257
257
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
258
258
|
});
|
|
259
259
|
},
|
|
260
260
|
/**
|
|
261
261
|
*
|
|
262
|
-
* @param {
|
|
262
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
263
263
|
* @param {*} [options] Override http request option.
|
|
264
264
|
* @throws {RequiredError}
|
|
265
265
|
*/
|
|
266
|
-
|
|
266
|
+
integrationsFsMembersCreate(createFSMembersBody, options) {
|
|
267
267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
268
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.integrationsFsMembersCreate(createFSMembersBody, options);
|
|
269
269
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
270
270
|
});
|
|
271
271
|
},
|
|
@@ -275,9 +275,9 @@ const DefaultApiFp = function (configuration) {
|
|
|
275
275
|
* @param {*} [options] Override http request option.
|
|
276
276
|
* @throws {RequiredError}
|
|
277
277
|
*/
|
|
278
|
-
|
|
278
|
+
integrationsFsMembersDelete(destroyFSMembers, options) {
|
|
279
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
280
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
|
|
281
281
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
282
282
|
});
|
|
283
283
|
},
|
|
@@ -340,21 +340,21 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
340
340
|
return {
|
|
341
341
|
/**
|
|
342
342
|
*
|
|
343
|
-
* @param {
|
|
343
|
+
* @param {any} body
|
|
344
344
|
* @param {*} [options] Override http request option.
|
|
345
345
|
* @throws {RequiredError}
|
|
346
346
|
*/
|
|
347
|
-
create(
|
|
348
|
-
return localVarFp.create(
|
|
347
|
+
create(body, options) {
|
|
348
|
+
return localVarFp.create(body, options).then((request) => request(axios, basePath));
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
*
|
|
352
|
-
* @param {
|
|
352
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
353
353
|
* @param {*} [options] Override http request option.
|
|
354
354
|
* @throws {RequiredError}
|
|
355
355
|
*/
|
|
356
|
-
|
|
357
|
-
return localVarFp.
|
|
356
|
+
integrationsFsMembersCreate(createFSMembersBody, options) {
|
|
357
|
+
return localVarFp.integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(axios, basePath));
|
|
358
358
|
},
|
|
359
359
|
/**
|
|
360
360
|
*
|
|
@@ -362,8 +362,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
362
362
|
* @param {*} [options] Override http request option.
|
|
363
363
|
* @throws {RequiredError}
|
|
364
364
|
*/
|
|
365
|
-
|
|
366
|
-
return localVarFp.
|
|
365
|
+
integrationsFsMembersDelete(destroyFSMembers, options) {
|
|
366
|
+
return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
|
|
367
367
|
},
|
|
368
368
|
/**
|
|
369
369
|
*
|
|
@@ -412,23 +412,23 @@ exports.DefaultApiFactory = DefaultApiFactory;
|
|
|
412
412
|
class DefaultApi extends base_1.BaseAPI {
|
|
413
413
|
/**
|
|
414
414
|
*
|
|
415
|
-
* @param {
|
|
415
|
+
* @param {any} body
|
|
416
416
|
* @param {*} [options] Override http request option.
|
|
417
417
|
* @throws {RequiredError}
|
|
418
418
|
* @memberof DefaultApi
|
|
419
419
|
*/
|
|
420
|
-
create(
|
|
421
|
-
return (0, exports.DefaultApiFp)(this.configuration).create(
|
|
420
|
+
create(body, options) {
|
|
421
|
+
return (0, exports.DefaultApiFp)(this.configuration).create(body, options).then((request) => request(this.axios, this.basePath));
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
424
|
*
|
|
425
|
-
* @param {
|
|
425
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
426
426
|
* @param {*} [options] Override http request option.
|
|
427
427
|
* @throws {RequiredError}
|
|
428
428
|
* @memberof DefaultApi
|
|
429
429
|
*/
|
|
430
|
-
|
|
431
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
430
|
+
integrationsFsMembersCreate(createFSMembersBody, options) {
|
|
431
|
+
return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(this.axios, this.basePath));
|
|
432
432
|
}
|
|
433
433
|
/**
|
|
434
434
|
*
|
|
@@ -437,8 +437,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
437
437
|
* @throws {RequiredError}
|
|
438
438
|
* @memberof DefaultApi
|
|
439
439
|
*/
|
|
440
|
-
|
|
441
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
440
|
+
integrationsFsMembersDelete(destroyFSMembers, options) {
|
|
441
|
+
return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
|
|
442
442
|
}
|
|
443
443
|
/**
|
|
444
444
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { DefaultApi } from './api';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
2
|
+
declare const axiosInstance: any;
|
|
3
|
+
declare const client: DefaultApi;
|
|
4
|
+
declare function setAcessToken(accessToken: string): void;
|
|
5
|
+
export { client, axiosInstance, setAcessToken };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.setAcessToken = exports.axiosInstance = exports.client = void 0;
|
|
3
7
|
const api_1 = require("./api");
|
|
4
|
-
const
|
|
5
|
-
|
|
8
|
+
const axios_1 = __importDefault(require("axios"));
|
|
9
|
+
const axiosInstance = axios_1.default.create();
|
|
10
|
+
exports.axiosInstance = axiosInstance;
|
|
11
|
+
const client = new api_1.DefaultApi(undefined, process.env['OB_BMS_URL'] || 'http://localhost:3000', axiosInstance);
|
|
12
|
+
exports.client = client;
|
|
13
|
+
function setAcessToken(accessToken) {
|
|
14
|
+
axiosInstance.defaults.headers.common['x-access-token'] = accessToken;
|
|
15
|
+
}
|
|
16
|
+
exports.setAcessToken = setAcessToken;
|
package/dist/test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/test.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
() => __awaiter(void 0, void 0, void 0, function* () { });
|
package/index.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { DefaultApi } from './api';
|
|
2
|
+
import axios from 'axios';
|
|
2
3
|
|
|
3
|
-
const
|
|
4
|
+
const axiosInstance = axios.create();
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
const client = new DefaultApi(undefined, process.env['OB_BMS_URL'] || 'http://localhost:3000', axiosInstance);
|
|
7
|
+
|
|
8
|
+
function setAcessToken(accessToken: string): void {
|
|
9
|
+
axiosInstance.defaults.headers.common['x-access-token'] = accessToken;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { client, axiosInstance, setAcessToken };
|
package/package.json
CHANGED
package/test.ts
ADDED
package/tsconfig.json
CHANGED