ob-bms-sdk 0.0.67 → 0.0.68

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
@@ -23,6 +23,49 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface ACRequestBody
30
+ */
31
+ export interface ACRequestBody {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ACRequestBody
36
+ */
37
+ 'floor_id': string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ACRequestBody
42
+ */
43
+ 'ac_zone_id': string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ACRequestBody
48
+ */
49
+ 'tower_id': string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof ACRequestBody
54
+ */
55
+ 'requester_id': string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ACRequestBody
60
+ */
61
+ 'date': string;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof ACRequestBody
66
+ */
67
+ 'duration': number;
68
+ }
26
69
  /**
27
70
  *
28
71
  * @export
@@ -1710,6 +1753,52 @@ export const ServiceRequestStatus = {
1710
1753
  export type ServiceRequestStatus = typeof ServiceRequestStatus[keyof typeof ServiceRequestStatus];
1711
1754
 
1712
1755
 
1756
+ /**
1757
+ *
1758
+ * @export
1759
+ * @enum {string}
1760
+ */
1761
+
1762
+ export const ServiceRequestStatusDone = {
1763
+ Done: 'done'
1764
+ } as const;
1765
+
1766
+ export type ServiceRequestStatusDone = typeof ServiceRequestStatusDone[keyof typeof ServiceRequestStatusDone];
1767
+
1768
+
1769
+ /**
1770
+ *
1771
+ * @export
1772
+ * @enum {string}
1773
+ */
1774
+
1775
+ export const ServiceRequestStatusInProgress = {
1776
+ InProgress: 'in_progress'
1777
+ } as const;
1778
+
1779
+ export type ServiceRequestStatusInProgress = typeof ServiceRequestStatusInProgress[keyof typeof ServiceRequestStatusInProgress];
1780
+
1781
+
1782
+ /**
1783
+ *
1784
+ * @export
1785
+ * @interface ServiceRequestsUpdateRequestBody
1786
+ */
1787
+ export interface ServiceRequestsUpdateRequestBody {
1788
+ /**
1789
+ *
1790
+ * @type {ServiceRequestsUpdateRequestBodyStatus}
1791
+ * @memberof ServiceRequestsUpdateRequestBody
1792
+ */
1793
+ 'status': ServiceRequestsUpdateRequestBodyStatus;
1794
+ }
1795
+ /**
1796
+ *
1797
+ * @export
1798
+ * @interface ServiceRequestsUpdateRequestBodyStatus
1799
+ */
1800
+ export interface ServiceRequestsUpdateRequestBodyStatus {
1801
+ }
1713
1802
  /**
1714
1803
  *
1715
1804
  * @export
@@ -2625,6 +2714,45 @@ export interface WrappedArrayResponseSensorsIndexResponseData {
2625
2714
  */
2626
2715
  'data': Array<FloorSensorData>;
2627
2716
  }
2717
+ /**
2718
+ *
2719
+ * @export
2720
+ * @interface WrappedArrayResponseServiceRequestData
2721
+ */
2722
+ export interface WrappedArrayResponseServiceRequestData {
2723
+ /**
2724
+ *
2725
+ * @type {Array<ServiceRequestData>}
2726
+ * @memberof WrappedArrayResponseServiceRequestData
2727
+ */
2728
+ 'data': Array<ServiceRequestData>;
2729
+ }
2730
+ /**
2731
+ *
2732
+ * @export
2733
+ * @interface WrappedOneResponseCreateServiceRequestResponse
2734
+ */
2735
+ export interface WrappedOneResponseCreateServiceRequestResponse {
2736
+ /**
2737
+ *
2738
+ * @type {CreateServiceRequestResponse}
2739
+ * @memberof WrappedOneResponseCreateServiceRequestResponse
2740
+ */
2741
+ 'data': CreateServiceRequestResponse;
2742
+ }
2743
+ /**
2744
+ *
2745
+ * @export
2746
+ * @interface WrappedOneResponseServiceRequestData
2747
+ */
2748
+ export interface WrappedOneResponseServiceRequestData {
2749
+ /**
2750
+ *
2751
+ * @type {ServiceRequestData}
2752
+ * @memberof WrappedOneResponseServiceRequestData
2753
+ */
2754
+ 'data': ServiceRequestData;
2755
+ }
2628
2756
  /**
2629
2757
  *
2630
2758
  * @export
@@ -2681,6 +2809,26 @@ export interface WrappedResponseACZoneDataData {
2681
2809
  */
2682
2810
  'id': string;
2683
2811
  }
2812
+ /**
2813
+ *
2814
+ * @export
2815
+ * @interface WrappedResponseBoolean
2816
+ */
2817
+ export interface WrappedResponseBoolean {
2818
+ /**
2819
+ *
2820
+ * @type {WrappedResponseBooleanData}
2821
+ * @memberof WrappedResponseBoolean
2822
+ */
2823
+ 'data': WrappedResponseBooleanData | null;
2824
+ }
2825
+ /**
2826
+ *
2827
+ * @export
2828
+ * @interface WrappedResponseBooleanData
2829
+ */
2830
+ export interface WrappedResponseBooleanData {
2831
+ }
2684
2832
  /**
2685
2833
  *
2686
2834
  * @export
@@ -2769,32 +2917,6 @@ export interface WrappedResponseCommandsIndexResponse {
2769
2917
  */
2770
2918
  export interface WrappedResponseCommandsIndexResponseData {
2771
2919
  }
