ob-bms-sdk 0.0.56 → 0.0.58

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 CHANGED
@@ -949,16 +949,16 @@ export interface ParkingLotData {
949
949
  export interface ParkingRedemptionRateResult {
950
950
  /**
951
951
  *
952
- * @type {number}
952
+ * @type {RateDetail}
953
953
  * @memberof ParkingRedemptionRateResult
954
954
  */
955
- 'code': number;
955
+ 'detail': RateDetail;
956
956
  /**
957
957
  *
958
- * @type {RateDetail}
958
+ * @type {number}
959
959
  * @memberof ParkingRedemptionRateResult
960
960
  */
961
- 'detail': RateDetail;
961
+ 'code': number;
962
962
  }
963
963
  /**
964
964
  *
@@ -968,64 +968,64 @@ export interface ParkingRedemptionRateResult {
968
968
  export interface ParkingTicketResult {
969
969
  /**
970
970
  *
971
- * @type {string}
971
+ * @type {number}
972
972
  * @memberof ParkingTicketResult
973
973
  */
974
- 'id': string;
974
+ 'vehicle_type_id': number;
975
975
  /**
976
976
  *
977
- * @type {string}
977
+ * @type {number}
978
978
  * @memberof ParkingTicketResult
979
979
  */
980
- 'plate_number': string;
980
+ 'member_type_id': number;
981
981
  /**
982
982
  *
983
- * @type {string}
983
+ * @type {RateDetail}
984
984
  * @memberof ParkingTicketResult
985
985
  */
986
- 'ticket_number': string;
986
+ 'rate_detail': RateDetail;
987
987
  /**
988
988
  *
989
989
  * @type {string}
990
990
  * @memberof ParkingTicketResult
991
991
  */
992
- 'vehicle_type': string;
992
+ 'parked_at': string;
993
993
  /**
994
994
  *
995
- * @type {number}
995
+ * @type {string}
996
996
  * @memberof ParkingTicketResult
997
997
  */
998
- 'total_fee': number;
998
+ 'member_id': string;
999
999
  /**
1000
1000
  *
1001
- * @type {string}
1001
+ * @type {number}
1002
1002
  * @memberof ParkingTicketResult
1003
1003
  */
1004
- 'member_id': string;
1004
+ 'total_fee': number;
1005
1005
  /**
1006
1006
  *
1007
1007
  * @type {string}
1008
1008
  * @memberof ParkingTicketResult
1009
1009
  */
1010
- 'parked_at': string;
1010
+ 'vehicle_type': string;
1011
1011
  /**
1012
1012
  *
1013
- * @type {RateDetail}
1013
+ * @type {string}
1014
1014
  * @memberof ParkingTicketResult
1015
1015
  */
1016
- 'rate_detail': RateDetail;
1016
+ 'ticket_number': string;
1017
1017
  /**
1018
1018
  *
1019
- * @type {number}
1019
+ * @type {string}
1020
1020
  * @memberof ParkingTicketResult
1021
1021
  */
1022
- 'member_type_id': number;
1022
+ 'plate_number': string;
1023
1023
  /**
1024
1024
  *
1025
- * @type {number}
1025
+ * @type {string}
1026
1026
  * @memberof ParkingTicketResult
1027
1027
  */
1028
- 'vehicle_type_id': number;
1028
+ 'id': string;
1029
1029
  }
1030
1030
  /**
1031
1031
  *
@@ -2012,6 +2012,68 @@ export interface VisitorScheduleTokens {
2012
2012
  */
2013
2013
  'updated_at'?: string;
2014
2014
  }
