UNPKG

@cordova-plugin-agconnect/clouddb

Version:
68 lines (66 loc) 1.88 kB
/* * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. */ /** * These enum values provides various predicates such as * contains, equalTo, notEqualTo, and in to construct query conditions. */ export declare enum QueryOperation { LIMIT_CONDITION = "limit", START_AT = "startAt", START_AFTER = "startAfter", END_AT = "endAt", END_BEFORE = "endBefore", EQUAL_TO = "equalTo", NOT_EQUAL_TO = "notEqualTo", GREATER_THAN = "greaterThan", GREATER_THAN_OR_EQUAL_TO = "greaterThanOrEqualTo", LESS_THAN = "lessThan", LESS_THAN_OR_EQUAL_TO = "lessThanOrEqualTo", BEGINS_WITH = "beginsWith", ENDS_WITH = "endsWith", CONTAINS = "contains", IS_NULL = "isNull", IS_NOT_NULL = "isNotNull", ORDER_BY_ASC = "orderByAsc", ORDER_BY_DESC = "orderByDesc", IN = "in" } /** * These enum values provides which operation is going to be performed. */ export declare enum Operation { UPSERT = "upsert", DELETE = "delete", QUERY = "query" } /** * Synchronization property of the Cloud DB zone, * which specifies whether to synchronize data of Cloud DB zone between * the device and the cloud and the synchronization mode. */ export declare enum CloudDBZoneSyncProperty { CLOUDDBZONE_LOCAL_ONLY = 0, CLOUDDBZONE_CLOUD_CACHE = 1 } /** * Access property of the Cloud DB zone, * which is used to define the security property when an application accesses Cloud DB zone. */ export declare enum CloudDBZoneAccessProperty { CLOUDDBZONE_PUBLIC = 0 } /** * Query policy, which specifies the data source to be queried. */ export declare enum CloudDBZoneQueryPolicy { POLICY_QUERY_FROM_LOCAL_ONLY = 1, POLICY_QUERY_FROM_CLOUD_ONLY = 2, POLICY_QUERY_DEFAULT = 3 } /** * Type of the change event. */ export declare enum AGCCloudDBEventType { USER_KEY_CHANGED = 1 }