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