@relyio/sdk 0.6.0 → 0.8.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 +400 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-DY2XT7OF.cjs → chunk-72UK5U7T.cjs} +70 -60
- package/dist/{chunk-I3ESNANB.js → chunk-H6IBQSMM.js} +2 -2
- package/dist/{chunk-7ABNXVWL.js → chunk-QFHVF3YF.js} +1617 -404
- package/dist/{chunk-HT6NFRM2.cjs → chunk-TZL374LS.cjs} +2 -2
- package/dist/{chunk-GCMQUM6N.cjs → chunk-XIE7WJV3.cjs} +1621 -407
- package/dist/{chunk-XJVY2CLY.js → chunk-YEJUMW4X.js} +70 -60
- package/dist/client/index.cjs +4 -3
- package/dist/client/index.d.cts +5 -4
- package/dist/client/index.d.ts +5 -4
- package/dist/client/index.js +2 -1
- package/dist/{index-d1Kz1e19.d.cts → define-content-type-cEGjIwT5.d.cts} +1859 -733
- package/dist/{index-yPbhZc6q.d.ts → define-content-type-cEGjIwT5.d.ts} +1859 -733
- package/dist/{define-schema-1kr2HIzN.d.cts → define-schema-BPj2srgh.d.ts} +189 -85
- package/dist/{define-schema-ChvAzY8H.d.ts → define-schema-DgbJ5Kwn.d.cts} +189 -85
- package/dist/index-B_rIWO_l.d.cts +860 -0
- package/dist/index-Cv4tmcrw.d.ts +860 -0
- package/dist/{index-Df1VsfJR.d.cts → index-DBoPPlT1.d.cts} +684 -277
- package/dist/{index-XqoGUaAY.d.ts → index-yRJ2IqM_.d.ts} +684 -277
- package/dist/index.cjs +148 -124
- package/dist/index.d.cts +174 -64
- package/dist/index.d.ts +174 -64
- package/dist/index.js +43 -18
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +13 -11
- package/dist/schema/index.d.ts +13 -11
- 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 +2 -1
- package/dist/define-content-type-CDB3kyeA.d.cts +0 -1173
- package/dist/define-content-type-CDB3kyeA.d.ts +0 -1173
package/dist/index.cjs
CHANGED
|
@@ -2,37 +2,57 @@
|
|
|
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 chunkXIE7WJV3_cjs = require('./chunk-XIE7WJV3.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
14
|
// src/changes/follow.ts
|
|
19
15
|
var FOLLOW_RETRY_BASE_MS = 1e3;
|
|
20
16
|
var FOLLOW_RETRY_MAX_MS = 3e4;
|
|
17
|
+
var FOLLOW_BACK_OFF_MAX_MS = 15 * 6e4;
|
|
18
|
+
function stopOnUnknownAnswer(_answer) {
|
|
19
|
+
return { retry: false };
|
|
20
|
+
}
|
|
21
|
+
chunkMWMSFIWN_cjs.__name(stopOnUnknownAnswer, "stopOnUnknownAnswer");
|
|
21
22
|
function classifyFollowFailure(error) {
|
|
22
|
-
if (
|
|
23
|
-
|
|
23
|
+
if (error instanceof chunkXIE7WJV3_cjs.LiveEdgeError) return liveEdgeVerdict(error);
|
|
24
|
+
if (!(error instanceof chunkXIE7WJV3_cjs.SDKError) || !error.retryable) return { retry: false };
|
|
25
|
+
const afterMs = chunkXIE7WJV3_cjs.serviceInstructedDelayMs(error, Date.now());
|
|
24
26
|
return afterMs === void 0 ? { retry: true } : { retry: true, afterMs };
|
|
25
27
|
}
|
|
26
28
|
chunkMWMSFIWN_cjs.__name(classifyFollowFailure, "classifyFollowFailure");
|
|
29
|
+
function liveEdgeVerdict(error) {
|
|
30
|
+
const hint = error.retryAfterMs === void 0 ? {} : { afterMs: error.retryAfterMs };
|
|
31
|
+
switch (error.retry) {
|
|
32
|
+
case "stop": {
|
|
33
|
+
return { retry: false };
|
|
34
|
+
}
|
|
35
|
+
case "retry": {
|
|
36
|
+
return { retry: true, ...hint };
|
|
37
|
+
}
|
|
38
|
+
case "back-off": {
|
|
39
|
+
return { retry: true, ...hint, backOffMs: chunkXIE7WJV3_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
|
|
40
|
+
}
|
|
41
|
+
default: {
|
|
42
|
+
return stopOnUnknownAnswer(error.retry);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
chunkMWMSFIWN_cjs.__name(liveEdgeVerdict, "liveEdgeVerdict");
|
|
27
47
|
async function followChanges(source, options) {
|
|
28
48
|
const { signal, onChange, onResync } = options;
|
|
29
49
|
const classify = options.classify ?? classifyFollowFailure;
|
|
30
50
|
const random = options.random ?? Math.random;
|
|
31
51
|
const report = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((state) => {
|
|
32
|
-
if (!
|
|
52
|
+
if (!chunkXIE7WJV3_cjs.isAborted(signal)) options.onState?.(state);
|
|
33
53
|
}, "report");
|
|
34
54
|
const resync = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(async (cause) => {
|
|
35
|
-
if (
|
|
55
|
+
if (chunkXIE7WJV3_cjs.isAborted(signal)) return;
|
|
36
56
|
await onResync(cause);
|
|
37
57
|
report({ kind: "resynced", resync: cause });
|
|
38
58
|
}, "resync");
|
|
@@ -41,12 +61,12 @@ async function followChanges(source, options) {
|
|
|
41
61
|
let unanchored = false;
|
|
42
62
|
let current;
|
|
43
63
|
for (; ; ) {
|
|
44
|
-
if (
|
|
64
|
+
if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
45
65
|
try {
|
|
46
66
|
if (unanchored) {
|
|
47
67
|
unanchored = false;
|
|
48
68
|
await resync({ cause: "no-cursor" });
|
|
49
|
-
if (
|
|
69
|
+
if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
50
70
|
}
|
|
51
71
|
report({ kind: "following" });
|
|
52
72
|
const open = {};
|
|
@@ -57,16 +77,19 @@ async function followChanges(source, options) {
|
|
|
57
77
|
onExpired: /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((expired) => resync({ cause: "expired", expired }), "onExpired"),
|
|
58
78
|
opened: /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(() => {
|
|
59
79
|
if (current === open) failures = 0;
|
|
60
|
-
}, "opened")
|
|
80
|
+
}, "opened"),
|
|
81
|
+
reached: /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((cursor) => {
|
|
82
|
+
if (current === open) since = cursor;
|
|
83
|
+
}, "reached")
|
|
61
84
|
});
|
|
62
85
|
for await (const change of changes) {
|
|
63
|
-
if (
|
|
86
|
+
if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
64
87
|
failures = 0;
|
|
65
88
|
await onChange(change);
|
|
66
89
|
since = change.cursor;
|
|
67
|
-
if (
|
|
90
|
+
if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
68
91
|
}
|
|
69
|
-
if (
|
|
92
|
+
if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
70
93
|
const error = new Error(
|
|
71
94
|
"The change source completed without its signal aborting; a source ends only on abort and throws every other end."
|
|
72
95
|
);
|
|
@@ -74,25 +97,27 @@ async function followChanges(source, options) {
|
|
|
74
97
|
return { kind: "stopped", since, error };
|
|
75
98
|
} catch (error) {
|
|
76
99
|
current = void 0;
|
|
77
|
-
if (
|
|
100
|
+
if (chunkXIE7WJV3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
78
101
|
const verdict = classify(error);
|
|
79
102
|
if (!verdict.retry) {
|
|
80
103
|
report({ kind: "stopped", error });
|
|
81
104
|
return { kind: "stopped", since, error };
|
|
82
105
|
}
|
|
83
106
|
failures += 1;
|
|
84
|
-
const retryInMs = retryDelayMs(failures, verdict
|
|
107
|
+
const retryInMs = retryDelayMs(failures, verdict, random);
|
|
85
108
|
report({ kind: "reconnecting", error, retryInMs });
|
|
86
|
-
await
|
|
109
|
+
await chunkXIE7WJV3_cjs.sleep(retryInMs, signal);
|
|
87
110
|
if (since === void 0) unanchored = true;
|
|
88
111
|
}
|
|
89
112
|
}
|
|
90
113
|
}
|
|
91
114
|
chunkMWMSFIWN_cjs.__name(followChanges, "followChanges");
|
|
92
|
-
function retryDelayMs(failures,
|
|
93
|
-
const
|
|
115
|
+
function retryDelayMs(failures, verdict, random) {
|
|
116
|
+
const { afterMs, backOffMs } = verdict;
|
|
117
|
+
const [base, max] = backOffMs === void 0 ? [FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS] : [2 * backOffMs, Math.max(FOLLOW_BACK_OFF_MAX_MS, 2 * backOffMs)];
|
|
118
|
+
const ceiling = Math.min(base * 2 ** (failures - 1), max);
|
|
94
119
|
const jittered = ceiling - Math.floor(ceiling / 2 * random());
|
|
95
|
-
return
|
|
120
|
+
return afterMs === void 0 ? jittered : Math.max(afterMs, jittered);
|
|
96
121
|
}
|
|
97
122
|
chunkMWMSFIWN_cjs.__name(retryDelayMs, "retryDelayMs");
|
|
98
123
|
|
|
@@ -139,20 +164,20 @@ function buildLanguageSwitcher(entry, options) {
|
|
|
139
164
|
}
|
|
140
165
|
chunkMWMSFIWN_cjs.__name(buildLanguageSwitcher, "buildLanguageSwitcher");
|
|
141
166
|
function getAvailableLocaleCodes(entry) {
|
|
142
|
-
return entry._metadata?.availableLocales
|
|
167
|
+
return entry._metadata?.availableLocales.map((l) => l.code) ?? [];
|
|
143
168
|
}
|
|
144
169
|
chunkMWMSFIWN_cjs.__name(getAvailableLocaleCodes, "getAvailableLocaleCodes");
|
|
145
170
|
var LOCALE_STATUS_PUBLISHED = "published";
|
|
146
171
|
function getPublishedLocaleCodes(entry) {
|
|
147
|
-
return entry._metadata?.availableLocales
|
|
172
|
+
return entry._metadata?.availableLocales.filter((l) => l.status === LOCALE_STATUS_PUBLISHED).map((l) => l.code) ?? [];
|
|
148
173
|
}
|
|
149
174
|
chunkMWMSFIWN_cjs.__name(getPublishedLocaleCodes, "getPublishedLocaleCodes");
|
|
150
175
|
function hasLocale(entry, localeCode) {
|
|
151
|
-
return entry._metadata?.availableLocales
|
|
176
|
+
return entry._metadata?.availableLocales.some((l) => l.code === localeCode) ?? false;
|
|
152
177
|
}
|
|
153
178
|
chunkMWMSFIWN_cjs.__name(hasLocale, "hasLocale");
|
|
154
179
|
function isPublishedInLocale(entry, localeCode) {
|
|
155
|
-
return entry._metadata?.availableLocales
|
|
180
|
+
return entry._metadata?.availableLocales.some(
|
|
156
181
|
(l) => l.code === localeCode && l.status === LOCALE_STATUS_PUBLISHED
|
|
157
182
|
) ?? false;
|
|
158
183
|
}
|
|
@@ -277,344 +302,344 @@ var VERSION = "__VERSION__";
|
|
|
277
302
|
|
|
278
303
|
Object.defineProperty(exports, "defineAssetType", {
|
|
279
304
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunk72UK5U7T_cjs.defineAssetType; }
|
|
281
306
|
});
|
|
282
307
|
Object.defineProperty(exports, "defineComponent", {
|
|
283
308
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunk72UK5U7T_cjs.defineComponent; }
|
|
285
310
|
});
|
|
286
311
|
Object.defineProperty(exports, "defineContentType", {
|
|
287
312
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunk72UK5U7T_cjs.defineContentType; }
|
|
289
314
|
});
|
|
290
315
|
Object.defineProperty(exports, "defineQuery", {
|
|
291
316
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunk72UK5U7T_cjs.defineQuery; }
|
|
293
318
|
});
|
|
294
319
|
Object.defineProperty(exports, "defineSchema", {
|
|
295
320
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunk72UK5U7T_cjs.defineSchema; }
|
|
297
322
|
});
|
|
298
323
|
Object.defineProperty(exports, "defineSettingsGroup", {
|
|
299
324
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunk72UK5U7T_cjs.defineSettingsGroup; }
|
|
301
326
|
});
|
|
302
327
|
Object.defineProperty(exports, "defineSingleton", {
|
|
303
328
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunk72UK5U7T_cjs.defineSingleton; }
|
|
305
330
|
});
|
|
306
331
|
Object.defineProperty(exports, "defineSingletonContentType", {
|
|
307
332
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunk72UK5U7T_cjs.defineSingletonContentType; }
|
|
309
334
|
});
|
|
310
335
|
Object.defineProperty(exports, "fields", {
|
|
311
336
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunk72UK5U7T_cjs.fields; }
|
|
313
338
|
});
|
|
314
339
|
Object.defineProperty(exports, "fieldset", {
|
|
315
340
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunk72UK5U7T_cjs.fieldset; }
|
|
317
342
|
});
|
|
318
343
|
Object.defineProperty(exports, "AdhocQueryBuilder", {
|
|
319
344
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkXIE7WJV3_cjs.AdhocQueryBuilder; }
|
|
321
346
|
});
|
|
322
347
|
Object.defineProperty(exports, "AdhocQueryClient", {
|
|
323
348
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkXIE7WJV3_cjs.AdhocQueryClient; }
|
|
325
350
|
});
|
|
326
351
|
Object.defineProperty(exports, "AssetClient", {
|
|
327
352
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkXIE7WJV3_cjs.AssetClient; }
|
|
329
354
|
});
|
|
330
355
|
Object.defineProperty(exports, "AssetFileBuilder", {
|
|
331
356
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkXIE7WJV3_cjs.AssetFileBuilder; }
|
|
333
358
|
});
|
|
334
359
|
Object.defineProperty(exports, "AssetUploadBuilder", {
|
|
335
360
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
337
|
-
});
|
|
338
|
-
Object.defineProperty(exports, "AuthenticationError", {
|
|
339
|
-
enumerable: true,
|
|
340
|
-
get: function () { return chunkGCMQUM6N_cjs.AuthenticationError; }
|
|
361
|
+
get: function () { return chunkXIE7WJV3_cjs.AssetUploadBuilder; }
|
|
341
362
|
});
|
|
342
363
|
Object.defineProperty(exports, "AuthorizationError", {
|
|
343
364
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkXIE7WJV3_cjs.AuthorizationError; }
|
|
345
366
|
});
|
|
346
367
|
Object.defineProperty(exports, "AutocompleteBuilder", {
|
|
347
368
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunkXIE7WJV3_cjs.AutocompleteBuilder; }
|
|
349
370
|
});
|
|
350
371
|
Object.defineProperty(exports, "BaseValidationError", {
|
|
351
372
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunkXIE7WJV3_cjs.BaseValidationError; }
|
|
353
374
|
});
|
|
354
375
|
Object.defineProperty(exports, "BatchBuilder", {
|
|
355
376
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunkXIE7WJV3_cjs.BatchBuilder; }
|
|
357
378
|
});
|
|
358
379
|
Object.defineProperty(exports, "BatchClient", {
|
|
359
380
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
381
|
+
get: function () { return chunkXIE7WJV3_cjs.BatchClient; }
|
|
361
382
|
});
|
|
362
383
|
Object.defineProperty(exports, "ChangesExpiredError", {
|
|
363
384
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
385
|
+
get: function () { return chunkXIE7WJV3_cjs.ChangesExpiredError; }
|
|
365
386
|
});
|
|
366
387
|
Object.defineProperty(exports, "ConnectionError", {
|
|
367
388
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunkXIE7WJV3_cjs.ConnectionError; }
|
|
369
390
|
});
|
|
370
391
|
Object.defineProperty(exports, "ContentByIdBuilder", {
|
|
371
392
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunkXIE7WJV3_cjs.ContentByIdBuilder; }
|
|
373
394
|
});
|
|
374
395
|
Object.defineProperty(exports, "ContentClient", {
|
|
375
396
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunkXIE7WJV3_cjs.ContentClient; }
|
|
377
398
|
});
|
|
378
399
|
Object.defineProperty(exports, "ContentQueryBuilder", {
|
|
379
400
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
401
|
+
get: function () { return chunkXIE7WJV3_cjs.ContentQueryBuilder; }
|
|
381
402
|
});
|
|
382
403
|
Object.defineProperty(exports, "ErrorMapper", {
|
|
383
404
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
405
|
+
get: function () { return chunkXIE7WJV3_cjs.ErrorMapper; }
|
|
385
406
|
});
|
|
386
407
|
Object.defineProperty(exports, "FileUploadError", {
|
|
387
408
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
409
|
+
get: function () { return chunkXIE7WJV3_cjs.FileUploadError; }
|
|
389
410
|
});
|
|
390
411
|
Object.defineProperty(exports, "FileValidationError", {
|
|
391
412
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
413
|
+
get: function () { return chunkXIE7WJV3_cjs.FileValidationError; }
|
|
393
414
|
});
|
|
394
415
|
Object.defineProperty(exports, "HttpClient", {
|
|
395
416
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
417
|
+
get: function () { return chunkXIE7WJV3_cjs.HttpClient; }
|
|
397
418
|
});
|
|
398
419
|
Object.defineProperty(exports, "InvalidApiKeyError", {
|
|
399
420
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
421
|
+
get: function () { return chunkXIE7WJV3_cjs.InvalidApiKeyError; }
|
|
422
|
+
});
|
|
423
|
+
Object.defineProperty(exports, "InvalidPayloadError", {
|
|
424
|
+
enumerable: true,
|
|
425
|
+
get: function () { return chunkXIE7WJV3_cjs.InvalidPayloadError; }
|
|
401
426
|
});
|
|
402
|
-
Object.defineProperty(exports, "
|
|
427
|
+
Object.defineProperty(exports, "LIVE_KEEPALIVE_INTERVAL_MS", {
|
|
403
428
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
429
|
+
get: function () { return chunkXIE7WJV3_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
|
|
405
430
|
});
|
|
406
|
-
Object.defineProperty(exports, "
|
|
431
|
+
Object.defineProperty(exports, "LiveEdgeError", {
|
|
407
432
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
433
|
+
get: function () { return chunkXIE7WJV3_cjs.LiveEdgeError; }
|
|
409
434
|
});
|
|
410
435
|
Object.defineProperty(exports, "MethodNotAllowedError", {
|
|
411
436
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
437
|
+
get: function () { return chunkXIE7WJV3_cjs.MethodNotAllowedError; }
|
|
413
438
|
});
|
|
414
439
|
Object.defineProperty(exports, "MissingApiKeyError", {
|
|
415
440
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
441
|
+
get: function () { return chunkXIE7WJV3_cjs.MissingApiKeyError; }
|
|
417
442
|
});
|
|
418
443
|
Object.defineProperty(exports, "NetworkError", {
|
|
419
444
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
445
|
+
get: function () { return chunkXIE7WJV3_cjs.NetworkError; }
|
|
446
|
+
});
|
|
447
|
+
Object.defineProperty(exports, "PUBLISHABLE_KEY_PREFIX", {
|
|
448
|
+
enumerable: true,
|
|
449
|
+
get: function () { return chunkXIE7WJV3_cjs.PUBLISHABLE_KEY_PREFIX; }
|
|
421
450
|
});
|
|
422
451
|
Object.defineProperty(exports, "PayloadTooLargeError", {
|
|
423
452
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
453
|
+
get: function () { return chunkXIE7WJV3_cjs.PayloadTooLargeError; }
|
|
425
454
|
});
|
|
426
455
|
Object.defineProperty(exports, "PlanFeatureUnavailableError", {
|
|
427
456
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
457
|
+
get: function () { return chunkXIE7WJV3_cjs.PlanFeatureUnavailableError; }
|
|
429
458
|
});
|
|
430
459
|
Object.defineProperty(exports, "RateLimitError", {
|
|
431
460
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
461
|
+
get: function () { return chunkXIE7WJV3_cjs.RateLimitError; }
|
|
433
462
|
});
|
|
434
463
|
Object.defineProperty(exports, "ReadOnlyKeyError", {
|
|
435
464
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
437
|
-
});
|
|
438
|
-
Object.defineProperty(exports, "RequiredFieldError", {
|
|
439
|
-
enumerable: true,
|
|
440
|
-
get: function () { return chunkGCMQUM6N_cjs.RequiredFieldError; }
|
|
465
|
+
get: function () { return chunkXIE7WJV3_cjs.ReadOnlyKeyError; }
|
|
441
466
|
});
|
|
442
467
|
Object.defineProperty(exports, "ResourceConflictError", {
|
|
443
468
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
469
|
+
get: function () { return chunkXIE7WJV3_cjs.ResourceConflictError; }
|
|
445
470
|
});
|
|
446
471
|
Object.defineProperty(exports, "ResourceExpiredError", {
|
|
447
472
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
473
|
+
get: function () { return chunkXIE7WJV3_cjs.ResourceExpiredError; }
|
|
449
474
|
});
|
|
450
475
|
Object.defineProperty(exports, "ResourceNotFoundError", {
|
|
451
476
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
477
|
+
get: function () { return chunkXIE7WJV3_cjs.ResourceNotFoundError; }
|
|
453
478
|
});
|
|
454
479
|
Object.defineProperty(exports, "SDKError", {
|
|
455
480
|
enumerable: true,
|
|
456
|
-
get: function () { return
|
|
457
|
-
});
|
|
458
|
-
Object.defineProperty(exports, "SchemaValidationError", {
|
|
459
|
-
enumerable: true,
|
|
460
|
-
get: function () { return chunkGCMQUM6N_cjs.SchemaValidationError; }
|
|
481
|
+
get: function () { return chunkXIE7WJV3_cjs.SDKError; }
|
|
461
482
|
});
|
|
462
483
|
Object.defineProperty(exports, "SearchBuilder", {
|
|
463
484
|
enumerable: true,
|
|
464
|
-
get: function () { return
|
|
485
|
+
get: function () { return chunkXIE7WJV3_cjs.SearchBuilder; }
|
|
465
486
|
});
|
|
466
487
|
Object.defineProperty(exports, "SearchClient", {
|
|
467
488
|
enumerable: true,
|
|
468
|
-
get: function () { return
|
|
489
|
+
get: function () { return chunkXIE7WJV3_cjs.SearchClient; }
|
|
469
490
|
});
|
|
470
491
|
Object.defineProperty(exports, "ServerError", {
|
|
471
492
|
enumerable: true,
|
|
472
|
-
get: function () { return
|
|
493
|
+
get: function () { return chunkXIE7WJV3_cjs.ServerError; }
|
|
473
494
|
});
|
|
474
495
|
Object.defineProperty(exports, "ServiceIndeterminateError", {
|
|
475
496
|
enumerable: true,
|
|
476
|
-
get: function () { return
|
|
497
|
+
get: function () { return chunkXIE7WJV3_cjs.ServiceIndeterminateError; }
|
|
477
498
|
});
|
|
478
499
|
Object.defineProperty(exports, "SettingsClient", {
|
|
479
500
|
enumerable: true,
|
|
480
|
-
get: function () { return
|
|
501
|
+
get: function () { return chunkXIE7WJV3_cjs.SettingsClient; }
|
|
481
502
|
});
|
|
482
503
|
Object.defineProperty(exports, "SimilarBuilder", {
|
|
483
504
|
enumerable: true,
|
|
484
|
-
get: function () { return
|
|
505
|
+
get: function () { return chunkXIE7WJV3_cjs.SimilarBuilder; }
|
|
485
506
|
});
|
|
486
507
|
Object.defineProperty(exports, "SingletonClient", {
|
|
487
508
|
enumerable: true,
|
|
488
|
-
get: function () { return
|
|
509
|
+
get: function () { return chunkXIE7WJV3_cjs.SingletonClient; }
|
|
489
510
|
});
|
|
490
511
|
Object.defineProperty(exports, "TimeoutError", {
|
|
491
512
|
enumerable: true,
|
|
492
|
-
get: function () { return
|
|
513
|
+
get: function () { return chunkXIE7WJV3_cjs.TimeoutError; }
|
|
493
514
|
});
|
|
494
515
|
Object.defineProperty(exports, "TransactionRolledBackError", {
|
|
495
516
|
enumerable: true,
|
|
496
|
-
get: function () { return
|
|
517
|
+
get: function () { return chunkXIE7WJV3_cjs.TransactionRolledBackError; }
|
|
497
518
|
});
|
|
498
519
|
Object.defineProperty(exports, "TypedRelyIOClient", {
|
|
499
520
|
enumerable: true,
|
|
500
|
-
get: function () { return
|
|
521
|
+
get: function () { return chunkXIE7WJV3_cjs.TypedRelyIOClient; }
|
|
501
522
|
});
|
|
502
523
|
Object.defineProperty(exports, "UnknownContractError", {
|
|
503
524
|
enumerable: true,
|
|
504
|
-
get: function () { return
|
|
525
|
+
get: function () { return chunkXIE7WJV3_cjs.UnknownContractError; }
|
|
505
526
|
});
|
|
506
527
|
Object.defineProperty(exports, "UsageQuotaExceededError", {
|
|
507
528
|
enumerable: true,
|
|
508
|
-
get: function () { return
|
|
529
|
+
get: function () { return chunkXIE7WJV3_cjs.UsageQuotaExceededError; }
|
|
509
530
|
});
|
|
510
531
|
Object.defineProperty(exports, "ValidationError", {
|
|
511
532
|
enumerable: true,
|
|
512
|
-
get: function () { return
|
|
533
|
+
get: function () { return chunkXIE7WJV3_cjs.ValidationError; }
|
|
513
534
|
});
|
|
514
535
|
Object.defineProperty(exports, "createClient", {
|
|
515
536
|
enumerable: true,
|
|
516
|
-
get: function () { return
|
|
537
|
+
get: function () { return chunkXIE7WJV3_cjs.createClient; }
|
|
517
538
|
});
|
|
518
539
|
Object.defineProperty(exports, "default", {
|
|
519
540
|
enumerable: true,
|
|
520
|
-
get: function () { return
|
|
541
|
+
get: function () { return chunkXIE7WJV3_cjs.createClient; }
|
|
521
542
|
});
|
|
522
543
|
Object.defineProperty(exports, "entityTagOf", {
|
|
523
544
|
enumerable: true,
|
|
524
|
-
get: function () { return
|
|
545
|
+
get: function () { return chunkXIE7WJV3_cjs.entityTagOf; }
|
|
525
546
|
});
|
|
526
547
|
Object.defineProperty(exports, "isAssetEntry", {
|
|
527
548
|
enumerable: true,
|
|
528
|
-
get: function () { return
|
|
549
|
+
get: function () { return chunkXIE7WJV3_cjs.isAssetEntry; }
|
|
550
|
+
});
|
|
551
|
+
Object.defineProperty(exports, "isPublishableKey", {
|
|
552
|
+
enumerable: true,
|
|
553
|
+
get: function () { return chunkXIE7WJV3_cjs.isPublishableKey; }
|
|
529
554
|
});
|
|
530
555
|
Object.defineProperty(exports, "isResourceNotFound", {
|
|
531
556
|
enumerable: true,
|
|
532
|
-
get: function () { return
|
|
557
|
+
get: function () { return chunkXIE7WJV3_cjs.isResourceNotFound; }
|
|
533
558
|
});
|
|
534
559
|
Object.defineProperty(exports, "matchRoute", {
|
|
535
560
|
enumerable: true,
|
|
536
|
-
get: function () { return
|
|
561
|
+
get: function () { return chunkXIE7WJV3_cjs.matchRoute; }
|
|
537
562
|
});
|
|
538
563
|
Object.defineProperty(exports, "validateFile", {
|
|
539
564
|
enumerable: true,
|
|
540
|
-
get: function () { return
|
|
565
|
+
get: function () { return chunkXIE7WJV3_cjs.validateFile; }
|
|
541
566
|
});
|
|
542
567
|
Object.defineProperty(exports, "camelToSnake", {
|
|
543
568
|
enumerable: true,
|
|
544
|
-
get: function () { return
|
|
569
|
+
get: function () { return chunkTZL374LS_cjs.camelToSnake; }
|
|
545
570
|
});
|
|
546
571
|
Object.defineProperty(exports, "createDeferred", {
|
|
547
572
|
enumerable: true,
|
|
548
|
-
get: function () { return
|
|
573
|
+
get: function () { return chunkTZL374LS_cjs.createDeferred; }
|
|
549
574
|
});
|
|
550
575
|
Object.defineProperty(exports, "debounce", {
|
|
551
576
|
enumerable: true,
|
|
552
|
-
get: function () { return
|
|
577
|
+
get: function () { return chunkTZL374LS_cjs.debounce; }
|
|
553
578
|
});
|
|
554
579
|
Object.defineProperty(exports, "deepClone", {
|
|
555
580
|
enumerable: true,
|
|
556
|
-
get: function () { return
|
|
581
|
+
get: function () { return chunkTZL374LS_cjs.deepClone; }
|
|
557
582
|
});
|
|
558
583
|
Object.defineProperty(exports, "generateId", {
|
|
559
584
|
enumerable: true,
|
|
560
|
-
get: function () { return
|
|
585
|
+
get: function () { return chunkTZL374LS_cjs.generateId; }
|
|
561
586
|
});
|
|
562
587
|
Object.defineProperty(exports, "isBrowser", {
|
|
563
588
|
enumerable: true,
|
|
564
|
-
get: function () { return
|
|
589
|
+
get: function () { return chunkTZL374LS_cjs.isBrowser; }
|
|
565
590
|
});
|
|
566
591
|
Object.defineProperty(exports, "isNode", {
|
|
567
592
|
enumerable: true,
|
|
568
|
-
get: function () { return
|
|
593
|
+
get: function () { return chunkTZL374LS_cjs.isNode; }
|
|
569
594
|
});
|
|
570
595
|
Object.defineProperty(exports, "isPlainObject", {
|
|
571
596
|
enumerable: true,
|
|
572
|
-
get: function () { return
|
|
597
|
+
get: function () { return chunkTZL374LS_cjs.isPlainObject; }
|
|
573
598
|
});
|
|
574
599
|
Object.defineProperty(exports, "isValidEmail", {
|
|
575
600
|
enumerable: true,
|
|
576
|
-
get: function () { return
|
|
601
|
+
get: function () { return chunkTZL374LS_cjs.isValidEmail; }
|
|
577
602
|
});
|
|
578
603
|
Object.defineProperty(exports, "isValidUrl", {
|
|
579
604
|
enumerable: true,
|
|
580
|
-
get: function () { return
|
|
605
|
+
get: function () { return chunkTZL374LS_cjs.isValidUrl; }
|
|
581
606
|
});
|
|
582
607
|
Object.defineProperty(exports, "mergeDeep", {
|
|
583
608
|
enumerable: true,
|
|
584
|
-
get: function () { return
|
|
609
|
+
get: function () { return chunkTZL374LS_cjs.mergeDeep; }
|
|
585
610
|
});
|
|
586
611
|
Object.defineProperty(exports, "omit", {
|
|
587
612
|
enumerable: true,
|
|
588
|
-
get: function () { return
|
|
613
|
+
get: function () { return chunkTZL374LS_cjs.omit; }
|
|
589
614
|
});
|
|
590
615
|
Object.defineProperty(exports, "pick", {
|
|
591
616
|
enumerable: true,
|
|
592
|
-
get: function () { return
|
|
617
|
+
get: function () { return chunkTZL374LS_cjs.pick; }
|
|
593
618
|
});
|
|
594
619
|
Object.defineProperty(exports, "retry", {
|
|
595
620
|
enumerable: true,
|
|
596
|
-
get: function () { return
|
|
621
|
+
get: function () { return chunkTZL374LS_cjs.retry; }
|
|
597
622
|
});
|
|
598
623
|
Object.defineProperty(exports, "sleep", {
|
|
599
624
|
enumerable: true,
|
|
600
|
-
get: function () { return
|
|
625
|
+
get: function () { return chunkTZL374LS_cjs.sleep; }
|
|
601
626
|
});
|
|
602
627
|
Object.defineProperty(exports, "snakeToCamel", {
|
|
603
628
|
enumerable: true,
|
|
604
|
-
get: function () { return
|
|
629
|
+
get: function () { return chunkTZL374LS_cjs.snakeToCamel; }
|
|
605
630
|
});
|
|
606
631
|
Object.defineProperty(exports, "throttle", {
|
|
607
632
|
enumerable: true,
|
|
608
|
-
get: function () { return
|
|
633
|
+
get: function () { return chunkTZL374LS_cjs.throttle; }
|
|
609
634
|
});
|
|
610
635
|
Object.defineProperty(exports, "toSafeString", {
|
|
611
636
|
enumerable: true,
|
|
612
|
-
get: function () { return
|
|
637
|
+
get: function () { return chunkTZL374LS_cjs.toSafeString; }
|
|
613
638
|
});
|
|
639
|
+
exports.FOLLOW_BACK_OFF_MAX_MS = FOLLOW_BACK_OFF_MAX_MS;
|
|
614
640
|
exports.FOLLOW_RETRY_BASE_MS = FOLLOW_RETRY_BASE_MS;
|
|
615
641
|
exports.FOLLOW_RETRY_MAX_MS = FOLLOW_RETRY_MAX_MS;
|
|
616
642
|
exports.IMAGE_LADDER = IMAGE_LADDER;
|
|
617
|
-
exports.PUBLISHABLE_KEY_PREFIX = PUBLISHABLE_KEY_PREFIX;
|
|
618
643
|
exports.RELYIO_CHANGE_EVENT = RELYIO_CHANGE_EVENT;
|
|
619
644
|
exports.RELYIO_RESYNC_EVENT = RELYIO_RESYNC_EVENT;
|
|
620
645
|
exports.VERSION = VERSION;
|
|
@@ -632,7 +657,6 @@ exports.getPublishedLocaleCodes = getPublishedLocaleCodes;
|
|
|
632
657
|
exports.getRequestedLocale = getRequestedLocale;
|
|
633
658
|
exports.hasLocale = hasLocale;
|
|
634
659
|
exports.isFieldFallback = isFieldFallback;
|
|
635
|
-
exports.isPublishableKey = isPublishableKey;
|
|
636
660
|
exports.isPublishedInLocale = isPublishedInLocale;
|
|
637
661
|
exports.localeHelpers = localeHelpers;
|
|
638
662
|
exports.needsTranslation = needsTranslation;
|