@gizone/rrs-client 4.2.0-alpha.347 → 4.2.0-alpha.349

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 (99) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/api.ts +1 -0
  3. package/apis/hwork-api.ts +167 -0
  4. package/apis/open-api-api.ts +214 -0
  5. package/apis/surveillance-api.ts +92 -0
  6. package/apis/web-hook-api.ts +182 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/apis/hwork-api.d.ts +96 -0
  10. package/dist/apis/hwork-api.js +145 -0
  11. package/dist/apis/open-api-api.d.ts +110 -0
  12. package/dist/apis/open-api-api.js +156 -0
  13. package/dist/apis/surveillance-api.d.ts +47 -0
  14. package/dist/apis/surveillance-api.js +71 -0
  15. package/dist/apis/web-hook-api.d.ts +94 -0
  16. package/dist/apis/web-hook-api.js +140 -0
  17. package/dist/esm/api.d.ts +1 -0
  18. package/dist/esm/api.js +1 -0
  19. package/dist/esm/apis/hwork-api.d.ts +96 -0
  20. package/dist/esm/apis/hwork-api.js +138 -0
  21. package/dist/esm/apis/open-api-api.d.ts +110 -0
  22. package/dist/esm/apis/open-api-api.js +156 -0
  23. package/dist/esm/apis/surveillance-api.d.ts +47 -0
  24. package/dist/esm/apis/surveillance-api.js +71 -0
  25. package/dist/esm/apis/web-hook-api.d.ts +94 -0
  26. package/dist/esm/apis/web-hook-api.js +140 -0
  27. package/dist/esm/models/index.d.ts +9 -0
  28. package/dist/esm/models/index.js +9 -0
  29. package/dist/esm/models/insurance-notice-vo.d.ts +54 -0
  30. package/dist/esm/models/insurance-notice-vo.js +14 -0
  31. package/dist/esm/models/insurance-work-order-issue-vo.d.ts +79 -0
  32. package/dist/esm/models/insurance-work-order-issue-vo.js +14 -0
  33. package/dist/esm/models/insurance-work-order-vo.d.ts +37 -0
  34. package/dist/esm/models/insurance-work-order-vo.js +14 -0
  35. package/dist/esm/models/json-result-page-dto-open-api-equipment-list-dto.d.ts +62 -0
  36. package/dist/esm/models/json-result-page-dto-open-api-equipment-list-dto.js +14 -0
  37. package/dist/esm/models/json-result-surveillance-count-dto.d.ts +62 -0
  38. package/dist/esm/models/json-result-surveillance-count-dto.js +14 -0
  39. package/dist/esm/models/login-type-enum.d.ts +2 -0
  40. package/dist/esm/models/login-type-enum.js +3 -1
  41. package/dist/esm/models/open-api-equipment-list-dto.d.ts +110 -0
  42. package/dist/esm/models/open-api-equipment-list-dto.js +14 -0
  43. package/dist/esm/models/page-dto-open-api-equipment-list-dto.d.ts +31 -0
  44. package/dist/esm/models/page-dto-open-api-equipment-list-dto.js +14 -0
  45. package/dist/esm/models/park-info-dto.d.ts +12 -0
  46. package/dist/esm/models/surveillance-count-dto.d.ts +30 -0
  47. package/dist/esm/models/surveillance-count-dto.js +14 -0
  48. package/dist/esm/models/sys-post.d.ts +6 -0
  49. package/dist/esm/models/sys-role.d.ts +6 -0
  50. package/dist/esm/models/sys-user.d.ts +14 -1
  51. package/dist/esm/models/user-source-enum.d.ts +21 -0
  52. package/dist/esm/models/user-source-enum.js +22 -0
  53. package/dist/esm/models/work-order-issue-type-enum.d.ts +1 -1
  54. package/dist/esm/models/work-order-issue-type-enum.js +1 -1
  55. package/dist/models/index.d.ts +9 -0
  56. package/dist/models/index.js +9 -0
  57. package/dist/models/insurance-notice-vo.d.ts +54 -0
  58. package/dist/models/insurance-notice-vo.js +15 -0
  59. package/dist/models/insurance-work-order-issue-vo.d.ts +79 -0
  60. package/dist/models/insurance-work-order-issue-vo.js +15 -0
  61. package/dist/models/insurance-work-order-vo.d.ts +37 -0
  62. package/dist/models/insurance-work-order-vo.js +15 -0
  63. package/dist/models/json-result-page-dto-open-api-equipment-list-dto.d.ts +62 -0
  64. package/dist/models/json-result-page-dto-open-api-equipment-list-dto.js +15 -0
  65. package/dist/models/json-result-surveillance-count-dto.d.ts +62 -0
  66. package/dist/models/json-result-surveillance-count-dto.js +15 -0
  67. package/dist/models/login-type-enum.d.ts +2 -0
  68. package/dist/models/login-type-enum.js +3 -1
  69. package/dist/models/open-api-equipment-list-dto.d.ts +110 -0
  70. package/dist/models/open-api-equipment-list-dto.js +15 -0
  71. package/dist/models/page-dto-open-api-equipment-list-dto.d.ts +31 -0
  72. package/dist/models/page-dto-open-api-equipment-list-dto.js +15 -0
  73. package/dist/models/park-info-dto.d.ts +12 -0
  74. package/dist/models/surveillance-count-dto.d.ts +30 -0
  75. package/dist/models/surveillance-count-dto.js +15 -0
  76. package/dist/models/sys-post.d.ts +6 -0
  77. package/dist/models/sys-role.d.ts +6 -0
  78. package/dist/models/sys-user.d.ts +14 -1
  79. package/dist/models/user-source-enum.d.ts +21 -0
  80. package/dist/models/user-source-enum.js +25 -0
  81. package/dist/models/work-order-issue-type-enum.d.ts +1 -1
  82. package/dist/models/work-order-issue-type-enum.js +1 -1
  83. package/models/index.ts +9 -0
  84. package/models/insurance-notice-vo.ts +60 -0
  85. package/models/insurance-work-order-issue-vo.ts +89 -0
  86. package/models/insurance-work-order-vo.ts +45 -0
  87. package/models/json-result-page-dto-open-api-equipment-list-dto.ts +72 -0
  88. package/models/json-result-surveillance-count-dto.ts +72 -0
  89. package/models/login-type-enum.ts +3 -1
  90. package/models/open-api-equipment-list-dto.ts +122 -0
  91. package/models/page-dto-open-api-equipment-list-dto.ts +39 -0
  92. package/models/park-info-dto.ts +12 -0
  93. package/models/surveillance-count-dto.ts +36 -0
  94. package/models/sys-post.ts +6 -0
  95. package/models/sys-role.ts +6 -0
  96. package/models/sys-user.ts +18 -1
  97. package/models/user-source-enum.ts +31 -0
  98. package/models/work-order-issue-type-enum.ts +1 -1
  99. package/package.json +1 -1
