@gizone/rrs-client 4.2.0-alpha.275 → 4.2.0-alpha.277
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 +1 -0
- package/apis/auth-api.ts +2 -452
- package/apis/smsapi.ts +17 -555
- package/dist/apis/auth-api.d.ts +0 -200
- package/dist/apis/auth-api.js +2 -382
- package/dist/apis/smsapi.d.ts +8 -253
- package/dist/apis/smsapi.js +12 -463
- 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 +8 -253
- package/dist/esm/apis/smsapi.js +12 -463
- package/dist/esm/models/get-user-wx200-response.d.ts +18 -18
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/user-sms-captcha-enum.d.ts +21 -0
- package/dist/esm/models/user-sms-captcha-enum.js +22 -0
- package/dist/models/get-user-wx200-response.d.ts +18 -18
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/user-sms-captcha-enum.d.ts +21 -0
- package/dist/models/user-sms-captcha-enum.js +25 -0
- package/models/get-user-wx200-response.ts +18 -18
- package/models/index.ts +1 -0
- package/models/user-sms-captcha-enum.ts +31 -0
- package/package.json +1 -1
package/dist/apis/smsapi.js
CHANGED
|
@@ -35,240 +35,20 @@ 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 发送验证码
|
|
227
41
|
* @param {string} phone
|
|
42
|
+
* @param {UserSmsCaptchaEnum} userSmsCaptcha
|
|
228
43
|
* @param {*} [options] Override http request option.
|
|
229
44
|
* @throws {RequiredError}
|
|
230
45
|
*/
|
|
231
|
-
sms: (phone_1, ...args_1) => __awaiter(this, [phone_1, ...args_1], void 0, function* (phone, options = {}) {
|
|
46
|
+
sms: (phone_1, userSmsCaptcha_1, ...args_1) => __awaiter(this, [phone_1, userSmsCaptcha_1, ...args_1], void 0, function* (phone, userSmsCaptcha, options = {}) {
|
|
232
47
|
// verify required parameter 'phone' is not null or undefined
|
|
233
48
|
(0, common_1.assertParamExists)('sms', 'phone', phone);
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
let baseOptions;
|
|
238
|
-
if (configuration) {
|
|
239
|
-
baseOptions = configuration.baseOptions;
|
|
240
|
-
}
|
|
241
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
242
|
-
const localVarHeaderParameter = {};
|
|
243
|
-
const localVarQueryParameter = {};
|
|
244
|
-
// authentication tokenScheme required
|
|
245
|
-
// http bearer authentication required
|
|
246
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
247
|
-
if (phone !== undefined) {
|
|
248
|
-
localVarQueryParameter['phone'] = phone;
|
|
249
|
-
}
|
|
250
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
251
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
252
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
253
|
-
return {
|
|
254
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
255
|
-
options: localVarRequestOptions,
|
|
256
|
-
};
|
|
257
|
-
}),
|
|
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`;
|
|
49
|
+
// verify required parameter 'userSmsCaptcha' is not null or undefined
|
|
50
|
+
(0, common_1.assertParamExists)('sms', 'userSmsCaptcha', userSmsCaptcha);
|
|
51
|
+
const localVarPath = `/gizone/sms/captcha`;
|
|
272
52
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
273
53
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
274
54
|
let baseOptions;
|
|
@@ -284,8 +64,8 @@ const SMSApiAxiosParamCreator = function (configuration) {
|
|
|
284
64
|
if (phone !== undefined) {
|
|
285
65
|
localVarQueryParameter['phone'] = phone;
|
|
286
66
|
}
|
|
287
|
-
if (
|
|
288
|
-
localVarQueryParameter['
|
|
67
|
+
if (userSmsCaptcha !== undefined) {
|
|
68
|
+
localVarQueryParameter['userSmsCaptcha'] = userSmsCaptcha;
|
|
289
69
|
}
|
|
290
70
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
291
71
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -305,127 +85,23 @@ exports.SMSApiAxiosParamCreator = SMSApiAxiosParamCreator;
|
|
|
305
85
|
const SMSApiFp = function (configuration) {
|
|
306
86
|
const localVarAxiosParamCreator = (0, exports.SMSApiAxiosParamCreator)(configuration);
|
|
307
87
|
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
88
|
/**
|
|
397
89
|
*
|
|
398
90
|
* @summary 发送验证码
|
|
399
91
|
* @param {string} phone
|
|
92
|
+
* @param {UserSmsCaptchaEnum} userSmsCaptcha
|
|
400
93
|
* @param {*} [options] Override http request option.
|
|
401
94
|
* @throws {RequiredError}
|
|
402
95
|
*/
|
|
403
|
-
sms(phone, options) {
|
|
96
|
+
sms(phone, userSmsCaptcha, options) {
|
|
404
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
405
98
|
var _a, _b, _c;
|
|
406
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sms(phone, options);
|
|
99
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sms(phone, userSmsCaptcha, options);
|
|
407
100
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
408
101
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SMSApi.sms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
409
102
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
410
103
|
});
|
|
411
104
|
},
|
|
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
105
|
};
|
|
430
106
|
};
|
|
431
107
|
exports.SMSApiFp = SMSApiFp;
|
|
@@ -436,56 +112,6 @@ exports.SMSApiFp = SMSApiFp;
|
|
|
436
112
|
const SMSApiFactory = function (configuration, basePath, axios) {
|
|
437
113
|
const localVarFp = (0, exports.SMSApiFp)(configuration);
|
|
438
114
|
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
115
|
/**
|
|
490
116
|
*
|
|
491
117
|
* @summary 发送验证码
|
|
@@ -494,17 +120,7 @@ const SMSApiFactory = function (configuration, basePath, axios) {
|
|
|
494
120
|
* @throws {RequiredError}
|
|
495
121
|
*/
|
|
496
122
|
sms(requestParameters, options) {
|
|
497
|
-
return localVarFp.sms(requestParameters.phone, options).then((request) => request(axios, basePath));
|
|
498
|
-
},
|
|
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));
|
|
123
|
+
return localVarFp.sms(requestParameters.phone, requestParameters.userSmsCaptcha, options).then((request) => request(axios, basePath));
|
|
508
124
|
},
|
|
509
125
|
};
|
|
510
126
|
};
|
|
@@ -516,62 +132,6 @@ exports.SMSApiFactory = SMSApiFactory;
|
|
|
516
132
|
* @extends {BaseAPI}
|
|
517
133
|
*/
|
|
518
134
|
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
135
|
/**
|
|
576
136
|
*
|
|
577
137
|
* @summary 发送验证码
|
|
@@ -581,18 +141,7 @@ class SMSApi extends base_1.BaseAPI {
|
|
|
581
141
|
* @memberof SMSApi
|
|
582
142
|
*/
|
|
583
143
|
sms(requestParameters, options) {
|
|
584
|
-
return (0, exports.SMSApiFp)(this.configuration).sms(requestParameters.phone, options).then((request) => request(this.axios, this.basePath));
|
|
585
|
-
}
|
|
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));
|
|
144
|
+
return (0, exports.SMSApiFp)(this.configuration).sms(requestParameters.phone, requestParameters.userSmsCaptcha, options).then((request) => request(this.axios, this.basePath));
|
|
596
145
|
}
|
|
597
146
|
}
|
|
598
147
|
exports.SMSApi = SMSApi;
|