@gizone/rrs-client 4.2.0-alpha.380 → 4.2.0-alpha.382
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/apis/equipment-api.ts +91 -0
- package/apis/work-order-api.ts +18 -5
- package/dist/apis/equipment-api.d.ts +47 -0
- package/dist/apis/equipment-api.js +70 -0
- package/dist/apis/work-order-api.d.ts +10 -2
- package/dist/apis/work-order-api.js +10 -5
- package/dist/esm/apis/equipment-api.d.ts +47 -0
- package/dist/esm/apis/equipment-api.js +70 -0
- package/dist/esm/apis/work-order-api.d.ts +10 -2
- package/dist/esm/apis/work-order-api.js +10 -5
- package/dist/esm/models/plan-search-dto.d.ts +6 -0
- package/dist/esm/models/space.d.ts +12 -0
- package/dist/models/plan-search-dto.d.ts +6 -0
- package/dist/models/space.d.ts +12 -0
- package/models/plan-search-dto.ts +6 -0
- package/models/space.ts +12 -0
- package/package.json +1 -1
package/apis/equipment-api.ts
CHANGED
|
@@ -64,6 +64,8 @@ import type { JsonResultListMaintenanceStandardEntity } from '../models';
|
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
import type { JsonResultPageDtoEquipmentSearchSystemDTO } from '../models';
|
|
66
66
|
// @ts-ignore
|
|
67
|
+
import type { JsonResultVoid } from '../models';
|
|
68
|
+
// @ts-ignore
|
|
67
69
|
import type { ModelInteger } from '../models';
|
|
68
70
|
// @ts-ignore
|
|
69
71
|
import type { UserBatchImportUploadRequest } from '../models';
|
|
@@ -463,6 +465,46 @@ export const EquipmentApiAxiosParamCreator = function (configuration?: Configura
|
|
|
463
465
|
options: localVarRequestOptions,
|
|
464
466
|
};
|
|
465
467
|
},
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @summary 批量删除设备
|
|
471
|
+
* @param {Array<number>} requestBody
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
*/
|
|
475
|
+
equipmentBatchDelete: async (requestBody: Array<number>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
476
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
477
|
+
assertParamExists('equipmentBatchDelete', 'requestBody', requestBody)
|
|
478
|
+
const localVarPath = `/gizone/equipment/batch`;
|
|
479
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
480
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
481
|
+
let baseOptions;
|
|
482
|
+
if (configuration) {
|
|
483
|
+
baseOptions = configuration.baseOptions;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
487
|
+
const localVarHeaderParameter = {} as any;
|
|
488
|
+
const localVarQueryParameter = {} as any;
|
|
489
|
+
|
|
490
|
+
// authentication tokenScheme required
|
|
491
|
+
// http bearer authentication required
|
|
492
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
497
|
+
|
|
498
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
500
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
501
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
502
|
+
|
|
503
|
+
return {
|
|
504
|
+
url: toPathString(localVarUrlObj),
|
|
505
|
+
options: localVarRequestOptions,
|
|
506
|
+
};
|
|
507
|
+
},
|
|
466
508
|
/**
|
|
467
509
|
*
|
|
468
510
|
* @summary Excel模板
|
|
@@ -1407,6 +1449,19 @@ export const EquipmentApiFp = function(configuration?: Configuration) {
|
|
|
1407
1449
|
const localVarOperationServerBasePath = operationServerMap['EquipmentApi.equipmentAddRedisList']?.[localVarOperationServerIndex]?.url;
|
|
1408
1450
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1409
1451
|
},
|
|
1452
|
+
/**
|
|
1453
|
+
*
|
|
1454
|
+
* @summary 批量删除设备
|
|
1455
|
+
* @param {Array<number>} requestBody
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
*/
|
|
1459
|
+
async equipmentBatchDelete(requestBody: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>> {
|
|
1460
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.equipmentBatchDelete(requestBody, options);
|
|
1461
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1462
|
+
const localVarOperationServerBasePath = operationServerMap['EquipmentApi.equipmentBatchDelete']?.[localVarOperationServerIndex]?.url;
|
|
1463
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1464
|
+
},
|
|
1410
1465
|
/**
|
|
1411
1466
|
*
|
|
1412
1467
|
* @summary Excel模板
|
|
@@ -1759,6 +1814,16 @@ export const EquipmentApiFactory = function (configuration?: Configuration, base
|
|
|
1759
1814
|
equipmentAddRedisList(options?: RawAxiosRequestConfig): AxiosPromise<JsonResultEquipmentAddRedisListDTO> {
|
|
1760
1815
|
return localVarFp.equipmentAddRedisList(options).then((request) => request(axios, basePath));
|
|
1761
1816
|
},
|
|
1817
|
+
/**
|
|
1818
|
+
*
|
|
1819
|
+
* @summary 批量删除设备
|
|
1820
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
1821
|
+
* @param {*} [options] Override http request option.
|
|
1822
|
+
* @throws {RequiredError}
|
|
1823
|
+
*/
|
|
1824
|
+
equipmentBatchDelete(requestParameters: EquipmentApiEquipmentBatchDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid> {
|
|
1825
|
+
return localVarFp.equipmentBatchDelete(requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
1826
|
+
},
|
|
1762
1827
|
/**
|
|
1763
1828
|
*
|
|
1764
1829
|
* @summary Excel模板
|
|
@@ -2042,6 +2107,20 @@ export interface EquipmentApiEditSystemRequest {
|
|
|
2042
2107
|
readonly equipmentSystemEditVo: EquipmentSystemEditVo
|
|
2043
2108
|
}
|
|
2044
2109
|
|
|
2110
|
+
/**
|
|
2111
|
+
* Request parameters for equipmentBatchDelete operation in EquipmentApi.
|
|
2112
|
+
* @export
|
|
2113
|
+
* @interface EquipmentApiEquipmentBatchDeleteRequest
|
|
2114
|
+
*/
|
|
2115
|
+
export interface EquipmentApiEquipmentBatchDeleteRequest {
|
|
2116
|
+
/**
|
|
2117
|
+
*
|
|
2118
|
+
* @type {Array<number>}
|
|
2119
|
+
* @memberof EquipmentApiEquipmentBatchDelete
|
|
2120
|
+
*/
|
|
2121
|
+
readonly requestBody: Array<number>
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2045
2124
|
/**
|
|
2046
2125
|
* Request parameters for equipmentExportTemplate operation in EquipmentApi.
|
|
2047
2126
|
* @export
|
|
@@ -2552,6 +2631,18 @@ export class EquipmentApi extends BaseAPI {
|
|
|
2552
2631
|
return EquipmentApiFp(this.configuration).equipmentAddRedisList(options).then((request) => request(this.axios, this.basePath));
|
|
2553
2632
|
}
|
|
2554
2633
|
|
|
2634
|
+
/**
|
|
2635
|
+
*
|
|
2636
|
+
* @summary 批量删除设备
|
|
2637
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
2638
|
+
* @param {*} [options] Override http request option.
|
|
2639
|
+
* @throws {RequiredError}
|
|
2640
|
+
* @memberof EquipmentApi
|
|
2641
|
+
*/
|
|
2642
|
+
public equipmentBatchDelete(requestParameters: EquipmentApiEquipmentBatchDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
2643
|
+
return EquipmentApiFp(this.configuration).equipmentBatchDelete(requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2555
2646
|
/**
|
|
2556
2647
|
*
|
|
2557
2648
|
* @summary Excel模板
|
package/apis/work-order-api.ts
CHANGED
|
@@ -821,10 +821,11 @@ export const WorkOrderApiAxiosParamCreator = function (configuration?: Configura
|
|
|
821
821
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
822
822
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
823
823
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
824
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
824
825
|
* @param {*} [options] Override http request option.
|
|
825
826
|
* @throws {RequiredError}
|
|
826
827
|
*/
|
|
827
|
-
planList: async (parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
828
|
+
planList: async (parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, itemIds?: Array<number>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
828
829
|
// verify required parameter 'parkId' is not null or undefined
|
|
829
830
|
assertParamExists('planList', 'parkId', parkId)
|
|
830
831
|
// verify required parameter 'page' is not null or undefined
|
|
@@ -883,6 +884,10 @@ export const WorkOrderApiAxiosParamCreator = function (configuration?: Configura
|
|
|
883
884
|
localVarQueryParameter['workOrderTypeSubcategories'] = workOrderTypeSubcategories;
|
|
884
885
|
}
|
|
885
886
|
|
|
887
|
+
if (itemIds) {
|
|
888
|
+
localVarQueryParameter['itemIds'] = itemIds;
|
|
889
|
+
}
|
|
890
|
+
|
|
886
891
|
|
|
887
892
|
|
|
888
893
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2954,11 +2959,12 @@ export const WorkOrderApiFp = function(configuration?: Configuration) {
|
|
|
2954
2959
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
2955
2960
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
2956
2961
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
2962
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
2957
2963
|
* @param {*} [options] Override http request option.
|
|
2958
2964
|
* @throws {RequiredError}
|
|
2959
2965
|
*/
|
|
2960
|
-
async planList(parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoPlanSearchDTO>> {
|
|
2961
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, options);
|
|
2966
|
+
async planList(parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, itemIds?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoPlanSearchDTO>> {
|
|
2967
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, itemIds, options);
|
|
2962
2968
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2963
2969
|
const localVarOperationServerBasePath = operationServerMap['WorkOrderApi.planList']?.[localVarOperationServerIndex]?.url;
|
|
2964
2970
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3710,7 +3716,7 @@ export const WorkOrderApiFactory = function (configuration?: Configuration, base
|
|
|
3710
3716
|
* @throws {RequiredError}
|
|
3711
3717
|
*/
|
|
3712
3718
|
planList(requestParameters: WorkOrderApiPlanListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultPageDtoPlanSearchDTO> {
|
|
3713
|
-
return localVarFp.planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, options).then((request) => request(axios, basePath));
|
|
3719
|
+
return localVarFp.planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, requestParameters.itemIds, options).then((request) => request(axios, basePath));
|
|
3714
3720
|
},
|
|
3715
3721
|
/**
|
|
3716
3722
|
*
|
|
@@ -4500,6 +4506,13 @@ export interface WorkOrderApiPlanListRequest {
|
|
|
4500
4506
|
* @memberof WorkOrderApiPlanList
|
|
4501
4507
|
*/
|
|
4502
4508
|
readonly workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>
|
|
4509
|
+
|
|
4510
|
+
/**
|
|
4511
|
+
* 巡检点ID
|
|
4512
|
+
* @type {Array<number>}
|
|
4513
|
+
* @memberof WorkOrderApiPlanList
|
|
4514
|
+
*/
|
|
4515
|
+
readonly itemIds?: Array<number>
|
|
4503
4516
|
}
|
|
4504
4517
|
|
|
4505
4518
|
/**
|
|
@@ -5587,7 +5600,7 @@ export class WorkOrderApi extends BaseAPI {
|
|
|
5587
5600
|
* @memberof WorkOrderApi
|
|
5588
5601
|
*/
|
|
5589
5602
|
public planList(requestParameters: WorkOrderApiPlanListRequest, options?: RawAxiosRequestConfig) {
|
|
5590
|
-
return WorkOrderApiFp(this.configuration).planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, options).then((request) => request(this.axios, this.basePath));
|
|
5603
|
+
return WorkOrderApiFp(this.configuration).planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, requestParameters.itemIds, options).then((request) => request(this.axios, this.basePath));
|
|
5591
5604
|
}
|
|
5592
5605
|
|
|
5593
5606
|
/**
|
|
@@ -33,6 +33,7 @@ import type { JsonResultListEquipmentSystemTreeDTO } from '../models';
|
|
|
33
33
|
import type { JsonResultListEquipmentTreeDTO } from '../models';
|
|
34
34
|
import type { JsonResultListMaintenanceStandardEntity } from '../models';
|
|
35
35
|
import type { JsonResultPageDtoEquipmentSearchSystemDTO } from '../models';
|
|
36
|
+
import type { JsonResultVoid } from '../models';
|
|
36
37
|
import type { ModelInteger } from '../models';
|
|
37
38
|
import type { UserBatchImportUploadRequest } from '../models';
|
|
38
39
|
/**
|
|
@@ -118,6 +119,14 @@ export declare const EquipmentApiAxiosParamCreator: (configuration?: Configurati
|
|
|
118
119
|
* @throws {RequiredError}
|
|
119
120
|
*/
|
|
120
121
|
equipmentAddRedisList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @summary 批量删除设备
|
|
125
|
+
* @param {Array<number>} requestBody
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
equipmentBatchDelete: (requestBody: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
121
130
|
/**
|
|
122
131
|
*
|
|
123
132
|
* @summary Excel模板
|
|
@@ -361,6 +370,14 @@ export declare const EquipmentApiFp: (configuration?: Configuration) => {
|
|
|
361
370
|
* @throws {RequiredError}
|
|
362
371
|
*/
|
|
363
372
|
equipmentAddRedisList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultEquipmentAddRedisListDTO>>;
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @summary 批量删除设备
|
|
376
|
+
* @param {Array<number>} requestBody
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
equipmentBatchDelete(requestBody: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>>;
|
|
364
381
|
/**
|
|
365
382
|
*
|
|
366
383
|
* @summary Excel模板
|
|
@@ -604,6 +621,14 @@ export declare const EquipmentApiFactory: (configuration?: Configuration, basePa
|
|
|
604
621
|
* @throws {RequiredError}
|
|
605
622
|
*/
|
|
606
623
|
equipmentAddRedisList(options?: RawAxiosRequestConfig): AxiosPromise<JsonResultEquipmentAddRedisListDTO>;
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @summary 批量删除设备
|
|
627
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
*/
|
|
631
|
+
equipmentBatchDelete(requestParameters: EquipmentApiEquipmentBatchDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid>;
|
|
607
632
|
/**
|
|
608
633
|
*
|
|
609
634
|
* @summary Excel模板
|
|
@@ -843,6 +868,19 @@ export interface EquipmentApiEditSystemRequest {
|
|
|
843
868
|
*/
|
|
844
869
|
readonly equipmentSystemEditVo: EquipmentSystemEditVo;
|
|
845
870
|
}
|
|
871
|
+
/**
|
|
872
|
+
* Request parameters for equipmentBatchDelete operation in EquipmentApi.
|
|
873
|
+
* @export
|
|
874
|
+
* @interface EquipmentApiEquipmentBatchDeleteRequest
|
|
875
|
+
*/
|
|
876
|
+
export interface EquipmentApiEquipmentBatchDeleteRequest {
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @type {Array<number>}
|
|
880
|
+
* @memberof EquipmentApiEquipmentBatchDelete
|
|
881
|
+
*/
|
|
882
|
+
readonly requestBody: Array<number>;
|
|
883
|
+
}
|
|
846
884
|
/**
|
|
847
885
|
* Request parameters for equipmentExportTemplate operation in EquipmentApi.
|
|
848
886
|
* @export
|
|
@@ -1283,6 +1321,15 @@ export declare class EquipmentApi extends BaseAPI {
|
|
|
1283
1321
|
* @memberof EquipmentApi
|
|
1284
1322
|
*/
|
|
1285
1323
|
equipmentAddRedisList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultEquipmentAddRedisListDTO, any>>;
|
|
1324
|
+
/**
|
|
1325
|
+
*
|
|
1326
|
+
* @summary 批量删除设备
|
|
1327
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
1328
|
+
* @param {*} [options] Override http request option.
|
|
1329
|
+
* @throws {RequiredError}
|
|
1330
|
+
* @memberof EquipmentApi
|
|
1331
|
+
*/
|
|
1332
|
+
equipmentBatchDelete(requestParameters: EquipmentApiEquipmentBatchDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultVoid, any>>;
|
|
1286
1333
|
/**
|
|
1287
1334
|
*
|
|
1288
1335
|
* @summary Excel模板
|
|
@@ -357,6 +357,39 @@ const EquipmentApiAxiosParamCreator = function (configuration) {
|
|
|
357
357
|
options: localVarRequestOptions,
|
|
358
358
|
};
|
|
359
359
|
}),
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @summary 批量删除设备
|
|
363
|
+
* @param {Array<number>} requestBody
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
equipmentBatchDelete: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
368
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
369
|
+
(0, common_1.assertParamExists)('equipmentBatchDelete', 'requestBody', requestBody);
|
|
370
|
+
const localVarPath = `/gizone/equipment/batch`;
|
|
371
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
372
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
373
|
+
let baseOptions;
|
|
374
|
+
if (configuration) {
|
|
375
|
+
baseOptions = configuration.baseOptions;
|
|
376
|
+
}
|
|
377
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
378
|
+
const localVarHeaderParameter = {};
|
|
379
|
+
const localVarQueryParameter = {};
|
|
380
|
+
// authentication tokenScheme required
|
|
381
|
+
// http bearer authentication required
|
|
382
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
383
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
384
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
385
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
386
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
387
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
388
|
+
return {
|
|
389
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
390
|
+
options: localVarRequestOptions,
|
|
391
|
+
};
|
|
392
|
+
}),
|
|
360
393
|
/**
|
|
361
394
|
*
|
|
362
395
|
* @summary Excel模板
|
|
@@ -1190,6 +1223,22 @@ const EquipmentApiFp = function (configuration) {
|
|
|
1190
1223
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1191
1224
|
});
|
|
1192
1225
|
},
|
|
1226
|
+
/**
|
|
1227
|
+
*
|
|
1228
|
+
* @summary 批量删除设备
|
|
1229
|
+
* @param {Array<number>} requestBody
|
|
1230
|
+
* @param {*} [options] Override http request option.
|
|
1231
|
+
* @throws {RequiredError}
|
|
1232
|
+
*/
|
|
1233
|
+
equipmentBatchDelete(requestBody, options) {
|
|
1234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
|
+
var _a, _b, _c;
|
|
1236
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.equipmentBatchDelete(requestBody, options);
|
|
1237
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1238
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EquipmentApi.equipmentBatchDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1239
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1240
|
+
});
|
|
1241
|
+
},
|
|
1193
1242
|
/**
|
|
1194
1243
|
*
|
|
1195
1244
|
* @summary Excel模板
|
|
@@ -1593,6 +1642,16 @@ const EquipmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1593
1642
|
equipmentAddRedisList(options) {
|
|
1594
1643
|
return localVarFp.equipmentAddRedisList(options).then((request) => request(axios, basePath));
|
|
1595
1644
|
},
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @summary 批量删除设备
|
|
1648
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
1649
|
+
* @param {*} [options] Override http request option.
|
|
1650
|
+
* @throws {RequiredError}
|
|
1651
|
+
*/
|
|
1652
|
+
equipmentBatchDelete(requestParameters, options) {
|
|
1653
|
+
return localVarFp.equipmentBatchDelete(requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
1654
|
+
},
|
|
1596
1655
|
/**
|
|
1597
1656
|
*
|
|
1598
1657
|
* @summary Excel模板
|
|
@@ -1879,6 +1938,17 @@ class EquipmentApi extends base_1.BaseAPI {
|
|
|
1879
1938
|
equipmentAddRedisList(options) {
|
|
1880
1939
|
return (0, exports.EquipmentApiFp)(this.configuration).equipmentAddRedisList(options).then((request) => request(this.axios, this.basePath));
|
|
1881
1940
|
}
|
|
1941
|
+
/**
|
|
1942
|
+
*
|
|
1943
|
+
* @summary 批量删除设备
|
|
1944
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
1945
|
+
* @param {*} [options] Override http request option.
|
|
1946
|
+
* @throws {RequiredError}
|
|
1947
|
+
* @memberof EquipmentApi
|
|
1948
|
+
*/
|
|
1949
|
+
equipmentBatchDelete(requestParameters, options) {
|
|
1950
|
+
return (0, exports.EquipmentApiFp)(this.configuration).equipmentBatchDelete(requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1951
|
+
}
|
|
1882
1952
|
/**
|
|
1883
1953
|
*
|
|
1884
1954
|
* @summary Excel模板
|
|
@@ -219,10 +219,11 @@ export declare const WorkOrderApiAxiosParamCreator: (configuration?: Configurati
|
|
|
219
219
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
220
220
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
221
221
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
222
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
222
223
|
* @param {*} [options] Override http request option.
|
|
223
224
|
* @throws {RequiredError}
|
|
224
225
|
*/
|
|
225
|
-
planList: (parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
226
|
+
planList: (parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, itemIds?: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
226
227
|
/**
|
|
227
228
|
*
|
|
228
229
|
* @summary 处理报事报修工单
|
|
@@ -749,10 +750,11 @@ export declare const WorkOrderApiFp: (configuration?: Configuration) => {
|
|
|
749
750
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
750
751
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
751
752
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
753
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
752
754
|
* @param {*} [options] Override http request option.
|
|
753
755
|
* @throws {RequiredError}
|
|
754
756
|
*/
|
|
755
|
-
planList(parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoPlanSearchDTO>>;
|
|
757
|
+
planList(parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, itemIds?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoPlanSearchDTO>>;
|
|
756
758
|
/**
|
|
757
759
|
*
|
|
758
760
|
* @summary 处理报事报修工单
|
|
@@ -1928,6 +1930,12 @@ export interface WorkOrderApiPlanListRequest {
|
|
|
1928
1930
|
* @memberof WorkOrderApiPlanList
|
|
1929
1931
|
*/
|
|
1930
1932
|
readonly workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>;
|
|
1933
|
+
/**
|
|
1934
|
+
* 巡检点ID
|
|
1935
|
+
* @type {Array<number>}
|
|
1936
|
+
* @memberof WorkOrderApiPlanList
|
|
1937
|
+
*/
|
|
1938
|
+
readonly itemIds?: Array<number>;
|
|
1931
1939
|
}
|
|
1932
1940
|
/**
|
|
1933
1941
|
* Request parameters for processWorkOrder operation in WorkOrderApi.
|
|
@@ -602,10 +602,11 @@ const WorkOrderApiAxiosParamCreator = function (configuration) {
|
|
|
602
602
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
603
603
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
604
604
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
605
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
605
606
|
* @param {*} [options] Override http request option.
|
|
606
607
|
* @throws {RequiredError}
|
|
607
608
|
*/
|
|
608
|
-
planList: (parkId_1, page_1, pageSize_1, planName_1, deptIds_1, planTypes_1, repeats_1, state_1, workOrderTypeSubcategories_1, ...args_1) => __awaiter(this, [parkId_1, page_1, pageSize_1, planName_1, deptIds_1, planTypes_1, repeats_1, state_1, workOrderTypeSubcategories_1, ...args_1], void 0, function* (parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, options = {}) {
|
|
609
|
+
planList: (parkId_1, page_1, pageSize_1, planName_1, deptIds_1, planTypes_1, repeats_1, state_1, workOrderTypeSubcategories_1, itemIds_1, ...args_1) => __awaiter(this, [parkId_1, page_1, pageSize_1, planName_1, deptIds_1, planTypes_1, repeats_1, state_1, workOrderTypeSubcategories_1, itemIds_1, ...args_1], void 0, function* (parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, itemIds, options = {}) {
|
|
609
610
|
// verify required parameter 'parkId' is not null or undefined
|
|
610
611
|
(0, common_1.assertParamExists)('planList', 'parkId', parkId);
|
|
611
612
|
// verify required parameter 'page' is not null or undefined
|
|
@@ -652,6 +653,9 @@ const WorkOrderApiAxiosParamCreator = function (configuration) {
|
|
|
652
653
|
if (workOrderTypeSubcategories) {
|
|
653
654
|
localVarQueryParameter['workOrderTypeSubcategories'] = workOrderTypeSubcategories;
|
|
654
655
|
}
|
|
656
|
+
if (itemIds) {
|
|
657
|
+
localVarQueryParameter['itemIds'] = itemIds;
|
|
658
|
+
}
|
|
655
659
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
656
660
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
657
661
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2463,13 +2467,14 @@ const WorkOrderApiFp = function (configuration) {
|
|
|
2463
2467
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
2464
2468
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
2465
2469
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
2470
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
2466
2471
|
* @param {*} [options] Override http request option.
|
|
2467
2472
|
* @throws {RequiredError}
|
|
2468
2473
|
*/
|
|
2469
|
-
planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, options) {
|
|
2474
|
+
planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, itemIds, options) {
|
|
2470
2475
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2471
2476
|
var _a, _b, _c;
|
|
2472
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, options);
|
|
2477
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, itemIds, options);
|
|
2473
2478
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2474
2479
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkOrderApi.planList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2475
2480
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3345,7 +3350,7 @@ const WorkOrderApiFactory = function (configuration, basePath, axios) {
|
|
|
3345
3350
|
* @throws {RequiredError}
|
|
3346
3351
|
*/
|
|
3347
3352
|
planList(requestParameters, options) {
|
|
3348
|
-
return localVarFp.planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, options).then((request) => request(axios, basePath));
|
|
3353
|
+
return localVarFp.planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, requestParameters.itemIds, options).then((request) => request(axios, basePath));
|
|
3349
3354
|
},
|
|
3350
3355
|
/**
|
|
3351
3356
|
*
|
|
@@ -3940,7 +3945,7 @@ class WorkOrderApi extends base_1.BaseAPI {
|
|
|
3940
3945
|
* @memberof WorkOrderApi
|
|
3941
3946
|
*/
|
|
3942
3947
|
planList(requestParameters, options) {
|
|
3943
|
-
return (0, exports.WorkOrderApiFp)(this.configuration).planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, options).then((request) => request(this.axios, this.basePath));
|
|
3948
|
+
return (0, exports.WorkOrderApiFp)(this.configuration).planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, requestParameters.itemIds, options).then((request) => request(this.axios, this.basePath));
|
|
3944
3949
|
}
|
|
3945
3950
|
/**
|
|
3946
3951
|
*
|
|
@@ -33,6 +33,7 @@ import type { JsonResultListEquipmentSystemTreeDTO } from '../models';
|
|
|
33
33
|
import type { JsonResultListEquipmentTreeDTO } from '../models';
|
|
34
34
|
import type { JsonResultListMaintenanceStandardEntity } from '../models';
|
|
35
35
|
import type { JsonResultPageDtoEquipmentSearchSystemDTO } from '../models';
|
|
36
|
+
import type { JsonResultVoid } from '../models';
|
|
36
37
|
import type { ModelInteger } from '../models';
|
|
37
38
|
import type { UserBatchImportUploadRequest } from '../models';
|
|
38
39
|
/**
|
|
@@ -118,6 +119,14 @@ export declare const EquipmentApiAxiosParamCreator: (configuration?: Configurati
|
|
|
118
119
|
* @throws {RequiredError}
|
|
119
120
|
*/
|
|
120
121
|
equipmentAddRedisList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @summary 批量删除设备
|
|
125
|
+
* @param {Array<number>} requestBody
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
equipmentBatchDelete: (requestBody: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
121
130
|
/**
|
|
122
131
|
*
|
|
123
132
|
* @summary Excel模板
|
|
@@ -361,6 +370,14 @@ export declare const EquipmentApiFp: (configuration?: Configuration) => {
|
|
|
361
370
|
* @throws {RequiredError}
|
|
362
371
|
*/
|
|
363
372
|
equipmentAddRedisList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultEquipmentAddRedisListDTO>>;
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @summary 批量删除设备
|
|
376
|
+
* @param {Array<number>} requestBody
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
equipmentBatchDelete(requestBody: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>>;
|
|
364
381
|
/**
|
|
365
382
|
*
|
|
366
383
|
* @summary Excel模板
|
|
@@ -604,6 +621,14 @@ export declare const EquipmentApiFactory: (configuration?: Configuration, basePa
|
|
|
604
621
|
* @throws {RequiredError}
|
|
605
622
|
*/
|
|
606
623
|
equipmentAddRedisList(options?: RawAxiosRequestConfig): AxiosPromise<JsonResultEquipmentAddRedisListDTO>;
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @summary 批量删除设备
|
|
627
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
*/
|
|
631
|
+
equipmentBatchDelete(requestParameters: EquipmentApiEquipmentBatchDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid>;
|
|
607
632
|
/**
|
|
608
633
|
*
|
|
609
634
|
* @summary Excel模板
|
|
@@ -843,6 +868,19 @@ export interface EquipmentApiEditSystemRequest {
|
|
|
843
868
|
*/
|
|
844
869
|
readonly equipmentSystemEditVo: EquipmentSystemEditVo;
|
|
845
870
|
}
|
|
871
|
+
/**
|
|
872
|
+
* Request parameters for equipmentBatchDelete operation in EquipmentApi.
|
|
873
|
+
* @export
|
|
874
|
+
* @interface EquipmentApiEquipmentBatchDeleteRequest
|
|
875
|
+
*/
|
|
876
|
+
export interface EquipmentApiEquipmentBatchDeleteRequest {
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @type {Array<number>}
|
|
880
|
+
* @memberof EquipmentApiEquipmentBatchDelete
|
|
881
|
+
*/
|
|
882
|
+
readonly requestBody: Array<number>;
|
|
883
|
+
}
|
|
846
884
|
/**
|
|
847
885
|
* Request parameters for equipmentExportTemplate operation in EquipmentApi.
|
|
848
886
|
* @export
|
|
@@ -1283,6 +1321,15 @@ export declare class EquipmentApi extends BaseAPI {
|
|
|
1283
1321
|
* @memberof EquipmentApi
|
|
1284
1322
|
*/
|
|
1285
1323
|
equipmentAddRedisList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultEquipmentAddRedisListDTO, any>>;
|
|
1324
|
+
/**
|
|
1325
|
+
*
|
|
1326
|
+
* @summary 批量删除设备
|
|
1327
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
1328
|
+
* @param {*} [options] Override http request option.
|
|
1329
|
+
* @throws {RequiredError}
|
|
1330
|
+
* @memberof EquipmentApi
|
|
1331
|
+
*/
|
|
1332
|
+
equipmentBatchDelete(requestParameters: EquipmentApiEquipmentBatchDeleteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultVoid, any>>;
|
|
1286
1333
|
/**
|
|
1287
1334
|
*
|
|
1288
1335
|
* @summary Excel模板
|
|
@@ -354,6 +354,39 @@ export const EquipmentApiAxiosParamCreator = function (configuration) {
|
|
|
354
354
|
options: localVarRequestOptions,
|
|
355
355
|
};
|
|
356
356
|
}),
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @summary 批量删除设备
|
|
360
|
+
* @param {Array<number>} requestBody
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
equipmentBatchDelete: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
365
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
366
|
+
assertParamExists('equipmentBatchDelete', 'requestBody', requestBody);
|
|
367
|
+
const localVarPath = `/gizone/equipment/batch`;
|
|
368
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
369
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
370
|
+
let baseOptions;
|
|
371
|
+
if (configuration) {
|
|
372
|
+
baseOptions = configuration.baseOptions;
|
|
373
|
+
}
|
|
374
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
375
|
+
const localVarHeaderParameter = {};
|
|
376
|
+
const localVarQueryParameter = {};
|
|
377
|
+
// authentication tokenScheme required
|
|
378
|
+
// http bearer authentication required
|
|
379
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
380
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
381
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
382
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
383
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
384
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
385
|
+
return {
|
|
386
|
+
url: toPathString(localVarUrlObj),
|
|
387
|
+
options: localVarRequestOptions,
|
|
388
|
+
};
|
|
389
|
+
}),
|
|
357
390
|
/**
|
|
358
391
|
*
|
|
359
392
|
* @summary Excel模板
|
|
@@ -1186,6 +1219,22 @@ export const EquipmentApiFp = function (configuration) {
|
|
|
1186
1219
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1187
1220
|
});
|
|
1188
1221
|
},
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @summary 批量删除设备
|
|
1225
|
+
* @param {Array<number>} requestBody
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
equipmentBatchDelete(requestBody, options) {
|
|
1230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1231
|
+
var _a, _b, _c;
|
|
1232
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.equipmentBatchDelete(requestBody, options);
|
|
1233
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1234
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EquipmentApi.equipmentBatchDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1235
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1236
|
+
});
|
|
1237
|
+
},
|
|
1189
1238
|
/**
|
|
1190
1239
|
*
|
|
1191
1240
|
* @summary Excel模板
|
|
@@ -1588,6 +1637,16 @@ export const EquipmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1588
1637
|
equipmentAddRedisList(options) {
|
|
1589
1638
|
return localVarFp.equipmentAddRedisList(options).then((request) => request(axios, basePath));
|
|
1590
1639
|
},
|
|
1640
|
+
/**
|
|
1641
|
+
*
|
|
1642
|
+
* @summary 批量删除设备
|
|
1643
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
1644
|
+
* @param {*} [options] Override http request option.
|
|
1645
|
+
* @throws {RequiredError}
|
|
1646
|
+
*/
|
|
1647
|
+
equipmentBatchDelete(requestParameters, options) {
|
|
1648
|
+
return localVarFp.equipmentBatchDelete(requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
1649
|
+
},
|
|
1591
1650
|
/**
|
|
1592
1651
|
*
|
|
1593
1652
|
* @summary Excel模板
|
|
@@ -1873,6 +1932,17 @@ export class EquipmentApi extends BaseAPI {
|
|
|
1873
1932
|
equipmentAddRedisList(options) {
|
|
1874
1933
|
return EquipmentApiFp(this.configuration).equipmentAddRedisList(options).then((request) => request(this.axios, this.basePath));
|
|
1875
1934
|
}
|
|
1935
|
+
/**
|
|
1936
|
+
*
|
|
1937
|
+
* @summary 批量删除设备
|
|
1938
|
+
* @param {EquipmentApiEquipmentBatchDeleteRequest} requestParameters Request parameters.
|
|
1939
|
+
* @param {*} [options] Override http request option.
|
|
1940
|
+
* @throws {RequiredError}
|
|
1941
|
+
* @memberof EquipmentApi
|
|
1942
|
+
*/
|
|
1943
|
+
equipmentBatchDelete(requestParameters, options) {
|
|
1944
|
+
return EquipmentApiFp(this.configuration).equipmentBatchDelete(requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1945
|
+
}
|
|
1876
1946
|
/**
|
|
1877
1947
|
*
|
|
1878
1948
|
* @summary Excel模板
|
|
@@ -219,10 +219,11 @@ export declare const WorkOrderApiAxiosParamCreator: (configuration?: Configurati
|
|
|
219
219
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
220
220
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
221
221
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
222
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
222
223
|
* @param {*} [options] Override http request option.
|
|
223
224
|
* @throws {RequiredError}
|
|
224
225
|
*/
|
|
225
|
-
planList: (parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
226
|
+
planList: (parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, itemIds?: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
226
227
|
/**
|
|
227
228
|
*
|
|
228
229
|
* @summary 处理报事报修工单
|
|
@@ -749,10 +750,11 @@ export declare const WorkOrderApiFp: (configuration?: Configuration) => {
|
|
|
749
750
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
750
751
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
751
752
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
753
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
752
754
|
* @param {*} [options] Override http request option.
|
|
753
755
|
* @throws {RequiredError}
|
|
754
756
|
*/
|
|
755
|
-
planList(parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoPlanSearchDTO>>;
|
|
757
|
+
planList(parkId: number, page: number, pageSize: number, planName?: string, deptIds?: Array<number>, planTypes?: Array<PlanListPlanTypesEnum>, repeats?: WorkOrderPlanRepeatsEnum, state?: number, workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>, itemIds?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoPlanSearchDTO>>;
|
|
756
758
|
/**
|
|
757
759
|
*
|
|
758
760
|
* @summary 处理报事报修工单
|
|
@@ -1928,6 +1930,12 @@ export interface WorkOrderApiPlanListRequest {
|
|
|
1928
1930
|
* @memberof WorkOrderApiPlanList
|
|
1929
1931
|
*/
|
|
1930
1932
|
readonly workOrderTypeSubcategories?: Array<WorkOrderTypeSubcategoryEnum>;
|
|
1933
|
+
/**
|
|
1934
|
+
* 巡检点ID
|
|
1935
|
+
* @type {Array<number>}
|
|
1936
|
+
* @memberof WorkOrderApiPlanList
|
|
1937
|
+
*/
|
|
1938
|
+
readonly itemIds?: Array<number>;
|
|
1931
1939
|
}
|
|
1932
1940
|
/**
|
|
1933
1941
|
* Request parameters for processWorkOrder operation in WorkOrderApi.
|
|
@@ -599,10 +599,11 @@ export const WorkOrderApiAxiosParamCreator = function (configuration) {
|
|
|
599
599
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
600
600
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
601
601
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
602
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
602
603
|
* @param {*} [options] Override http request option.
|
|
603
604
|
* @throws {RequiredError}
|
|
604
605
|
*/
|
|
605
|
-
planList: (parkId_1, page_1, pageSize_1, planName_1, deptIds_1, planTypes_1, repeats_1, state_1, workOrderTypeSubcategories_1, ...args_1) => __awaiter(this, [parkId_1, page_1, pageSize_1, planName_1, deptIds_1, planTypes_1, repeats_1, state_1, workOrderTypeSubcategories_1, ...args_1], void 0, function* (parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, options = {}) {
|
|
606
|
+
planList: (parkId_1, page_1, pageSize_1, planName_1, deptIds_1, planTypes_1, repeats_1, state_1, workOrderTypeSubcategories_1, itemIds_1, ...args_1) => __awaiter(this, [parkId_1, page_1, pageSize_1, planName_1, deptIds_1, planTypes_1, repeats_1, state_1, workOrderTypeSubcategories_1, itemIds_1, ...args_1], void 0, function* (parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, itemIds, options = {}) {
|
|
606
607
|
// verify required parameter 'parkId' is not null or undefined
|
|
607
608
|
assertParamExists('planList', 'parkId', parkId);
|
|
608
609
|
// verify required parameter 'page' is not null or undefined
|
|
@@ -649,6 +650,9 @@ export const WorkOrderApiAxiosParamCreator = function (configuration) {
|
|
|
649
650
|
if (workOrderTypeSubcategories) {
|
|
650
651
|
localVarQueryParameter['workOrderTypeSubcategories'] = workOrderTypeSubcategories;
|
|
651
652
|
}
|
|
653
|
+
if (itemIds) {
|
|
654
|
+
localVarQueryParameter['itemIds'] = itemIds;
|
|
655
|
+
}
|
|
652
656
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
653
657
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
654
658
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2459,13 +2463,14 @@ export const WorkOrderApiFp = function (configuration) {
|
|
|
2459
2463
|
* @param {WorkOrderPlanRepeatsEnum} [repeats] 执行周期
|
|
2460
2464
|
* @param {number} [state] 计划状态 1:启用 0:停用
|
|
2461
2465
|
* @param {Array<WorkOrderTypeSubcategoryEnum>} [workOrderTypeSubcategories] 工单类型小类
|
|
2466
|
+
* @param {Array<number>} [itemIds] 巡检点ID
|
|
2462
2467
|
* @param {*} [options] Override http request option.
|
|
2463
2468
|
* @throws {RequiredError}
|
|
2464
2469
|
*/
|
|
2465
|
-
planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, options) {
|
|
2470
|
+
planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, itemIds, options) {
|
|
2466
2471
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2467
2472
|
var _a, _b, _c;
|
|
2468
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, options);
|
|
2473
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.planList(parkId, page, pageSize, planName, deptIds, planTypes, repeats, state, workOrderTypeSubcategories, itemIds, options);
|
|
2469
2474
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2470
2475
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkOrderApi.planList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2471
2476
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3340,7 +3345,7 @@ export const WorkOrderApiFactory = function (configuration, basePath, axios) {
|
|
|
3340
3345
|
* @throws {RequiredError}
|
|
3341
3346
|
*/
|
|
3342
3347
|
planList(requestParameters, options) {
|
|
3343
|
-
return localVarFp.planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, options).then((request) => request(axios, basePath));
|
|
3348
|
+
return localVarFp.planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, requestParameters.itemIds, options).then((request) => request(axios, basePath));
|
|
3344
3349
|
},
|
|
3345
3350
|
/**
|
|
3346
3351
|
*
|
|
@@ -3934,7 +3939,7 @@ export class WorkOrderApi extends BaseAPI {
|
|
|
3934
3939
|
* @memberof WorkOrderApi
|
|
3935
3940
|
*/
|
|
3936
3941
|
planList(requestParameters, options) {
|
|
3937
|
-
return WorkOrderApiFp(this.configuration).planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, options).then((request) => request(this.axios, this.basePath));
|
|
3942
|
+
return WorkOrderApiFp(this.configuration).planList(requestParameters.parkId, requestParameters.page, requestParameters.pageSize, requestParameters.planName, requestParameters.deptIds, requestParameters.planTypes, requestParameters.repeats, requestParameters.state, requestParameters.workOrderTypeSubcategories, requestParameters.itemIds, options).then((request) => request(this.axios, this.basePath));
|
|
3938
3943
|
}
|
|
3939
3944
|
/**
|
|
3940
3945
|
*
|
|
@@ -78,6 +78,12 @@ export interface PlanSearchDTO {
|
|
|
78
78
|
* @memberof PlanSearchDTO
|
|
79
79
|
*/
|
|
80
80
|
'workOrderTypeSubcategory'?: WorkOrderTypeSubcategoryEnum;
|
|
81
|
+
/**
|
|
82
|
+
* 巡检点ID集合
|
|
83
|
+
* @type {Array<number>}
|
|
84
|
+
* @memberof PlanSearchDTO
|
|
85
|
+
*/
|
|
86
|
+
'itemIds'?: Array<number>;
|
|
81
87
|
}
|
|
82
88
|
export declare const PlanSearchDTOPlanTypeEnum: {
|
|
83
89
|
readonly PlanTypeShebeiweibao: "PLAN_TYPE_SHEBEIWEIBAO";
|
|
@@ -40,4 +40,16 @@ export interface Space {
|
|
|
40
40
|
* @memberof Space
|
|
41
41
|
*/
|
|
42
42
|
'parentName'?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 父ID
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof Space
|
|
47
|
+
*/
|
|
48
|
+
'parentId'?: number;
|
|
49
|
+
/**
|
|
50
|
+
* 父ID列表
|
|
51
|
+
* @type {Array<number>}
|
|
52
|
+
* @memberof Space
|
|
53
|
+
*/
|
|
54
|
+
'parentIds'?: Array<number>;
|
|
43
55
|
}
|
|
@@ -78,6 +78,12 @@ export interface PlanSearchDTO {
|
|
|
78
78
|
* @memberof PlanSearchDTO
|
|
79
79
|
*/
|
|
80
80
|
'workOrderTypeSubcategory'?: WorkOrderTypeSubcategoryEnum;
|
|
81
|
+
/**
|
|
82
|
+
* 巡检点ID集合
|
|
83
|
+
* @type {Array<number>}
|
|
84
|
+
* @memberof PlanSearchDTO
|
|
85
|
+
*/
|
|
86
|
+
'itemIds'?: Array<number>;
|
|
81
87
|
}
|
|
82
88
|
export declare const PlanSearchDTOPlanTypeEnum: {
|
|
83
89
|
readonly PlanTypeShebeiweibao: "PLAN_TYPE_SHEBEIWEIBAO";
|
package/dist/models/space.d.ts
CHANGED
|
@@ -40,4 +40,16 @@ export interface Space {
|
|
|
40
40
|
* @memberof Space
|
|
41
41
|
*/
|
|
42
42
|
'parentName'?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 父ID
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof Space
|
|
47
|
+
*/
|
|
48
|
+
'parentId'?: number;
|
|
49
|
+
/**
|
|
50
|
+
* 父ID列表
|
|
51
|
+
* @type {Array<number>}
|
|
52
|
+
* @memberof Space
|
|
53
|
+
*/
|
|
54
|
+
'parentIds'?: Array<number>;
|
|
43
55
|
}
|
|
@@ -89,6 +89,12 @@ export interface PlanSearchDTO {
|
|
|
89
89
|
* @memberof PlanSearchDTO
|
|
90
90
|
*/
|
|
91
91
|
'workOrderTypeSubcategory'?: WorkOrderTypeSubcategoryEnum;
|
|
92
|
+
/**
|
|
93
|
+
* 巡检点ID集合
|
|
94
|
+
* @type {Array<number>}
|
|
95
|
+
* @memberof PlanSearchDTO
|
|
96
|
+
*/
|
|
97
|
+
'itemIds'?: Array<number>;
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
export const PlanSearchDTOPlanTypeEnum = {
|
package/models/space.ts
CHANGED
|
@@ -47,5 +47,17 @@ export interface Space {
|
|
|
47
47
|
* @memberof Space
|
|
48
48
|
*/
|
|
49
49
|
'parentName'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* 父ID
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Space
|
|
54
|
+
*/
|
|
55
|
+
'parentId'?: number;
|
|
56
|
+
/**
|
|
57
|
+
* 父ID列表
|
|
58
|
+
* @type {Array<number>}
|
|
59
|
+
* @memberof Space
|
|
60
|
+
*/
|
|
61
|
+
'parentIds'?: Array<number>;
|
|
50
62
|
}
|
|
51
63
|
|