@@ -22,6 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
+ import type { InsuranceNoticeVo } from '../models';
26
+ // @ts-ignore
27
+ import type { InsuranceWorkOrderVo } from '../models';
28
+ // @ts-ignore
25
29
  import type { JsonResultVoid } from '../models';
26
30
  // @ts-ignore
27
31
  import type { SrmParkContractChangeVo } from '../models';
@@ -66,6 +70,86 @@ export const WebHookApiAxiosParamCreator = function (configuration?: Configurati
66
70
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
67
71
  localVarRequestOptions.data = serializeDataIfNeeded(srmParkContractChangeVo, localVarRequestOptions, configuration)
68
72
 
73
+ return {
74
+ url: toPathString(localVarUrlObj),
75
+ options: localVarRequestOptions,
76
+ };
77
+ },
78
+ /**
79
+ *
80
+ * @summary 接收保险通知
81
+ * @param {InsuranceNoticeVo} insuranceNoticeVo
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ webhookInsuranceNotice: async (insuranceNoticeVo: InsuranceNoticeVo, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
86
+ // verify required parameter 'insuranceNoticeVo' is not null or undefined
87
+ assertParamExists('webhookInsuranceNotice', 'insuranceNoticeVo', insuranceNoticeVo)
88
+ const localVarPath = `/webhook/insurance/notice`;
89
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ if (configuration) {
93
+ baseOptions = configuration.baseOptions;
94
+ }
95
+
96
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
97
+ const localVarHeaderParameter = {} as any;
98
+ const localVarQueryParameter = {} as any;
99
+
100
+ // authentication tokenScheme required
101
+ // http bearer authentication required
102
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
103
+
104
+
105
+
106
+ localVarHeaderParameter['Content-Type'] = 'application/json';
107
+
108
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
111
+ localVarRequestOptions.data = serializeDataIfNeeded(insuranceNoticeVo, localVarRequestOptions, configuration)
112
+
113
+ return {
114
+ url: toPathString(localVarUrlObj),
115
+ options: localVarRequestOptions,
116
+ };
117
+ },
118
+ /**
119
+ *
120
+ * @summary 接收保险工单
121
+ * @param {InsuranceWorkOrderVo} insuranceWorkOrderVo
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ webhookInsuranceWorkOrder: async (insuranceWorkOrderVo: InsuranceWorkOrderVo, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
126
+ // verify required parameter 'insuranceWorkOrderVo' is not null or undefined
127
+ assertParamExists('webhookInsuranceWorkOrder', 'insuranceWorkOrderVo', insuranceWorkOrderVo)
128
+ const localVarPath = `/webhook/insurance/workOrder`;
129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
130
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
131
+ let baseOptions;
132
+ if (configuration) {
133
+ baseOptions = configuration.baseOptions;
134
+ }
135
+
136
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
137
+ const localVarHeaderParameter = {} as any;
138
+ const localVarQueryParameter = {} as any;
139
+
140
+ // authentication tokenScheme required
141
+ // http bearer authentication required
142
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
143
+
144
+
145
+
146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
147
+
148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
151
+ localVarRequestOptions.data = serializeDataIfNeeded(insuranceWorkOrderVo, localVarRequestOptions, configuration)
152
+
69
153
  return {
70
154
  url: toPathString(localVarUrlObj),
71
155
  options: localVarRequestOptions,
@@ -94,6 +178,32 @@ export const WebHookApiFp = function(configuration?: Configuration) {
94
178
  const localVarOperationServerBasePath = operationServerMap['WebHookApi.srmParkContractChange']?.[localVarOperationServerIndex]?.url;
95
179
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
96
180
  },
181
+ /**
182
+ *
183
+ * @summary 接收保险通知
184
+ * @param {InsuranceNoticeVo} insuranceNoticeVo
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ async webhookInsuranceNotice(insuranceNoticeVo: InsuranceNoticeVo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>> {
189
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhookInsuranceNotice(insuranceNoticeVo, options);
190
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
191
+ const localVarOperationServerBasePath = operationServerMap['WebHookApi.webhookInsuranceNotice']?.[localVarOperationServerIndex]?.url;
192
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
193
+ },
194
+ /**
195
+ *
196
+ * @summary 接收保险工单
197
+ * @param {InsuranceWorkOrderVo} insuranceWorkOrderVo
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ async webhookInsuranceWorkOrder(insuranceWorkOrderVo: InsuranceWorkOrderVo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>> {
202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhookInsuranceWorkOrder(insuranceWorkOrderVo, options);
203
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
204
+ const localVarOperationServerBasePath = operationServerMap['WebHookApi.webhookInsuranceWorkOrder']?.[localVarOperationServerIndex]?.url;
205
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
206
+ },
97
207
  }
98
208
  };
99
209
 
@@ -114,6 +224,26 @@ export const WebHookApiFactory = function (configuration?: Configuration, basePa
114
224
  srmParkContractChange(requestParameters: WebHookApiSrmParkContractChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid> {
115
225
  return localVarFp.srmParkContractChange(requestParameters.srmParkContractChangeVo, options).then((request) => request(axios, basePath));
116
226
  },
227
+ /**
228
+ *
229
+ * @summary 接收保险通知
230
+ * @param {WebHookApiWebhookInsuranceNoticeRequest} requestParameters Request parameters.
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ webhookInsuranceNotice(requestParameters: WebHookApiWebhookInsuranceNoticeRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid> {
235
+ return localVarFp.webhookInsuranceNotice(requestParameters.insuranceNoticeVo, options).then((request) => request(axios, basePath));
236
+ },
237
+ /**
238
+ *
239
+ * @summary 接收保险工单
240
+ * @param {WebHookApiWebhookInsuranceWorkOrderRequest} requestParameters Request parameters.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ webhookInsuranceWorkOrder(requestParameters: WebHookApiWebhookInsuranceWorkOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid> {
245
+ return localVarFp.webhookInsuranceWorkOrder(requestParameters.insuranceWorkOrderVo, options).then((request) => request(axios, basePath));
246
+ },
117
247
  };
118
248
  };
119
249
 
@@ -131,6 +261,34 @@ export interface WebHookApiSrmParkContractChangeRequest {
131
261
  readonly srmParkContractChangeVo: SrmParkContractChangeVo
132
262
  }
133
263
 
264
+ /**
265
+ * Request parameters for webhookInsuranceNotice operation in WebHookApi.
266
+ * @export
267
+ * @interface WebHookApiWebhookInsuranceNoticeRequest
268
+ */
269
+ export interface WebHookApiWebhookInsuranceNoticeRequest {
270
+ /**
271
+ *
272
+ * @type {InsuranceNoticeVo}
273
+ * @memberof WebHookApiWebhookInsuranceNotice
274
+ */
275
+ readonly insuranceNoticeVo: InsuranceNoticeVo
276
+ }
277
+
278
+ /**
279
+ * Request parameters for webhookInsuranceWorkOrder operation in WebHookApi.
280
+ * @export
281
+ * @interface WebHookApiWebhookInsuranceWorkOrderRequest
282
+ */
283
+ export interface WebHookApiWebhookInsuranceWorkOrderRequest {
284
+ /**
285
+ *
286
+ * @type {InsuranceWorkOrderVo}
287
+ * @memberof WebHookApiWebhookInsuranceWorkOrder
288
+ */
289
+ readonly insuranceWorkOrderVo: InsuranceWorkOrderVo
290
+ }
291
+
134
292
  /**
135
293
  * WebHookApi - object-oriented interface
136
294
  * @export
@@ -149,5 +307,29 @@ export class WebHookApi extends BaseAPI {
149
307
  public srmParkContractChange(requestParameters: WebHookApiSrmParkContractChangeRequest, options?: RawAxiosRequestConfig) {
150
308
  return WebHookApiFp(this.configuration).srmParkContractChange(requestParameters.srmParkContractChangeVo, options).then((request) => request(this.axios, this.basePath));
151
309
  }
310
+
311
+ /**
312
+ *
313
+ * @summary 接收保险通知
314
+ * @param {WebHookApiWebhookInsuranceNoticeRequest} requestParameters Request parameters.
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ * @memberof WebHookApi
318
+ */
319
+ public webhookInsuranceNotice(requestParameters: WebHookApiWebhookInsuranceNoticeRequest, options?: RawAxiosRequestConfig) {
320
+ return WebHookApiFp(this.configuration).webhookInsuranceNotice(requestParameters.insuranceNoticeVo, options).then((request) => request(this.axios, this.basePath));
321
+ }
322
+
323
+ /**
324
+ *
325
+ * @summary 接收保险工单
326
+ * @param {WebHookApiWebhookInsuranceWorkOrderRequest} requestParameters Request parameters.
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ * @memberof WebHookApi
330
+ */
331
+ public webhookInsuranceWorkOrder(requestParameters: WebHookApiWebhookInsuranceWorkOrderRequest, options?: RawAxiosRequestConfig) {
332
+ return WebHookApiFp(this.configuration).webhookInsuranceWorkOrder(requestParameters.insuranceWorkOrderVo, options).then((request) => request(this.axios, this.basePath));
333
+ }
152
334
  }
