@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.
@@ -32,240 +32,20 @@ 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 发送验证码
224
38
  * @param {string} phone
39
+ * @param {UserSmsCaptchaEnum} userSmsCaptcha
225
40
  * @param {*} [options] Override http request option.
226
41
  * @throws {RequiredError}
227
42
  */
228
- sms: (phone_1, ...args_1) => __awaiter(this, [phone_1, ...args_1], void 0, function* (phone, options = {}) {
43
+ sms: (phone_1, userSmsCaptcha_1, ...args_1) => __awaiter(this, [phone_1, userSmsCaptcha_1, ...args_1], void 0, function* (phone, userSmsCaptcha, options = {}) {
229
44
  // verify required parameter 'phone' is not null or undefined
230
45
  assertParamExists('sms', 'phone', phone);
231
- const localVarPath = `/gizone/sms`;
232
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
234
- let baseOptions;
235
- if (configuration) {
236
- baseOptions = configuration.baseOptions;
237
- }
238
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
239
- const localVarHeaderParameter = {};
240
- const localVarQueryParameter = {};
241
- // authentication tokenScheme required
242
- // http bearer authentication required
243
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
244
- if (phone !== undefined) {
245
- localVarQueryParameter['phone'] = phone;
246
- }
247
- setSearchParams(localVarUrlObj, localVarQueryParameter);
248
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
250
- return {
251
- url: toPathString(localVarUrlObj),
252
- options: localVarRequestOptions,
253
- };
254
- }),
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`;
46
+ // verify required parameter 'userSmsCaptcha' is not null or undefined
47
+ assertParamExists('sms', 'userSmsCaptcha', userSmsCaptcha);
48
+ const localVarPath = `/gizone/sms/captcha`;
269
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
50
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
271
51
  let baseOptions;
@@ -281,8 +61,8 @@ export const SMSApiAxiosParamCreator = function (configuration) {
281
61
  if (phone !== undefined) {
282
62
  localVarQueryParameter['phone'] = phone;
283
63
  }
284
- if (msg !== undefined) {
285
- localVarQueryParameter['msg'] = msg;
64
+ if (userSmsCaptcha !== undefined) {
65
+ localVarQueryParameter['userSmsCaptcha'] = userSmsCaptcha;
286
66
  }
287
67
  setSearchParams(localVarUrlObj, localVarQueryParameter);
288
68
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -301,127 +81,23 @@ export const SMSApiAxiosParamCreator = function (configuration) {
301
81
  export const SMSApiFp = function (configuration) {
302
82
  const localVarAxiosParamCreator = SMSApiAxiosParamCreator(configuration);
303
83
  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
84
  /**
393
85
  *
394
86
  * @summary 发送验证码
395
87
  * @param {string} phone
88
+ * @param {UserSmsCaptchaEnum} userSmsCaptcha
396
89
  * @param {*} [options] Override http request option.
397
90
  * @throws {RequiredError}
398
91
  */
399
- sms(phone, options) {
92
+ sms(phone, userSmsCaptcha, options) {
400
93
  return __awaiter(this, void 0, void 0, function* () {
401
94
  var _a, _b, _c;
402
- const localVarAxiosArgs = yield localVarAxiosParamCreator.sms(phone, options);
95
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.sms(phone, userSmsCaptcha, options);
403
96
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
404
97
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SMSApi.sms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
405
98
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
406
99
  });
407
100
  },
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
101
  };
426
102
  };
427
103
  /**
@@ -431,56 +107,6 @@ export const SMSApiFp = function (configuration) {
431
107
  export const SMSApiFactory = function (configuration, basePath, axios) {
432
108
  const localVarFp = SMSApiFp(configuration);
433
109
  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
110
  /**
485
111
  *
486
112
  * @summary 发送验证码
@@ -489,17 +115,7 @@ export const SMSApiFactory = function (configuration, basePath, axios) {
489
115
  * @throws {RequiredError}
490
116
  */
491
117
  sms(requestParameters, options) {
492
- return localVarFp.sms(requestParameters.phone, options).then((request) => request(axios, basePath));
493
- },
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));
118
+ return localVarFp.sms(requestParameters.phone, requestParameters.userSmsCaptcha, options).then((request) => request(axios, basePath));
503
119
  },
504
120
  };
505
121
  };
@@ -510,62 +126,6 @@ export const SMSApiFactory = function (configuration, basePath, axios) {
510
126
  * @extends {BaseAPI}
511
127
  */
512
128
  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
129
  /**
570
130
  *
571
131
  * @summary 发送验证码
@@ -575,17 +135,6 @@ export class SMSApi extends BaseAPI {
575
135
  * @memberof SMSApi
576
136
  */
577
137
  sms(requestParameters, options) {
578
- return SMSApiFp(this.configuration).sms(requestParameters.phone, options).then((request) => request(this.axios, this.basePath));
579
- }
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));
138
+ return SMSApiFp(this.configuration).sms(requestParameters.phone, requestParameters.userSmsCaptcha, options).then((request) => request(this.axios, this.basePath));
590
139
  }
591
140
  }
@@ -19,16 +19,16 @@ import type { GetUserWx200ResponseOutputStream } from './get-user-wx200-response
19
19
  export interface GetUserWx200Response {
20
20
  /**
21
21
  *
22
- * @type {Array<string>}
22
+ * @type {number}
23
23
  * @memberof GetUserWx200Response
24
24
  */
25
- 'headerNames'?: Array<string>;
25
+ 'status'?: number;
26
26
  /**
27
27
  *
28
- * @type {number}
28
+ * @type {Array<string>}
29
29
  * @memberof GetUserWx200Response
30
30
  */
31
- 'status'?: number;
31
+ 'headerNames'?: Array<string>;
32
32
  /**
33
33
  *
34
34
  * @type {object}
@@ -37,40 +37,34 @@ export interface GetUserWx200Response {
37
37
  'trailerFields'?: object;
38
38
  /**
39
39
  *
40
- * @type {string}
40
+ * @type {GetUserWx200ResponseLocale}
41
41
  * @memberof GetUserWx200Response
42
42
  */
43
- 'contentType'?: string;
43
+ 'locale'?: GetUserWx200ResponseLocale;
44
44
  /**
45
45
  *
46
46
  * @type {number}
47
47
  * @memberof GetUserWx200Response
48
48
  */
49
- 'contentLength'?: number;
50
- /**
51
- *
52
- * @type {GetUserWx200ResponseOutputStream}
53
- * @memberof GetUserWx200Response
54
- */
55
- 'outputStream'?: GetUserWx200ResponseOutputStream;
49
+ 'bufferSize'?: number;
56
50
  /**
57
51
  *
58
- * @type {GetUserWx200ResponseLocale}
52
+ * @type {string}
59
53
  * @memberof GetUserWx200Response
60
54
  */
61
- 'locale'?: GetUserWx200ResponseLocale;
55
+ 'contentType'?: string;
62
56
  /**
63
57
  *
64
58
  * @type {number}
65
59
  * @memberof GetUserWx200Response
66
60
  */
67
- 'bufferSize'?: number;
61
+ 'contentLength'?: number;
68
62
  /**
69
63
  *
70
- * @type {object}
64
+ * @type {GetUserWx200ResponseOutputStream}
71
65
  * @memberof GetUserWx200Response
72
66
  */
73
- 'writer'?: object;
67
+ 'outputStream'?: GetUserWx200ResponseOutputStream;
74
68
  /**
75
69
  *
76
70
  * @type {string}
@@ -89,4 +83,10 @@ export interface GetUserWx200Response {
89
83
  * @memberof GetUserWx200Response
90
84
  */
91
85
  'committed'?: boolean;
86
+ /**
87
+ *
88
+ * @type {object}
89
+ * @memberof GetUserWx200Response
90
+ */
91
+ 'writer'?: object;
92
92
  }
@@ -872,6 +872,7 @@ export * from './user-excel-dto';
872
872
  export * from './user-roles-and-permissions-dto';
873
873
  export * from './user-settings-entity';
874
874
  export * from './user-settings-update-bo';
875
+ export * from './user-sms-captcha-enum';
875
876
  export * from './user-whether-privacy-dto';
876
877
  export * from './user-white-del-dto';
877
878
  export * from './vehicle-payment-bo';
@@ -872,6 +872,7 @@ export * from './user-excel-dto';
872
872
  export * from './user-roles-and-permissions-dto';
873
873
  export * from './user-settings-entity';
874
874
  export * from './user-settings-update-bo';
875
+ export * from './user-sms-captcha-enum';
875
876
  export * from './user-whether-privacy-dto';
876
877
  export * from './user-white-del-dto';
877
878
  export * from './vehicle-payment-bo';
@@ -0,0 +1,21 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * 用户短信验证码相关常量
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const UserSmsCaptchaEnum: {
18
+ readonly Login: "LOGIN";
19
+ readonly ChangePassword: "CHANGE_PASSWORD";
20
+ };
21
+ export type UserSmsCaptchaEnum = typeof UserSmsCaptchaEnum[keyof typeof UserSmsCaptchaEnum];