2772
- /**
2773
- *
2774
- * @export
2775
- * @interface WrappedResponseCreateServiceRequestResponse
2776
- */
2777
- export interface WrappedResponseCreateServiceRequestResponse {
2778
- /**
2779
- *
2780
- * @type {WrappedResponseCreateServiceRequestResponseData}
2781
- * @memberof WrappedResponseCreateServiceRequestResponse
2782
- */
2783
- 'data': WrappedResponseCreateServiceRequestResponseData | null;
2784
- }
2785
- /**
2786
- *
2787
- * @export
2788
- * @interface WrappedResponseCreateServiceRequestResponseData
2789
- */
2790
- export interface WrappedResponseCreateServiceRequestResponseData {
2791
- /**
2792
- *
2793
- * @type {string}
2794
- * @memberof WrappedResponseCreateServiceRequestResponseData
2795
- */
2796
- 'id': string;
2797
- }
2798
2920
  /**
2799
2921
  *
2800
2922
  * @export
@@ -3222,112 +3344,6 @@ export const WrappedResponsePassConsentResponseDataStatusEnum = {
3222
3344
 
3223
3345
  export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
3224
3346
 
3225
- /**
3226
- *
3227
- * @export
3228
- * @interface WrappedResponseServiceRequestData
3229
- */
3230
- export interface WrappedResponseServiceRequestData {
3231
- /**
3232
- *
3233
- * @type {WrappedResponseServiceRequestDataData}
3234
- * @memberof WrappedResponseServiceRequestData
3235
- */
3236
- 'data': WrappedResponseServiceRequestDataData | null;
3237
- }
3238
- /**
3239
- *
3240
- * @export
3241
- * @interface WrappedResponseServiceRequestDataData
3242
- */
3243
- export interface WrappedResponseServiceRequestDataData {
3244
- /**
3245
- *
3246
- * @type {string}
3247
- * @memberof WrappedResponseServiceRequestDataData
3248
- */
3249
- 'updated_at': string;
3250
- /**
3251
- *
3252
- * @type {string}
3253
- * @memberof WrappedResponseServiceRequestDataData
3254
- */
3255
- 'created_at': string;
3256
- /**
3257
- *
3258
- * @type {string}
3259
- * @memberof WrappedResponseServiceRequestDataData
3260
- */
3261
- 'description': string;
3262
- /**
3263
- *
3264
- * @type {string}
3265
- * @memberof WrappedResponseServiceRequestDataData
3266
- */
3267
- 'status': string;
3268
- /**
3269
- *
3270
- * @type {string}
3271
- * @memberof WrappedResponseServiceRequestDataData
3272
- */
3273
- 'title': string;
3274
- /**
3275
- *
3276
- * @type {string}
3277
- * @memberof WrappedResponseServiceRequestDataData
3278
- */
3279
- 'requester_id': string;
3280
- /**
3281
- *
3282
- * @type {IssueTypeData}
3283
- * @memberof WrappedResponseServiceRequestDataData
3284
- */
3285
- 'issue_type': IssueTypeData;
3286
- /**
3287
- *
3288
- * @type {FloorData}
3289
- * @memberof WrappedResponseServiceRequestDataData
3290
- */
3291
- 'floor': FloorData;
3292
- /**
3293
- *
3294
- * @type {TowerData}
3295
- * @memberof WrappedResponseServiceRequestDataData
3296
- */
3297
- 'tower': TowerData;
3298
- /**
3299
- *
3300
- * @type {Array<string>}
3301
- * @memberof WrappedResponseServiceRequestDataData
3302
- */
3303
- 'image_url': Array<string>;
3304
- /**
3305
- *
3306
- * @type {string}
3307
- * @memberof WrappedResponseServiceRequestDataData
3308
- */
3309
- 'id': string;
3310
- }
3311
- /**
3312
- *
3313
- * @export
3314
- * @interface WrappedResponseServiceRequestResponse
3315
- */
3316
- export interface WrappedResponseServiceRequestResponse {
3317
- /**
3318
- *
3319
- * @type {WrappedResponseServiceRequestResponseData}
3320
- * @memberof WrappedResponseServiceRequestResponse
3321
- */
3322
- 'data': WrappedResponseServiceRequestResponseData | null;
3323
- }
3324
- /**
3325
- *
3326
- * @export
3327
- * @interface WrappedResponseServiceRequestResponseData
3328
- */
3329
- export interface WrappedResponseServiceRequestResponseData {
3330
- }
3331
3347
  /**
3332
3348
  *
3333
3349
  * @export
@@ -3468,6 +3484,41 @@ export interface WrappedResponseVisitorTokensIndexResponseDataData {
3468
3484
  */
3469
3485
  export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