2015
+ /**
2016
+ *
2017
+ * @export
2018
+ * @interface VisitorTokenData
2019
+ */
2020
+ export interface VisitorTokenData {
2021
+ /**
2022
+ *
2023
+ * @type {string}
2024
+ * @memberof VisitorTokenData
2025
+ */
2026
+ 'id': string;
2027
+ /**
2028
+ *
2029
+ * @type {string}
2030
+ * @memberof VisitorTokenData
2031
+ */
2032
+ 'token_id': string;
2033
+ /**
2034
+ *
2035
+ * @type {string}
2036
+ * @memberof VisitorTokenData
2037
+ */
2038
+ 'expired_date': string | null;
2039
+ /**
2040
+ *
2041
+ * @type {string}
2042
+ * @memberof VisitorTokenData
2043
+ */
2044
+ 'visitor_schedule_id': string;
2045
+ /**
2046
+ *
2047
+ * @type {string}
2048
+ * @memberof VisitorTokenData
2049
+ */
2050
+ 'uid': string;
2051
+ /**
2052
+ *
2053
+ * @type {string}
2054
+ * @memberof VisitorTokenData
2055
+ */
2056
+ 'created_at': string;
2057
+ /**
2058
+ *
2059
+ * @type {string}
2060
+ * @memberof VisitorTokenData
2061
+ */
2062
+ 'updated_at': string;
2063
+ }
2064
+ /**
2065
+ *
2066
+ * @export
2067
+ * @interface VisitorTokensIndexQuery
2068
+ */
2069
+ export interface VisitorTokensIndexQuery {
2070
+ /**
2071
+ *
2072
+ * @type {string}
2073
+ * @memberof VisitorTokensIndexQuery
2074
+ */
2075
+ 'token_id'?: string;
2076
+ }
2015
2077
  /**
2016
2078
  *
2017
2079
  * @export
@@ -2483,64 +2545,64 @@ export interface WrappedResponseParkingTicketResultArrayData {
2483
2545
  export interface WrappedResponseParkingTicketResultData {
2484
2546
  /**
2485
2547
  *
2486
- * @type {string}
2548
+ * @type {number}
2487
2549
  * @memberof WrappedResponseParkingTicketResultData
2488
2550
  */
2489
- 'id': string;
2551
+ 'vehicle_type_id': number;
2490
2552
  /**
2491
2553
  *
2492
- * @type {string}
2554
+ * @type {number}
2493
2555
  * @memberof WrappedResponseParkingTicketResultData
2494
2556
  */
2495
- 'plate_number': string;
2557
+ 'member_type_id': number;
2496
2558
  /**
2497
2559
  *
2498
- * @type {string}
2560
+ * @type {RateDetail}
2499
2561
  * @memberof WrappedResponseParkingTicketResultData
2500
2562
  */
2501
- 'ticket_number': string;
2563
+ 'rate_detail': RateDetail;
2502
2564
  /**
2503
2565
  *
2504
2566
  * @type {string}
2505
2567
  * @memberof WrappedResponseParkingTicketResultData
2506
2568
  */
2507
- 'vehicle_type': string;
2569
+ 'parked_at': string;
2508
2570
  /**
2509
2571
  *
2510
- * @type {number}
2572
+ * @type {string}
2511
2573
  * @memberof WrappedResponseParkingTicketResultData
2512
2574
  */
2513
- 'total_fee': number;
2575
+ 'member_id': string;
2514
2576
  /**
2515
2577
  *
2516
- * @type {string}
2578
+ * @type {number}
2517
2579
  * @memberof WrappedResponseParkingTicketResultData
2518
2580
  */
2519
- 'member_id': string;
2581
+ 'total_fee': number;
2520
2582
  /**
2521
2583
  *
2522
2584
  * @type {string}
2523
2585
  * @memberof WrappedResponseParkingTicketResultData
2524
2586
  */
2525
- 'parked_at': string;
2587
+ 'vehicle_type': string;
2526
2588
  /**
2527
2589
  *
2528
- * @type {RateDetail}
2590
+ * @type {string}
2529
2591
  * @memberof WrappedResponseParkingTicketResultData
2530
2592
  */
2531
- 'rate_detail': RateDetail;
2593
+ 'ticket_number': string;
2532
2594
  /**
2533
2595
  *
2534
- * @type {number}
2596
+ * @type {string}
2535
2597
  * @memberof WrappedResponseParkingTicketResultData
2536
2598
  */
2537
- 'member_type_id': number;
2599
+ 'plate_number': string;
2538
2600
  /**
2539
2601
  *
2540
- * @type {number}
2602
+ * @type {string}
2541
2603
  * @memberof WrappedResponseParkingTicketResultData
2542
2604
  */
2543
- 'vehicle_type_id': number;
2605
+ 'id': string;
2544
2606
  }
