ob-bms-sdk 0.0.37 → 0.0.39

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
@@ -1458,6 +1458,32 @@ export interface TowerDataPasses {
1458
1458
  */
1459
1459
  'updated_at': string;
1460
1460
  }
1461
+ /**
1462
+ *
1463
+ * @export
1464
+ * @interface UpdateMemberRequestBody
1465
+ */
1466
+ export interface UpdateMemberRequestBody {
1467
+ /**
1468
+ *
1469
+ * @type {string}
1470
+ * @memberof UpdateMemberRequestBody
1471
+ */
1472
+ 'default_floor': string;
1473
+ }
1474
+ /**
1475
+ *
1476
+ * @export
1477
+ * @interface UpdateMemberResponse
1478
+ */
1479
+ export interface UpdateMemberResponse {
1480
+ /**
1481
+ *
1482
+ * @type {boolean}
1483
+ * @memberof UpdateMemberResponse
1484
+ */
1485
+ 'result': boolean | null;
1486
+ }
1461
1487
  /**
1462
1488
  *
1463
1489
  * @export
@@ -1690,6 +1716,55 @@ export interface VisitorSchedulePasses {
1690
1716
  * @memberof VisitorSchedulePasses
1691
1717
  */
1692
1718
  'updated_at': string;
1719
+ /**
1720
+ *
1721
+ * @type {Array<VisitorScheduleTokens>}
1722
+ * @memberof VisitorSchedulePasses
1723
+ */
1724
+ 'tokens': Array<VisitorScheduleTokens>;
1725
+ }
1726
+ /**
1727
+ *
1728
+ * @export
1729
+ * @interface VisitorScheduleTokens
1730
+ */
1731
+ export interface VisitorScheduleTokens {
1732
+ /**
1733
+ *
1734
+ * @type {string}
1735
+ * @memberof VisitorScheduleTokens
1736
+ */
1737
+ 'id'?: string;
1738
+ /**
1739
+ *
1740
+ * @type {string}
1741
+ * @memberof VisitorScheduleTokens
1742
+ */
1743
+ 'token_id'?: string;
1744
+ /**
1745
+ *
1746
+ * @type {string}
1747
+ * @memberof VisitorScheduleTokens
1748
+ */
1749
+ 'expired_data'?: string | null;
1750
+ /**
1751
+ *
1752
+ * @type {string}
1753
+ * @memberof VisitorScheduleTokens
1754
+ */
1755
+ 'visitor_schedule_id'?: string;
1756
+ /**
1757
+ *
1758
+ * @type {string}
1759
+ * @memberof VisitorScheduleTokens
1760
+ */
1761
+ 'created_at'?: string;
1762
+ /**
1763
+ *
1764
+ * @type {string}
1765
+ * @memberof VisitorScheduleTokens
1766
+ */
1767
+ 'updated_at'?: string;
1693
1768
  }
1694
1769
  /**
1695
1770
  *
@@ -2288,6 +2363,32 @@ export interface WrappedResponseShowVisitorResponseData {
2288
2363
  */
2289
2364
  'updated_at': string;
2290
2365
  }
2366
+ /**
2367
+ *
2368
+ * @export
2369
+ * @interface WrappedResponseUpdateMemberResponse
2370
+ */
2371
+ export interface WrappedResponseUpdateMemberResponse {
2372
+ /**
2373
+ *
2374
+ * @type {WrappedResponseUpdateMemberResponseData}
2375
+ * @memberof WrappedResponseUpdateMemberResponse
2376
+ */
2377
+ 'data': WrappedResponseUpdateMemberResponseData | null;
2378
+ }
2379
+ /**
2380
+ *
2381
+ * @export
2382
+ * @interface WrappedResponseUpdateMemberResponseData
2383
+ */
2384
+ export interface WrappedResponseUpdateMemberResponseData {
2385
+ /**
2386
+ *
2387
+ * @type {boolean}
2388
+ * @memberof WrappedResponseUpdateMemberResponseData
2389
+ */
2390
+ 'result': boolean | null;
2391
+ }
2291
2392
  /**
2292
2393
  *
2293
2394
  * @export
@@ -2583,13 +2684,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2583
2684
  },
2584
2685
  /**
2585
2686
  *
2586
- * @param {string} xAccountId
2587
2687
  * @param {*} [options] Override http request option.
2588
2688
  * @throws {RequiredError}
2589
2689
  */
