ob-bms-sdk 0.0.67 → 0.0.69

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/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,107 @@ 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
+ acRequestCreate: (aCRequestBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
110
+ // verify required parameter 'aCRequestBody' is not null or undefined
111
+ (0, common_1.assertParamExists)('acRequestCreate', '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
+ }),
132
+ /**
133
+ *
134
+ * @param {string} [requesterId]
135
+ * @param {string} [orderBy]
136
+ * @param {string} [orderDirection]
137
+ * @param {number} [pageNumber]
138
+ * @param {number} [pageSize]
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ acRequestIndex: (requesterId, orderBy, orderDirection, pageNumber, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
143
+ const localVarPath = `/ac_request`;
144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
145
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
146
+ let baseOptions;
147
+ if (configuration) {
148
+ baseOptions = configuration.baseOptions;
149
+ }
150
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
151
+ const localVarHeaderParameter = {};
152
+ const localVarQueryParameter = {};
153
+ if (requesterId !== undefined) {
154
+ localVarQueryParameter['requester_id'] = requesterId;
155
+ }
156
+ if (orderBy !== undefined) {
157
+ localVarQueryParameter['order_by'] = orderBy;
158
+ }
159
+ if (orderDirection !== undefined) {
160
+ localVarQueryParameter['order_direction'] = orderDirection;
161
+ }
162
+ if (pageNumber !== undefined) {
163
+ localVarQueryParameter['page_number'] = pageNumber;
164
+ }
165
+ if (pageSize !== undefined) {
166
+ localVarQueryParameter['page_size'] = pageSize;
167
+ }
168
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
171
+ return {
172
+ url: (0, common_1.toPathString)(localVarUrlObj),
173
+ options: localVarRequestOptions,
174
+ };
175
+ }),
176
+ /**
177
+ *
178
+ * @param {string} id
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ acRequestShow: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
183
+ // verify required parameter 'id' is not null or undefined
184
+ (0, common_1.assertParamExists)('acRequestShow', 'id', id);
185
+ const localVarPath = `/ac_request/{id}`
186
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
187
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
188
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
189
+ let baseOptions;
190
+ if (configuration) {
191
+ baseOptions = configuration.baseOptions;
192
+ }
193
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
194
+ const localVarHeaderParameter = {};
195
+ const localVarQueryParameter = {};
196
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
198
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
199
+ return {
200
+ url: (0, common_1.toPathString)(localVarUrlObj),
201
+ options: localVarRequestOptions,
202
+ };
203
+ }),
87
204
  /**
88
205
  *
89
206
  * @param {string} floorId
@@ -786,6 +903,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
786
903
  options: localVarRequestOptions,
787
904
  };
788
905
  }),
906
+ /**
907
+ *
908
+ * @param {string} id
909
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
910
+ * @param {*} [options] Override http request option.
911
+ * @throws {RequiredError}
912
+ */
913
+ serviceRequestsUpdate: (id, serviceRequestsUpdateRequestBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
914
+ // verify required parameter 'id' is not null or undefined
915
+ (0, common_1.assertParamExists)('serviceRequestsUpdate', 'id', id);
916
+ // verify required parameter 'serviceRequestsUpdateRequestBody' is not null or undefined
917
+ (0, common_1.assertParamExists)('serviceRequestsUpdate', 'serviceRequestsUpdateRequestBody', serviceRequestsUpdateRequestBody);
918
+ const localVarPath = `/service_requests/{id}`
919
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
920
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
921
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
922
+ let baseOptions;
923
+ if (configuration) {
924
+ baseOptions = configuration.baseOptions;
925
+ }
926
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
927
+ const localVarHeaderParameter = {};
928
+ const localVarQueryParameter = {};
929
+ localVarHeaderParameter['Content-Type'] = 'application/json';
930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
932
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
933
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(serviceRequestsUpdateRequestBody, localVarRequestOptions, configuration);
934
+ return {
935
+ url: (0, common_1.toPathString)(localVarUrlObj),
936
+ options: localVarRequestOptions,
937
+ };
938
+ }),
789
939
  /**
790
940
  *
791
941
  * @param {SyncBody} syncBody
@@ -938,6 +1088,46 @@ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
938
1088
  const DefaultApiFp = function (configuration) {
939
1089
  const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
940
1090
  return {
1091
+ /**
1092
+ *
1093
+ * @param {ACRequestBody} aCRequestBody
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ */
1097
+ acRequestCreate(aCRequestBody, options) {
1098
+ return __awaiter(this, void 0, void 0, function* () {
1099
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acRequestCreate(aCRequestBody, options);
1100
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1101
+ });
1102
+ },
1103
+ /**
1104
+ *
1105
+ * @param {string} [requesterId]
1106
+ * @param {string} [orderBy]
1107
+ * @param {string} [orderDirection]
1108
+ * @param {number} [pageNumber]
1109
+ * @param {number} [pageSize]
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ */
1113
+ acRequestIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, options) {
1114
+ return __awaiter(this, void 0, void 0, function* () {
1115
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acRequestIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, options);
1116
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1117
+ });
1118
+ },
1119
+ /**
1120
+ *
1121
+ * @param {string} id
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ acRequestShow(id, options) {
1126
+ return __awaiter(this, void 0, void 0, function* () {
1127
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acRequestShow(id, options);
1128
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1129
+ });
1130
+ },
941
1131
  /**
942
1132
  *
943
1133
  * @param {string} floorId
@@ -1219,6 +1409,19 @@ const DefaultApiFp = function (configuration) {
1219
1409
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1220
1410
  });
1221
1411
  },
1412
+ /**
1413
+ *
1414
+ * @param {string} id
1415
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
1416
+ * @param {*} [options] Override http request option.
1417
+ * @throws {RequiredError}
1418
+ */
1419
+ serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options) {
1420
+ return __awaiter(this, void 0, void 0, function* () {
1421
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options);
1422
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1423
+ });
1424
+ },
1222
1425
  /**
1223
1426
  *
1224
1427
  * @param {SyncBody} syncBody
@@ -1289,6 +1492,37 @@ exports.DefaultApiFp = DefaultApiFp;
1289
1492
  const DefaultApiFactory = function (configuration, basePath, axios) {
1290
1493
  const localVarFp = (0, exports.DefaultApiFp)(configuration);
1291
1494
  return {
1495
+ /**
1496
+ *
1497
+ * @param {ACRequestBody} aCRequestBody
1498
+ * @param {*} [options] Override http request option.
1499
+ * @throws {RequiredError}
1500
+ */
1501
+ acRequestCreate(aCRequestBody, options) {
1502
+ return localVarFp.acRequestCreate(aCRequestBody, options).then((request) => request(axios, basePath));
1503
+ },
1504
+ /**
1505
+ *
1506
+ * @param {string} [requesterId]
1507
+ * @param {string} [orderBy]
1508
+ * @param {string} [orderDirection]
1509
+ * @param {number} [pageNumber]
1510
+ * @param {number} [pageSize]
1511
+ * @param {*} [options] Override http request option.
1512
+ * @throws {RequiredError}
1513
+ */
1514
+ acRequestIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, options) {
1515
+ return localVarFp.acRequestIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, options).then((request) => request(axios, basePath));
1516
+ },
1517
+ /**
1518
+ *
1519
+ * @param {string} id
1520
+ * @param {*} [options] Override http request option.
1521
+ * @throws {RequiredError}
1522
+ */
1523
+ acRequestShow(id, options) {
1524
+ return localVarFp.acRequestShow(id, options).then((request) => request(axios, basePath));
1525
+ },
1292
1526
  /**
1293
1527
  *
1294
1528
  * @param {string} floorId
@@ -1504,6 +1738,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1504
1738
  serviceRequestsShow(id, options) {
1505
1739
  return localVarFp.serviceRequestsShow(id, options).then((request) => request(axios, basePath));
1506
1740
  },
1741
+ /**
1742
+ *
1743
+ * @param {string} id
1744
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
1745
+ * @param {*} [options] Override http request option.
1746
+ * @throws {RequiredError}
1747
+ */
1748
+ serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options) {
1749
+ return localVarFp.serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options).then((request) => request(axios, basePath));
1750
+ },
1507
1751
  /**
1508
1752
  *
1509
1753
  * @param {SyncBody} syncBody
@@ -1559,6 +1803,40 @@ exports.DefaultApiFactory = DefaultApiFactory;
1559
1803
  * @extends {BaseAPI}
1560
1804
  */