2545
2607
  /**
2546
2608
  *
@@ -2749,6 +2811,26 @@ export interface WrappedResponseUpdateMemberResponseData {
2749
2811
  */
2750
2812
  'result': boolean | null;
2751
2813
  }
2814
+ /**
2815
+ *
2816
+ * @export
2817
+ * @interface WrappedResponseVisitorTokensIndexResponseData
2818
+ */
2819
+ export interface WrappedResponseVisitorTokensIndexResponseData {
2820
+ /**
2821
+ *
2822
+ * @type {WrappedResponseVisitorTokensIndexResponseDataData}
2823
+ * @memberof WrappedResponseVisitorTokensIndexResponseData
2824
+ */
2825
+ 'data': WrappedResponseVisitorTokensIndexResponseDataData | null;
2826
+ }
2827
+ /**
2828
+ *
2829
+ * @export
2830
+ * @interface WrappedResponseVisitorTokensIndexResponseDataData
2831
+ */
2832
+ export interface WrappedResponseVisitorTokensIndexResponseDataData {
2833
+ }
2752
2834
 
2753
2835
  /**
2754
2836
  * DefaultApi - axios parameter creator
@@ -3401,6 +3483,40 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3401
3483
  options: localVarRequestOptions,
3402
3484
  };
3403
3485
  },
3486
+ /**
3487
+ *
3488
+ * @param {string} [tokenId]
3489
+ * @param {*} [options] Override http request option.
3490
+ * @throws {RequiredError}
3491
+ */
3492
+ visitorTokensIndex: async (tokenId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3493
+ const localVarPath = `/visitor_tokens`;
3494
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3495
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3496
+ let baseOptions;
3497
+ if (configuration) {
3498
+ baseOptions = configuration.baseOptions;
3499
+ }
3500
+
3501
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3502
+ const localVarHeaderParameter = {} as any;
3503
+ const localVarQueryParameter = {} as any;
3504
+
3505
+ if (tokenId !== undefined) {
3506
+ localVarQueryParameter['token_id'] = tokenId;
3507
+ }
3508
+
3509
+
3510
+
3511
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3512
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3513
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3514
+
3515
+ return {
3516
+ url: toPathString(localVarUrlObj),
3517
+ options: localVarRequestOptions,
3518
+ };
3519
+ },
3404
3520
  /**
3405
3521
  *
3406
3522
  * @param {CreateVisitorBody} createVisitorBody
@@ -3695,6 +3811,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3695
3811
  const localVarAxiosArgs = await localVarAxiosParamCreator.sync(syncBody, options);
3696
3812
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3697
3813
  },
3814
+ /**
3815
+ *
3816
+ * @param {string} [tokenId]
3817
+ * @param {*} [options] Override http request option.
3818
+ * @throws {RequiredError}
3819
+ */
3820
+ async visitorTokensIndex(tokenId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseVisitorTokensIndexResponseData>> {
3821
+ const localVarAxiosArgs = await localVarAxiosParamCreator.visitorTokensIndex(tokenId, options);
3822
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3823
+ },
3698
3824
  /**
3699
3825
  *
3700
3826
  * @param {CreateVisitorBody} createVisitorBody
@@ -3901,6 +4027,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
3901
4027
  sync(syncBody: SyncBody, options?: any): AxiosPromise<SyncResponse> {
3902
4028
  return localVarFp.sync(syncBody, options).then((request) => request(axios, basePath));
3903
4029
  },
4030
+ /**
4031
+ *
4032
+ * @param {string} [tokenId]
4033
+ * @param {*} [options] Override http request option.
4034
+ * @throws {RequiredError}
4035
+ */
4036
+ visitorTokensIndex(tokenId?: string, options?: any): AxiosPromise<WrappedResponseVisitorTokensIndexResponseData> {
4037
+ return localVarFp.visitorTokensIndex(tokenId, options).then((request) => request(axios, basePath));
4038
+ },
3904
4039
  /**
3905
4040
  *
3906
4041
  * @param {CreateVisitorBody} createVisitorBody
@@ -4138,6 +4273,17 @@ export class DefaultApi extends BaseAPI {
4138
4273
  return DefaultApiFp(this.configuration).sync(syncBody, options).then((request) => request(this.axios, this.basePath));
4139
4274
  }
4140
4275
 
4276
+ /**
4277
+ *
4278
+ * @param {string} [tokenId]
4279
+ * @param {*} [options] Override http request option.
4280
+ * @throws {RequiredError}
4281
+ * @memberof DefaultApi
4282
+ */
4283
+ public visitorTokensIndex(tokenId?: string, options?: AxiosRequestConfig) {
4284
+ return DefaultApiFp(this.configuration).visitorTokensIndex(tokenId, options).then((request) => request(this.axios, this.basePath));
4285
+ }
4286
+
4141
4287
  /**
4142
4288
  *
4143
4289
  * @param {CreateVisitorBody} createVisitorBody
package/dist/api/api.d.ts CHANGED
@@ -947,16 +947,16 @@ export interface ParkingLotData {
947
947
  export interface ParkingRedemptionRateResult {
948
948
  /**
949
949
  *
950
- * @type {number}
950
+ * @type {RateDetail}
951
951
  * @memberof ParkingRedemptionRateResult
952
952
  */
953
- 'code': number;
953
+ 'detail': RateDetail;
954
954
  /**
955
955
  *
956
- * @type {RateDetail}
956
+ * @type {number}
957
957
  * @memberof ParkingRedemptionRateResult
958
958
  */
959
- 'detail': RateDetail;
959
+ 'code': number;
960
960
  }