2590
- membersIndex: async (xAccountId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2591
- // verify required parameter 'xAccountId' is not null or undefined
2592
- assertParamExists('membersIndex', 'xAccountId', xAccountId)
2690
+ membersIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2593
2691
  const localVarPath = `/members`;
2594
2692
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2595
2693
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2602,10 +2700,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2602
2700
  const localVarHeaderParameter = {} as any;
2603
2701
  const localVarQueryParameter = {} as any;
2604
2702
 
2605
- if (xAccountId != null) {
2606
- localVarHeaderParameter['x-account-id'] = String(xAccountId);
2607
- }
2608
-
2609
2703
 
2610
2704
 
2611
2705
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2650,6 +2744,45 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
2650
2744
  options: localVarRequestOptions,
2651
2745
  };
2652
2746
  },
2747
+ /**
2748
+ *
2749
+ * @param {string} id
2750
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
2751
+ * @param {*} [options] Override http request option.
2752
+ * @throws {RequiredError}
2753
+ */
2754
+ membersUpdate: async (id: string, updateMemberRequestBody: UpdateMemberRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2755
+ // verify required parameter 'id' is not null or undefined
2756
+ assertParamExists('membersUpdate', 'id', id)
2757
+ // verify required parameter 'updateMemberRequestBody' is not null or undefined
2758
+ assertParamExists('membersUpdate', 'updateMemberRequestBody', updateMemberRequestBody)
2759
+ const localVarPath = `/members/{id}`
2760
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2761
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2762
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2763
+ let baseOptions;
2764
+ if (configuration) {
2765
+ baseOptions = configuration.baseOptions;
2766
+ }
2767
+
2768
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2769
+ const localVarHeaderParameter = {} as any;
2770
+ const localVarQueryParameter = {} as any;
2771
+
2772
+
2773
+
2774
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2775
+
2776
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2778
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2779
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMemberRequestBody, localVarRequestOptions, configuration)
2780
+
2781
+ return {
2782
+ url: toPathString(localVarUrlObj),
2783
+ options: localVarRequestOptions,
2784
+ };
2785
+ },
2653
2786
  /**
2654
2787
  *
2655
2788
  * @param {*} [options] Override http request option.
@@ -2997,12 +3130,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2997
3130
  },
2998
3131
  /**
2999
3132
  *
3000
- * @param {string} xAccountId
3001
3133
  * @param {*} [options] Override http request option.
3002
3134
  * @throws {RequiredError}
3003
3135
  */