1561
1805
  class DefaultApi extends base_1.BaseAPI {
1806
+ /**
1807
+ *
1808
+ * @param {ACRequestBody} aCRequestBody
1809
+ * @param {*} [options] Override http request option.
1810
+ * @throws {RequiredError}
1811
+ * @memberof DefaultApi
1812
+ */
1813
+ acRequestCreate(aCRequestBody, options) {
1814
+ return (0, exports.DefaultApiFp)(this.configuration).acRequestCreate(aCRequestBody, options).then((request) => request(this.axios, this.basePath));
1815
+ }
1816
+ /**
1817
+ *
1818
+ * @param {string} [requesterId]
1819
+ * @param {string} [orderBy]
1820
+ * @param {string} [orderDirection]
1821
+ * @param {number} [pageNumber]
1822
+ * @param {number} [pageSize]
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ * @memberof DefaultApi
1826
+ */
1827
+ acRequestIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, options) {
1828
+ return (0, exports.DefaultApiFp)(this.configuration).acRequestIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, options).then((request) => request(this.axios, this.basePath));
1829
+ }
1830
+ /**
1831
+ *
1832
+ * @param {string} id
1833
+ * @param {*} [options] Override http request option.
1834
+ * @throws {RequiredError}
1835
+ * @memberof DefaultApi
1836
+ */
1837
+ acRequestShow(id, options) {
1838
+ return (0, exports.DefaultApiFp)(this.configuration).acRequestShow(id, options).then((request) => request(this.axios, this.basePath));
1839
+ }
1562
1840
  /**
1563
1841
  *
1564
1842
  * @param {string} floorId
@@ -1796,6 +2074,17 @@ class DefaultApi extends base_1.BaseAPI {
1796
2074
  serviceRequestsShow(id, options) {
1797
2075
  return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsShow(id, options).then((request) => request(this.axios, this.basePath));
1798
2076
  }
2077
+ /**
2078
+ *
2079
+ * @param {string} id
2080
+ * @param {ServiceRequestsUpdateRequestBody} serviceRequestsUpdateRequestBody
2081
+ * @param {*} [options] Override http request option.
2082
+ * @throws {RequiredError}
2083
+ * @memberof DefaultApi
2084
+ */
2085
+ serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options) {
2086
+ return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsUpdate(id, serviceRequestsUpdateRequestBody, options).then((request) => request(this.axios, this.basePath));
2087
+ }
1799
2088
  /**
1800
2089
  *
1801
2090
  * @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.69",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"