153
335
 
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);
@@ -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;
@@ -14,6 +14,8 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { JsonResultBoolean } from '../models';
16
16
  import type { JsonResultJsonResultListSpaceTreeDTO } from '../models';
17
+ import type { JsonResultListParkListDTO } from '../models';
18
+ import type { JsonResultPageDtoOpenApiEquipmentListDto } from '../models';
17
19
  import type { JsonResultPageDtoSurveillanceDetailsDto } from '../models';
18
20
  import type { JsonResultVoid } from '../models';
19
21
  import type { OpenApiAccessAppointmentRecordAddVo } from '../models';
@@ -48,6 +50,24 @@ export declare const OpenApiApiAxiosParamCreator: (configuration?: Configuration
48
50
  * @throws {RequiredError}
49
51
  */
50
52
  openApiEquipmentBatchStatusSync: (syncEquipmentStatusVo: SyncEquipmentStatusVo, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
+ /**
54
+ *
55
+ * @summary 查询设备列表
56
+ * @param {string} parkCode 园区编码
57
+ * @param {number} page 页数
58
+ * @param {number} pageSize 页码
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ openApiEquipmentList: (parkCode: string, page: number, pageSize: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
+ /**
64
+ *
65
+ * @summary 查询园区列表
66
+ * @param {string} centerCode 中心编码
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ */
70
+ openApiParks: (centerCode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
51
71
  /**
52
72
  *
53
73
  * @summary 获取空间列表
@@ -94,6 +114,24 @@ export declare const OpenApiApiFp: (configuration?: Configuration) => {
94
114
  * @throws {RequiredError}
95
115
  */
96
116
  openApiEquipmentBatchStatusSync(syncEquipmentStatusVo: SyncEquipmentStatusVo, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultVoid>>;
117
+ /**
118
+ *
119
+ * @summary 查询设备列表
120
+ * @param {string} parkCode 园区编码
121
+ * @param {number} page 页数
122
+ * @param {number} pageSize 页码
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ openApiEquipmentList(parkCode: string, page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoOpenApiEquipmentListDto>>;
127
+ /**
128
+ *
129
+ * @summary 查询园区列表
130
+ * @param {string} centerCode 中心编码
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ openApiParks(centerCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultListParkListDTO>>;
97
135
  /**
98
136
  *
99
137
  * @summary 获取空间列表
@@ -140,6 +178,22 @@ export declare const OpenApiApiFactory: (configuration?: Configuration, basePath
140
178
  * @throws {RequiredError}
141
179
  */
142
180
  openApiEquipmentBatchStatusSync(requestParameters: OpenApiApiOpenApiEquipmentBatchStatusSyncRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid>;
181
+ /**
182
+ *
183
+ * @summary 查询设备列表
184
+ * @param {OpenApiApiOpenApiEquipmentListRequest} requestParameters Request parameters.
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ openApiEquipmentList(requestParameters: OpenApiApiOpenApiEquipmentListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultPageDtoOpenApiEquipmentListDto>;
189
+ /**
190
+ *
191
+ * @summary 查询园区列表
192
+ * @param {OpenApiApiOpenApiParksRequest} requestParameters Request parameters.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ openApiParks(requestParameters: OpenApiApiOpenApiParksRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultListParkListDTO>;
143
197
  /**
144
198
  *
145
199
  * @summary 获取空间列表
@@ -196,6 +250,44 @@ export interface OpenApiApiOpenApiEquipmentBatchStatusSyncRequest {
196
250
  */
197
251
  readonly syncEquipmentStatusVo: SyncEquipmentStatusVo;
198
252
  }
253
+ /**
254
+ * Request parameters for openApiEquipmentList operation in OpenApiApi.
255
+ * @export
256
+ * @interface OpenApiApiOpenApiEquipmentListRequest
257
+ */
258
+ export interface OpenApiApiOpenApiEquipmentListRequest {
259
+ /**
260
+ * 园区编码
261
+ * @type {string}
262
+ * @memberof OpenApiApiOpenApiEquipmentList
263
+ */
264
+ readonly parkCode: string;
265
+ /**
266
+ * 页数
267
+ * @type {number}
268
+ * @memberof OpenApiApiOpenApiEquipmentList
269
+ */
270
+ readonly page: number;
271
+ /**
272
+ * 页码
273
+ * @type {number}
274
+ * @memberof OpenApiApiOpenApiEquipmentList
275
+ */
276
+ readonly pageSize: number;
277
+ }
278
+ /**
279
+ * Request parameters for openApiParks operation in OpenApiApi.
280
+ * @export
281
+ * @interface OpenApiApiOpenApiParksRequest
282
+ */
283
+ export interface OpenApiApiOpenApiParksRequest {
284
+ /**
285
+ * 中心编码
286
+ * @type {string}
287
+ * @memberof OpenApiApiOpenApiParks
288
+ */
289
+ readonly centerCode: string;
290
+ }
199
291
  /**
200
292
  * Request parameters for openApiSpaceList operation in OpenApiApi.
201
293
  * @export
@@ -256,6 +348,24 @@ export declare class OpenApiApi extends BaseAPI {
256
348
  * @memberof OpenApiApi
257
349
  */
258
350
  openApiEquipmentBatchStatusSync(requestParameters: OpenApiApiOpenApiEquipmentBatchStatusSyncRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultVoid, any>>;
351
+ /**
352
+ *
353
+ * @summary 查询设备列表
354
+ * @param {OpenApiApiOpenApiEquipmentListRequest} requestParameters Request parameters.
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ * @memberof OpenApiApi
358
+ */
359
+ openApiEquipmentList(requestParameters: OpenApiApiOpenApiEquipmentListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultPageDtoOpenApiEquipmentListDto, any>>;
360
+ /**
361
+ *
362
+ * @summary 查询园区列表
363
+ * @param {OpenApiApiOpenApiParksRequest} requestParameters Request parameters.
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ * @memberof OpenApiApi
367
+ */
368
+ openApiParks(requestParameters: OpenApiApiOpenApiParksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResultListParkListDTO, any>>;
259
369
  /**
260
370
  *
261
371
  * @summary 获取空间列表