diff --git a/api/@ohos.telephony.esim.d.ts b/api/@ohos.telephony.esim.d.ts index 6e30c906c95da47ab5e581299b43946296984a64..8e2f80afe0fb1accb7559c9f9ace1e7fe6189af6 100644 --- a/api/@ohos.telephony.esim.d.ts +++ b/api/@ohos.telephony.esim.d.ts @@ -79,7 +79,7 @@ declare namespace eSIM { /** * Returns the current status of eUICC OS upgrade. - * + * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE * @param { number } slotId - Indicates the card slot index number. * @returns { Promise } Return the status of eUICC OS upgrade. @@ -97,7 +97,7 @@ declare namespace eSIM { /** * Execute OS upgrade if current OS upgrade is not the latest one. - * + * * @permission ohos.permission.SET_TELEPHONY_ESIM_STATE * @param { number } slotId - Indicates the card slot index number. * @returns { Promise } Return the status of OS upgrade when OS upgrade status changed. @@ -139,7 +139,7 @@ declare namespace eSIM { /** * Gets downloadable profile List which are available for download on this device. - * + * * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE * @param { number } slotId - Indicates the card slot index number. * @param { number } portIndex - Index of the port for the slot. @@ -379,87 +379,6 @@ declare namespace eSIM { */ function cancelSession(slotId: number, transactionId: string, cancelReason: CancelReason): Promise; - /** - * Get contract info - * - * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. - * @param { ContractRequestData } requestData - request infomation required to get contract infomation. - * @returns { Promise } Returns the contract info. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 3120001 - Service connection failed. - * @throws { BusinessError } 3120002 - System internal error. - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - function getContractInfo(slotId: number, requestData: ContractRequestData) : Promise; - - /** - * Get supported pkids - * - * @permission ohos.permission.GET_TELEPHONY_ESIM_STATE - * @param { number } slotId - Indicates the card slot index number. - * @returns { Promise } Returns the supported pkids. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 3120001 - Service connection failed. - * @throws { BusinessError } 3120002 - System internal error. - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - function getSupportedPkids(slotId: number) : Promise; - - /** - * Contract request data - * - * @interface ContractRequestData - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - export interface ContractRequestData { - /** - * Public key required to get contract info - * - * @type { string } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - publicKey: string; - - /** - * Nonce required to get contract info - * - * @type { string } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - nonce: string; - - /** - * Euicc Ci PKID to be used, required to get contract info - * - * @type { string } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - pkid: string; - } - /** * Establishes a single UICC access rule pursuant to the GlobalPlatform Secure Element Access Control specification. * @@ -471,7 +390,7 @@ declare namespace eSIM { export interface AccessRule { /** * Certificate hash hexadecimal string. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -481,7 +400,7 @@ declare namespace eSIM { /** * The name of package. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -491,7 +410,7 @@ declare namespace eSIM { /** * The type of access. - * + * * @type { number } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -519,7 +438,7 @@ declare namespace eSIM { /** * Confirmation code. - * + * * @type { ?string } * @syscap SystemCapability.Telephony.CoreService.Esim * @since 18 @@ -528,7 +447,7 @@ declare namespace eSIM { /** * Carrier name. - * + * * @type { ?string } * @syscap SystemCapability.Telephony.CoreService.Esim * @since 18 @@ -537,7 +456,7 @@ declare namespace eSIM { /** * Gets the accessRules. - * + * * @type { ?Array } * @syscap SystemCapability.Telephony.CoreService.Esim * @since 18 @@ -556,7 +475,7 @@ declare namespace eSIM { export interface GetDownloadableProfileMetadataResult { /** * Information about a profile which is downloadable to an eUICC using. - * + * * @type { DownloadableProfile } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -566,7 +485,7 @@ declare namespace eSIM { /** * The type of profile policy rule. - * + * * @type { number } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -574,9 +493,9 @@ declare namespace eSIM { */ pprType: number; - /** + /** * The flag of profile policy rule. - * + * * @type { boolean } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -586,47 +505,47 @@ declare namespace eSIM { /** * The iccid of the profile. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. * @since 18 */ - iccid: string; + iccid: string; - /** - * The service provider name for the profile. - * - * @type { string } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 18 - */ - serviceProviderName: string; + /** + * The service provider name for the profile. + * + * @type { string } + * @syscap SystemCapability.Telephony.CoreService.Esim + * @systemapi Hide this for inner system use. + * @since 18 + */ + serviceProviderName: string; - /** - * The profile name. - * - * @type { string } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 18 - */ - profileName: string; + /** + * The profile name. + * + * @type { string } + * @syscap SystemCapability.Telephony.CoreService.Esim + * @systemapi Hide this for inner system use. + * @since 18 + */ + profileName: string; - /** - * Profile class for the profile. - * - * @type { ProfileClass } - * @syscap SystemCapability.Telephony.CoreService.Esim - * @systemapi Hide this for inner system use. - * @since 18 - */ - profileClass: ProfileClass; + /** + * Profile class for the profile. + * + * @type { ProfileClass } + * @syscap SystemCapability.Telephony.CoreService.Esim + * @systemapi Hide this for inner system use. + * @since 18 + */ + profileClass: ProfileClass; /** * Gets the solvable errors. - * + * * @type { SolvableErrors } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -636,7 +555,7 @@ declare namespace eSIM { /** * Gets the result of the operation. - * + * * @type { ResultCode } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -656,7 +575,7 @@ declare namespace eSIM { export interface GetDownloadableProfilesResult { /** * Gets the result of the operation. - * + * * @type { ResultCode } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -666,7 +585,7 @@ declare namespace eSIM { /** * Gets the downloadable Profiles with filled-in metadata. - * + * * @type { Array } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -686,7 +605,7 @@ declare namespace eSIM { export interface DownloadProfileResult { /** * Gets the result of the operation. - * + * * @type { ResultCode } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -696,7 +615,7 @@ declare namespace eSIM { /** * Gets the solvable errors. - * + * * @type { SolvableErrors } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -706,7 +625,7 @@ declare namespace eSIM { /** * Gets the card Id. This value comes from EuiccService and is used when resolving solvable errors. - * + * * @type { number } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -726,7 +645,7 @@ declare namespace eSIM { export interface GetEuiccProfileInfoListResult { /** * Gets the result of the operation. - * + * * @type { ResultCode } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -736,7 +655,7 @@ declare namespace eSIM { /** * Gets the profile list (only upon success). - * + * * @type { Array } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -746,7 +665,7 @@ declare namespace eSIM { /** * Gets whether the eUICC can be removed. - * + * * @type { boolean } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -766,7 +685,7 @@ declare namespace eSIM { export interface OperatorId { /** * Mobile country code. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -776,7 +695,7 @@ declare namespace eSIM { /** * Mobile network code. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -786,7 +705,7 @@ declare namespace eSIM { /** * Group id level 1. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -796,7 +715,7 @@ declare namespace eSIM { /** * Group id level 2. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -816,7 +735,7 @@ declare namespace eSIM { export interface EuiccProfile { /** * The iccid of the profile. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -826,7 +745,7 @@ declare namespace eSIM { /** * An optional nickname for the profile. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -836,7 +755,7 @@ declare namespace eSIM { /** * The service provider name for the profile. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -846,7 +765,7 @@ declare namespace eSIM { /** * The profile name. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -876,7 +795,7 @@ declare namespace eSIM { /** * The operator Id of the profile. - * + * * @type { OperatorId } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -896,7 +815,7 @@ declare namespace eSIM { /** * Optional access rules that specify which apps can manage this profile. Default platform management when not set. - * + * * @type { Array } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -907,7 +826,7 @@ declare namespace eSIM { /** * Information related to eUICC chips/devices. - * + * * @interface EuiccInfo * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -916,7 +835,7 @@ declare namespace eSIM { export interface EuiccInfo { /** * Operating system version. - * + * * @type { string } * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. @@ -959,7 +878,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - RESET_DEFAULT_SMDP_ADDRESS = 1 << 2 + RESET_DEFAULT_SMDP_ADDRESS = 1 << 2, } /** @@ -1014,7 +933,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - EUICC_UPGRADE_SERVICE_UNAVAILABLE = 5 + EUICC_UPGRADE_SERVICE_UNAVAILABLE = 5, } /** @@ -1307,7 +1226,7 @@ declare namespace eSIM { /** * Nothing is to be deleted. - * + * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. * @since 18 @@ -1325,7 +1244,7 @@ declare namespace eSIM { /** * A session is ongoing. - * + * * @syscap SystemCapability.Telephony.CoreService.Esim * @systemapi Hide this for inner system use. * @since 18 @@ -1357,7 +1276,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - RESULT_SGP_22_OTHER = 400 + RESULT_SGP_22_OTHER = 400, } /** @@ -1403,7 +1322,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - CANCEL_REASON_PPR_NOT_ALLOWED = 3 + CANCEL_REASON_PPR_NOT_ALLOWED = 3, } /** @@ -1440,7 +1359,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - PROFILE_STATE_ENABLED = 1 + PROFILE_STATE_ENABLED = 1, } /** @@ -1486,7 +1405,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - PROFILE_CLASS_OPERATIONAL = 2 + PROFILE_CLASS_OPERATIONAL = 2, } /** @@ -1523,7 +1442,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - POLICY_RULE_DISABLE_AND_DELETE = 1 << 2 + POLICY_RULE_DISABLE_AND_DELETE = 1 << 2, } /** @@ -1551,7 +1470,7 @@ declare namespace eSIM { * @systemapi Hide this for inner system use. * @since 18 */ - SOLVABLE_ERROR_NEED_POLICY_RULE = 1 << 1 + SOLVABLE_ERROR_NEED_POLICY_RULE = 1 << 1, } /** diff --git a/api/@ohos.telephony.sim.d.ts b/api/@ohos.telephony.sim.d.ts index 12f248cbc75a9f5ceaecc35614b13d7539239749..37f1d31d087a98d45d98c21f101410ee68f52df0 100644 --- a/api/@ohos.telephony.sim.d.ts +++ b/api/@ohos.telephony.sim.d.ts @@ -2215,141 +2215,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 14 */ - function getSimAuthentication(slotId: number, authType: AuthType, authData: string): Promise; - - /** - * Get the list of all SIM card account information. - * - * @permission ohos.permission.GET_TELEPHONY_STATE - * @param { AsyncCallback> } callback - The callback is used to - * return the array of {@link IccAccountInfo}. The ICCID and phone number will be null - * if has no ohos.permission.GET_TELEPHONY_STATE. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 8300001 - Invalid parameter value. - * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. - * @throws { BusinessError } 8300003 - System internal error. - * @throws { BusinessError } 8300004 - Do not have sim card. - * @throws { BusinessError } 8300999 - Unknown error code. - * @syscap SystemCapability.Telephony.CoreService - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - function getAllSimAccountInfoList(callback: AsyncCallback>): void; - - /** - * Get the list of all SIM card account information. - * - * @permission ohos.permission.GET_TELEPHONY_STATE - * @returns { Promise> } Returns the array of {@link IccAccountInfo}. The ICCID - * and phone number will be null if has no ohos.permission.GET_TELEPHONY_STATE. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Non-system applications use system APIs. - * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. - * @throws { BusinessError } 8300003 - System internal error. - * @throws { BusinessError } 8300004 - Do not have sim card. - * @throws { BusinessError } 8300999 - Unknown error code. - * @syscap SystemCapability.Telephony.CoreService - * @systemapi Hide this for inner system use. - * @since 20 - * @arkts 1.1&1.2 - */ - function getAllSimAccountInfoList(): Promise>; - - /** - * Obtains the SIM card label. - * @param { number } slotId SIM card slot ID. - * @param { AsyncCallback } callback Callback used to return the SIM card label. - * @throws { BusinessError } 8300001 - Invalid parameter value. - * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. - * @throws { BusinessError } 8300003 - System internal error. - * @throws { BusinessError } 8300999 - Unknown error code. - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - function getSimLabel(slotId: number, callback: AsyncCallback): void; - - /** - * Obtains the SIM card label. - * @param { number } slotId SIM card slot ID. - * @returns { Promise } Promise used to return the SIM card label. - * @throws { BusinessError } 8300001 - Invalid parameter value. - * @throws { BusinessError } 8300002 - Operation failed. Cannot connect to service. - * @throws { BusinessError } 8300003 - System internal error. - * @throws { BusinessError } 8300999 - Unknown error code. - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - function getSimLabel(slotId: number): Promise; - - /** - * Obtains the SIM card label synchronously. - * @param { number } slotId SIM card slot ID, which ranges from 0 to the maximum number of slots supported - * by the device. - * @returns { SimLabel } SIM card label. - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - function getSimLabelSync(slotId: number): SimLabel; - - /** - * Indicates the SIM card type. - * - * @enum { number } - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - export enum SimType { - /** - * Indicates psim type. - * - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - PSIM = 0, - - /** - * Indicates esim type. - * - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - ESIM = 1 - } - - /** - * Defines the SIM card label. - * @interface SimLabel - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - export interface SimLabel { - /** - * Represents the SIM card type. - * @type { SimType } - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - simType: SimType; - - /** - * Represents the SIM card index. - * @type { number } - * @syscap SystemCapability.Telephony.CoreService - * @since 20 - * @arkts 1.1&1.2 - */ - index: number; - } + function getSimAuthentication(slotId: number, authType: AuthType, authData: string): Promise /** * Defines the carrier configuration. @@ -2629,7 +2495,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - FDN_LOCK = 2 + FDN_LOCK = 2, } /** @@ -2735,7 +2601,7 @@ declare namespace sim { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - SIM_STATE_UNKNOWN = 0, + SIM_STATE_UNKNOWN, /** * Indicates that the SIM card is in the not present state, that is, @@ -2744,7 +2610,7 @@ declare namespace sim { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - SIM_STATE_NOT_PRESENT = 1, + SIM_STATE_NOT_PRESENT, /** * Indicates that the SIM card is in the locked state, that is, the @@ -2754,7 +2620,7 @@ declare namespace sim { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - SIM_STATE_LOCKED = 2, + SIM_STATE_LOCKED, /** * Indicates that the SIM card is in the not ready state, that is, @@ -2763,7 +2629,7 @@ declare namespace sim { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - SIM_STATE_NOT_READY = 3, + SIM_STATE_NOT_READY, /** * Indicates that the SIM card is in the ready state, that is, the @@ -2772,7 +2638,7 @@ declare namespace sim { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - SIM_STATE_READY = 4, + SIM_STATE_READY, /** * Indicates that the SIM card is in the loaded state, that is, the @@ -2781,7 +2647,7 @@ declare namespace sim { * @syscap SystemCapability.Telephony.CoreService * @since 6 */ - SIM_STATE_LOADED = 5 + SIM_STATE_LOADED } /** @@ -2809,7 +2675,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - LOCK_ON = 1 + LOCK_ON = 1, } /** @@ -2837,7 +2703,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - FIXED_DIALING = 2 + FIXED_DIALING = 2, } /** @@ -2856,7 +2722,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - PN_PIN_LOCK = 0, + PN_PIN_LOCK, /** * Indicates network personalization of PUK lock(refer 3GPP TS 22.022 [33]). @@ -2865,7 +2731,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - PN_PUK_LOCK = 1, + PN_PUK_LOCK, /** * Indicates network subset personalization of PIN lock(refer 3GPP TS 22.022 [33]). @@ -2874,7 +2740,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - PU_PIN_LOCK = 2, + PU_PIN_LOCK, /** * Indicates network subset personalization of PUK lock(refer 3GPP TS 22.022 [33]). @@ -2883,7 +2749,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - PU_PUK_LOCK = 3, + PU_PUK_LOCK, /** * Indicates service provider personalization of PIN lock(refer 3GPP TS 22.022 [33]). @@ -2892,7 +2758,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - PP_PIN_LOCK = 4, + PP_PIN_LOCK, /** * Indicates service provider personalization of PUK lock(refer 3GPP TS 22.022 [33]). @@ -2901,7 +2767,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - PP_PUK_LOCK = 5, + PP_PUK_LOCK, /** * Indicates corporate personalization of PIN lock(refer 3GPP TS 22.022 [33]). @@ -2910,7 +2776,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - PC_PIN_LOCK = 6, + PC_PIN_LOCK, /** * Indicates corporate personalization of PUK lock(refer 3GPP TS 22.022 [33]). @@ -2919,7 +2785,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - PC_PUK_LOCK = 7, + PC_PUK_LOCK, /** * Indicates SIM/USIM personalization of PIN lock(refer 3GPP TS 22.022 [33]). @@ -2928,7 +2794,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - SIM_PIN_LOCK = 8, + SIM_PIN_LOCK, /** * Indicates SIM/USIM personalization of PUK lock(refer 3GPP TS 22.022 [33]). @@ -2937,7 +2803,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 8 */ - SIM_PUK_LOCK = 9 + SIM_PUK_LOCK, } /** @@ -2949,7 +2815,6 @@ declare namespace sim { * @since 9 */ export enum OperatorConfigKey { - /** * Indicates the voice mail number. * @@ -3129,7 +2994,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 9 */ - KEY_EMERGENCY_CALL_STRING_ARRAY = 'emergency_call_string_array' + KEY_EMERGENCY_CALL_STRING_ARRAY = 'emergency_call_string_array', } /** @@ -3175,7 +3040,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 11 */ - DSDS_MODE_V5_DSDA = 3 + DSDS_MODE_V5_DSDA = 3, } /** @@ -3194,7 +3059,7 @@ declare namespace sim { * @systemapi Hide this for inner system use. * @since 11 */ - CHINA_TELECOM_CARD = 'china_telecom_card' + CHINA_TELECOM_CARD = 'china_telecom_card', } /** @@ -3204,11 +3069,11 @@ declare namespace sim { * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. * @since 14 - */ + */ export enum AuthType { /** * Authentication type is EAP-SIM. See RFC 4186 - * + * * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. * @since 14 @@ -3216,17 +3081,17 @@ declare namespace sim { SIM_AUTH_EAP_SIM_TYPE = 128, /** * Authentication type is EAP-AKA. See RFC 4187 - * + * * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. * @since 14 */ - SIM_AUTH_EAP_AKA_TYPE = 129 + SIM_AUTH_EAP_AKA_TYPE = 129, } /** * Defines the SIM card authentication response. - * + * * @interface SimAuthenticationResponse * @syscap SystemCapability.Telephony.CoreService * @systemapi Hide this for inner system use. @@ -3242,7 +3107,7 @@ declare namespace sim { * @since 14 */ simStatusWord1: number; - + /** * Status word 2 of the SIM card, which is returned by the SIM card after command execution. * @@ -3265,4 +3130,4 @@ declare namespace sim { } } -export default sim; \ No newline at end of file +export default sim;