@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.
- package/.openapi-generator/FILES +10 -0
- package/api.ts +1 -0
- package/apis/hwork-api.ts +167 -0
- package/apis/open-api-api.ts +214 -0
- package/apis/surveillance-api.ts +92 -0
- package/apis/web-hook-api.ts +182 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/apis/hwork-api.d.ts +96 -0
- package/dist/apis/hwork-api.js +145 -0
- package/dist/apis/open-api-api.d.ts +110 -0
- package/dist/apis/open-api-api.js +156 -0
- package/dist/apis/surveillance-api.d.ts +47 -0
- package/dist/apis/surveillance-api.js +71 -0
- package/dist/apis/web-hook-api.d.ts +94 -0
- package/dist/apis/web-hook-api.js +140 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/apis/hwork-api.d.ts +96 -0
- package/dist/esm/apis/hwork-api.js +138 -0
- package/dist/esm/apis/open-api-api.d.ts +110 -0
- package/dist/esm/apis/open-api-api.js +156 -0
- package/dist/esm/apis/surveillance-api.d.ts +47 -0
- package/dist/esm/apis/surveillance-api.js +71 -0
- package/dist/esm/apis/web-hook-api.d.ts +94 -0
- package/dist/esm/apis/web-hook-api.js +140 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/insurance-notice-vo.d.ts +54 -0
- package/dist/esm/models/insurance-notice-vo.js +14 -0
- package/dist/esm/models/insurance-work-order-issue-vo.d.ts +79 -0
- package/dist/esm/models/insurance-work-order-issue-vo.js +14 -0
- package/dist/esm/models/insurance-work-order-vo.d.ts +37 -0
- package/dist/esm/models/insurance-work-order-vo.js +14 -0
- package/dist/esm/models/json-result-page-dto-open-api-equipment-list-dto.d.ts +62 -0
- package/dist/esm/models/json-result-page-dto-open-api-equipment-list-dto.js +14 -0
- package/dist/esm/models/json-result-surveillance-count-dto.d.ts +62 -0
- package/dist/esm/models/json-result-surveillance-count-dto.js +14 -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/open-api-equipment-list-dto.d.ts +110 -0
- package/dist/esm/models/open-api-equipment-list-dto.js +14 -0
- package/dist/esm/models/page-dto-open-api-equipment-list-dto.d.ts +31 -0
- package/dist/esm/models/page-dto-open-api-equipment-list-dto.js +14 -0
- package/dist/esm/models/park-info-dto.d.ts +12 -0
- package/dist/esm/models/surveillance-count-dto.d.ts +30 -0
- package/dist/esm/models/surveillance-count-dto.js +14 -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 +14 -1
- package/dist/esm/models/user-source-enum.d.ts +21 -0
- package/dist/esm/models/user-source-enum.js +22 -0
- package/dist/esm/models/work-order-issue-type-enum.d.ts +1 -1
- package/dist/esm/models/work-order-issue-type-enum.js +1 -1
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/insurance-notice-vo.d.ts +54 -0
- package/dist/models/insurance-notice-vo.js +15 -0
- package/dist/models/insurance-work-order-issue-vo.d.ts +79 -0
- package/dist/models/insurance-work-order-issue-vo.js +15 -0
- package/dist/models/insurance-work-order-vo.d.ts +37 -0
- package/dist/models/insurance-work-order-vo.js +15 -0
- package/dist/models/json-result-page-dto-open-api-equipment-list-dto.d.ts +62 -0
- package/dist/models/json-result-page-dto-open-api-equipment-list-dto.js +15 -0
- package/dist/models/json-result-surveillance-count-dto.d.ts +62 -0
- package/dist/models/json-result-surveillance-count-dto.js +15 -0
- package/dist/models/login-type-enum.d.ts +2 -0
- package/dist/models/login-type-enum.js +3 -1
- package/dist/models/open-api-equipment-list-dto.d.ts +110 -0
- package/dist/models/open-api-equipment-list-dto.js +15 -0
- package/dist/models/page-dto-open-api-equipment-list-dto.d.ts +31 -0
- package/dist/models/page-dto-open-api-equipment-list-dto.js +15 -0
- package/dist/models/park-info-dto.d.ts +12 -0
- package/dist/models/surveillance-count-dto.d.ts +30 -0
- package/dist/models/surveillance-count-dto.js +15 -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 +14 -1
- package/dist/models/user-source-enum.d.ts +21 -0
- package/dist/models/user-source-enum.js +25 -0
- package/dist/models/work-order-issue-type-enum.d.ts +1 -1
- package/dist/models/work-order-issue-type-enum.js +1 -1
- package/models/index.ts +9 -0
- package/models/insurance-notice-vo.ts +60 -0
- package/models/insurance-work-order-issue-vo.ts +89 -0
- package/models/insurance-work-order-vo.ts +45 -0
- package/models/json-result-page-dto-open-api-equipment-list-dto.ts +72 -0
- package/models/json-result-surveillance-count-dto.ts +72 -0
- package/models/login-type-enum.ts +3 -1
- package/models/open-api-equipment-list-dto.ts +122 -0
- package/models/page-dto-open-api-equipment-list-dto.ts +39 -0
- package/models/park-info-dto.ts +12 -0
- package/models/surveillance-count-dto.ts +36 -0
- package/models/sys-post.ts +6 -0
- package/models/sys-role.ts +6 -0
- package/models/sys-user.ts +18 -1
- package/models/user-source-enum.ts +31 -0
- package/models/work-order-issue-type-enum.ts +1 -1
- 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
|
|
@@ -178,6 +179,9 @@ models/inspection-standard-entity.ts
|
|
|
178
179
|
models/inspection-standard-import-dto.ts
|
|
179
180
|
models/inspection-standard-type-enum.ts
|
|
180
181
|
models/installation-body-enum.ts
|
|
182
|
+
models/insurance-notice-vo.ts
|
|
183
|
+
models/insurance-work-order-issue-vo.ts
|
|
184
|
+
models/insurance-work-order-vo.ts
|
|
181
185
|
models/iot-device-status-enum.ts
|
|
182
186
|
models/json-result-access-appointment-record-details-dto.ts
|
|
183
187
|
models/json-result-access-blacklist-details-dto.ts
|
|
@@ -255,6 +259,7 @@ models/json-result-page-dto-disaster-warning-standard-entity.ts
|
|
|
255
259
|
models/json-result-page-dto-equipment-search-system-dto.ts
|
|
256
260
|
models/json-result-page-dto-inspection-standard-dto.ts
|
|
257
261
|
models/json-result-page-dto-maintenance-standard-dto.ts
|
|
262
|
+
models/json-result-page-dto-open-api-equipment-list-dto.ts
|
|
258
263
|
models/json-result-page-dto-plan-search-dto.ts
|
|
259
264
|
models/json-result-page-dto-supplier-contract-details-dto.ts
|
|
260
265
|
models/json-result-page-dto-surveillance-details-dto.ts
|
|
@@ -269,6 +274,7 @@ models/json-result-space-image-detail-dto.ts
|
|
|
269
274
|
models/json-result-string.ts
|
|
270
275
|
models/json-result-supplier-contract-details-dto.ts
|
|
271
276
|
models/json-result-supplier-entity.ts
|
|
277
|
+
models/json-result-surveillance-count-dto.ts
|
|
272
278
|
models/json-result-surveillance-details-dto.ts
|
|
273
279
|
models/json-result-surveillance-live-dto.ts
|
|
274
280
|
models/json-result-surveillance-settings-details-dto.ts
|
|
@@ -310,6 +316,7 @@ models/offline-alert-work-order-details-dto.ts
|
|
|
310
316
|
models/offline-alert-work-order-info.ts
|
|
311
317
|
models/offline-alert-work-order-vo.ts
|
|
312
318
|
models/open-api-access-appointment-record-add-vo.ts
|
|
319
|
+
models/open-api-equipment-list-dto.ts
|
|
313
320
|
models/page-dto-access-appointment-record-details-dto.ts
|
|
314
321
|
models/page-dto-access-blacklist-details-dto.ts
|
|
315
322
|
models/page-dto-access-record-summary-list-dto.ts
|
|
@@ -319,6 +326,7 @@ models/page-dto-disaster-warning-standard-entity.ts
|
|
|
319
326
|
models/page-dto-equipment-search-system-dto.ts
|
|
320
327
|
models/page-dto-inspection-standard-dto.ts
|
|
321
328
|
models/page-dto-maintenance-standard-dto.ts
|
|
329
|
+
models/page-dto-open-api-equipment-list-dto.ts
|
|
322
330
|
models/page-dto-plan-search-dto.ts
|
|
323
331
|
models/page-dto-supplier-contract-details-dto.ts
|
|
324
332
|
models/page-dto-surveillance-details-dto.ts
|
|
@@ -390,6 +398,7 @@ models/supplier-entity.ts
|
|
|
390
398
|
models/supplier-search-vo.ts
|
|
391
399
|
models/supplier-select-dto.ts
|
|
392
400
|
models/surveillance-batch-import-template-dto.ts
|
|
401
|
+
models/surveillance-count-dto.ts
|
|
393
402
|
models/surveillance-details-dto.ts
|
|
394
403
|
models/surveillance-live-dto.ts
|
|
395
404
|
models/surveillance-point-vo.ts
|
|
@@ -441,6 +450,7 @@ models/user-excel-dto.ts
|
|
|
441
450
|
models/user-roles-and-permissions-dto.ts
|
|
442
451
|
models/user-settings-entity.ts
|
|
443
452
|
models/user-settings-update-bo.ts
|
|
453
|
+
models/user-source-enum.ts
|
|
444
454
|
models/user-whether-privacy-dto.ts
|
|
445
455
|
models/violation-center-attribute-enum.ts
|
|
446
456
|
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';
|
|
@@ -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/open-api-api.ts
CHANGED
|
@@ -26,6 +26,10 @@ import type { JsonResultBoolean } from '../models';
|
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import type { JsonResultJsonResultListSpaceTreeDTO } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
+
import type { JsonResultListParkListDTO } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { JsonResultPageDtoOpenApiEquipmentListDto } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
29
33
|
import type { JsonResultPageDtoSurveillanceDetailsDto } from '../models';
|
|
30
34
|
// @ts-ignore
|
|
31
35
|
import type { JsonResultVoid } from '../models';
|
|
@@ -161,6 +165,102 @@ export const OpenApiApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
161
165
|
options: localVarRequestOptions,
|
|
162
166
|
};
|
|
163
167
|
},
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @summary 查询设备列表
|
|
171
|
+
* @param {string} parkCode 园区编码
|
|
172
|
+
* @param {number} page 页数
|
|
173
|
+
* @param {number} pageSize 页码
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
openApiEquipmentList: async (parkCode: string, page: number, pageSize: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
178
|
+
// verify required parameter 'parkCode' is not null or undefined
|
|
179
|
+
assertParamExists('openApiEquipmentList', 'parkCode', parkCode)
|
|
180
|
+
// verify required parameter 'page' is not null or undefined
|
|
181
|
+
assertParamExists('openApiEquipmentList', 'page', page)
|
|
182
|
+
// verify required parameter 'pageSize' is not null or undefined
|
|
183
|
+
assertParamExists('openApiEquipmentList', 'pageSize', pageSize)
|
|
184
|
+
const localVarPath = `/openapi/v1/main/parks/equipment`;
|
|
185
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
187
|
+
let baseOptions;
|
|
188
|
+
if (configuration) {
|
|
189
|
+
baseOptions = configuration.baseOptions;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
193
|
+
const localVarHeaderParameter = {} as any;
|
|
194
|
+
const localVarQueryParameter = {} as any;
|
|
195
|
+
|
|
196
|
+
// authentication tokenScheme required
|
|
197
|
+
// http bearer authentication required
|
|
198
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
199
|
+
|
|
200
|
+
if (parkCode !== undefined) {
|
|
201
|
+
localVarQueryParameter['parkCode'] = parkCode;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
if (page !== undefined) {
|
|
205
|
+
localVarQueryParameter['page'] = page;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (pageSize !== undefined) {
|
|
209
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
217
|
+
|
|
218
|
+
return {
|
|
219
|
+
url: toPathString(localVarUrlObj),
|
|
220
|
+
options: localVarRequestOptions,
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @summary 查询园区列表
|
|
226
|
+
* @param {string} centerCode 中心编码
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
openApiParks: async (centerCode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
231
|
+
// verify required parameter 'centerCode' is not null or undefined
|
|
232
|
+
assertParamExists('openApiParks', 'centerCode', centerCode)
|
|
233
|
+
const localVarPath = `/openapi/v1/main/parks`;
|
|
234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
235
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
236
|
+
let baseOptions;
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
242
|
+
const localVarHeaderParameter = {} as any;
|
|
243
|
+
const localVarQueryParameter = {} as any;
|
|
244
|
+
|
|
245
|
+
// authentication tokenScheme required
|
|
246
|
+
// http bearer authentication required
|
|
247
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
248
|
+
|
|
249
|
+
if (centerCode !== undefined) {
|
|
250
|
+
localVarQueryParameter['centerCode'] = centerCode;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
256
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
257
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
258
|
+
|
|
259
|
+
return {
|
|
260
|
+
url: toPathString(localVarUrlObj),
|
|
261
|
+
options: localVarRequestOptions,
|
|
262
|
+
};
|
|
263
|
+
},
|
|
164
264
|
/**
|
|
165
265
|
*
|
|
166
266
|
* @summary 获取空间列表
|
|
@@ -292,6 +392,34 @@ export const OpenApiApiFp = function(configuration?: Configuration) {
|
|
|
292
392
|
const localVarOperationServerBasePath = operationServerMap['OpenApiApi.openApiEquipmentBatchStatusSync']?.[localVarOperationServerIndex]?.url;
|
|
293
393
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
294
394
|
},
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @summary 查询设备列表
|
|
398
|
+
* @param {string} parkCode 园区编码
|
|
399
|
+
* @param {number} page 页数
|
|
400
|
+
* @param {number} pageSize 页码
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
async openApiEquipmentList(parkCode: string, page: number, pageSize: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoOpenApiEquipmentListDto>> {
|
|
405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.openApiEquipmentList(parkCode, page, pageSize, options);
|
|
406
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
407
|
+
const localVarOperationServerBasePath = operationServerMap['OpenApiApi.openApiEquipmentList']?.[localVarOperationServerIndex]?.url;
|
|
408
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
409
|
+
},
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @summary 查询园区列表
|
|
413
|
+
* @param {string} centerCode 中心编码
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
async openApiParks(centerCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultListParkListDTO>> {
|
|
418
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.openApiParks(centerCode, options);
|
|
419
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
420
|
+
const localVarOperationServerBasePath = operationServerMap['OpenApiApi.openApiParks']?.[localVarOperationServerIndex]?.url;
|
|
421
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
422
|
+
},
|
|
295
423
|
/**
|
|
296
424
|
*
|
|
297
425
|
* @summary 获取空间列表
|
|
@@ -358,6 +486,26 @@ export const OpenApiApiFactory = function (configuration?: Configuration, basePa
|
|
|
358
486
|
openApiEquipmentBatchStatusSync(requestParameters: OpenApiApiOpenApiEquipmentBatchStatusSyncRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid> {
|
|
359
487
|
return localVarFp.openApiEquipmentBatchStatusSync(requestParameters.syncEquipmentStatusVo, options).then((request) => request(axios, basePath));
|
|
360
488
|
},
|
|
489
|
+
/**
|
|
490
|
+
*
|
|
491
|
+
* @summary 查询设备列表
|
|
492
|
+
* @param {OpenApiApiOpenApiEquipmentListRequest} requestParameters Request parameters.
|
|
493
|
+
* @param {*} [options] Override http request option.
|
|
494
|
+
* @throws {RequiredError}
|
|
495
|
+
*/
|
|
496
|
+
openApiEquipmentList(requestParameters: OpenApiApiOpenApiEquipmentListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultPageDtoOpenApiEquipmentListDto> {
|
|
497
|
+
return localVarFp.openApiEquipmentList(requestParameters.parkCode, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
498
|
+
},
|
|
499
|
+
/**
|
|
500
|
+
*
|
|
501
|
+
* @summary 查询园区列表
|
|
502
|
+
* @param {OpenApiApiOpenApiParksRequest} requestParameters Request parameters.
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
*/
|
|
506
|
+
openApiParks(requestParameters: OpenApiApiOpenApiParksRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultListParkListDTO> {
|
|
507
|
+
return localVarFp.openApiParks(requestParameters.centerCode, options).then((request) => request(axios, basePath));
|
|
508
|
+
},
|
|
361
509
|
/**
|
|
362
510
|
*
|
|
363
511
|
* @summary 获取空间列表
|
|
@@ -423,6 +571,48 @@ export interface OpenApiApiOpenApiEquipmentBatchStatusSyncRequest {
|
|
|
423
571
|
readonly syncEquipmentStatusVo: SyncEquipmentStatusVo
|
|
424
572
|
}
|
|
425
573
|
|
|
574
|
+
/**
|
|
575
|
+
* Request parameters for openApiEquipmentList operation in OpenApiApi.
|
|
576
|
+
* @export
|
|
577
|
+
* @interface OpenApiApiOpenApiEquipmentListRequest
|
|
578
|
+
*/
|
|
579
|
+
export interface OpenApiApiOpenApiEquipmentListRequest {
|
|
580
|
+
/**
|
|
581
|
+
* 园区编码
|
|
582
|
+
* @type {string}
|
|
583
|
+
* @memberof OpenApiApiOpenApiEquipmentList
|
|
584
|
+
*/
|
|
585
|
+
readonly parkCode: string
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* 页数
|
|
589
|
+
* @type {number}
|
|
590
|
+
* @memberof OpenApiApiOpenApiEquipmentList
|
|
591
|
+
*/
|
|
592
|
+
readonly page: number
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* 页码
|
|
596
|
+
* @type {number}
|
|
597
|
+
* @memberof OpenApiApiOpenApiEquipmentList
|
|
598
|
+
*/
|
|
599
|
+
readonly pageSize: number
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Request parameters for openApiParks operation in OpenApiApi.
|
|
604
|
+
* @export
|
|
605
|
+
* @interface OpenApiApiOpenApiParksRequest
|
|
606
|
+
*/
|
|
607
|
+
export interface OpenApiApiOpenApiParksRequest {
|
|
608
|
+
/**
|
|
609
|
+
* 中心编码
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof OpenApiApiOpenApiParks
|
|
612
|
+
*/
|
|
613
|
+
readonly centerCode: string
|
|
614
|
+
}
|
|
615
|
+
|
|
426
616
|
/**
|
|
427
617
|
* Request parameters for openApiSpaceList operation in OpenApiApi.
|
|
428
618
|
* @export
|
|
@@ -494,6 +684,30 @@ export class OpenApiApi extends BaseAPI {
|
|
|
494
684
|
return OpenApiApiFp(this.configuration).openApiEquipmentBatchStatusSync(requestParameters.syncEquipmentStatusVo, options).then((request) => request(this.axios, this.basePath));
|
|
495
685
|
}
|
|
496
686
|
|
|
687
|
+
/**
|
|
688
|
+
*
|
|
689
|
+
* @summary 查询设备列表
|
|
690
|
+
* @param {OpenApiApiOpenApiEquipmentListRequest} requestParameters Request parameters.
|
|
691
|
+
* @param {*} [options] Override http request option.
|
|
692
|
+
* @throws {RequiredError}
|
|
693
|
+
* @memberof OpenApiApi
|
|
694
|
+
*/
|
|
695
|
+
public openApiEquipmentList(requestParameters: OpenApiApiOpenApiEquipmentListRequest, options?: RawAxiosRequestConfig) {
|
|
696
|
+
return OpenApiApiFp(this.configuration).openApiEquipmentList(requestParameters.parkCode, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
*
|
|
701
|
+
* @summary 查询园区列表
|
|
702
|
+
* @param {OpenApiApiOpenApiParksRequest} requestParameters Request parameters.
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
* @memberof OpenApiApi
|
|
706
|
+
*/
|
|
707
|
+
public openApiParks(requestParameters: OpenApiApiOpenApiParksRequest, options?: RawAxiosRequestConfig) {
|
|
708
|
+
return OpenApiApiFp(this.configuration).openApiParks(requestParameters.centerCode, options).then((request) => request(this.axios, this.basePath));
|
|
709
|
+
}
|
|
710
|
+
|
|
497
711
|
/**
|
|
498
712
|
*
|
|
499
713
|
* @summary 获取空间列表
|
package/apis/surveillance-api.ts
CHANGED
|
@@ -34,6 +34,8 @@ import type { JsonResultListSpaceTreeDTO } from '../models';
|
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
import type { JsonResultPageDtoSurveillanceDetailsDto } from '../models';
|
|
36
36
|
// @ts-ignore
|
|
37
|
+
import type { JsonResultSurveillanceCountDto } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
import type { JsonResultSurveillanceDetailsDto } from '../models';
|
|
38
40
|
// @ts-ignore
|
|
39
41
|
import type { JsonResultSurveillanceLiveDto } from '../models';
|
|
@@ -531,6 +533,47 @@ export const SurveillanceApiAxiosParamCreator = function (configuration?: Config
|
|
|
531
533
|
|
|
532
534
|
|
|
533
535
|
|
|
536
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
537
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
538
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
539
|
+
|
|
540
|
+
return {
|
|
541
|
+
url: toPathString(localVarUrlObj),
|
|
542
|
+
options: localVarRequestOptions,
|
|
543
|
+
};
|
|
544
|
+
},
|
|
545
|
+
/**
|
|
546
|
+
* 获取监控数量
|
|
547
|
+
* @summary 获取监控数量
|
|
548
|
+
* @param {number} parkId 园区ID
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
surveillanceSelectCount: async (parkId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
553
|
+
// verify required parameter 'parkId' is not null or undefined
|
|
554
|
+
assertParamExists('surveillanceSelectCount', 'parkId', parkId)
|
|
555
|
+
const localVarPath = `/gizone/surveillance/count`;
|
|
556
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
557
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
558
|
+
let baseOptions;
|
|
559
|
+
if (configuration) {
|
|
560
|
+
baseOptions = configuration.baseOptions;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
564
|
+
const localVarHeaderParameter = {} as any;
|
|
565
|
+
const localVarQueryParameter = {} as any;
|
|
566
|
+
|
|
567
|
+
// authentication tokenScheme required
|
|
568
|
+
// http bearer authentication required
|
|
569
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
570
|
+
|
|
571
|
+
if (parkId !== undefined) {
|
|
572
|
+
localVarQueryParameter['parkId'] = parkId;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
534
577
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
535
578
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
536
579
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -877,6 +920,19 @@ export const SurveillanceApiFp = function(configuration?: Configuration) {
|
|
|
877
920
|
const localVarOperationServerBasePath = operationServerMap['SurveillanceApi.surveillancePtzControl']?.[localVarOperationServerIndex]?.url;
|
|
878
921
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
879
922
|
},
|
|
923
|
+
/**
|
|
924
|
+
* 获取监控数量
|
|
925
|
+
* @summary 获取监控数量
|
|
926
|
+
* @param {number} parkId 园区ID
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
async surveillanceSelectCount(parkId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultSurveillanceCountDto>> {
|
|
931
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.surveillanceSelectCount(parkId, options);
|
|
932
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
933
|
+
const localVarOperationServerBasePath = operationServerMap['SurveillanceApi.surveillanceSelectCount']?.[localVarOperationServerIndex]?.url;
|
|
934
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
935
|
+
},
|
|
880
936
|
/**
|
|
881
937
|
* 获取监控空间列表
|
|
882
938
|
* @summary 监控空间列表
|
|
@@ -1044,6 +1100,16 @@ export const SurveillanceApiFactory = function (configuration?: Configuration, b
|
|
|
1044
1100
|
surveillancePtzControl(requestParameters: SurveillanceApiSurveillancePtzControlRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultVoid> {
|
|
1045
1101
|
return localVarFp.surveillancePtzControl(requestParameters.id, requestParameters.command, requestParameters.action, options).then((request) => request(axios, basePath));
|
|
1046
1102
|
},
|
|
1103
|
+
/**
|
|
1104
|
+
* 获取监控数量
|
|
1105
|
+
* @summary 获取监控数量
|
|
1106
|
+
* @param {SurveillanceApiSurveillanceSelectCountRequest} requestParameters Request parameters.
|
|
1107
|
+
* @param {*} [options] Override http request option.
|
|
1108
|
+
* @throws {RequiredError}
|
|
1109
|
+
*/
|
|
1110
|
+
surveillanceSelectCount(requestParameters: SurveillanceApiSurveillanceSelectCountRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultSurveillanceCountDto> {
|
|
1111
|
+
return localVarFp.surveillanceSelectCount(requestParameters.parkId, options).then((request) => request(axios, basePath));
|
|
1112
|
+
},
|
|
1047
1113
|
/**
|
|
1048
1114
|
* 获取监控空间列表
|
|
1049
1115
|
* @summary 监控空间列表
|
|
@@ -1280,6 +1346,20 @@ export interface SurveillanceApiSurveillancePtzControlRequest {
|
|
|
1280
1346
|
readonly action: SurveillancePtzControlActionEnum
|
|
1281
1347
|
}
|
|
1282
1348
|
|
|
1349
|
+
/**
|
|
1350
|
+
* Request parameters for surveillanceSelectCount operation in SurveillanceApi.
|
|
1351
|
+
* @export
|
|
1352
|
+
* @interface SurveillanceApiSurveillanceSelectCountRequest
|
|
1353
|
+
*/
|
|
1354
|
+
export interface SurveillanceApiSurveillanceSelectCountRequest {
|
|
1355
|
+
/**
|
|
1356
|
+
* 园区ID
|
|
1357
|
+
* @type {number}
|
|
1358
|
+
* @memberof SurveillanceApiSurveillanceSelectCount
|
|
1359
|
+
*/
|
|
1360
|
+
readonly parkId: number
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1283
1363
|
/**
|
|
1284
1364
|
* Request parameters for surveillanceSpaceList operation in SurveillanceApi.
|
|
1285
1365
|
* @export
|
|
@@ -1535,6 +1615,18 @@ export class SurveillanceApi extends BaseAPI {
|
|
|
1535
1615
|
return SurveillanceApiFp(this.configuration).surveillancePtzControl(requestParameters.id, requestParameters.command, requestParameters.action, options).then((request) => request(this.axios, this.basePath));
|
|
1536
1616
|
}
|
|
1537
1617
|
|
|
1618
|
+
/**
|
|
1619
|
+
* 获取监控数量
|
|
1620
|
+
* @summary 获取监控数量
|
|
1621
|
+
* @param {SurveillanceApiSurveillanceSelectCountRequest} requestParameters Request parameters.
|
|
1622
|
+
* @param {*} [options] Override http request option.
|
|
1623
|
+
* @throws {RequiredError}
|
|
1624
|
+
* @memberof SurveillanceApi
|
|
1625
|
+
*/
|
|
1626
|
+
public surveillanceSelectCount(requestParameters: SurveillanceApiSurveillanceSelectCountRequest, options?: RawAxiosRequestConfig) {
|
|
1627
|
+
return SurveillanceApiFp(this.configuration).surveillanceSelectCount(requestParameters.parkId, options).then((request) => request(this.axios, this.basePath));
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1538
1630
|
/**
|
|
1539
1631
|
* 获取监控空间列表
|
|
1540
1632
|
* @summary 监控空间列表
|