@gizone/rrs-client 4.2.9-alpha.869 → 4.2.9-alpha.871
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -1
- package/apis/app-auth-api.ts +0 -91
- package/apis/auth-api.ts +0 -91
- package/dist/apis/app-auth-api.d.ts +0 -53
- package/dist/apis/app-auth-api.js +0 -70
- package/dist/apis/auth-api.d.ts +0 -53
- package/dist/apis/auth-api.js +0 -70
- package/dist/esm/apis/app-auth-api.d.ts +0 -53
- package/dist/esm/apis/app-auth-api.js +0 -70
- package/dist/esm/apis/auth-api.d.ts +0 -53
- package/dist/esm/apis/auth-api.js +0 -70
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/models/index.ts +0 -1
- package/ossutil.log +1221 -1221
- package/package.json +1 -1
- package/dist/esm/models/app-obtain-token.d.ts +0 -24
- package/dist/esm/models/app-obtain-token.js +0 -14
- package/dist/models/app-obtain-token.d.ts +0 -24
- package/dist/models/app-obtain-token.js +0 -15
- package/models/app-obtain-token.ts +0 -30
package/.openapi-generator/FILES
CHANGED
|
@@ -112,7 +112,6 @@ models/app-login-code-dto.ts
|
|
|
112
112
|
models/app-login-password-dto.ts
|
|
113
113
|
models/app-login-wx-chat-dto.ts
|
|
114
114
|
models/app-login-wx-chat-pub-dto.ts
|
|
115
|
-
models/app-obtain-token.ts
|
|
116
115
|
models/applet-sys-user-drop-down-box-list-dto.ts
|
|
117
116
|
models/applet-user-type-dto.ts
|
|
118
117
|
models/approver-dto.ts
|
package/apis/app-auth-api.ts
CHANGED
|
@@ -30,8 +30,6 @@ import type { AppLoginWxChatDto } from '../models';
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { AppLoginWxChatPubDto } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
import type { AppObtainToken } from '../models';
|
|
34
|
-
// @ts-ignore
|
|
35
33
|
import type { ChoosePakBody } from '../models';
|
|
36
34
|
// @ts-ignore
|
|
37
35
|
import type { JsonResult } from '../models';
|
|
@@ -516,46 +514,6 @@ export const AppAuthApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
516
514
|
options: localVarRequestOptions,
|
|
517
515
|
};
|
|
518
516
|
},
|
|
519
|
-
/**
|
|
520
|
-
*
|
|
521
|
-
* @summary openId换取登录token
|
|
522
|
-
* @param {AppObtainToken} appObtainToken
|
|
523
|
-
* @param {*} [options] Override http request option.
|
|
524
|
-
* @throws {RequiredError}
|
|
525
|
-
*/
|
|
526
|
-
loginByOpenId: async (appObtainToken: AppObtainToken, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
527
|
-
// verify required parameter 'appObtainToken' is not null or undefined
|
|
528
|
-
assertParamExists('loginByOpenId', 'appObtainToken', appObtainToken)
|
|
529
|
-
const localVarPath = `/miniapp/auth/loginByOpenId`;
|
|
530
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
531
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
532
|
-
let baseOptions;
|
|
533
|
-
if (configuration) {
|
|
534
|
-
baseOptions = configuration.baseOptions;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
538
|
-
const localVarHeaderParameter = {} as any;
|
|
539
|
-
const localVarQueryParameter = {} as any;
|
|
540
|
-
|
|
541
|
-
// authentication tokenScheme required
|
|
542
|
-
// http bearer authentication required
|
|
543
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
548
|
-
|
|
549
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
550
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
551
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
552
|
-
localVarRequestOptions.data = serializeDataIfNeeded(appObtainToken, localVarRequestOptions, configuration)
|
|
553
|
-
|
|
554
|
-
return {
|
|
555
|
-
url: toPathString(localVarUrlObj),
|
|
556
|
-
options: localVarRequestOptions,
|
|
557
|
-
};
|
|
558
|
-
},
|
|
559
517
|
/**
|
|
560
518
|
*
|
|
561
519
|
* @summary 微信公众号登录
|
|
@@ -838,19 +796,6 @@ export const AppAuthApiFp = function(configuration?: Configuration) {
|
|
|
838
796
|
const localVarOperationServerBasePath = operationServerMap['AppAuthApi.loginByCodeV2']?.[localVarOperationServerIndex]?.url;
|
|
839
797
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
840
798
|
},
|
|
841
|
-
/**
|
|
842
|
-
*
|
|
843
|
-
* @summary openId换取登录token
|
|
844
|
-
* @param {AppObtainToken} appObtainToken
|
|
845
|
-
* @param {*} [options] Override http request option.
|
|
846
|
-
* @throws {RequiredError}
|
|
847
|
-
*/
|
|
848
|
-
async loginByOpenId(appObtainToken: AppObtainToken, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
849
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.loginByOpenId(appObtainToken, options);
|
|
850
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
851
|
-
const localVarOperationServerBasePath = operationServerMap['AppAuthApi.loginByOpenId']?.[localVarOperationServerIndex]?.url;
|
|
852
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
853
|
-
},
|
|
854
799
|
/**
|
|
855
800
|
*
|
|
856
801
|
* @summary 微信公众号登录
|
|
@@ -1010,16 +955,6 @@ export const AppAuthApiFactory = function (configuration?: Configuration, basePa
|
|
|
1010
955
|
loginByCodeV2(requestParameters: AppAuthApiLoginByCodeV2Request, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult> {
|
|
1011
956
|
return localVarFp.loginByCodeV2(requestParameters.appLoginWxChatDto, options).then((request) => request(axios, basePath));
|
|
1012
957
|
},
|
|
1013
|
-
/**
|
|
1014
|
-
*
|
|
1015
|
-
* @summary openId换取登录token
|
|
1016
|
-
* @param {AppAuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
1017
|
-
* @param {*} [options] Override http request option.
|
|
1018
|
-
* @throws {RequiredError}
|
|
1019
|
-
*/
|
|
1020
|
-
loginByOpenId(requestParameters: AppAuthApiLoginByOpenIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
1021
|
-
return localVarFp.loginByOpenId(requestParameters.appObtainToken, options).then((request) => request(axios, basePath));
|
|
1022
|
-
},
|
|
1023
958
|
/**
|
|
1024
959
|
*
|
|
1025
960
|
* @summary 微信公众号登录
|
|
@@ -1228,20 +1163,6 @@ export interface AppAuthApiLoginByCodeV2Request {
|
|
|
1228
1163
|
readonly appLoginWxChatDto: AppLoginWxChatDto
|
|
1229
1164
|
}
|
|
1230
1165
|
|
|
1231
|
-
/**
|
|
1232
|
-
* Request parameters for loginByOpenId operation in AppAuthApi.
|
|
1233
|
-
* @export
|
|
1234
|
-
* @interface AppAuthApiLoginByOpenIdRequest
|
|
1235
|
-
*/
|
|
1236
|
-
export interface AppAuthApiLoginByOpenIdRequest {
|
|
1237
|
-
/**
|
|
1238
|
-
*
|
|
1239
|
-
* @type {AppObtainToken}
|
|
1240
|
-
* @memberof AppAuthApiLoginByOpenId
|
|
1241
|
-
*/
|
|
1242
|
-
readonly appObtainToken: AppObtainToken
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
1166
|
/**
|
|
1246
1167
|
* Request parameters for loginByWechatPublic operation in AppAuthApi.
|
|
1247
1168
|
* @export
|
|
@@ -1429,18 +1350,6 @@ export class AppAuthApi extends BaseAPI {
|
|
|
1429
1350
|
return AppAuthApiFp(this.configuration).loginByCodeV2(requestParameters.appLoginWxChatDto, options).then((request) => request(this.axios, this.basePath));
|
|
1430
1351
|
}
|
|
1431
1352
|
|
|
1432
|
-
/**
|
|
1433
|
-
*
|
|
1434
|
-
* @summary openId换取登录token
|
|
1435
|
-
* @param {AppAuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
1436
|
-
* @param {*} [options] Override http request option.
|
|
1437
|
-
* @throws {RequiredError}
|
|
1438
|
-
* @memberof AppAuthApi
|
|
1439
|
-
*/
|
|
1440
|
-
public loginByOpenId(requestParameters: AppAuthApiLoginByOpenIdRequest, options?: RawAxiosRequestConfig) {
|
|
1441
|
-
return AppAuthApiFp(this.configuration).loginByOpenId(requestParameters.appObtainToken, options).then((request) => request(this.axios, this.basePath));
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
1353
|
/**
|
|
1445
1354
|
*
|
|
1446
1355
|
* @summary 微信公众号登录
|
package/apis/auth-api.ts
CHANGED
|
@@ -30,8 +30,6 @@ import type { AppLoginWxChatDto } from '../models';
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { AppLoginWxChatPubDto } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
import type { AppObtainToken } from '../models';
|
|
34
|
-
// @ts-ignore
|
|
35
33
|
import type { ChoosePakBody } from '../models';
|
|
36
34
|
// @ts-ignore
|
|
37
35
|
import type { JsonResult } from '../models';
|
|
@@ -832,46 +830,6 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
832
830
|
options: localVarRequestOptions,
|
|
833
831
|
};
|
|
834
832
|
},
|
|
835
|
-
/**
|
|
836
|
-
*
|
|
837
|
-
* @summary openId换取登录token
|
|
838
|
-
* @param {AppObtainToken} appObtainToken
|
|
839
|
-
* @param {*} [options] Override http request option.
|
|
840
|
-
* @throws {RequiredError}
|
|
841
|
-
*/
|
|
842
|
-
loginByOpenId: async (appObtainToken: AppObtainToken, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
843
|
-
// verify required parameter 'appObtainToken' is not null or undefined
|
|
844
|
-
assertParamExists('loginByOpenId', 'appObtainToken', appObtainToken)
|
|
845
|
-
const localVarPath = `/miniapp/auth/loginByOpenId`;
|
|
846
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
847
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
848
|
-
let baseOptions;
|
|
849
|
-
if (configuration) {
|
|
850
|
-
baseOptions = configuration.baseOptions;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
854
|
-
const localVarHeaderParameter = {} as any;
|
|
855
|
-
const localVarQueryParameter = {} as any;
|
|
856
|
-
|
|
857
|
-
// authentication tokenScheme required
|
|
858
|
-
// http bearer authentication required
|
|
859
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
864
|
-
|
|
865
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
866
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
867
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
868
|
-
localVarRequestOptions.data = serializeDataIfNeeded(appObtainToken, localVarRequestOptions, configuration)
|
|
869
|
-
|
|
870
|
-
return {
|
|
871
|
-
url: toPathString(localVarUrlObj),
|
|
872
|
-
options: localVarRequestOptions,
|
|
873
|
-
};
|
|
874
|
-
},
|
|
875
833
|
/**
|
|
876
834
|
*
|
|
877
835
|
* @summary 微信公众号登录
|
|
@@ -1375,19 +1333,6 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
1375
1333
|
const localVarOperationServerBasePath = operationServerMap['AuthApi.loginByCodeV2']?.[localVarOperationServerIndex]?.url;
|
|
1376
1334
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1377
1335
|
},
|
|
1378
|
-
/**
|
|
1379
|
-
*
|
|
1380
|
-
* @summary openId换取登录token
|
|
1381
|
-
* @param {AppObtainToken} appObtainToken
|
|
1382
|
-
* @param {*} [options] Override http request option.
|
|
1383
|
-
* @throws {RequiredError}
|
|
1384
|
-
*/
|
|
1385
|
-
async loginByOpenId(appObtainToken: AppObtainToken, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
1386
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.loginByOpenId(appObtainToken, options);
|
|
1387
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1388
|
-
const localVarOperationServerBasePath = operationServerMap['AuthApi.loginByOpenId']?.[localVarOperationServerIndex]?.url;
|
|
1389
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1390
|
-
},
|
|
1391
1336
|
/**
|
|
1392
1337
|
*
|
|
1393
1338
|
* @summary 微信公众号登录
|
|
@@ -1662,16 +1607,6 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
1662
1607
|
loginByCodeV2(requestParameters: AuthApiLoginByCodeV2Request, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult> {
|
|
1663
1608
|
return localVarFp.loginByCodeV2(requestParameters.appLoginWxChatDto, options).then((request) => request(axios, basePath));
|
|
1664
1609
|
},
|
|
1665
|
-
/**
|
|
1666
|
-
*
|
|
1667
|
-
* @summary openId换取登录token
|
|
1668
|
-
* @param {AuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
1669
|
-
* @param {*} [options] Override http request option.
|
|
1670
|
-
* @throws {RequiredError}
|
|
1671
|
-
*/
|
|
1672
|
-
loginByOpenId(requestParameters: AuthApiLoginByOpenIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
1673
|
-
return localVarFp.loginByOpenId(requestParameters.appObtainToken, options).then((request) => request(axios, basePath));
|
|
1674
|
-
},
|
|
1675
1610
|
/**
|
|
1676
1611
|
*
|
|
1677
1612
|
* @summary 微信公众号登录
|
|
@@ -1973,20 +1908,6 @@ export interface AuthApiLoginByCodeV2Request {
|
|
|
1973
1908
|
readonly appLoginWxChatDto: AppLoginWxChatDto
|
|
1974
1909
|
}
|
|
1975
1910
|
|
|
1976
|
-
/**
|
|
1977
|
-
* Request parameters for loginByOpenId operation in AuthApi.
|
|
1978
|
-
* @export
|
|
1979
|
-
* @interface AuthApiLoginByOpenIdRequest
|
|
1980
|
-
*/
|
|
1981
|
-
export interface AuthApiLoginByOpenIdRequest {
|
|
1982
|
-
/**
|
|
1983
|
-
*
|
|
1984
|
-
* @type {AppObtainToken}
|
|
1985
|
-
* @memberof AuthApiLoginByOpenId
|
|
1986
|
-
*/
|
|
1987
|
-
readonly appObtainToken: AppObtainToken
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
1911
|
/**
|
|
1991
1912
|
* Request parameters for loginByWechatPublic operation in AuthApi.
|
|
1992
1913
|
* @export
|
|
@@ -2308,18 +2229,6 @@ export class AuthApi extends BaseAPI {
|
|
|
2308
2229
|
return AuthApiFp(this.configuration).loginByCodeV2(requestParameters.appLoginWxChatDto, options).then((request) => request(this.axios, this.basePath));
|
|
2309
2230
|
}
|
|
2310
2231
|
|
|
2311
|
-
/**
|
|
2312
|
-
*
|
|
2313
|
-
* @summary openId换取登录token
|
|
2314
|
-
* @param {AuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
2315
|
-
* @param {*} [options] Override http request option.
|
|
2316
|
-
* @throws {RequiredError}
|
|
2317
|
-
* @memberof AuthApi
|
|
2318
|
-
*/
|
|
2319
|
-
public loginByOpenId(requestParameters: AuthApiLoginByOpenIdRequest, options?: RawAxiosRequestConfig) {
|
|
2320
|
-
return AuthApiFp(this.configuration).loginByOpenId(requestParameters.appObtainToken, options).then((request) => request(this.axios, this.basePath));
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
2232
|
/**
|
|
2324
2233
|
*
|
|
2325
2234
|
* @summary 微信公众号登录
|
|
@@ -16,7 +16,6 @@ import type { AppLoginCodeDto } from '../models';
|
|
|
16
16
|
import type { AppLoginPasswordDto } from '../models';
|
|
17
17
|
import type { AppLoginWxChatDto } from '../models';
|
|
18
18
|
import type { AppLoginWxChatPubDto } from '../models';
|
|
19
|
-
import type { AppObtainToken } from '../models';
|
|
20
19
|
import type { ChoosePakBody } from '../models';
|
|
21
20
|
import type { JsonResult } from '../models';
|
|
22
21
|
import type { JsonResultBoolean } from '../models';
|
|
@@ -120,14 +119,6 @@ export declare const AppAuthApiAxiosParamCreator: (configuration?: Configuration
|
|
|
120
119
|
* @throws {RequiredError}
|
|
121
120
|
*/
|
|
122
121
|
loginByCodeV2: (appLoginWxChatDto: AppLoginWxChatDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @summary openId换取登录token
|
|
126
|
-
* @param {AppObtainToken} appObtainToken
|
|
127
|
-
* @param {*} [options] Override http request option.
|
|
128
|
-
* @throws {RequiredError}
|
|
129
|
-
*/
|
|
130
|
-
loginByOpenId: (appObtainToken: AppObtainToken, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
131
122
|
/**
|
|
132
123
|
*
|
|
133
124
|
* @summary 微信公众号登录
|
|
@@ -251,16 +242,6 @@ export declare const AppAuthApiFp: (configuration?: Configuration) => {
|
|
|
251
242
|
* @throws {RequiredError}
|
|
252
243
|
*/
|
|
253
244
|
loginByCodeV2(appLoginWxChatDto: AppLoginWxChatDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
254
|
-
/**
|
|
255
|
-
*
|
|
256
|
-
* @summary openId换取登录token
|
|
257
|
-
* @param {AppObtainToken} appObtainToken
|
|
258
|
-
* @param {*} [options] Override http request option.
|
|
259
|
-
* @throws {RequiredError}
|
|
260
|
-
*/
|
|
261
|
-
loginByOpenId(appObtainToken: AppObtainToken, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
262
|
-
[key: string]: any;
|
|
263
|
-
}>>;
|
|
264
245
|
/**
|
|
265
246
|
*
|
|
266
247
|
* @summary 微信公众号登录
|
|
@@ -383,16 +364,6 @@ export declare const AppAuthApiFactory: (configuration?: Configuration, basePath
|
|
|
383
364
|
* @throws {RequiredError}
|
|
384
365
|
*/
|
|
385
366
|
loginByCodeV2(requestParameters: AppAuthApiLoginByCodeV2Request, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult>;
|
|
386
|
-
/**
|
|
387
|
-
*
|
|
388
|
-
* @summary openId换取登录token
|
|
389
|
-
* @param {AppAuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
390
|
-
* @param {*} [options] Override http request option.
|
|
391
|
-
* @throws {RequiredError}
|
|
392
|
-
*/
|
|
393
|
-
loginByOpenId(requestParameters: AppAuthApiLoginByOpenIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
394
|
-
[key: string]: any;
|
|
395
|
-
}>;
|
|
396
367
|
/**
|
|
397
368
|
*
|
|
398
369
|
* @summary 微信公众号登录
|
|
@@ -582,19 +553,6 @@ export interface AppAuthApiLoginByCodeV2Request {
|
|
|
582
553
|
*/
|
|
583
554
|
readonly appLoginWxChatDto: AppLoginWxChatDto;
|
|
584
555
|
}
|
|
585
|
-
/**
|
|
586
|
-
* Request parameters for loginByOpenId operation in AppAuthApi.
|
|
587
|
-
* @export
|
|
588
|
-
* @interface AppAuthApiLoginByOpenIdRequest
|
|
589
|
-
*/
|
|
590
|
-
export interface AppAuthApiLoginByOpenIdRequest {
|
|
591
|
-
/**
|
|
592
|
-
*
|
|
593
|
-
* @type {AppObtainToken}
|
|
594
|
-
* @memberof AppAuthApiLoginByOpenId
|
|
595
|
-
*/
|
|
596
|
-
readonly appObtainToken: AppObtainToken;
|
|
597
|
-
}
|
|
598
556
|
/**
|
|
599
557
|
* Request parameters for loginByWechatPublic operation in AppAuthApi.
|
|
600
558
|
* @export
|
|
@@ -745,17 +703,6 @@ export declare class AppAuthApi extends BaseAPI {
|
|
|
745
703
|
* @memberof AppAuthApi
|
|
746
704
|
*/
|
|
747
705
|
loginByCodeV2(requestParameters: AppAuthApiLoginByCodeV2Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResult, any, {}>>;
|
|
748
|
-
/**
|
|
749
|
-
*
|
|
750
|
-
* @summary openId换取登录token
|
|
751
|
-
* @param {AppAuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
752
|
-
* @param {*} [options] Override http request option.
|
|
753
|
-
* @throws {RequiredError}
|
|
754
|
-
* @memberof AppAuthApi
|
|
755
|
-
*/
|
|
756
|
-
loginByOpenId(requestParameters: AppAuthApiLoginByOpenIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
757
|
-
[key: string]: any;
|
|
758
|
-
}, any, {}>>;
|
|
759
706
|
/**
|
|
760
707
|
*
|
|
761
708
|
* @summary 微信公众号登录
|
|
@@ -423,39 +423,6 @@ const AppAuthApiAxiosParamCreator = function (configuration) {
|
|
|
423
423
|
options: localVarRequestOptions,
|
|
424
424
|
};
|
|
425
425
|
}),
|
|
426
|
-
/**
|
|
427
|
-
*
|
|
428
|
-
* @summary openId换取登录token
|
|
429
|
-
* @param {AppObtainToken} appObtainToken
|
|
430
|
-
* @param {*} [options] Override http request option.
|
|
431
|
-
* @throws {RequiredError}
|
|
432
|
-
*/
|
|
433
|
-
loginByOpenId: (appObtainToken_1, ...args_1) => __awaiter(this, [appObtainToken_1, ...args_1], void 0, function* (appObtainToken, options = {}) {
|
|
434
|
-
// verify required parameter 'appObtainToken' is not null or undefined
|
|
435
|
-
(0, common_1.assertParamExists)('loginByOpenId', 'appObtainToken', appObtainToken);
|
|
436
|
-
const localVarPath = `/miniapp/auth/loginByOpenId`;
|
|
437
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
438
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
439
|
-
let baseOptions;
|
|
440
|
-
if (configuration) {
|
|
441
|
-
baseOptions = configuration.baseOptions;
|
|
442
|
-
}
|
|
443
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
444
|
-
const localVarHeaderParameter = {};
|
|
445
|
-
const localVarQueryParameter = {};
|
|
446
|
-
// authentication tokenScheme required
|
|
447
|
-
// http bearer authentication required
|
|
448
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
449
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
450
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
451
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
452
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
453
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(appObtainToken, localVarRequestOptions, configuration);
|
|
454
|
-
return {
|
|
455
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
456
|
-
options: localVarRequestOptions,
|
|
457
|
-
};
|
|
458
|
-
}),
|
|
459
426
|
/**
|
|
460
427
|
*
|
|
461
428
|
* @summary 微信公众号登录
|
|
@@ -750,22 +717,6 @@ const AppAuthApiFp = function (configuration) {
|
|
|
750
717
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
751
718
|
});
|
|
752
719
|
},
|
|
753
|
-
/**
|
|
754
|
-
*
|
|
755
|
-
* @summary openId换取登录token
|
|
756
|
-
* @param {AppObtainToken} appObtainToken
|
|
757
|
-
* @param {*} [options] Override http request option.
|
|
758
|
-
* @throws {RequiredError}
|
|
759
|
-
*/
|
|
760
|
-
loginByOpenId(appObtainToken, options) {
|
|
761
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
762
|
-
var _a, _b, _c;
|
|
763
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.loginByOpenId(appObtainToken, options);
|
|
764
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
765
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppAuthApi.loginByOpenId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
766
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
767
|
-
});
|
|
768
|
-
},
|
|
769
720
|
/**
|
|
770
721
|
*
|
|
771
722
|
* @summary 微信公众号登录
|
|
@@ -934,16 +885,6 @@ const AppAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
934
885
|
loginByCodeV2(requestParameters, options) {
|
|
935
886
|
return localVarFp.loginByCodeV2(requestParameters.appLoginWxChatDto, options).then((request) => request(axios, basePath));
|
|
936
887
|
},
|
|
937
|
-
/**
|
|
938
|
-
*
|
|
939
|
-
* @summary openId换取登录token
|
|
940
|
-
* @param {AppAuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
941
|
-
* @param {*} [options] Override http request option.
|
|
942
|
-
* @throws {RequiredError}
|
|
943
|
-
*/
|
|
944
|
-
loginByOpenId(requestParameters, options) {
|
|
945
|
-
return localVarFp.loginByOpenId(requestParameters.appObtainToken, options).then((request) => request(axios, basePath));
|
|
946
|
-
},
|
|
947
888
|
/**
|
|
948
889
|
*
|
|
949
890
|
* @summary 微信公众号登录
|
|
@@ -1104,17 +1045,6 @@ class AppAuthApi extends base_1.BaseAPI {
|
|
|
1104
1045
|
loginByCodeV2(requestParameters, options) {
|
|
1105
1046
|
return (0, exports.AppAuthApiFp)(this.configuration).loginByCodeV2(requestParameters.appLoginWxChatDto, options).then((request) => request(this.axios, this.basePath));
|
|
1106
1047
|
}
|
|
1107
|
-
/**
|
|
1108
|
-
*
|
|
1109
|
-
* @summary openId换取登录token
|
|
1110
|
-
* @param {AppAuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
1111
|
-
* @param {*} [options] Override http request option.
|
|
1112
|
-
* @throws {RequiredError}
|
|
1113
|
-
* @memberof AppAuthApi
|
|
1114
|
-
*/
|
|
1115
|
-
loginByOpenId(requestParameters, options) {
|
|
1116
|
-
return (0, exports.AppAuthApiFp)(this.configuration).loginByOpenId(requestParameters.appObtainToken, options).then((request) => request(this.axios, this.basePath));
|
|
1117
|
-
}
|
|
1118
1048
|
/**
|
|
1119
1049
|
*
|
|
1120
1050
|
* @summary 微信公众号登录
|
package/dist/apis/auth-api.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ import type { AppLoginCodeDto } from '../models';
|
|
|
16
16
|
import type { AppLoginPasswordDto } from '../models';
|
|
17
17
|
import type { AppLoginWxChatDto } from '../models';
|
|
18
18
|
import type { AppLoginWxChatPubDto } from '../models';
|
|
19
|
-
import type { AppObtainToken } from '../models';
|
|
20
19
|
import type { ChoosePakBody } from '../models';
|
|
21
20
|
import type { JsonResult } from '../models';
|
|
22
21
|
import type { JsonResultBoolean } from '../models';
|
|
@@ -186,14 +185,6 @@ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
186
185
|
* @throws {RequiredError}
|
|
187
186
|
*/
|
|
188
187
|
loginByCodeV2: (appLoginWxChatDto: AppLoginWxChatDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @summary openId换取登录token
|
|
192
|
-
* @param {AppObtainToken} appObtainToken
|
|
193
|
-
* @param {*} [options] Override http request option.
|
|
194
|
-
* @throws {RequiredError}
|
|
195
|
-
*/
|
|
196
|
-
loginByOpenId: (appObtainToken: AppObtainToken, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
197
188
|
/**
|
|
198
189
|
*
|
|
199
190
|
* @summary 微信公众号登录
|
|
@@ -412,16 +403,6 @@ export declare const AuthApiFp: (configuration?: Configuration) => {
|
|
|
412
403
|
* @throws {RequiredError}
|
|
413
404
|
*/
|
|
414
405
|
loginByCodeV2(appLoginWxChatDto: AppLoginWxChatDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
415
|
-
/**
|
|
416
|
-
*
|
|
417
|
-
* @summary openId换取登录token
|
|
418
|
-
* @param {AppObtainToken} appObtainToken
|
|
419
|
-
* @param {*} [options] Override http request option.
|
|
420
|
-
* @throws {RequiredError}
|
|
421
|
-
*/
|
|
422
|
-
loginByOpenId(appObtainToken: AppObtainToken, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
423
|
-
[key: string]: any;
|
|
424
|
-
}>>;
|
|
425
406
|
/**
|
|
426
407
|
*
|
|
427
408
|
* @summary 微信公众号登录
|
|
@@ -642,16 +623,6 @@ export declare const AuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
642
623
|
* @throws {RequiredError}
|
|
643
624
|
*/
|
|
644
625
|
loginByCodeV2(requestParameters: AuthApiLoginByCodeV2Request, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult>;
|
|
645
|
-
/**
|
|
646
|
-
*
|
|
647
|
-
* @summary openId换取登录token
|
|
648
|
-
* @param {AuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
649
|
-
* @param {*} [options] Override http request option.
|
|
650
|
-
* @throws {RequiredError}
|
|
651
|
-
*/
|
|
652
|
-
loginByOpenId(requestParameters: AuthApiLoginByOpenIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
653
|
-
[key: string]: any;
|
|
654
|
-
}>;
|
|
655
626
|
/**
|
|
656
627
|
*
|
|
657
628
|
* @summary 微信公众号登录
|
|
@@ -927,19 +898,6 @@ export interface AuthApiLoginByCodeV2Request {
|
|
|
927
898
|
*/
|
|
928
899
|
readonly appLoginWxChatDto: AppLoginWxChatDto;
|
|
929
900
|
}
|
|
930
|
-
/**
|
|
931
|
-
* Request parameters for loginByOpenId operation in AuthApi.
|
|
932
|
-
* @export
|
|
933
|
-
* @interface AuthApiLoginByOpenIdRequest
|
|
934
|
-
*/
|
|
935
|
-
export interface AuthApiLoginByOpenIdRequest {
|
|
936
|
-
/**
|
|
937
|
-
*
|
|
938
|
-
* @type {AppObtainToken}
|
|
939
|
-
* @memberof AuthApiLoginByOpenId
|
|
940
|
-
*/
|
|
941
|
-
readonly appObtainToken: AppObtainToken;
|
|
942
|
-
}
|
|
943
901
|
/**
|
|
944
902
|
* Request parameters for loginByWechatPublic operation in AuthApi.
|
|
945
903
|
* @export
|
|
@@ -1207,17 +1165,6 @@ export declare class AuthApi extends BaseAPI {
|
|
|
1207
1165
|
* @memberof AuthApi
|
|
1208
1166
|
*/
|
|
1209
1167
|
loginByCodeV2(requestParameters: AuthApiLoginByCodeV2Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResult, any, {}>>;
|
|
1210
|
-
/**
|
|
1211
|
-
*
|
|
1212
|
-
* @summary openId换取登录token
|
|
1213
|
-
* @param {AuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
1214
|
-
* @param {*} [options] Override http request option.
|
|
1215
|
-
* @throws {RequiredError}
|
|
1216
|
-
* @memberof AuthApi
|
|
1217
|
-
*/
|
|
1218
|
-
loginByOpenId(requestParameters: AuthApiLoginByOpenIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
1219
|
-
[key: string]: any;
|
|
1220
|
-
}, any, {}>>;
|
|
1221
1168
|
/**
|
|
1222
1169
|
*
|
|
1223
1170
|
* @summary 微信公众号登录
|
package/dist/apis/auth-api.js
CHANGED
|
@@ -676,39 +676,6 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
676
676
|
options: localVarRequestOptions,
|
|
677
677
|
};
|
|
678
678
|
}),
|
|
679
|
-
/**
|
|
680
|
-
*
|
|
681
|
-
* @summary openId换取登录token
|
|
682
|
-
* @param {AppObtainToken} appObtainToken
|
|
683
|
-
* @param {*} [options] Override http request option.
|
|
684
|
-
* @throws {RequiredError}
|
|
685
|
-
*/
|
|
686
|
-
loginByOpenId: (appObtainToken_1, ...args_1) => __awaiter(this, [appObtainToken_1, ...args_1], void 0, function* (appObtainToken, options = {}) {
|
|
687
|
-
// verify required parameter 'appObtainToken' is not null or undefined
|
|
688
|
-
(0, common_1.assertParamExists)('loginByOpenId', 'appObtainToken', appObtainToken);
|
|
689
|
-
const localVarPath = `/miniapp/auth/loginByOpenId`;
|
|
690
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
691
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
692
|
-
let baseOptions;
|
|
693
|
-
if (configuration) {
|
|
694
|
-
baseOptions = configuration.baseOptions;
|
|
695
|
-
}
|
|
696
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
697
|
-
const localVarHeaderParameter = {};
|
|
698
|
-
const localVarQueryParameter = {};
|
|
699
|
-
// authentication tokenScheme required
|
|
700
|
-
// http bearer authentication required
|
|
701
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
702
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
703
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
704
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
705
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
706
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(appObtainToken, localVarRequestOptions, configuration);
|
|
707
|
-
return {
|
|
708
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
709
|
-
options: localVarRequestOptions,
|
|
710
|
-
};
|
|
711
|
-
}),
|
|
712
679
|
/**
|
|
713
680
|
*
|
|
714
681
|
* @summary 微信公众号登录
|
|
@@ -1227,22 +1194,6 @@ const AuthApiFp = function (configuration) {
|
|
|
1227
1194
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1228
1195
|
});
|
|
1229
1196
|
},
|
|
1230
|
-
/**
|
|
1231
|
-
*
|
|
1232
|
-
* @summary openId换取登录token
|
|
1233
|
-
* @param {AppObtainToken} appObtainToken
|
|
1234
|
-
* @param {*} [options] Override http request option.
|
|
1235
|
-
* @throws {RequiredError}
|
|
1236
|
-
*/
|
|
1237
|
-
loginByOpenId(appObtainToken, options) {
|
|
1238
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1239
|
-
var _a, _b, _c;
|
|
1240
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.loginByOpenId(appObtainToken, options);
|
|
1241
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1242
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthApi.loginByOpenId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1243
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1244
|
-
});
|
|
1245
|
-
},
|
|
1246
1197
|
/**
|
|
1247
1198
|
*
|
|
1248
1199
|
* @summary 微信公众号登录
|
|
@@ -1535,16 +1486,6 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1535
1486
|
loginByCodeV2(requestParameters, options) {
|
|
1536
1487
|
return localVarFp.loginByCodeV2(requestParameters.appLoginWxChatDto, options).then((request) => request(axios, basePath));
|
|
1537
1488
|
},
|
|
1538
|
-
/**
|
|
1539
|
-
*
|
|
1540
|
-
* @summary openId换取登录token
|
|
1541
|
-
* @param {AuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
1542
|
-
* @param {*} [options] Override http request option.
|
|
1543
|
-
* @throws {RequiredError}
|
|
1544
|
-
*/
|
|
1545
|
-
loginByOpenId(requestParameters, options) {
|
|
1546
|
-
return localVarFp.loginByOpenId(requestParameters.appObtainToken, options).then((request) => request(axios, basePath));
|
|
1547
|
-
},
|
|
1548
1489
|
/**
|
|
1549
1490
|
*
|
|
1550
1491
|
* @summary 微信公众号登录
|
|
@@ -1819,17 +1760,6 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
1819
1760
|
loginByCodeV2(requestParameters, options) {
|
|
1820
1761
|
return (0, exports.AuthApiFp)(this.configuration).loginByCodeV2(requestParameters.appLoginWxChatDto, options).then((request) => request(this.axios, this.basePath));
|
|
1821
1762
|
}
|
|
1822
|
-
/**
|
|
1823
|
-
*
|
|
1824
|
-
* @summary openId换取登录token
|
|
1825
|
-
* @param {AuthApiLoginByOpenIdRequest} requestParameters Request parameters.
|
|
1826
|
-
* @param {*} [options] Override http request option.
|
|
1827
|
-
* @throws {RequiredError}
|
|
1828
|
-
* @memberof AuthApi
|
|
1829
|
-
*/
|
|
1830
|
-
loginByOpenId(requestParameters, options) {
|
|
1831
|
-
return (0, exports.AuthApiFp)(this.configuration).loginByOpenId(requestParameters.appObtainToken, options).then((request) => request(this.axios, this.basePath));
|
|
1832
|
-
}
|
|
1833
1763
|
/**
|
|
1834
1764
|
*
|
|
1835
1765
|
* @summary 微信公众号登录
|