ob-bms-sdk 0.0.46 → 0.0.48
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 +73 -50
- package/dist/api/api.d.ts +63 -48
- package/dist/api/api.js +21 -7
- package/package.json +1 -1
- package/test.ts +15 -0
package/api/api.ts
CHANGED
|
@@ -954,6 +954,24 @@ export interface ParkingTicketResult {
|
|
|
954
954
|
* @memberof ParkingTicketResult
|
|
955
955
|
*/
|
|
956
956
|
'plate_number': string;
|
|
957
|
+
/**
|
|
958
|
+
*
|
|
959
|
+
* @type {string}
|
|
960
|
+
* @memberof ParkingTicketResult
|
|
961
|
+
*/
|
|
962
|
+
'ticket_number': string;
|
|
963
|
+
/**
|
|
964
|
+
*
|
|
965
|
+
* @type {string}
|
|
966
|
+
* @memberof ParkingTicketResult
|
|
967
|
+
*/
|
|
968
|
+
'vehicle_type': string;
|
|
969
|
+
/**
|
|
970
|
+
*
|
|
971
|
+
* @type {number}
|
|
972
|
+
* @memberof ParkingTicketResult
|
|
973
|
+
*/
|
|
974
|
+
'total_fee': number;
|
|
957
975
|
/**
|
|
958
976
|
*
|
|
959
977
|
* @type {string}
|
|
@@ -962,16 +980,16 @@ export interface ParkingTicketResult {
|
|
|
962
980
|
'member_id': string;
|
|
963
981
|
/**
|
|
964
982
|
*
|
|
965
|
-
* @type {
|
|
983
|
+
* @type {string}
|
|
966
984
|
* @memberof ParkingTicketResult
|
|
967
985
|
*/
|
|
968
|
-
'
|
|
986
|
+
'parked_at': string;
|
|
969
987
|
/**
|
|
970
988
|
*
|
|
971
|
-
* @type {
|
|
989
|
+
* @type {RateDetail}
|
|
972
990
|
* @memberof ParkingTicketResult
|
|
973
991
|
*/
|
|
974
|
-
'
|
|
992
|
+
'rate_detail': RateDetail;
|
|
975
993
|
}
|
|
976
994
|
/**
|
|
977
995
|
*
|
|
@@ -1203,6 +1221,25 @@ export interface PersonData {
|
|
|
1203
1221
|
*/
|
|
1204
1222
|
export interface PrismaJsonValue {
|
|
1205
1223
|
}
|
|
1224
|
+
/**
|
|
1225
|
+
*
|
|
1226
|
+
* @export
|
|
1227
|
+
* @interface RateDetail
|
|
1228
|
+
*/
|
|
1229
|
+
export interface RateDetail {
|
|
1230
|
+
/**
|
|
1231
|
+
*
|
|
1232
|
+
* @type {string}
|
|
1233
|
+
* @memberof RateDetail
|
|
1234
|
+
*/
|
|
1235
|
+
'th': string;
|
|
1236
|
+
/**
|
|
1237
|
+
*
|
|
1238
|
+
* @type {string}
|
|
1239
|
+
* @memberof RateDetail
|
|
1240
|
+
*/
|
|
1241
|
+
'en': string;
|
|
1242
|
+
}
|
|
1206
1243
|
/**
|
|
1207
1244
|
*
|
|
1208
1245
|
* @export
|
|
@@ -2326,52 +2363,22 @@ export interface WrappedResponseParkingLotsIndexResponseData {
|
|
|
2326
2363
|
/**
|
|
2327
2364
|
*
|
|
2328
2365
|
* @export
|
|
2329
|
-
* @interface
|
|
2366
|
+
* @interface WrappedResponseParkingTicketResultArray
|
|
2330
2367
|
*/
|
|
2331
|
-
export interface
|
|
2368
|
+
export interface WrappedResponseParkingTicketResultArray {
|
|
2332
2369
|
/**
|
|
2333
2370
|
*
|
|
2334
|
-
* @type {
|
|
2335
|
-
* @memberof
|
|
2371
|
+
* @type {WrappedResponseParkingTicketResultArrayData}
|
|
2372
|
+
* @memberof WrappedResponseParkingTicketResultArray
|
|
2336
2373
|
*/
|
|
2337
|
-
'data':
|
|
2374
|
+
'data': WrappedResponseParkingTicketResultArrayData | null;
|
|
2338
2375
|
}
|
|
2339
2376
|
/**
|
|
2340
2377
|
*
|
|
2341
2378
|
* @export
|
|
2342
|
-
* @interface
|
|
2379
|
+
* @interface WrappedResponseParkingTicketResultArrayData
|
|
2343
2380
|
*/
|
|
2344
|
-
export interface
|
|
2345
|
-
/**
|
|
2346
|
-
*
|
|
2347
|
-
* @type {string}
|
|
2348
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2349
|
-
*/
|
|
2350
|
-
'id': string;
|
|
2351
|
-
/**
|
|
2352
|
-
*
|
|
2353
|
-
* @type {string}
|
|
2354
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2355
|
-
*/
|
|
2356
|
-
'plate_number': string;
|
|
2357
|
-
/**
|
|
2358
|
-
*
|
|
2359
|
-
* @type {string}
|
|
2360
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2361
|
-
*/
|
|
2362
|
-
'member_id': string;
|
|
2363
|
-
/**
|
|
2364
|
-
*
|
|
2365
|
-
* @type {FindMemberResultCreatedAt}
|
|
2366
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2367
|
-
*/
|
|
2368
|
-
'created_at': FindMemberResultCreatedAt;
|
|
2369
|
-
/**
|
|
2370
|
-
*
|
|
2371
|
-
* @type {FindMemberResultCreatedAt}
|
|
2372
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2373
|
-
*/
|
|
2374
|
-
'updated_at': FindMemberResultCreatedAt;
|
|
2381
|
+
export interface WrappedResponseParkingTicketResultArrayData {
|
|
2375
2382
|
}
|
|
2376
2383
|
/**
|
|
2377
2384
|
*
|
|
@@ -2849,10 +2856,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2849
2856
|
},
|
|
2850
2857
|
/**
|
|
2851
2858
|
*
|
|
2859
|
+
* @param {string} [identifier]
|
|
2860
|
+
* @param {string} [xAccountId]
|
|
2852
2861
|
* @param {*} [options] Override http request option.
|
|
2853
2862
|
* @throws {RequiredError}
|
|
2854
2863
|
*/
|
|
2855
|
-
membersIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2864
|
+
membersIndex: async (identifier?: string, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2856
2865
|
const localVarPath = `/members`;
|
|
2857
2866
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2858
2867
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2865,6 +2874,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2865
2874
|
const localVarHeaderParameter = {} as any;
|
|
2866
2875
|
const localVarQueryParameter = {} as any;
|
|
2867
2876
|
|
|
2877
|
+
if (identifier !== undefined) {
|
|
2878
|
+
localVarQueryParameter['identifier'] = identifier;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
if (xAccountId != null) {
|
|
2882
|
+
localVarHeaderParameter['x-account-id'] = String(xAccountId);
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2868
2885
|
|
|
2869
2886
|
|
|
2870
2887
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3309,11 +3326,13 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
3309
3326
|
},
|
|
3310
3327
|
/**
|
|
3311
3328
|
*
|
|
3329
|
+
* @param {string} [identifier]
|
|
3330
|
+
* @param {string} [xAccountId]
|
|
3312
3331
|
* @param {*} [options] Override http request option.
|
|
3313
3332
|
* @throws {RequiredError}
|
|
3314
3333
|
*/
|
|
3315
|
-
async membersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>> {
|
|
3316
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.membersIndex(options);
|
|
3334
|
+
async membersIndex(identifier?: string, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>> {
|
|
3335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.membersIndex(identifier, xAccountId, options);
|
|
3317
3336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3318
3337
|
},
|
|
3319
3338
|
/**
|
|
@@ -3353,7 +3372,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
3353
3372
|
* @param {*} [options] Override http request option.
|
|
3354
3373
|
* @throws {RequiredError}
|
|
3355
3374
|
*/
|
|
3356
|
-
async parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3375
|
+
async parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketResultArray>> {
|
|
3357
3376
|
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingTicketsIndex(memberId, options);
|
|
3358
3377
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3359
3378
|
},
|
|
@@ -3497,11 +3516,13 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
3497
3516
|
},
|
|
3498
3517
|
/**
|
|
3499
3518
|
*
|
|
3519
|
+
* @param {string} [identifier]
|
|
3520
|
+
* @param {string} [xAccountId]
|
|
3500
3521
|
* @param {*} [options] Override http request option.
|
|
3501
3522
|
* @throws {RequiredError}
|
|
3502
3523
|
*/
|
|
3503
|
-
membersIndex(options?: any): AxiosPromise<WrappedResponseFindMemberResultArrayOrNull> {
|
|
3504
|
-
return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
|
|
3524
|
+
membersIndex(identifier?: string, xAccountId?: string, options?: any): AxiosPromise<WrappedResponseFindMemberResultArrayOrNull> {
|
|
3525
|
+
return localVarFp.membersIndex(identifier, xAccountId, options).then((request) => request(axios, basePath));
|
|
3505
3526
|
},
|
|
3506
3527
|
/**
|
|
3507
3528
|
*
|
|
@@ -3537,7 +3558,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
3537
3558
|
* @param {*} [options] Override http request option.
|
|
3538
3559
|
* @throws {RequiredError}
|
|
3539
3560
|
*/
|
|
3540
|
-
parkingTicketsIndex(memberId: string, options?: any): AxiosPromise<
|
|
3561
|
+
parkingTicketsIndex(memberId: string, options?: any): AxiosPromise<WrappedResponseParkingTicketResultArray> {
|
|
3541
3562
|
return localVarFp.parkingTicketsIndex(memberId, options).then((request) => request(axios, basePath));
|
|
3542
3563
|
},
|
|
3543
3564
|
/**
|
|
@@ -3688,12 +3709,14 @@ export class DefaultApi extends BaseAPI {
|
|
|
3688
3709
|
|
|
3689
3710
|
/**
|
|
3690
3711
|
*
|
|
3712
|
+
* @param {string} [identifier]
|
|
3713
|
+
* @param {string} [xAccountId]
|
|
3691
3714
|
* @param {*} [options] Override http request option.
|
|
3692
3715
|
* @throws {RequiredError}
|
|
3693
3716
|
* @memberof DefaultApi
|
|
3694
3717
|
*/
|
|
3695
|
-
public membersIndex(options?: AxiosRequestConfig) {
|
|
3696
|
-
return DefaultApiFp(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
|
|
3718
|
+
public membersIndex(identifier?: string, xAccountId?: string, options?: AxiosRequestConfig) {
|
|
3719
|
+
return DefaultApiFp(this.configuration).membersIndex(identifier, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
3697
3720
|
}
|
|
3698
3721
|
|
|
3699
3722
|
/**
|
package/dist/api/api.d.ts
CHANGED
|
@@ -952,6 +952,24 @@ export interface ParkingTicketResult {
|
|
|
952
952
|
* @memberof ParkingTicketResult
|
|
953
953
|
*/
|
|
954
954
|
'plate_number': string;
|
|
955
|
+
/**
|
|
956
|
+
*
|
|
957
|
+
* @type {string}
|
|
958
|
+
* @memberof ParkingTicketResult
|
|
959
|
+
*/
|
|
960
|
+
'ticket_number': string;
|
|
961
|
+
/**
|
|
962
|
+
*
|
|
963
|
+
* @type {string}
|
|
964
|
+
* @memberof ParkingTicketResult
|
|
965
|
+
*/
|
|
966
|
+
'vehicle_type': string;
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @type {number}
|
|
970
|
+
* @memberof ParkingTicketResult
|
|
971
|
+
*/
|
|
972
|
+
'total_fee': number;
|
|
955
973
|
/**
|
|
956
974
|
*
|
|
957
975
|
* @type {string}
|
|
@@ -960,16 +978,16 @@ export interface ParkingTicketResult {
|
|
|
960
978
|
'member_id': string;
|
|
961
979
|
/**
|
|
962
980
|
*
|
|
963
|
-
* @type {
|
|
981
|
+
* @type {string}
|
|
964
982
|
* @memberof ParkingTicketResult
|
|
965
983
|
*/
|
|
966
|
-
'
|
|
984
|
+
'parked_at': string;
|
|
967
985
|
/**
|
|
968
986
|
*
|
|
969
|
-
* @type {
|
|
987
|
+
* @type {RateDetail}
|
|
970
988
|
* @memberof ParkingTicketResult
|
|
971
989
|
*/
|
|
972
|
-
'
|
|
990
|
+
'rate_detail': RateDetail;
|
|
973
991
|
}
|
|
974
992
|
/**
|
|
975
993
|
*
|
|
@@ -1195,6 +1213,25 @@ export interface PersonData {
|
|
|
1195
1213
|
*/
|
|
1196
1214
|
export interface PrismaJsonValue {
|
|
1197
1215
|
}
|
|
1216
|
+
/**
|
|
1217
|
+
*
|
|
1218
|
+
* @export
|
|
1219
|
+
* @interface RateDetail
|
|
1220
|
+
*/
|
|
1221
|
+
export interface RateDetail {
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @type {string}
|
|
1225
|
+
* @memberof RateDetail
|
|
1226
|
+
*/
|
|
1227
|
+
'th': string;
|
|
1228
|
+
/**
|
|
1229
|
+
*
|
|
1230
|
+
* @type {string}
|
|
1231
|
+
* @memberof RateDetail
|
|
1232
|
+
*/
|
|
1233
|
+
'en': string;
|
|
1234
|
+
}
|
|
1198
1235
|
/**
|
|
1199
1236
|
*
|
|
1200
1237
|
* @export
|
|
@@ -2312,52 +2349,22 @@ export interface WrappedResponseParkingLotsIndexResponseData {
|
|
|
2312
2349
|
/**
|
|
2313
2350
|
*
|
|
2314
2351
|
* @export
|
|
2315
|
-
* @interface
|
|
2352
|
+
* @interface WrappedResponseParkingTicketResultArray
|
|
2316
2353
|
*/
|
|
2317
|
-
export interface
|
|
2354
|
+
export interface WrappedResponseParkingTicketResultArray {
|
|
2318
2355
|
/**
|
|
2319
2356
|
*
|
|
2320
|
-
* @type {
|
|
2321
|
-
* @memberof
|
|
2357
|
+
* @type {WrappedResponseParkingTicketResultArrayData}
|
|
2358
|
+
* @memberof WrappedResponseParkingTicketResultArray
|
|
2322
2359
|
*/
|
|
2323
|
-
'data':
|
|
2360
|
+
'data': WrappedResponseParkingTicketResultArrayData | null;
|
|
2324
2361
|
}
|
|
2325
2362
|
/**
|
|
2326
2363
|
*
|
|
2327
2364
|
* @export
|
|
2328
|
-
* @interface
|
|
2365
|
+
* @interface WrappedResponseParkingTicketResultArrayData
|
|
2329
2366
|
*/
|
|
2330
|
-
export interface
|
|
2331
|
-
/**
|
|
2332
|
-
*
|
|
2333
|
-
* @type {string}
|
|
2334
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2335
|
-
*/
|
|
2336
|
-
'id': string;
|
|
2337
|
-
/**
|
|
2338
|
-
*
|
|
2339
|
-
* @type {string}
|
|
2340
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2341
|
-
*/
|
|
2342
|
-
'plate_number': string;
|
|
2343
|
-
/**
|
|
2344
|
-
*
|
|
2345
|
-
* @type {string}
|
|
2346
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2347
|
-
*/
|
|
2348
|
-
'member_id': string;
|
|
2349
|
-
/**
|
|
2350
|
-
*
|
|
2351
|
-
* @type {FindMemberResultCreatedAt}
|
|
2352
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2353
|
-
*/
|
|
2354
|
-
'created_at': FindMemberResultCreatedAt;
|
|
2355
|
-
/**
|
|
2356
|
-
*
|
|
2357
|
-
* @type {FindMemberResultCreatedAt}
|
|
2358
|
-
* @memberof WrappedResponseParkingTicketResultData
|
|
2359
|
-
*/
|
|
2360
|
-
'updated_at': FindMemberResultCreatedAt;
|
|
2367
|
+
export interface WrappedResponseParkingTicketResultArrayData {
|
|
2361
2368
|
}
|
|
2362
2369
|
/**
|
|
2363
2370
|
*
|
|
@@ -2623,10 +2630,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2623
2630
|
membersCommandsIndex: (memberId: string, name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2624
2631
|
/**
|
|
2625
2632
|
*
|
|
2633
|
+
* @param {string} [identifier]
|
|
2634
|
+
* @param {string} [xAccountId]
|
|
2626
2635
|
* @param {*} [options] Override http request option.
|
|
2627
2636
|
* @throws {RequiredError}
|
|
2628
2637
|
*/
|
|
2629
|
-
membersIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2638
|
+
membersIndex: (identifier?: string, xAccountId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2630
2639
|
/**
|
|
2631
2640
|
*
|
|
2632
2641
|
* @param {string} id
|
|
@@ -2760,10 +2769,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2760
2769
|
membersCommandsIndex(memberId: string, name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsIndexResponse>>;
|
|
2761
2770
|
/**
|
|
2762
2771
|
*
|
|
2772
|
+
* @param {string} [identifier]
|
|
2773
|
+
* @param {string} [xAccountId]
|
|
2763
2774
|
* @param {*} [options] Override http request option.
|
|
2764
2775
|
* @throws {RequiredError}
|
|
2765
2776
|
*/
|
|
2766
|
-
membersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>>;
|
|
2777
|
+
membersIndex(identifier?: string, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>>;
|
|
2767
2778
|
/**
|
|
2768
2779
|
*
|
|
2769
2780
|
* @param {string} id
|
|
@@ -2792,7 +2803,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2792
2803
|
* @param {*} [options] Override http request option.
|
|
2793
2804
|
* @throws {RequiredError}
|
|
2794
2805
|
*/
|
|
2795
|
-
parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2806
|
+
parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketResultArray>>;
|
|
2796
2807
|
/**
|
|
2797
2808
|
*
|
|
2798
2809
|
* @param {string} visitScheduleId
|
|
@@ -2897,10 +2908,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2897
2908
|
membersCommandsIndex(memberId: string, name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: any): AxiosPromise<WrappedResponseCommandsIndexResponse>;
|
|
2898
2909
|
/**
|
|
2899
2910
|
*
|
|
2911
|
+
* @param {string} [identifier]
|
|
2912
|
+
* @param {string} [xAccountId]
|
|
2900
2913
|
* @param {*} [options] Override http request option.
|
|
2901
2914
|
* @throws {RequiredError}
|
|
2902
2915
|
*/
|
|
2903
|
-
membersIndex(options?: any): AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>;
|
|
2916
|
+
membersIndex(identifier?: string, xAccountId?: string, options?: any): AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>;
|
|
2904
2917
|
/**
|
|
2905
2918
|
*
|
|
2906
2919
|
* @param {string} id
|
|
@@ -2929,7 +2942,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2929
2942
|
* @param {*} [options] Override http request option.
|
|
2930
2943
|
* @throws {RequiredError}
|
|
2931
2944
|
*/
|
|
2932
|
-
parkingTicketsIndex(memberId: string, options?: any): AxiosPromise<
|
|
2945
|
+
parkingTicketsIndex(memberId: string, options?: any): AxiosPromise<WrappedResponseParkingTicketResultArray>;
|
|
2933
2946
|
/**
|
|
2934
2947
|
*
|
|
2935
2948
|
* @param {string} visitScheduleId
|
|
@@ -3043,11 +3056,13 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3043
3056
|
membersCommandsIndex(memberId: string, name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCommandsIndexResponse, any>>;
|
|
3044
3057
|
/**
|
|
3045
3058
|
*
|
|
3059
|
+
* @param {string} [identifier]
|
|
3060
|
+
* @param {string} [xAccountId]
|
|
3046
3061
|
* @param {*} [options] Override http request option.
|
|
3047
3062
|
* @throws {RequiredError}
|
|
3048
3063
|
* @memberof DefaultApi
|
|
3049
3064
|
*/
|
|
3050
|
-
membersIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseFindMemberResultArrayOrNull, any>>;
|
|
3065
|
+
membersIndex(identifier?: string, xAccountId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseFindMemberResultArrayOrNull, any>>;
|
|
3051
3066
|
/**
|
|
3052
3067
|
*
|
|
3053
3068
|
* @param {string} id
|
|
@@ -3080,7 +3095,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3080
3095
|
* @throws {RequiredError}
|
|
3081
3096
|
* @memberof DefaultApi
|
|
3082
3097
|
*/
|
|
3083
|
-
parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3098
|
+
parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingTicketResultArray, any>>;
|
|
3084
3099
|
/**
|
|
3085
3100
|
*
|
|
3086
3101
|
* @param {string} visitScheduleId
|
package/dist/api/api.js
CHANGED
|
@@ -275,10 +275,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
275
275
|
}),
|
|
276
276
|
/**
|
|
277
277
|
*
|
|
278
|
+
* @param {string} [identifier]
|
|
279
|
+
* @param {string} [xAccountId]
|
|
278
280
|
* @param {*} [options] Override http request option.
|
|
279
281
|
* @throws {RequiredError}
|
|
280
282
|
*/
|
|
281
|
-
membersIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
membersIndex: (identifier, xAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
282
284
|
const localVarPath = `/members`;
|
|
283
285
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
286
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -289,6 +291,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
289
291
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
290
292
|
const localVarHeaderParameter = {};
|
|
291
293
|
const localVarQueryParameter = {};
|
|
294
|
+
if (identifier !== undefined) {
|
|
295
|
+
localVarQueryParameter['identifier'] = identifier;
|
|
296
|
+
}
|
|
297
|
+
if (xAccountId != null) {
|
|
298
|
+
localVarHeaderParameter['x-account-id'] = String(xAccountId);
|
|
299
|
+
}
|
|
292
300
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
293
301
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
302
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -689,12 +697,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
689
697
|
},
|
|
690
698
|
/**
|
|
691
699
|
*
|
|
700
|
+
* @param {string} [identifier]
|
|
701
|
+
* @param {string} [xAccountId]
|
|
692
702
|
* @param {*} [options] Override http request option.
|
|
693
703
|
* @throws {RequiredError}
|
|
694
704
|
*/
|
|
695
|
-
membersIndex(options) {
|
|
705
|
+
membersIndex(identifier, xAccountId, options) {
|
|
696
706
|
return __awaiter(this, void 0, void 0, function* () {
|
|
697
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(options);
|
|
707
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(identifier, xAccountId, options);
|
|
698
708
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
699
709
|
});
|
|
700
710
|
},
|
|
@@ -899,11 +909,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
899
909
|
},
|
|
900
910
|
/**
|
|
901
911
|
*
|
|
912
|
+
* @param {string} [identifier]
|
|
913
|
+
* @param {string} [xAccountId]
|
|
902
914
|
* @param {*} [options] Override http request option.
|
|
903
915
|
* @throws {RequiredError}
|
|
904
916
|
*/
|
|
905
|
-
membersIndex(options) {
|
|
906
|
-
return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
|
|
917
|
+
membersIndex(identifier, xAccountId, options) {
|
|
918
|
+
return localVarFp.membersIndex(identifier, xAccountId, options).then((request) => request(axios, basePath));
|
|
907
919
|
},
|
|
908
920
|
/**
|
|
909
921
|
*
|
|
@@ -1083,12 +1095,14 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1083
1095
|
}
|
|
1084
1096
|
/**
|
|
1085
1097
|
*
|
|
1098
|
+
* @param {string} [identifier]
|
|
1099
|
+
* @param {string} [xAccountId]
|
|
1086
1100
|
* @param {*} [options] Override http request option.
|
|
1087
1101
|
* @throws {RequiredError}
|
|
1088
1102
|
* @memberof DefaultApi
|
|
1089
1103
|
*/
|
|
1090
|
-
membersIndex(options) {
|
|
1091
|
-
return (0, exports.DefaultApiFp)(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
|
|
1104
|
+
membersIndex(identifier, xAccountId, options) {
|
|
1105
|
+
return (0, exports.DefaultApiFp)(this.configuration).membersIndex(identifier, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
1092
1106
|
}
|
|
1093
1107
|
/**
|
|
1094
1108
|
*
|
package/package.json
CHANGED
package/test.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as OB_BMS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lYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsInVwZGF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.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
|
+
})();
|