Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hmscore/cordova-plugin-hms-account

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hmscore/cordova-plugin-hms-account - npm Package Compare versions

Comparing version 5.0.1-301 to 5.0.3-302

scripts/HMSCommonTypes.ts

24

hooks/after_plugin_install.js
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

@@ -38,7 +38,6 @@

FSUtils.writeFile(ROOT_GRADLE_FILE, repoAddedLines.join(NEW_LINE));
}
function addAGConnectDependency(lines) {
var AG_CONNECT_DEPENDENCY = 'classpath \'com.huawei.agconnect:agcp:1.4.0.300\' ' + COMMENT;
var AG_CONNECT_DEPENDENCY = 'classpath \'com.huawei.agconnect:agcp:1.4.1.300\' ' + COMMENT;

@@ -60,3 +59,2 @@ var pattern = /(\s*)classpath(\s+)\'com.android.tools.build:gradle:([0-9-\.\:]+)/m;

function addHuaweiRepo(lines) {

@@ -63,0 +61,0 @@ var HUAWEI_REPO = 'maven { url \'http://developer.huawei.com/repo/\' } ' + COMMENT

/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

@@ -26,3 +26,2 @@

module.exports = function(context) {
if (!FSUtils.exists(ROOT_GRADLE_FILE)) {

@@ -34,10 +33,7 @@ console.log('root gradle file does not exist. before_plugin_uninstall script wont be executed.');

var lines = rootGradleContent.split(NEW_LINE);
var linesAfterRemove = removeLinesAddedByPlugin(lines);
FSUtils.writeFile(ROOT_GRADLE_FILE, linesAfterRemove.join(NEW_LINE));
}
function removeLinesAddedByPlugin(lines) {

@@ -64,3 +60,2 @@ var indexList = [];

return lines;
}
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

@@ -22,17 +22,17 @@

var FSUtils = (function () {
var FSUtils = (function() {
var api = {};
api.exists = function (path) {
api.exists = function(path) {
try {
return fs.existsSync(path)
} catch (err) {/*NOPE*/ }
} catch (err) { /*NOPE*/ }
return false;
}
api.copyFile = function (src, dest) {
api.copyFile = function(src, dest) {
fs.copyFileSync(src, dest);
}
api.readFile = function (path, encoding) {
api.readFile = function(path, encoding) {
return fs.readFileSync(path, encoding);

@@ -42,3 +42,3 @@ }

api.writeFile = function(path, content) {
fs.writeFileSync(path,content);
fs.writeFileSync(path, content);
}

@@ -45,0 +45,0 @@

@@ -1,18 +0,19 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { IonicNativePlugin } from '@ionic-native/core';
export declare enum ScopeURI {
export declare enum AuthScopeList {
GAME = "https://www.huawei.com/auth/games",

@@ -60,3 +61,3 @@ OPENID = "openid",

gender: Gender;
scopes: ScopeURI[];
scopes: AuthScopeList[];
serverAuthCode: string;

@@ -86,3 +87,3 @@ unionId: string;

}
export declare enum ScopeConstants {
export declare enum AuthRequestOption {
SCOPE_ID_TOKEN = "idToken",

@@ -98,11 +99,21 @@ SCOPE_ACCESS_TOKEN = "accessToken",

}
export declare enum ErrorCodes {
HuaweiIdAuthException = "503"
}
export declare enum HuaweiIdAuthParams {
DEFAULT_AUTH_REQUEST_PARAM = "param",
DEFAULT_AUTH_REQUEST_PARAM_GAME = "game"
DEFAULT_AUTH_REQUEST_PARAM = "DEFAULT_AUTH_REQUEST_PARAM",
DEFAULT_AUTH_REQUEST_PARAM_GAME = "DEFAULT_AUTH_REQUEST_PARAM_GAME"
}
export declare class HmsAccountOriginal extends IonicNativePlugin {
signIn(scope: ScopeConstants[], param: HuaweiIdAuthParams, scopeList?: ScopeURI[]): Promise<AuthHuaweiId>;
export interface SignInData {
authRequestOption: AuthRequestOption[];
authParam?: HuaweiIdAuthParams;
authScopeList?: AuthScopeList[];
}
export declare class HMSAccountOriginal extends IonicNativePlugin {
signIn(signInData: SignInData): Promise<AuthHuaweiId>;
signOut(): Promise<void>;
cancelAuthorization(): Promise<void>;
silentSignIn(): Promise<AuthHuaweiId>;
silentSignIn(authParams: HuaweiIdAuthParams): Promise<AuthHuaweiId>;
enableLogger(): Promise<void>;
disableLogger(): Promise<void>;
}

@@ -131,5 +142,5 @@ export declare enum Theme {

getAuthResult(): Promise<AuthHuaweiId>;
getAuthResultWithScope(scopeList: ScopeURI[]): Promise<AuthHuaweiId>;
containScopes(authHuaweiId: AuthHuaweiIdBuilder, scopeList: ScopeURI[]): Promise<ContainScopesResult>;
addAuthScopes(requestCode: number, scopeList: ScopeURI[]): Promise<void>;
getAuthResultWithScope(authHuaweiId: AuthScopeList[]): Promise<AuthHuaweiId>;
containScopes(authHuaweiId: AuthHuaweiIdBuilder, authScopeList: AuthScopeList[]): Promise<ContainScopesResult>;
addAuthScopes(requestCode: number, authScopeList: AuthScopeList[]): Promise<void>;
}

@@ -139,3 +150,3 @@ export declare class HMSHuaweiIdAuthToolOriginal extends IonicNativePlugin {

requestUnionId(huaweiAccountName: string): Promise<string>;
requestAccessToken(account: Account, scopeList: ScopeURI[]): Promise<string>;
requestAccessToken(account: Account, authScopeList: AuthScopeList[]): Promise<string>;
}

@@ -151,3 +162,3 @@ export declare class HMSNetworkToolOriginal extends IonicNativePlugin {

export declare const HmsAccount: HmsAccountOriginal;
export declare const HMSAccount: HMSAccountOriginal;
export declare const HMSHuaweiIdAuthButton: HMSHuaweiIdAuthButtonOriginal;

@@ -154,0 +165,0 @@ export declare const HMSHuaweiIdAuthManager: HMSHuaweiIdAuthManagerOriginal;

@@ -1,25 +0,31 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
var __extends = (this && this.__extends) || (function() {
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
({ __proto__: [] }
instanceof Array && function(d, b) { d.__proto__ = b; }) ||
function(d, b) {
for (var p in b)
if (b.hasOwnProperty(p)) d[p] = b[p];
};
return extendStatics(d, b);
};
return function (d, b) {
return function(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }

@@ -30,11 +36,11 @@ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());

import { IonicNativePlugin, cordova } from '@ionic-native/core';
export var ScopeURI;
(function (ScopeURI) {
ScopeURI["GAME"] = "https://www.huawei.com/auth/games";
ScopeURI["OPENID"] = "openid";
ScopeURI["EMAIL"] = "email";
ScopeURI["PROFILE"] = "profile";
})(ScopeURI || (ScopeURI = {}));
export var AuthScopeList;
(function(AuthScopeList) {
AuthScopeList["GAME"] = "https://www.huawei.com/auth/games";
AuthScopeList["OPENID"] = "openid";
AuthScopeList["EMAIL"] = "email";
AuthScopeList["PROFILE"] = "profile";
})(AuthScopeList || (AuthScopeList = {}));
export var Gender;
(function (Gender) {
(function(Gender) {
Gender[Gender["UNKNOWN"] = -1] = "UNKNOWN";

@@ -45,38 +51,45 @@ Gender[Gender["MALE"] = 0] = "MALE";

})(Gender || (Gender = {}));
export var ScopeConstants;
(function (ScopeConstants) {
ScopeConstants["SCOPE_ID_TOKEN"] = "idToken";
ScopeConstants["SCOPE_ACCESS_TOKEN"] = "accessToken";
ScopeConstants["SCOPE_MOBILE_NUMBER"] = "mobileNumber";
ScopeConstants["SCOPE_EMAIL"] = "email";
ScopeConstants["SCOPE_SHIPPING_ADDRESS"] = "shippingAddress";
ScopeConstants["SCOPE_UID"] = "uid";
ScopeConstants["SCOPE_ID"] = "id";
ScopeConstants["SCOPE_AUTHORIZATION_CODE"] = "authorizationCode";
ScopeConstants["SCOPE_PROFILE"] = "profile";
})(ScopeConstants || (ScopeConstants = {}));
export var AuthRequestOption;
(function(AuthRequestOption) {
AuthRequestOption["SCOPE_ID_TOKEN"] = "idToken";
AuthRequestOption["SCOPE_ACCESS_TOKEN"] = "accessToken";
AuthRequestOption["SCOPE_MOBILE_NUMBER"] = "mobileNumber";
AuthRequestOption["SCOPE_EMAIL"] = "email";
AuthRequestOption["SCOPE_SHIPPING_ADDRESS"] = "shippingAddress";
AuthRequestOption["SCOPE_UID"] = "uid";
AuthRequestOption["SCOPE_ID"] = "id";
AuthRequestOption["SCOPE_AUTHORIZATION_CODE"] = "authorizationCode";
AuthRequestOption["SCOPE_PROFILE"] = "profile";
})(AuthRequestOption || (AuthRequestOption = {}));
export var ErrorCodes;
(function(ErrorCodes) {
ErrorCodes["HuaweiIdAuthException"] = "503";
})(ErrorCodes || (ErrorCodes = {}));
export var HuaweiIdAuthParams;
(function (HuaweiIdAuthParams) {
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM"] = "param";
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM_GAME"] = "game";
(function(HuaweiIdAuthParams) {
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM"] = "DEFAULT_AUTH_REQUEST_PARAM";
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM_GAME"] = "DEFAULT_AUTH_REQUEST_PARAM_GAME";
})(HuaweiIdAuthParams || (HuaweiIdAuthParams = {}));
var HmsAccountOriginal = /** @class */ (function (_super) {
__extends(HmsAccountOriginal, _super);
function HmsAccountOriginal() {
var HMSAccountOriginal = /** @class */ (function(_super) {
__extends(HMSAccountOriginal, _super);
function HMSAccountOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
HmsAccountOriginal.prototype.signIn = function (scope, param, scopeList) { return cordova(this, "signIn", { "otherPromise": true }, arguments); };
HmsAccountOriginal.prototype.signOut = function () { return cordova(this, "signOut", { "otherPromise": true }, arguments); };
HmsAccountOriginal.prototype.cancelAuthorization = function () { return cordova(this, "cancelAuthorization", { "otherPromise": true }, arguments); };
HmsAccountOriginal.prototype.silentSignIn = function () { return cordova(this, "silentSignIn", { "otherPromise": true }, arguments); };
HmsAccountOriginal.pluginName = "HmsAccount";
HmsAccountOriginal.plugin = "cordova-plugin-hms-account";
HmsAccountOriginal.pluginRef = "HMSAccount";
HmsAccountOriginal.platforms = ["Android"];
return HmsAccountOriginal;
HMSAccountOriginal.prototype.signIn = function(signInData) { return cordova(this, "signIn", { "otherPromise": true }, arguments); };
HMSAccountOriginal.prototype.signOut = function() { return cordova(this, "signOut", { "otherPromise": true }, arguments); };
HMSAccountOriginal.prototype.cancelAuthorization = function() { return cordova(this, "cancelAuthorization", { "otherPromise": true }, arguments); };
HMSAccountOriginal.prototype.silentSignIn = function(authParams) { return cordova(this, "silentSignIn", { "otherPromise": true }, arguments); };
HMSAccountOriginal.prototype.enableLogger = function() { return cordova(this, "enableLogger", { "otherPromise": true }, arguments); };
HMSAccountOriginal.prototype.disableLogger = function() { return cordova(this, "disableLogger", { "otherPromise": true }, arguments); };
HMSAccountOriginal.pluginName = "HMSAccount";
HMSAccountOriginal.plugin = "cordova-plugin-hms-account";
HMSAccountOriginal.pluginRef = "HMSAccount";
HMSAccountOriginal.platforms = ["Android"];
return HMSAccountOriginal;
}(IonicNativePlugin));
var HmsAccount = new HmsAccountOriginal();
export { HmsAccount };
var HMSAccount = new HMSAccountOriginal();
export { HMSAccount };
export var Theme;
(function (Theme) {
(function(Theme) {
Theme[Theme["THEME_NO_TITLE"] = 0] = "THEME_NO_TITLE";

@@ -86,3 +99,3 @@ Theme[Theme["THEME_FULL_TITLE"] = 1] = "THEME_FULL_TITLE";

export var ColorPolicy;
(function (ColorPolicy) {
(function(ColorPolicy) {
ColorPolicy[ColorPolicy["COLOR_POLICY_BLUE"] = 0] = "COLOR_POLICY_BLUE";

@@ -96,3 +109,3 @@ ColorPolicy[ColorPolicy["COLOR_POLICY_RED"] = 1] = "COLOR_POLICY_RED";

export var CornerRadius;
(function (CornerRadius) {
(function(CornerRadius) {
CornerRadius[CornerRadius["CORNER_RADIUS_LARGE"] = -1] = "CORNER_RADIUS_LARGE";

@@ -102,8 +115,9 @@ CornerRadius[CornerRadius["CORNER_RADIUS_MEDIUM"] = -2] = "CORNER_RADIUS_MEDIUM";

})(CornerRadius || (CornerRadius = {}));
var HMSHuaweiIdAuthButtonOriginal = /** @class */ (function (_super) {
var HMSHuaweiIdAuthButtonOriginal = /** @class */ (function(_super) {
__extends(HMSHuaweiIdAuthButtonOriginal, _super);
function HMSHuaweiIdAuthButtonOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSHuaweiIdAuthButtonOriginal.prototype.getHuaweiIdAuthButton = function (edittedButton, theme, colorPolicy, cornerRadius) { return cordova(this, "getHuaweiIdAuthButton", {}, arguments); };
HMSHuaweiIdAuthButtonOriginal.prototype.getHuaweiIdAuthButton = function(edittedButton, theme, colorPolicy, cornerRadius) { return cordova(this, "getHuaweiIdAuthButton", {}, arguments); };
HMSHuaweiIdAuthButtonOriginal.pluginName = "HMSHuaweiIdAuthButton";

@@ -117,11 +131,12 @@ HMSHuaweiIdAuthButtonOriginal.plugin = "cordova-plugin-hms-account";

export { HMSHuaweiIdAuthButton };
var HMSHuaweiIdAuthManagerOriginal = /** @class */ (function (_super) {
var HMSHuaweiIdAuthManagerOriginal = /** @class */ (function(_super) {
__extends(HMSHuaweiIdAuthManagerOriginal, _super);
function HMSHuaweiIdAuthManagerOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSHuaweiIdAuthManagerOriginal.prototype.getAuthResult = function () { return cordova(this, "getAuthResult", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManagerOriginal.prototype.getAuthResultWithScope = function (scopeList) { return cordova(this, "getAuthResultWithScope", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManagerOriginal.prototype.containScopes = function (authHuaweiId, scopeList) { return cordova(this, "containScopes", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManagerOriginal.prototype.addAuthScopes = function (requestCode, scopeList) { return cordova(this, "addAuthScopes", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManagerOriginal.prototype.getAuthResult = function() { return cordova(this, "getAuthResult", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManagerOriginal.prototype.getAuthResultWithScope = function(authHuaweiId) { return cordova(this, "getAuthResultWithScope", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManagerOriginal.prototype.containScopes = function(authHuaweiId, authScopeList) { return cordova(this, "containScopes", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManagerOriginal.prototype.addAuthScopes = function(requestCode, authScopeList) { return cordova(this, "addAuthScopes", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManagerOriginal.pluginName = "HMSHuaweiIdAuthManager";

@@ -135,10 +150,11 @@ HMSHuaweiIdAuthManagerOriginal.plugin = "cordova-plugin-hms-account";

export { HMSHuaweiIdAuthManager };
var HMSHuaweiIdAuthToolOriginal = /** @class */ (function (_super) {
var HMSHuaweiIdAuthToolOriginal = /** @class */ (function(_super) {
__extends(HMSHuaweiIdAuthToolOriginal, _super);
function HMSHuaweiIdAuthToolOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSHuaweiIdAuthToolOriginal.prototype.deleteAuthInfo = function (accessToken) { return cordova(this, "deleteAuthInfo", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthToolOriginal.prototype.requestUnionId = function (huaweiAccountName) { return cordova(this, "requestUnionId", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthToolOriginal.prototype.requestAccessToken = function (account, scopeList) { return cordova(this, "requestAccessToken", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthToolOriginal.prototype.deleteAuthInfo = function(accessToken) { return cordova(this, "deleteAuthInfo", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthToolOriginal.prototype.requestUnionId = function(huaweiAccountName) { return cordova(this, "requestUnionId", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthToolOriginal.prototype.requestAccessToken = function(account, authScopeList) { return cordova(this, "requestAccessToken", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthToolOriginal.pluginName = "HMSHuaweiIdAuthTool";

@@ -152,9 +168,10 @@ HMSHuaweiIdAuthToolOriginal.plugin = "cordova-plugin-hms-account";

export { HMSHuaweiIdAuthTool };
var HMSNetworkToolOriginal = /** @class */ (function (_super) {
var HMSNetworkToolOriginal = /** @class */ (function(_super) {
__extends(HMSNetworkToolOriginal, _super);
function HMSNetworkToolOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSNetworkToolOriginal.prototype.buildNetworkURL = function (domainHttps) { return cordova(this, "buildNetworkURL", { "otherPromise": true }, arguments); };
HMSNetworkToolOriginal.prototype.buildNetworkCookie = function (cookie) { return cordova(this, "buildNetworkCookie", { "otherPromise": true }, arguments); };
HMSNetworkToolOriginal.prototype.buildNetworkURL = function(domainHttps) { return cordova(this, "buildNetworkURL", { "otherPromise": true }, arguments); };
HMSNetworkToolOriginal.prototype.buildNetworkCookie = function(cookie) { return cordova(this, "buildNetworkCookie", { "otherPromise": true }, arguments); };
HMSNetworkToolOriginal.pluginName = "HMSNetworkTool";

@@ -168,9 +185,10 @@ HMSNetworkToolOriginal.plugin = "cordova-plugin-hms-account";

export { HMSNetworkTool };
var HMSReadSMSManagerOriginal = /** @class */ (function (_super) {
var HMSReadSMSManagerOriginal = /** @class */ (function(_super) {
__extends(HMSReadSMSManagerOriginal, _super);
function HMSReadSMSManagerOriginal() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSReadSMSManagerOriginal.prototype.smsVerificationCode = function () { return cordova(this, "smsVerificationCode", { "otherPromise": true }, arguments); };
HMSReadSMSManagerOriginal.prototype.obtainHashCode = function () { return cordova(this, "obtainHashCode", { "otherPromise": true }, arguments); };
HMSReadSMSManagerOriginal.prototype.smsVerificationCode = function() { return cordova(this, "smsVerificationCode", { "otherPromise": true }, arguments); };
HMSReadSMSManagerOriginal.prototype.obtainHashCode = function() { return cordova(this, "obtainHashCode", { "otherPromise": true }, arguments); };
HMSReadSMSManagerOriginal.pluginName = "HMSReadSMSManager";

@@ -184,2 +202,2 @@ HMSReadSMSManagerOriginal.plugin = "cordova-plugin-hms-account";

export { HMSReadSMSManager };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb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XNlOiB0cnVlIH0pXHJcbiAgc21zVmVyaWZpY2F0aW9uQ29kZSgpOiBQcm9taXNlPFN0cmluZz4ge1xyXG4gICAgcmV0dXJuO1xyXG4gIH1cclxuXHJcbiAgQENvcmRvdmEoeyBvdGhlclByb21pc2U6IHRydWUgfSlcclxuICBvYnRhaW5IYXNoQ29kZSgpOiBQcm9taXNlPFN0cmluZz4ge1xyXG4gICAgcmV0dXJuO1xyXG4gIH1cclxufVxyXG4iXX0=

@@ -1,18 +0,19 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { IonicNativePlugin } from '@ionic-native/core';
export declare enum ScopeURI {
export declare enum AuthScopeList {
GAME = "https://www.huawei.com/auth/games",

@@ -60,3 +61,3 @@ OPENID = "openid",

gender: Gender;
scopes: ScopeURI[];
scopes: AuthScopeList[];
serverAuthCode: string;

@@ -86,3 +87,3 @@ unionId: string;

}
export declare enum ScopeConstants {
export declare enum AuthRequestOption {
SCOPE_ID_TOKEN = "idToken",

@@ -98,11 +99,21 @@ SCOPE_ACCESS_TOKEN = "accessToken",

}
export declare enum ErrorCodes {
HuaweiIdAuthException = "503"
}
export declare enum HuaweiIdAuthParams {
DEFAULT_AUTH_REQUEST_PARAM = "param",
DEFAULT_AUTH_REQUEST_PARAM_GAME = "game"
DEFAULT_AUTH_REQUEST_PARAM = "DEFAULT_AUTH_REQUEST_PARAM",
DEFAULT_AUTH_REQUEST_PARAM_GAME = "DEFAULT_AUTH_REQUEST_PARAM_GAME"
}
export declare class HmsAccount extends IonicNativePlugin {
signIn(scope: ScopeConstants[], param: HuaweiIdAuthParams, scopeList?: ScopeURI[]): Promise<AuthHuaweiId>;
export interface SignInData {
authRequestOption: AuthRequestOption[];
authParam?: HuaweiIdAuthParams;
authScopeList?: AuthScopeList[];
}
export declare class HMSAccount extends IonicNativePlugin {
signIn(signInData: SignInData): Promise<AuthHuaweiId>;
signOut(): Promise<void>;
cancelAuthorization(): Promise<void>;
silentSignIn(): Promise<AuthHuaweiId>;
silentSignIn(authParams: HuaweiIdAuthParams): Promise<AuthHuaweiId>;
enableLogger(): Promise<void>;
disableLogger(): Promise<void>;
}

@@ -131,5 +142,5 @@ export declare enum Theme {

getAuthResult(): Promise<AuthHuaweiId>;
getAuthResultWithScope(scopeList: ScopeURI[]): Promise<AuthHuaweiId>;
containScopes(authHuaweiId: AuthHuaweiIdBuilder, scopeList: ScopeURI[]): Promise<ContainScopesResult>;
addAuthScopes(requestCode: number, scopeList: ScopeURI[]): Promise<void>;
getAuthResultWithScope(authHuaweiId: AuthScopeList[]): Promise<AuthHuaweiId>;
containScopes(authHuaweiId: AuthHuaweiIdBuilder, authScopeList: AuthScopeList[]): Promise<ContainScopesResult>;
addAuthScopes(requestCode: number, authScopeList: AuthScopeList[]): Promise<void>;
}

@@ -139,3 +150,3 @@ export declare class HMSHuaweiIdAuthTool extends IonicNativePlugin {

requestUnionId(huaweiAccountName: string): Promise<string>;
requestAccessToken(account: Account, scopeList: ScopeURI[]): Promise<string>;
requestAccessToken(account: Account, authScopeList: AuthScopeList[]): Promise<string>;
}

@@ -142,0 +153,0 @@ export declare class HMSNetworkTool extends IonicNativePlugin {

/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

@@ -19,11 +19,11 @@ Unless required by applicable law or agreed to in writing, software

import { IonicNativePlugin, cordova } from '@ionic-native/core';
export var ScopeURI;
(function (ScopeURI) {
ScopeURI["GAME"] = "https://www.huawei.com/auth/games";
ScopeURI["OPENID"] = "openid";
ScopeURI["EMAIL"] = "email";
ScopeURI["PROFILE"] = "profile";
})(ScopeURI || (ScopeURI = {}));
export var AuthScopeList;
(function(AuthScopeList) {
AuthScopeList["GAME"] = "https://www.huawei.com/auth/games";
AuthScopeList["OPENID"] = "openid";
AuthScopeList["EMAIL"] = "email";
AuthScopeList["PROFILE"] = "profile";
})(AuthScopeList || (AuthScopeList = {}));
export var Gender;
(function (Gender) {
(function(Gender) {
Gender[Gender["UNKNOWN"] = -1] = "UNKNOWN";

@@ -34,40 +34,47 @@ Gender[Gender["MALE"] = 0] = "MALE";

})(Gender || (Gender = {}));
export var ScopeConstants;
(function (ScopeConstants) {
ScopeConstants["SCOPE_ID_TOKEN"] = "idToken";
ScopeConstants["SCOPE_ACCESS_TOKEN"] = "accessToken";
ScopeConstants["SCOPE_MOBILE_NUMBER"] = "mobileNumber";
ScopeConstants["SCOPE_EMAIL"] = "email";
ScopeConstants["SCOPE_SHIPPING_ADDRESS"] = "shippingAddress";
ScopeConstants["SCOPE_UID"] = "uid";
ScopeConstants["SCOPE_ID"] = "id";
ScopeConstants["SCOPE_AUTHORIZATION_CODE"] = "authorizationCode";
ScopeConstants["SCOPE_PROFILE"] = "profile";
})(ScopeConstants || (ScopeConstants = {}));
export var AuthRequestOption;
(function(AuthRequestOption) {
AuthRequestOption["SCOPE_ID_TOKEN"] = "idToken";
AuthRequestOption["SCOPE_ACCESS_TOKEN"] = "accessToken";
AuthRequestOption["SCOPE_MOBILE_NUMBER"] = "mobileNumber";
AuthRequestOption["SCOPE_EMAIL"] = "email";
AuthRequestOption["SCOPE_SHIPPING_ADDRESS"] = "shippingAddress";
AuthRequestOption["SCOPE_UID"] = "uid";
AuthRequestOption["SCOPE_ID"] = "id";
AuthRequestOption["SCOPE_AUTHORIZATION_CODE"] = "authorizationCode";
AuthRequestOption["SCOPE_PROFILE"] = "profile";
})(AuthRequestOption || (AuthRequestOption = {}));
export var ErrorCodes;
(function(ErrorCodes) {
ErrorCodes["HuaweiIdAuthException"] = "503";
})(ErrorCodes || (ErrorCodes = {}));
export var HuaweiIdAuthParams;
(function (HuaweiIdAuthParams) {
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM"] = "param";
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM_GAME"] = "game";
(function(HuaweiIdAuthParams) {
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM"] = "DEFAULT_AUTH_REQUEST_PARAM";
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM_GAME"] = "DEFAULT_AUTH_REQUEST_PARAM_GAME";
})(HuaweiIdAuthParams || (HuaweiIdAuthParams = {}));
var HmsAccount = /** @class */ (function (_super) {
__extends(HmsAccount, _super);
function HmsAccount() {
var HMSAccount = /** @class */ (function(_super) {
__extends(HMSAccount, _super);
function HMSAccount() {
return _super !== null && _super.apply(this, arguments) || this;
}
HmsAccount.prototype.signIn = function (scope, param, scopeList) { return cordova(this, "signIn", { "otherPromise": true }, arguments); };
HmsAccount.prototype.signOut = function () { return cordova(this, "signOut", { "otherPromise": true }, arguments); };
HmsAccount.prototype.cancelAuthorization = function () { return cordova(this, "cancelAuthorization", { "otherPromise": true }, arguments); };
HmsAccount.prototype.silentSignIn = function () { return cordova(this, "silentSignIn", { "otherPromise": true }, arguments); };
HmsAccount.pluginName = "HmsAccount";
HmsAccount.plugin = "cordova-plugin-hms-account";
HmsAccount.pluginRef = "HMSAccount";
HmsAccount.platforms = ["Android"];
HmsAccount = __decorate([
HMSAccount.prototype.signIn = function(signInData) { return cordova(this, "signIn", { "otherPromise": true }, arguments); };
HMSAccount.prototype.signOut = function() { return cordova(this, "signOut", { "otherPromise": true }, arguments); };
HMSAccount.prototype.cancelAuthorization = function() { return cordova(this, "cancelAuthorization", { "otherPromise": true }, arguments); };
HMSAccount.prototype.silentSignIn = function(authParams) { return cordova(this, "silentSignIn", { "otherPromise": true }, arguments); };
HMSAccount.prototype.enableLogger = function() { return cordova(this, "enableLogger", { "otherPromise": true }, arguments); };
HMSAccount.prototype.disableLogger = function() { return cordova(this, "disableLogger", { "otherPromise": true }, arguments); };
HMSAccount.pluginName = "HMSAccount";
HMSAccount.plugin = "cordova-plugin-hms-account";
HMSAccount.pluginRef = "HMSAccount";
HMSAccount.platforms = ["Android"];
HMSAccount = __decorate([
Injectable()
], HmsAccount);
return HmsAccount;
], HMSAccount);
return HMSAccount;
}(IonicNativePlugin));
export { HmsAccount };
export { HMSAccount };
export var Theme;
(function (Theme) {
(function(Theme) {
Theme[Theme["THEME_NO_TITLE"] = 0] = "THEME_NO_TITLE";

@@ -77,3 +84,3 @@ Theme[Theme["THEME_FULL_TITLE"] = 1] = "THEME_FULL_TITLE";

export var ColorPolicy;
(function (ColorPolicy) {
(function(ColorPolicy) {
ColorPolicy[ColorPolicy["COLOR_POLICY_BLUE"] = 0] = "COLOR_POLICY_BLUE";

@@ -87,3 +94,3 @@ ColorPolicy[ColorPolicy["COLOR_POLICY_RED"] = 1] = "COLOR_POLICY_RED";

export var CornerRadius;
(function (CornerRadius) {
(function(CornerRadius) {
CornerRadius[CornerRadius["CORNER_RADIUS_LARGE"] = -1] = "CORNER_RADIUS_LARGE";

@@ -93,8 +100,9 @@ CornerRadius[CornerRadius["CORNER_RADIUS_MEDIUM"] = -2] = "CORNER_RADIUS_MEDIUM";

})(CornerRadius || (CornerRadius = {}));
var HMSHuaweiIdAuthButton = /** @class */ (function (_super) {
var HMSHuaweiIdAuthButton = /** @class */ (function(_super) {
__extends(HMSHuaweiIdAuthButton, _super);
function HMSHuaweiIdAuthButton() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSHuaweiIdAuthButton.prototype.getHuaweiIdAuthButton = function (edittedButton, theme, colorPolicy, cornerRadius) { return cordova(this, "getHuaweiIdAuthButton", {}, arguments); };
HMSHuaweiIdAuthButton.prototype.getHuaweiIdAuthButton = function(edittedButton, theme, colorPolicy, cornerRadius) { return cordova(this, "getHuaweiIdAuthButton", {}, arguments); };
HMSHuaweiIdAuthButton.pluginName = "HMSHuaweiIdAuthButton";

@@ -110,11 +118,12 @@ HMSHuaweiIdAuthButton.plugin = "cordova-plugin-hms-account";

export { HMSHuaweiIdAuthButton };
var HMSHuaweiIdAuthManager = /** @class */ (function (_super) {
var HMSHuaweiIdAuthManager = /** @class */ (function(_super) {
__extends(HMSHuaweiIdAuthManager, _super);
function HMSHuaweiIdAuthManager() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSHuaweiIdAuthManager.prototype.getAuthResult = function () { return cordova(this, "getAuthResult", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManager.prototype.getAuthResultWithScope = function (scopeList) { return cordova(this, "getAuthResultWithScope", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManager.prototype.containScopes = function (authHuaweiId, scopeList) { return cordova(this, "containScopes", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManager.prototype.addAuthScopes = function (requestCode, scopeList) { return cordova(this, "addAuthScopes", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManager.prototype.getAuthResult = function() { return cordova(this, "getAuthResult", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManager.prototype.getAuthResultWithScope = function(authHuaweiId) { return cordova(this, "getAuthResultWithScope", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManager.prototype.containScopes = function(authHuaweiId, authScopeList) { return cordova(this, "containScopes", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManager.prototype.addAuthScopes = function(requestCode, authScopeList) { return cordova(this, "addAuthScopes", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthManager.pluginName = "HMSHuaweiIdAuthManager";

@@ -130,10 +139,11 @@ HMSHuaweiIdAuthManager.plugin = "cordova-plugin-hms-account";

export { HMSHuaweiIdAuthManager };
var HMSHuaweiIdAuthTool = /** @class */ (function (_super) {
var HMSHuaweiIdAuthTool = /** @class */ (function(_super) {
__extends(HMSHuaweiIdAuthTool, _super);
function HMSHuaweiIdAuthTool() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSHuaweiIdAuthTool.prototype.deleteAuthInfo = function (accessToken) { return cordova(this, "deleteAuthInfo", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthTool.prototype.requestUnionId = function (huaweiAccountName) { return cordova(this, "requestUnionId", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthTool.prototype.requestAccessToken = function (account, scopeList) { return cordova(this, "requestAccessToken", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthTool.prototype.deleteAuthInfo = function(accessToken) { return cordova(this, "deleteAuthInfo", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthTool.prototype.requestUnionId = function(huaweiAccountName) { return cordova(this, "requestUnionId", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthTool.prototype.requestAccessToken = function(account, authScopeList) { return cordova(this, "requestAccessToken", { "otherPromise": true }, arguments); };
HMSHuaweiIdAuthTool.pluginName = "HMSHuaweiIdAuthTool";

@@ -149,9 +159,10 @@ HMSHuaweiIdAuthTool.plugin = "cordova-plugin-hms-account";

export { HMSHuaweiIdAuthTool };
var HMSNetworkTool = /** @class */ (function (_super) {
var HMSNetworkTool = /** @class */ (function(_super) {
__extends(HMSNetworkTool, _super);
function HMSNetworkTool() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSNetworkTool.prototype.buildNetworkURL = function (domainHttps) { return cordova(this, "buildNetworkURL", { "otherPromise": true }, arguments); };
HMSNetworkTool.prototype.buildNetworkCookie = function (cookie) { return cordova(this, "buildNetworkCookie", { "otherPromise": true }, arguments); };
HMSNetworkTool.prototype.buildNetworkURL = function(domainHttps) { return cordova(this, "buildNetworkURL", { "otherPromise": true }, arguments); };
HMSNetworkTool.prototype.buildNetworkCookie = function(cookie) { return cordova(this, "buildNetworkCookie", { "otherPromise": true }, arguments); };
HMSNetworkTool.pluginName = "HMSNetworkTool";

@@ -167,9 +178,10 @@ HMSNetworkTool.plugin = "cordova-plugin-hms-account";

export { HMSNetworkTool };
var HMSReadSMSManager = /** @class */ (function (_super) {
var HMSReadSMSManager = /** @class */ (function(_super) {
__extends(HMSReadSMSManager, _super);
function HMSReadSMSManager() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSReadSMSManager.prototype.smsVerificationCode = function () { return cordova(this, "smsVerificationCode", { "otherPromise": true }, arguments); };
HMSReadSMSManager.prototype.obtainHashCode = function () { return cordova(this, "obtainHashCode", { "otherPromise": true }, arguments); };
HMSReadSMSManager.prototype.smsVerificationCode = function() { return cordova(this, "smsVerificationCode", { "otherPromise": true }, arguments); };
HMSReadSMSManager.prototype.obtainHashCode = function() { return cordova(this, "obtainHashCode", { "otherPromise": true }, arguments); };
HMSReadSMSManager.pluginName = "HMSReadSMSManager";

@@ -185,2 +197,2 @@ HMSReadSMSManager.plugin = "cordova-plugin-hms-account";

export { HMSReadSMSManager };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGlvbmljLW5hdGl2ZS9wbHVnaW5zL2htcy1hY2NvdW50L25neC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7RUFjRTs7QUFFRixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sOEJBQTBGLE1BQU0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mluZztcclxuICBzZXJ2aWNlQ291bnRyeUNvZGU6IHN0cmluZztcclxuICBzdGF0dXM6IG51bWJlcjtcclxuICBnZW5kZXI6IEdlbmRlcjtcclxuICBzY29wZXM6IFNjb3BlVVJJW107XHJcbiAgc2VydmVyQXV0aENvZGU6IHN0cmluZztcclxuICB1bmlvbklkOiBzdHJpbmc7XHJcbiAgY291bnRyeUNvZGU6IHN0cmluZztcclxufVxyXG5leHBvcnQgaW50ZXJmYWNlIENvbnRhaW5TY29wZXNSZXN1bHQge1xyXG4gIGNvbnRhaW5TY29wZXM6IGJvb2xlYW47XHJcbn1cclxuZXhwb3J0IGludGVyZmFjZSBEb21haW5JbmZvIHtcclxuICBkb21haW46IHN0cmluZztcclxuICBpc1VzZUh0dHBzOiBib29sZWFuO1xyXG59XHJcbmV4cG9ydCBpbnRlcmZhY2UgQ29va2llIHtcclxuICBjb29raWVOYW1lOiBzdHJpbmc7XHJcbiAgY29va2llVmFsdWU6IHN0cmluZztcclxuICBkb21haW46IHN0cmluZztcclxuICBwYXRoOiBzdHJpbmc7XHJcbiAgaXNIdHRwT25seTogYm9vbGVhbjtcclxuICBpc1NlY3VyZTogYm9vbGVhbjtcclxuICBtYXhBZ2U6IG51bWJlcjtcclxufVxyXG5leHBvcnQgaW50ZXJmYWNlIEFjY291bnQge1xyXG4gIHR5cGU6IHN0cmluZztcclxuICBuYW1lOiBzdHJpbmc7XHJcbn1cclxuZXhwb3J0IGVudW0gU2NvcGVDb25zdGFudHMge1xyXG4gIFNDT1BFX0lEX1RPS0VOID0gXCJpZFRva2VuXCIsXHJcbiAgU0NPUEVfQUNDRVNTX1RPS0VOID0gXCJhY2Nlc3NUb2tlblwiLFxyXG4gIFNDT1BFX01PQklMRV9OVU1CRVIgPSBcIm1vYmlsZU51bWJlclwiLFxyXG4gIFNDT1BFX0VNQUlMID0gXCJlbWFpbFwiLFxyXG4gIFNDT1BFX1NISVBQSU5HX0FERFJFU1MgPSBcInNoaXBwaW5nQWRkcmV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3Jkb3ZhKHsgb3RoZXJQcm9taXNlOiB0cnVlIH0pXHJcbiAgYnVpbGROZXR3b3JrQ29va2llKGNvb2tpZTogQ29va2llKTogUHJvbWlzZTxTdHJpbmc+IHtcclxuICAgIHJldHVybjtcclxuICB9XHJcbn1cclxuXHJcbkBQbHVnaW4oe1xyXG4gIHBsdWdpbk5hbWU6ICdITVNSZWFkU01TTWFuYWdlcicsXHJcbiAgcGx1Z2luOiAnY29yZG92YS1wbHVnaW4taG1zLWFjY291bnQnLFxyXG4gIHBsdWdpblJlZjogJ0hNU1JlYWRTTVNNYW5hZ2VyJyxcclxuICBwbGF0Zm9ybXM6IFsnQW5kcm9pZCddXHJcbn0pXHJcbkBJbmplY3RhYmxlKClcclxuZXhwb3J0IGNsYXNzIEhNU1JlYWRTTVNNYW5hZ2VyIGV4dGVuZHMgSW9uaWNOYXRpdmVQbHVnaW4ge1xyXG4gIEBDb3Jkb3ZhKHsgb3RoZXJQcm9taXNlOiB0cnVlIH0pXHJcbiAgc21zVmVyaWZpY2F0aW9uQ29kZSgpOiBQcm9taXNlPFN0cmluZz4ge1xyXG4gICAgcmV0dXJuO1xyXG4gIH1cclxuXHJcbiAgQENvcmRvdmEoeyBvdGhlclByb21pc2U6IHRydWUgfSlcclxuICBvYnRhaW5IYXNoQ29kZSgpOiBQcm9taXNlPFN0cmluZz4ge1xyXG4gICAgcmV0dXJuO1xyXG4gIH1cclxufVxyXG4iXX0=

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"ScopeURI":{"GAME":"https://www.huawei.com/auth/games","OPENID":"openid","EMAIL":"email","PROFILE":"profile"},"Gender":{"UNKNOWN":-1,"MALE":0,"FEMALE":1,"CONFIDENTIAL":2},"AuthHuaweiId":{"__symbolic":"interface"},"AuthHuaweiIdBuilder":{"__symbolic":"interface"},"ContainScopesResult":{"__symbolic":"interface"},"DomainInfo":{"__symbolic":"interface"},"Cookie":{"__symbolic":"interface"},"Account":{"__symbolic":"interface"},"ScopeConstants":{"SCOPE_ID_TOKEN":"idToken","SCOPE_ACCESS_TOKEN":"accessToken","SCOPE_MOBILE_NUMBER":"mobileNumber","SCOPE_EMAIL":"email","SCOPE_SHIPPING_ADDRESS":"shippingAddress","SCOPE_UID":"uid","SCOPE_ID":"id","SCOPE_AUTHORIZATION_CODE":"authorizationCode","SCOPE_PROFILE":"profile"},"HuaweiIdAuthParams":{"DEFAULT_AUTH_REQUEST_PARAM":"param","DEFAULT_AUTH_REQUEST_PARAM_GAME":"game"},"HmsAccount":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":112,"character":32},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HmsAccount","plugin":"cordova-plugin-hms-account","pluginRef":"HMSAccount","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":111,"character":1}}],"members":{"signIn":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"signOut":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"cancelAuthorization":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"silentSignIn":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}},"Theme":{"THEME_NO_TITLE":0,"THEME_FULL_TITLE":1},"ColorPolicy":{"COLOR_POLICY_BLUE":0,"COLOR_POLICY_RED":1,"COLOR_POLICY_WHITE":2,"COLOR_POLICY_WHITE_WITH_BORDER":3,"COLOR_POLICY_BLACK":4,"COLOR_POLICY_GRAY":5},"CornerRadius":{"CORNER_RADIUS_LARGE":-1,"CORNER_RADIUS_MEDIUM":-2,"CORNER_RADIUS_SMALL":-3},"HMSHuaweiIdAuthButton":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":159,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSHuaweiIdAuthButton","plugin":"cordova-plugin-hms-account","pluginRef":"HMSHuaweiIdAuthButton","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":158,"character":1}}],"members":{"getHuaweiIdAuthButton":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"}}]}]}},"HMSHuaweiIdAuthManager":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":173,"character":44},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSHuaweiIdAuthManager","plugin":"cordova-plugin-hms-account","pluginRef":"HMSHuaweiIdAuthManager","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":172,"character":1}}],"members":{"getAuthResult":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"getAuthResultWithScope":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"containScopes":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"addAuthScopes":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}},"HMSHuaweiIdAuthTool":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":202,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSHuaweiIdAuthTool","plugin":"cordova-plugin-hms-account","pluginRef":"HMSHuaweiIdAuthTool","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":201,"character":1}}],"members":{"deleteAuthInfo":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"requestUnionId":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"requestAccessToken":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}},"HMSNetworkTool":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":226,"character":36},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSNetworkTool","plugin":"cordova-plugin-hms-account","pluginRef":"HMSNetworkTool","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":225,"character":1}}],"members":{"buildNetworkURL":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"buildNetworkCookie":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}},"HMSReadSMSManager":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":245,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSReadSMSManager","plugin":"cordova-plugin-hms-account","pluginRef":"HMSReadSMSManager","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":244,"character":1}}],"members":{"smsVerificationCode":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"obtainHashCode":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"AuthScopeList":{"GAME":"https://www.huawei.com/auth/games","OPENID":"openid","EMAIL":"email","PROFILE":"profile"},"Gender":{"UNKNOWN":-1,"MALE":0,"FEMALE":1,"CONFIDENTIAL":2},"AuthHuaweiId":{"__symbolic":"interface"},"AuthHuaweiIdBuilder":{"__symbolic":"interface"},"ContainScopesResult":{"__symbolic":"interface"},"DomainInfo":{"__symbolic":"interface"},"Cookie":{"__symbolic":"interface"},"Account":{"__symbolic":"interface"},"AuthRequestOption":{"SCOPE_ID_TOKEN":"idToken","SCOPE_ACCESS_TOKEN":"accessToken","SCOPE_MOBILE_NUMBER":"mobileNumber","SCOPE_EMAIL":"email","SCOPE_SHIPPING_ADDRESS":"shippingAddress","SCOPE_UID":"uid","SCOPE_ID":"id","SCOPE_AUTHORIZATION_CODE":"authorizationCode","SCOPE_PROFILE":"profile"},"ErrorCodes":{"HuaweiIdAuthException":"503"},"HuaweiIdAuthParams":{"DEFAULT_AUTH_REQUEST_PARAM":"DEFAULT_AUTH_REQUEST_PARAM","DEFAULT_AUTH_REQUEST_PARAM_GAME":"DEFAULT_AUTH_REQUEST_PARAM_GAME"},"SignInData":{"__symbolic":"interface"},"HMSAccount":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":122,"character":32},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSAccount","plugin":"cordova-plugin-hms-account","pluginRef":"HMSAccount","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":121,"character":1}}],"members":{"signIn":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"signOut":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"cancelAuthorization":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"silentSignIn":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"enableLogger":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"disableLogger":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}},"Theme":{"THEME_NO_TITLE":0,"THEME_FULL_TITLE":1},"ColorPolicy":{"COLOR_POLICY_BLUE":0,"COLOR_POLICY_RED":1,"COLOR_POLICY_WHITE":2,"COLOR_POLICY_WHITE_WITH_BORDER":3,"COLOR_POLICY_BLACK":4,"COLOR_POLICY_GRAY":5},"CornerRadius":{"CORNER_RADIUS_LARGE":-1,"CORNER_RADIUS_MEDIUM":-2,"CORNER_RADIUS_SMALL":-3},"HMSHuaweiIdAuthButton":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":180,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSHuaweiIdAuthButton","plugin":"cordova-plugin-hms-account","pluginRef":"HMSHuaweiIdAuthButton","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":179,"character":1}}],"members":{"getHuaweiIdAuthButton":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"}}]}]}},"HMSHuaweiIdAuthManager":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":194,"character":44},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSHuaweiIdAuthManager","plugin":"cordova-plugin-hms-account","pluginRef":"HMSHuaweiIdAuthManager","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":193,"character":1}}],"members":{"getAuthResult":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"getAuthResultWithScope":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"containScopes":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"addAuthScopes":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}},"HMSHuaweiIdAuthTool":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":223,"character":41},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSHuaweiIdAuthTool","plugin":"cordova-plugin-hms-account","pluginRef":"HMSHuaweiIdAuthTool","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":222,"character":1}}],"members":{"deleteAuthInfo":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"requestUnionId":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"requestAccessToken":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}},"HMSNetworkTool":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":247,"character":36},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSNetworkTool","plugin":"cordova-plugin-hms-account","pluginRef":"HMSNetworkTool","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":246,"character":1}}],"members":{"buildNetworkURL":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"buildNetworkCookie":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}},"HMSReadSMSManager":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":266,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Plugin"},"arguments":[{"pluginName":"HMSReadSMSManager","plugin":"cordova-plugin-hms-account","pluginRef":"HMSReadSMSManager","platforms":["Android"]}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":265,"character":1}}],"members":{"smsVerificationCode":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}],"obtainHashCode":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Cordova"},"arguments":[{"otherPromise":true}]}]}]}}}}]
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

@@ -21,3 +21,3 @@ Unless required by applicable law or agreed to in writing, software

export enum ScopeURI {
export enum AuthScopeList {
GAME = "https://www.huawei.com/auth/games",

@@ -65,3 +65,3 @@ OPENID = "openid",

gender: Gender;
scopes: ScopeURI[];
scopes: AuthScopeList[];
serverAuthCode: string;

@@ -91,3 +91,3 @@ unionId: string;

}
export enum ScopeConstants {
export enum AuthRequestOption {
SCOPE_ID_TOKEN = "idToken",

@@ -104,9 +104,19 @@ SCOPE_ACCESS_TOKEN = "accessToken",

export enum ErrorCodes {
HuaweiIdAuthException = "503"
}
export enum HuaweiIdAuthParams {
DEFAULT_AUTH_REQUEST_PARAM = "param",
DEFAULT_AUTH_REQUEST_PARAM_GAME = "game"
DEFAULT_AUTH_REQUEST_PARAM = "DEFAULT_AUTH_REQUEST_PARAM",
DEFAULT_AUTH_REQUEST_PARAM_GAME = "DEFAULT_AUTH_REQUEST_PARAM_GAME"
}
export interface SignInData {
authRequestOption: AuthRequestOption[],
authParam?: HuaweiIdAuthParams,
authScopeList?: AuthScopeList[]
}
@Plugin({
pluginName: 'HmsAccount',
pluginName: 'HMSAccount',
plugin: 'cordova-plugin-hms-account',

@@ -117,5 +127,5 @@ pluginRef: 'HMSAccount',

@Injectable()
export class HmsAccount extends IonicNativePlugin {
export class HMSAccount extends IonicNativePlugin {
@Cordova({ otherPromise: true })
signIn(scope: ScopeConstants[], param: HuaweiIdAuthParams, scopeList?: ScopeURI[]): Promise<AuthHuaweiId> {
signIn(signInData: SignInData): Promise<AuthHuaweiId> {
return;

@@ -135,5 +145,16 @@ }

@Cordova({ otherPromise: true })
silentSignIn(): Promise<AuthHuaweiId> {
silentSignIn(authParams: HuaweiIdAuthParams): Promise<AuthHuaweiId> {
return;
}
@Cordova({ otherPromise: true })
enableLogger(): Promise<void> {
return;
}
@Cordova({ otherPromise: true })
disableLogger(): Promise<void> {
return;
}
}

@@ -167,3 +188,3 @@

export class HMSHuaweiIdAuthButton extends IonicNativePlugin {
@Cordova()
@Cordova()
getHuaweiIdAuthButton(edittedButton: string, theme: Theme, colorPolicy: ColorPolicy, cornerRadius: CornerRadius): void {

@@ -188,3 +209,3 @@ return;

@Cordova({ otherPromise: true })
getAuthResultWithScope(scopeList: ScopeURI[]): Promise<AuthHuaweiId> {
getAuthResultWithScope(authHuaweiId: AuthScopeList[]): Promise<AuthHuaweiId> {
return;

@@ -194,3 +215,3 @@ }

@Cordova({ otherPromise: true })
containScopes(authHuaweiId: AuthHuaweiIdBuilder, scopeList: ScopeURI[]): Promise<ContainScopesResult> {
containScopes(authHuaweiId: AuthHuaweiIdBuilder, authScopeList: AuthScopeList[]): Promise<ContainScopesResult> {
return;

@@ -200,3 +221,3 @@ }

@Cordova({ otherPromise: true })
addAuthScopes(requestCode: number, scopeList: ScopeURI[]): Promise<void> {
addAuthScopes(requestCode: number, authScopeList: AuthScopeList[]): Promise<void> {
return;

@@ -225,3 +246,3 @@ }

@Cordova({ otherPromise: true })
requestAccessToken(account: Account, scopeList: ScopeURI[]): Promise<string> {
requestAccessToken(account: Account, authScopeList: AuthScopeList[]): Promise<string> {
return;

@@ -267,3 +288,2 @@ }

}
}
}
{
"name": "@hmscore/cordova-plugin-hms-account",
"title": "Cordova HMS Account Kit",
"description": "Cordova HMS Account Kit",
"packagename": "cordova-account",
"packageversion": "5.0.1-301",
"version": "5.0.1-301",
"cordova": {
"id": "cordova-plugin-hms-account",
"platforms": [
"android"
]
},
"keywords": [
"cordova",
"ecosystem:cordova",
"cordova-android",
"cordova-account",
"account",
"hms-account",
"huawei-account",
"hmscore"
],
"scripts": {
"test": "npm run eslint",
"eslint": "node node_modules/eslint/bin/eslint www && node node_modules/eslint/bin/eslint src && node node_modules/eslint/bin/eslint tests"
},
"repository": {
"type": "git",
"url": "https://github.com/HMS-Core/hms-cordova-plugin.git",
"directory": "cordova-plugin-hms-account"
},
"homepage": "https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin",
"license": "Apache-2.0",
"licenseFilename": "LICENCE",
"readmeFilename": "README.md",
"engines": [
{
"name": "cordova",
"version": ">=3.0.0"
"name": "@hmscore/cordova-plugin-hms-account",
"description": "Huawei Account Cordova Plugin",
"version": "5.0.3-302",
"types": "types/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/HMS-Core/hms-cordova-plugin/tree/master/cordova-plugin-hms-account",
"directory": "cordova-plugin-hms-account"
},
"homepage": "https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin",
"license": "Apache-2.0",
"licenseFilename": "LICENCE",
"readmeFilename": "README.md",
"cordova": {
"id": "cordova-plugin-hms-account",
"platforms": []
},
"keywords": [
"cordova",
"ecosystem:cordova",
"cordova-android",
"account",
"huawei-account",
"hms-account",
"huawei",
"hms"
],
"files": [
"hooks",
"ionic",
"resources",
"scripts",
"types",
"www",
"LICENCE",
"package.json",
"plugin.xml",
"README.md",
"tsconfig.json",
"src"
],
"devDependencies": {
"@types/cordova": "0.0.34"
}
],
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-semistandard": "^11.0.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.3.0",
"eslint-plugin-node": "^5.0.0",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1"
},
"files": [
"hooks",
"resources",
"src",
"www",
"package.json",
"plugin.xml",
"README.md",
"LICENCE",
"scripts",
"types",
"tsconfig.json",
"ionic"
],
"dependencies": {
"@types/cordova": "0.0.34"
}
}
}

@@ -1,499 +0,1127 @@

# CORDOVA PLUGIN HMS ACCOUNT
# Cordova Plugin HMS Account
## Contents
1. Introduction
- [1. Introduction](#1-introduction)
- [2. Installation Guide](#2-installation-guide)
- [2.1. Creating a Project in AppGallery Connect](#21-creating-a-project-in-appgallery-connect)
- [2.2. Configuring the Signing Certificate Fingerprint and Obtaining agconnect-services.json](#22-configuring-the-signing-certificate-fingerprint-and-obtaining-agconnect-servicesjson)
- [2.3. Cordova](#23-cordova)
- [2.4. Ionic](#24-ionic)
- [2.4.1. With Cordova Runtime](#241-with-cordova-runtime)
- [2.4.2. With Capacitor Runtime](#242-with-capacitor-runtime)
- [3. API Reference](#3-api-reference)
- [3.1. Module Overview](#31-module-overview)
- [4. Configuration and Description](#4-configuration-and-description)
- [5. Sample Project](#5-sample-project)
- [6. Questions or Issues](#6-questions-or-issues)
- [7. Licensing and Terms](#7-licensing-and-terms)
2. Installation Guide
---
3. Cordova SDK API Method Definition
## 1. Introduction
4. Configure Description
The Cordova SDK code encapsulates the Huawei Account Kit interface. It provides many APIs for your reference or use.
5. Licensing and Terms
---
## 1. Introduction
## 2. Installation Guide
The Cordova SDK code encapsulates the Huawei Account Kit interface. It provides many APIs for your reference or use.
Before you get started, you must register as a HUAWEI developer and complete identity verification on the [HUAWEI Developer](https://developer.huawei.com/consumer/en/) website. For details, please refer to [Register a HUAWEI ID](https://developer.huawei.com/consumer/en/doc/10104).
The Cordova SDK code package is described as follows:
### 2.1. Creating a Project in AppGallery Connect
**src/main/java/com/huawei/hms/cordova/account**: Core layer that exposes AccountSDK functionality to JS side.
Creating an app in AppGallery Connect is required in order to communicate with the Huawei services. To create an app, perform the following steps:
**www**: Public interfaces for interacting AccountSDK through Cordova.
1. Sign in to [AppGallery Connect](https://developer.huawei.com/consumer/en/service/josp/agc/index.html) and select **My projects**.
2. Select your project from the project list or create a new one by clicking the **Add Project** button.
3. Go to **Project Setting** > **General information**, and click **Add app**.
If an app exists in the project and you need to add a new one, expand the app selection area on the top of the page and click **Add app**.
4. On the **Add app** page, enter the app information, and click **OK**.
## 2. Installation Guide
### 2.2. Configuring the Signing Certificate Fingerprint, Obtaining agconnect-services.json
## Cordova
A signing certificate fingerprint is used to verify the authenticity of an app when it attempts to access an HMS Core (APK) through the HMS SDK. Before using the HMS Core (APK), you must locally generate a signing certificate fingerprint and configure it in the **AppGallery Connect**. You can refer to 3rd and 4th steps of [Generating a Signing Certificate](https://developer.huawei.com/consumer/en/codelab/HMSPreparation/index.html#2) Codelab tutorial for the certificate generation. Perform the following steps after you have generated the certificate.
1. Download the Cordova Account SDK Plugin.
1. Sign in to [AppGallery Connect](https://developer.huawei.com/consumer/en/service/josp/agc/index.html) and select your project from **My Projects**. Then go to **Project Setting** > **General information**. In the **App information** field, click the icon next to SHA-256 certificate fingerprint, and enter the obtained **SHA-256 certificate fingerprint**.
2. After completing the configuration, click **OK** to save the changes. (Check mark icon)
3. In the same page, click **agconnect-services.json** button to download the configuration file.
2. Add Platform To Project.
### 2.3. Cordova
***`cordova platform add android`***
1. Install Cordova CLI.
3. You can either install the plugin thorough npm or by downloading from downloads page, [Cordova Account Plugin](https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Library/cordova-plugin-0000001051090052). <br>
```bash
npm install -g cordova
```
a. Run the following command in the root directory of your Cordova project to install it through npm. <br>
***`cordova plugin add @hms-core/cordova-plugin-hms-account`*** <br>
b. Run the following command in the root directory of your Cordova project to install it manually after downloading the plugin.<br>
***`cordova plugin add <CORDOVA_ACCOUNT_PLUGIN_PATH>`***
2. Create a new Cordova project or use existing Cordova project.
4. Check whether the Cordova Account SDK is successfully added to Plugin folder in the root directory of the Cordova project.
- To create new Cordova project, you can use **`cordova create path [id [name [config]]] [options]`** command. For more details please follow [CLI Reference - Apache Cordova](https://cordova.apache.org/docs/en/latest/reference/cordova-cli/index.html#cordova-create-command).
5. Add agconnect-services.json and jks file to root directory.
3. Add the **Android platform** to the project if haven't done before.
6. Add build.json file to your project's root.
```bash
cordova platform add android
```
7. Then run the Cordova app.
***`cordova run android`***
4. Install `HMS Account Plugin` to the project. You can either install the plugin through `npm` or by `downloading from HMS Core Plugin page`.
## Ionic
a. Run the following command in the root directory of your project to install it through **npm**.
1. Download the Cordova Account Plugin through npm or by downloading from downloads page, [Cordova Account Plugin](https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Library/cordova-plugin-0000001051090052).
```bash
cordova plugin add @hmscore/cordova-plugin-hms-account
```
a. Run the following command in the root directory of your Cordova project to install it through npm. <br>
b. Or download the plugin from [Plugin > Account Kit > Cordova Plugin](https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin) page and run the following command in the root directory of your project to **install it manually**.
***`npm install @hmscore/cordova-plugin-hms-account`*** <br>
```bash
cordova plugin add <hms_cordova_account_plugin_path>
```
b. Run the following command in the root directory of your Cordova project to install it manually after downloading the plugin.
5. Copy **`agconnect-services.json`** file to **`<project_root>/platforms/android/app`** directory.
***`npm install <CORDOVA_ACCOUNT_PLUGIN_PATH>`***
6. Add **`keystore(.jks)`** and **`build.json`** files to your project's root directory.
2. Check whether the Cordova Account SDK is successfully added to the node_modules directory.
- You can refer to 3rd and 4th steps of [Generating a Signing Certificate](https://developer.huawei.com/consumer/en/codelab/HMSPreparation/index.html#2) Codelab tutorial page for generating keystore file.
- Fill **`build.json`** file according to your keystore information. For example:
3. If you want full Ionic support with code completion etc, install"@ionic-native/core" in your project. <br>
```json
{
"android": {
"debug": {
"keystore": "<keystore_file>.jks",
"storePassword": "<keystore_password>",
"alias": "<key_alias>",
"password": "<key_password>"
},
"release": {
"keystore": "<keystore_file>.jks",
"storePassword": "<keystore_password>",
"alias": "<key_alias>",
"password": "<key_password>"
}
}
}
```
***`npm install @ionic-native/core --save`***
7. Update the widget **`id`** property which is specified in the **`config.xml`** file. It must be same with **client > package_name** value of the **`agconnect-services.json`** file.
4. Copy the "ionic/dist/hms-account" folder from library to "node_modules/@ionic-native" folder under your Ionic project.
8. Run the application.
5. Compile ionic project.
```bash
cordova run android --device
```
a. ***`ionic build`***
---
b. ***`npx cap init [appName] [appId]`***
> ***NOTE*** <br>
> where appName is the name of your app, and appId is package_name in your agconnect-services.json file (ex: com.example.app).
### 2.4. Ionic
6. Add a native platform to your project.
1. Install Ionic CLI.
***`ionic capacitor add android`***
```bash
npm install -g @ionic/cli
```
7. Make sure your project has a build.gradle file with a maven repository address and Account service dependencies.
2. Create a new Ionic project or use existing Ionic project.
8. Add agconnect-services.json and jks file to the app directory in your Android project.
- To create a new Ionic project, you can use **`ionic start <name> <template> [options]`** command. For more details please follow [ionic start - Ionic Documentation](https://ionicframework.com/docs/cli/commands/start).
9. To update dependencies, and copy any web assets to your project, add following code.
#### 2.4.1. With Cordova Runtime
***`npx capacitor sync`***
1. Enable the **Cordova integration** if haven't done before.
10. Then run the Ionic app.
***`ionic capacitor run android`***
```bash
ionic integrations enable cordova
```
2. Update the widget **`id`** property which is specified in the **`config.xml`** file. It must be same with **client > package_name** value of the **`agconnect-services.json`** file.
## 3. Cordova SDK API Method And Constant Definition
3. Add the **Android platform** to the project if haven't done before.
### Module Overview
```bash
ionic cordova platform add android
```
|Module |Definition |
|-------------------------------|-----------------------------|
`CommonTypes` | A module for providing common data types and constants. |
`HMSAccount` | A module for interacting with the Huawei Sign In API. |
`HMSHuaweiIdAuthManager` |A module is used to entry point for the Huawei Sign In API. |
`HMSHuaweiIdAuthTool` |A module for obtaining and clearing authorization information. |
`HMSNetworkTool` |A module is used to construct a cookie and a url with specific parameters.|
`HMSReadSMSManager` |A module for Huawei ID SMS Service.|
`HMSHuaweiIdAuthButton` |A module is used to processing the the visual elements of the button for sign in. |
4. Install `HMS Account Plugin` to the project. You can either install the plugin through `npm` or by `downloading from HMS Core Plugin page`.
a. Run the following command in the root directory of your project to install it through **npm**.
### HMSAccount
#### Functions
Return Type |Methods |Definition |
|---------------------|---------------------|-----------------------|
|Promise\<AuthHuaweiId\>|`signIn` |This API is called to sign in to the apps with HUAWEI IDs securely. |
|Promise\<void\>|`signOut` |This API is called to sign out of a HUAWEI ID from an app. |
|Promise\<void\>|`cancelAuthorization` |This API is called to cancel HUAWEI sign-in authorization.|
|Promise\<AuthHuaweiId\>|`silentSignIn` |This API is called to silent authorization. The API will not display the related page.|
```bash
ionic cordova plugin add @hmscore/cordova-plugin-hms-account
```
##### signIn (scope, param, scopeList)
b. Or download the plugin from [Plugin > Account Kit > Cordova Plugin](https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin) page and run the following command in the root directory of your project to **install it manually**.
```bash
ionic cordova plugin add <hms_cordova_account_plugin_path>
```
5. Copy **hms-account** folder from **`node_modules/@hmscore/cordova-plugin-hms-account/ionic/wrapper/dist`** directory to **`node_modules/@ionic-native`** directory.
6. Copy **`agconnect-services.json`** file to **`<project_root>/platforms/android/app`** directory.
7. Add **`keystore(.jks)`** and **`build.json`** files to your project's root directory.
- You can refer to 3rd and 4th steps of [Generating a Signing Certificate](https://developer.huawei.com/consumer/en/codelab/HMSPreparation/index.html#2) Codelab tutorial page for generating keystore file.
- Fill **`build.json`** file according to your keystore information. For example:
```json
{
"android": {
"debug": {
"keystore": "<keystore_file>.jks",
"storePassword": "<keystore_password>",
"alias": "<key_alias>",
"password": "<key_password>"
},
"release": {
"keystore": "<keystore_file>.jks",
"storePassword": "<keystore_password>",
"alias": "<key_alias>",
"password": "<key_password>"
}
}
}
```
8. Run the application.
```bash
ionic cordova run android --device
```
#### 2.4.2. With Capacitor Runtime
1. Enable the **Capacitor integration** if haven't done before.
```bash
ionic integrations enable capacitor
```
2. Update the widget **`appId`** property which is specified in the **`capacitor.config.json`** file. It must be same with **client > package_name** value of the **`agconnect-services.json`** file.
3. Install `HMS Account Plugin` to the project. You can either install the plugin through `npm` or by `downloading from HMS Core Plugin page`.
a. Run the following command in the root directory of your project to install it through **npm**.
```bash
npm install @hmscore/cordova-plugin-hms-account
```
b. Or download the plugin from [Plugin > Account Kit > Cordova Plugin](https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin) page and run the following command in the root directory of your project to **install it manually**.
```bash
npm install <hms_cordova_account_plugin_path>
```
4. Copy **hms-account** folder from **`node_modules/@hmscore/cordova-plugin-hms-account/ionic/wrapper/dist`** directory to **`node_modules/@ionic-native`** directory.
5. Build Ionic app to generate resource files.
```bash
ionic build
```
6. Add the **Android platform** to the project if haven't done before.
```bash
npx cap add android
```
7. Copy **`keystore(.jks)`** and **`agconnect-services.json`** files to **`<project_root>/android/app`** directory.
- You can refer to 3rd and 4th steps of [Generating a Signing Certificate](https://developer.huawei.com/consumer/en/codelab/HMSPreparation/index.html#2) Codelab tutorial page for generating keystore file.
8. Open the **`build.gradle`** file in the **`<project_root>/android/app`** directory.
- Add `signingConfigs` entry to **android** according to your keystore information.
- Enable `signingConfig` configuration to **debug** and **release** flavors.
- Apply `com.huawei.agconnect` plugin.
```groovy
...
android {
...
// Add signingConfigs according to your keystore information
signingConfigs {
config {
storeFile file('<keystore_file>.jks')
storePassword '<keystore_password>'
keyAlias '<key_alias>'
keyPassword '<key_password>'
}
}
buildTypes {
debug {
signingConfig signingConfigs.config // Enable signingConfig in debug flavor
}
release {
signingConfig signingConfigs.config // Enable signingConfig in release flavor
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
...
apply plugin: 'com.huawei.agconnect' // Apply com.huawei.agconnect plugin. This line must be added to the end of the file.
```
9. Open the **`build.gradle`** file in the **`<project_root>/android`** directory. Add **Huawei's maven repositories** and **agconnect classpath** to the file.
```groovy
buildscript {
repositories {
/*
<Other repositories>
*/
maven { url 'https://developer.huawei.com/repo/' }
}
dependencies {
/*
<Other dependencies>
*/
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
}
}
/*
<Other build.gradle entries>
*/
allprojects {
repositories {
/*
<Other repositories>
*/
maven { url 'https://developer.huawei.com/repo/' }
}
}
```
10. Open the project in Android Studio and run it.
```bash
npx cap open android
```
## 3. API Reference
## Module Overview
| Module | Description |
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [HMSCommonTypes](#constants) | A module for providing common data types and constants. |
| [HMSAccount](#hmsaccount) | A module for interacting with the Huawei Sign In API. |
| [HMSHuaweiIdAuthManager](#hmshuaweiIdauthmanager) | A module is used to entry point for the Huawei Sign In API. |
| [HMSHuaweiIdAuthTool](#hmshuaweiIdauthtool) | A module for obtaining and clearing authorization information. |
| [HMSNetworkTool](#hmsnetworkTool) | A module is used to construct a cookie and a url with specific parameters. |
| [HMSReadSMSManager](#hmsreadsmsmanager) | A module for Huawei ID SMS Service. |
| [HMSHuaweiIdAuthButton](#hmshuaweiIdauthbutton) | A module is used to processing the the visual elements of the button for sign in. |
## HMSAccount
### Public Method Summary
| Return Type | Methods | Definition |
| ---------------------------------------- | --------------------- | -------------------------------------------------------------------------------------- |
| Promise\<[AuthHuaweiId](#authhuaweiid)\> | `signIn` | This API is called to sign in to the apps with HUAWEI IDs securely. |
| Promise\<void\> | `signOut` | This API is called to sign out of a HUAWEI ID from an app. |
| Promise\<void\> | `cancelAuthorization` | This API is called to cancel HUAWEI sign-in authorization. |
| Promise\<[AuthHuaweiId](#authhuaweiid)\> | `silentSignIn` | This API is called to silent authorization. The API will not display the related page. |
| void | `enableLogger` | This API is used to activating a logger that is for sending some statistics for the development of functions. |
| void | `disableLogger` | This API is used to disable a logger that is for sending some statistics for the development of functions. |
### Public Methods
### signIn
This API is called for HUAWEI sign-in.
Parameter| Type | Description |
|----------------|----------|-----------|
| scope | ScopeConstants[]| ScopeConstants array to customize the authorization.
| param | HuaweiIdAuthParams| Authorization scope parameter to customize the authorization.
| scopeList | ScopeURI[]| ScopeURI array to customize the authorization. If this value not passed to API, an empty array will be send.
<br>
| Parameter | Type | Definition |
| ---------- | ---------- | ---------------- |
| signInData | [SignInData](#signindata)] | Signin settings. |
Return | Description|
|----------------|---------------------|
| Promise\<AuthHuaweiId\> | If the operation is successful, promise resolves to a AuthHuaweiId object. Otherwise it throws an error. |
| Return | Definition |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| Promise\<[AuthHuaweiId](#authhuaweiid)\> | If the operation is successful, promise resolves to a AuthHuaweiId object. Otherwise it throws an error. |
##### signOut()
#### Call Example
```javascript
const signInParameters = {
authRequestOption: [HMSCommonTypes.AuthRequestOption.SCOPE_ID_TOKEN],
authParam: HMSCommonTypes.HuaweiIdAuthParams.DEFAULT_AUTH_REQUEST_PARAM
}
try {
const res = await HMSAccount.signIn(signInParameters);
alert(JSON.stringify(res));
} catch (ex) {
alert(JSON.stringify(ex));
}
```
#### Example Result
```javascript
{"accessToken":"","displayName":"account@***.com","email":"account@***.com","familyName":"","givenName":"","authorizationCode":"DQB6e3******","avatarUriString":"","expressionTimeSecs":0,"gender":-1,"describeContentsInAuthHuaweiId":0,"status":0,"authorizedScopes":["openid","profile"],"extensionScopes":[],"account":{"type":"com.huawei","name":"account@***.com"}}
```
### signOut
This API is called to sign out of a HUAWEI ID from an app. After sign-out, the HMS SDK deletes the cached HUAWEI ID information.
Return | Description|
|----------------|---------------------|
| Promise\<void\> | If the operation is successful, promise will resolve successfully. Otherwise it throws an error.|
| Return | Definition |
| --------------- | ------------------------------------------------------------------------------------------------ |
| Promise\<void\> | If the operation is successful, promise will resolve successfully. Otherwise it throws an error. |
##### cancelAuthorization()
#### Call Example
```javascript
try {
await HMSAccount.signOut();
alert("signOut -> success");
} catch (ex) {
alert('signOut -> Error : ' + JSON.stringify(ex));
}
```
### cancelAuthorization
This API is called to cancel HUAWEI sign-in authorization.
Return | Description|
|----------------|---------------------|
Promise\<void\>| If the operation is successful, promise will resolve successfully. Otherwise it throws an error.|
| Return | Definition |
| --------------- | ------------------------------------------------------------------------------------------------ |
| Promise\<void\> | If the operation is successful, promise will resolve successfully. Otherwise it throws an error. |
##### silentSignIn()
#### Call Example
```javascript
try {
await HMSAccount.cancelAuthorization();
alert("cancelAuthorization -> success");
} catch (ex) {
alert('cancelAuthorization -> Error : ' + JSON.stringify(ex));
}
```
### silentSignIn
This API is called to return the information (or error information) about the HUAWEI ID used by a user who has signed in to an app. During this process, no user page will be displayed to the HUAWEI ID user.
Return | Description|
|----------------|---------------------|
Promise\<AuthHuaweiId\> | If the operation is successful, promise resolves to a AuthHuaweiId object. Otherwise it throws an error. |
| Parameter | Type | Definition |
| --------- | ----------------------------------------- | ------------------------------------------------------------- |
| authParam | [HuaweiIdAuthParams](#huaweiidauthparams) | Authorization scope parameter to customize the authorization. |
### HMSHuaweiIdAuthManager
| Return | Definition |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| Promise\<[AuthHuaweiId](#authhuaweiid)\> | If the operation is successful, promise resolves to a AuthHuaweiId object. Otherwise it throws an error. |
#### Functions
Return Type |Methods |Definition |
|----------------|---------------|-----------------------|
|Promise\<void\>|`addAuthScopes` |This API is called to request the permission specified by scopeList from a HUAWEI ID. |
|Promise\<ContainScopesResult\>|`containScopes` |This API is called to check whether the user with the designated HUAWEI ID has been assigned all permissions specified by scopeList. |
|Promise\<AuthHuaweiId\>|`getAuthResultWithScope` |This API is called to obtain the AuthHuaweiId instance. |
|Promise\<AuthHuaweiId\>|`getAuthResult` |This API is called to obtain the latest authorization information. |
#### Call Example
##### addAuthScopes(requestCode, scopeList)
```javascript
try {
const authParam = HMSCommonTypes.HuaweiIdAuthParams.DEFAULT_AUTH_REQUEST_PARAM;
const res = await HMSAccount.silentSignIn(authParam);
alert("silentSignIn -> success :" + JSON.stringify(res));
} catch (ex) {
alert('silentSignIn -> Error : ' + JSON.stringify(ex));
}
```
#### Example Result
```javascript
{"accessToken":"","displayName":"account@***.com","familyName":"","givenName":"","unionId":"MDEC*****","avatarUriString":"","expressionTimeSecs":0,"openId":"MDF***","gender":-1,"describeContentsInAuthHuaweiId":0,"status":0,"authorizedScopes":["openid","profile"],"extensionScopes":[]}
```
### enableLogger
Enables HMS Logger.
| Return | Definition |
| --------------- | ------------------------------------------------------------------------------------ |
| Promise\<void\> | If the operation is successful, a logger is activated. Otherwise it throws an error. |
#### Call Example
```javascript
try {
await HMSAccount.enableLogger();
alert("enableLogger -> success");
} catch (ex) {
alert('enableLogger -> Error : ' + JSON.stringify(ex));
```
### disableLogger
Disables HMS Logger.
| Return | Definition |
| --------------- | ----------------------------------------------------------------------------------- |
| Promise\<void\> | If the operation is successful, a logger is disabled. Otherwise it throws an error. |
#### Call Example
```javascript
try {
await HMSAccount.disableLogger();
alert("disableLogger -> success");
} catch (ex) {
alert('disableLogger -> Error : ' + JSON.stringify(ex));
```
## HMSHuaweiIdAuthManager
### Public Method Summary
| Return Type | Methods | Definition |
| ------------------------------------------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Promise\<void\> | `addAuthScopes` | This API is called to request the permission specified by scopeList from a HUAWEI ID. |
| Promise\<[ContainScopesResult](#containscopesresult)\> | `containScopes` | This API is called to check whether the user with the designated HUAWEI ID has been assigned all permissions specified by scopeList. |
| Promise\<[AuthHuaweiId](#authhuaweiid)\> | `getAuthResultWithScope` | This API is called to obtain the AuthHuaweiId instance. |
| Promise\<[AuthHuaweiId](#authhuaweiid)\> | `getAuthResult` | This API is called to obtain the latest authorization information. |
### Public Methods
### addAuthScopes
This API is called to request the permission specified by scopeList from a HUAWEI ID.
Parameter| Type | Description |
|----------------|----------|-----------|
| requestCode |Integer| Request Id.|
|scopeList|ScopeURI[]| Authorization scope list.|
| Parameter | Type | Definition |
| ----------- | --------------------------------- | ------------------------- |
| requestCode | number | Request Id. |
| scopeList | [AuthScopeList](#authscopelist)[] | Authorization scope list. |
<br>
| Return Type | Definition |
| --------------- | ------------------------------------------------------------------------------------------------ |
| Promise\<void\> | If the operation is successful, promise will resolve successfully. Otherwise it throws an error. |
|Return Type |Description|
|----------------|-----------------------|
|Promise\<void\>| If the operation is successful, promise will resolve successfully. Otherwise it throws an error.|
#### Call Example
##### containScopes(authHuaweiId, scopeList)
```javascript
const scopeList = [HMSCommonTypes.AuthScopeList.EMAIL, HMSCommonTypes.AuthScopeList.PROFILE];
try {
const res = await HMSHuaweiIdAuthManager.addAuthScopes(8888, scopeList);
alert("addAuthScopes -> success " + JSON.stringify(res));
console.log(JSON.stringify(res));
} catch (ex) {
alert('addAuthScopes -> Error : ' + JSON.stringify(ex));
}
```
### containScopes
This API is called to checks whether the designated HUAWEI ID has been assigned all permissions specified by scopeList.
| Parameter| Type | Description |
|-----------|----------|-----------|
| authHuaweiId | AuthHuaweiIdBuilder | Authorized HUAWEI ID information. |
| scopeList | ScopeURI[] | Authorization scope list. |
| Parameter | Type | Definition |
| ------------ | ------------------------------------------- | --------------------------------- |
| authHuaweiId | [AuthHuaweiIdBuilder](#authhuaweiidbuilder) | Authorized HUAWEI ID information. |
| scopeList | [AuthScopeList](#authscopelist)[] | Authorization scope list. |
<br>
| Return | Definition |
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Promise\<[ContainScopesResult](#containscopesresult)\> | If the operation is successful, promise resolves to an object that contains boolean result, like {"containScopes": false }. Otherwise it throws an error. |
Return |Description |
|----------------|-------------------|
|Promise\<ContainScopesResult\> | If the operation is successful, promise resolves to an object that contains boolean result, like {"containScopes": false }. Otherwise it throws an error. |
#### Call Example
##### getAuthResultWithScope(scopeList)
```javascript
const authHuaweiId = {
"openId": "MDFQ***",
"uid": "",
"displayName": "+90***",
"photoUrl": "",
"accessToken": "",
"serviceCountryCode": "",
"status": 0,
"gender": HMSCommonTypes.Gender.UNKNOWN,
"serverAuthCode": "",
"unionId": "MDHn***",
"countryCode": "",
"scopes": [HMSCommonTypes.AuthScopeList.EMAIL]
};
const scopeList = [HMSCommonTypes.AuthScopeList.EMAIL, HMSCommonTypes.AuthScopeList.PROFILE];
try {
const res = await HMSHuaweiIdAuthManager.containScopes(authHuaweiId, scopeList);
alert("containScopes -> success " + JSON.stringify(res));
} catch (ex) {
alert('containScopes -> Error : ' + JSON.stringify(ex));
}
```
#### Call Result
```javascript
{"containScopes": false}
```
### getAuthResultWithScope
This API is called to obtain the AuthHuaweiId.
Parameter| Type | Description |
|----------------|----------|-----------|
|scopeList| ScopeList[]| Authorization scope list.|
| Parameter | Type | Definition |
| --------- | --------------------------------- | ------------------------- |
| scopeList | [AuthScopeList](#authscopelist)[] | Authorization scope list. |
<br>
| Return | Definition |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| Promise\<[AuthHuaweiId](#authhuaweiid)\> | If the operation is successful, promise resolves to a AuthHuaweiId object. Otherwise it throws an error. |
Return | Description |
|----------------|-------------------|
| Promise\<AuthHuaweiId\> | If the operation is successful, promise resolves to a AuthHuaweiId object. Otherwise it throws an error. |
#### Call Example
##### getAuthResult()
```javascript
const scopeList = [HMSCommonTypes.AuthScopeList.EMAIL, HMSCommonTypes.AuthScopeList.PROFILE];
try {
const res = await HMSHuaweiIdAuthManager.getAuthResultWithScope(scopeList);
alert("getAuthResultWithScope -> success " + JSON.stringify(res));
} catch (ex) {
alert('getAuthResultWithScope -> Error : ' + JSON.stringify(ex));
}
```
#### Call Result
```javascript
{"accessToken":"CgB6****","displayName":"account@***.com","familyName":"","givenName":"","idToken":"eyJr***","unionId":"MDE***","avatarUriString":"","expressionTimeSecs":0,"openId":"MDF***","gender":-1,"describeContentsInAuthHuaweiId":0,"status":0,"authorizedScopes":["openid","profile"],"extensionScopes":["profile","email"]}
```
### getAuthResult()
This API is called to obtain information about the HUAWEI ID used for the previous sign-in and authorization.
Return | Description |
|----------------|-------------------|
| Promise\<AuthHuaweiId\> | If the operation is successful, promise resolves to a AuthHuaweiId object. Otherwise it throws an error.|
| Return | Definition |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| Promise\<[AuthHuaweiId](#authhuaweiid)\> | If the operation is successful, promise resolves to a AuthHuaweiId object. Otherwise it throws an error. |
### HMSHuaweiIdAuthTool
#### Functions
Return Type |Methods |Definition |
|----------------|---------------------|-----------------------|
|Promise\<String\>|`requestUnionId` |This API is called to obtain a unionId. |
|Promise\<String\>|`requestAccessToken` |This API is called to obtain a token.|
|Promise\<void\>|`deleteAuthInfo` |This API is called to clear the local cache. |
#### Call Example
##### requestUnionId(huaweiAccountName)
```javascript
try {
const res = await HMSHuaweiIdAuthManager.getAuthResult();
alert("getAuthResult -> success " + JSON.stringify(res));
console.log(JSON.stringify(res));
} catch (ex) {
alert('getAuthResult -> Error : ' + JSON.stringify(ex));
}
```
#### Call Result
```javascript
{"accessToken":"CgB***","displayName":"account@****.com","familyName":"","givenName":"","idToken":"eyJ***","unionId":"MDE***","avatarUriString":"","expressionTimeSecs":0,"openId":"MDF***","gender":-1,"describeContentsInAuthHuaweiId":0,"status":0,"authorizedScopes":["openid","profile"],"extensionScopes":[]}
```
## HMSHuaweiIdAuthTool
### Public Method Summary
| Return Type | Methods | Definition |
| ----------------- | ---------------------------------------- | -------------------------------------------- |
| Promise\<string\> | `requestUnionId` | This API is called to obtain a unionId. |
| Promise\<string\> | `requestAccessToken` | This API is called to obtain a token. |
| Promise\<void\> | `deleteAuthInfo` | This API is called to clear the local cache. |
### Public Methods
### requestUnionId
Obtains a unionId.
|Parameter| Type | Description |
|----------------|----------|-----------|
|huaweiAccountName | String| HUAWEI ID Name.|
| Parameter | Type | Definition |
| ----------------- | ------ | --------------- |
| huaweiAccountName | string | HUAWEI ID Name. |
<br>
| Return | Definition |
| ----------------- | ------------------------------------------------------------------------------------------------------------------ |
| Promise\<string\> | If the operation is successful, promise resolves to a string that contains union id. Otherwise it throws an error. |
|Return |Description|
|----------------|-----------------------|
| Promise\<String\> | If the operation is successful, promise resolves to a String that contains union id. Otherwise it throws an error.|
#### Call Example
##### requestAccessToken(account, scopeList)
```javascript
try {
const res = await HMSHuaweiIdAuthTool.requestUnionId("account@***.com");
alert("requestUnionId -> success " + JSON.stringify(res));
console.log(JSON.stringify(res));
} catch (ex) {
alert('requestUnionId -> Error : ' + JSON.stringify(ex));
}
```
#### Call Result
```javascript
"MDE***"
```
### requestAccessToken
Obtains a token.
| Parameter| Type | Description |
|------------|----------|-----------|
| account | Account | HUAWEI ID for which you need to obtain a token. It contains name and type properties.|
| scopeList| ScopeURI[] | HUAWEI ID authorization scope.|
| Parameter | Type | Definition |
| --------- | --------------------------------- | ------------------------------------------------------------------------------------- |
| account | [Account](#account) | HUAWEI ID for which you need to obtain a token. It contains name and type properties. |
| scopeList | [AuthScopeList](#authscopelist)[] | HUAWEI ID authorization scope. |
<br>
| Return | Definition |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Promise\<string\> | If the operation is successful, promise resolves to a string that contains a access token. Otherwise it throws an error. |
| Return | Description |
|--------------|---------------|
Promise\<String\> | If the operation is successful, promise resolves to a String that contains a access token. Otherwise it throws an error.|
#### Call Example
##### deleteAuthInfo(accessToken)
```javascript
const account = {
"type": "com.huawei.hwid",
"name": "account@***.com"
}
const scopeList = [HMSCommonTypes.AuthScopeList.PROFILE];
try {
const res = await HMSHuaweiIdAuthTool.requestAccessToken(account, scopeList);
alert("requestAccessToken -> success " + JSON.stringify(res));
console.log(JSON.stringify(res));
} catch (ex) {
alert('requestAccessToken -> Error : ' + JSON.stringify(ex));
}
```
#### Call Result
```javascript
"CgB***"
```
### deleteAuthInfo
Clears the local cache.
| Parameter| Type | Description |
|----------------|----------|-----------|
|accessToken | String| Token to be clear. |
| Parameter | Type | Definition |
| ----------- | ------ | ------------------ |
| accessToken | string | Token to be clear. |
<br>
| Return | Definition |
| --------------- | ------------------------------------------------------------------------------------------------ |
| Promise\<void\> | If the operation is successful, promise will resolve successfully. Otherwise it throws an error. |
|Return |Description |
|----------------|-----------------------|
|Promise\<void\>|If the operation is successful, promise will resolve successfully. Otherwise it throws an error.|
### Call Example
### HMSNetworkTool
```javascript
try {
const res = await HMSHuaweiIdAuthTool.deleteAuthInfo("access_token_info");
alert("deleteAuthInfo -> success " + JSON.stringify(res));
console.log(JSON.stringify(res));
} catch (ex) {
alert('deleteAuthInfo -> Error : ' + JSON.stringify(ex));
}
```
#### Functions
| Return Type |Methods |Definition |
|----------------|---------------------|-----------------------|
|Promise\<String\>|`buildNetworkCookie` |This API is called to construct a cookie by combining input values. |
|Promise\<String\>|`buildNetworkURL` |This API is called to cookie url based on the domain name and isUseHttps.|
## HMSNetworkTool
### Public Method Summary
##### buildNetworkCookie(cookie)
| Return Type | Methods | Definition |
| ----------------- | ----------------------------- | ------------------------------------------------------------------------- |
| Promise\<string\> | `buildNetworkCookie` | This API is called to construct a cookie by combining input values. |
| Promise\<string\> | `buildNetworkURL` | This API is called to cookie url based on the domain name and isUseHttps. |
### Public Methods
### buildNetworkCookie
Constructs a cookie by combining input values.
| Parameter| Type | Description |
|----------------|----------|-----------|
| cookie| Cookie| It is an object that contains cookieName, cookieValue, domain, path, isHttpOnly, isSecure, maxAge. |
| Parameter | Type | Definition |
| --------- | ----------------- | -------------------------------------------------------------------------------------------------- |
| cookie | [Cookie](#cookie) | It is an object that contains cookieName, cookieValue, domain, path, isHttpOnly, isSecure, maxAge. |
<br>
| Return | Definition |
| ----------------- | ------------------------------------------------------------------------------------------------------------------ |
| Promise\<string\> | If the operation is successful, promise resolves to a string that contains a cookie. Otherwise it throws an error. |
| Return| Description |
|----------------|-----------------------|
|Promise\<String\> |If the operation is successful, promise resolves to a String that contains a cookie. Otherwise it throws an error. |
#### Call Example
```javascript
const param = {
"cookieName": "hello",
"cookieValue": "world",
"domain": "www.demo.com",
"path": "/demo",
"isHttpOnly": true,
"isSecure": true,
"maxAge": 10
};
##### buildNetworkURL(domainInfo)
try {
const res = await HMSNetworkTool.buildNetworkCookie(param);
alert("buildNetworkCookie -> success " + JSON.stringify(res));
console.log(JSON.stringify(res));
} catch (ex) {
alert('buildNetworkCookie -> Error : ' + JSON.stringify(ex));
}
```
#### Call Result
```javascript
"hello=world;HttpOnly;Secure;Domain=www.demo.com;Path=/demo;Max-Age=10"
```
### buildNetworkURL
Returns cookie url based on the domain name and isUseHttps.
| Parameter| Type | Description |
|----------------|----------|-----------|
|domainInfo| DomainInfo| The parameter that contains a domain name and isUseHttps info. |
| Parameter | Type | Definition |
| ---------- | ------------------------- | -------------------------------------------------------------- |
| domainInfo | [DomainInfo](#domaininfo) | The parameter that contains a domain name and isUseHttps info. |
<br>
| Return | Definition |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Promise\<string\> | If the operation is successful, promise resolves to a string that contains a cookie url. Otherwise it throws an error. |
| Return|Description|
|----------------|-----------------------|
|Promise\<String\>| If the operation is successful, promise resolves to a String that contains a cookie url. Otherwise it throws an error.|
#### Call Example
### HMSReadSMSManager
```javascript
const params = {
"domain": "www.demo.com",
"isUseHttps": true
};
#### Functions
| Return Type |Methods |Definition |
|----------------|---------------------|-----------------------|
|Promise\<String\>| `smsVerificationCode` |This API is called to enable the service of reading SMS messages until the SMS messages that meet the rules (Timeout five minutes). |
|Promise\<String\>| `obtainHashCode` |This API is called to obtain hash code. |
try {
const res = await HMSNetworkTool.buildNetworkURL(params);
alert("buildNetworkURL -> success " + JSON.stringify(res));
} catch (ex) {
alert('buildNetworkURL -> Error : ' + JSON.stringify(ex));
}
```
##### smsVerificationCode()
With this function,app can automatically retrieve SMS verification codes without requesting the permission of reading SMS messages. In case of get SMS Message, returned the SMS Message.
#### Call Result
| Return |Description|
|----------------|---------------------|
|Promise\<String\>| If the operation is successful, promise resolves to a String that contains a content of SMS. Otherwise it throws an error.|
```javascript
"https://www.demo.com"
```
##### obtainHashCode()
## HMSReadSMSManager
### Public Method Summary
| Return Type | Methods | Definition |
| ----------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Promise\<string\> | `smsVerificationCode` | This API is called to enable the service of reading SMS messages until the SMS messages that meet the rules (Timeout five minutes). |
| Promise\<string\> | `obtainHashCode` | This API is called to obtain hash code. |
### Public Methods
### smsVerificationCode
With this function, app can automatically retrieve SMS verification codes without requesting the permission of reading SMS messages. In case of get SMS Message, returned the SMS Message.
| Return | Definition |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Promise\<string\> | If the operation is successful, promise resolves to a string that contains a content of SMS. Otherwise it throws an error. |
#### Call Example
```javascript
try {
const res = await HMSReadSMSManager.smsVerificationCode();
alert("smsVerificationCode -> success :" + JSON.stringify(res));
console.log(JSON.stringify(res));
} catch (ex) {
alert('smsVerificationCode -> Error : ' + JSON.stringify(ex));
}
```
#### Call Result
```javascript
"<#> Account Kit Test Verification code is 123456 Wc1***"
```
### obtainHashCode
Obtains hash code which indicates the hash value generated by the HMS SDK based on app package name to uniquely identify app.
| Return |Description|
|----------------|-------------------|
|Promise\<String\>|If the operation is successful, promise resolves to a String that contains a hash value. Otherwise it throws an error.|
| Return | Definition |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Promise\<string\> | If the operation is successful, promise resolves to a string that contains a hash value. Otherwise it throws an error. |
### HMSHuaweiIdAuthButton
#### Call Example
#### Functions
| Return Type |Methods |Definition |
|----------------|---------------------|-----------------------|
| void | `getHuaweiIdAuthButton` |This API is called to creating a specific button for login. |
```javascript
try {
const res = await HMSReadSMSManager.obtainHashCode();
alert("obtainHashCode -> success " + JSON.stringify(res));
} catch (ex) {
alert('obtainHashCode -> Error : ' + JSON.stringify(ex));
}
```
##### getHuaweiIdAuthButton(buttonId, theme, colorPolicy, cornerRadius)
#### Call Result
```javascript
"W1c***"
```
## HMSHuaweiIdAuthButton
### Public Method Summary
| Return Type | Methods | Definition |
| ----------- | ------------------------------------------------------------------- | ----------------------------------------------------------- |
| void | `getHuaweiIdAuthButton` | This API is called to creating a specific button for login. |
### Public Methods
### getHuaweiIdAuthButton
Authenticates user identities. Note that this class only processes the the visual elements of the button.
| Parameter| Type |Description |
|-------|---------|-----------|
|buttonId|String|Id of div that is used for HuaweiIdAuthButton.|
|theme|Theme|Button theme|
|colorPolicy|ColorPolicy| Values indicates button colors|
|cornerRadius|CornerRadius|Values indicates button corner types|
| Parameter | Type | Definition |
| ------------ | ------------ | ---------------------------------------------- |
| buttonId | string | Id of div that is used for HuaweiIdAuthButton. |
| theme | Theme | Button theme |
| colorPolicy | ColorPolicy | Values indicates button colors |
| cornerRadius | CornerRadius | Values indicates button corner types |
### Constants
#### Call Example
|Name |Definition |
|----------------|---------------------|
| `CommonTypes.ScopeConstants` | Provides scopes to request a Huawei ID user. |
| `CommonTypes.HuaweiIdAuthParams` | Provides default HuaweiID authorization parameters. |
| `CommonTypes.ScopeURI` | Provides authorization scopes. |
| `CommonTypes.Gender` | Provides gender information. |
| `HMSHuaweiIdAuthButton.Theme` | Provides themes to set theme of the button. |
| `HMSHuaweiIdAuthButton.ColorPolicy` | Provides colors to set color of the button. |
```javascript
const edittedButton = "btn_auth_button";
HMSHuaweiIdAuthButton.getHuaweiIdAuthButton(edittedButton,
HMSHuaweiIdAuthButton.Theme.THEME_FULL_TITLE,
HMSHuaweiIdAuthButton.ColorPolicy.COLOR_POLICY_RED,
HMSHuaweiIdAuthButton.CornerRadius.CORNER_RADIUS_LARGE);
```
## Constants
| Name | Definition |
| ------------------------------------ | ------------------------------------------------------------------ |
| `HMSCommonTypes.AuthRequestOption` | Provides scopes to request a Huawei ID user. |
| `HMSCommonTypes.HuaweiIdAuthParams` | Provides default HuaweiID authorization parameters. |
| `HMSCommonTypes.AuthScopeList` | Provides authorization scopes. |
| `HMSCommonTypes.Gender` | Provides gender information. |
| `HMSCommonTypes.ErrorCodes` | Provides result codes. |
| `HMSHuaweiIdAuthButton.Theme` | Provides themes to set theme of the button. |
| `HMSHuaweiIdAuthButton.ColorPolicy` | Provides colors to set color of the button. |
| `HMSHuaweiIdAuthButton.CornerRadius` | Provides corner radiueses to set corner radius size of the button. |
##### ScopeConstants
### AuthRequestOption
Constant Fields |Value | Definition |
|----------------|---------------------|---------------------|
| `SCOPE_PROFILE` | "profile" |Requests a HUAWEI ID user to authorize profile information to an app. |
| `SCOPE_ID_TOKEN` | "idToken" |Requests a HUAWEI ID user to authorize ID token to an app. |
| `SCOPE_ACCESS_TOKEN`| "accessToken" | Requests a HUAWEI ID user to authorize access token to an app. |
| `SCOPE_MOBILE_NUMBER`| "mobileNumber" | Requests a HUAWEI ID user to authorize mobile number to an app. |
| `SCOPE_EMAIL` | "email" | Requests a HUAWEI ID user to authorize email address to an app. |
| `SCOPE_SHIPPING_ADDRESS`| "shippingAddress" | Requests a HUAWEI ID user to authorize shipping address to an app. |
| `SCOPE_UID` | "uid" | Requests a HUAWEI ID user to authorize uid token to an app. |
| `SCOPE_ID` | "id" | Requests a HUAWEI ID user to authorize ID to an app.|
| `SCOPE_AUTHORIZATION_CODE` | "authorizationCode" | Requests a HUAWEI ID user to authorize authorization code to an app. |
| Constant Fields | Value | Definition |
| -------------------------- | ------------------- | --------------------------------------------------------------------- |
| `SCOPE_PROFILE` | "profile" | Requests a HUAWEI ID user to authorize profile information to an app. |
| `SCOPE_ID_TOKEN` | "idToken" | Requests a HUAWEI ID user to authorize ID token to an app. |
| `SCOPE_ACCESS_TOKEN` | "accessToken" | Requests a HUAWEI ID user to authorize access token to an app. |
| `SCOPE_EMAIL` | "email" | Requests a HUAWEI ID user to authorize email address to an app. |
| `SCOPE_ID` | "id" | Requests a HUAWEI ID user to authorize ID to an app. |
| `SCOPE_AUTHORIZATION_CODE` | "authorizationCode" | Requests a HUAWEI ID user to authorize authorization code to an app. |
##### HuaweiIdAuthParams
### HuaweiIdAuthParams
Constant Fields | Value | Definition|
|----------------|---------------------|---------------------|
| `DEFAULT_AUTH_REQUEST_PARAM` | "param" |Exposes HuaweiIdAuthParam.DEFAULT_AUTH_REQUEST_PARAM. Default authorization parameter of an AppTouch ID.|
| `DEFAULT_AUTH_REQUEST_PARAM_GAME` | "game" |Exposes HuaweiIdAuthParam.DEFAULT_AUTH_REQUEST_PARAM_GAME. Default authorization parameter of a game.|
| Constant Fields | Value | Definition |
| --------------------------------- | --------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `DEFAULT_AUTH_REQUEST_PARAM` | "DEFAULT_AUTH_REQUEST_PARAM" | Exposes HuaweiIdAuthParam.DEFAULT_AUTH_REQUEST_PARAM. Default authorization parameter of an AppTouch ID. |
| `DEFAULT_AUTH_REQUEST_PARAM_GAME` | "DEFAULT_AUTH_REQUEST_PARAM_GAME" | Exposes HuaweiIdAuthParam.DEFAULT_AUTH_REQUEST_PARAM_GAME. Default authorization parameter of a game. |
##### ScopeURI
### AuthScopeList
| Constant Fields | Value | Definition|
|----------------|---------------------|---------------------|
| `GAME` | "https://www.huawei.com/auth/games" |Value to specify game scope.|
| `OPENID` | "openid" |Value to specify openid scope.|
| `EMAIL` | "email"|Value to specify email scope.|
| `PROFILE` | "profile" |Value to specify profile scope.|
| Constant Fields | Value | Definition |
| --------------- | ----------------------------------- | ------------------------------- |
| `GAME` | "https://www.huawei.com/auth/games" | Value to specify game scope. |
| `OPENID` | "openid" | Value to specify openid scope. |
| `EMAIL` | "email" | Value to specify email scope. |
| `PROFILE` | "profile" | Value to specify profile scope. |
##### Gender
### Gender
|Constant Fields|Value| Definition|
|---|---|---|
|`UNKNOWN`|-1| Unkown|
|`MALE`|0| Male|
|`FEMALE`|1| Female|
|`CONFIDENTIAL`|2| Confidential|
| Constant Fields | Value | Definition |
| --------------- | ----- | ------------ |
| `UNKNOWN` | -1 | Unkown |
| `MALE` | 0 | Male |
| `FEMALE` | 1 | Female |
| `CONFIDENTIAL` | 2 | Confidential |
##### Theme
### Theme
|Constant Fields|Value|Definition|
|---|---|---|
|`THEME_NO_TITLE`|0|Button without any title.|
|`THEME_FULL_TITLE`|1|Button with an icon and a title.|
| Constant Fields | Value | Definition |
| ------------------ | ----- | -------------------------------- |
| `THEME_NO_TITLE` | 0 | Button without any title. |
| `THEME_FULL_TITLE` | 1 | Button with an icon and a title. |
##### ColorPolicy
### ColorPolicy
|Constant Fields|Value|Definition|
|---|---|---|
|`COLOR_POLICY_BLUE`|0|Blue button.|
|`COLOR_POLICY_RED`|1|Red button.|
|`COLOR_POLICY_WHITE`|2|White button.|
|`COLOR_POLICY_WHITE_WITH_BORDER`|3|White button with strokes.|
|`COLOR_POLICY_BLACK`|4|Black button.|
|`COLOR_POLICY_GRAY`|5|Gray button.|
| Constant Fields | Value | Definition |
| -------------------------------- | ----- | -------------------------- |
| `COLOR_POLICY_BLUE` | 0 | Blue button. |
| `COLOR_POLICY_RED` | 1 | Red button. |
| `COLOR_POLICY_WHITE` | 2 | White button. |
| `COLOR_POLICY_WHITE_WITH_BORDER` | 3 | White button with strokes. |
| `COLOR_POLICY_BLACK` | 4 | Black button. |
| `COLOR_POLICY_GRAY` | 5 | Gray button. |
##### CornerRadius
### CornerRadius
|Constant Fields|Value|Definition|
|---|---|---|
|`CORNER_RADIUS_LARGE`|-1|Button with large rounded corners.|
|`CORNER_RADIUS_MEDIUM`|-2|Button with medium-sized rounded corners.|
|`CORNER_RADIUS_SMALL`|-3|Button with small rounded corners|
| Constant Fields | Value | Definition |
| ---------------------- | ----- | ----------------------------------------- |
| `CORNER_RADIUS_LARGE` | -1 | Button with large rounded corners. |
| `CORNER_RADIUS_MEDIUM` | -2 | Button with medium-sized rounded corners. |
| `CORNER_RADIUS_SMALL` | -3 | Button with small rounded corners |
### Data Types
### ErrorCodes
#### AuthHuaweiIdBuilder
|Field Name| Type| Description |
|--------------|-----|---------|
openId|String|openId.
|uid |String|uid.
displayName|String|Nickname.
photoUrl|String|Obtains the picture url.
accessToken|String|Access token.
|serviceCountryCode|String|Service country code.
status|Integer|User status. 1: Normal; 2: Dbank suspended; 3: Deregistered, 4: All services are suspended.
gender|Gender|User Gender.
scopes|ScopeURI[]|Authorized scopes.
serverAuthCode|String|serverAuthCode.
unionId|String|unionId.
countryCode|String|Registration country code.
| Constant Fields | Value | Definition |
| -------------------------------- | ----- | ------------------------------- |
| `HuaweiIdAuthException` | "503" | An authentication error occurs. |
#### AuthHuaweiId
|Field|Type|Description|
|---|---|---|
|accessToken|String|Access token.|
|displayName|String|Nickname.|
|email|String|Email adress. |
|familyName|String|Family name. |
|givenName|String|Given name. |
|idToken|String|ID Token |
|unionId|String|unionId |
|avatarUriString|String|Profile picture URI |
|expressionTimeSecs|Number|expressionTimeSecs |
|openId|String|openId|
|uid|String|uid |
|countryCode|String|Registration country code.|
|serviceCountryCode|String|Service country code.|
|status|Number|User status. 1: Normal; 2: Dbank suspended; 3: Deregistered, 4: All services are suspended.
|gender|Gender|User Gender.
|describeContentsInAuthHuaweiId|Number|describeContentsInAuthHuaweiId |
|authorizedScopes|String[]|Authorized Scopes |
|extensionScopes|String[]|extensionScopes |
|authorizationCode|String|authorizationCode|
|huaweiAccount|Account|huaweiAccount |
## Data Types
#### Account
|Field Name| Type| Description |
|--------------|-----|---------|
|type|String|Type of HUAWEI ID Account.
|name|String|Name of the HUAWEI ID Account.|
### AuthHuaweiIdBuilder
#### Cookie
|Field Name| Type| Description |
|--------------|-----|---------|
|cookieName|String|Cookie name.|
cookieValue|String|Cookie value.
|domain|String|Cookie domain name.
|path|String|Page path for accessing the cookie.
|isHttpOnly|Boolean|Value true indicates that the cookie information is contained only in the HTTP request header and cannot be accessed through document.cookie.
|isSecure|Boolean|Value true indicates that the cookie can be transmitted only through HTTPS, and value false indicates that the cookie can be transmitted through HTTP.
|maxAge|Long|Cookie lifetime, in seconds.
| Field Name | Type | Definition |
| ------------------ | --------------- | ------------------------------------------------------------------------------------------- |
| openId | string | openId. |
| uid | string | uid. |
| displayName | string | Nickname. |
| photoUrl | string | Obtains the picture url. |
| accessToken | string | Access token. |
| serviceCountryCode | string | Service country code. |
| status | number | User status. 1: Normal; 2: Dbank suspended; 3: Deregistered, 4: All services are suspended. |
| gender | Gender | User Gender. |
| scopes | AuthScopeList[] | Authorized scopes. |
| serverAuthCode | string | serverAuthCode. |
| unionId | string | unionId. |
| countryCode | string | Registration country code. |
#### DomainInfo
|Field Name| Type| Description |
|--------------|-----|---------|
|domain|String|Domain name.|
|isUseHttps|Boolean|Value true indicates HTTPS, and value false indicates HTTP.|
### AuthHuaweiId
#### ContainScopesResult
|Field Name| Type| Description |
|--------------|-----|---------|
|containScopes|Boolean|true: The HUAWEI ID has all the permissions specified by scopeArr. false: The HUAWEI ID does not have all the permissions specified by scopeArr.|
| Field | Type | Definition |
| ------------------------------ | -------- | ------------------------------ |
| accessToken | string | Access token. |
| displayName | string | Nickname. |
| email | string | Email adress. |
| familyName | string | Family name. |
| givenName | string | Given name. |
| idToken | string | ID Token |
| unionId | string | Union Id |
| avatarUriString | string | Profile picture URI |
| openId | string | OpenId |
| describeContentsInAuthHuaweiId | number | Describe Contents In AuthHuaweiId |
| authorizedScopes | string[] | Authorized Scopes |
| authorizationCode | string | Authorization Code |
| huaweiAccount | Account | Huawei Account |
### Account
## 4. Configure Description
| Field Name | Type | Definition |
| ---------- | ------ | ------------------------------ |
| type | string | Type of HUAWEI ID Account. |
| name | string | Name of the HUAWEI ID Account. |
No.
### Cookie
## 5. Licensing and Terms
| Field Name | Type | Definition |
| ----------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| cookieName | string | Cookie name. |
| cookieValue | string | Cookie value. |
| domain | string | Cookie domain name. |
| path | string | Page path for accessing the cookie. |
| isHttpOnly | boolean | Value true indicates that the cookie information is contained only in the HTTP request header and cannot be accessed through document.cookie. |
| isSecure | boolean | Value true indicates that the cookie can be transmitted only through HTTPS, and value false indicates that the cookie can be transmitted through HTTP. |
| maxAge | number | Cookie lifetime, in seconds. |
Apache 2.0 license.
### DomainInfo
| Field Name | Type | Definition |
| ---------- | ------- | ----------------------------------------------------------- |
| domain | string | Domain name. |
| isUseHttps | boolean | Value true indicates HTTPS, and value false indicates HTTP. |
### ContainScopesResult
| Field Name | Type | Definition |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| containScopes | boolean | true: The HUAWEI ID has all the permissions specified by scopeArr. false: The HUAWEI ID does not have all the permissions specified by scopeArr. |
### SignInData
| Field Name | Type | Definition |
| ----------------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| authRequestOption | [AuthRequestOption](#authrequestoption)[] | AuthRequestOption array to customize the authorization. |
| authParam | [HuaweiIdAuthParams](#huaweiauthparams) | Authorization scope parameter to customize the authorization. It is optional. |
| authScopeList | [AuthScopeList](#authscopelist)[] | AuthScopeList array to customize the authorization. If this value not passed to API, an empty array will be send. It is optional. |
---
## 4. Configuration and Description
### SMS Message Rules
After the service of reading SMS messages is enabled, the SMS message you obtain is as follows:
> prefix_flag short message verification code is XXXXXX hash_value
prefix_flag indicates the prefix of an SMS message, which can be <#>, [#], or **. short message verification code is indicates the content of an SMS message, which is user-defined. XXXXXX indicates the verification code. hash_value indicates the hash value generated by the HMS SDK based on your app package name to uniquely identify your app.
### Preparing for Release
Before building the APK, configure the obfuscation configuration file to prevent the HMS Core SDK from being obfuscated.
**NOTE**: This step is required only if you want to minify and obfuscate your app. By default obfuscation is disabled in Cordova and Ionic apps.
The obfuscation is done by **ProGuard.** By default, in Cordova and Ionic apps ProGuard is disabled. Even though ProGuard is not available, ProGuard support can be added through 3rd party ProGuard plugins. If ProGuard is enabled in your project, the Huawei Cordova Safety Detect plugin's ProGuard rules need to be added to your project. These rules are as follows:
```pro
-ignorewarnings
-keepattributes *Annotation*
-keepattributes Exceptions
-keepattributes InnerClasses
-keepattributes Signature
-keep class com.hianalytics.android.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}
-repackageclasses
```
---
## 5. Sample Project
You can find the sample projects on [HMS Core > Examples > Account Kit](https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin) page.
---
## 6. Questions or Issues
If you have questions about how to use HMS samples, try the following options:
- [Stack Overflow](https://stackoverflow.com/questions/tagged/huawei-mobile-services) is the best place for any programming questions. Be sure to tag your question with **`huawei-mobile-services`**.
- [GitHub](https://github.com/HMS-Core/hms-cordova-plugin) is the official repository for these plugins, You can open an issue or submit your ideas.
- [Huawei Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101187876626530001) HMS Core Module is great for general questions, or seeking recommendations and opinions.
- [Huawei Developer Docs](https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin) is place to official documentation for all HMS Core Kits, you can find detailed documentations in there.
If you run into a bug in our samples, please submit an issue to the [GitHub repository](https://github.com/HMS-Core/hms-cordova-plugin).
---
## 7. Licensing and Terms
Huawei Account Kit Cordova Plugin is licensed under the [Apache 2.0 license](LICENCE).

@@ -1,23 +0,23 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
import { AuthHuaweiId, ScopeConstants, ScopeURI, HuaweiIdAuthParams } from './CommonTypes'
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { AuthHuaweiId, HuaweiIdAuthParams, SignInData } from './HMSCommonTypes'
import { asyncExec } from './utils'
export function signIn(scope: ScopeConstants[], param: HuaweiIdAuthParams, scopeList?: ScopeURI[]): Promise<AuthHuaweiId> {
return asyncExec('HMSAccount', 'signIn', [scope, param, scopeList ? scopeList : []]);
export function signIn(signInData: SignInData[]): Promise<AuthHuaweiId> {
return asyncExec('HMSAccount', 'signIn', [signInData ? signInData : []]);
}

@@ -33,7 +33,15 @@

export function silentSignIn(): Promise<AuthHuaweiId> {
return asyncExec('HMSAccount', 'silentSignIn', []);
export function silentSignIn(authParams: HuaweiIdAuthParams): Promise<AuthHuaweiId> {
return asyncExec('HMSAccount', 'silentSignIn', [authParams]);
}
export function enableLogger(): Promise<void> {
return asyncExec('HMSAccount', 'enableLogger', []);
}
export function disableLogger(): Promise<void> {
return asyncExec('HMSAccount', 'disableLogger', []);
}

@@ -1,17 +0,17 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export enum Theme {

@@ -18,0 +18,0 @@ THEME_NO_TITLE = 0,

@@ -1,18 +0,18 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
import { AuthHuaweiId, ContainScopesResult, AuthHuaweiIdBuilder, ScopeURI } from './CommonTypes'
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { AuthHuaweiId, ContainScopesResult, AuthHuaweiIdBuilder, AuthScopeList } from './HMSCommonTypes'
import { asyncExec } from './utils'

@@ -24,12 +24,12 @@

export function getAuthResultWithScope(scopeList: ScopeURI[]): Promise<AuthHuaweiId> {
return asyncExec('HMSHuaweiIdAuthManager', 'getAuthResultWithScope', [scopeList]);
export function getAuthResultWithScope(authScopeList: AuthScopeList[]): Promise<AuthHuaweiId> {
return asyncExec('HMSHuaweiIdAuthManager', 'getAuthResultWithScope', [authScopeList]);
}
export function containScopes(authHuaweiId: AuthHuaweiIdBuilder, scopeList: ScopeURI[]): Promise<ContainScopesResult> {
return asyncExec('HMSHuaweiIdAuthManager', 'containScopes', [authHuaweiId, scopeList]);
export function containScopes(authHuaweiId: AuthHuaweiIdBuilder, authScopeList: AuthScopeList[]): Promise<ContainScopesResult> {
return asyncExec('HMSHuaweiIdAuthManager', 'containScopes', [authHuaweiId, authScopeList]);
}
export function addAuthScopes(requestCode: number, scopeList: ScopeURI[]): Promise<void> {
return asyncExec('HMSHuaweiIdAuthManager', 'addAuthScopes', [requestCode, scopeList]);
export function addAuthScopes(requestCode: number, authScopeList: AuthScopeList[]): Promise<void> {
return asyncExec('HMSHuaweiIdAuthManager', 'addAuthScopes', [requestCode, authScopeList]);
}

@@ -1,19 +0,19 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { asyncExec } from './utils'
import { Account, ScopeURI } from './CommonTypes';
import { Account, AuthScopeList } from './HMSCommonTypes';

@@ -28,5 +28,5 @@ export function deleteAuthInfo(accessToken: string): Promise<void> {

export function requestAccessToken(account: Account, scopeList: ScopeURI[]): Promise<string> {
return asyncExec('HMSHuaweiIdAuthTool', 'requestAccessToken', [account, scopeList]);
export function requestAccessToken(account: Account, authScopeList: AuthScopeList[]): Promise<string> {
return asyncExec('HMSHuaweiIdAuthTool', 'requestAccessToken', [account, authScopeList]);
}

@@ -1,19 +0,19 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { asyncExec } from './utils'
import { Cookie, DomainInfo } from './CommonTypes';
import { Cookie, DomainInfo } from './HMSCommonTypes';

@@ -20,0 +20,0 @@

@@ -1,17 +0,17 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { asyncExec } from './utils'

@@ -18,0 +18,0 @@

@@ -1,18 +0,19 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {exec} from 'cordova'
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { exec } from 'cordova'
//

@@ -23,5 +24,5 @@ // Exports

export function asyncExec(clazz: string, func: string, args: any): Promise<any> {
return new Promise((resolve, reject) => {
exec(resolve, reject, clazz, func, args);
})
};
return new Promise((resolve, reject) => {
exec(resolve, reject, clazz, func, args);
})
};

@@ -1,17 +0,18 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export declare enum ScopeURI {
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export declare enum AuthScopeList {
GAME = "https://www.huawei.com/auth/games",

@@ -28,3 +29,3 @@ OPENID = "openid",

}
export declare enum ScopeConstants {
export declare enum AuthRequestOption {
SCOPE_ID_TOKEN = "idToken",

@@ -41,5 +42,8 @@ SCOPE_ACCESS_TOKEN = "accessToken",

export declare enum HuaweiIdAuthParams {
DEFAULT_AUTH_REQUEST_PARAM = "param",
DEFAULT_AUTH_REQUEST_PARAM_GAME = "game"
DEFAULT_AUTH_REQUEST_PARAM = "DEFAULT_AUTH_REQUEST_PARAM",
DEFAULT_AUTH_REQUEST_PARAM_GAME = "DEFAULT_AUTH_REQUEST_PARAM_GAME"
}
export declare enum ErrorCodes {
HuaweiIdAuthException = "503"
}
export interface AuthHuaweiId {

@@ -76,3 +80,3 @@ accessToken: string;

gender: Gender;
scopes: ScopeURI[];
scopes: AuthScopeList[];
serverAuthCode: string;

@@ -102,1 +106,6 @@ unionId: string;

}
export interface SignInData {
authRequestOption: AuthRequestOption[];
authParam?: HuaweiIdAuthParams;
authScopeList?: AuthScopeList[];
}

@@ -1,20 +0,23 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { AuthHuaweiId, ScopeConstants, ScopeURI, HuaweiIdAuthParams } from './CommonTypes';
export declare function signIn(scope: ScopeConstants[], param: HuaweiIdAuthParams, scopeList?: ScopeURI[]): Promise<AuthHuaweiId>;
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { AuthHuaweiId, HuaweiIdAuthParams, SignInData } from './HMSCommonTypes';
export declare function signIn(signInData: SignInData[]): Promise<AuthHuaweiId>;
export declare function signOut(): Promise<void>;
export declare function cancelAuthorization(): Promise<void>;
export declare function silentSignIn(): Promise<AuthHuaweiId>;
export declare function silentSignIn(authParams: HuaweiIdAuthParams): Promise<AuthHuaweiId>;
export declare function enableLogger(): Promise<void>;
export declare function disableLogger(): Promise<void>;

@@ -1,16 +0,17 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export declare enum Theme {

@@ -17,0 +18,0 @@ THEME_NO_TITLE = 0,

@@ -1,20 +0,21 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { AuthHuaweiId, ContainScopesResult, AuthHuaweiIdBuilder, ScopeURI } from './CommonTypes';
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { AuthHuaweiId, ContainScopesResult, AuthHuaweiIdBuilder, AuthScopeList } from './HMSCommonTypes';
export declare function getAuthResult(): Promise<AuthHuaweiId>;
export declare function getAuthResultWithScope(scopeList: ScopeURI[]): Promise<AuthHuaweiId>;
export declare function containScopes(authHuaweiId: AuthHuaweiIdBuilder, scopeList: ScopeURI[]): Promise<ContainScopesResult>;
export declare function addAuthScopes(requestCode: number, scopeList: ScopeURI[]): Promise<void>;
export declare function getAuthResultWithScope(authScopeList: AuthScopeList[]): Promise<AuthHuaweiId>;
export declare function containScopes(authHuaweiId: AuthHuaweiIdBuilder, authScopeList: AuthScopeList[]): Promise<ContainScopesResult>;
export declare function addAuthScopes(requestCode: number, authScopeList: AuthScopeList[]): Promise<void>;

@@ -1,19 +0,20 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Account, ScopeURI } from './CommonTypes';
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Account, AuthScopeList } from './HMSCommonTypes';
export declare function deleteAuthInfo(accessToken: string): Promise<void>;
export declare function requestUnionId(huaweiAccountName: string): Promise<string>;
export declare function requestAccessToken(account: Account, scopeList: ScopeURI[]): Promise<string>;
export declare function requestAccessToken(account: Account, authScopeList: AuthScopeList[]): Promise<string>;

@@ -1,18 +0,19 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Cookie, DomainInfo } from './CommonTypes';
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Cookie, DomainInfo } from './HMSCommonTypes';
export declare function buildNetworkURL(domainHttps: DomainInfo): Promise<String>;
export declare function buildNetworkCookie(cookie: Cookie): Promise<String>;

@@ -1,17 +0,18 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export declare function smsVerificationCode(): Promise<String>;
export declare function obtainHashCode(): Promise<String>;

@@ -1,16 +0,17 @@

/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export declare function asyncExec(clazz: string, func: string, args: any): Promise<any>;
"use strict";
/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.HuaweiIdAuthParams = exports.ScopeConstants = exports.Gender = exports.ScopeURI = void 0;
exports.ErrorCodes = exports.HuaweiIdAuthParams = exports.AuthRequestOption = exports.Gender = exports.AuthScopeList = void 0;
//
// Constants
//
var ScopeURI;
(function (ScopeURI) {
ScopeURI["GAME"] = "https://www.huawei.com/auth/games";
ScopeURI["OPENID"] = "openid";
ScopeURI["EMAIL"] = "email";
ScopeURI["PROFILE"] = "profile";
})(ScopeURI = exports.ScopeURI || (exports.ScopeURI = {}));
var AuthScopeList;
(function(AuthScopeList) {
AuthScopeList["GAME"] = "https://www.huawei.com/auth/games";
AuthScopeList["OPENID"] = "openid";
AuthScopeList["EMAIL"] = "email";
AuthScopeList["PROFILE"] = "profile";
})(AuthScopeList = exports.AuthScopeList || (exports.AuthScopeList = {}));
var Gender;
(function (Gender) {
(function(Gender) {
Gender[Gender["UNKNOWN"] = -1] = "UNKNOWN";

@@ -36,19 +36,23 @@ Gender[Gender["MALE"] = 0] = "MALE";

})(Gender = exports.Gender || (exports.Gender = {}));
var ScopeConstants;
(function (ScopeConstants) {
ScopeConstants["SCOPE_ID_TOKEN"] = "idToken";
ScopeConstants["SCOPE_ACCESS_TOKEN"] = "accessToken";
ScopeConstants["SCOPE_MOBILE_NUMBER"] = "mobileNumber";
ScopeConstants["SCOPE_EMAIL"] = "email";
ScopeConstants["SCOPE_SHIPPING_ADDRESS"] = "shippingAddress";
ScopeConstants["SCOPE_UID"] = "uid";
ScopeConstants["SCOPE_ID"] = "id";
ScopeConstants["SCOPE_AUTHORIZATION_CODE"] = "authorizationCode";
ScopeConstants["SCOPE_PROFILE"] = "profile";
})(ScopeConstants = exports.ScopeConstants || (exports.ScopeConstants = {}));
var AuthRequestOption;
(function(AuthRequestOption) {
AuthRequestOption["SCOPE_ID_TOKEN"] = "idToken";
AuthRequestOption["SCOPE_ACCESS_TOKEN"] = "accessToken";
AuthRequestOption["SCOPE_MOBILE_NUMBER"] = "mobileNumber";
AuthRequestOption["SCOPE_EMAIL"] = "email";
AuthRequestOption["SCOPE_SHIPPING_ADDRESS"] = "shippingAddress";
AuthRequestOption["SCOPE_UID"] = "uid";
AuthRequestOption["SCOPE_ID"] = "id";
AuthRequestOption["SCOPE_AUTHORIZATION_CODE"] = "authorizationCode";
AuthRequestOption["SCOPE_PROFILE"] = "profile";
})(AuthRequestOption = exports.AuthRequestOption || (exports.AuthRequestOption = {}));
var HuaweiIdAuthParams;
(function (HuaweiIdAuthParams) {
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM"] = "param";
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM_GAME"] = "game";
(function(HuaweiIdAuthParams) {
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM"] = "DEFAULT_AUTH_REQUEST_PARAM";
HuaweiIdAuthParams["DEFAULT_AUTH_REQUEST_PARAM_GAME"] = "DEFAULT_AUTH_REQUEST_PARAM_GAME";
})(HuaweiIdAuthParams = exports.HuaweiIdAuthParams || (exports.HuaweiIdAuthParams = {}));
//# sourceMappingURL=CommonTypes.js.map
var ErrorCodes;
(function(ErrorCodes) {
ErrorCodes["HuaweiIdAuthException"] = "503";
})(ErrorCodes = exports.ErrorCodes || (exports.ErrorCodes = {}));
//# sourceMappingURL=HMSCommonTypes.js.map
"use strict";
/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.silentSignIn = exports.cancelAuthorization = exports.signOut = exports.signIn = void 0;
exports.disableLogger = exports.enableLogger = exports.silentSignIn = exports.cancelAuthorization = exports.signOut = exports.signIn = void 0;
const utils_1 = require("./utils");
function signIn(scope, param, scopeList) {
return utils_1.asyncExec('HMSAccount', 'signIn', [scope, param, scopeList ? scopeList : []]);
function signIn(signInData) {
return utils_1.asyncExec('HMSAccount', 'signIn', [signInData ? signInData : []]);
}

@@ -32,6 +32,14 @@ exports.signIn = signIn;

exports.cancelAuthorization = cancelAuthorization;
function silentSignIn() {
return utils_1.asyncExec('HMSAccount', 'silentSignIn', []);
function silentSignIn(authParams) {
return utils_1.asyncExec('HMSAccount', 'silentSignIn', [authParams]);
}
exports.silentSignIn = silentSignIn;
function enableLogger() {
return utils_1.asyncExec('HMSAccount', 'enableLogger', []);
}
exports.enableLogger = enableLogger;
function disableLogger() {
return utils_1.asyncExec('HMSAccount', 'disableLogger', []);
}
exports.disableLogger = disableLogger;
//# sourceMappingURL=HMSAccount.js.map
"use strict";
/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,0 +18,0 @@ exports.getHuaweiIdAuthButton = exports.CornerRadius = exports.ColorPolicy = exports.Theme = void 0;

"use strict";
/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -24,14 +24,14 @@ exports.addAuthScopes = exports.containScopes = exports.getAuthResultWithScope = exports.getAuthResult = void 0;

exports.getAuthResult = getAuthResult;
function getAuthResultWithScope(scopeList) {
return utils_1.asyncExec('HMSHuaweiIdAuthManager', 'getAuthResultWithScope', [scopeList]);
function getAuthResultWithScope(authScopeList) {
return utils_1.asyncExec('HMSHuaweiIdAuthManager', 'getAuthResultWithScope', [authScopeList]);
}
exports.getAuthResultWithScope = getAuthResultWithScope;
function containScopes(authHuaweiId, scopeList) {
return utils_1.asyncExec('HMSHuaweiIdAuthManager', 'containScopes', [authHuaweiId, scopeList]);
function containScopes(authHuaweiId, authScopeList) {
return utils_1.asyncExec('HMSHuaweiIdAuthManager', 'containScopes', [authHuaweiId, authScopeList]);
}
exports.containScopes = containScopes;
function addAuthScopes(requestCode, scopeList) {
return utils_1.asyncExec('HMSHuaweiIdAuthManager', 'addAuthScopes', [requestCode, scopeList]);
function addAuthScopes(requestCode, authScopeList) {
return utils_1.asyncExec('HMSHuaweiIdAuthManager', 'addAuthScopes', [requestCode, authScopeList]);
}
exports.addAuthScopes = addAuthScopes;
//# sourceMappingURL=HMSHuaweiIdAuthManager.js.map
"use strict";
/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -28,6 +28,6 @@ exports.requestAccessToken = exports.requestUnionId = exports.deleteAuthInfo = void 0;

exports.requestUnionId = requestUnionId;
function requestAccessToken(account, scopeList) {
return utils_1.asyncExec('HMSHuaweiIdAuthTool', 'requestAccessToken', [account, scopeList]);
function requestAccessToken(account, authScopeList) {
return utils_1.asyncExec('HMSHuaweiIdAuthTool', 'requestAccessToken', [account, authScopeList]);
}
exports.requestAccessToken = requestAccessToken;
//# sourceMappingURL=HMSHuaweiIdAuthTool.js.map
"use strict";
/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,0 +18,0 @@ exports.buildNetworkCookie = exports.buildNetworkURL = void 0;

"use strict";
/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,0 +18,0 @@ exports.obtainHashCode = exports.smsVerificationCode = void 0;

"use strict";
/*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.asyncExec = void 0;
/**
* Copyright 2020 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const cordova_1 = require("cordova");

@@ -20,0 +20,0 @@ //

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc