1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.CounterResult = exports.MutateInResult = exports.MutateInResultEntry = exports.LookupInReplicaResult = exports.LookupInResult = exports.LookupInResultEntry = exports.GetReplicaResult = exports.MutationResult = exports.ExistsResult = exports.ScanResult = exports.GetResult = void 0;
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | class GetResult {
|
10 | |
11 |
|
12 |
|
13 | constructor(data) {
|
14 | this.content = data.content;
|
15 | this.cas = data.cas;
|
16 | this.expiryTime = data.expiryTime;
|
17 | }
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 | get value() {
|
24 | return this.content;
|
25 | }
|
26 | set value(v) {
|
27 | this.content = v;
|
28 | }
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | get expiry() {
|
35 | return this.expiryTime;
|
36 | }
|
37 | }
|
38 | exports.GetResult = GetResult;
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | class ScanResult {
|
45 | |
46 |
|
47 |
|
48 | constructor(data) {
|
49 | this.id = data.id;
|
50 | this.content = data.content;
|
51 | this.cas = data.cas;
|
52 | this.expiryTime = data.expiryTime;
|
53 | }
|
54 | }
|
55 | exports.ScanResult = ScanResult;
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 | class ExistsResult {
|
62 | |
63 |
|
64 |
|
65 | constructor(data) {
|
66 | this.exists = data.exists;
|
67 | this.cas = data.cas;
|
68 | }
|
69 | }
|
70 | exports.ExistsResult = ExistsResult;
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 | class MutationResult {
|
77 | |
78 |
|
79 |
|
80 | constructor(data) {
|
81 | this.cas = data.cas;
|
82 | this.token = data.token;
|
83 | }
|
84 | }
|
85 | exports.MutationResult = MutationResult;
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 | class GetReplicaResult {
|
92 | |
93 |
|
94 |
|
95 | constructor(data) {
|
96 | this.content = data.content;
|
97 | this.cas = data.cas;
|
98 | this.isReplica = data.isReplica;
|
99 | }
|
100 | }
|
101 | exports.GetReplicaResult = GetReplicaResult;
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 | class LookupInResultEntry {
|
108 | |
109 |
|
110 |
|
111 | constructor(data) {
|
112 | this.error = data.error;
|
113 | this.value = data.value;
|
114 | }
|
115 | }
|
116 | exports.LookupInResultEntry = LookupInResultEntry;
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 | class LookupInResult {
|
123 | |
124 |
|
125 |
|
126 | constructor(data) {
|
127 | this.content = data.content;
|
128 | this.cas = data.cas;
|
129 | }
|
130 | |
131 |
|
132 |
|
133 |
|
134 |
|
135 | get results() {
|
136 | return this.content;
|
137 | }
|
138 | set results(v) {
|
139 | this.content = v;
|
140 | }
|
141 | }
|
142 | exports.LookupInResult = LookupInResult;
|
143 |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 | class LookupInReplicaResult {
|
149 | constructor(data) {
|
150 | this.content = data.content;
|
151 | this.cas = data.cas;
|
152 | this.isReplica = data.isReplica;
|
153 | }
|
154 | }
|
155 | exports.LookupInReplicaResult = LookupInReplicaResult;
|
156 |
|
157 |
|
158 |
|
159 |
|
160 |
|
161 | class MutateInResultEntry {
|
162 | |
163 |
|
164 |
|
165 | constructor(data) {
|
166 | this.value = data.value;
|
167 | }
|
168 | }
|
169 | exports.MutateInResultEntry = MutateInResultEntry;
|
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 | class MutateInResult {
|
176 | |
177 |
|
178 |
|
179 | constructor(data) {
|
180 | this.content = data.content;
|
181 | this.cas = data.cas;
|
182 | this.token = data.token;
|
183 | }
|
184 | }
|
185 | exports.MutateInResult = MutateInResult;
|
186 |
|
187 |
|
188 |
|
189 |
|
190 |
|
191 | class CounterResult {
|
192 | |
193 |
|
194 |
|
195 | constructor(data) {
|
196 | this.value = data.value;
|
197 | this.cas = data.cas;
|
198 | this.token = data.token;
|
199 | }
|
200 | }
|
201 | exports.CounterResult = CounterResult;
|