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