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.
@@ -1,5 +1,6 @@
1
1
  .gitignore
2
2
  .npmignore
3
+ .openapi-generator-ignore
3
4
  api.ts
4
5
  base.ts
5
6
  common.ts
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 {CreateFSMembersBody} createFSMembersBody
397
+ * @param {any} body
359
398
  * @param {*} [options] Override http request option.
360
399
  * @throws {RequiredError}
361
400
  */
362
- create: async (createFSMembersBody: CreateFSMembersBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
363
- // verify required parameter 'createFSMembersBody' is not null or undefined
364
- assertParamExists('create', 'createFSMembersBody', createFSMembersBody)
365
- const localVarPath = `/integrations/fs/members`;
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(createFSMembersBody, localVarRequestOptions, configuration)
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 {any} body
432
+ * @param {CreateFSMembersBody} createFSMembersBody
394
433
  * @param {*} [options] Override http request option.
395
434
  * @throws {RequiredError}
396
435
  */
397
- create_1: async (body: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
398
- // verify required parameter 'body' is not null or undefined
399
- assertParamExists('create_1', 'body', body)
400
- const localVarPath = `/integrations/fs/webhook`;
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(body, localVarRequestOptions, configuration)
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
- destroy: async (destroyFSMembers: DestroyFSMembers, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
471
+ integrationsFsMembersDelete: async (destroyFSMembers: DestroyFSMembers, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
433
472
  // verify required parameter 'destroyFSMembers' is not null or undefined
434
- assertParamExists('destroy', 'destroyFSMembers', destroyFSMembers)
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 {CreateFSMembersBody} createFSMembersBody
651
+ * @param {any} body
606
652
  * @param {*} [options] Override http request option.
607
653
  * @throws {RequiredError}
608
654
  */
609
- async create(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMemberResult>> {
610
- const localVarAxiosArgs = await localVarAxiosParamCreator.create(createFSMembersBody, options);
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 {any} body
661
+ * @param {CreateFSMembersBody} createFSMembersBody
616
662
  * @param {*} [options] Override http request option.
617
663
  * @throws {RequiredError}
618
664
  */
619
- async create_1(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
620
- const localVarAxiosArgs = await localVarAxiosParamCreator.create_1(body, options);
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 destroy(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
630
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroy(destroyFSMembers, options);
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<void>> {
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 {CreateFSMembersBody} createFSMembersBody
731
+ * @param {any} body
685
732
  * @param {*} [options] Override http request option.
686
733
  * @throws {RequiredError}
687
734
  */
688
- create(createFSMembersBody: CreateFSMembersBody, options?: any): AxiosPromise<CreateMemberResult> {
689
- return localVarFp.create(createFSMembersBody, options).then((request) => request(axios, basePath));
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 {any} body
740
+ * @param {CreateFSMembersBody} createFSMembersBody
694
741
  * @param {*} [options] Override http request option.
695
742
  * @throws {RequiredError}
696
743
  */
697
- create_1(body: any, options?: any): AxiosPromise<void> {
698
- return localVarFp.create_1(body, options).then((request) => request(axios, basePath));
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
- destroy(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<void> {
707
- return localVarFp.destroy(destroyFSMembers, options).then((request) => request(axios, basePath));
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<void> {
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 {CreateFSMembersBody} createFSMembersBody
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(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig) {
762
- return DefaultApiFp(this.configuration).create(createFSMembersBody, options).then((request) => request(this.axios, this.basePath));
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 {any} body
815
+ * @param {CreateFSMembersBody} createFSMembersBody
768
816
  * @param {*} [options] Override http request option.
769
817
  * @throws {RequiredError}
770
818
  * @memberof DefaultApi
771
819
  */
772
- public create_1(body: any, options?: AxiosRequestConfig) {
773
- return DefaultApiFp(this.configuration).create_1(body, options).then((request) => request(this.axios, this.basePath));
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 destroy(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) {
784
- return DefaultApiFp(this.configuration).destroy(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
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 {CreateFSMembersBody} createFSMembersBody
385
+ * @param {any} body
347
386
  * @param {*} [options] Override http request option.
348
387
  * @throws {RequiredError}
349
388
  */
350
- create: (createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
389
+ create: (body: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
351
390
  /**
352
391
  *
353
- * @param {any} body
392
+ * @param {CreateFSMembersBody} createFSMembersBody
354
393
  * @param {*} [options] Override http request option.
355
394
  * @throws {RequiredError}
356
395
  */
357
- create_1: (body: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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
- destroy: (destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) => Promise<RequestArgs>;
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 {CreateFSMembersBody} createFSMembersBody
440
+ * @param {any} body
401
441
  * @param {*} [options] Override http request option.
402
442
  * @throws {RequiredError}
403
443
  */
404
- create(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMemberResult>>;
444
+ create(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
405
445
  /**
406
446
  *
407
- * @param {any} body
447
+ * @param {CreateFSMembersBody} createFSMembersBody
408
448
  * @param {*} [options] Override http request option.
409
449
  * @throws {RequiredError}
410
450
  */
411
- create_1(body: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
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
- destroy(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
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<void>>;
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 {CreateFSMembersBody} createFSMembersBody
495
+ * @param {any} body
455
496
  * @param {*} [options] Override http request option.
456
497
  * @throws {RequiredError}
457
498
  */
458
- create(createFSMembersBody: CreateFSMembersBody, options?: any): AxiosPromise<CreateMemberResult>;
499
+ create(body: any, options?: any): AxiosPromise<void>;
459
500
  /**
460
501
  *
461
- * @param {any} body
502
+ * @param {CreateFSMembersBody} createFSMembersBody
462
503
  * @param {*} [options] Override http request option.
463
504
  * @throws {RequiredError}
464
505
  */
465
- create_1(body: any, options?: any): AxiosPromise<void>;
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
- destroy(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<void>;
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<void>;
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 {CreateFSMembersBody} createFSMembersBody
552
+ * @param {any} body
511
553
  * @param {*} [options] Override http request option.
512
554
  * @throws {RequiredError}
513
555
  * @memberof DefaultApi
514
556
  */
515
- create(createFSMembersBody: CreateFSMembersBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateMemberResult, any>>;
557
+ create(body: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
516
558
  /**
517
559
  *
518
- * @param {any} body
560
+ * @param {CreateFSMembersBody} createFSMembersBody
519
561
  * @param {*} [options] Override http request option.
520
562
  * @throws {RequiredError}
521
563
  * @memberof DefaultApi
522
564
  */
523
- create_1(body: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
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
- destroy(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
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<void, any>>;
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 {CreateFSMembersBody} createFSMembersBody
43
+ * @param {any} body
44
44
  * @param {*} [options] Override http request option.
45
45
  * @throws {RequiredError}
46
46
  */
47
- create: (createFSMembersBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
48
- // verify required parameter 'createFSMembersBody' is not null or undefined
49
- (0, common_1.assertParamExists)('create', 'createFSMembersBody', createFSMembersBody);
50
- const localVarPath = `/integrations/fs/members`;
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)(createFSMembersBody, localVarRequestOptions, configuration);
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 {any} body
72
+ * @param {CreateFSMembersBody} createFSMembersBody
73
73
  * @param {*} [options] Override http request option.
74
74
  * @throws {RequiredError}
75
75
  */
76
- create_1: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
77
- // verify required parameter 'body' is not null or undefined
78
- (0, common_1.assertParamExists)('create_1', 'body', body);
79
- const localVarPath = `/integrations/fs/webhook`;
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)(body, localVarRequestOptions, configuration);
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
- destroy: (destroyFSMembers, options = {}) => __awaiter(this, void 0, void 0, function* () {
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)('destroy', 'destroyFSMembers', destroyFSMembers);
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 {CreateFSMembersBody} createFSMembersBody
256
+ * @param {any} body
251
257
  * @param {*} [options] Override http request option.
252
258
  * @throws {RequiredError}
253
259
  */
254
- create(createFSMembersBody, options) {
260
+ create(body, options) {
255
261
  return __awaiter(this, void 0, void 0, function* () {
256
- const localVarAxiosArgs = yield localVarAxiosParamCreator.create(createFSMembersBody, options);
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 {any} body
268
+ * @param {CreateFSMembersBody} createFSMembersBody
263
269
  * @param {*} [options] Override http request option.
264
270
  * @throws {RequiredError}
265
271
  */
266
- create_1(body, options) {
272
+ integrationsFsMembersCreate(createFSMembersBody, options) {
267
273
  return __awaiter(this, void 0, void 0, function* () {
268
- const localVarAxiosArgs = yield localVarAxiosParamCreator.create_1(body, options);
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
- destroy(destroyFSMembers, options) {
284
+ integrationsFsMembersDelete(destroyFSMembers, options) {
279
285
  return __awaiter(this, void 0, void 0, function* () {
280
- const localVarAxiosArgs = yield localVarAxiosParamCreator.destroy(destroyFSMembers, options);
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 {CreateFSMembersBody} createFSMembersBody
350
+ * @param {any} body
344
351
  * @param {*} [options] Override http request option.
345
352
  * @throws {RequiredError}
346
353
  */
347
- create(createFSMembersBody, options) {
348
- return localVarFp.create(createFSMembersBody, options).then((request) => request(axios, basePath));
354
+ create(body, options) {
355
+ return localVarFp.create(body, options).then((request) => request(axios, basePath));
349
356
  },
350
357
  /**
351
358
  *
352
- * @param {any} body
359
+ * @param {CreateFSMembersBody} createFSMembersBody
353
360
  * @param {*} [options] Override http request option.
354
361
  * @throws {RequiredError}
355
362
  */
356
- create_1(body, options) {
357
- return localVarFp.create_1(body, options).then((request) => request(axios, basePath));
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
- destroy(destroyFSMembers, options) {
366
- return localVarFp.destroy(destroyFSMembers, options).then((request) => request(axios, basePath));
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 {CreateFSMembersBody} createFSMembersBody
423
+ * @param {any} body
416
424
  * @param {*} [options] Override http request option.
417
425
  * @throws {RequiredError}
418
426
  * @memberof DefaultApi
419
427
  */
420
- create(createFSMembersBody, options) {
421
- return (0, exports.DefaultApiFp)(this.configuration).create(createFSMembersBody, options).then((request) => request(this.axios, this.basePath));
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 {any} body
433
+ * @param {CreateFSMembersBody} createFSMembersBody
426
434
  * @param {*} [options] Override http request option.
427
435
  * @throws {RequiredError}
428
436
  * @memberof DefaultApi
429
437
  */
430
- create_1(body, options) {
431
- return (0, exports.DefaultApiFp)(this.configuration).create_1(body, options).then((request) => request(this.axios, this.basePath));
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
- destroy(destroyFSMembers, options) {
441
- return (0, exports.DefaultApiFp)(this.configuration).destroy(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
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 apiClient: DefaultApi;
3
- export default apiClient;
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 apiClient = new api_1.DefaultApi(undefined, process.env['OB_BMS_URL'] || 'http://localhost:3000');
5
- exports.default = apiClient;
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 apiClient = new DefaultApi(undefined, process.env['OB_BMS_URL'] || 'http://localhost:3000');
4
+ const axiosInstance = axios.create();
4
5
 
5
- export default apiClient;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"
package/test.ts ADDED
@@ -0,0 +1,7 @@
1
+ import * as OB_BMS_SDK from './dist';
2
+
3
+ OB_BMS_SDK.setAcessToken('123');
4
+
5
+ (async () => {
6
+ OB_BMS_SDK.client.visitorsShow('1');
7
+ })();
package/tsconfig.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "resolveJsonModule": true
18
18
  },
19
19
  "include": ["./**/*.ts"],
20
- "exclude": ["node_modules", "dist"]
20
+ "exclude": ["node_modules", "dist", "test.ts"]
21
21
  }