@gizone/rrs-client 4.2.0-alpha.383 → 4.2.0-alpha.384

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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/api.ts +1 -0
  3. package/apis/equipment-api.ts +91 -0
  4. package/apis/hwork-api.ts +167 -0
  5. package/apis/work-order-api.ts +18 -5
  6. package/dist/api.d.ts +1 -0
  7. package/dist/api.js +1 -0
  8. package/dist/apis/equipment-api.d.ts +47 -0
  9. package/dist/apis/equipment-api.js +70 -0
  10. package/dist/apis/hwork-api.d.ts +96 -0
  11. package/dist/apis/hwork-api.js +145 -0
  12. package/dist/apis/work-order-api.d.ts +10 -2
  13. package/dist/apis/work-order-api.js +10 -5
  14. package/dist/esm/api.d.ts +1 -0
  15. package/dist/esm/api.js +1 -0
  16. package/dist/esm/apis/equipment-api.d.ts +47 -0
  17. package/dist/esm/apis/equipment-api.js +70 -0
  18. package/dist/esm/apis/hwork-api.d.ts +96 -0
  19. package/dist/esm/apis/hwork-api.js +138 -0
  20. package/dist/esm/apis/work-order-api.d.ts +10 -2
  21. package/dist/esm/apis/work-order-api.js +10 -5
  22. package/dist/esm/models/index.d.ts +1 -0
  23. package/dist/esm/models/index.js +1 -0
  24. package/dist/esm/models/login-type-enum.d.ts +2 -0
  25. package/dist/esm/models/login-type-enum.js +3 -1
  26. package/dist/esm/models/park-info-dto.d.ts +12 -0
  27. package/dist/esm/models/plan-search-dto.d.ts +6 -0
  28. package/dist/esm/models/space.d.ts +12 -0
  29. package/dist/esm/models/sys-post.d.ts +6 -0
  30. package/dist/esm/models/sys-role.d.ts +6 -0
  31. package/dist/esm/models/sys-user.d.ts +15 -2
  32. package/dist/esm/models/user-source-enum.d.ts +21 -0
  33. package/dist/esm/models/user-source-enum.js +22 -0
  34. package/dist/models/index.d.ts +1 -0
  35. package/dist/models/index.js +1 -0
  36. package/dist/models/login-type-enum.d.ts +2 -0
  37. package/dist/models/login-type-enum.js +3 -1
  38. package/dist/models/park-info-dto.d.ts +12 -0
  39. package/dist/models/plan-search-dto.d.ts +6 -0
  40. package/dist/models/space.d.ts +12 -0
  41. package/dist/models/sys-post.d.ts +6 -0
  42. package/dist/models/sys-role.d.ts +6 -0
  43. package/dist/models/sys-user.d.ts +15 -2
  44. package/dist/models/user-source-enum.d.ts +21 -0
  45. package/dist/models/user-source-enum.js +25 -0
  46. package/models/index.ts +1 -0
  47. package/models/login-type-enum.ts +3 -1
  48. package/models/park-info-dto.ts +12 -0
  49. package/models/plan-search-dto.ts +6 -0
  50. package/models/space.ts +12 -0
  51. package/models/sys-post.ts +6 -0
  52. package/models/sys-role.ts +6 -0
  53. package/models/sys-user.ts +19 -2
  54. package/models/user-source-enum.ts +31 -0
  55. package/package.json +1 -1
