@relyio/sdk 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +540 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-HAQELDZN.cjs → chunk-72UK5U7T.cjs} +70 -60
- package/dist/{chunk-5AZUUV5B.js → chunk-GYHAVYND.js} +1086 -494
- package/dist/{chunk-I3ESNANB.js → chunk-H6IBQSMM.js} +2 -2
- package/dist/{chunk-HT6NFRM2.cjs → chunk-TZL374LS.cjs} +2 -2
- package/dist/{chunk-CIRT6TVT.cjs → chunk-VH2DE7HZ.cjs} +1088 -497
- package/dist/{chunk-XY5KFEFY.js → chunk-YEJUMW4X.js} +70 -60
- package/dist/client/index.cjs +4 -3
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +2 -1
- package/dist/{index-C5mRBb6t.d.cts → define-content-type-DiVpbwNs.d.cts} +1629 -665
- package/dist/{index-mXUx2H99.d.ts → define-content-type-DiVpbwNs.d.ts} +1629 -665
- package/dist/{define-schema-DzYXk4HL.d.ts → define-schema-C-5an28C.d.ts} +211 -429
- package/dist/{define-schema-2xbHgtK-.d.cts → define-schema-D7MButVt.d.cts} +211 -429
- package/dist/{index-Dzo-upNS.d.ts → index-1G97sNA8.d.ts} +677 -296
- package/dist/index-BOQIHnsh.d.ts +818 -0
- package/dist/index-DbsTUw3Q.d.cts +818 -0
- package/dist/{index-BozPz4n1.d.cts → index-M0X45k7J.d.cts} +677 -296
- package/dist/index.cjs +180 -103
- package/dist/index.d.cts +307 -32
- package/dist/index.d.ts +307 -32
- package/dist/index.js +95 -8
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +21 -15
- package/dist/schema/index.d.ts +21 -15
- package/dist/schema/index.js +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.cjs +19 -19
- package/dist/utils/index.d.cts +10 -1
- package/dist/utils/index.d.ts +10 -1
- package/dist/utils/index.js +1 -1
- package/package.json +4 -3
- package/dist/define-content-type-CBfnTWSS.d.cts +0 -716
- package/dist/define-content-type-CBfnTWSS.d.ts +0 -716
package/dist/index.cjs
CHANGED
|
@@ -2,15 +2,100 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunk72UK5U7T_cjs = require('./chunk-72UK5U7T.cjs');
|
|
6
|
+
var chunkVH2DE7HZ_cjs = require('./chunk-VH2DE7HZ.cjs');
|
|
7
7
|
require('./chunk-LSRPMNPT.cjs');
|
|
8
8
|
require('./chunk-PPA2WWOH.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunkTZL374LS_cjs = require('./chunk-TZL374LS.cjs');
|
|
10
10
|
var chunkMWMSFIWN_cjs = require('./chunk-MWMSFIWN.cjs');
|
|
11
11
|
|
|
12
12
|
/* RelyIO SDK - Built with ❤️ by the RelyIO Team */
|
|
13
13
|
|
|
14
|
+
// src/config/key-kind.ts
|
|
15
|
+
var PUBLISHABLE_KEY_PREFIX = "rly_pub_";
|
|
16
|
+
var isPublishableKey = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((apiKey) => apiKey?.startsWith(PUBLISHABLE_KEY_PREFIX) === true, "isPublishableKey");
|
|
17
|
+
|
|
18
|
+
// src/changes/follow.ts
|
|
19
|
+
var FOLLOW_RETRY_BASE_MS = 1e3;
|
|
20
|
+
var FOLLOW_RETRY_MAX_MS = 3e4;
|
|
21
|
+
function classifyFollowFailure(error) {
|
|
22
|
+
if (!(error instanceof chunkVH2DE7HZ_cjs.SDKError) || !error.retryable) return { retry: false };
|
|
23
|
+
const afterMs = chunkVH2DE7HZ_cjs.serviceInstructedDelayMs(error, Date.now());
|
|
24
|
+
return afterMs === void 0 ? { retry: true } : { retry: true, afterMs };
|
|
25
|
+
}
|
|
26
|
+
chunkMWMSFIWN_cjs.__name(classifyFollowFailure, "classifyFollowFailure");
|
|
27
|
+
async function followChanges(source, options) {
|
|
28
|
+
const { signal, onChange, onResync } = options;
|
|
29
|
+
const classify = options.classify ?? classifyFollowFailure;
|
|
30
|
+
const random = options.random ?? Math.random;
|
|
31
|
+
const report = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((state) => {
|
|
32
|
+
if (!chunkVH2DE7HZ_cjs.isAborted(signal)) options.onState?.(state);
|
|
33
|
+
}, "report");
|
|
34
|
+
const resync = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(async (cause) => {
|
|
35
|
+
if (chunkVH2DE7HZ_cjs.isAborted(signal)) return;
|
|
36
|
+
await onResync(cause);
|
|
37
|
+
report({ kind: "resynced", resync: cause });
|
|
38
|
+
}, "resync");
|
|
39
|
+
let since = options.since;
|
|
40
|
+
let failures = 0;
|
|
41
|
+
let unanchored = false;
|
|
42
|
+
let current;
|
|
43
|
+
for (; ; ) {
|
|
44
|
+
if (chunkVH2DE7HZ_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
45
|
+
try {
|
|
46
|
+
if (unanchored) {
|
|
47
|
+
unanchored = false;
|
|
48
|
+
await resync({ cause: "no-cursor" });
|
|
49
|
+
if (chunkVH2DE7HZ_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
50
|
+
}
|
|
51
|
+
report({ kind: "following" });
|
|
52
|
+
const open = {};
|
|
53
|
+
current = open;
|
|
54
|
+
const changes = source({
|
|
55
|
+
...since === void 0 ? {} : { since },
|
|
56
|
+
signal,
|
|
57
|
+
onExpired: /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((expired) => resync({ cause: "expired", expired }), "onExpired"),
|
|
58
|
+
opened: /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(() => {
|
|
59
|
+
if (current === open) failures = 0;
|
|
60
|
+
}, "opened")
|
|
61
|
+
});
|
|
62
|
+
for await (const change of changes) {
|
|
63
|
+
if (chunkVH2DE7HZ_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
64
|
+
failures = 0;
|
|
65
|
+
await onChange(change);
|
|
66
|
+
since = change.cursor;
|
|
67
|
+
if (chunkVH2DE7HZ_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
68
|
+
}
|
|
69
|
+
if (chunkVH2DE7HZ_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
70
|
+
const error = new Error(
|
|
71
|
+
"The change source completed without its signal aborting; a source ends only on abort and throws every other end."
|
|
72
|
+
);
|
|
73
|
+
report({ kind: "stopped", error });
|
|
74
|
+
return { kind: "stopped", since, error };
|
|
75
|
+
} catch (error) {
|
|
76
|
+
current = void 0;
|
|
77
|
+
if (chunkVH2DE7HZ_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
78
|
+
const verdict = classify(error);
|
|
79
|
+
if (!verdict.retry) {
|
|
80
|
+
report({ kind: "stopped", error });
|
|
81
|
+
return { kind: "stopped", since, error };
|
|
82
|
+
}
|
|
83
|
+
failures += 1;
|
|
84
|
+
const retryInMs = retryDelayMs(failures, verdict.afterMs, random);
|
|
85
|
+
report({ kind: "reconnecting", error, retryInMs });
|
|
86
|
+
await chunkVH2DE7HZ_cjs.sleep(retryInMs, signal);
|
|
87
|
+
if (since === void 0) unanchored = true;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
chunkMWMSFIWN_cjs.__name(followChanges, "followChanges");
|
|
92
|
+
function retryDelayMs(failures, hintMs, random) {
|
|
93
|
+
const ceiling = Math.min(FOLLOW_RETRY_BASE_MS * 2 ** (failures - 1), FOLLOW_RETRY_MAX_MS);
|
|
94
|
+
const jittered = ceiling - Math.floor(ceiling / 2 * random());
|
|
95
|
+
return hintMs === void 0 ? jittered : Math.max(hintMs, jittered);
|
|
96
|
+
}
|
|
97
|
+
chunkMWMSFIWN_cjs.__name(retryDelayMs, "retryDelayMs");
|
|
98
|
+
|
|
14
99
|
// src/locale/index.ts
|
|
15
100
|
function needsTranslation(entry, locale) {
|
|
16
101
|
const fallbacks = entry._metadata?.localeFallbacksApplied;
|
|
@@ -54,20 +139,20 @@ function buildLanguageSwitcher(entry, options) {
|
|
|
54
139
|
}
|
|
55
140
|
chunkMWMSFIWN_cjs.__name(buildLanguageSwitcher, "buildLanguageSwitcher");
|
|
56
141
|
function getAvailableLocaleCodes(entry) {
|
|
57
|
-
return entry._metadata?.availableLocales
|
|
142
|
+
return entry._metadata?.availableLocales.map((l) => l.code) ?? [];
|
|
58
143
|
}
|
|
59
144
|
chunkMWMSFIWN_cjs.__name(getAvailableLocaleCodes, "getAvailableLocaleCodes");
|
|
60
145
|
var LOCALE_STATUS_PUBLISHED = "published";
|
|
61
146
|
function getPublishedLocaleCodes(entry) {
|
|
62
|
-
return entry._metadata?.availableLocales
|
|
147
|
+
return entry._metadata?.availableLocales.filter((l) => l.status === LOCALE_STATUS_PUBLISHED).map((l) => l.code) ?? [];
|
|
63
148
|
}
|
|
64
149
|
chunkMWMSFIWN_cjs.__name(getPublishedLocaleCodes, "getPublishedLocaleCodes");
|
|
65
150
|
function hasLocale(entry, localeCode) {
|
|
66
|
-
return entry._metadata?.availableLocales
|
|
151
|
+
return entry._metadata?.availableLocales.some((l) => l.code === localeCode) ?? false;
|
|
67
152
|
}
|
|
68
153
|
chunkMWMSFIWN_cjs.__name(hasLocale, "hasLocale");
|
|
69
154
|
function isPublishedInLocale(entry, localeCode) {
|
|
70
|
-
return entry._metadata?.availableLocales
|
|
155
|
+
return entry._metadata?.availableLocales.some(
|
|
71
156
|
(l) => l.code === localeCode && l.status === LOCALE_STATUS_PUBLISHED
|
|
72
157
|
) ?? false;
|
|
73
158
|
}
|
|
@@ -171,6 +256,7 @@ chunkMWMSFIWN_cjs.__name(requireMetadata, "requireMetadata");
|
|
|
171
256
|
|
|
172
257
|
// src/binding/change-event.ts
|
|
173
258
|
var RELYIO_CHANGE_EVENT = "relyio:change";
|
|
259
|
+
var RELYIO_RESYNC_EVENT = "relyio:resync";
|
|
174
260
|
|
|
175
261
|
// src/image/ladder.ts
|
|
176
262
|
var IMAGE_LADDER = {
|
|
@@ -191,345 +277,335 @@ var VERSION = "__VERSION__";
|
|
|
191
277
|
|
|
192
278
|
Object.defineProperty(exports, "defineAssetType", {
|
|
193
279
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunk72UK5U7T_cjs.defineAssetType; }
|
|
195
281
|
});
|
|
196
282
|
Object.defineProperty(exports, "defineComponent", {
|
|
197
283
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunk72UK5U7T_cjs.defineComponent; }
|
|
199
285
|
});
|
|
200
286
|
Object.defineProperty(exports, "defineContentType", {
|
|
201
287
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunk72UK5U7T_cjs.defineContentType; }
|
|
203
289
|
});
|
|
204
290
|
Object.defineProperty(exports, "defineQuery", {
|
|
205
291
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunk72UK5U7T_cjs.defineQuery; }
|
|
207
293
|
});
|
|
208
294
|
Object.defineProperty(exports, "defineSchema", {
|
|
209
295
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunk72UK5U7T_cjs.defineSchema; }
|
|
211
297
|
});
|
|
212
298
|
Object.defineProperty(exports, "defineSettingsGroup", {
|
|
213
299
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunk72UK5U7T_cjs.defineSettingsGroup; }
|
|
215
301
|
});
|
|
216
302
|
Object.defineProperty(exports, "defineSingleton", {
|
|
217
303
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunk72UK5U7T_cjs.defineSingleton; }
|
|
219
305
|
});
|
|
220
306
|
Object.defineProperty(exports, "defineSingletonContentType", {
|
|
221
307
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunk72UK5U7T_cjs.defineSingletonContentType; }
|
|
223
309
|
});
|
|
224
310
|
Object.defineProperty(exports, "fields", {
|
|
225
311
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunk72UK5U7T_cjs.fields; }
|
|
227
313
|
});
|
|
228
314
|
Object.defineProperty(exports, "fieldset", {
|
|
229
315
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunk72UK5U7T_cjs.fieldset; }
|
|
231
317
|
});
|
|
232
318
|
Object.defineProperty(exports, "AdhocQueryBuilder", {
|
|
233
319
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkVH2DE7HZ_cjs.AdhocQueryBuilder; }
|
|
235
321
|
});
|
|
236
322
|
Object.defineProperty(exports, "AdhocQueryClient", {
|
|
237
323
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkVH2DE7HZ_cjs.AdhocQueryClient; }
|
|
239
325
|
});
|
|
240
326
|
Object.defineProperty(exports, "AssetClient", {
|
|
241
327
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkVH2DE7HZ_cjs.AssetClient; }
|
|
243
329
|
});
|
|
244
330
|
Object.defineProperty(exports, "AssetFileBuilder", {
|
|
245
331
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkVH2DE7HZ_cjs.AssetFileBuilder; }
|
|
247
333
|
});
|
|
248
334
|
Object.defineProperty(exports, "AssetUploadBuilder", {
|
|
249
335
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, "AuthenticationError", {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function () { return chunkCIRT6TVT_cjs.AuthenticationError; }
|
|
336
|
+
get: function () { return chunkVH2DE7HZ_cjs.AssetUploadBuilder; }
|
|
255
337
|
});
|
|
256
338
|
Object.defineProperty(exports, "AuthorizationError", {
|
|
257
339
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkVH2DE7HZ_cjs.AuthorizationError; }
|
|
259
341
|
});
|
|
260
342
|
Object.defineProperty(exports, "AutocompleteBuilder", {
|
|
261
343
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkVH2DE7HZ_cjs.AutocompleteBuilder; }
|
|
263
345
|
});
|
|
264
346
|
Object.defineProperty(exports, "BaseValidationError", {
|
|
265
347
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkVH2DE7HZ_cjs.BaseValidationError; }
|
|
267
349
|
});
|
|
268
350
|
Object.defineProperty(exports, "BatchBuilder", {
|
|
269
351
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkVH2DE7HZ_cjs.BatchBuilder; }
|
|
271
353
|
});
|
|
272
354
|
Object.defineProperty(exports, "BatchClient", {
|
|
273
355
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkVH2DE7HZ_cjs.BatchClient; }
|
|
275
357
|
});
|
|
276
358
|
Object.defineProperty(exports, "ChangesExpiredError", {
|
|
277
359
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkVH2DE7HZ_cjs.ChangesExpiredError; }
|
|
279
361
|
});
|
|
280
362
|
Object.defineProperty(exports, "ConnectionError", {
|
|
281
363
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkVH2DE7HZ_cjs.ConnectionError; }
|
|
283
365
|
});
|
|
284
366
|
Object.defineProperty(exports, "ContentByIdBuilder", {
|
|
285
367
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkVH2DE7HZ_cjs.ContentByIdBuilder; }
|
|
287
369
|
});
|
|
288
370
|
Object.defineProperty(exports, "ContentClient", {
|
|
289
371
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkVH2DE7HZ_cjs.ContentClient; }
|
|
291
373
|
});
|
|
292
374
|
Object.defineProperty(exports, "ContentQueryBuilder", {
|
|
293
375
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkVH2DE7HZ_cjs.ContentQueryBuilder; }
|
|
295
377
|
});
|
|
296
378
|
Object.defineProperty(exports, "ErrorMapper", {
|
|
297
379
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkVH2DE7HZ_cjs.ErrorMapper; }
|
|
299
381
|
});
|
|
300
382
|
Object.defineProperty(exports, "FileUploadError", {
|
|
301
383
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkVH2DE7HZ_cjs.FileUploadError; }
|
|
303
385
|
});
|
|
304
386
|
Object.defineProperty(exports, "FileValidationError", {
|
|
305
387
|
enumerable: true,
|
|
306
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkVH2DE7HZ_cjs.FileValidationError; }
|
|
307
389
|
});
|
|
308
390
|
Object.defineProperty(exports, "HttpClient", {
|
|
309
391
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkVH2DE7HZ_cjs.HttpClient; }
|
|
311
393
|
});
|
|
312
394
|
Object.defineProperty(exports, "InvalidApiKeyError", {
|
|
313
395
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
315
|
-
});
|
|
316
|
-
Object.defineProperty(exports, "InvalidFieldTypeError", {
|
|
317
|
-
enumerable: true,
|
|
318
|
-
get: function () { return chunkCIRT6TVT_cjs.InvalidFieldTypeError; }
|
|
396
|
+
get: function () { return chunkVH2DE7HZ_cjs.InvalidApiKeyError; }
|
|
319
397
|
});
|
|
320
398
|
Object.defineProperty(exports, "InvalidPayloadError", {
|
|
321
399
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkVH2DE7HZ_cjs.InvalidPayloadError; }
|
|
323
401
|
});
|
|
324
402
|
Object.defineProperty(exports, "MethodNotAllowedError", {
|
|
325
403
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkVH2DE7HZ_cjs.MethodNotAllowedError; }
|
|
327
405
|
});
|
|
328
406
|
Object.defineProperty(exports, "MissingApiKeyError", {
|
|
329
407
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkVH2DE7HZ_cjs.MissingApiKeyError; }
|
|
331
409
|
});
|
|
332
410
|
Object.defineProperty(exports, "NetworkError", {
|
|
333
411
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkVH2DE7HZ_cjs.NetworkError; }
|
|
335
413
|
});
|
|
336
414
|
Object.defineProperty(exports, "PayloadTooLargeError", {
|
|
337
415
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkVH2DE7HZ_cjs.PayloadTooLargeError; }
|
|
339
417
|
});
|
|
340
418
|
Object.defineProperty(exports, "PlanFeatureUnavailableError", {
|
|
341
419
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkVH2DE7HZ_cjs.PlanFeatureUnavailableError; }
|
|
343
421
|
});
|
|
344
422
|
Object.defineProperty(exports, "RateLimitError", {
|
|
345
423
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkVH2DE7HZ_cjs.RateLimitError; }
|
|
347
425
|
});
|
|
348
426
|
Object.defineProperty(exports, "ReadOnlyKeyError", {
|
|
349
427
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
351
|
-
});
|
|
352
|
-
Object.defineProperty(exports, "RequiredFieldError", {
|
|
353
|
-
enumerable: true,
|
|
354
|
-
get: function () { return chunkCIRT6TVT_cjs.RequiredFieldError; }
|
|
428
|
+
get: function () { return chunkVH2DE7HZ_cjs.ReadOnlyKeyError; }
|
|
355
429
|
});
|
|
356
430
|
Object.defineProperty(exports, "ResourceConflictError", {
|
|
357
431
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkVH2DE7HZ_cjs.ResourceConflictError; }
|
|
359
433
|
});
|
|
360
434
|
Object.defineProperty(exports, "ResourceExpiredError", {
|
|
361
435
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkVH2DE7HZ_cjs.ResourceExpiredError; }
|
|
363
437
|
});
|
|
364
438
|
Object.defineProperty(exports, "ResourceNotFoundError", {
|
|
365
439
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
440
|
+
get: function () { return chunkVH2DE7HZ_cjs.ResourceNotFoundError; }
|
|
367
441
|
});
|
|
368
442
|
Object.defineProperty(exports, "SDKError", {
|
|
369
443
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
371
|
-
});
|
|
372
|
-
Object.defineProperty(exports, "SchemaValidationError", {
|
|
373
|
-
enumerable: true,
|
|
374
|
-
get: function () { return chunkCIRT6TVT_cjs.SchemaValidationError; }
|
|
444
|
+
get: function () { return chunkVH2DE7HZ_cjs.SDKError; }
|
|
375
445
|
});
|
|
376
446
|
Object.defineProperty(exports, "SearchBuilder", {
|
|
377
447
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkVH2DE7HZ_cjs.SearchBuilder; }
|
|
379
449
|
});
|
|
380
450
|
Object.defineProperty(exports, "SearchClient", {
|
|
381
451
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
452
|
+
get: function () { return chunkVH2DE7HZ_cjs.SearchClient; }
|
|
383
453
|
});
|
|
384
454
|
Object.defineProperty(exports, "ServerError", {
|
|
385
455
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
456
|
+
get: function () { return chunkVH2DE7HZ_cjs.ServerError; }
|
|
387
457
|
});
|
|
388
458
|
Object.defineProperty(exports, "ServiceIndeterminateError", {
|
|
389
459
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
460
|
+
get: function () { return chunkVH2DE7HZ_cjs.ServiceIndeterminateError; }
|
|
391
461
|
});
|
|
392
462
|
Object.defineProperty(exports, "SettingsClient", {
|
|
393
463
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
464
|
+
get: function () { return chunkVH2DE7HZ_cjs.SettingsClient; }
|
|
395
465
|
});
|
|
396
466
|
Object.defineProperty(exports, "SimilarBuilder", {
|
|
397
467
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
468
|
+
get: function () { return chunkVH2DE7HZ_cjs.SimilarBuilder; }
|
|
399
469
|
});
|
|
400
470
|
Object.defineProperty(exports, "SingletonClient", {
|
|
401
471
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
472
|
+
get: function () { return chunkVH2DE7HZ_cjs.SingletonClient; }
|
|
403
473
|
});
|
|
404
474
|
Object.defineProperty(exports, "TimeoutError", {
|
|
405
475
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
476
|
+
get: function () { return chunkVH2DE7HZ_cjs.TimeoutError; }
|
|
407
477
|
});
|
|
408
478
|
Object.defineProperty(exports, "TransactionRolledBackError", {
|
|
409
479
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
480
|
+
get: function () { return chunkVH2DE7HZ_cjs.TransactionRolledBackError; }
|
|
411
481
|
});
|
|
412
482
|
Object.defineProperty(exports, "TypedRelyIOClient", {
|
|
413
483
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
484
|
+
get: function () { return chunkVH2DE7HZ_cjs.TypedRelyIOClient; }
|
|
415
485
|
});
|
|
416
486
|
Object.defineProperty(exports, "UnknownContractError", {
|
|
417
487
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
488
|
+
get: function () { return chunkVH2DE7HZ_cjs.UnknownContractError; }
|
|
419
489
|
});
|
|
420
490
|
Object.defineProperty(exports, "UsageQuotaExceededError", {
|
|
421
491
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
492
|
+
get: function () { return chunkVH2DE7HZ_cjs.UsageQuotaExceededError; }
|
|
423
493
|
});
|
|
424
494
|
Object.defineProperty(exports, "ValidationError", {
|
|
425
495
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
496
|
+
get: function () { return chunkVH2DE7HZ_cjs.ValidationError; }
|
|
427
497
|
});
|
|
428
498
|
Object.defineProperty(exports, "createClient", {
|
|
429
499
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
500
|
+
get: function () { return chunkVH2DE7HZ_cjs.createClient; }
|
|
431
501
|
});
|
|
432
502
|
Object.defineProperty(exports, "default", {
|
|
433
503
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
504
|
+
get: function () { return chunkVH2DE7HZ_cjs.createClient; }
|
|
435
505
|
});
|
|
436
506
|
Object.defineProperty(exports, "entityTagOf", {
|
|
437
507
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
508
|
+
get: function () { return chunkVH2DE7HZ_cjs.entityTagOf; }
|
|
439
509
|
});
|
|
440
510
|
Object.defineProperty(exports, "isAssetEntry", {
|
|
441
511
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
512
|
+
get: function () { return chunkVH2DE7HZ_cjs.isAssetEntry; }
|
|
443
513
|
});
|
|
444
514
|
Object.defineProperty(exports, "isResourceNotFound", {
|
|
445
515
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
516
|
+
get: function () { return chunkVH2DE7HZ_cjs.isResourceNotFound; }
|
|
447
517
|
});
|
|
448
518
|
Object.defineProperty(exports, "matchRoute", {
|
|
449
519
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
520
|
+
get: function () { return chunkVH2DE7HZ_cjs.matchRoute; }
|
|
451
521
|
});
|
|
452
522
|
Object.defineProperty(exports, "validateFile", {
|
|
453
523
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
524
|
+
get: function () { return chunkVH2DE7HZ_cjs.validateFile; }
|
|
455
525
|
});
|
|
456
526
|
Object.defineProperty(exports, "camelToSnake", {
|
|
457
527
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
528
|
+
get: function () { return chunkTZL374LS_cjs.camelToSnake; }
|
|
459
529
|
});
|
|
460
530
|
Object.defineProperty(exports, "createDeferred", {
|
|
461
531
|
enumerable: true,
|
|
462
|
-
get: function () { return
|
|
532
|
+
get: function () { return chunkTZL374LS_cjs.createDeferred; }
|
|
463
533
|
});
|
|
464
534
|
Object.defineProperty(exports, "debounce", {
|
|
465
535
|
enumerable: true,
|
|
466
|
-
get: function () { return
|
|
536
|
+
get: function () { return chunkTZL374LS_cjs.debounce; }
|
|
467
537
|
});
|
|
468
538
|
Object.defineProperty(exports, "deepClone", {
|
|
469
539
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
540
|
+
get: function () { return chunkTZL374LS_cjs.deepClone; }
|
|
471
541
|
});
|
|
472
542
|
Object.defineProperty(exports, "generateId", {
|
|
473
543
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
544
|
+
get: function () { return chunkTZL374LS_cjs.generateId; }
|
|
475
545
|
});
|
|
476
546
|
Object.defineProperty(exports, "isBrowser", {
|
|
477
547
|
enumerable: true,
|
|
478
|
-
get: function () { return
|
|
548
|
+
get: function () { return chunkTZL374LS_cjs.isBrowser; }
|
|
479
549
|
});
|
|
480
550
|
Object.defineProperty(exports, "isNode", {
|
|
481
551
|
enumerable: true,
|
|
482
|
-
get: function () { return
|
|
552
|
+
get: function () { return chunkTZL374LS_cjs.isNode; }
|
|
483
553
|
});
|
|
484
554
|
Object.defineProperty(exports, "isPlainObject", {
|
|
485
555
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
556
|
+
get: function () { return chunkTZL374LS_cjs.isPlainObject; }
|
|
487
557
|
});
|
|
488
558
|
Object.defineProperty(exports, "isValidEmail", {
|
|
489
559
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
560
|
+
get: function () { return chunkTZL374LS_cjs.isValidEmail; }
|
|
491
561
|
});
|
|
492
562
|
Object.defineProperty(exports, "isValidUrl", {
|
|
493
563
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
564
|
+
get: function () { return chunkTZL374LS_cjs.isValidUrl; }
|
|
495
565
|
});
|
|
496
566
|
Object.defineProperty(exports, "mergeDeep", {
|
|
497
567
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
568
|
+
get: function () { return chunkTZL374LS_cjs.mergeDeep; }
|
|
499
569
|
});
|
|
500
570
|
Object.defineProperty(exports, "omit", {
|
|
501
571
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
572
|
+
get: function () { return chunkTZL374LS_cjs.omit; }
|
|
503
573
|
});
|
|
504
574
|
Object.defineProperty(exports, "pick", {
|
|
505
575
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
576
|
+
get: function () { return chunkTZL374LS_cjs.pick; }
|
|
507
577
|
});
|
|
508
578
|
Object.defineProperty(exports, "retry", {
|
|
509
579
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
580
|
+
get: function () { return chunkTZL374LS_cjs.retry; }
|
|
511
581
|
});
|
|
512
582
|
Object.defineProperty(exports, "sleep", {
|
|
513
583
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
584
|
+
get: function () { return chunkTZL374LS_cjs.sleep; }
|
|
515
585
|
});
|
|
516
586
|
Object.defineProperty(exports, "snakeToCamel", {
|
|
517
587
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
588
|
+
get: function () { return chunkTZL374LS_cjs.snakeToCamel; }
|
|
519
589
|
});
|
|
520
590
|
Object.defineProperty(exports, "throttle", {
|
|
521
591
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
592
|
+
get: function () { return chunkTZL374LS_cjs.throttle; }
|
|
523
593
|
});
|
|
524
594
|
Object.defineProperty(exports, "toSafeString", {
|
|
525
595
|
enumerable: true,
|
|
526
|
-
get: function () { return
|
|
596
|
+
get: function () { return chunkTZL374LS_cjs.toSafeString; }
|
|
527
597
|
});
|
|
598
|
+
exports.FOLLOW_RETRY_BASE_MS = FOLLOW_RETRY_BASE_MS;
|
|
599
|
+
exports.FOLLOW_RETRY_MAX_MS = FOLLOW_RETRY_MAX_MS;
|
|
528
600
|
exports.IMAGE_LADDER = IMAGE_LADDER;
|
|
601
|
+
exports.PUBLISHABLE_KEY_PREFIX = PUBLISHABLE_KEY_PREFIX;
|
|
529
602
|
exports.RELYIO_CHANGE_EVENT = RELYIO_CHANGE_EVENT;
|
|
603
|
+
exports.RELYIO_RESYNC_EVENT = RELYIO_RESYNC_EVENT;
|
|
530
604
|
exports.VERSION = VERSION;
|
|
531
605
|
exports.buildLanguageSwitcher = buildLanguageSwitcher;
|
|
606
|
+
exports.classifyFollowFailure = classifyFollowFailure;
|
|
532
607
|
exports.estimateTranslationCompleteness = estimateTranslationCompleteness;
|
|
608
|
+
exports.followChanges = followChanges;
|
|
533
609
|
exports.getAllLocalizedValues = getAllLocalizedValues;
|
|
534
610
|
exports.getAvailableLocaleCodes = getAvailableLocaleCodes;
|
|
535
611
|
exports.getDefaultLocale = getDefaultLocale;
|
|
@@ -540,6 +616,7 @@ exports.getPublishedLocaleCodes = getPublishedLocaleCodes;
|
|
|
540
616
|
exports.getRequestedLocale = getRequestedLocale;
|
|
541
617
|
exports.hasLocale = hasLocale;
|
|
542
618
|
exports.isFieldFallback = isFieldFallback;
|
|
619
|
+
exports.isPublishableKey = isPublishableKey;
|
|
543
620
|
exports.isPublishedInLocale = isPublishedInLocale;
|
|
544
621
|
exports.localeHelpers = localeHelpers;
|
|
545
622
|
exports.needsTranslation = needsTranslation;
|