3470
3486
  return {
3487
+ /**
3488
+ *
3489
+ * @param {ACRequestBody} aCRequestBody
3490
+ * @param {*} [options] Override http request option.
3491
+ * @throws {RequiredError}
3492
+ */
3493
+ acCreate: async (aCRequestBody: ACRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3494
+ // verify required parameter 'aCRequestBody' is not null or undefined
3495
+ assertParamExists('acCreate', 'aCRequestBody', aCRequestBody)
3496
+ const localVarPath = `/ac_request`;
3497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3499
+ let baseOptions;
3500
+ if (configuration) {
3501
+ baseOptions = configuration.baseOptions;
3502
+ }
3503
+
3504
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3505
+ const localVarHeaderParameter = {} as any;
3506
+ const localVarQueryParameter = {} as any;
3507
+
3508
+
3509
+
3510
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3511
+
3512
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3514
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3515
+ localVarRequestOptions.data = serializeDataIfNeeded(aCRequestBody, localVarRequestOptions, configuration)
3516
+
3517
+ return {
3518
+ url: toPathString(localVarUrlObj),
3519
+ options: localVarRequestOptions,
3520
+ };
3521
+ },
3471
3522
  /**
3472
3523
  *
3473
3524
  * @param {string} floorId
@@ -4309,6 +4360,45 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4309
4360
  options: localVarRequestOptions,
4310
4361
  };
4311
4362
  },
4363
+ /**
4364
+ *
4365
+ * @param {string} id
4366
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
4367
+ * @param {*} [options] Override http request option.
4368
+ * @throws {RequiredError}
4369
+ */
4370
+ serviceRequestsUpdate: async (id: string, serviceRequestsUpdateRequestBody: ServiceRequestsUpdateRequestBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4371
+ // verify required parameter 'id' is not null or undefined
4372
+ assertParamExists('serviceRequestsUpdate', 'id', id)
4373
+ // verify required parameter 'serviceRequestsUpdateRequestBody' is not null or undefined
4374
+ assertParamExists('serviceRequestsUpdate', 'serviceRequestsUpdateRequestBody', serviceRequestsUpdateRequestBody)
4375
+ const localVarPath = `/service_requests/{id}`
4376
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4377
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4378
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4379
+ let baseOptions;
4380
+ if (configuration) {
4381
+ baseOptions = configuration.baseOptions;
4382
+ }
4383
+
4384
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
4385
+ const localVarHeaderParameter = {} as any;
4386
+ const localVarQueryParameter = {} as any;
4387
+
4388
+
4389
+
4390
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4391
+
4392
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4393
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4394
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4395
+ localVarRequestOptions.data = serializeDataIfNeeded(serviceRequestsUpdateRequestBody, localVarRequestOptions, configuration)
4396
+
4397
+ return {
4398
+ url: toPathString(localVarUrlObj),
4399
+ options: localVarRequestOptions,
4400
+ };
4401
+ },
4312
4402
  /**
4313
4403
  *
4314
4404
  * @param {SyncBody} syncBody
@@ -4489,6 +4579,16 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4489
4579
  export const DefaultApiFp = function(configuration?: Configuration) {
4490
4580
  const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
4491
4581
  return {
4582
+ /**
4583
+ *
4584
+ * @param {ACRequestBody} aCRequestBody
4585
+ * @param {*} [options] Override http request option.
4586
+ * @throws {RequiredError}
4587
+ */
4588
+ async acCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseBoolean>> {
4589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.acCreate(aCRequestBody, options);
4590
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4591
+ },
4492
4592
  /**
4493
4593
  *
4494
4594
  * @param {string} floorId
@@ -4697,7 +4797,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4697
4797
  * @param {*} [options] Override http request option.
4698
4798
  * @throws {RequiredError}
4699
4799
  */
4700
- async serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCreateServiceRequestResponse>> {
4800
+ async serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedOneResponseCreateServiceRequestResponse>> {
4701
4801
  const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsCreate(serviceRequestBody, options);
4702
4802
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4703
4803
  },
@@ -4712,7 +4812,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4712
4812
  * @param {*} [options] Override http request option.
4713
4813
  * @throws {RequiredError}
4714
4814
  */
4715
- async serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>> {
4815
+ async serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseServiceRequestData>> {
4716
4816
  const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options);
4717
4817
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4718
4818
  },
@@ -4722,10 +4822,21 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4722
4822
  * @param {*} [options] Override http request option.
4723
4823
  * @throws {RequiredError}
4724
4824
  */
4725
- async serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestData>> {
4825
+ async serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedOneResponseServiceRequestData>> {
4726
4826
  const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsShow(id, options);
4727
4827
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4728
4828
  },
4829
+ /**
4830
+ *
4831
+ * @param {string} id
4832
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
4833
+ * @param {*} [options] Override http request option.
4834
+ * @throws {RequiredError}
4835
+ */
4836
+ async serviceRequestsUpdate(id: string, serviceRequestsUpdateRequestBody: ServiceRequestsUpdateRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedOneResponseServiceRequestData>> {
4837
+ const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options);
4838
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4839
+ },
4729
4840
  /**
4730
4841
  *
4731
4842
  * @param {SyncBody} syncBody
@@ -4786,6 +4897,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4786
4897
  export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4787
4898
  const localVarFp = DefaultApiFp(configuration)
4788
4899
  return {
4900
+ /**
4901
+ *
4902
+ * @param {ACRequestBody} aCRequestBody
4903
+ * @param {*} [options] Override http request option.
4904
+ * @throws {RequiredError}
4905
+ */
4906
+ acCreate(aCRequestBody: ACRequestBody, options?: any): AxiosPromise<WrappedResponseBoolean> {
4907
+ return localVarFp.acCreate(aCRequestBody, options).then((request) => request(axios, basePath));
4908
+ },
4789
4909
  /**
4790
4910
  *
4791
4911
  * @param {string} floorId
@@ -4975,7 +5095,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4975
5095
  * @param {*} [options] Override http request option.
4976
5096
  * @throws {RequiredError}
4977
5097
  */
4978
- serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: any): AxiosPromise<WrappedResponseCreateServiceRequestResponse> {
5098
+ serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: any): AxiosPromise<WrappedOneResponseCreateServiceRequestResponse> {
4979
5099
  return localVarFp.serviceRequestsCreate(serviceRequestBody, options).then((request) => request(axios, basePath));
4980
5100
  },
4981
5101
  /**
@@ -4989,7 +5109,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4989
5109
  * @param {*} [options] Override http request option.
4990
5110
  * @throws {RequiredError}
4991
5111
  */
4992
- serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse> {
5112
+ serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedArrayResponseServiceRequestData> {
4993
5113
  return localVarFp.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(axios, basePath));
4994
5114
  },
4995
5115
  /**
@@ -4998,9 +5118,19 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4998
5118
  * @param {*} [options] Override http request option.
4999
5119
  * @throws {RequiredError}
5000
5120
  */
5001
- serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedResponseServiceRequestData> {
5121
+ serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedOneResponseServiceRequestData> {
5002
5122
  return localVarFp.serviceRequestsShow(id, options).then((request) => request(axios, basePath));
5003
5123
  },
5124
+ /**
5125
+ *
5126
+ * @param {string} id
5127
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
5128
+ * @param {*} [options] Override http request option.
5129
+ * @throws {RequiredError}
5130
+ */
5131
+ serviceRequestsUpdate(id: string, serviceRequestsUpdateRequestBody: ServiceRequestsUpdateRequestBody, options?: any): AxiosPromise<WrappedOneResponseServiceRequestData> {
5132
+ return localVarFp.serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options).then((request) => request(axios, basePath));
5133
+ },
5004
5134
  /**
5005
5135
  *
5006
5136
  * @param {SyncBody} syncBody
@@ -5056,6 +5186,17 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
5056
5186
  * @extends {BaseAPI}
5057
5187
  */
5058
5188
  export class DefaultApi extends BaseAPI {
5189
+ /**
5190
+ *
5191
+ * @param {ACRequestBody} aCRequestBody
5192
+ * @param {*} [options] Override http request option.
5193
+ * @throws {RequiredError}
5194
+ * @memberof DefaultApi
5195
+ */
5196
+ public acCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig) {
5197
+ return DefaultApiFp(this.configuration).acCreate(aCRequestBody, options).then((request) => request(this.axios, this.basePath));
5198
+ }
5199
+
5059
5200
  /**
5060
5201
  *
5061
5202
  * @param {string} floorId
@@ -5315,6 +5456,18 @@ export class DefaultApi extends BaseAPI {
5315
5456
  return DefaultApiFp(this.configuration).serviceRequestsShow(id, options).then((request) => request(this.axios, this.basePath));
5316
5457
  }
5317
5458
 
5459
+ /**
5460
+ *
5461
+ * @param {string} id
5462
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
5463
+ * @param {*} [options] Override http request option.
5464
+ * @throws {RequiredError}
5465
+ * @memberof DefaultApi
5466
+ */
5467
+ public serviceRequestsUpdate(id: string, serviceRequestsUpdateRequestBody: ServiceRequestsUpdateRequestBody, options?: AxiosRequestConfig) {
5468
+ return DefaultApiFp(this.configuration).serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options).then((request) => request(this.axios, this.basePath));
5469
+ }
5470
+
5318
5471
  /**
5319
5472
  *
5320
5473
  * @param {SyncBody} syncBody
package/dist/api/api.d.ts CHANGED
@@ -13,6 +13,49 @@ import type { Configuration } from './configuration';
13
13
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  import type { RequestArgs } from './base';
15
15
  import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ACRequestBody
20
+ */
21
+ export interface ACRequestBody {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ACRequestBody
26
+ */
27
+ 'floor_id': string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ACRequestBody
32
+ */
33
+ 'ac_zone_id': string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ACRequestBody
38
+ */
39
+ 'tower_id': string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ACRequestBody
44
+ */
45
+ 'requester_id': string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ACRequestBody
50
+ */
51
+ 'date': string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof ACRequestBody
56
+ */
57
+ 'duration': number;
58
+ }
16
59
  /**
17
60
  *
18
61
  * @export
@@ -1687,6 +1730,44 @@ export declare const ServiceRequestStatus: {
1687
1730
  readonly Done: "done";
1688
1731
  };
1689
1732
  export type ServiceRequestStatus = typeof ServiceRequestStatus[keyof typeof ServiceRequestStatus];
1733
+ /**
1734
+ *
1735
+ * @export
1736
+ * @enum {string}
1737
+ */
1738
+ export declare const ServiceRequestStatusDone: {
1739
+ readonly Done: "done";
1740
+ };
1741
+ export type ServiceRequestStatusDone = typeof ServiceRequestStatusDone[keyof typeof ServiceRequestStatusDone];
1742
+ /**
1743
+ *
1744
+ * @export
1745
+ * @enum {string}
1746
+ */
1747
+ export declare const ServiceRequestStatusInProgress: {
1748
+ readonly InProgress: "in_progress";
1749
+ };
1750
+ export type ServiceRequestStatusInProgress = typeof ServiceRequestStatusInProgress[keyof typeof ServiceRequestStatusInProgress];
1751
+ /**
1752
+ *
1753
+ * @export
1754
+ * @interface ServiceRequestsUpdateRequestBody
1755
+ */
1756
+ export interface ServiceRequestsUpdateRequestBody {
1757
+ /**
1758
+ *
1759
+ * @type {ServiceRequestsUpdateRequestBodyStatus}
1760
+ * @memberof ServiceRequestsUpdateRequestBody
1761
+ */
1762
+ 'status': ServiceRequestsUpdateRequestBodyStatus;
1763
+ }
1764
+ /**
1765
+ *
1766
+ * @export
1767
+ * @interface ServiceRequestsUpdateRequestBodyStatus
1768
+ */
1769
+ export interface ServiceRequestsUpdateRequestBodyStatus {
1770
+ }
1690
1771
  /**
1691
1772
  *
1692
1773
  * @export
@@ -2599,6 +2680,45 @@ export interface WrappedArrayResponseSensorsIndexResponseData {
2599
2680
  */
2600
2681
  'data': Array<FloorSensorData>;
2601
2682
  }