961
961
  /**
962
962
  *
@@ -966,64 +966,64 @@ export interface ParkingRedemptionRateResult {
966
966
  export interface ParkingTicketResult {
967
967
  /**
968
968
  *
969
- * @type {string}
969
+ * @type {number}
970
970
  * @memberof ParkingTicketResult
971
971
  */
972
- 'id': string;
972
+ 'vehicle_type_id': number;
973
973
  /**
974
974
  *
975
- * @type {string}
975
+ * @type {number}
976
976
  * @memberof ParkingTicketResult
977
977
  */
978
- 'plate_number': string;
978
+ 'member_type_id': number;
979
979
  /**
980
980
  *
981
- * @type {string}
981
+ * @type {RateDetail}
982
982
  * @memberof ParkingTicketResult
983
983
  */
984
- 'ticket_number': string;
984
+ 'rate_detail': RateDetail;
985
985
  /**
986
986
  *
987
987
  * @type {string}
988
988
  * @memberof ParkingTicketResult
989
989
  */
990
- 'vehicle_type': string;
990
+ 'parked_at': string;
991
991
  /**
992
992
  *
993
- * @type {number}
993
+ * @type {string}
994
994
  * @memberof ParkingTicketResult
995
995
  */
996
- 'total_fee': number;
996
+ 'member_id': string;
997
997
  /**
998
998
  *
999
- * @type {string}
999
+ * @type {number}
1000
1000
  * @memberof ParkingTicketResult
1001
1001
  */
1002
- 'member_id': string;
1002
+ 'total_fee': number;
1003
1003
  /**
1004
1004
  *
1005
1005
  * @type {string}
1006
1006
  * @memberof ParkingTicketResult
1007
1007
  */
1008
- 'parked_at': string;
1008
+ 'vehicle_type': string;
1009
1009
  /**
1010
1010
  *
1011
- * @type {RateDetail}
1011
+ * @type {string}
1012
1012
  * @memberof ParkingTicketResult
1013
1013
  */
1014
- 'rate_detail': RateDetail;
1014
+ 'ticket_number': string;
1015
1015
  /**
1016
1016
  *
1017
- * @type {number}
1017
+ * @type {string}
1018
1018
  * @memberof ParkingTicketResult
1019
1019
  */
1020
- 'member_type_id': number;
1020
+ 'plate_number': string;
1021
1021
  /**
1022
1022
  *
1023
- * @type {number}
1023
+ * @type {string}
1024
1024
  * @memberof ParkingTicketResult
1025
1025
  */
1026
- 'vehicle_type_id': number;
1026
+ 'id': string;
1027
1027
  }
1028
1028
  /**
1029
1029
  *
@@ -2001,6 +2001,68 @@ export interface VisitorScheduleTokens {
2001
2001
  */
2002
2002
  'updated_at'?: string;
2003
2003
  }
