@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/apis/smsapi.ts
CHANGED
|
@@ -23,293 +23,28 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { JsonResult } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { UserSmsCaptchaEnum } from '../models';
|
|
26
28
|
/**
|
|
27
29
|
* SMSApi - axios parameter creator
|
|
28
30
|
* @export
|
|
29
31
|
*/
|
|
30
32
|
export const SMSApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31
33
|
return {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @param {*} [options] Override http request option.
|
|
35
|
-
* @throws {RequiredError}
|
|
36
|
-
*/
|
|
37
|
-
fusionGetToken2: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
-
const localVarPath = `/fusion/sms/getToken`;
|
|
39
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41
|
-
let baseOptions;
|
|
42
|
-
if (configuration) {
|
|
43
|
-
baseOptions = configuration.baseOptions;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
47
|
-
const localVarHeaderParameter = {} as any;
|
|
48
|
-
const localVarQueryParameter = {} as any;
|
|
49
|
-
|
|
50
|
-
// authentication tokenScheme required
|
|
51
|
-
// http bearer authentication required
|
|
52
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
url: toPathString(localVarUrlObj),
|
|
62
|
-
options: localVarRequestOptions,
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @param {*} [options] Override http request option.
|
|
68
|
-
* @throws {RequiredError}
|
|
69
|
-
*/
|
|
70
|
-
fusionGetToken3: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
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, DUMMY_BASE_URL);
|
|
74
|
-
let baseOptions;
|
|
75
|
-
if (configuration) {
|
|
76
|
-
baseOptions = configuration.baseOptions;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
80
|
-
const localVarHeaderParameter = {} as any;
|
|
81
|
-
const localVarQueryParameter = {} as any;
|
|
82
|
-
|
|
83
|
-
// authentication tokenScheme required
|
|
84
|
-
// http bearer authentication required
|
|
85
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
90
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
91
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
92
|
-
|
|
93
|
-
return {
|
|
94
|
-
url: toPathString(localVarUrlObj),
|
|
95
|
-
options: localVarRequestOptions,
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
getTokenByHttp2: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
104
|
-
const localVarPath = `/fusion/sms/fusionGetTokenByHttp`;
|
|
105
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
-
let baseOptions;
|
|
108
|
-
if (configuration) {
|
|
109
|
-
baseOptions = configuration.baseOptions;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
113
|
-
const localVarHeaderParameter = {} as any;
|
|
114
|
-
const localVarQueryParameter = {} as any;
|
|
115
|
-
|
|
116
|
-
// authentication tokenScheme required
|
|
117
|
-
// http bearer authentication required
|
|
118
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
125
|
-
|
|
126
|
-
return {
|
|
127
|
-
url: toPathString(localVarUrlObj),
|
|
128
|
-
options: localVarRequestOptions,
|
|
129
|
-
};
|
|
130
|
-
},
|
|
131
|
-
/**
|
|
132
|
-
*
|
|
133
|
-
* @param {*} [options] Override http request option.
|
|
134
|
-
* @throws {RequiredError}
|
|
135
|
-
*/
|
|
136
|
-
getTokenByHttp3: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
137
|
-
const localVarPath = `/fusion/sms/fusionGetTokenByHttp`;
|
|
138
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
139
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
140
|
-
let baseOptions;
|
|
141
|
-
if (configuration) {
|
|
142
|
-
baseOptions = configuration.baseOptions;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
146
|
-
const localVarHeaderParameter = {} as any;
|
|
147
|
-
const localVarQueryParameter = {} as any;
|
|
148
|
-
|
|
149
|
-
// authentication tokenScheme required
|
|
150
|
-
// http bearer authentication required
|
|
151
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
156
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
158
|
-
|
|
159
|
-
return {
|
|
160
|
-
url: toPathString(localVarUrlObj),
|
|
161
|
-
options: localVarRequestOptions,
|
|
162
|
-
};
|
|
163
|
-
},
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
* @param {string} phone
|
|
167
|
-
* @param {string} templateCode
|
|
168
|
-
* @param {*} [options] Override http request option.
|
|
169
|
-
* @throws {RequiredError}
|
|
170
|
-
*/
|
|
171
|
-
sendSms: async (phone: string, templateCode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
172
|
-
// verify required parameter 'phone' is not null or undefined
|
|
173
|
-
assertParamExists('sendSms', 'phone', phone)
|
|
174
|
-
// verify required parameter 'templateCode' is not null or undefined
|
|
175
|
-
assertParamExists('sendSms', 'templateCode', templateCode)
|
|
176
|
-
const localVarPath = `/fusion/sms/sendSms`;
|
|
177
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
178
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
179
|
-
let baseOptions;
|
|
180
|
-
if (configuration) {
|
|
181
|
-
baseOptions = configuration.baseOptions;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
185
|
-
const localVarHeaderParameter = {} as any;
|
|
186
|
-
const localVarQueryParameter = {} as any;
|
|
187
|
-
|
|
188
|
-
// authentication tokenScheme required
|
|
189
|
-
// http bearer authentication required
|
|
190
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
191
|
-
|
|
192
|
-
if (phone !== undefined) {
|
|
193
|
-
localVarQueryParameter['phone'] = phone;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (templateCode !== undefined) {
|
|
197
|
-
localVarQueryParameter['templateCode'] = templateCode;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
203
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
204
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
205
|
-
|
|
206
|
-
return {
|
|
207
|
-
url: toPathString(localVarUrlObj),
|
|
208
|
-
options: localVarRequestOptions,
|
|
209
|
-
};
|
|
210
|
-
},
|
|
211
|
-
/**
|
|
212
|
-
*
|
|
213
|
-
* @param {string} phone
|
|
214
|
-
* @param {string} templateCode
|
|
215
|
-
* @param {*} [options] Override http request option.
|
|
216
|
-
* @throws {RequiredError}
|
|
217
|
-
*/
|
|
218
|
-
sendSms1: async (phone: string, templateCode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
219
|
-
// verify required parameter 'phone' is not null or undefined
|
|
220
|
-
assertParamExists('sendSms1', 'phone', phone)
|
|
221
|
-
// verify required parameter 'templateCode' is not null or undefined
|
|
222
|
-
assertParamExists('sendSms1', 'templateCode', templateCode)
|
|
223
|
-
const localVarPath = `/fusion/sms/sendSms`;
|
|
224
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
225
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
226
|
-
let baseOptions;
|
|
227
|
-
if (configuration) {
|
|
228
|
-
baseOptions = configuration.baseOptions;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
232
|
-
const localVarHeaderParameter = {} as any;
|
|
233
|
-
const localVarQueryParameter = {} as any;
|
|
234
|
-
|
|
235
|
-
// authentication tokenScheme required
|
|
236
|
-
// http bearer authentication required
|
|
237
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
238
|
-
|
|
239
|
-
if (phone !== undefined) {
|
|
240
|
-
localVarQueryParameter['phone'] = phone;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
if (templateCode !== undefined) {
|
|
244
|
-
localVarQueryParameter['templateCode'] = templateCode;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
250
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
252
|
-
|
|
253
|
-
return {
|
|
254
|
-
url: toPathString(localVarUrlObj),
|
|
255
|
-
options: localVarRequestOptions,
|
|
256
|
-
};
|
|
257
|
-
},
|
|
258
34
|
/**
|
|
259
35
|
*
|
|
260
36
|
* @summary 发送验证码
|
|
261
37
|
* @param {string} phone
|
|
38
|
+
* @param {UserSmsCaptchaEnum} userSmsCaptcha
|
|
262
39
|
* @param {*} [options] Override http request option.
|
|
263
40
|
* @throws {RequiredError}
|
|
264
41
|
*/
|
|
265
|
-
sms: async (phone: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
sms: async (phone: string, userSmsCaptcha: UserSmsCaptchaEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
266
43
|
// verify required parameter 'phone' is not null or undefined
|
|
267
44
|
assertParamExists('sms', 'phone', phone)
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
const
|
|
271
|
-
let baseOptions;
|
|
272
|
-
if (configuration) {
|
|
273
|
-
baseOptions = configuration.baseOptions;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
277
|
-
const localVarHeaderParameter = {} as any;
|
|
278
|
-
const localVarQueryParameter = {} as any;
|
|
279
|
-
|
|
280
|
-
// authentication tokenScheme required
|
|
281
|
-
// http bearer authentication required
|
|
282
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
283
|
-
|
|
284
|
-
if (phone !== undefined) {
|
|
285
|
-
localVarQueryParameter['phone'] = phone;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
291
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
293
|
-
|
|
294
|
-
return {
|
|
295
|
-
url: toPathString(localVarUrlObj),
|
|
296
|
-
options: localVarRequestOptions,
|
|
297
|
-
};
|
|
298
|
-
},
|
|
299
|
-
/**
|
|
300
|
-
*
|
|
301
|
-
* @summary 发送验证码
|
|
302
|
-
* @param {string} phone
|
|
303
|
-
* @param {string} msg
|
|
304
|
-
* @param {*} [options] Override http request option.
|
|
305
|
-
* @throws {RequiredError}
|
|
306
|
-
*/
|
|
307
|
-
testSMS: async (phone: string, msg: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
308
|
-
// verify required parameter 'phone' is not null or undefined
|
|
309
|
-
assertParamExists('testSMS', 'phone', phone)
|
|
310
|
-
// verify required parameter 'msg' is not null or undefined
|
|
311
|
-
assertParamExists('testSMS', 'msg', msg)
|
|
312
|
-
const localVarPath = `/gizone/testSMS`;
|
|
45
|
+
// verify required parameter 'userSmsCaptcha' is not null or undefined
|
|
46
|
+
assertParamExists('sms', 'userSmsCaptcha', userSmsCaptcha)
|
|
47
|
+
const localVarPath = `/gizone/sms/captcha`;
|
|
313
48
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
49
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
315
50
|
let baseOptions;
|
|
@@ -329,8 +64,8 @@ export const SMSApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
329
64
|
localVarQueryParameter['phone'] = phone;
|
|
330
65
|
}
|
|
331
66
|
|
|
332
|
-
if (
|
|
333
|
-
localVarQueryParameter['
|
|
67
|
+
if (userSmsCaptcha !== undefined) {
|
|
68
|
+
localVarQueryParameter['userSmsCaptcha'] = userSmsCaptcha;
|
|
334
69
|
}
|
|
335
70
|
|
|
336
71
|
|
|
@@ -354,103 +89,20 @@ export const SMSApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
354
89
|
export const SMSApiFp = function(configuration?: Configuration) {
|
|
355
90
|
const localVarAxiosParamCreator = SMSApiAxiosParamCreator(configuration)
|
|
356
91
|
return {
|
|
357
|
-
/**
|
|
358
|
-
*
|
|
359
|
-
* @param {*} [options] Override http request option.
|
|
360
|
-
* @throws {RequiredError}
|
|
361
|
-
*/
|
|
362
|
-
async fusionGetToken2(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
363
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fusionGetToken2(options);
|
|
364
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
365
|
-
const localVarOperationServerBasePath = operationServerMap['SMSApi.fusionGetToken2']?.[localVarOperationServerIndex]?.url;
|
|
366
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
367
|
-
},
|
|
368
|
-
/**
|
|
369
|
-
*
|
|
370
|
-
* @param {*} [options] Override http request option.
|
|
371
|
-
* @throws {RequiredError}
|
|
372
|
-
*/
|
|
373
|
-
async fusionGetToken3(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
374
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.fusionGetToken3(options);
|
|
375
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
376
|
-
const localVarOperationServerBasePath = operationServerMap['SMSApi.fusionGetToken3']?.[localVarOperationServerIndex]?.url;
|
|
377
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
378
|
-
},
|
|
379
|
-
/**
|
|
380
|
-
*
|
|
381
|
-
* @param {*} [options] Override http request option.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
*/
|
|
384
|
-
async getTokenByHttp2(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
385
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenByHttp2(options);
|
|
386
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
387
|
-
const localVarOperationServerBasePath = operationServerMap['SMSApi.getTokenByHttp2']?.[localVarOperationServerIndex]?.url;
|
|
388
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
389
|
-
},
|
|
390
|
-
/**
|
|
391
|
-
*
|
|
392
|
-
* @param {*} [options] Override http request option.
|
|
393
|
-
* @throws {RequiredError}
|
|
394
|
-
*/
|
|
395
|
-
async getTokenByHttp3(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
396
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenByHttp3(options);
|
|
397
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
398
|
-
const localVarOperationServerBasePath = operationServerMap['SMSApi.getTokenByHttp3']?.[localVarOperationServerIndex]?.url;
|
|
399
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
400
|
-
},
|
|
401
|
-
/**
|
|
402
|
-
*
|
|
403
|
-
* @param {string} phone
|
|
404
|
-
* @param {string} templateCode
|
|
405
|
-
* @param {*} [options] Override http request option.
|
|
406
|
-
* @throws {RequiredError}
|
|
407
|
-
*/
|
|
408
|
-
async sendSms(phone: string, templateCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
409
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendSms(phone, templateCode, options);
|
|
410
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
411
|
-
const localVarOperationServerBasePath = operationServerMap['SMSApi.sendSms']?.[localVarOperationServerIndex]?.url;
|
|
412
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
413
|
-
},
|
|
414
|
-
/**
|
|
415
|
-
*
|
|
416
|
-
* @param {string} phone
|
|
417
|
-
* @param {string} templateCode
|
|
418
|
-
* @param {*} [options] Override http request option.
|
|
419
|
-
* @throws {RequiredError}
|
|
420
|
-
*/
|
|
421
|
-
async sendSms1(phone: string, templateCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
422
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendSms1(phone, templateCode, options);
|
|
423
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
424
|
-
const localVarOperationServerBasePath = operationServerMap['SMSApi.sendSms1']?.[localVarOperationServerIndex]?.url;
|
|
425
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
426
|
-
},
|
|
427
92
|
/**
|
|
428
93
|
*
|
|
429
94
|
* @summary 发送验证码
|
|
430
95
|
* @param {string} phone
|
|
96
|
+
* @param {UserSmsCaptchaEnum} userSmsCaptcha
|
|
431
97
|
* @param {*} [options] Override http request option.
|
|
432
98
|
* @throws {RequiredError}
|
|
433
99
|
*/
|
|
434
|
-
async sms(phone: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>> {
|
|
435
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sms(phone, options);
|
|
100
|
+
async sms(phone: string, userSmsCaptcha: UserSmsCaptchaEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>> {
|
|
101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sms(phone, userSmsCaptcha, options);
|
|
436
102
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
437
103
|
const localVarOperationServerBasePath = operationServerMap['SMSApi.sms']?.[localVarOperationServerIndex]?.url;
|
|
438
104
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
439
105
|
},
|
|
440
|
-
/**
|
|
441
|
-
*
|
|
442
|
-
* @summary 发送验证码
|
|
443
|
-
* @param {string} phone
|
|
444
|
-
* @param {string} msg
|
|
445
|
-
* @param {*} [options] Override http request option.
|
|
446
|
-
* @throws {RequiredError}
|
|
447
|
-
*/
|
|
448
|
-
async testSMS(phone: string, msg: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>> {
|
|
449
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testSMS(phone, msg, options);
|
|
450
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
451
|
-
const localVarOperationServerBasePath = operationServerMap['SMSApi.testSMS']?.[localVarOperationServerIndex]?.url;
|
|
452
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
453
|
-
},
|
|
454
106
|
}
|
|
455
107
|
};
|
|
456
108
|
|
|
@@ -461,56 +113,6 @@ export const SMSApiFp = function(configuration?: Configuration) {
|
|
|
461
113
|
export const SMSApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
462
114
|
const localVarFp = SMSApiFp(configuration)
|
|
463
115
|
return {
|
|
464
|
-
/**
|
|
465
|
-
*
|
|
466
|
-
* @param {*} [options] Override http request option.
|
|
467
|
-
* @throws {RequiredError}
|
|
468
|
-
*/
|
|
469
|
-
fusionGetToken2(options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
470
|
-
return localVarFp.fusionGetToken2(options).then((request) => request(axios, basePath));
|
|
471
|
-
},
|
|
472
|
-
/**
|
|
473
|
-
*
|
|
474
|
-
* @param {*} [options] Override http request option.
|
|
475
|
-
* @throws {RequiredError}
|
|
476
|
-
*/
|
|
477
|
-
fusionGetToken3(options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
478
|
-
return localVarFp.fusionGetToken3(options).then((request) => request(axios, basePath));
|
|
479
|
-
},
|
|
480
|
-
/**
|
|
481
|
-
*
|
|
482
|
-
* @param {*} [options] Override http request option.
|
|
483
|
-
* @throws {RequiredError}
|
|
484
|
-
*/
|
|
485
|
-
getTokenByHttp2(options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
486
|
-
return localVarFp.getTokenByHttp2(options).then((request) => request(axios, basePath));
|
|
487
|
-
},
|
|
488
|
-
/**
|
|
489
|
-
*
|
|
490
|
-
* @param {*} [options] Override http request option.
|
|
491
|
-
* @throws {RequiredError}
|
|
492
|
-
*/
|
|
493
|
-
getTokenByHttp3(options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
494
|
-
return localVarFp.getTokenByHttp3(options).then((request) => request(axios, basePath));
|
|
495
|
-
},
|
|
496
|
-
/**
|
|
497
|
-
*
|
|
498
|
-
* @param {SMSApiSendSmsRequest} requestParameters Request parameters.
|
|
499
|
-
* @param {*} [options] Override http request option.
|
|
500
|
-
* @throws {RequiredError}
|
|
501
|
-
*/
|
|
502
|
-
sendSms(requestParameters: SMSApiSendSmsRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
|
|
503
|
-
return localVarFp.sendSms(requestParameters.phone, requestParameters.templateCode, options).then((request) => request(axios, basePath));
|
|
504
|
-
},
|
|
505
|
-
/**
|
|
506
|
-
*
|
|
507
|
-
* @param {SMSApiSendSms1Request} requestParameters Request parameters.
|
|
508
|
-
* @param {*} [options] Override http request option.
|
|
509
|
-
* @throws {RequiredError}
|
|
510
|
-
*/
|
|
511
|
-
sendSms1(requestParameters: SMSApiSendSms1Request, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
|
|
512
|
-
return localVarFp.sendSms1(requestParameters.phone, requestParameters.templateCode, options).then((request) => request(axios, basePath));
|
|
513
|
-
},
|
|
514
116
|
/**
|
|
515
117
|
*
|
|
516
118
|
* @summary 发送验证码
|
|
@@ -519,63 +121,11 @@ export const SMSApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
519
121
|
* @throws {RequiredError}
|
|
520
122
|
*/
|
|
521
123
|
sms(requestParameters: SMSApiSmsRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult> {
|
|
522
|
-
return localVarFp.sms(requestParameters.phone, options).then((request) => request(axios, basePath));
|
|
523
|
-
},
|
|
524
|
-
/**
|
|
525
|
-
*
|
|
526
|
-
* @summary 发送验证码
|
|
527
|
-
* @param {SMSApiTestSMSRequest} requestParameters Request parameters.
|
|
528
|
-
* @param {*} [options] Override http request option.
|
|
529
|
-
* @throws {RequiredError}
|
|
530
|
-
*/
|
|
531
|
-
testSMS(requestParameters: SMSApiTestSMSRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult> {
|
|
532
|
-
return localVarFp.testSMS(requestParameters.phone, requestParameters.msg, options).then((request) => request(axios, basePath));
|
|
124
|
+
return localVarFp.sms(requestParameters.phone, requestParameters.userSmsCaptcha, options).then((request) => request(axios, basePath));
|
|
533
125
|
},
|
|
534
126
|
};
|
|
535
127
|
};
|
|
536
128
|
|
|
537
|
-
/**
|
|
538
|
-
* Request parameters for sendSms operation in SMSApi.
|
|
539
|
-
* @export
|
|
540
|
-
* @interface SMSApiSendSmsRequest
|
|
541
|
-
*/
|
|
542
|
-
export interface SMSApiSendSmsRequest {
|
|
543
|
-
/**
|
|
544
|
-
*
|
|
545
|
-
* @type {string}
|
|
546
|
-
* @memberof SMSApiSendSms
|
|
547
|
-
*/
|
|
548
|
-
readonly phone: string
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
*
|
|
552
|
-
* @type {string}
|
|
553
|
-
* @memberof SMSApiSendSms
|
|
554
|
-
*/
|
|
555
|
-
readonly templateCode: string
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Request parameters for sendSms1 operation in SMSApi.
|
|
560
|
-
* @export
|
|
561
|
-
* @interface SMSApiSendSms1Request
|
|
562
|
-
*/
|
|
563
|
-
export interface SMSApiSendSms1Request {
|
|
564
|
-
/**
|
|
565
|
-
*
|
|
566
|
-
* @type {string}
|
|
567
|
-
* @memberof SMSApiSendSms1
|
|
568
|
-
*/
|
|
569
|
-
readonly phone: string
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
*
|
|
573
|
-
* @type {string}
|
|
574
|
-
* @memberof SMSApiSendSms1
|
|
575
|
-
*/
|
|
576
|
-
readonly templateCode: string
|
|
577
|
-
}
|
|
578
|
-
|
|
579
129
|
/**
|
|
580
130
|
* Request parameters for sms operation in SMSApi.
|
|
581
131
|
* @export
|
|
@@ -588,27 +138,13 @@ export interface SMSApiSmsRequest {
|
|
|
588
138
|
* @memberof SMSApiSms
|
|
589
139
|
*/
|
|
590
140
|
readonly phone: string
|
|
591
|
-
}
|
|
592
141
|
|
|
593
|
-
/**
|
|
594
|
-
* Request parameters for testSMS operation in SMSApi.
|
|
595
|
-
* @export
|
|
596
|
-
* @interface SMSApiTestSMSRequest
|
|
597
|
-
*/
|
|
598
|
-
export interface SMSApiTestSMSRequest {
|
|
599
142
|
/**
|
|
600
143
|
*
|
|
601
|
-
* @type {
|
|
602
|
-
* @memberof
|
|
603
|
-
*/
|
|
604
|
-
readonly phone: string
|
|
605
|
-
|
|
606
|
-
/**
|
|
607
|
-
*
|
|
608
|
-
* @type {string}
|
|
609
|
-
* @memberof SMSApiTestSMS
|
|
144
|
+
* @type {UserSmsCaptchaEnum}
|
|
145
|
+
* @memberof SMSApiSms
|
|
610
146
|
*/
|
|
611
|
-
readonly
|
|
147
|
+
readonly userSmsCaptcha: UserSmsCaptchaEnum
|
|
612
148
|
}
|
|
613
149
|
|
|
614
150
|
/**
|
|
@@ -618,68 +154,6 @@ export interface SMSApiTestSMSRequest {
|
|
|
618
154
|
* @extends {BaseAPI}
|
|
619
155
|
*/
|
|
620
156
|
export class SMSApi extends BaseAPI {
|
|
621
|
-
/**
|
|
622
|
-
*
|
|
623
|
-
* @param {*} [options] Override http request option.
|
|
624
|
-
* @throws {RequiredError}
|
|
625
|
-
* @memberof SMSApi
|
|
626
|
-
*/
|
|
627
|
-
public fusionGetToken2(options?: RawAxiosRequestConfig) {
|
|
628
|
-
return SMSApiFp(this.configuration).fusionGetToken2(options).then((request) => request(this.axios, this.basePath));
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/**
|
|
632
|
-
*
|
|
633
|
-
* @param {*} [options] Override http request option.
|
|
634
|
-
* @throws {RequiredError}
|
|
635
|
-
* @memberof SMSApi
|
|
636
|
-
*/
|
|
637
|
-
public fusionGetToken3(options?: RawAxiosRequestConfig) {
|
|
638
|
-
return SMSApiFp(this.configuration).fusionGetToken3(options).then((request) => request(this.axios, this.basePath));
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
*
|
|
643
|
-
* @param {*} [options] Override http request option.
|
|
644
|
-
* @throws {RequiredError}
|
|
645
|
-
* @memberof SMSApi
|
|
646
|
-
*/
|
|
647
|
-
public getTokenByHttp2(options?: RawAxiosRequestConfig) {
|
|
648
|
-
return SMSApiFp(this.configuration).getTokenByHttp2(options).then((request) => request(this.axios, this.basePath));
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
*
|
|
653
|
-
* @param {*} [options] Override http request option.
|
|
654
|
-
* @throws {RequiredError}
|
|
655
|
-
* @memberof SMSApi
|
|
656
|
-
*/
|
|
657
|
-
public getTokenByHttp3(options?: RawAxiosRequestConfig) {
|
|
658
|
-
return SMSApiFp(this.configuration).getTokenByHttp3(options).then((request) => request(this.axios, this.basePath));
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
*
|
|
663
|
-
* @param {SMSApiSendSmsRequest} requestParameters Request parameters.
|
|
664
|
-
* @param {*} [options] Override http request option.
|
|
665
|
-
* @throws {RequiredError}
|
|
666
|
-
* @memberof SMSApi
|
|
667
|
-
*/
|
|
668
|
-
public sendSms(requestParameters: SMSApiSendSmsRequest, options?: RawAxiosRequestConfig) {
|
|
669
|
-
return SMSApiFp(this.configuration).sendSms(requestParameters.phone, requestParameters.templateCode, options).then((request) => request(this.axios, this.basePath));
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
*
|
|
674
|
-
* @param {SMSApiSendSms1Request} requestParameters Request parameters.
|
|
675
|
-
* @param {*} [options] Override http request option.
|
|
676
|
-
* @throws {RequiredError}
|
|
677
|
-
* @memberof SMSApi
|
|
678
|
-
*/
|
|
679
|
-
public sendSms1(requestParameters: SMSApiSendSms1Request, options?: RawAxiosRequestConfig) {
|
|
680
|
-
return SMSApiFp(this.configuration).sendSms1(requestParameters.phone, requestParameters.templateCode, options).then((request) => request(this.axios, this.basePath));
|
|
681
|
-
}
|
|
682
|
-
|
|
683
157
|
/**
|
|
684
158
|
*
|
|
685
159
|
* @summary 发送验证码
|
|
@@ -689,19 +163,7 @@ export class SMSApi extends BaseAPI {
|
|
|
689
163
|
* @memberof SMSApi
|
|
690
164
|
*/
|
|
691
165
|
public sms(requestParameters: SMSApiSmsRequest, options?: RawAxiosRequestConfig) {
|
|
692
|
-
return SMSApiFp(this.configuration).sms(requestParameters.phone, options).then((request) => request(this.axios, this.basePath));
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
*
|
|
697
|
-
* @summary 发送验证码
|
|
698
|
-
* @param {SMSApiTestSMSRequest} requestParameters Request parameters.
|
|
699
|
-
* @param {*} [options] Override http request option.
|
|
700
|
-
* @throws {RequiredError}
|
|
701
|
-
* @memberof SMSApi
|
|
702
|
-
*/
|
|
703
|
-
public testSMS(requestParameters: SMSApiTestSMSRequest, options?: RawAxiosRequestConfig) {
|
|
704
|
-
return SMSApiFp(this.configuration).testSMS(requestParameters.phone, requestParameters.msg, options).then((request) => request(this.axios, this.basePath));
|
|
166
|
+
return SMSApiFp(this.configuration).sms(requestParameters.phone, requestParameters.userSmsCaptcha, options).then((request) => request(this.axios, this.basePath));
|
|
705
167
|
}
|
|
706
168
|
}
|
|
707
169
|
|