@gizone/rrs-client 4.2.0-alpha.274 → 4.2.0-alpha.276

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.
@@ -22,8 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
- import type { ExcelUploadBO } from '../models';
26
- // @ts-ignore
27
25
  import type { FunctionalAreaEnum } from '../models';
28
26
  // @ts-ignore
29
27
  import type { IotDeviceStatusEnum } from '../models';
@@ -158,13 +156,13 @@ export const SurveillanceApiAxiosParamCreator = function (configuration?: Config
158
156
  /**
159
157
  * 批量导入-上传文件
160
158
  * @summary 批量导入-上传
161
- * @param {ExcelUploadBO} bo
159
+ * @param {File} file
162
160
  * @param {*} [options] Override http request option.
163
161
  * @throws {RequiredError}
164
162
  */
165
- surveillanceBatchImportUpload: async (bo: ExcelUploadBO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
166
- // verify required parameter 'bo' is not null or undefined
167
- assertParamExists('surveillanceBatchImportUpload', 'bo', bo)
163
+ surveillanceBatchImportUpload: async (file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
164
+ // verify required parameter 'file' is not null or undefined
165
+ assertParamExists('surveillanceBatchImportUpload', 'file', file)
168
166
  const localVarPath = `/gizone/surveillance/batchImport/upload`;
169
167
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
168
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -176,22 +174,24 @@ export const SurveillanceApiAxiosParamCreator = function (configuration?: Config
176
174
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
177
175
  const localVarHeaderParameter = {} as any;
178
176
  const localVarQueryParameter = {} as any;
177
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
179
178
 
180
179
  // authentication tokenScheme required
181
180
  // http bearer authentication required
182
181
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
183
182
 
184
- if (bo !== undefined) {
185
- for (const [key, value] of Object.entries(bo)) {
186
- localVarQueryParameter[key] = value;
187
- }
188
- }
189
-
190
183
 
184
+ if (file !== undefined) {
185
+ localVarFormParams.append('file', file as any);
186
+ }
187
+
188
+
189
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
191
190
 
192
191
  setSearchParams(localVarUrlObj, localVarQueryParameter);
193
192
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
193
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
194
+ localVarRequestOptions.data = localVarFormParams;
195
195
 
196
196
  return {
197
197
  url: toPathString(localVarUrlObj),
@@ -763,12 +763,12 @@ export const SurveillanceApiFp = function(configuration?: Configuration) {
763
763
  /**
764
764
  * 批量导入-上传文件
765
765
  * @summary 批量导入-上传
766
- * @param {ExcelUploadBO} bo
766
+ * @param {File} file
767
767
  * @param {*} [options] Override http request option.
768
768
  * @throws {RequiredError}
769
769
  */
770
- async surveillanceBatchImportUpload(bo: ExcelUploadBO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultExcelImportResultDTOSurveillanceBatchImportTemplateDto>> {
771
- const localVarAxiosArgs = await localVarAxiosParamCreator.surveillanceBatchImportUpload(bo, options);
770
+ async surveillanceBatchImportUpload(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultExcelImportResultDTOSurveillanceBatchImportTemplateDto>> {
771
+ const localVarAxiosArgs = await localVarAxiosParamCreator.surveillanceBatchImportUpload(file, options);
772
772
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
773
773
  const localVarOperationServerBasePath = operationServerMap['SurveillanceApi.surveillanceBatchImportUpload']?.[localVarOperationServerIndex]?.url;
774
774
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -972,7 +972,7 @@ export const SurveillanceApiFactory = function (configuration?: Configuration, b
972
972
  * @throws {RequiredError}
973
973
  */
974
974
  surveillanceBatchImportUpload(requestParameters: SurveillanceApiSurveillanceBatchImportUploadRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultExcelImportResultDTOSurveillanceBatchImportTemplateDto> {
975
- return localVarFp.surveillanceBatchImportUpload(requestParameters.bo, options).then((request) => request(axios, basePath));
975
+ return localVarFp.surveillanceBatchImportUpload(requestParameters.file, options).then((request) => request(axios, basePath));
976
976
  },
977
977
  /**
978
978
  * 抓拍监控画面
@@ -1085,10 +1085,10 @@ export const SurveillanceApiFactory = function (configuration?: Configuration, b
1085
1085
  export interface SurveillanceApiSurveillanceBatchImportUploadRequest {
1086
1086
  /**
1087
1087
  *
1088
- * @type {ExcelUploadBO}
1088
+ * @type {File}
1089
1089
  * @memberof SurveillanceApiSurveillanceBatchImportUpload
1090
1090
  */
1091
- readonly bo: ExcelUploadBO
1091
+ readonly file: File
1092
1092
  }
1093
1093
 
1094
1094
  /**
@@ -1448,7 +1448,7 @@ export class SurveillanceApi extends BaseAPI {
1448
1448
  * @memberof SurveillanceApi
1449
1449
  */
1450
1450
  public surveillanceBatchImportUpload(requestParameters: SurveillanceApiSurveillanceBatchImportUploadRequest, options?: RawAxiosRequestConfig) {
1451
- return SurveillanceApiFp(this.configuration).surveillanceBatchImportUpload(requestParameters.bo, options).then((request) => request(this.axios, this.basePath));
1451
+ return SurveillanceApiFp(this.configuration).surveillanceBatchImportUpload(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1452
1452
  }
1453
1453
 
1454
1454
  /**
@@ -127,18 +127,6 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
127
127
  * @throws {RequiredError}
128
128
  */
129
129
  fusionGetToken3: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
130
- /**
131
- *
132
- * @param {*} [options] Override http request option.
133
- * @throws {RequiredError}
134
- */
135
- fusionGetToken4: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
136
- /**
137
- *
138
- * @param {*} [options] Override http request option.
139
- * @throws {RequiredError}
140
- */
141
- fusionGetToken5: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
142
130
  /**
143
131
  *
144
132
  * @param {*} [options] Override http request option.
@@ -217,18 +205,6 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
217
205
  * @throws {RequiredError}
218
206
  */
219
207
  getTokenByHttp3: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
220
- /**
221
- *
222
- * @param {*} [options] Override http request option.
223
- * @throws {RequiredError}
224
- */
225
- getTokenByHttp4: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
226
- /**
227
- *
228
- * @param {*} [options] Override http request option.
229
- * @throws {RequiredError}
230
- */
231
- getTokenByHttp5: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
232
208
  /**
233
209
  *
234
210
  * @summary 获取用户信息
@@ -293,22 +269,6 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
293
269
  * @throws {RequiredError}
294
270
  */
295
271
  pushMsg: (cid: string, payload: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
296
- /**
297
- *
298
- * @param {string} phone
299
- * @param {string} templateCode
300
- * @param {*} [options] Override http request option.
301
- * @throws {RequiredError}
302
- */
303
- sendSms: (phone: string, templateCode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
304
- /**
305
- *
306
- * @param {string} phone
307
- * @param {string} templateCode
308
- * @param {*} [options] Override http request option.
309
- * @throws {RequiredError}
310
- */
311
- sendSms1: (phone: string, templateCode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
312
272
  /**
313
273
  *
314
274
  * @summary 小程序切换园区
@@ -432,18 +392,6 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
432
392
  * @throws {RequiredError}
433
393
  */
434
394
  fusionGetToken3(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
435
- /**
436
- *
437
- * @param {*} [options] Override http request option.
438
- * @throws {RequiredError}
439
- */
440
- fusionGetToken4(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
441
- /**
442
- *
443
- * @param {*} [options] Override http request option.
444
- * @throws {RequiredError}
445
- */
446
- fusionGetToken5(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
447
395
  /**
448
396
  *
449
397
  * @param {*} [options] Override http request option.
@@ -530,18 +478,6 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
530
478
  * @throws {RequiredError}
531
479
  */
532
480
  getTokenByHttp3(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
533
- /**
534
- *
535
- * @param {*} [options] Override http request option.
536
- * @throws {RequiredError}
537
- */
538
- getTokenByHttp4(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
539
- /**
540
- *
541
- * @param {*} [options] Override http request option.
542
- * @throws {RequiredError}
543
- */
544
- getTokenByHttp5(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
545
481
  /**
546
482
  *
547
483
  * @summary 获取用户信息
@@ -616,22 +552,6 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
616
552
  * @throws {RequiredError}
617
553
  */
618
554
  pushMsg(cid: string, payload: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
619
- /**
620
- *
621
- * @param {string} phone
622
- * @param {string} templateCode
623
- * @param {*} [options] Override http request option.
624
- * @throws {RequiredError}
625
- */
626
- sendSms(phone: string, templateCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
627
- /**
628
- *
629
- * @param {string} phone
630
- * @param {string} templateCode
631
- * @param {*} [options] Override http request option.
632
- * @throws {RequiredError}
633
- */
634
- sendSms1(phone: string, templateCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
635
555
  /**
636
556
  *
637
557
  * @summary 小程序切换园区
@@ -758,18 +678,6 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
758
678
  * @throws {RequiredError}
759
679
  */
760
680
  fusionGetToken3(options?: RawAxiosRequestConfig): AxiosPromise<string>;
761
- /**
762
- *
763
- * @param {*} [options] Override http request option.
764
- * @throws {RequiredError}
765
- */
766
- fusionGetToken4(options?: RawAxiosRequestConfig): AxiosPromise<string>;
767
- /**
768
- *
769
- * @param {*} [options] Override http request option.
770
- * @throws {RequiredError}
771
- */
772
- fusionGetToken5(options?: RawAxiosRequestConfig): AxiosPromise<string>;
773
681
  /**
774
682
  *
775
683
  * @param {*} [options] Override http request option.
@@ -851,18 +759,6 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
851
759
  * @throws {RequiredError}
852
760
  */
853
761
  getTokenByHttp3(options?: RawAxiosRequestConfig): AxiosPromise<string>;
854
- /**
855
- *
856
- * @param {*} [options] Override http request option.
857
- * @throws {RequiredError}
858
- */
859
- getTokenByHttp4(options?: RawAxiosRequestConfig): AxiosPromise<string>;
860
- /**
861
- *
862
- * @param {*} [options] Override http request option.
863
- * @throws {RequiredError}
864
- */
865
- getTokenByHttp5(options?: RawAxiosRequestConfig): AxiosPromise<string>;
866
762
  /**
867
763
  *
868
764
  * @summary 获取用户信息
@@ -935,20 +831,6 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
935
831
  * @throws {RequiredError}
936
832
  */
937
833
  pushMsg(requestParameters: AuthApiPushMsgRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult>;
938
- /**
939
- *
940
- * @param {AuthApiSendSmsRequest} requestParameters Request parameters.
941
- * @param {*} [options] Override http request option.
942
- * @throws {RequiredError}
943
- */
944
- sendSms(requestParameters: AuthApiSendSmsRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
945
- /**
946
- *
947
- * @param {AuthApiSendSms1Request} requestParameters Request parameters.
948
- * @param {*} [options] Override http request option.
949
- * @throws {RequiredError}
950
- */
951
- sendSms1(requestParameters: AuthApiSendSms1Request, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
952
834
  /**
953
835
  *
954
836
  * @summary 小程序切换园区
@@ -1272,44 +1154,6 @@ export interface AuthApiPushMsgRequest {
1272
1154
  */
1273
1155
  readonly payload: string;
1274
1156
  }
1275
- /**
1276
- * Request parameters for sendSms operation in AuthApi.
1277
- * @export
1278
- * @interface AuthApiSendSmsRequest
1279
- */
1280
- export interface AuthApiSendSmsRequest {
1281
- /**
1282
- *
1283
- * @type {string}
1284
- * @memberof AuthApiSendSms
1285
- */
1286
- readonly phone: string;
1287
- /**
1288
- *
1289
- * @type {string}
1290
- * @memberof AuthApiSendSms
1291
- */
1292
- readonly templateCode: string;
1293
- }
1294
- /**
1295
- * Request parameters for sendSms1 operation in AuthApi.
1296
- * @export
1297
- * @interface AuthApiSendSms1Request
1298
- */
1299
- export interface AuthApiSendSms1Request {
1300
- /**
1301
- *
1302
- * @type {string}
1303
- * @memberof AuthApiSendSms1
1304
- */
1305
- readonly phone: string;
1306
- /**
1307
- *
1308
- * @type {string}
1309
- * @memberof AuthApiSendSms1
1310
- */
1311
- readonly templateCode: string;
1312
- }
1313
1157
  /**
1314
1158
  * Request parameters for switchPark operation in AuthApi.
1315
1159
  * @export
@@ -1462,20 +1306,6 @@ export declare class AuthApi extends BaseAPI {
1462
1306
  * @memberof AuthApi
1463
1307
  */
1464
1308
  fusionGetToken3(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1465
- /**
1466
- *
1467
- * @param {*} [options] Override http request option.
1468
- * @throws {RequiredError}
1469
- * @memberof AuthApi
1470
- */
1471
- fusionGetToken4(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1472
- /**
1473
- *
1474
- * @param {*} [options] Override http request option.
1475
- * @throws {RequiredError}
1476
- * @memberof AuthApi
1477
- */
1478
- fusionGetToken5(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1479
1309
  /**
1480
1310
  *
1481
1311
  * @param {*} [options] Override http request option.
@@ -1568,20 +1398,6 @@ export declare class AuthApi extends BaseAPI {
1568
1398
  * @memberof AuthApi
1569
1399
  */
1570
1400
  getTokenByHttp3(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1571
- /**
1572
- *
1573
- * @param {*} [options] Override http request option.
1574
- * @throws {RequiredError}
1575
- * @memberof AuthApi
1576
- */
1577
- getTokenByHttp4(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1578
- /**
1579
- *
1580
- * @param {*} [options] Override http request option.
1581
- * @throws {RequiredError}
1582
- * @memberof AuthApi
1583
- */
1584
- getTokenByHttp5(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
1585
1401
  /**
1586
1402
  *
1587
1403
  * @summary 获取用户信息
@@ -1662,22 +1478,6 @@ export declare class AuthApi extends BaseAPI {
1662
1478
  * @memberof AuthApi
1663
1479
  */
1664
1480
  pushMsg(requestParameters: AuthApiPushMsgRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResult, any>>;
1665
- /**
1666
- *
1667
- * @param {AuthApiSendSmsRequest} requestParameters Request parameters.
1668
- * @param {*} [options] Override http request option.
1669
- * @throws {RequiredError}
1670
- * @memberof AuthApi
1671
- */
1672
- sendSms(requestParameters: AuthApiSendSmsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
1673
- /**
1674
- *
1675
- * @param {AuthApiSendSms1Request} requestParameters Request parameters.
1676
- * @param {*} [options] Override http request option.
1677
- * @throws {RequiredError}
1678
- * @memberof AuthApi
1679
- */
1680
- sendSms1(requestParameters: AuthApiSendSms1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
1681
1481
  /**
1682
1482
  *
1683
1483
  * @summary 小程序切换园区