2004
+ /**
2005
+ *
2006
+ * @export
2007
+ * @interface VisitorTokenData
2008
+ */
2009
+ export interface VisitorTokenData {
2010
+ /**
2011
+ *
2012
+ * @type {string}
2013
+ * @memberof VisitorTokenData
2014
+ */
2015
+ 'id': string;
2016
+ /**
2017
+ *
2018
+ * @type {string}
2019
+ * @memberof VisitorTokenData
2020
+ */
2021
+ 'token_id': string;
2022
+ /**
2023
+ *
2024
+ * @type {string}
2025
+ * @memberof VisitorTokenData
2026
+ */
2027
+ 'expired_date': string | null;
2028
+ /**
2029
+ *
2030
+ * @type {string}
2031
+ * @memberof VisitorTokenData
2032
+ */
2033
+ 'visitor_schedule_id': string;
2034
+ /**
2035
+ *
2036
+ * @type {string}
2037
+ * @memberof VisitorTokenData
2038
+ */
2039
+ 'uid': string;
2040
+ /**
2041
+ *
2042
+ * @type {string}
2043
+ * @memberof VisitorTokenData
2044
+ */
2045
+ 'created_at': string;
2046
+ /**
2047
+ *
2048
+ * @type {string}
2049
+ * @memberof VisitorTokenData
2050
+ */
2051
+ 'updated_at': string;
2052
+ }
2053
+ /**
2054
+ *
2055
+ * @export
2056
+ * @interface VisitorTokensIndexQuery
2057
+ */
2058
+ export interface VisitorTokensIndexQuery {
2059
+ /**
2060
+ *
2061
+ * @type {string}
2062
+ * @memberof VisitorTokensIndexQuery
2063
+ */
2064
+ 'token_id'?: string;
2065
+ }
2004
2066
  /**
2005
2067
  *
2006
2068
  * @export
@@ -2469,64 +2531,64 @@ export interface WrappedResponseParkingTicketResultArrayData {
2469
2531
  export interface WrappedResponseParkingTicketResultData {
2470
2532
  /**
2471
2533
  *
2472
- * @type {string}
2534
+ * @type {number}
2473
2535
  * @memberof WrappedResponseParkingTicketResultData
2474
2536
  */
2475
- 'id': string;
2537
+ 'vehicle_type_id': number;
2476
2538
  /**
2477
2539
  *
2478
- * @type {string}
2540
+ * @type {number}
2479
2541
  * @memberof WrappedResponseParkingTicketResultData
2480
2542
  */
2481
- 'plate_number': string;
2543
+ 'member_type_id': number;
2482
2544
  /**
2483
2545
  *
2484
- * @type {string}
2546
+ * @type {RateDetail}
2485
2547
  * @memberof WrappedResponseParkingTicketResultData
2486
2548
  */
2487
- 'ticket_number': string;
2549
+ 'rate_detail': RateDetail;
2488
2550
  /**
2489
2551
  *
2490
2552
  * @type {string}
2491
2553
  * @memberof WrappedResponseParkingTicketResultData
2492
2554
  */
2493
- 'vehicle_type': string;
2555
+ 'parked_at': string;
2494
2556
  /**
2495
2557
  *
2496
- * @type {number}
2558
+ * @type {string}
2497
2559
  * @memberof WrappedResponseParkingTicketResultData
2498
2560
  */
2499
- 'total_fee': number;
2561
+ 'member_id': string;
2500
2562
  /**
2501
2563
  *
2502
- * @type {string}
2564
+ * @type {number}
2503
2565
  * @memberof WrappedResponseParkingTicketResultData
2504
2566
  */
2505
- 'member_id': string;
2567
+ 'total_fee': number;
2506
2568
  /**
2507
2569
  *
2508
2570
  * @type {string}
2509
2571
  * @memberof WrappedResponseParkingTicketResultData
2510
2572
  */
2511
- 'parked_at': string;
2573
+ 'vehicle_type': string;
2512
2574
  /**
2513
2575
  *
2514
- * @type {RateDetail}
2576
+ * @type {string}
2515
2577
  * @memberof WrappedResponseParkingTicketResultData
2516
2578
  */
2517
- 'rate_detail': RateDetail;
2579
+ 'ticket_number': string;
2518
2580
  /**
2519
2581
  *
2520
- * @type {number}
2582
+ * @type {string}
2521
2583
  * @memberof WrappedResponseParkingTicketResultData
2522
2584
  */