@@ -0,0 +1,96 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { JsonResultSysDept } from '../models';
16
+ import type { LoginTypeEnum } from '../models';
17
+ /**
18
+ * HWorkApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const HWorkApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @summary 初始化 HWork 用户并获取确认园区 ID
25
+ * @param {LoginTypeEnum} loginType
26
+ * @param {number} [groupId]
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ initHWorkUser: (loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ };
32
+ /**
33
+ * HWorkApi - functional programming interface
34
+ * @export
35
+ */
36
+ export declare const HWorkApiFp: (configuration?: Configuration) => {
37
+ /**
38
+ *
39
+ * @summary 初始化 HWork 用户并获取确认园区 ID
40
+ * @param {LoginTypeEnum} loginType
41
+ * @param {number} [groupId]
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ initHWorkUser(loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultSysDept>>;
46
+ };
47
+ /**
48
+ * HWorkApi - factory interface
49
+ * @export
50
+ */
51
+ export declare const HWorkApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
52
+ /**
53
+ *
54
+ * @summary 初始化 HWork 用户并获取确认园区 ID
55
+ * @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultSysDept>;
60
+ };
61
+ /**
62
+ * Request parameters for initHWorkUser operation in HWorkApi.
63
+ * @export
64
+ * @interface HWorkApiInitHWorkUserRequest
65
+ */
66
+ export interface HWorkApiInitHWorkUserRequest {
67
+ /**
68
+ *
69
+ * @type {LoginTypeEnum}
70
+ * @memberof HWorkApiInitHWorkUser
71
+ */
72
+ readonly loginType: LoginTypeEnum;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof HWorkApiInitHWorkUser
77
+ */
78
+ readonly groupId?: number;
79
+ }
80
+ /**
81
+ * HWorkApi - object-oriented interface
82
+ * @export
83
+ * @class HWorkApi
84
+ * @extends {BaseAPI}
85
+ */
86
+ export declare class HWorkApi extends BaseAPI {
87
+ /**
88
+ *
89
+ * @summary 初始化 HWork 用户并获取确认园区 ID
90
+ * @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof HWorkApi
94
+ */
95
+ initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultSysDept, any>>;
96
+ }
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.HWorkApi = exports.HWorkApiFactory = exports.HWorkApiFp = exports.HWorkApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * HWorkApi - axios parameter creator
34
+ * @export
35
+ */
36
+ const HWorkApiAxiosParamCreator = function (configuration) {
37
+ return {
38
+ /**
39
+ *
40
+ * @summary 初始化 HWork 用户并获取确认园区 ID
41
+ * @param {LoginTypeEnum} loginType
42
+ * @param {number} [groupId]
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ initHWorkUser: (loginType_1, groupId_1, ...args_1) => __awaiter(this, [loginType_1, groupId_1, ...args_1], void 0, function* (loginType, groupId, options = {}) {
47
+ // verify required parameter 'loginType' is not null or undefined
48
+ (0, common_1.assertParamExists)('initHWorkUser', 'loginType', loginType);
49
+ const localVarPath = `/haier/hwork/initHWorkUser`;
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ }
56
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
57
+ const localVarHeaderParameter = {};
58
+ const localVarQueryParameter = {};
59
+ // authentication tokenScheme required
60
+ // http bearer authentication required
61
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
62
+ if (groupId !== undefined) {
63
+ localVarQueryParameter['groupId'] = groupId;
64
+ }
65
+ if (loginType !== undefined) {
66
+ localVarQueryParameter['loginType'] = loginType;
67
+ }
68
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
69
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
70
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
71
+ return {
72
+ url: (0, common_1.toPathString)(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ }),
76
+ };
77
+ };
78
+ exports.HWorkApiAxiosParamCreator = HWorkApiAxiosParamCreator;
79
+ /**
80
+ * HWorkApi - functional programming interface
81
+ * @export
82
+ */
83
+ const HWorkApiFp = function (configuration) {
84
+ const localVarAxiosParamCreator = (0, exports.HWorkApiAxiosParamCreator)(configuration);
85
+ return {
86
+ /**
87
+ *
88
+ * @summary 初始化 HWork 用户并获取确认园区 ID
89
+ * @param {LoginTypeEnum} loginType
90
+ * @param {number} [groupId]
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ initHWorkUser(loginType, groupId, options) {
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ var _a, _b, _c;
97
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.initHWorkUser(loginType, groupId, options);
98
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
99
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HWorkApi.initHWorkUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
100
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
101
+ });
102
+ },
103
+ };
104
+ };
105
+ exports.HWorkApiFp = HWorkApiFp;
106
+ /**
107
+ * HWorkApi - factory interface
108
+ * @export
109
+ */
110
+ const HWorkApiFactory = function (configuration, basePath, axios) {
111
+ const localVarFp = (0, exports.HWorkApiFp)(configuration);
112
+ return {
113
+ /**
114
+ *
115
+ * @summary 初始化 HWork 用户并获取确认园区 ID
116
+ * @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ initHWorkUser(requestParameters, options) {
121
+ return localVarFp.initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(axios, basePath));
122
+ },
123
+ };
124
+ };
125
+ exports.HWorkApiFactory = HWorkApiFactory;
126
+ /**
127
+ * HWorkApi - object-oriented interface
128
+ * @export
129
+ * @class HWorkApi
130
+ * @extends {BaseAPI}
131
+ */
132
+ class HWorkApi extends base_1.BaseAPI {
133
+ /**
134
+ *
135
+ * @summary 初始化 HWork 用户并获取确认园区 ID
136
+ * @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ * @memberof HWorkApi
140
+ */
141
+ initHWorkUser(requestParameters, options) {
142
+ return (0, exports.HWorkApiFp)(this.configuration).initHWorkUser(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath));
143
+ }
144
+ }
145
+ exports.HWorkApi = HWorkApi;
@@ -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
  *
package/dist/esm/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/esm/api.js CHANGED
@@ -21,6 +21,7 @@ export * from './apis/device-api';
21
21
  export * from './apis/disaster-warning-standard-api';
22
22
  export * from './apis/equipment-api';
23
23
  export * from './apis/excel-language-controller-api';
24
+ export * from './apis/hwork-api';
24
25
  export * from './apis/inspection-standard-api';
25
26
  export * from './apis/internal-api';
26
27
  export * from './apis/jwt-api';
@@ -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模板
@@ -0,0 +1,96 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { JsonResultSysDept } from '../models';
16
+ import type { LoginTypeEnum } from '../models';
17
+ /**
18
+ * HWorkApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const HWorkApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ *
24
+ * @summary 初始化 HWork 用户并获取确认园区 ID
25
+ * @param {LoginTypeEnum} loginType
26
+ * @param {number} [groupId]
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ initHWorkUser: (loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ };
32
+ /**
33
+ * HWorkApi - functional programming interface
34
+ * @export
35
+ */
36
+ export declare const HWorkApiFp: (configuration?: Configuration) => {
37
+ /**
38
+ *
39
+ * @summary 初始化 HWork 用户并获取确认园区 ID
40
+ * @param {LoginTypeEnum} loginType
41
+ * @param {number} [groupId]
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ initHWorkUser(loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultSysDept>>;
46
+ };
47
+ /**
48
+ * HWorkApi - factory interface
49
+ * @export
50
+ */
51
+ export declare const HWorkApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
52
+ /**
53
+ *
54
+ * @summary 初始化 HWork 用户并获取确认园区 ID
55
+ * @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultSysDept>;
60
+ };
61
+ /**
62
+ * Request parameters for initHWorkUser operation in HWorkApi.
63
+ * @export
64
+ * @interface HWorkApiInitHWorkUserRequest
65
+ */
66
+ export interface HWorkApiInitHWorkUserRequest {
67
+ /**
68
+ *
69
+ * @type {LoginTypeEnum}
70
+ * @memberof HWorkApiInitHWorkUser
71
+ */
72
+ readonly loginType: LoginTypeEnum;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof HWorkApiInitHWorkUser
77
+ */
78
+ readonly groupId?: number;
79
+ }
80
+ /**
81
+ * HWorkApi - object-oriented interface
82
+ * @export
83
+ * @class HWorkApi
84
+ * @extends {BaseAPI}
85
+ */
86
+ export declare class HWorkApi extends BaseAPI {
87
+ /**
88
+ *
89
+ * @summary 初始化 HWork 用户并获取确认园区 ID
90
+ * @param {HWorkApiInitHWorkUserRequest} requestParameters Request parameters.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof HWorkApi
94
+ */
95
+ initHWorkUser(requestParameters: HWorkApiInitHWorkUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultSysDept, any>>;
96
+ }