ob-bms-sdk 0.0.29 → 0.0.31

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
@@ -739,7 +739,7 @@ export interface ParkingLotData {
739
739
  * @type {string}
740
740
  * @memberof ParkingLotData
741
741
  */
742
- 'zone_id'?: string;
742
+ 'area_id'?: string;
743
743
  /**
744
744
  *
745
745
  * @type {Array<SpotTypeData>}
@@ -1794,6 +1794,26 @@ export interface WrappedResponseFindMemberResultArrayOrNull {
1794
1794
  */
1795
1795
  export interface WrappedResponseFindMemberResultArrayOrNullData {
1796
1796
  }
1797
+ /**
1798
+ *
1799
+ * @export
1800
+ * @interface WrappedResponseLocationIndexResponse
1801
+ */
1802
+ export interface WrappedResponseLocationIndexResponse {
1803
+ /**
1804
+ *
1805
+ * @type {WrappedResponseLocationIndexResponseData}
1806
+ * @memberof WrappedResponseLocationIndexResponse
1807
+ */
1808
+ 'data': WrappedResponseLocationIndexResponseData | null;
1809
+ }
1810
+ /**
1811
+ *
1812
+ * @export
1813
+ * @interface WrappedResponseLocationIndexResponseData
1814
+ */
1815
+ export interface WrappedResponseLocationIndexResponseData {
1816
+ }
1797
1817
  /**
1798
1818
  *
1799
1819
  * @export
@@ -2250,6 +2270,35 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2250
2270
  options: localVarRequestOptions,
2251
2271
  };
2252
2272
  },
2273
+ /**
2274
+ *
2275
+ * @param {*} [options] Override http request option.
2276
+ * @throws {RequiredError}
2277
+ */
2278
+ locationsIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2279
+ const localVarPath = `/locations`;
2280
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2281
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2282
+ let baseOptions;
2283
+ if (configuration) {
2284
+ baseOptions = configuration.baseOptions;
2285
+ }
2286
+
2287
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2288
+ const localVarHeaderParameter = {} as any;
2289
+ const localVarQueryParameter = {} as any;
2290
+
2291
+
2292
+
2293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2295
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2296
+
2297
+ return {
2298
+ url: toPathString(localVarUrlObj),
2299
+ options: localVarRequestOptions,
2300
+ };
2301
+ },
2253
2302
  /**
2254
2303
  *
2255
2304
  * @param {string} memberId
@@ -2693,6 +2742,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2693
2742
  const localVarAxiosArgs = await localVarAxiosParamCreator.integrationsFsMembersDelete(destroyFSMembers, options);
2694
2743
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2695
2744
  },
2745
+ /**
2746
+ *
2747
+ * @param {*} [options] Override http request option.
2748
+ * @throws {RequiredError}
2749
+ */
2750
+ async locationsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseLocationIndexResponse>> {
2751
+ const localVarAxiosArgs = await localVarAxiosParamCreator.locationsIndex(options);
2752
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2753
+ },
2696
2754
  /**
2697
2755
  *
2698
2756
  * @param {string} memberId
@@ -2846,6 +2904,14 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2846
2904
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<DestroyMembersResponse> {
2847
2905
  return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
2848
2906
  },
2907
+ /**
2908
+ *
2909
+ * @param {*} [options] Override http request option.
2910
+ * @throws {RequiredError}
2911
+ */
2912
+ locationsIndex(options?: any): AxiosPromise<WrappedResponseLocationIndexResponse> {
2913
+ return localVarFp.locationsIndex(options).then((request) => request(axios, basePath));
2914
+ },
2849
2915
  /**
2850
2916
  *
2851
2917
  * @param {string} memberId
@@ -2994,6 +3060,16 @@ export class DefaultApi extends BaseAPI {
2994
3060
  return DefaultApiFp(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
2995
3061
  }
2996
3062
 
3063
+ /**
3064
+ *
3065
+ * @param {*} [options] Override http request option.
3066
+ * @throws {RequiredError}
3067
+ * @memberof DefaultApi
3068
+ */
3069
+ public locationsIndex(options?: AxiosRequestConfig) {
3070
+ return DefaultApiFp(this.configuration).locationsIndex(options).then((request) => request(this.axios, this.basePath));
3071
+ }
3072
+
2997
3073
  /**
2998
3074
  *
2999
3075
  * @param {string} memberId
package/dist/api/api.d.ts CHANGED
@@ -734,7 +734,7 @@ export interface ParkingLotData {
734
734
  * @type {string}
735
735
  * @memberof ParkingLotData
736
736
  */
737
- 'zone_id'?: string;
737
+ 'area_id'?: string;
738
738
  /**
739
739
  *
740
740
  * @type {Array<SpotTypeData>}
@@ -1780,6 +1780,26 @@ export interface WrappedResponseFindMemberResultArrayOrNull {
1780
1780
  */
1781
1781
  export interface WrappedResponseFindMemberResultArrayOrNullData {
1782
1782
  }