2523
- 'member_type_id': number;
2585
+ 'plate_number': string;
2524
2586
  /**
2525
2587
  *
2526
- * @type {number}
2588
+ * @type {string}
2527
2589
  * @memberof WrappedResponseParkingTicketResultData
2528
2590
  */
2529
- 'vehicle_type_id': number;
2591
+ 'id': string;
2530
2592
  }
2531
2593
  /**
2532
2594
  *
@@ -2732,6 +2794,26 @@ export interface WrappedResponseUpdateMemberResponseData {
2732
2794
  */
2733
2795
  'result': boolean | null;
2734
2796
  }
2797
+ /**
2798
+ *
2799
+ * @export
2800
+ * @interface WrappedResponseVisitorTokensIndexResponseData
2801
+ */
2802
+ export interface WrappedResponseVisitorTokensIndexResponseData {
2803
+ /**
2804
+ *
2805
+ * @type {WrappedResponseVisitorTokensIndexResponseDataData}
2806
+ * @memberof WrappedResponseVisitorTokensIndexResponseData
2807
+ */
2808
+ 'data': WrappedResponseVisitorTokensIndexResponseDataData | null;
2809
+ }
2810
+ /**
2811
+ *
2812
+ * @export
2813
+ * @interface WrappedResponseVisitorTokensIndexResponseDataData
2814
+ */
2815
+ export interface WrappedResponseVisitorTokensIndexResponseDataData {
2816
+ }
2735
2817
  /**
2736
2818
  * DefaultApi - axios parameter creator
2737
2819
  * @export
@@ -2869,6 +2951,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2869
2951
  * @throws {RequiredError}
2870
2952
  */
