ob-bms-sdk 0.0.6 → 0.0.8
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/.openapi-generator/FILES +1 -0
- package/api/api.ts +94 -45
- package/dist/api/api.d.ts +67 -24
- package/dist/api/api.js +54 -45
- package/dist/index.d.ts +4 -2
- package/dist/index.js +13 -2
- 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
|
@@ -106,6 +106,19 @@ export interface DestroyFSMembers {
|
|
|
106
106
|
*/
|
|
107
107
|
'member_ids': Array<string>;
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @export
|
|
112
|
+
* @interface FindMemberResult
|
|
113
|
+
*/
|
|
114
|
+
export interface FindMemberResult {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof FindMemberResult
|
|
119
|
+
*/
|
|
120
|
+
'result': boolean;
|
|
121
|
+
}
|
|
109
122
|
/**
|
|
110
123
|
*
|
|
111
124
|
* @export
|
|
@@ -314,6 +327,32 @@ export interface WrappedResponseCreateVisitorResponseData {
|
|
|
314
327
|
*/
|
|
315
328
|
'name': string;
|
|
316
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @export
|
|
333
|
+
* @interface WrappedResponseFindMemberResult
|
|
334
|
+
*/
|
|
335
|
+
export interface WrappedResponseFindMemberResult {
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @type {WrappedResponseFindMemberResultData}
|
|
339
|
+
* @memberof WrappedResponseFindMemberResult
|
|
340
|
+
*/
|
|
341
|
+
'data': WrappedResponseFindMemberResultData;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @export
|
|
346
|
+
* @interface WrappedResponseFindMemberResultData
|
|
347
|
+
*/
|
|
348
|
+
export interface WrappedResponseFindMemberResultData {
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* @type {boolean}
|
|
352
|
+
* @memberof WrappedResponseFindMemberResultData
|
|
353
|
+
*/
|
|
354
|
+
'result': boolean;
|
|
355
|
+
}
|
|
317
356
|
/**
|
|
318
357
|
*
|
|
319
358
|
* @export
|
|
@@ -355,14 +394,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
355
394
|
return {
|
|
356
395
|
/**
|
|
357
396
|
*
|
|
358
|
-
* @param {
|
|
397
|
+
* @param {any} body
|
|
359
398
|
* @param {*} [options] Override http request option.
|
|
360
399
|
* @throws {RequiredError}
|
|
361
400
|
*/
|
|
362
|
-
create: async (
|
|
363
|
-
// verify required parameter '
|
|
364
|
-
assertParamExists('create', '
|
|
365
|
-
const localVarPath = `/integrations/fs/
|
|
401
|
+
create: async (body: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
402
|
+
// verify required parameter 'body' is not null or undefined
|
|
403
|
+
assertParamExists('create', 'body', body)
|
|
404
|
+
const localVarPath = `/integrations/fs/webhook`;
|
|
366
405
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
367
406
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
368
407
|
let baseOptions;
|
|
@@ -381,7 +420,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
381
420
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
382
421
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
383
422
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
384
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
423
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
385
424
|
|
|
386
425
|
return {
|
|
387
426
|
url: toPathString(localVarUrlObj),
|
|
@@ -390,14 +429,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
390
429
|
},
|
|
391
430
|
/**
|
|
392
431
|
*
|
|
393
|
-
* @param {
|
|
432
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
394
433
|
* @param {*} [options] Override http request option.
|
|
395
434
|
* @throws {RequiredError}
|
|
396
435
|
*/
|
|
397
|
-
|
|
398
|
-
// verify required parameter '
|
|
399
|
-
assertParamExists('
|
|
400
|
-
const localVarPath = `/integrations/fs/
|
|
436
|
+
integrationsFsMembersCreate: async (createFSMembersBody: CreateFSMembersBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
437
|
+
// verify required parameter 'createFSMembersBody' is not null or undefined
|
|
438
|
+
assertParamExists('integrationsFsMembersCreate', 'createFSMembersBody', createFSMembersBody)
|
|
439
|
+
const localVarPath = `/integrations/fs/members`;
|
|
401
440
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
441
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
403
442
|
let baseOptions;
|
|
@@ -416,7 +455,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
416
455
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
417
456
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
418
457
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
419
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
458
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createFSMembersBody, localVarRequestOptions, configuration)
|
|
420
459
|
|
|
421
460
|
return {
|
|
422
461
|
url: toPathString(localVarUrlObj),
|
|
@@ -429,9 +468,9 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
429
468
|
* @param {*} [options] Override http request option.
|
|
430
469
|
* @throws {RequiredError}
|
|
431
470
|
*/
|
|
432
|
-
|
|
471
|
+
integrationsFsMembersDelete: async (destroyFSMembers: DestroyFSMembers, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
433
472
|
// verify required parameter 'destroyFSMembers' is not null or undefined
|
|
434
|
-
assertParamExists('
|
|
473
|
+
assertParamExists('integrationsFsMembersDelete', 'destroyFSMembers', destroyFSMembers)
|
|
435
474
|
const localVarPath = `/integrations/fs/members`;
|
|
436
475
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
437
476
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -460,10 +499,13 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
460
499
|
},
|
|
461
500
|
/**
|
|
462
501
|
*
|
|
502
|
+
* @param {string} identifier
|
|
463
503
|
* @param {*} [options] Override http request option.
|
|
464
504
|
* @throws {RequiredError}
|
|
465
505
|
*/
|
|
466
|
-
membersIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
506
|
+
membersIndex: async (identifier: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
507
|
+
// verify required parameter 'identifier' is not null or undefined
|
|
508
|
+
assertParamExists('membersIndex', 'identifier', identifier)
|
|
467
509
|
const localVarPath = `/members`;
|
|
468
510
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
469
511
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -476,6 +518,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
476
518
|
const localVarHeaderParameter = {} as any;
|
|
477
519
|
const localVarQueryParameter = {} as any;
|
|
478
520
|
|
|
521
|
+
if (identifier !== undefined) {
|
|
522
|
+
localVarQueryParameter['identifier'] = identifier;
|
|
523
|
+
}
|
|
524
|
+
|
|
479
525
|
|
|
480
526
|
|
|
481
527
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -602,22 +648,22 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
602
648
|
return {
|
|
603
649
|
/**
|
|
604
650
|
*
|
|
605
|
-
* @param {
|
|
651
|
+
* @param {any} body
|
|
606
652
|
* @param {*} [options] Override http request option.
|
|
607
653
|
* @throws {RequiredError}
|
|
608
654
|
*/
|
|
609
|
-
async create(
|
|
610
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.create(
|
|
655
|
+
async create(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.create(body, options);
|
|
611
657
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
612
658
|
},
|
|
613
659
|
/**
|
|
614
660
|
*
|
|
615
|
-
* @param {
|
|
661
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
616
662
|
* @param {*} [options] Override http request option.
|
|
617
663
|
* @throws {RequiredError}
|
|
618
664
|
*/
|
|
619
|
-
async
|
|
620
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
665
|
+
async integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMemberResult>> {
|
|
666
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationsFsMembersCreate(createFSMembersBody, options);
|
|
621
667
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
622
668
|
},
|
|
623
669
|
/**
|
|
@@ -626,17 +672,18 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
626
672
|
* @param {*} [options] Override http request option.
|
|
627
673
|
* @throws {RequiredError}
|
|
628
674
|
*/
|
|
629
|
-
async
|
|
630
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
675
|
+
async integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
676
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
|
|
631
677
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
632
678
|
},
|
|
633
679
|
/**
|
|
634
680
|
*
|
|
681
|
+
* @param {string} identifier
|
|
635
682
|
* @param {*} [options] Override http request option.
|
|
636
683
|
* @throws {RequiredError}
|
|
637
684
|
*/
|
|
638
|
-
async membersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
639
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.membersIndex(options);
|
|
685
|
+
async membersIndex(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResult>> {
|
|
686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.membersIndex(identifier, options);
|
|
640
687
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
641
688
|
},
|
|
642
689
|
/**
|
|
@@ -681,21 +728,21 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
681
728
|
return {
|
|
682
729
|
/**
|
|
683
730
|
*
|
|
684
|
-
* @param {
|
|
731
|
+
* @param {any} body
|
|
685
732
|
* @param {*} [options] Override http request option.
|
|
686
733
|
* @throws {RequiredError}
|
|
687
734
|
*/
|
|
688
|
-
create(
|
|
689
|
-
return localVarFp.create(
|
|
735
|
+
create(body: any, options?: any): AxiosPromise<void> {
|
|
736
|
+
return localVarFp.create(body, options).then((request) => request(axios, basePath));
|
|
690
737
|
},
|
|
691
738
|
/**
|
|
692
739
|
*
|
|
693
|
-
* @param {
|
|
740
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
694
741
|
* @param {*} [options] Override http request option.
|
|
695
742
|
* @throws {RequiredError}
|
|
696
743
|
*/
|
|
697
|
-
|
|
698
|
-
return localVarFp.
|
|
744
|
+
integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: any): AxiosPromise<CreateMemberResult> {
|
|
745
|
+
return localVarFp.integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(axios, basePath));
|
|
699
746
|
},
|
|
700
747
|
/**
|
|
701
748
|
*
|
|
@@ -703,16 +750,17 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
703
750
|
* @param {*} [options] Override http request option.
|
|
704
751
|
* @throws {RequiredError}
|
|
705
752
|
*/
|
|
706
|
-
|
|
707
|
-
return localVarFp.
|
|
753
|
+
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<void> {
|
|
754
|
+
return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
|
|
708
755
|
},
|
|
709
756
|
/**
|
|
710
757
|
*
|
|
758
|
+
* @param {string} identifier
|
|
711
759
|
* @param {*} [options] Override http request option.
|
|
712
760
|
* @throws {RequiredError}
|
|
713
761
|
*/
|
|
714
|
-
membersIndex(options?: any): AxiosPromise<
|
|
715
|
-
return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
|
|
762
|
+
membersIndex(identifier: string, options?: any): AxiosPromise<WrappedResponseFindMemberResult> {
|
|
763
|
+
return localVarFp.membersIndex(identifier, options).then((request) => request(axios, basePath));
|
|
716
764
|
},
|
|
717
765
|
/**
|
|
718
766
|
*
|
|
@@ -753,24 +801,24 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
753
801
|
export class DefaultApi extends BaseAPI {
|
|
754
802
|
/**
|
|
755
803
|
*
|
|
756
|
-
* @param {
|
|
804
|
+
* @param {any} body
|
|
757
805
|
* @param {*} [options] Override http request option.
|
|
758
806
|
* @throws {RequiredError}
|
|
759
807
|
* @memberof DefaultApi
|
|
760
808
|
*/
|
|
761
|
-
public create(
|
|
762
|
-
return DefaultApiFp(this.configuration).create(
|
|
809
|
+
public create(body: any, options?: AxiosRequestConfig) {
|
|
810
|
+
return DefaultApiFp(this.configuration).create(body, options).then((request) => request(this.axios, this.basePath));
|
|
763
811
|
}
|
|
764
812
|
|
|
765
813
|
/**
|
|
766
814
|
*
|
|
767
|
-
* @param {
|
|
815
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
768
816
|
* @param {*} [options] Override http request option.
|
|
769
817
|
* @throws {RequiredError}
|
|
770
818
|
* @memberof DefaultApi
|
|
771
819
|
*/
|
|
772
|
-
public
|
|
773
|
-
return DefaultApiFp(this.configuration).
|
|
820
|
+
public integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig) {
|
|
821
|
+
return DefaultApiFp(this.configuration).integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(this.axios, this.basePath));
|
|
774
822
|
}
|
|
775
823
|
|
|
776
824
|
/**
|
|
@@ -780,18 +828,19 @@ export class DefaultApi extends BaseAPI {
|
|
|
780
828
|
* @throws {RequiredError}
|
|
781
829
|
* @memberof DefaultApi
|
|
782
830
|
*/
|
|
783
|
-
public
|
|
784
|
-
return DefaultApiFp(this.configuration).
|
|
831
|
+
public integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) {
|
|
832
|
+
return DefaultApiFp(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
|
|
785
833
|
}
|
|
786
834
|
|
|
787
835
|
/**
|
|
788
836
|
*
|
|
837
|
+
* @param {string} identifier
|
|
789
838
|
* @param {*} [options] Override http request option.
|
|
790
839
|
* @throws {RequiredError}
|
|
791
840
|
* @memberof DefaultApi
|
|
792
841
|
*/
|
|
793
|
-
public membersIndex(options?: AxiosRequestConfig) {
|
|
794
|
-
return DefaultApiFp(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
|
|
842
|
+
public membersIndex(identifier: string, options?: AxiosRequestConfig) {
|
|
843
|
+
return DefaultApiFp(this.configuration).membersIndex(identifier, options).then((request) => request(this.axios, this.basePath));
|
|
795
844
|
}
|
|
796
845
|
|
|
797
846
|
/**
|
package/dist/api/api.d.ts
CHANGED
|
@@ -96,6 +96,19 @@ export interface DestroyFSMembers {
|
|
|
96
96
|
*/
|
|
97
97
|
'member_ids': Array<string>;
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @export
|
|
102
|
+
* @interface FindMemberResult
|
|
103
|
+
*/
|
|
104
|
+
export interface FindMemberResult {
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {boolean}
|
|
108
|
+
* @memberof FindMemberResult
|
|
109
|
+
*/
|
|
110
|
+
'result': boolean;
|
|
111
|
+
}
|
|
99
112
|
/**
|
|
100
113
|
*
|
|
101
114
|
* @export
|
|
@@ -304,6 +317,32 @@ export interface WrappedResponseCreateVisitorResponseData {
|
|
|
304
317
|
*/
|
|
305
318
|
'name': string;
|
|
306
319
|
}
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @export
|
|
323
|
+
* @interface WrappedResponseFindMemberResult
|
|
324
|
+
*/
|
|
325
|
+
export interface WrappedResponseFindMemberResult {
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {WrappedResponseFindMemberResultData}
|
|
329
|
+
* @memberof WrappedResponseFindMemberResult
|
|
330
|
+
*/
|
|
331
|
+
'data': WrappedResponseFindMemberResultData;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @export
|
|
336
|
+
* @interface WrappedResponseFindMemberResultData
|
|
337
|
+
*/
|
|
338
|
+
export interface WrappedResponseFindMemberResultData {
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @type {boolean}
|
|
342
|
+
* @memberof WrappedResponseFindMemberResultData
|
|
343
|
+
*/
|
|
344
|
+
'result': boolean;
|
|
345
|
+
}
|
|
307
346
|
/**
|
|
308
347
|
*
|
|
309
348
|
* @export
|
|
@@ -343,31 +382,32 @@ export interface WrappedResponseShowVisitorResponseData {
|
|
|
343
382
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
344
383
|
/**
|
|
345
384
|
*
|
|
346
|
-
* @param {
|
|
385
|
+
* @param {any} body
|
|
347
386
|
* @param {*} [options] Override http request option.
|
|
348
387
|
* @throws {RequiredError}
|
|
349
388
|
*/
|
|
350
|
-
create: (
|
|
389
|
+
create: (body: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
351
390
|
/**
|
|
352
391
|
*
|
|
353
|
-
* @param {
|
|
392
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
354
393
|
* @param {*} [options] Override http request option.
|
|
355
394
|
* @throws {RequiredError}
|
|
356
395
|
*/
|
|
357
|
-
|
|
396
|
+
integrationsFsMembersCreate: (createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
358
397
|
/**
|
|
359
398
|
*
|
|
360
399
|
* @param {DestroyFSMembers} destroyFSMembers
|
|
361
400
|
* @param {*} [options] Override http request option.
|
|
362
401
|
* @throws {RequiredError}
|
|
363
402
|
*/
|
|
364
|
-
|
|
403
|
+
integrationsFsMembersDelete: (destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
365
404
|
/**
|
|
366
405
|
*
|
|
406
|
+
* @param {string} identifier
|
|
367
407
|
* @param {*} [options] Override http request option.
|
|
368
408
|
* @throws {RequiredError}
|
|
369
409
|
*/
|
|
370
|
-
membersIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
410
|
+
membersIndex: (identifier: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
371
411
|
/**
|
|
372
412
|
*
|
|
373
413
|
* @param {SyncBody} syncBody
|
|
@@ -397,31 +437,32 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
397
437
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
398
438
|
/**
|
|
399
439
|
*
|
|
400
|
-
* @param {
|
|
440
|
+
* @param {any} body
|
|
401
441
|
* @param {*} [options] Override http request option.
|
|
402
442
|
* @throws {RequiredError}
|
|
403
443
|
*/
|
|
404
|
-
create(
|
|
444
|
+
create(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
405
445
|
/**
|
|
406
446
|
*
|
|
407
|
-
* @param {
|
|
447
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
408
448
|
* @param {*} [options] Override http request option.
|
|
409
449
|
* @throws {RequiredError}
|
|
410
450
|
*/
|
|
411
|
-
|
|
451
|
+
integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMemberResult>>;
|
|
412
452
|
/**
|
|
413
453
|
*
|
|
414
454
|
* @param {DestroyFSMembers} destroyFSMembers
|
|
415
455
|
* @param {*} [options] Override http request option.
|
|
416
456
|
* @throws {RequiredError}
|
|
417
457
|
*/
|
|
418
|
-
|
|
458
|
+
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
419
459
|
/**
|
|
420
460
|
*
|
|
461
|
+
* @param {string} identifier
|
|
421
462
|
* @param {*} [options] Override http request option.
|
|
422
463
|
* @throws {RequiredError}
|
|
423
464
|
*/
|
|
424
|
-
membersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
465
|
+
membersIndex(identifier: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResult>>;
|
|
425
466
|
/**
|
|
426
467
|
*
|
|
427
468
|
* @param {SyncBody} syncBody
|
|
@@ -451,31 +492,32 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
451
492
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
452
493
|
/**
|
|
453
494
|
*
|
|
454
|
-
* @param {
|
|
495
|
+
* @param {any} body
|
|
455
496
|
* @param {*} [options] Override http request option.
|
|
456
497
|
* @throws {RequiredError}
|
|
457
498
|
*/
|
|
458
|
-
create(
|
|
499
|
+
create(body: any, options?: any): AxiosPromise<void>;
|
|
459
500
|
/**
|
|
460
501
|
*
|
|
461
|
-
* @param {
|
|
502
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
462
503
|
* @param {*} [options] Override http request option.
|
|
463
504
|
* @throws {RequiredError}
|
|
464
505
|
*/
|
|
465
|
-
|
|
506
|
+
integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: any): AxiosPromise<CreateMemberResult>;
|
|
466
507
|
/**
|
|
467
508
|
*
|
|
468
509
|
* @param {DestroyFSMembers} destroyFSMembers
|
|
469
510
|
* @param {*} [options] Override http request option.
|
|
470
511
|
* @throws {RequiredError}
|
|
471
512
|
*/
|
|
472
|
-
|
|
513
|
+
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<void>;
|
|
473
514
|
/**
|
|
474
515
|
*
|
|
516
|
+
* @param {string} identifier
|
|
475
517
|
* @param {*} [options] Override http request option.
|
|
476
518
|
* @throws {RequiredError}
|
|
477
519
|
*/
|
|
478
|
-
membersIndex(options?: any): AxiosPromise<
|
|
520
|
+
membersIndex(identifier: string, options?: any): AxiosPromise<WrappedResponseFindMemberResult>;
|
|
479
521
|
/**
|
|
480
522
|
*
|
|
481
523
|
* @param {SyncBody} syncBody
|
|
@@ -507,20 +549,20 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
507
549
|
export declare class DefaultApi extends BaseAPI {
|
|
508
550
|
/**
|
|
509
551
|
*
|
|
510
|
-
* @param {
|
|
552
|
+
* @param {any} body
|
|
511
553
|
* @param {*} [options] Override http request option.
|
|
512
554
|
* @throws {RequiredError}
|
|
513
555
|
* @memberof DefaultApi
|
|
514
556
|
*/
|
|
515
|
-
create(
|
|
557
|
+
create(body: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
516
558
|
/**
|
|
517
559
|
*
|
|
518
|
-
* @param {
|
|
560
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
519
561
|
* @param {*} [options] Override http request option.
|
|
520
562
|
* @throws {RequiredError}
|
|
521
563
|
* @memberof DefaultApi
|
|
522
564
|
*/
|
|
523
|
-
|
|
565
|
+
integrationsFsMembersCreate(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMemberResult, any>>;
|
|
524
566
|
/**
|
|
525
567
|
*
|
|
526
568
|
* @param {DestroyFSMembers} destroyFSMembers
|
|
@@ -528,14 +570,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
528
570
|
* @throws {RequiredError}
|
|
529
571
|
* @memberof DefaultApi
|
|
530
572
|
*/
|
|
531
|
-
|
|
573
|
+
integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
532
574
|
/**
|
|
533
575
|
*
|
|
576
|
+
* @param {string} identifier
|
|
534
577
|
* @param {*} [options] Override http request option.
|
|
535
578
|
* @throws {RequiredError}
|
|
536
579
|
* @memberof DefaultApi
|
|
537
580
|
*/
|
|
538
|
-
membersIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
581
|
+
membersIndex(identifier: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseFindMemberResult, any>>;
|
|
539
582
|
/**
|
|
540
583
|
*
|
|
541
584
|
* @param {SyncBody} syncBody
|
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);
|
|
@@ -127,10 +127,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
127
127
|
}),
|
|
128
128
|
/**
|
|
129
129
|
*
|
|
130
|
+
* @param {string} identifier
|
|
130
131
|
* @param {*} [options] Override http request option.
|
|
131
132
|
* @throws {RequiredError}
|
|
132
133
|
*/
|
|
133
|
-
membersIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
membersIndex: (identifier, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
// verify required parameter 'identifier' is not null or undefined
|
|
136
|
+
(0, common_1.assertParamExists)('membersIndex', 'identifier', identifier);
|
|
134
137
|
const localVarPath = `/members`;
|
|
135
138
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
136
139
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -141,6 +144,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
141
144
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
142
145
|
const localVarHeaderParameter = {};
|
|
143
146
|
const localVarQueryParameter = {};
|
|
147
|
+
if (identifier !== undefined) {
|
|
148
|
+
localVarQueryParameter['identifier'] = identifier;
|
|
149
|
+
}
|
|
144
150
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
151
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
152
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -247,25 +253,25 @@ const DefaultApiFp = function (configuration) {
|
|
|
247
253
|
return {
|
|
248
254
|
/**
|
|
249
255
|
*
|
|
250
|
-
* @param {
|
|
256
|
+
* @param {any} body
|
|
251
257
|
* @param {*} [options] Override http request option.
|
|
252
258
|
* @throws {RequiredError}
|
|
253
259
|
*/
|
|
254
|
-
create(
|
|
260
|
+
create(body, options) {
|
|
255
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.create(
|
|
262
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.create(body, options);
|
|
257
263
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
258
264
|
});
|
|
259
265
|
},
|
|
260
266
|
/**
|
|
261
267
|
*
|
|
262
|
-
* @param {
|
|
268
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
263
269
|
* @param {*} [options] Override http request option.
|
|
264
270
|
* @throws {RequiredError}
|
|
265
271
|
*/
|
|
266
|
-
|
|
272
|
+
integrationsFsMembersCreate(createFSMembersBody, options) {
|
|
267
273
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
274
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.integrationsFsMembersCreate(createFSMembersBody, options);
|
|
269
275
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
270
276
|
});
|
|
271
277
|
},
|
|
@@ -275,20 +281,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
275
281
|
* @param {*} [options] Override http request option.
|
|
276
282
|
* @throws {RequiredError}
|
|
277
283
|
*/
|
|
278
|
-
|
|
284
|
+
integrationsFsMembersDelete(destroyFSMembers, options) {
|
|
279
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
286
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
|
|
281
287
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
282
288
|
});
|
|
283
289
|
},
|
|
284
290
|
/**
|
|
285
291
|
*
|
|
292
|
+
* @param {string} identifier
|
|
286
293
|
* @param {*} [options] Override http request option.
|
|
287
294
|
* @throws {RequiredError}
|
|
288
295
|
*/
|
|
289
|
-
membersIndex(options) {
|
|
296
|
+
membersIndex(identifier, options) {
|
|
290
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(options);
|
|
298
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(identifier, options);
|
|
292
299
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
293
300
|
});
|
|
294
301
|
},
|
|
@@ -340,21 +347,21 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
340
347
|
return {
|
|
341
348
|
/**
|
|
342
349
|
*
|
|
343
|
-
* @param {
|
|
350
|
+
* @param {any} body
|
|
344
351
|
* @param {*} [options] Override http request option.
|
|
345
352
|
* @throws {RequiredError}
|
|
346
353
|
*/
|
|
347
|
-
create(
|
|
348
|
-
return localVarFp.create(
|
|
354
|
+
create(body, options) {
|
|
355
|
+
return localVarFp.create(body, options).then((request) => request(axios, basePath));
|
|
349
356
|
},
|
|
350
357
|
/**
|
|
351
358
|
*
|
|
352
|
-
* @param {
|
|
359
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
353
360
|
* @param {*} [options] Override http request option.
|
|
354
361
|
* @throws {RequiredError}
|
|
355
362
|
*/
|
|
356
|
-
|
|
357
|
-
return localVarFp.
|
|
363
|
+
integrationsFsMembersCreate(createFSMembersBody, options) {
|
|
364
|
+
return localVarFp.integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(axios, basePath));
|
|
358
365
|
},
|
|
359
366
|
/**
|
|
360
367
|
*
|
|
@@ -362,16 +369,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
362
369
|
* @param {*} [options] Override http request option.
|
|
363
370
|
* @throws {RequiredError}
|
|
364
371
|
*/
|
|
365
|
-
|
|
366
|
-
return localVarFp.
|
|
372
|
+
integrationsFsMembersDelete(destroyFSMembers, options) {
|
|
373
|
+
return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
|
|
367
374
|
},
|
|
368
375
|
/**
|
|
369
376
|
*
|
|
377
|
+
* @param {string} identifier
|
|
370
378
|
* @param {*} [options] Override http request option.
|
|
371
379
|
* @throws {RequiredError}
|
|
372
380
|
*/
|
|
373
|
-
membersIndex(options) {
|
|
374
|
-
return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
|
|
381
|
+
membersIndex(identifier, options) {
|
|
382
|
+
return localVarFp.membersIndex(identifier, options).then((request) => request(axios, basePath));
|
|
375
383
|
},
|
|
376
384
|
/**
|
|
377
385
|
*
|
|
@@ -412,23 +420,23 @@ exports.DefaultApiFactory = DefaultApiFactory;
|
|
|
412
420
|
class DefaultApi extends base_1.BaseAPI {
|
|
413
421
|
/**
|
|
414
422
|
*
|
|
415
|
-
* @param {
|
|
423
|
+
* @param {any} body
|
|
416
424
|
* @param {*} [options] Override http request option.
|
|
417
425
|
* @throws {RequiredError}
|
|
418
426
|
* @memberof DefaultApi
|
|
419
427
|
*/
|
|
420
|
-
create(
|
|
421
|
-
return (0, exports.DefaultApiFp)(this.configuration).create(
|
|
428
|
+
create(body, options) {
|
|
429
|
+
return (0, exports.DefaultApiFp)(this.configuration).create(body, options).then((request) => request(this.axios, this.basePath));
|
|
422
430
|
}
|
|
423
431
|
/**
|
|
424
432
|
*
|
|
425
|
-
* @param {
|
|
433
|
+
* @param {CreateFSMembersBody} createFSMembersBody
|
|
426
434
|
* @param {*} [options] Override http request option.
|
|
427
435
|
* @throws {RequiredError}
|
|
428
436
|
* @memberof DefaultApi
|
|
429
437
|
*/
|
|
430
|
-
|
|
431
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
438
|
+
integrationsFsMembersCreate(createFSMembersBody, options) {
|
|
439
|
+
return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersCreate(createFSMembersBody, options).then((request) => request(this.axios, this.basePath));
|
|
432
440
|
}
|
|
433
441
|
/**
|
|
434
442
|
*
|
|
@@ -437,17 +445,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
437
445
|
* @throws {RequiredError}
|
|
438
446
|
* @memberof DefaultApi
|
|
439
447
|
*/
|
|
440
|
-
|
|
441
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
448
|
+
integrationsFsMembersDelete(destroyFSMembers, options) {
|
|
449
|
+
return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
|
|
442
450
|
}
|
|
443
451
|
/**
|
|
444
452
|
*
|
|
453
|
+
* @param {string} identifier
|
|
445
454
|
* @param {*} [options] Override http request option.
|
|
446
455
|
* @throws {RequiredError}
|
|
447
456
|
* @memberof DefaultApi
|
|
448
457
|
*/
|
|
449
|
-
membersIndex(options) {
|
|
450
|
-
return (0, exports.DefaultApiFp)(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
|
|
458
|
+
membersIndex(identifier, options) {
|
|
459
|
+
return (0, exports.DefaultApiFp)(this.configuration).membersIndex(identifier, options).then((request) => request(this.axios, this.basePath));
|
|
451
460
|
}
|
|
452
461
|
/**
|
|
453
462
|
*
|
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/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