1783
+ /**
1784
+ *
1785
+ * @export
1786
+ * @interface WrappedResponseLocationIndexResponse
1787
+ */
1788
+ export interface WrappedResponseLocationIndexResponse {
1789
+ /**
1790
+ *
1791
+ * @type {WrappedResponseLocationIndexResponseData}
1792
+ * @memberof WrappedResponseLocationIndexResponse
1793
+ */
1794
+ 'data': WrappedResponseLocationIndexResponseData | null;
1795
+ }
1796
+ /**
1797
+ *
1798
+ * @export
1799
+ * @interface WrappedResponseLocationIndexResponseData
1800
+ */
1801
+ export interface WrappedResponseLocationIndexResponseData {
1802
+ }
1783
1803
  /**
1784
1804
  *
1785
1805
  * @export
@@ -2144,6 +2164,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2144
2164
  * @throws {RequiredError}
2145
2165
  */
2146
2166
  integrationsFsMembersDelete: (destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2167
+ /**
2168
+ *
2169
+ * @param {*} [options] Override http request option.
2170
+ * @throws {RequiredError}
2171
+ */
2172
+ locationsIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
2147
2173
  /**
2148
2174
  *
2149
2175
  * @param {string} memberId
@@ -2254,6 +2280,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2254
2280
  * @throws {RequiredError}
2255
2281
  */
2256
2282
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DestroyMembersResponse>>;
2283
+ /**
2284
+ *
2285
+ * @param {*} [options] Override http request option.
2286
+ * @throws {RequiredError}
2287
+ */
2288
+ locationsIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseLocationIndexResponse>>;
2257
2289
  /**
2258
2290
  *
2259
2291
  * @param {string} memberId
@@ -2364,6 +2396,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2364
2396
  * @throws {RequiredError}
2365
2397
  */
2366
2398
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: any): AxiosPromise<DestroyMembersResponse>;
2399
+ /**
2400
+ *
2401
+ * @param {*} [options] Override http request option.
2402
+ * @throws {RequiredError}
2403
+ */
2404
+ locationsIndex(options?: any): AxiosPromise<WrappedResponseLocationIndexResponse>;
2367
2405
  /**
2368
2406
  *
2369
2407
  * @param {string} memberId
@@ -2479,6 +2517,13 @@ export declare class DefaultApi extends BaseAPI {
2479
2517
  * @memberof DefaultApi
2480
2518
  */
2481
2519
  integrationsFsMembersDelete(destroyFSMembers: DestroyFSMembers, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DestroyMembersResponse, any>>;
2520
+ /**
2521
+ *
2522
+ * @param {*} [options] Override http request option.
2523
+ * @throws {RequiredError}
2524
+ * @memberof DefaultApi
2525
+ */
2526
+ locationsIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseLocationIndexResponse, any>>;
2482
2527
  /**
2483
2528
  *
2484
2529
  * @param {string} memberId
package/dist/api/api.js CHANGED
@@ -147,6 +147,30 @@ const DefaultApiAxiosParamCreator = function (configuration) {
147
147
  options: localVarRequestOptions,
148
148
  };
149
149
  }),
150
+ /**
151
+ *
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ locationsIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
156
+ const localVarPath = `/locations`;
157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
159
+ let baseOptions;
160
+ if (configuration) {
161
+ baseOptions = configuration.baseOptions;
162
+ }
163
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
164
+ const localVarHeaderParameter = {};
165
+ const localVarQueryParameter = {};
166
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
169
+ return {
170
+ url: (0, common_1.toPathString)(localVarUrlObj),
171
+ options: localVarRequestOptions,
172
+ };
173
+ }),
150
174
  /**
151
175
  *
152
176
  * @param {string} memberId
@@ -531,6 +555,17 @@ const DefaultApiFp = function (configuration) {
531
555
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
532
556
  });
533
557
  },
558
+ /**
559
+ *
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ locationsIndex(options) {
564
+ return __awaiter(this, void 0, void 0, function* () {
565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.locationsIndex(options);
566
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
567
+ });
568
+ },
534
569
  /**
535
570
  *
536
571
  * @param {string} memberId
@@ -706,6 +741,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
706
741
  integrationsFsMembersDelete(destroyFSMembers, options) {
707
742
  return localVarFp.integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(axios, basePath));
708
743
  },
744
+ /**
745
+ *
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ locationsIndex(options) {
750
+ return localVarFp.locationsIndex(options).then((request) => request(axios, basePath));
751
+ },
709
752
  /**
710
753
  *
711
754
  * @param {string} memberId
@@ -851,6 +894,15 @@ class DefaultApi extends base_1.BaseAPI {
851
894
  integrationsFsMembersDelete(destroyFSMembers, options) {
852
895
  return (0, exports.DefaultApiFp)(this.configuration).integrationsFsMembersDelete(destroyFSMembers, options).then((request) => request(this.axios, this.basePath));
853
896
  }
897
+ /**
898
+ *
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ * @memberof DefaultApi
902
+ */
903
+ locationsIndex(options) {
904
+ return (0, exports.DefaultApiFp)(this.configuration).locationsIndex(options).then((request) => request(this.axios, this.basePath));
905
+ }
854
906
  /**
855
907
  *
856
908
  * @param {string} memberId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"
package/test.ts DELETED
@@ -1,15 +0,0 @@
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 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ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lMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.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
- })();