2871
2953
  sync: (syncBody: SyncBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2954
+ /**
2955
+ *
2956
+ * @param {string} [tokenId]
2957
+ * @param {*} [options] Override http request option.
2958
+ * @throws {RequiredError}
2959
+ */
2960
+ visitorTokensIndex: (tokenId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2872
2961
  /**
2873
2962
  *
2874
2963
  * @param {CreateVisitorBody} createVisitorBody
@@ -3028,6 +3117,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3028
3117
  * @throws {RequiredError}
3029
3118
  */
3030
3119
  sync(syncBody: SyncBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncResponse>>;
3120
+ /**
3121
+ *
3122
+ * @param {string} [tokenId]
3123
+ * @param {*} [options] Override http request option.
3124
+ * @throws {RequiredError}
3125
+ */
3126
+ visitorTokensIndex(tokenId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseVisitorTokensIndexResponseData>>;
3031
3127
  /**
3032
3128
  *
3033
3129
  * @param {CreateVisitorBody} createVisitorBody
@@ -3187,6 +3283,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3187
3283
  * @throws {RequiredError}
3188
3284
  */
3189
3285
  sync(syncBody: SyncBody, options?: any): AxiosPromise<SyncResponse>;
3286
+ /**
3287
+ *
3288
+ * @param {string} [tokenId]
3289
+ * @param {*} [options] Override http request option.
3290
+ * @throws {RequiredError}
3291
+ */
3292
+ visitorTokensIndex(tokenId?: string, options?: any): AxiosPromise<WrappedResponseVisitorTokensIndexResponseData>;
3190
3293
  /**
3191
3294
  *
3192
3295
  * @param {CreateVisitorBody} createVisitorBody
@@ -3365,6 +3468,14 @@ export declare class DefaultApi extends BaseAPI {
3365
3468
  * @memberof DefaultApi
3366
3469
  */
3367
3470
  sync(syncBody: SyncBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncResponse, any>>;
3471
+ /**
3472
+ *
3473
+ * @param {string} [tokenId]
3474
+ * @param {*} [options] Override http request option.
3475
+ * @throws {RequiredError}
3476
+ * @memberof DefaultApi
3477
+ */
3478
+ visitorTokensIndex(tokenId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseVisitorTokensIndexResponseData, any>>;
3368
3479
  /**
3369
3480
  *
3370
3481
  * @param {CreateVisitorBody} createVisitorBody
package/dist/api/api.js CHANGED
@@ -597,6 +597,34 @@ const DefaultApiAxiosParamCreator = function (configuration) {
597
597
  options: localVarRequestOptions,
598
598
  };
599
599
  }),
600
+ /**
601
+ *
602
+ * @param {string} [tokenId]
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ visitorTokensIndex: (tokenId, options = {}) => __awaiter(this, void 0, void 0, function* () {
607
+ const localVarPath = `/visitor_tokens`;
608
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
609
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
610
+ let baseOptions;
611
+ if (configuration) {
612
+ baseOptions = configuration.baseOptions;
613
+ }
614
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
615
+ const localVarHeaderParameter = {};
616
+ const localVarQueryParameter = {};
617
+ if (tokenId !== undefined) {
618
+ localVarQueryParameter['token_id'] = tokenId;
619
+ }
620
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
621
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
622
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
623
+ return {
624
+ url: (0, common_1.toPathString)(localVarUrlObj),
625
+ options: localVarRequestOptions,
626
+ };
627
+ }),
600
628
  /**
601
629
  *
602
630
  * @param {CreateVisitorBody} createVisitorBody
@@ -909,6 +937,18 @@ const DefaultApiFp = function (configuration) {
909
937
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
910
938
  });
911
939
  },
940
+ /**
941
+ *
942
+ * @param {string} [tokenId]
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ */
946
+ visitorTokensIndex(tokenId, options) {
947
+ return __awaiter(this, void 0, void 0, function* () {
948
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.visitorTokensIndex(tokenId, options);
949
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
950
+ });
951
+ },
912
952
  /**
913
953
  *
914
954
  * @param {CreateVisitorBody} createVisitorBody
@@ -1121,6 +1161,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1121
1161
  sync(syncBody, options) {
1122
1162
  return localVarFp.sync(syncBody, options).then((request) => request(axios, basePath));
1123
1163
  },
1164
+ /**
1165
+ *
1166
+ * @param {string} [tokenId]
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ visitorTokensIndex(tokenId, options) {
1171
+ return localVarFp.visitorTokensIndex(tokenId, options).then((request) => request(axios, basePath));
1172
+ },
1124
1173
  /**
1125
1174
  *
1126
1175
  * @param {CreateVisitorBody} createVisitorBody
@@ -1341,6 +1390,16 @@ class DefaultApi extends base_1.BaseAPI {
1341
1390
  sync(syncBody, options) {
1342
1391
  return (0, exports.DefaultApiFp)(this.configuration).sync(syncBody, options).then((request) => request(this.axios, this.basePath));
1343
1392
  }
1393
+ /**
1394
+ *
1395
+ * @param {string} [tokenId]
1396
+ * @param {*} [options] Override http request option.
1397
+ * @throws {RequiredError}
1398
+ * @memberof DefaultApi
1399
+ */
1400
+ visitorTokensIndex(tokenId, options) {
1401
+ return (0, exports.DefaultApiFp)(this.configuration).visitorTokensIndex(tokenId, options).then((request) => request(this.axios, this.basePath));
1402
+ }
1344
1403
  /**
1345
1404
  *
1346
1405
  * @param {CreateVisitorBody} createVisitorBody
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
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,15 @@
1
+ import * as OB_BMS_SDK from './dist';
2
+
3
+ // OB_BMS_SDK.setAcessToken('789');
4
+ OB_BMS_SDK.setBaseUrl('http://dev.glorymtel.xyz/ob-bms');
5
+ OB_BMS_SDK.setAcessToken(
6
+ 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJpYXQiOjE2OTg5MzU2ODcsImV4cCI6MTcwMTUyNzY4NywicGVybWlzc2lvbiI6W3siaWQiOiJmY2Q1NDZmYy1lNThmLTQ2MjctOTU5Yy1jNWFlYTljMGQ0ODMiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ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JyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.tfqYJop4iJNlIbBVztf7DFfVhaYAFnUGDhLjik2OGA4',
7
+ );
8
+ (async () => {
9
+ try {
10
+ const res = await OB_BMS_SDK.client.membersIndex('t.shin@pjoe.com', {});
11
+ console.dir(res.data, { depth: null });
12
+ } catch (err) {
13
+ console.log(err);
14
+ }
15
+ })();