3004
- async membersIndex(xAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>> {
3005
- const localVarAxiosArgs = await localVarAxiosParamCreator.membersIndex(xAccountId, options);
3136
+ async membersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>> {
3137
+ const localVarAxiosArgs = await localVarAxiosParamCreator.membersIndex(options);
3006
3138
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3007
3139
  },
3008
3140
  /**
@@ -3015,6 +3147,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3015
3147
  const localVarAxiosArgs = await localVarAxiosParamCreator.membersShow(id, options);
3016
3148
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3017
3149
  },
3150
+ /**
3151
+ *
3152
+ * @param {string} id
3153
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
3154
+ * @param {*} [options] Override http request option.
3155
+ * @throws {RequiredError}
3156
+ */
3157
+ async membersUpdate(id: string, updateMemberRequestBody: UpdateMemberRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseUpdateMemberResponse>> {
3158
+ const localVarAxiosArgs = await localVarAxiosParamCreator.membersUpdate(id, updateMemberRequestBody, options);
3159
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3160
+ },
3018
3161
  /**
3019
3162
  *
3020
3163
  * @param {*} [options] Override http request option.
@@ -3166,12 +3309,11 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
3166
3309
  },
3167
3310
  /**
3168
3311
  *
3169
- * @param {string} xAccountId
3170
3312
  * @param {*} [options] Override http request option.
3171
3313
  * @throws {RequiredError}
3172
3314
  */
3173
- membersIndex(xAccountId: string, options?: any): AxiosPromise<WrappedResponseFindMemberResultArrayOrNull> {
3174
- return localVarFp.membersIndex(xAccountId, options).then((request) => request(axios, basePath));
3315
+ membersIndex(options?: any): AxiosPromise<WrappedResponseFindMemberResultArrayOrNull> {
3316
+ return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
3175
3317
  },
3176
3318
  /**
3177
3319
  *
@@ -3182,6 +3324,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
3182
3324
  membersShow(id: string, options?: any): AxiosPromise<WrappedResponseMembersShowResponse> {
3183
3325
  return localVarFp.membersShow(id, options).then((request) => request(axios, basePath));
3184
3326
  },
3327
+ /**
3328
+ *
3329
+ * @param {string} id
3330
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
3331
+ * @param {*} [options] Override http request option.
3332
+ * @throws {RequiredError}
3333
+ */
3334
+ membersUpdate(id: string, updateMemberRequestBody: UpdateMemberRequestBody, options?: any): AxiosPromise<WrappedResponseUpdateMemberResponse> {
3335
+ return localVarFp.membersUpdate(id, updateMemberRequestBody, options).then((request) => request(axios, basePath));
3336
+ },
3185
3337
  /**
3186
3338
  *
3187
3339
  * @param {*} [options] Override http request option.
@@ -3337,13 +3489,12 @@ export class DefaultApi extends BaseAPI {
3337
3489
 
3338
3490
  /**
3339
3491
  *
3340
- * @param {string} xAccountId
3341
3492
  * @param {*} [options] Override http request option.
3342
3493
  * @throws {RequiredError}
3343
3494
  * @memberof DefaultApi
3344
3495
  */
3345
- public membersIndex(xAccountId: string, options?: AxiosRequestConfig) {
3346
- return DefaultApiFp(this.configuration).membersIndex(xAccountId, options).then((request) => request(this.axios, this.basePath));
3496
+ public membersIndex(options?: AxiosRequestConfig) {
3497
+ return DefaultApiFp(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
3347
3498
  }
3348
3499
 
3349
3500
  /**
@@ -3357,6 +3508,18 @@ export class DefaultApi extends BaseAPI {
3357
3508
  return DefaultApiFp(this.configuration).membersShow(id, options).then((request) => request(this.axios, this.basePath));
3358
3509
  }
3359
3510
 
3511
+ /**
3512
+ *
3513
+ * @param {string} id
3514
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
3515
+ * @param {*} [options] Override http request option.
3516
+ * @throws {RequiredError}
3517
+ * @memberof DefaultApi
3518
+ */
3519
+ public membersUpdate(id: string, updateMemberRequestBody: UpdateMemberRequestBody, options?: AxiosRequestConfig) {
3520
+ return DefaultApiFp(this.configuration).membersUpdate(id, updateMemberRequestBody, options).then((request) => request(this.axios, this.basePath));
3521
+ }
3522
+
3360
3523
  /**
3361
3524
  *
3362
3525
  * @param {*} [options] Override http request option.
package/dist/api/api.d.ts CHANGED
@@ -1447,6 +1447,32 @@ export interface TowerDataPasses {
1447
1447
  */
1448
1448
  'updated_at': string;
1449
1449
  }
1450
+ /**
1451
+ *
1452
+ * @export
1453
+ * @interface UpdateMemberRequestBody
1454
+ */
1455
+ export interface UpdateMemberRequestBody {
1456
+ /**
1457
+ *
1458
+ * @type {string}
1459
+ * @memberof UpdateMemberRequestBody
1460
+ */
1461
+ 'default_floor': string;
1462
+ }
1463
+ /**
1464
+ *
1465
+ * @export
1466
+ * @interface UpdateMemberResponse
1467
+ */
1468
+ export interface UpdateMemberResponse {
1469
+ /**
1470
+ *
1471
+ * @type {boolean}
1472
+ * @memberof UpdateMemberResponse
1473
+ */
1474
+ 'result': boolean | null;
1475
+ }
1450
1476
  /**
1451
1477
  *
1452
1478
  * @export
@@ -1679,6 +1705,55 @@ export interface VisitorSchedulePasses {
1679
1705
  * @memberof VisitorSchedulePasses
1680
1706
  */
1681
1707
  'updated_at': string;
1708
+ /**
1709
+ *
1710
+ * @type {Array<VisitorScheduleTokens>}
1711
+ * @memberof VisitorSchedulePasses
1712
+ */
1713
+ 'tokens': Array<VisitorScheduleTokens>;
1714
+ }
1715
+ /**
1716
+ *
1717
+ * @export
1718
+ * @interface VisitorScheduleTokens
1719
+ */
1720
+ export interface VisitorScheduleTokens {
1721
+ /**
1722
+ *
1723
+ * @type {string}
1724
+ * @memberof VisitorScheduleTokens
1725
+ */
1726
+ 'id'?: string;
1727
+ /**
1728
+ *
1729
+ * @type {string}
1730
+ * @memberof VisitorScheduleTokens
1731
+ */
1732
+ 'token_id'?: string;
1733
+ /**
1734
+ *
1735
+ * @type {string}
1736
+ * @memberof VisitorScheduleTokens
1737
+ */
1738
+ 'expired_data'?: string | null;
1739
+ /**
1740
+ *
1741
+ * @type {string}
1742
+ * @memberof VisitorScheduleTokens
1743
+ */
1744
+ 'visitor_schedule_id'?: string;
1745
+ /**
1746
+ *
1747
+ * @type {string}
1748
+ * @memberof VisitorScheduleTokens
1749
+ */
1750
+ 'created_at'?: string;
1751
+ /**
1752
+ *
1753
+ * @type {string}
1754
+ * @memberof VisitorScheduleTokens
1755
+ */
1756
+ 'updated_at'?: string;
1682
1757
  }
1683
1758
  /**
1684
1759
  *
@@ -2271,6 +2346,32 @@ export interface WrappedResponseShowVisitorResponseData {
2271
2346
  */
2272
2347
  'updated_at': string;
2273
2348
  }
2349
+ /**
2350
+ *
2351
+ * @export
2352
+ * @interface WrappedResponseUpdateMemberResponse
2353
+ */
2354
+ export interface WrappedResponseUpdateMemberResponse {
2355
+ /**
2356
+ *
2357
+ * @type {WrappedResponseUpdateMemberResponseData}
2358
+ * @memberof WrappedResponseUpdateMemberResponse
2359
+ */
2360
+ 'data': WrappedResponseUpdateMemberResponseData | null;
2361
+ }
2362
+ /**
2363
+ *
2364
+ * @export
2365
+ * @interface WrappedResponseUpdateMemberResponseData
2366
+ */
2367
+ export interface WrappedResponseUpdateMemberResponseData {
2368
+ /**
2369
+ *
2370
+ * @type {boolean}
2371
+ * @memberof WrappedResponseUpdateMemberResponseData
2372
+ */
2373
+ 'result': boolean | null;
2374
+ }
2274
2375
  /**
2275
2376
  *
2276
2377
  * @export
@@ -2380,11 +2481,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2380
2481
  membersCommandsIndex: (memberId: string, name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2381
2482
  /**
2382
2483
  *
2383
- * @param {string} xAccountId
2384
2484
  * @param {*} [options] Override http request option.
2385
2485
  * @throws {RequiredError}
2386
2486
  */
2387
- membersIndex: (xAccountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2487
+ membersIndex: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
2388
2488
  /**
2389
2489
  *
2390
2490
  * @param {string} id
@@ -2392,6 +2492,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2392
2492
  * @throws {RequiredError}
2393
2493
  */
2394
2494
  membersShow: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2495
+ /**
2496
+ *
2497
+ * @param {string} id
2498
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
2499
+ * @param {*} [options] Override http request option.
2500
+ * @throws {RequiredError}
2501
+ */
2502
+ membersUpdate: (id: string, updateMemberRequestBody: UpdateMemberRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2395
2503
  /**
2396
2504
  *
2397
2505
  * @param {*} [options] Override http request option.
@@ -2503,11 +2611,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2503
2611
  membersCommandsIndex(memberId: string, name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCommandsIndexResponse>>;
2504
2612
  /**
2505
2613
  *
2506
- * @param {string} xAccountId
2507
2614
  * @param {*} [options] Override http request option.
2508
2615
  * @throws {RequiredError}
2509
2616
  */
2510
- membersIndex(xAccountId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>>;
2617
+ membersIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>>;
2511
2618
  /**
2512
2619
  *
2513
2620
  * @param {string} id
@@ -2515,6 +2622,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2515
2622
  * @throws {RequiredError}
2516
2623
  */
2517
2624
  membersShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseMembersShowResponse>>;
2625
+ /**
2626
+ *
2627
+ * @param {string} id
2628
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
2629
+ * @param {*} [options] Override http request option.
2630
+ * @throws {RequiredError}
2631
+ */
2632
+ membersUpdate(id: string, updateMemberRequestBody: UpdateMemberRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseUpdateMemberResponse>>;
2518
2633
  /**
2519
2634
  *
2520
2635
  * @param {*} [options] Override http request option.
@@ -2626,11 +2741,10 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2626
2741
  membersCommandsIndex(memberId: string, name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: any): AxiosPromise<WrappedResponseCommandsIndexResponse>;
2627
2742
  /**
2628
2743
  *
2629
- * @param {string} xAccountId
2630
2744
  * @param {*} [options] Override http request option.
2631
2745
  * @throws {RequiredError}
2632
2746
  */
2633
- membersIndex(xAccountId: string, options?: any): AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>;
2747
+ membersIndex(options?: any): AxiosPromise<WrappedResponseFindMemberResultArrayOrNull>;
2634
2748
  /**
2635
2749
  *
2636
2750
  * @param {string} id
@@ -2638,6 +2752,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2638
2752
  * @throws {RequiredError}
2639
2753
  */
2640
2754
  membersShow(id: string, options?: any): AxiosPromise<WrappedResponseMembersShowResponse>;
2755
+ /**
2756
+ *
2757
+ * @param {string} id
2758
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
2759
+ * @param {*} [options] Override http request option.
2760
+ * @throws {RequiredError}
2761
+ */
2762
+ membersUpdate(id: string, updateMemberRequestBody: UpdateMemberRequestBody, options?: any): AxiosPromise<WrappedResponseUpdateMemberResponse>;
2641
2763
  /**
2642
2764
  *
2643
2765
  * @param {*} [options] Override http request option.
@@ -2757,12 +2879,11 @@ export declare class DefaultApi extends BaseAPI {
2757
2879
  membersCommandsIndex(memberId: string, name?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCommandsIndexResponse, any>>;
2758
2880
  /**
2759
2881
  *
2760
- * @param {string} xAccountId
2761
2882
  * @param {*} [options] Override http request option.
2762
2883
  * @throws {RequiredError}
2763
2884
  * @memberof DefaultApi
2764
2885
  */
2765
- membersIndex(xAccountId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseFindMemberResultArrayOrNull, any>>;
2886
+ membersIndex(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseFindMemberResultArrayOrNull, any>>;
2766
2887
  /**
2767
2888
  *
2768
2889
  * @param {string} id
@@ -2771,6 +2892,15 @@ export declare class DefaultApi extends BaseAPI {
2771
2892
  * @memberof DefaultApi
2772
2893
  */
2773
2894
  membersShow(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseMembersShowResponse, any>>;
2895
+ /**
2896
+ *
2897
+ * @param {string} id
2898
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
2899
+ * @param {*} [options] Override http request option.
2900
+ * @throws {RequiredError}
2901
+ * @memberof DefaultApi
2902
+ */
2903
+ membersUpdate(id: string, updateMemberRequestBody: UpdateMemberRequestBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseUpdateMemberResponse, any>>;
2774
2904
  /**
2775
2905
  *
2776
2906
  * @param {*} [options] Override http request option.
package/dist/api/api.js CHANGED
@@ -251,13 +251,10 @@ const DefaultApiAxiosParamCreator = function (configuration) {
251
251
  }),
252
252
  /**
253
253
  *
254
- * @param {string} xAccountId
255
254
  * @param {*} [options] Override http request option.
256
255
  * @throws {RequiredError}
257
256
  */
258
- membersIndex: (xAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
259
- // verify required parameter 'xAccountId' is not null or undefined
260
- (0, common_1.assertParamExists)('membersIndex', 'xAccountId', xAccountId);
257
+ membersIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
261
258
  const localVarPath = `/members`;
262
259
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
263
260
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -268,9 +265,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
268
265
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
269
266
  const localVarHeaderParameter = {};
270
267
  const localVarQueryParameter = {};
271
- if (xAccountId != null) {
272
- localVarHeaderParameter['x-account-id'] = String(xAccountId);
273
- }
274
268
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
275
269
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
276
270
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -307,6 +301,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
307
301
  options: localVarRequestOptions,
308
302
  };
309
303
  }),
304
+ /**
305
+ *
306
+ * @param {string} id
307
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ membersUpdate: (id, updateMemberRequestBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
312
+ // verify required parameter 'id' is not null or undefined
313
+ (0, common_1.assertParamExists)('membersUpdate', 'id', id);
314
+ // verify required parameter 'updateMemberRequestBody' is not null or undefined
315
+ (0, common_1.assertParamExists)('membersUpdate', 'updateMemberRequestBody', updateMemberRequestBody);
316
+ const localVarPath = `/members/{id}`
317
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
318
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
319
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
320
+ let baseOptions;
321
+ if (configuration) {
322
+ baseOptions = configuration.baseOptions;
323
+ }
324
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
325
+ const localVarHeaderParameter = {};
326
+ const localVarQueryParameter = {};
327
+ localVarHeaderParameter['Content-Type'] = 'application/json';
328
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
329
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
331
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMemberRequestBody, localVarRequestOptions, configuration);
332
+ return {
333
+ url: (0, common_1.toPathString)(localVarUrlObj),
334
+ options: localVarRequestOptions,
335
+ };
336
+ }),
310
337
  /**
311
338
  *
312
339
  * @param {*} [options] Override http request option.
@@ -623,13 +650,12 @@ const DefaultApiFp = function (configuration) {
623
650
  },
624
651
  /**
625
652
  *
626
- * @param {string} xAccountId
627
653
  * @param {*} [options] Override http request option.
628
654
  * @throws {RequiredError}
629
655
  */
630
- membersIndex(xAccountId, options) {
656
+ membersIndex(options) {
631
657
  return __awaiter(this, void 0, void 0, function* () {
632
- const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(xAccountId, options);
658
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersIndex(options);
633
659
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
634
660
  });
635
661
  },
@@ -645,6 +671,19 @@ const DefaultApiFp = function (configuration) {
645
671
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
646
672
  });
647
673
  },
674
+ /**
675
+ *
676
+ * @param {string} id
677
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ membersUpdate(id, updateMemberRequestBody, options) {
682
+ return __awaiter(this, void 0, void 0, function* () {
683
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.membersUpdate(id, updateMemberRequestBody, options);
684
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
685
+ });
686
+ },
648
687
  /**
649
688
  *
650
689
  * @param {*} [options] Override http request option.
@@ -812,12 +851,11 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
812
851
  },
813
852
  /**
814
853
  *
815
- * @param {string} xAccountId
816
854
  * @param {*} [options] Override http request option.
817
855
  * @throws {RequiredError}
818
856
  */
819
- membersIndex(xAccountId, options) {
820
- return localVarFp.membersIndex(xAccountId, options).then((request) => request(axios, basePath));
857
+ membersIndex(options) {
858
+ return localVarFp.membersIndex(options).then((request) => request(axios, basePath));
821
859
  },
822
860
  /**
823
861
  *
@@ -828,6 +866,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
828
866
  membersShow(id, options) {
829
867
  return localVarFp.membersShow(id, options).then((request) => request(axios, basePath));
830
868
  },
869
+ /**
870
+ *
871
+ * @param {string} id
872
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
873
+ * @param {*} [options] Override http request option.
874
+ * @throws {RequiredError}
875
+ */
876
+ membersUpdate(id, updateMemberRequestBody, options) {
877
+ return localVarFp.membersUpdate(id, updateMemberRequestBody, options).then((request) => request(axios, basePath));
878
+ },
831
879
  /**
832
880
  *
833
881
  * @param {*} [options] Override http request option.
@@ -977,13 +1025,12 @@ class DefaultApi extends base_1.BaseAPI {
977
1025
  }
978
1026
  /**
979
1027
  *
980
- * @param {string} xAccountId
981
1028
  * @param {*} [options] Override http request option.
982
1029
  * @throws {RequiredError}
983
1030
  * @memberof DefaultApi
984
1031
  */
985
- membersIndex(xAccountId, options) {
986
- return (0, exports.DefaultApiFp)(this.configuration).membersIndex(xAccountId, options).then((request) => request(this.axios, this.basePath));
1032
+ membersIndex(options) {
1033
+ return (0, exports.DefaultApiFp)(this.configuration).membersIndex(options).then((request) => request(this.axios, this.basePath));
987
1034
  }
988
1035
  /**
989
1036
  *
@@ -995,6 +1042,17 @@ class DefaultApi extends base_1.BaseAPI {
995
1042
  membersShow(id, options) {
996
1043
  return (0, exports.DefaultApiFp)(this.configuration).membersShow(id, options).then((request) => request(this.axios, this.basePath));
997
1044
  }
1045
+ /**
1046
+ *
1047
+ * @param {string} id
1048
+ * @param {UpdateMemberRequestBody} updateMemberRequestBody
1049
+ * @param {*} [options] Override http request option.
1050
+ * @throws {RequiredError}
1051
+ * @memberof DefaultApi
1052
+ */
1053
+ membersUpdate(id, updateMemberRequestBody, options) {
1054
+ return (0, exports.DefaultApiFp)(this.configuration).membersUpdate(id, updateMemberRequestBody, options).then((request) => request(this.axios, this.basePath));
1055
+ }
998
1056
  /**
999
1057
  *
1000
1058
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"