2683
+ /**
2684
+ *
2685
+ * @export
2686
+ * @interface WrappedArrayResponseServiceRequestData
2687
+ */
2688
+ export interface WrappedArrayResponseServiceRequestData {
2689
+ /**
2690
+ *
2691
+ * @type {Array<ServiceRequestData>}
2692
+ * @memberof WrappedArrayResponseServiceRequestData
2693
+ */
2694
+ 'data': Array<ServiceRequestData>;
2695
+ }
2696
+ /**
2697
+ *
2698
+ * @export
2699
+ * @interface WrappedOneResponseCreateServiceRequestResponse
2700
+ */
2701
+ export interface WrappedOneResponseCreateServiceRequestResponse {
2702
+ /**
2703
+ *
2704
+ * @type {CreateServiceRequestResponse}
2705
+ * @memberof WrappedOneResponseCreateServiceRequestResponse
2706
+ */
2707
+ 'data': CreateServiceRequestResponse;
2708
+ }
2709
+ /**
2710
+ *
2711
+ * @export
2712
+ * @interface WrappedOneResponseServiceRequestData
2713
+ */
2714
+ export interface WrappedOneResponseServiceRequestData {
2715
+ /**
2716
+ *
2717
+ * @type {ServiceRequestData}
2718
+ * @memberof WrappedOneResponseServiceRequestData
2719
+ */
2720
+ 'data': ServiceRequestData;
2721
+ }
2602
2722
  /**
2603
2723
  *
2604
2724
  * @export
@@ -2655,6 +2775,26 @@ export interface WrappedResponseACZoneDataData {
2655
2775
  */
2656
2776
  'id': string;
2657
2777
  }
