@gizone/rrs-client 4.2.0-alpha.383 → 4.2.0-alpha.385
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/.openapi-generator/FILES +2 -0
- package/api.ts +1 -0
- package/apis/equipment-api.ts +91 -0
- package/apis/hwork-api.ts +167 -0
- package/apis/work-order-api.ts +18 -5
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/apis/equipment-api.d.ts +47 -0
- package/dist/apis/equipment-api.js +70 -0
- package/dist/apis/hwork-api.d.ts +96 -0
- package/dist/apis/hwork-api.js +145 -0
- package/dist/apis/work-order-api.d.ts +10 -2
- package/dist/apis/work-order-api.js +10 -5
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/apis/equipment-api.d.ts +47 -0
- package/dist/esm/apis/equipment-api.js +70 -0
- package/dist/esm/apis/hwork-api.d.ts +96 -0
- package/dist/esm/apis/hwork-api.js +138 -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/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/login-type-enum.d.ts +2 -0
- package/dist/esm/models/login-type-enum.js +3 -1
- package/dist/esm/models/park-info-dto.d.ts +12 -0
- package/dist/esm/models/plan-search-dto.d.ts +6 -0
- package/dist/esm/models/space.d.ts +12 -0
- package/dist/esm/models/sys-post.d.ts +6 -0
- package/dist/esm/models/sys-role.d.ts +6 -0
- package/dist/esm/models/sys-user.d.ts +15 -2
- package/dist/esm/models/user-source-enum.d.ts +21 -0
- package/dist/esm/models/user-source-enum.js +22 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/login-type-enum.d.ts +2 -0
- package/dist/models/login-type-enum.js +3 -1
- package/dist/models/park-info-dto.d.ts +12 -0
- package/dist/models/plan-search-dto.d.ts +6 -0
- package/dist/models/space.d.ts +12 -0
- package/dist/models/sys-post.d.ts +6 -0
- package/dist/models/sys-role.d.ts +6 -0
- package/dist/models/sys-user.d.ts +15 -2
- package/dist/models/user-source-enum.d.ts +21 -0
- package/dist/models/user-source-enum.js +25 -0
- package/models/index.ts +1 -0
- package/models/login-type-enum.ts +3 -1
- package/models/park-info-dto.ts +12 -0
- package/models/plan-search-dto.ts +6 -0
- package/models/space.ts +12 -0
- package/models/sys-post.ts +6 -0
- package/models/sys-role.ts +6 -0
- package/models/sys-user.ts +19 -2
- package/models/user-source-enum.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -13,6 +13,7 @@ apis/device-api.ts
|
|
|
13
13
|
apis/disaster-warning-standard-api.ts
|
|
14
14
|
apis/equipment-api.ts
|
|
15
15
|
apis/excel-language-controller-api.ts
|
|
16
|
+
apis/hwork-api.ts
|
|
16
17
|
apis/inspection-standard-api.ts
|
|
17
18
|
apis/internal-api.ts
|
|
18
19
|
apis/jwt-api.ts
|
|
@@ -458,6 +459,7 @@ models/user-excel-dto.ts
|
|
|
458
459
|
models/user-roles-and-permissions-dto.ts
|
|
459
460
|
models/user-settings-entity.ts
|
|
460
461
|
models/user-settings-update-bo.ts
|
|
462
|
+
models/user-source-enum.ts
|
|
461
463
|
models/user-whether-privacy-dto.ts
|
|
462
464
|
models/violation-center-attribute-enum.ts
|
|
463
465
|
models/violation-decision-vo.ts
|
package/api.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './apis/device-api';
|
|
|
24
24
|
export * from './apis/disaster-warning-standard-api';
|
|
25
25
|
export * from './apis/equipment-api';
|
|
26
26
|
export * from './apis/excel-language-controller-api';
|
|
27
|
+
export * from './apis/hwork-api';
|
|
27
28
|
export * from './apis/inspection-standard-api';
|
|
28
29
|
export * from './apis/internal-api';
|
|
29
30
|
export * from './apis/jwt-api';
|
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模板
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenAPI definition
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { JsonResultSysDept } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { LoginTypeEnum } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* HWorkApi - axios parameter creator
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const HWorkApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
37
|
+
* @param {LoginTypeEnum} loginType
|
|
38
|
+
* @param {number} [groupId]
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
initHWorkUser: async (loginType: LoginTypeEnum, groupId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
// verify required parameter 'loginType' is not null or undefined
|
|
44
|
+
assertParamExists('initHWorkUser', 'loginType', loginType)
|
|
45
|
+
const localVarPath = `/haier/hwork/initHWorkUser`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
// authentication tokenScheme required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
|
+
|
|
61
|
+
if (groupId !== undefined) {
|
|
62
|
+
localVarQueryParameter['groupId'] = groupId;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (loginType !== undefined) {
|
|
66
|
+
localVarQueryParameter['loginType'] = loginType;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
72
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
73
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* HWorkApi - functional programming interface
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const HWorkApiFp = function(configuration?: Configuration) {
|
|
88
|
+
const localVarAxiosParamCreator = HWorkApiAxiosParamCreator(configuration)
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
93
|
+
* @param {LoginTypeEnum} loginType
|
|
94
|
+
* @param {number} [groupId]
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
async initHWorkUser(loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultSysDept>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initHWorkUser(loginType, groupId, options);
|
|
100
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
101
|
+
const localVarOperationServerBasePath = operationServerMap['HWorkApi.initHWorkUser']?.[localVarOperationServerIndex]?.url;
|
|
102
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
103
|
+
},
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* HWorkApi - factory interface
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export const HWorkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
112
|
+
const localVarFp = HWorkApiFp(configuration)
|
|
113
|
+
return {
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
117
|
+
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultSysDept> {
|
|
122
|
+
return localVarFp.initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(axios, basePath));
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Request parameters for initHWorkUser operation in HWorkApi.
|
|
129
|
+
* @export
|
|
130
|
+
* @interface HWorkApiInitHWorkUserRequest
|
|
131
|
+
*/
|
|
132
|
+
export interface HWorkApiInitHWorkUserRequest {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {LoginTypeEnum}
|
|
136
|
+
* @memberof HWorkApiInitHWorkUser
|
|
137
|
+
*/
|
|
138
|
+
readonly loginType: LoginTypeEnum
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {number}
|
|
143
|
+
* @memberof HWorkApiInitHWorkUser
|
|
144
|
+
*/
|
|
145
|
+
readonly groupId?: number
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* HWorkApi - object-oriented interface
|
|
150
|
+
* @export
|
|
151
|
+
* @class HWorkApi
|
|
152
|
+
* @extends {BaseAPI}
|
|
153
|
+
*/
|
|
154
|
+
export class HWorkApi extends BaseAPI {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary 初始化 HWork 用户并获取确认园区 ID
|
|
158
|
+
* @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
* @memberof HWorkApi
|
|
162
|
+
*/
|
|
163
|
+
public initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig) {
|
|
164
|
+
return HWorkApiFp(this.configuration).initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
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
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './apis/device-api';
|
|
|
19
19
|
export * from './apis/disaster-warning-standard-api';
|
|
20
20
|
export * from './apis/equipment-api';
|
|
21
21
|
export * from './apis/excel-language-controller-api';
|
|
22
|
+
export * from './apis/hwork-api';
|
|
22
23
|
export * from './apis/inspection-standard-api';
|
|
23
24
|
export * from './apis/internal-api';
|
|
24
25
|
export * from './apis/jwt-api';
|
package/dist/api.js
CHANGED
|
@@ -37,6 +37,7 @@ __exportStar(require("./apis/device-api"), exports);
|
|
|
37
37
|
__exportStar(require("./apis/disaster-warning-standard-api"), exports);
|
|
38
38
|
__exportStar(require("./apis/equipment-api"), exports);
|
|
39
39
|
__exportStar(require("./apis/excel-language-controller-api"), exports);
|
|
40
|
+
__exportStar(require("./apis/hwork-api"), exports);
|
|
40
41
|
__exportStar(require("./apis/inspection-standard-api"), exports);
|
|
41
42
|
__exportStar(require("./apis/internal-api"), exports);
|
|
42
43
|
__exportStar(require("./apis/jwt-api"), exports);
|
|
@@ -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模板
|