@gizone/rrs-client 4.2.0-alpha.274 → 4.2.0-alpha.276
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 +0 -1
- package/apis/auth-api.ts +2 -452
- package/apis/smsapi.ts +0 -555
- package/apis/surveillance-api.ts +19 -19
- package/dist/apis/auth-api.d.ts +0 -200
- package/dist/apis/auth-api.js +2 -382
- package/dist/apis/smsapi.d.ts +0 -254
- package/dist/apis/smsapi.js +0 -458
- package/dist/apis/surveillance-api.d.ts +6 -7
- package/dist/apis/surveillance-api.js +14 -13
- package/dist/esm/apis/auth-api.d.ts +0 -200
- package/dist/esm/apis/auth-api.js +2 -382
- package/dist/esm/apis/smsapi.d.ts +0 -254
- package/dist/esm/apis/smsapi.js +0 -458
- package/dist/esm/apis/surveillance-api.d.ts +6 -7
- package/dist/esm/apis/surveillance-api.js +14 -13
- package/dist/esm/models/get-user-wx200-response.d.ts +15 -15
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/esm/models/ipage-access-vo.d.ts +3 -3
- package/dist/models/get-user-wx200-response.d.ts +15 -15
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/dist/models/ipage-access-vo.d.ts +3 -3
- package/models/get-user-wx200-response.ts +15 -15
- package/models/index.ts +0 -1
- package/models/ipage-access-vo.ts +3 -3
- package/package.json +1 -1
- package/dist/esm/models/excel-upload-bo.d.ts +0 -36
- package/dist/esm/models/excel-upload-bo.js +0 -14
- package/dist/models/excel-upload-bo.d.ts +0 -36
- package/dist/models/excel-upload-bo.js +0 -15
- package/models/excel-upload-bo.ts +0 -42
package/dist/esm/apis/smsapi.js
CHANGED
|
@@ -32,192 +32,6 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
|
32
32
|
*/
|
|
33
33
|
export const SMSApiAxiosParamCreator = function (configuration) {
|
|
34
34
|
return {
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param {*} [options] Override http request option.
|
|
38
|
-
* @throws {RequiredError}
|
|
39
|
-
*/
|
|
40
|
-
fusionGetToken2: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
41
|
-
const localVarPath = `/fusion/sms/getToken`;
|
|
42
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
-
let baseOptions;
|
|
45
|
-
if (configuration) {
|
|
46
|
-
baseOptions = configuration.baseOptions;
|
|
47
|
-
}
|
|
48
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
49
|
-
const localVarHeaderParameter = {};
|
|
50
|
-
const localVarQueryParameter = {};
|
|
51
|
-
// authentication tokenScheme required
|
|
52
|
-
// http bearer authentication required
|
|
53
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
54
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
55
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
57
|
-
return {
|
|
58
|
-
url: toPathString(localVarUrlObj),
|
|
59
|
-
options: localVarRequestOptions,
|
|
60
|
-
};
|
|
61
|
-
}),
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
fusionGetToken3: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
68
|
-
const localVarPath = `/fusion/sms/getToken`;
|
|
69
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
71
|
-
let baseOptions;
|
|
72
|
-
if (configuration) {
|
|
73
|
-
baseOptions = configuration.baseOptions;
|
|
74
|
-
}
|
|
75
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
76
|
-
const localVarHeaderParameter = {};
|
|
77
|
-
const localVarQueryParameter = {};
|
|
78
|
-
// authentication tokenScheme required
|
|
79
|
-
// http bearer authentication required
|
|
80
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
81
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
84
|
-
return {
|
|
85
|
-
url: toPathString(localVarUrlObj),
|
|
86
|
-
options: localVarRequestOptions,
|
|
87
|
-
};
|
|
88
|
-
}),
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
*/
|
|
94
|
-
getTokenByHttp2: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
95
|
-
const localVarPath = `/fusion/sms/fusionGetTokenByHttp`;
|
|
96
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
-
let baseOptions;
|
|
99
|
-
if (configuration) {
|
|
100
|
-
baseOptions = configuration.baseOptions;
|
|
101
|
-
}
|
|
102
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
103
|
-
const localVarHeaderParameter = {};
|
|
104
|
-
const localVarQueryParameter = {};
|
|
105
|
-
// authentication tokenScheme required
|
|
106
|
-
// http bearer authentication required
|
|
107
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
108
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
109
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
110
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
111
|
-
return {
|
|
112
|
-
url: toPathString(localVarUrlObj),
|
|
113
|
-
options: localVarRequestOptions,
|
|
114
|
-
};
|
|
115
|
-
}),
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @param {*} [options] Override http request option.
|
|
119
|
-
* @throws {RequiredError}
|
|
120
|
-
*/
|
|
121
|
-
getTokenByHttp3: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
122
|
-
const localVarPath = `/fusion/sms/fusionGetTokenByHttp`;
|
|
123
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
124
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
125
|
-
let baseOptions;
|
|
126
|
-
if (configuration) {
|
|
127
|
-
baseOptions = configuration.baseOptions;
|
|
128
|
-
}
|
|
129
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
130
|
-
const localVarHeaderParameter = {};
|
|
131
|
-
const localVarQueryParameter = {};
|
|
132
|
-
// authentication tokenScheme required
|
|
133
|
-
// http bearer authentication required
|
|
134
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
135
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
136
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
-
return {
|
|
139
|
-
url: toPathString(localVarUrlObj),
|
|
140
|
-
options: localVarRequestOptions,
|
|
141
|
-
};
|
|
142
|
-
}),
|
|
143
|
-
/**
|
|
144
|
-
*
|
|
145
|
-
* @param {string} phone
|
|
146
|
-
* @param {string} templateCode
|
|
147
|
-
* @param {*} [options] Override http request option.
|
|
148
|
-
* @throws {RequiredError}
|
|
149
|
-
*/
|
|
150
|
-
sendSms: (phone_1, templateCode_1, ...args_1) => __awaiter(this, [phone_1, templateCode_1, ...args_1], void 0, function* (phone, templateCode, options = {}) {
|
|
151
|
-
// verify required parameter 'phone' is not null or undefined
|
|
152
|
-
assertParamExists('sendSms', 'phone', phone);
|
|
153
|
-
// verify required parameter 'templateCode' is not null or undefined
|
|
154
|
-
assertParamExists('sendSms', 'templateCode', templateCode);
|
|
155
|
-
const localVarPath = `/fusion/sms/sendSms`;
|
|
156
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
158
|
-
let baseOptions;
|
|
159
|
-
if (configuration) {
|
|
160
|
-
baseOptions = configuration.baseOptions;
|
|
161
|
-
}
|
|
162
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
163
|
-
const localVarHeaderParameter = {};
|
|
164
|
-
const localVarQueryParameter = {};
|
|
165
|
-
// authentication tokenScheme required
|
|
166
|
-
// http bearer authentication required
|
|
167
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
168
|
-
if (phone !== undefined) {
|
|
169
|
-
localVarQueryParameter['phone'] = phone;
|
|
170
|
-
}
|
|
171
|
-
if (templateCode !== undefined) {
|
|
172
|
-
localVarQueryParameter['templateCode'] = templateCode;
|
|
173
|
-
}
|
|
174
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
177
|
-
return {
|
|
178
|
-
url: toPathString(localVarUrlObj),
|
|
179
|
-
options: localVarRequestOptions,
|
|
180
|
-
};
|
|
181
|
-
}),
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
* @param {string} phone
|
|
185
|
-
* @param {string} templateCode
|
|
186
|
-
* @param {*} [options] Override http request option.
|
|
187
|
-
* @throws {RequiredError}
|
|
188
|
-
*/
|
|
189
|
-
sendSms1: (phone_1, templateCode_1, ...args_1) => __awaiter(this, [phone_1, templateCode_1, ...args_1], void 0, function* (phone, templateCode, options = {}) {
|
|
190
|
-
// verify required parameter 'phone' is not null or undefined
|
|
191
|
-
assertParamExists('sendSms1', 'phone', phone);
|
|
192
|
-
// verify required parameter 'templateCode' is not null or undefined
|
|
193
|
-
assertParamExists('sendSms1', 'templateCode', templateCode);
|
|
194
|
-
const localVarPath = `/fusion/sms/sendSms`;
|
|
195
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
|
-
let baseOptions;
|
|
198
|
-
if (configuration) {
|
|
199
|
-
baseOptions = configuration.baseOptions;
|
|
200
|
-
}
|
|
201
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
202
|
-
const localVarHeaderParameter = {};
|
|
203
|
-
const localVarQueryParameter = {};
|
|
204
|
-
// authentication tokenScheme required
|
|
205
|
-
// http bearer authentication required
|
|
206
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
207
|
-
if (phone !== undefined) {
|
|
208
|
-
localVarQueryParameter['phone'] = phone;
|
|
209
|
-
}
|
|
210
|
-
if (templateCode !== undefined) {
|
|
211
|
-
localVarQueryParameter['templateCode'] = templateCode;
|
|
212
|
-
}
|
|
213
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
214
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
215
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
216
|
-
return {
|
|
217
|
-
url: toPathString(localVarUrlObj),
|
|
218
|
-
options: localVarRequestOptions,
|
|
219
|
-
};
|
|
220
|
-
}),
|
|
221
35
|
/**
|
|
222
36
|
*
|
|
223
37
|
* @summary 发送验证码
|
|
@@ -252,46 +66,6 @@ export const SMSApiAxiosParamCreator = function (configuration) {
|
|
|
252
66
|
options: localVarRequestOptions,
|
|
253
67
|
};
|
|
254
68
|
}),
|
|
255
|
-
/**
|
|
256
|
-
*
|
|
257
|
-
* @summary 发送验证码
|
|
258
|
-
* @param {string} phone
|
|
259
|
-
* @param {string} msg
|
|
260
|
-
* @param {*} [options] Override http request option.
|
|
261
|
-
* @throws {RequiredError}
|
|
262
|
-
*/
|
|
263
|
-
testSMS: (phone_1, msg_1, ...args_1) => __awaiter(this, [phone_1, msg_1, ...args_1], void 0, function* (phone, msg, options = {}) {
|
|
264
|
-
// verify required parameter 'phone' is not null or undefined
|
|
265
|
-
assertParamExists('testSMS', 'phone', phone);
|
|
266
|
-
// verify required parameter 'msg' is not null or undefined
|
|
267
|
-
assertParamExists('testSMS', 'msg', msg);
|
|
268
|
-
const localVarPath = `/gizone/testSMS`;
|
|
269
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
271
|
-
let baseOptions;
|
|
272
|
-
if (configuration) {
|
|
273
|
-
baseOptions = configuration.baseOptions;
|
|
274
|
-
}
|
|
275
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
276
|
-
const localVarHeaderParameter = {};
|
|
277
|
-
const localVarQueryParameter = {};
|
|
278
|
-
// authentication tokenScheme required
|
|
279
|
-
// http bearer authentication required
|
|
280
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
281
|
-
if (phone !== undefined) {
|
|
282
|
-
localVarQueryParameter['phone'] = phone;
|
|
283
|
-
}
|
|
284
|
-
if (msg !== undefined) {
|
|
285
|
-
localVarQueryParameter['msg'] = msg;
|
|
286
|
-
}
|
|
287
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
288
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
289
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
290
|
-
return {
|
|
291
|
-
url: toPathString(localVarUrlObj),
|
|
292
|
-
options: localVarRequestOptions,
|
|
293
|
-
};
|
|
294
|
-
}),
|
|
295
69
|
};
|
|
296
70
|
};
|
|
297
71
|
/**
|
|
@@ -301,94 +75,6 @@ export const SMSApiAxiosParamCreator = function (configuration) {
|
|
|
301
75
|
export const SMSApiFp = function (configuration) {
|
|
302
76
|
const localVarAxiosParamCreator = SMSApiAxiosParamCreator(configuration);
|
|
303
77
|
return {
|
|
304
|
-
/**
|
|
305
|
-
*
|
|
306
|
-
* @param {*} [options] Override http request option.
|
|
307
|
-
* @throws {RequiredError}
|
|
308
|
-
*/
|
|
309
|
-
fusionGetToken2(options) {
|
|
310
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
-
var _a, _b, _c;
|
|
312
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.fusionGetToken2(options);
|
|
313
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
314
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SMSApi.fusionGetToken2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
315
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
316
|
-
});
|
|
317
|
-
},
|
|
318
|
-
/**
|
|
319
|
-
*
|
|
320
|
-
* @param {*} [options] Override http request option.
|
|
321
|
-
* @throws {RequiredError}
|
|
322
|
-
*/
|
|
323
|
-
fusionGetToken3(options) {
|
|
324
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
-
var _a, _b, _c;
|
|
326
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.fusionGetToken3(options);
|
|
327
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
328
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SMSApi.fusionGetToken3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
329
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
330
|
-
});
|
|
331
|
-
},
|
|
332
|
-
/**
|
|
333
|
-
*
|
|
334
|
-
* @param {*} [options] Override http request option.
|
|
335
|
-
* @throws {RequiredError}
|
|
336
|
-
*/
|
|
337
|
-
getTokenByHttp2(options) {
|
|
338
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
-
var _a, _b, _c;
|
|
340
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTokenByHttp2(options);
|
|
341
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
342
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SMSApi.getTokenByHttp2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
343
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
344
|
-
});
|
|
345
|
-
},
|
|
346
|
-
/**
|
|
347
|
-
*
|
|
348
|
-
* @param {*} [options] Override http request option.
|
|
349
|
-
* @throws {RequiredError}
|
|
350
|
-
*/
|
|
351
|
-
getTokenByHttp3(options) {
|
|
352
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
353
|
-
var _a, _b, _c;
|
|
354
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTokenByHttp3(options);
|
|
355
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
356
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SMSApi.getTokenByHttp3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
357
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
358
|
-
});
|
|
359
|
-
},
|
|
360
|
-
/**
|
|
361
|
-
*
|
|
362
|
-
* @param {string} phone
|
|
363
|
-
* @param {string} templateCode
|
|
364
|
-
* @param {*} [options] Override http request option.
|
|
365
|
-
* @throws {RequiredError}
|
|
366
|
-
*/
|
|
367
|
-
sendSms(phone, templateCode, options) {
|
|
368
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
-
var _a, _b, _c;
|
|
370
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendSms(phone, templateCode, options);
|
|
371
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
372
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SMSApi.sendSms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
373
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
374
|
-
});
|
|
375
|
-
},
|
|
376
|
-
/**
|
|
377
|
-
*
|
|
378
|
-
* @param {string} phone
|
|
379
|
-
* @param {string} templateCode
|
|
380
|
-
* @param {*} [options] Override http request option.
|
|
381
|
-
* @throws {RequiredError}
|
|
382
|
-
*/
|
|
383
|
-
sendSms1(phone, templateCode, options) {
|
|
384
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
-
var _a, _b, _c;
|
|
386
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendSms1(phone, templateCode, options);
|
|
387
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
388
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SMSApi.sendSms1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
389
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
390
|
-
});
|
|
391
|
-
},
|
|
392
78
|
/**
|
|
393
79
|
*
|
|
394
80
|
* @summary 发送验证码
|
|
@@ -405,23 +91,6 @@ export const SMSApiFp = function (configuration) {
|
|
|
405
91
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
406
92
|
});
|
|
407
93
|
},
|
|
408
|
-
/**
|
|
409
|
-
*
|
|
410
|
-
* @summary 发送验证码
|
|
411
|
-
* @param {string} phone
|
|
412
|
-
* @param {string} msg
|
|
413
|
-
* @param {*} [options] Override http request option.
|
|
414
|
-
* @throws {RequiredError}
|
|
415
|
-
*/
|
|
416
|
-
testSMS(phone, msg, options) {
|
|
417
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
-
var _a, _b, _c;
|
|
419
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.testSMS(phone, msg, options);
|
|
420
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
421
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SMSApi.testSMS']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
422
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
423
|
-
});
|
|
424
|
-
},
|
|
425
94
|
};
|
|
426
95
|
};
|
|
427
96
|
/**
|
|
@@ -431,56 +100,6 @@ export const SMSApiFp = function (configuration) {
|
|
|
431
100
|
export const SMSApiFactory = function (configuration, basePath, axios) {
|
|
432
101
|
const localVarFp = SMSApiFp(configuration);
|
|
433
102
|
return {
|
|
434
|
-
/**
|
|
435
|
-
*
|
|
436
|
-
* @param {*} [options] Override http request option.
|
|
437
|
-
* @throws {RequiredError}
|
|
438
|
-
*/
|
|
439
|
-
fusionGetToken2(options) {
|
|
440
|
-
return localVarFp.fusionGetToken2(options).then((request) => request(axios, basePath));
|
|
441
|
-
},
|
|
442
|
-
/**
|
|
443
|
-
*
|
|
444
|
-
* @param {*} [options] Override http request option.
|
|
445
|
-
* @throws {RequiredError}
|
|
446
|
-
*/
|
|
447
|
-
fusionGetToken3(options) {
|
|
448
|
-
return localVarFp.fusionGetToken3(options).then((request) => request(axios, basePath));
|
|
449
|
-
},
|
|
450
|
-
/**
|
|
451
|
-
*
|
|
452
|
-
* @param {*} [options] Override http request option.
|
|
453
|
-
* @throws {RequiredError}
|
|
454
|
-
*/
|
|
455
|
-
getTokenByHttp2(options) {
|
|
456
|
-
return localVarFp.getTokenByHttp2(options).then((request) => request(axios, basePath));
|
|
457
|
-
},
|
|
458
|
-
/**
|
|
459
|
-
*
|
|
460
|
-
* @param {*} [options] Override http request option.
|
|
461
|
-
* @throws {RequiredError}
|
|
462
|
-
*/
|
|
463
|
-
getTokenByHttp3(options) {
|
|
464
|
-
return localVarFp.getTokenByHttp3(options).then((request) => request(axios, basePath));
|
|
465
|
-
},
|
|
466
|
-
/**
|
|
467
|
-
*
|
|
468
|
-
* @param {SMSApiSendSmsRequest} requestParameters Request parameters.
|
|
469
|
-
* @param {*} [options] Override http request option.
|
|
470
|
-
* @throws {RequiredError}
|
|
471
|
-
*/
|
|
472
|
-
sendSms(requestParameters, options) {
|
|
473
|
-
return localVarFp.sendSms(requestParameters.phone, requestParameters.templateCode, options).then((request) => request(axios, basePath));
|
|
474
|
-
},
|
|
475
|
-
/**
|
|
476
|
-
*
|
|
477
|
-
* @param {SMSApiSendSms1Request} requestParameters Request parameters.
|
|
478
|
-
* @param {*} [options] Override http request option.
|
|
479
|
-
* @throws {RequiredError}
|
|
480
|
-
*/
|
|
481
|
-
sendSms1(requestParameters, options) {
|
|
482
|
-
return localVarFp.sendSms1(requestParameters.phone, requestParameters.templateCode, options).then((request) => request(axios, basePath));
|
|
483
|
-
},
|
|
484
103
|
/**
|
|
485
104
|
*
|
|
486
105
|
* @summary 发送验证码
|
|
@@ -491,16 +110,6 @@ export const SMSApiFactory = function (configuration, basePath, axios) {
|
|
|
491
110
|
sms(requestParameters, options) {
|
|
492
111
|
return localVarFp.sms(requestParameters.phone, options).then((request) => request(axios, basePath));
|
|
493
112
|
},
|
|
494
|
-
/**
|
|
495
|
-
*
|
|
496
|
-
* @summary 发送验证码
|
|
497
|
-
* @param {SMSApiTestSMSRequest} requestParameters Request parameters.
|
|
498
|
-
* @param {*} [options] Override http request option.
|
|
499
|
-
* @throws {RequiredError}
|
|
500
|
-
*/
|
|
501
|
-
testSMS(requestParameters, options) {
|
|
502
|
-
return localVarFp.testSMS(requestParameters.phone, requestParameters.msg, options).then((request) => request(axios, basePath));
|
|
503
|
-
},
|
|
504
113
|
};
|
|
505
114
|
};
|
|
506
115
|
/**
|
|
@@ -510,62 +119,6 @@ export const SMSApiFactory = function (configuration, basePath, axios) {
|
|
|
510
119
|
* @extends {BaseAPI}
|
|
511
120
|
*/
|
|
512
121
|
export class SMSApi extends BaseAPI {
|
|
513
|
-
/**
|
|
514
|
-
*
|
|
515
|
-
* @param {*} [options] Override http request option.
|
|
516
|
-
* @throws {RequiredError}
|
|
517
|
-
* @memberof SMSApi
|
|
518
|
-
*/
|
|
519
|
-
fusionGetToken2(options) {
|
|
520
|
-
return SMSApiFp(this.configuration).fusionGetToken2(options).then((request) => request(this.axios, this.basePath));
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
*
|
|
524
|
-
* @param {*} [options] Override http request option.
|
|
525
|
-
* @throws {RequiredError}
|
|
526
|
-
* @memberof SMSApi
|
|
527
|
-
*/
|
|
528
|
-
fusionGetToken3(options) {
|
|
529
|
-
return SMSApiFp(this.configuration).fusionGetToken3(options).then((request) => request(this.axios, this.basePath));
|
|
530
|
-
}
|
|
531
|
-
/**
|
|
532
|
-
*
|
|
533
|
-
* @param {*} [options] Override http request option.
|
|
534
|
-
* @throws {RequiredError}
|
|
535
|
-
* @memberof SMSApi
|
|
536
|
-
*/
|
|
537
|
-
getTokenByHttp2(options) {
|
|
538
|
-
return SMSApiFp(this.configuration).getTokenByHttp2(options).then((request) => request(this.axios, this.basePath));
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
*
|
|
542
|
-
* @param {*} [options] Override http request option.
|
|
543
|
-
* @throws {RequiredError}
|
|
544
|
-
* @memberof SMSApi
|
|
545
|
-
*/
|
|
546
|
-
getTokenByHttp3(options) {
|
|
547
|
-
return SMSApiFp(this.configuration).getTokenByHttp3(options).then((request) => request(this.axios, this.basePath));
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
*
|
|
551
|
-
* @param {SMSApiSendSmsRequest} requestParameters Request parameters.
|
|
552
|
-
* @param {*} [options] Override http request option.
|
|
553
|
-
* @throws {RequiredError}
|
|
554
|
-
* @memberof SMSApi
|
|
555
|
-
*/
|
|
556
|
-
sendSms(requestParameters, options) {
|
|
557
|
-
return SMSApiFp(this.configuration).sendSms(requestParameters.phone, requestParameters.templateCode, options).then((request) => request(this.axios, this.basePath));
|
|
558
|
-
}
|
|
559
|
-
/**
|
|
560
|
-
*
|
|
561
|
-
* @param {SMSApiSendSms1Request} requestParameters Request parameters.
|
|
562
|
-
* @param {*} [options] Override http request option.
|
|
563
|
-
* @throws {RequiredError}
|
|
564
|
-
* @memberof SMSApi
|
|
565
|
-
*/
|
|
566
|
-
sendSms1(requestParameters, options) {
|
|
567
|
-
return SMSApiFp(this.configuration).sendSms1(requestParameters.phone, requestParameters.templateCode, options).then((request) => request(this.axios, this.basePath));
|
|
568
|
-
}
|
|
569
122
|
/**
|
|
570
123
|
*
|
|
571
124
|
* @summary 发送验证码
|
|
@@ -577,15 +130,4 @@ export class SMSApi extends BaseAPI {
|
|
|
577
130
|
sms(requestParameters, options) {
|
|
578
131
|
return SMSApiFp(this.configuration).sms(requestParameters.phone, options).then((request) => request(this.axios, this.basePath));
|
|
579
132
|
}
|
|
580
|
-
/**
|
|
581
|
-
*
|
|
582
|
-
* @summary 发送验证码
|
|
583
|
-
* @param {SMSApiTestSMSRequest} requestParameters Request parameters.
|
|
584
|
-
* @param {*} [options] Override http request option.
|
|
585
|
-
* @throws {RequiredError}
|
|
586
|
-
* @memberof SMSApi
|
|
587
|
-
*/
|
|
588
|
-
testSMS(requestParameters, options) {
|
|
589
|
-
return SMSApiFp(this.configuration).testSMS(requestParameters.phone, requestParameters.msg, options).then((request) => request(this.axios, this.basePath));
|
|
590
|
-
}
|
|
591
133
|
}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type { ExcelUploadBO } from '../models';
|
|
16
15
|
import type { FunctionalAreaEnum } from '../models';
|
|
17
16
|
import type { IotDeviceStatusEnum } from '../models';
|
|
18
17
|
import type { JsonResultBoolean } from '../models';
|
|
@@ -54,11 +53,11 @@ export declare const SurveillanceApiAxiosParamCreator: (configuration?: Configur
|
|
|
54
53
|
/**
|
|
55
54
|
* 批量导入-上传文件
|
|
56
55
|
* @summary 批量导入-上传
|
|
57
|
-
* @param {
|
|
56
|
+
* @param {File} file
|
|
58
57
|
* @param {*} [options] Override http request option.
|
|
59
58
|
* @throws {RequiredError}
|
|
60
59
|
*/
|
|
61
|
-
surveillanceBatchImportUpload: (
|
|
60
|
+
surveillanceBatchImportUpload: (file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
61
|
/**
|
|
63
62
|
* 抓拍监控画面
|
|
64
63
|
* @summary 监控抓拍
|
|
@@ -193,11 +192,11 @@ export declare const SurveillanceApiFp: (configuration?: Configuration) => {
|
|
|
193
192
|
/**
|
|
194
193
|
* 批量导入-上传文件
|
|
195
194
|
* @summary 批量导入-上传
|
|
196
|
-
* @param {
|
|
195
|
+
* @param {File} file
|
|
197
196
|
* @param {*} [options] Override http request option.
|
|
198
197
|
* @throws {RequiredError}
|
|
199
198
|
*/
|
|
200
|
-
surveillanceBatchImportUpload(
|
|
199
|
+
surveillanceBatchImportUpload(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultExcelImportResultDTOSurveillanceBatchImportTemplateDto>>;
|
|
201
200
|
/**
|
|
202
201
|
* 抓拍监控画面
|
|
203
202
|
* @summary 监控抓拍
|
|
@@ -426,10 +425,10 @@ export declare const SurveillanceApiFactory: (configuration?: Configuration, bas
|
|
|
426
425
|
export interface SurveillanceApiSurveillanceBatchImportUploadRequest {
|
|
427
426
|
/**
|
|
428
427
|
*
|
|
429
|
-
* @type {
|
|
428
|
+
* @type {File}
|
|
430
429
|
* @memberof SurveillanceApiSurveillanceBatchImportUpload
|
|
431
430
|
*/
|
|
432
|
-
readonly
|
|
431
|
+
readonly file: File;
|
|
433
432
|
}
|
|
434
433
|
/**
|
|
435
434
|
* Request parameters for surveillanceCapture operation in SurveillanceApi.
|
|
@@ -119,13 +119,13 @@ export const SurveillanceApiAxiosParamCreator = function (configuration) {
|
|
|
119
119
|
/**
|
|
120
120
|
* 批量导入-上传文件
|
|
121
121
|
* @summary 批量导入-上传
|
|
122
|
-
* @param {
|
|
122
|
+
* @param {File} file
|
|
123
123
|
* @param {*} [options] Override http request option.
|
|
124
124
|
* @throws {RequiredError}
|
|
125
125
|
*/
|
|
126
|
-
surveillanceBatchImportUpload: (
|
|
127
|
-
// verify required parameter '
|
|
128
|
-
assertParamExists('surveillanceBatchImportUpload', '
|
|
126
|
+
surveillanceBatchImportUpload: (file_1, ...args_1) => __awaiter(this, [file_1, ...args_1], void 0, function* (file, options = {}) {
|
|
127
|
+
// verify required parameter 'file' is not null or undefined
|
|
128
|
+
assertParamExists('surveillanceBatchImportUpload', 'file', file);
|
|
129
129
|
const localVarPath = `/gizone/surveillance/batchImport/upload`;
|
|
130
130
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
131
131
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -136,17 +136,18 @@ export const SurveillanceApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
137
137
|
const localVarHeaderParameter = {};
|
|
138
138
|
const localVarQueryParameter = {};
|
|
139
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
139
140
|
// authentication tokenScheme required
|
|
140
141
|
// http bearer authentication required
|
|
141
142
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
142
|
-
if (
|
|
143
|
-
|
|
144
|
-
localVarQueryParameter[key] = value;
|
|
145
|
-
}
|
|
143
|
+
if (file !== undefined) {
|
|
144
|
+
localVarFormParams.append('file', file);
|
|
146
145
|
}
|
|
146
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
147
147
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
148
148
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
149
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
150
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
150
151
|
return {
|
|
151
152
|
url: toPathString(localVarUrlObj),
|
|
152
153
|
options: localVarRequestOptions,
|
|
@@ -639,14 +640,14 @@ export const SurveillanceApiFp = function (configuration) {
|
|
|
639
640
|
/**
|
|
640
641
|
* 批量导入-上传文件
|
|
641
642
|
* @summary 批量导入-上传
|
|
642
|
-
* @param {
|
|
643
|
+
* @param {File} file
|
|
643
644
|
* @param {*} [options] Override http request option.
|
|
644
645
|
* @throws {RequiredError}
|
|
645
646
|
*/
|
|
646
|
-
surveillanceBatchImportUpload(
|
|
647
|
+
surveillanceBatchImportUpload(file, options) {
|
|
647
648
|
return __awaiter(this, void 0, void 0, function* () {
|
|
648
649
|
var _a, _b, _c;
|
|
649
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.surveillanceBatchImportUpload(
|
|
650
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.surveillanceBatchImportUpload(file, options);
|
|
650
651
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
651
652
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SurveillanceApi.surveillanceBatchImportUpload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
652
653
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -880,7 +881,7 @@ export const SurveillanceApiFactory = function (configuration, basePath, axios)
|
|
|
880
881
|
* @throws {RequiredError}
|
|
881
882
|
*/
|
|
882
883
|
surveillanceBatchImportUpload(requestParameters, options) {
|
|
883
|
-
return localVarFp.surveillanceBatchImportUpload(requestParameters.
|
|
884
|
+
return localVarFp.surveillanceBatchImportUpload(requestParameters.file, options).then((request) => request(axios, basePath));
|
|
884
885
|
},
|
|
885
886
|
/**
|
|
886
887
|
* 抓拍监控画面
|
|
@@ -1030,7 +1031,7 @@ export class SurveillanceApi extends BaseAPI {
|
|
|
1030
1031
|
* @memberof SurveillanceApi
|
|
1031
1032
|
*/
|
|
1032
1033
|
surveillanceBatchImportUpload(requestParameters, options) {
|
|
1033
|
-
return SurveillanceApiFp(this.configuration).surveillanceBatchImportUpload(requestParameters.
|
|
1034
|
+
return SurveillanceApiFp(this.configuration).surveillanceBatchImportUpload(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1034
1035
|
}
|
|
1035
1036
|
/**
|
|
1036
1037
|
* 抓拍监控画面
|