2778
+ /**
2779
+ *
2780
+ * @export
2781
+ * @interface WrappedResponseBoolean
2782
+ */
2783
+ export interface WrappedResponseBoolean {
2784
+ /**
2785
+ *
2786
+ * @type {WrappedResponseBooleanData}
2787
+ * @memberof WrappedResponseBoolean
2788
+ */
2789
+ 'data': WrappedResponseBooleanData | null;
2790
+ }
2791
+ /**
2792
+ *
2793
+ * @export
2794
+ * @interface WrappedResponseBooleanData
2795
+ */
2796
+ export interface WrappedResponseBooleanData {
2797
+ }
2658
2798
  /**
2659
2799
  *
2660
2800
  * @export
@@ -2743,32 +2883,6 @@ export interface WrappedResponseCommandsIndexResponse {
2743
2883
  */
2744
2884
  export interface WrappedResponseCommandsIndexResponseData {
2745
2885
  }
2746
- /**
2747
- *
2748
- * @export
2749
- * @interface WrappedResponseCreateServiceRequestResponse
2750
- */
2751
- export interface WrappedResponseCreateServiceRequestResponse {
2752
- /**
2753
- *
2754
- * @type {WrappedResponseCreateServiceRequestResponseData}
2755
- * @memberof WrappedResponseCreateServiceRequestResponse
2756
- */
2757
- 'data': WrappedResponseCreateServiceRequestResponseData | null;
2758
- }
2759
- /**
2760
- *
2761
- * @export
2762
- * @interface WrappedResponseCreateServiceRequestResponseData
2763
- */
2764
- export interface WrappedResponseCreateServiceRequestResponseData {
2765
- /**
2766
- *
2767
- * @type {string}
2768
- * @memberof WrappedResponseCreateServiceRequestResponseData
2769
- */
2770
- 'id': string;
2771
- }
2772
2886
  /**
2773
2887
  *
2774
2888
  * @export
@@ -3190,112 +3304,6 @@ export declare const WrappedResponsePassConsentResponseDataStatusEnum: {
3190
3304
  readonly Confirmed: "confirmed";
3191
3305
  };
3192
3306
  export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
3193
- /**
3194
- *
3195
- * @export
3196
- * @interface WrappedResponseServiceRequestData
3197
- */
3198
- export interface WrappedResponseServiceRequestData {
3199
- /**
3200
- *
3201
- * @type {WrappedResponseServiceRequestDataData}
3202
- * @memberof WrappedResponseServiceRequestData
3203
- */
3204
- 'data': WrappedResponseServiceRequestDataData | null;
3205
- }
3206
- /**
3207
- *
3208
- * @export
3209
- * @interface WrappedResponseServiceRequestDataData
3210
- */
3211
- export interface WrappedResponseServiceRequestDataData {
3212
- /**
3213
- *
3214
- * @type {string}
3215
- * @memberof WrappedResponseServiceRequestDataData
3216
- */
3217
- 'updated_at': string;
3218
- /**
3219
- *
3220
- * @type {string}
3221
- * @memberof WrappedResponseServiceRequestDataData
3222
- */
3223
- 'created_at': string;
3224
- /**
3225
- *
3226
- * @type {string}
3227
- * @memberof WrappedResponseServiceRequestDataData
3228
- */
3229
- 'description': string;
3230
- /**
3231
- *
3232
- * @type {string}
3233
- * @memberof WrappedResponseServiceRequestDataData
3234
- */
3235
- 'status': string;
3236
- /**
3237
- *
3238
- * @type {string}
3239
- * @memberof WrappedResponseServiceRequestDataData
3240
- */
3241
- 'title': string;
3242
- /**
3243
- *
3244
- * @type {string}
3245
- * @memberof WrappedResponseServiceRequestDataData
3246
- */
3247
- 'requester_id': string;
3248
- /**
3249
- *
3250
- * @type {IssueTypeData}
3251
- * @memberof WrappedResponseServiceRequestDataData
3252
- */
3253
- 'issue_type': IssueTypeData;
3254
- /**
3255
- *
3256
- * @type {FloorData}
3257
- * @memberof WrappedResponseServiceRequestDataData
3258
- */
3259
- 'floor': FloorData;
3260
- /**
3261
- *
3262
- * @type {TowerData}
3263
- * @memberof WrappedResponseServiceRequestDataData
3264
- */
3265
- 'tower': TowerData;
3266
- /**
3267
- *
3268
- * @type {Array<string>}
3269
- * @memberof WrappedResponseServiceRequestDataData
3270
- */
3271
- 'image_url': Array<string>;
3272
- /**
3273
- *
3274
- * @type {string}
3275
- * @memberof WrappedResponseServiceRequestDataData
3276
- */
3277
- 'id': string;
3278
- }
3279
- /**
3280
- *
3281
- * @export
3282
- * @interface WrappedResponseServiceRequestResponse
3283
- */
3284
- export interface WrappedResponseServiceRequestResponse {
3285
- /**
3286
- *
3287
- * @type {WrappedResponseServiceRequestResponseData}
3288
- * @memberof WrappedResponseServiceRequestResponse
3289
- */
3290
- 'data': WrappedResponseServiceRequestResponseData | null;
3291
- }
3292
- /**
3293
- *
3294
- * @export
3295
- * @interface WrappedResponseServiceRequestResponseData
3296
- */
3297
- export interface WrappedResponseServiceRequestResponseData {
3298
- }
3299
3307
  /**
3300
3308
  *
3301
3309
  * @export
@@ -3434,6 +3442,13 @@ export interface WrappedResponseVisitorTokensIndexResponseDataData {
3434
3442
  * @export
3435
3443
  */
