1 | /**
|
2 | * Represents the various service types available.
|
3 | */
|
4 | export declare enum ServiceType {
|
5 | /**
|
6 | * The key-value service, responsible for data storage.
|
7 | */
|
8 | KeyValue = "kv",
|
9 | /**
|
10 | * The management service, responsible for managing the cluster.
|
11 | */
|
12 | Management = "mgmt",
|
13 | /**
|
14 | * The views service, responsible for views querying.
|
15 | */
|
16 | Views = "views",
|
17 | /**
|
18 | * The query service, responsible for N1QL querying.
|
19 | */
|
20 | Query = "query",
|
21 | /**
|
22 | * The search service, responsible for full-text search querying.
|
23 | */
|
24 | Search = "search",
|
25 | /**
|
26 | * The analytics service, responsible for analytics querying.
|
27 | */
|
28 | Analytics = "analytics",
|
29 | /**
|
30 | * The eventing service, responsible for event-driven actions.
|
31 | */
|
32 | Eventing = "eventing"
|
33 | }
|
34 | /**
|
35 | * Represents the durability level required for an operation.
|
36 | */
|
37 | export declare enum DurabilityLevel {
|
38 | /**
|
39 | * Indicates that no durability is needed.
|
40 | */
|
41 | None = 0,
|
42 | /**
|
43 | * Indicates that mutations should be replicated to a majority of the
|
44 | * nodes in the cluster before the operation is marked as successful.
|
45 | */
|
46 | Majority = 1,
|
47 | /**
|
48 | * Indicates that mutations should be replicated to a majority of the
|
49 | * nodes in the cluster and persisted to the master node before the
|
50 | * operation is marked as successful.
|
51 | */
|
52 | MajorityAndPersistOnMaster = 2,
|
53 | /**
|
54 | * Indicates that mutations should be persisted to the majority of the
|
55 | * nodes in the cluster before the operation is marked as successful.
|
56 | */
|
57 | PersistToMajority = 3
|
58 | }
|
59 | /**
|
60 | * Represents the storage semantics to use for some types of operations.
|
61 | */
|
62 | export declare enum StoreSemantics {
|
63 | /**
|
64 | * Indicates that replace semantics should be used. This will replace
|
65 | * the document if it exists, and the operation will fail if the
|
66 | * document does not exist.
|
67 | */
|
68 | Replace = 0,
|
69 | /**
|
70 | * Indicates that upsert semantics should be used. This will replace
|
71 | * the document if it exists, and create it if it does not.
|
72 | */
|
73 | Upsert = 1,
|
74 | /**
|
75 | * Indicates that insert semantics should be used. This will insert
|
76 | * the document if it does not exist, and fail the operation if the
|
77 | * document already exists.
|
78 | */
|
79 | Insert = 2
|
80 | }
|