3436
3444
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
3445
+ /**
3446
+ *
3447
+ * @param {ACRequestBody} aCRequestBody
3448
+ * @param {*} [options] Override http request option.
3449
+ * @throws {RequiredError}
3450
+ */
3451
+ acCreate: (aCRequestBody: ACRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3437
3452
  /**
3438
3453
  *
3439
3454
  * @param {string} floorId
@@ -3605,6 +3620,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3605
3620
  * @throws {RequiredError}
3606
3621
  */
3607
3622
  serviceRequestsShow: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3623
+ /**
3624
+ *
3625
+ * @param {string} id
3626
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
3627
+ * @param {*} [options] Override http request option.
3628
+ * @throws {RequiredError}
3629
+ */
3630
+ serviceRequestsUpdate: (id: string, serviceRequestsUpdateRequestBody: ServiceRequestsUpdateRequestBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3608
3631
  /**
3609
3632
  *
3610
3633
  * @param {SyncBody} syncBody
@@ -3646,6 +3669,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3646
3669
  * @export
3647
3670
  */
3648
3671
  export declare const DefaultApiFp: (configuration?: Configuration) => {
3672
+ /**
3673
+ *
3674
+ * @param {ACRequestBody} aCRequestBody
3675
+ * @param {*} [options] Override http request option.
3676
+ * @throws {RequiredError}
3677
+ */
3678
+ acCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseBoolean>>;
3649
3679
  /**
3650
3680
  *
3651
3681
  * @param {string} floorId
@@ -3797,7 +3827,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3797
3827
  * @param {*} [options] Override http request option.
3798
3828
  * @throws {RequiredError}
3799
3829
  */
3800
- serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseCreateServiceRequestResponse>>;
3830
+ serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedOneResponseCreateServiceRequestResponse>>;
3801
3831
  /**
3802
3832
  *
3803
3833
  * @param {string} [requesterId]
@@ -3809,14 +3839,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3809
3839
  * @param {*} [options] Override http request option.
3810
3840
  * @throws {RequiredError}
3811
3841
  */
3812
- serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>>;
3842
+ serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedArrayResponseServiceRequestData>>;
3813
3843
  /**
3814
3844
  *
3815
3845
  * @param {string} id
3816
3846
  * @param {*} [options] Override http request option.
3817
3847
  * @throws {RequiredError}
3818
3848
  */
3819
- serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestData>>;
3849
+ serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedOneResponseServiceRequestData>>;
3850
+ /**
3851
+ *
3852
+ * @param {string} id
3853
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
3854
+ * @param {*} [options] Override http request option.
3855
+ * @throws {RequiredError}
3856
+ */
3857
+ serviceRequestsUpdate(id: string, serviceRequestsUpdateRequestBody: ServiceRequestsUpdateRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedOneResponseServiceRequestData>>;
3820
3858
  /**
3821
3859
  *
3822
3860
  * @param {SyncBody} syncBody
@@ -3858,6 +3896,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3858
3896
  * @export
3859
3897
  */
3860
3898
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3899
+ /**
3900
+ *
3901
+ * @param {ACRequestBody} aCRequestBody
3902
+ * @param {*} [options] Override http request option.
3903
+ * @throws {RequiredError}
3904
+ */
3905
+ acCreate(aCRequestBody: ACRequestBody, options?: any): AxiosPromise<WrappedResponseBoolean>;
3861
3906
  /**
3862
3907
  *
3863
3908
  * @param {string} floorId
@@ -4009,7 +4054,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
4009
4054
  * @param {*} [options] Override http request option.
4010
4055
  * @throws {RequiredError}
4011
4056
  */
4012
- serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: any): AxiosPromise<WrappedResponseCreateServiceRequestResponse>;
4057
+ serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: any): AxiosPromise<WrappedOneResponseCreateServiceRequestResponse>;
4013
4058
  /**
4014
4059
  *
4015
4060
  * @param {string} [requesterId]
@@ -4021,14 +4066,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
4021
4066
  * @param {*} [options] Override http request option.
4022
4067
  * @throws {RequiredError}
4023
4068
  */
4024
- serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse>;
4069
+ serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedArrayResponseServiceRequestData>;
4070
+ /**
4071
+ *
4072
+ * @param {string} id
4073
+ * @param {*} [options] Override http request option.
4074
+ * @throws {RequiredError}
4075
+ */
4076
+ serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedOneResponseServiceRequestData>;
4025
4077
  /**
4026
4078
  *
4027
4079
  * @param {string} id
4080
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
4028
4081
  * @param {*} [options] Override http request option.
4029
4082
  * @throws {RequiredError}
4030
4083
  */
4031
- serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedResponseServiceRequestData>;
4084
+ serviceRequestsUpdate(id: string, serviceRequestsUpdateRequestBody: ServiceRequestsUpdateRequestBody, options?: any): AxiosPromise<WrappedOneResponseServiceRequestData>;
4032
4085
  /**
4033
4086
  *
4034
4087
  * @param {SyncBody} syncBody
@@ -4072,6 +4125,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
4072
4125
  * @extends {BaseAPI}
4073
4126
  */
4074
4127
  export declare class DefaultApi extends BaseAPI {
4128
+ /**
4129
+ *
4130
+ * @param {ACRequestBody} aCRequestBody
4131
+ * @param {*} [options] Override http request option.
4132
+ * @throws {RequiredError}
4133
+ * @memberof DefaultApi
4134
+ */
4135
+ acCreate(aCRequestBody: ACRequestBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseBoolean, any>>;
4075
4136
  /**
4076
4137
  *
4077
4138
  * @param {string} floorId
@@ -4243,7 +4304,7 @@ export declare class DefaultApi extends BaseAPI {
4243
4304
  * @throws {RequiredError}
4244
4305
  * @memberof DefaultApi
4245
4306
  */
4246
- serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseCreateServiceRequestResponse, any>>;
4307
+ serviceRequestsCreate(serviceRequestBody: ServiceRequestBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedOneResponseCreateServiceRequestResponse, any>>;
4247
4308
  /**
4248
4309
  *
4249
4310
  * @param {string} [requesterId]
@@ -4256,15 +4317,24 @@ export declare class DefaultApi extends BaseAPI {
4256
4317
  * @throws {RequiredError}
4257
4318
  * @memberof DefaultApi
4258
4319
  */
4259
- serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestResponse, any>>;
4320
+ serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedArrayResponseServiceRequestData, any>>;
4321
+ /**
4322
+ *
4323
+ * @param {string} id
4324
+ * @param {*} [options] Override http request option.
4325
+ * @throws {RequiredError}
4326
+ * @memberof DefaultApi
4327
+ */
4328
+ serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedOneResponseServiceRequestData, any>>;
4260
4329
  /**
4261
4330
  *
4262
4331
  * @param {string} id
4332
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
4263
4333
  * @param {*} [options] Override http request option.
4264
4334
  * @throws {RequiredError}
4265
4335
  * @memberof DefaultApi
4266
4336
  */
4267
- serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestData, any>>;
4337
+ serviceRequestsUpdate(id: string, serviceRequestsUpdateRequestBody: ServiceRequestsUpdateRequestBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedOneResponseServiceRequestData, any>>;
4268
4338
  /**
4269
4339
  *
4270
4340
  * @param {SyncBody} syncBody
package/dist/api/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.ParkingTicketsIndexTypeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.ServiceRequestStatus = exports.SensorType = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = exports.ParkingTicketsIndexQueryTypeEnum = void 0;
28
+ exports.ParkingTicketsIndexTypeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.ServiceRequestStatusInProgress = exports.ServiceRequestStatusDone = exports.ServiceRequestStatus = exports.SensorType = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = exports.ParkingTicketsIndexQueryTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -67,6 +67,22 @@ exports.ServiceRequestStatus = {
67
67
  InProgress: 'in_progress',
68
68
  Done: 'done'
69
69
  };
70
+ /**
71
+ *
72
+ * @export
73
+ * @enum {string}
74
+ */
75
+ exports.ServiceRequestStatusDone = {
76
+ Done: 'done'
77
+ };
78
+ /**
79
+ *
80
+ * @export
81
+ * @enum {string}
82
+ */
83
+ exports.ServiceRequestStatusInProgress = {
84
+ InProgress: 'in_progress'
85
+ };
70
86
  exports.ShowPassResponseStatusEnum = {
71
87
  Pending: 'pending',
72
88
  Confirmed: 'confirmed'
@@ -84,6 +100,35 @@ exports.WrappedResponsePassConsentResponseDataStatusEnum = {
84
100
  */
85
101
  const DefaultApiAxiosParamCreator = function (configuration) {
86
102
  return {
103
+ /**
104
+ *
105
+ * @param {ACRequestBody} aCRequestBody
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ acCreate: (aCRequestBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
110
+ // verify required parameter 'aCRequestBody' is not null or undefined
111
+ (0, common_1.assertParamExists)('acCreate', 'aCRequestBody', aCRequestBody);
112
+ const localVarPath = `/ac_request`;
113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
114
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
115
+ let baseOptions;
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ }
119
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
120
+ const localVarHeaderParameter = {};
121
+ const localVarQueryParameter = {};
122
+ localVarHeaderParameter['Content-Type'] = 'application/json';
123
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
126
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aCRequestBody, localVarRequestOptions, configuration);
127
+ return {
128
+ url: (0, common_1.toPathString)(localVarUrlObj),
129
+ options: localVarRequestOptions,
130
+ };
131
+ }),
87
132
  /**
88
133
  *
89
134
  * @param {string} floorId
@@ -786,6 +831,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
786
831
  options: localVarRequestOptions,
787
832
  };
788
833
  }),
834
+ /**
835
+ *
836
+ * @param {string} id
837
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ serviceRequestsUpdate: (id, serviceRequestsUpdateRequestBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
842
+ // verify required parameter 'id' is not null or undefined
843
+ (0, common_1.assertParamExists)('serviceRequestsUpdate', 'id', id);
844
+ // verify required parameter 'serviceRequestsUpdateRequestBody' is not null or undefined
845
+ (0, common_1.assertParamExists)('serviceRequestsUpdate', 'serviceRequestsUpdateRequestBody', serviceRequestsUpdateRequestBody);
846
+ const localVarPath = `/service_requests/{id}`
847
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
848
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
849
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
850
+ let baseOptions;
851
+ if (configuration) {
852
+ baseOptions = configuration.baseOptions;
853
+ }
854
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
855
+ const localVarHeaderParameter = {};
856
+ const localVarQueryParameter = {};
857
+ localVarHeaderParameter['Content-Type'] = 'application/json';
858
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
859
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
860
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
861
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(serviceRequestsUpdateRequestBody, localVarRequestOptions, configuration);
862
+ return {
863
+ url: (0, common_1.toPathString)(localVarUrlObj),
864
+ options: localVarRequestOptions,
865
+ };
866
+ }),
789
867
  /**
790
868
  *
791
869
  * @param {SyncBody} syncBody
@@ -938,6 +1016,18 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
938
1016
  const DefaultApiFp = function (configuration) {
939
1017
  const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
940
1018
  return {
1019
+ /**
1020
+ *
1021
+ * @param {ACRequestBody} aCRequestBody
1022
+ * @param {*} [options] Override http request option.
1023
+ * @throws {RequiredError}
1024
+ */
1025
+ acCreate(aCRequestBody, options) {
1026
+ return __awaiter(this, void 0, void 0, function* () {
1027
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acCreate(aCRequestBody, options);
1028
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1029
+ });
1030
+ },
941
1031
  /**
942
1032
  *
943
1033
  * @param {string} floorId
@@ -1219,6 +1309,19 @@ const DefaultApiFp = function (configuration) {
1219
1309
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1220
1310
  });
1221
1311
  },
1312
+ /**
1313
+ *
1314
+ * @param {string} id
1315
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
1316
+ * @param {*} [options] Override http request option.
1317
+ * @throws {RequiredError}
1318
+ */
1319
+ serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options) {
1320
+ return __awaiter(this, void 0, void 0, function* () {
1321
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options);
1322
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1323
+ });
1324
+ },
1222
1325
  /**
1223
1326
  *
1224
1327
  * @param {SyncBody} syncBody
@@ -1289,6 +1392,15 @@ exports.DefaultApiFp = DefaultApiFp;
1289
1392
  const DefaultApiFactory = function (configuration, basePath, axios) {
1290
1393
  const localVarFp = (0, exports.DefaultApiFp)(configuration);
1291
1394
  return {
1395
+ /**
1396
+ *
1397
+ * @param {ACRequestBody} aCRequestBody
1398
+ * @param {*} [options] Override http request option.
1399
+ * @throws {RequiredError}
1400
+ */
1401
+ acCreate(aCRequestBody, options) {
1402
+ return localVarFp.acCreate(aCRequestBody, options).then((request) => request(axios, basePath));
1403
+ },
1292
1404
  /**
1293
1405
  *
1294
1406
  * @param {string} floorId
@@ -1504,6 +1616,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1504
1616
  serviceRequestsShow(id, options) {
1505
1617
  return localVarFp.serviceRequestsShow(id, options).then((request) => request(axios, basePath));
1506
1618
  },
1619
+ /**
1620
+ *
1621
+ * @param {string} id
1622
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
1623
+ * @param {*} [options] Override http request option.
1624
+ * @throws {RequiredError}
1625
+ */
1626
+ serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options) {
1627
+ return localVarFp.serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options).then((request) => request(axios, basePath));
1628
+ },
1507
1629
  /**
1508
1630
  *
1509
1631
  * @param {SyncBody} syncBody
@@ -1559,6 +1681,16 @@ exports.DefaultApiFactory = DefaultApiFactory;
1559
1681
  * @extends {BaseAPI}
1560
1682
  */
1561
1683
  class DefaultApi extends base_1.BaseAPI {
1684
+ /**
1685
+ *
1686
+ * @param {ACRequestBody} aCRequestBody
1687
+ * @param {*} [options] Override http request option.
1688
+ * @throws {RequiredError}
1689
+ * @memberof DefaultApi
1690
+ */
1691
+ acCreate(aCRequestBody, options) {
1692
+ return (0, exports.DefaultApiFp)(this.configuration).acCreate(aCRequestBody, options).then((request) => request(this.axios, this.basePath));
1693
+ }
1562
1694
  /**
1563
1695
  *
1564
1696
  * @param {string} floorId
@@ -1796,6 +1928,17 @@ class DefaultApi extends base_1.BaseAPI {
1796
1928
  serviceRequestsShow(id, options) {
1797
1929
  return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsShow(id, options).then((request) => request(this.axios, this.basePath));
1798
1930
  }
1931
+ /**
1932
+ *
1933
+ * @param {string} id
1934
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
1935
+ * @param {*} [options] Override http request option.
1936
+ * @throws {RequiredError}
1937
+ * @memberof DefaultApi
1938
+ */
1939
+ serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options) {
1940
+ return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options).then((request) => request(this.axios, this.basePath));
1941
+ }
1799
1942
  /**
1800
1943
  *
1801
1944
  * @param {SyncBody} syncBody
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
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,19 @@
1
+ import * as OB_BMS_SDK from './index';
2
+
3
+ // OB_BMS_SDK.setAcessToken('789');
4
+ OB_BMS_SDK.setBaseUrl('https://dev.glorymtel.xyz/ob-bms');
5
+ OB_BMS_SDK.setAcessToken(
6
+ 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJpYXQiOjE2OTg5MzU2ODcsImV4cCI6MTcwMTUyNzY4NywicGVybWlzc2lvbiI6W3siaWQiOiJmY2Q1NDZmYy1lNThmLTQ2MjctOTU5Yy1jNWFlYTljMGQ0ODMiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOmFjY291bnQiLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJyZWFkIiwidXBkYXRlIiwiZGVsZXRlIl0sInJlc291cmNlX3R5cGUiOiJhY2NvdW50IiwicmVzb3VyY2UiOnsiaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfSx7ImlkIjoiNWY0MDlmYzYtNDRkMi00YzQyLThhOGYtYzFiNTQ1MWZjODZiIiwicGVybWl0dGVlX3R5cGUiOiJhY2NvdW50IiwidmFsdWUiOnsibmFtZSI6Im9iLWlhbTpwcm9maWxlIiwic2VydmljZSI6Im9iLWlhbSIsImFjdGlvbnMiOlsicmVhZCIsInVwZGF0ZSJdLCJyZXNvdXJjZV90eXBlIjoicHJvZmlsZSIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfSx7ImlkIjoiMDNlM2MxODctOTY3NC00MTdiLThjOGMtNDBmNGE0MjEyMDlkIiwicGVybWl0dGVlX3R5cGUiOiJhY2NvdW50IiwidmFsdWUiOnsibmFtZSI6Im9iLWlhbTppZGVudGl0eSIsInNlcnZpY2UiOiJvYi1pYW0iLCJhY3Rpb25zIjpbIioiXSwicmVzb3VyY2VfdHlwZSI6ImlkZW50aXR5IiwicmVzb3VyY2UiOnsiYWNjb3VudF9pZCI6InNlbGYifX0sImNyZWF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJ1cGRhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwiZGVsZXRlZF9hdCI6bnVsbCwiYWNjb3VudF9pZCI6IjgyNDI3MDVmLTM1YjUtNGQ3MS04ZTE5LWM1YTQxYWMyZTBhNCIsImFjY291bnRfZ3JvdXBfaWQiOm51bGx9LHsiaWQiOiIzMjU0MTEyNi00Nzc2LTQ0NzYtOTc5MS1mYjZhNjA2ZWUxNDIiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOnNldHRpbmciLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJ1cGRhdGUiXSwicmVzb3VyY2VfdHlwZSI6InNldHRpbmciLCJyZXNvdXJjZSI6eyJhY2NvdW50X2lkIjoic2VsZiJ9fSwiY3JlYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsInVwZGF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.tfqYJop4iJNlIbBVztf7DFfVhaYAFnUGDhLjik2OGA4',
7
+ );
8
+ (async () => {
9
+ try {
10
+ const res = await OB_BMS_SDK.client.sensorsIndex(
11
+ 'f1140a6a-2923-4527-a126-27c8323bf5ee',
12
+ '72b292b5-e926-48d3-8b43-75f19eed6003',
13
+ );
14
+ console.log({ res });
15
+ console.dir({ x: res.data.data[0] }, { depth: null });
16
+ } catch (err) {
17
+ console.log(err);
18
+ }
19
+ })();