@relyio/sdk 0.13.0 → 0.14.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 +144 -0
- package/dist/{chunk-3NPPMGB6.js → chunk-5UMY6CS4.js} +2 -2
- package/dist/{chunk-6NGJXLOR.js → chunk-DBBZVZOS.js} +968 -2681
- package/dist/{chunk-DEDIJKHY.cjs → chunk-GUPV2M3X.cjs} +969 -2691
- package/dist/{chunk-EW23SZPX.js → chunk-PCFTJLEP.js} +540 -262
- package/dist/{chunk-Z6GLWSSD.cjs → chunk-RSHMA4KT.cjs} +2 -2
- package/dist/{chunk-FOSM4LMM.cjs → chunk-X4KSS7PP.cjs} +539 -262
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/{include-paths-Bs5FhNw2.d.cts → define-content-type-BUZeWtpk.d.cts} +3657 -2594
- package/dist/{include-paths-Cb7iPCW2.d.ts → define-content-type-DOrZb_a_.d.ts} +3657 -2594
- package/dist/{define-schema-UHViXKiv.d.ts → define-schema-5aHmsA8j.d.ts} +238 -356
- package/dist/{define-schema-sWJ8Zn7C.d.cts → define-schema-nCfZeboB.d.cts} +238 -356
- package/dist/{index-8DozAWsA.d.ts → index-B97ZDj44.d.ts} +2 -2
- package/dist/{index--_u1nPHv.d.cts → index-C-pcllqY.d.cts} +2 -2
- package/dist/index-DOhFQbv7.d.ts +3065 -0
- package/dist/index-DgVV5Nj7.d.cts +3065 -0
- package/dist/index.cjs +90 -130
- package/dist/index.d.cts +16 -23
- package/dist/index.d.ts +16 -23
- package/dist/index.js +4 -4
- package/dist/rich-text/index.cjs +11 -11
- package/dist/rich-text/index.d.cts +2 -2
- package/dist/rich-text/index.d.ts +2 -2
- package/dist/rich-text/index.js +1 -1
- package/dist/schema/index.cjs +33 -37
- package/dist/schema/index.d.cts +33 -18
- package/dist/schema/index.d.ts +33 -18
- package/dist/schema/index.js +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index-BT0L8xJj.d.cts +0 -3717
- package/dist/index-CPjJ25R4.d.ts +0 -3717
package/dist/index.cjs
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkX4KSS7PP_cjs = require('./chunk-X4KSS7PP.cjs');
|
|
6
|
+
var chunkGUPV2M3X_cjs = require('./chunk-GUPV2M3X.cjs');
|
|
7
7
|
require('./chunk-LSRPMNPT.cjs');
|
|
8
8
|
require('./chunk-PPA2WWOH.cjs');
|
|
9
9
|
var chunkTZL374LS_cjs = require('./chunk-TZL374LS.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkRSHMA4KT_cjs = require('./chunk-RSHMA4KT.cjs');
|
|
11
11
|
var chunkMWMSFIWN_cjs = require('./chunk-MWMSFIWN.cjs');
|
|
12
12
|
|
|
13
13
|
/* RelyIO SDK - Built with ❤️ by the RelyIO Team */
|
|
@@ -21,9 +21,9 @@ function stopOnUnknownAnswer(_answer) {
|
|
|
21
21
|
}
|
|
22
22
|
chunkMWMSFIWN_cjs.__name(stopOnUnknownAnswer, "stopOnUnknownAnswer");
|
|
23
23
|
function classifyFollowFailure(error) {
|
|
24
|
-
if (error instanceof
|
|
25
|
-
if (!(error instanceof
|
|
26
|
-
const afterMs =
|
|
24
|
+
if (error instanceof chunkGUPV2M3X_cjs.LiveEdgeError) return liveEdgeVerdict(error);
|
|
25
|
+
if (!(error instanceof chunkGUPV2M3X_cjs.SDKError) || !error.retryable) return { retry: false };
|
|
26
|
+
const afterMs = chunkGUPV2M3X_cjs.serviceInstructedDelayMs(error, Date.now());
|
|
27
27
|
return afterMs === void 0 ? { retry: true } : { retry: true, afterMs };
|
|
28
28
|
}
|
|
29
29
|
chunkMWMSFIWN_cjs.__name(classifyFollowFailure, "classifyFollowFailure");
|
|
@@ -37,7 +37,7 @@ function liveEdgeVerdict(error) {
|
|
|
37
37
|
return { retry: true, ...hint };
|
|
38
38
|
}
|
|
39
39
|
case "back-off": {
|
|
40
|
-
return { retry: true, ...hint, backOffMs:
|
|
40
|
+
return { retry: true, ...hint, backOffMs: chunkGUPV2M3X_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
|
|
41
41
|
}
|
|
42
42
|
default: {
|
|
43
43
|
return stopOnUnknownAnswer(error.retry);
|
|
@@ -50,10 +50,10 @@ async function followChanges(source, options) {
|
|
|
50
50
|
const classify = options.classify ?? classifyFollowFailure;
|
|
51
51
|
const random = options.random ?? Math.random;
|
|
52
52
|
const report = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((state) => {
|
|
53
|
-
if (!
|
|
53
|
+
if (!chunkGUPV2M3X_cjs.isAborted(signal)) options.onState?.(state);
|
|
54
54
|
}, "report");
|
|
55
55
|
const resync = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(async (cause) => {
|
|
56
|
-
if (
|
|
56
|
+
if (chunkGUPV2M3X_cjs.isAborted(signal)) return;
|
|
57
57
|
await onResync(cause);
|
|
58
58
|
report({ kind: "resynced", resync: cause });
|
|
59
59
|
}, "resync");
|
|
@@ -62,12 +62,12 @@ async function followChanges(source, options) {
|
|
|
62
62
|
let unanchored = false;
|
|
63
63
|
let current;
|
|
64
64
|
for (; ; ) {
|
|
65
|
-
if (
|
|
65
|
+
if (chunkGUPV2M3X_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
66
66
|
try {
|
|
67
67
|
if (unanchored) {
|
|
68
68
|
unanchored = false;
|
|
69
69
|
await resync({ cause: "no-cursor" });
|
|
70
|
-
if (
|
|
70
|
+
if (chunkGUPV2M3X_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
71
71
|
}
|
|
72
72
|
report({ kind: "following" });
|
|
73
73
|
const open = {};
|
|
@@ -84,13 +84,13 @@ async function followChanges(source, options) {
|
|
|
84
84
|
}, "reached")
|
|
85
85
|
});
|
|
86
86
|
for await (const change of changes) {
|
|
87
|
-
if (
|
|
87
|
+
if (chunkGUPV2M3X_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
88
88
|
failures = 0;
|
|
89
89
|
await onChange(change);
|
|
90
90
|
since = change.cursor;
|
|
91
|
-
if (
|
|
91
|
+
if (chunkGUPV2M3X_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
92
92
|
}
|
|
93
|
-
if (
|
|
93
|
+
if (chunkGUPV2M3X_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
94
94
|
const error = new Error(
|
|
95
95
|
"The change source completed without its signal aborting; a source ends only on abort and throws every other end."
|
|
96
96
|
);
|
|
@@ -98,7 +98,7 @@ async function followChanges(source, options) {
|
|
|
98
98
|
return { kind: "stopped", since, error };
|
|
99
99
|
} catch (error) {
|
|
100
100
|
current = void 0;
|
|
101
|
-
if (
|
|
101
|
+
if (chunkGUPV2M3X_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
102
102
|
const verdict = classify(error);
|
|
103
103
|
if (!verdict.retry) {
|
|
104
104
|
report({ kind: "stopped", error });
|
|
@@ -107,7 +107,7 @@ async function followChanges(source, options) {
|
|
|
107
107
|
failures += 1;
|
|
108
108
|
const retryInMs = retryDelayMs(failures, verdict, random);
|
|
109
109
|
report({ kind: "reconnecting", error, retryInMs });
|
|
110
|
-
await
|
|
110
|
+
await chunkGUPV2M3X_cjs.sleep(retryInMs, signal);
|
|
111
111
|
if (since === void 0) unanchored = true;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -279,267 +279,227 @@ var VERSION = "__VERSION__";
|
|
|
279
279
|
|
|
280
280
|
Object.defineProperty(exports, "defineAssetType", {
|
|
281
281
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkX4KSS7PP_cjs.defineAssetType; }
|
|
283
283
|
});
|
|
284
284
|
Object.defineProperty(exports, "defineContentType", {
|
|
285
285
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkX4KSS7PP_cjs.defineContentType; }
|
|
287
287
|
});
|
|
288
288
|
Object.defineProperty(exports, "defineQuery", {
|
|
289
289
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
290
|
+
get: function () { return chunkX4KSS7PP_cjs.defineQuery; }
|
|
291
291
|
});
|
|
292
292
|
Object.defineProperty(exports, "defineSchema", {
|
|
293
293
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
294
|
+
get: function () { return chunkX4KSS7PP_cjs.defineSchema; }
|
|
295
295
|
});
|
|
296
296
|
Object.defineProperty(exports, "defineSettingsGroup", {
|
|
297
297
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
298
|
+
get: function () { return chunkX4KSS7PP_cjs.defineSettingsGroup; }
|
|
299
299
|
});
|
|
300
300
|
Object.defineProperty(exports, "defineSingleton", {
|
|
301
301
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
303
|
-
});
|
|
304
|
-
Object.defineProperty(exports, "defineSingletonContentType", {
|
|
305
|
-
enumerable: true,
|
|
306
|
-
get: function () { return chunkFOSM4LMM_cjs.defineSingletonContentType; }
|
|
302
|
+
get: function () { return chunkX4KSS7PP_cjs.defineSingleton; }
|
|
307
303
|
});
|
|
308
304
|
Object.defineProperty(exports, "fields", {
|
|
309
305
|
enumerable: true,
|
|
310
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkX4KSS7PP_cjs.fields; }
|
|
311
307
|
});
|
|
312
308
|
Object.defineProperty(exports, "fieldset", {
|
|
313
309
|
enumerable: true,
|
|
314
|
-
get: function () { return
|
|
315
|
-
});
|
|
316
|
-
Object.defineProperty(exports, "AdhocQueryBuilder", {
|
|
317
|
-
enumerable: true,
|
|
318
|
-
get: function () { return chunkDEDIJKHY_cjs.AdhocQueryBuilder; }
|
|
319
|
-
});
|
|
320
|
-
Object.defineProperty(exports, "AdhocQueryClient", {
|
|
321
|
-
enumerable: true,
|
|
322
|
-
get: function () { return chunkDEDIJKHY_cjs.AdhocQueryClient; }
|
|
310
|
+
get: function () { return chunkX4KSS7PP_cjs.fieldset; }
|
|
323
311
|
});
|
|
324
312
|
Object.defineProperty(exports, "AssetClient", {
|
|
325
313
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkGUPV2M3X_cjs.AssetClient; }
|
|
327
315
|
});
|
|
328
316
|
Object.defineProperty(exports, "AssetFileBuilder", {
|
|
329
317
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunkGUPV2M3X_cjs.AssetFileBuilder; }
|
|
331
319
|
});
|
|
332
320
|
Object.defineProperty(exports, "AssetUploadBuilder", {
|
|
333
321
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunkGUPV2M3X_cjs.AssetUploadBuilder; }
|
|
335
323
|
});
|
|
336
324
|
Object.defineProperty(exports, "AuthorizationError", {
|
|
337
325
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
339
|
-
});
|
|
340
|
-
Object.defineProperty(exports, "AutocompleteBuilder", {
|
|
341
|
-
enumerable: true,
|
|
342
|
-
get: function () { return chunkDEDIJKHY_cjs.AutocompleteBuilder; }
|
|
326
|
+
get: function () { return chunkGUPV2M3X_cjs.AuthorizationError; }
|
|
343
327
|
});
|
|
344
328
|
Object.defineProperty(exports, "BaseValidationError", {
|
|
345
329
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
347
|
-
});
|
|
348
|
-
Object.defineProperty(exports, "BatchBuilder", {
|
|
349
|
-
enumerable: true,
|
|
350
|
-
get: function () { return chunkDEDIJKHY_cjs.BatchBuilder; }
|
|
351
|
-
});
|
|
352
|
-
Object.defineProperty(exports, "BatchClient", {
|
|
353
|
-
enumerable: true,
|
|
354
|
-
get: function () { return chunkDEDIJKHY_cjs.BatchClient; }
|
|
330
|
+
get: function () { return chunkGUPV2M3X_cjs.BaseValidationError; }
|
|
355
331
|
});
|
|
356
332
|
Object.defineProperty(exports, "ChangesExpiredError", {
|
|
357
333
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunkGUPV2M3X_cjs.ChangesExpiredError; }
|
|
359
335
|
});
|
|
360
336
|
Object.defineProperty(exports, "ConnectionError", {
|
|
361
337
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
363
|
-
});
|
|
364
|
-
Object.defineProperty(exports, "ContentByIdBuilder", {
|
|
365
|
-
enumerable: true,
|
|
366
|
-
get: function () { return chunkDEDIJKHY_cjs.ContentByIdBuilder; }
|
|
338
|
+
get: function () { return chunkGUPV2M3X_cjs.ConnectionError; }
|
|
367
339
|
});
|
|
368
340
|
Object.defineProperty(exports, "ContentClient", {
|
|
369
341
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
371
|
-
});
|
|
372
|
-
Object.defineProperty(exports, "ContentQueryBuilder", {
|
|
373
|
-
enumerable: true,
|
|
374
|
-
get: function () { return chunkDEDIJKHY_cjs.ContentQueryBuilder; }
|
|
342
|
+
get: function () { return chunkGUPV2M3X_cjs.ContentClient; }
|
|
375
343
|
});
|
|
376
344
|
Object.defineProperty(exports, "ErrorMapper", {
|
|
377
345
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunkGUPV2M3X_cjs.ErrorMapper; }
|
|
379
347
|
});
|
|
380
348
|
Object.defineProperty(exports, "FileUploadError", {
|
|
381
349
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunkGUPV2M3X_cjs.FileUploadError; }
|
|
383
351
|
});
|
|
384
352
|
Object.defineProperty(exports, "FileValidationError", {
|
|
385
353
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunkGUPV2M3X_cjs.FileValidationError; }
|
|
387
355
|
});
|
|
388
356
|
Object.defineProperty(exports, "HttpClient", {
|
|
389
357
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunkGUPV2M3X_cjs.HttpClient; }
|
|
391
359
|
});
|
|
392
360
|
Object.defineProperty(exports, "InvalidApiKeyError", {
|
|
393
361
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunkGUPV2M3X_cjs.InvalidApiKeyError; }
|
|
395
363
|
});
|
|
396
364
|
Object.defineProperty(exports, "InvalidPayloadError", {
|
|
397
365
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunkGUPV2M3X_cjs.InvalidPayloadError; }
|
|
399
367
|
});
|
|
400
368
|
Object.defineProperty(exports, "LIVE_KEEPALIVE_INTERVAL_MS", {
|
|
401
369
|
enumerable: true,
|
|
402
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunkGUPV2M3X_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
|
|
403
371
|
});
|
|
404
372
|
Object.defineProperty(exports, "LIVE_SOCKET_OPEN_TIMEOUT_MS", {
|
|
405
373
|
enumerable: true,
|
|
406
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkGUPV2M3X_cjs.LIVE_SOCKET_OPEN_TIMEOUT_MS; }
|
|
407
375
|
});
|
|
408
376
|
Object.defineProperty(exports, "LiveEdgeError", {
|
|
409
377
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkGUPV2M3X_cjs.LiveEdgeError; }
|
|
411
379
|
});
|
|
412
380
|
Object.defineProperty(exports, "MethodNotAllowedError", {
|
|
413
381
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkGUPV2M3X_cjs.MethodNotAllowedError; }
|
|
415
383
|
});
|
|
416
384
|
Object.defineProperty(exports, "MissingApiKeyError", {
|
|
417
385
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkGUPV2M3X_cjs.MissingApiKeyError; }
|
|
419
387
|
});
|
|
420
388
|
Object.defineProperty(exports, "NetworkError", {
|
|
421
389
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkGUPV2M3X_cjs.NetworkError; }
|
|
423
391
|
});
|
|
424
392
|
Object.defineProperty(exports, "PUBLISHABLE_KEY_PREFIX", {
|
|
425
393
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkGUPV2M3X_cjs.PUBLISHABLE_KEY_PREFIX; }
|
|
427
395
|
});
|
|
428
396
|
Object.defineProperty(exports, "PayloadTooLargeError", {
|
|
429
397
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkGUPV2M3X_cjs.PayloadTooLargeError; }
|
|
431
399
|
});
|
|
432
400
|
Object.defineProperty(exports, "PlanFeatureUnavailableError", {
|
|
433
401
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkGUPV2M3X_cjs.PlanFeatureUnavailableError; }
|
|
435
403
|
});
|
|
436
404
|
Object.defineProperty(exports, "RateLimitError", {
|
|
437
405
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkGUPV2M3X_cjs.RateLimitError; }
|
|
439
407
|
});
|
|
440
408
|
Object.defineProperty(exports, "ReadOnlyKeyError", {
|
|
441
409
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkGUPV2M3X_cjs.ReadOnlyKeyError; }
|
|
443
411
|
});
|
|
444
412
|
Object.defineProperty(exports, "ResourceConflictError", {
|
|
445
413
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkGUPV2M3X_cjs.ResourceConflictError; }
|
|
447
415
|
});
|
|
448
416
|
Object.defineProperty(exports, "ResourceExpiredError", {
|
|
449
417
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkGUPV2M3X_cjs.ResourceExpiredError; }
|
|
451
419
|
});
|
|
452
420
|
Object.defineProperty(exports, "ResourceNotFoundError", {
|
|
453
421
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkGUPV2M3X_cjs.ResourceNotFoundError; }
|
|
455
423
|
});
|
|
456
424
|
Object.defineProperty(exports, "SDKError", {
|
|
457
425
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
459
|
-
});
|
|
460
|
-
Object.defineProperty(exports, "SearchBuilder", {
|
|
461
|
-
enumerable: true,
|
|
462
|
-
get: function () { return chunkDEDIJKHY_cjs.SearchBuilder; }
|
|
463
|
-
});
|
|
464
|
-
Object.defineProperty(exports, "SearchClient", {
|
|
465
|
-
enumerable: true,
|
|
466
|
-
get: function () { return chunkDEDIJKHY_cjs.SearchClient; }
|
|
426
|
+
get: function () { return chunkGUPV2M3X_cjs.SDKError; }
|
|
467
427
|
});
|
|
468
428
|
Object.defineProperty(exports, "ServerError", {
|
|
469
429
|
enumerable: true,
|
|
470
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkGUPV2M3X_cjs.ServerError; }
|
|
471
431
|
});
|
|
472
432
|
Object.defineProperty(exports, "ServiceIndeterminateError", {
|
|
473
433
|
enumerable: true,
|
|
474
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkGUPV2M3X_cjs.ServiceIndeterminateError; }
|
|
475
435
|
});
|
|
476
436
|
Object.defineProperty(exports, "SettingsClient", {
|
|
477
437
|
enumerable: true,
|
|
478
|
-
get: function () { return
|
|
479
|
-
});
|
|
480
|
-
Object.defineProperty(exports, "SimilarBuilder", {
|
|
481
|
-
enumerable: true,
|
|
482
|
-
get: function () { return chunkDEDIJKHY_cjs.SimilarBuilder; }
|
|
438
|
+
get: function () { return chunkGUPV2M3X_cjs.SettingsClient; }
|
|
483
439
|
});
|
|
484
440
|
Object.defineProperty(exports, "SingletonClient", {
|
|
485
441
|
enumerable: true,
|
|
486
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunkGUPV2M3X_cjs.SingletonClient; }
|
|
487
443
|
});
|
|
488
444
|
Object.defineProperty(exports, "TimeoutError", {
|
|
489
445
|
enumerable: true,
|
|
490
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunkGUPV2M3X_cjs.TimeoutError; }
|
|
491
447
|
});
|
|
492
448
|
Object.defineProperty(exports, "TransactionRolledBackError", {
|
|
493
449
|
enumerable: true,
|
|
494
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunkGUPV2M3X_cjs.TransactionRolledBackError; }
|
|
495
451
|
});
|
|
496
452
|
Object.defineProperty(exports, "TypedRelyIOClient", {
|
|
497
453
|
enumerable: true,
|
|
498
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunkGUPV2M3X_cjs.TypedRelyIOClient; }
|
|
499
455
|
});
|
|
500
456
|
Object.defineProperty(exports, "UnknownContractError", {
|
|
501
457
|
enumerable: true,
|
|
502
|
-
get: function () { return
|
|
458
|
+
get: function () { return chunkGUPV2M3X_cjs.UnknownContractError; }
|
|
503
459
|
});
|
|
504
460
|
Object.defineProperty(exports, "UsageQuotaExceededError", {
|
|
505
461
|
enumerable: true,
|
|
506
|
-
get: function () { return
|
|
462
|
+
get: function () { return chunkGUPV2M3X_cjs.UsageQuotaExceededError; }
|
|
507
463
|
});
|
|
508
464
|
Object.defineProperty(exports, "ValidationError", {
|
|
509
465
|
enumerable: true,
|
|
510
|
-
get: function () { return
|
|
466
|
+
get: function () { return chunkGUPV2M3X_cjs.ValidationError; }
|
|
511
467
|
});
|
|
512
468
|
Object.defineProperty(exports, "createClient", {
|
|
513
469
|
enumerable: true,
|
|
514
|
-
get: function () { return
|
|
470
|
+
get: function () { return chunkGUPV2M3X_cjs.createClient; }
|
|
515
471
|
});
|
|
516
472
|
Object.defineProperty(exports, "default", {
|
|
517
473
|
enumerable: true,
|
|
518
|
-
get: function () { return
|
|
474
|
+
get: function () { return chunkGUPV2M3X_cjs.createClient; }
|
|
519
475
|
});
|
|
520
|
-
Object.defineProperty(exports, "
|
|
476
|
+
Object.defineProperty(exports, "isAssetEntry", {
|
|
521
477
|
enumerable: true,
|
|
522
|
-
get: function () { return
|
|
478
|
+
get: function () { return chunkGUPV2M3X_cjs.isAssetEntry; }
|
|
523
479
|
});
|
|
524
|
-
Object.defineProperty(exports, "
|
|
480
|
+
Object.defineProperty(exports, "isMissingEntry", {
|
|
525
481
|
enumerable: true,
|
|
526
|
-
get: function () { return
|
|
482
|
+
get: function () { return chunkGUPV2M3X_cjs.isMissingEntry; }
|
|
527
483
|
});
|
|
528
484
|
Object.defineProperty(exports, "isPublishableKey", {
|
|
529
485
|
enumerable: true,
|
|
530
|
-
get: function () { return
|
|
486
|
+
get: function () { return chunkGUPV2M3X_cjs.isPublishableKey; }
|
|
531
487
|
});
|
|
532
488
|
Object.defineProperty(exports, "isResourceNotFound", {
|
|
533
489
|
enumerable: true,
|
|
534
|
-
get: function () { return
|
|
490
|
+
get: function () { return chunkGUPV2M3X_cjs.isResourceNotFound; }
|
|
535
491
|
});
|
|
536
492
|
Object.defineProperty(exports, "matchRoute", {
|
|
537
493
|
enumerable: true,
|
|
538
|
-
get: function () { return
|
|
494
|
+
get: function () { return chunkGUPV2M3X_cjs.matchRoute; }
|
|
539
495
|
});
|
|
540
496
|
Object.defineProperty(exports, "validateFile", {
|
|
541
497
|
enumerable: true,
|
|
542
|
-
get: function () { return
|
|
498
|
+
get: function () { return chunkGUPV2M3X_cjs.validateFile; }
|
|
499
|
+
});
|
|
500
|
+
Object.defineProperty(exports, "versionCheckOf", {
|
|
501
|
+
enumerable: true,
|
|
502
|
+
get: function () { return chunkGUPV2M3X_cjs.versionCheckOf; }
|
|
543
503
|
});
|
|
544
504
|
Object.defineProperty(exports, "camelToSnake", {
|
|
545
505
|
enumerable: true,
|
|
@@ -615,55 +575,55 @@ Object.defineProperty(exports, "toSafeString", {
|
|
|
615
575
|
});
|
|
616
576
|
Object.defineProperty(exports, "RICH_TEXT_VOID_TAGS", {
|
|
617
577
|
enumerable: true,
|
|
618
|
-
get: function () { return
|
|
578
|
+
get: function () { return chunkRSHMA4KT_cjs.RICH_TEXT_VOID_TAGS; }
|
|
619
579
|
});
|
|
620
580
|
Object.defineProperty(exports, "entryHeadingAnchors", {
|
|
621
581
|
enumerable: true,
|
|
622
|
-
get: function () { return
|
|
582
|
+
get: function () { return chunkRSHMA4KT_cjs.entryHeadingAnchors; }
|
|
623
583
|
});
|
|
624
584
|
Object.defineProperty(exports, "escapeHtml", {
|
|
625
585
|
enumerable: true,
|
|
626
|
-
get: function () { return
|
|
586
|
+
get: function () { return chunkRSHMA4KT_cjs.escapeHtml; }
|
|
627
587
|
});
|
|
628
588
|
Object.defineProperty(exports, "formatKeyPath", {
|
|
629
589
|
enumerable: true,
|
|
630
|
-
get: function () { return
|
|
590
|
+
get: function () { return chunkRSHMA4KT_cjs.formatKeyPath; }
|
|
631
591
|
});
|
|
632
592
|
Object.defineProperty(exports, "isDeclaredRichTextNode", {
|
|
633
593
|
enumerable: true,
|
|
634
|
-
get: function () { return
|
|
594
|
+
get: function () { return chunkRSHMA4KT_cjs.isDeclaredRichTextNode; }
|
|
635
595
|
});
|
|
636
596
|
Object.defineProperty(exports, "parseKeyPath", {
|
|
637
597
|
enumerable: true,
|
|
638
|
-
get: function () { return
|
|
598
|
+
get: function () { return chunkRSHMA4KT_cjs.parseKeyPath; }
|
|
639
599
|
});
|
|
640
600
|
Object.defineProperty(exports, "relyioField", {
|
|
641
601
|
enumerable: true,
|
|
642
|
-
get: function () { return
|
|
602
|
+
get: function () { return chunkRSHMA4KT_cjs.relyioField; }
|
|
643
603
|
});
|
|
644
604
|
Object.defineProperty(exports, "renderRichText", {
|
|
645
605
|
enumerable: true,
|
|
646
|
-
get: function () { return
|
|
606
|
+
get: function () { return chunkRSHMA4KT_cjs.renderRichText; }
|
|
647
607
|
});
|
|
648
608
|
Object.defineProperty(exports, "richTextHeadingAnchors", {
|
|
649
609
|
enumerable: true,
|
|
650
|
-
get: function () { return
|
|
610
|
+
get: function () { return chunkRSHMA4KT_cjs.richTextHeadingAnchors; }
|
|
651
611
|
});
|
|
652
612
|
Object.defineProperty(exports, "richTextHeadingSlug", {
|
|
653
613
|
enumerable: true,
|
|
654
|
-
get: function () { return
|
|
614
|
+
get: function () { return chunkRSHMA4KT_cjs.richTextHeadingSlug; }
|
|
655
615
|
});
|
|
656
616
|
Object.defineProperty(exports, "richTextToHtml", {
|
|
657
617
|
enumerable: true,
|
|
658
|
-
get: function () { return
|
|
618
|
+
get: function () { return chunkRSHMA4KT_cjs.richTextToHtml; }
|
|
659
619
|
});
|
|
660
620
|
Object.defineProperty(exports, "richTextToMarkdown", {
|
|
661
621
|
enumerable: true,
|
|
662
|
-
get: function () { return
|
|
622
|
+
get: function () { return chunkRSHMA4KT_cjs.richTextToMarkdown; }
|
|
663
623
|
});
|
|
664
624
|
Object.defineProperty(exports, "safeRichTextHref", {
|
|
665
625
|
enumerable: true,
|
|
666
|
-
get: function () { return
|
|
626
|
+
get: function () { return chunkRSHMA4KT_cjs.safeRichTextHref; }
|
|
667
627
|
});
|
|
668
628
|
exports.FOLLOW_BACK_OFF_MAX_MS = FOLLOW_BACK_OFF_MAX_MS;
|
|
669
629
|
exports.FOLLOW_RETRY_BASE_MS = FOLLOW_RETRY_BASE_MS;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-
|
|
2
|
-
export {
|
|
1
|
+
import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-DgVV5Nj7.cjs';
|
|
2
|
+
export { i as ActiveSandbox, aH as AdhocQuery, aI as AdhocRecord, aF as AggregateMetric, A as AnySchemaDefinition, m as ApiMethod, l as ApiPath, n as ApiSuccessBody, aQ as AssetClient, aZ as AssetEntryResponse, aR as AssetFileBuilder, aX as AssetFileExtracted, b6 as AssetPlacement, aS as AssetUploadBuilder, aU as AssetVisibility, ah as AutocompleteOptions, ac as AutocompleteResponse, ab as AutocompleteSuggestion, ax as BatchBody, ay as BatchCreate, aB as BatchDelete, aE as BatchDeleteTarget, as as BatchOperationResult, aA as BatchReplace, au as BatchResponse, aC as BatchSingletonWrite, at as BatchSummary, aD as BatchTarget, az as BatchUpdate, av as BatchWrite, aw as BatchWriteOptions, s as ChangesHeadOptions, t as ChangesOptions, Q as ChildrenOptions, e as ClientDefaults, f as ClientSchema, b1 as ConfirmInput, b2 as ConfirmResult, y as ContentClient, b5 as CreateAssetOptions, z as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, J as DocumentFields, U as DocumentReadOptions, K as DocumentVersion, N as DocumentVersionsOptions, O as DocumentWriteOptions, V as EntryList, E as EntryPlacement, B as EntryWriteOptions, F as FeedChange, X as FieldKey, aW as FileBackend, bi as FileErrorCode, aV as FileStatus, aY as FileStatusResult, bk as FileUploadError, bj as FileUploadErrorCode, bm as FileValidationConstraints, bl as FileValidationError, Y as FreshOption, Z as GetOptions, H as Health, j as HttpClient, u as LIVE_KEEPALIVE_INTERVAL_MS, w as LIVE_SOCKET_OPEN_TIMEOUT_MS, _ as ListAllOptions, $ as ListOptions, x as LiveChangesOptions, L as LocaleCodeOf, a0 as LocaleOption, M as MatchRouteOptions, b9 as MultipartCreateResult, ba as MultipartPart, bb as MultipartTarget, aJ as NamedQueryOptions, aK as NamedQueryParams, a1 as Paging, a_ as PopulatedAssetReference, a$ as PresignInput, b0 as PresignResult, P as Project, aL as QueryAggregate, aM as QueryAnswer, aN as QueryCall, aG as QueryMetadata, aO as QueryName, aP as QueryTypeName, a2 as ReadAs, q as ReadEntry, a3 as ReadLocale, R as Register, h as RegisteredSchema, b3 as ResolveUrlInput, b4 as ResolveUrlResult, be as ResourceConflictError, bf as ResourceExpiredError, bd as ResourceNotFoundError, r as RetryableWriteOptions, p as RouteMatch, S as SandboxState, ag as SearchEntry, ai as SearchFacet, aj as SearchFieldKey, ak as SearchHighlight, a9 as SearchHitMetadata, al as SearchOptions, am as SearchPage, aa as SearchResponse, a8 as SearchResultItem, an as SearchScope, ao as SearchSelected, ap as SearchSortOption, af as SearchTypeName, aq as SearchWhere, k as SendOptions, I as SettingsClient, ar as SimilarOptions, ae as SimilarResponse, ad as SimilarResult, G as SingletonClient, a4 as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b7 as UpdateAssetOptions, bc as UploadProgress, a5 as VersionOptions, b8 as WaitUntilReadyOptions, W as Wire, a6 as WrittenReadScope, a7 as WrittenSort, c as createClient, c as default, aT as isAssetEntry, bh as isMissingEntry, bg as isResourceNotFound, o as matchRoute, bn as validateFile, v as versionCheckOf } from './index-DgVV5Nj7.cjs';
|
|
3
3
|
export { fields } from './schema/index.cjs';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
4
|
+
import { cl as SDKError, aM as EntryMetadata } from './define-content-type-BUZeWtpk.cjs';
|
|
5
|
+
export { aH as AnyDeclaredFieldset, cS as ApiResponse, cq as AssetFileBlock, ak as AssetReading, b2 as AssetServedBlocks, a$ as AssetTypeDefinition, cr as AssetUrls, cs as BaseContent, B as BaseFieldConfig, cu as BaseSettingsGroup, ct as BaseSingleton, cY as BaseValidationError, ai as BlockOf, cO as CacheConfig, cU as CacheStrategy, am as CheckInclude, al as CheckedIncludes, an as ContentReading, aL as ContentTypeDefinition, cG as ContentTypeSchema, cA as CreateInput, cF as CustomQuery, cz as DateOnlyOperator, cQ as DebugConfig, aG as DeclaredFieldset, cW as Environment, h as FieldDefinition, aJ as FieldMember, cJ as FieldOptions, i as FieldRule, ac as FieldSchemaContext, j as FieldType, cH as FieldTypeName, k as FieldUIConfig, ad as FieldValue, ae as FieldValues, aF as Fieldset, b5 as FileKindConfig, bj as FileScanConfig, bi as FileUploadConfig, bb as ImageExifConfig, b3 as ImageKindConfig, ba as ImageSourceConfig, b9 as ImageUploadConfig, ao as IncludablePaths, b1 as InferAssetEntry, b0 as InferAssetType, aN as InferContentType, ca as InferJsonSchema, aT as InferSingleton, c_ as InvalidPayloadError, cb as JsonFieldValue, cc as JsonSchema, cd as JsonValue, ah as Keyed, a_ as KeyedAssetTypeConfig, aK as KeyedContentTypeConfig, K as KeyedEnumConfig, l as KeyedField, m as KeyedFieldOptions, aI as KeyedFieldsetConfig, aV as KeyedSettingsGroupConfig, aQ as KeyedSingletonConfig, co as LiveWebSocket, cp as LiveWebSocketConstructor, aO as LocalePublicationFields, r as LocalizationConfig, s as Localized, t as LocalizedDetails, cV as LogLevel, cN as PerformanceMetrics, aq as ReadWith, ap as Reading, cP as RealtimeConfig, cL as RealtimeEvent, cK as RealtimeEventType, cm as RelyIOConfig, cn as RelyIOConfigUpdate, cR as RequestConfig, cC as RestoredContent, cT as RetryConfig, cB as RevisedContent, aW as SettingsGroupDefinition, ar as SettingsReading, aj as ShapeValue, cE as SingletonContent, aR as SingletonContentTypeDefinition, aS as SingletonMetadata, as as SingletonReading, cM as SubscriptionOptions, ag as UnresolvedEntry, at as UntypedReading, cD as UpdateInput, cZ as ValidationError, cI as ValidationRule, cX as ValidationViolation, bc as VariantDefinition, bf as VideoCaptionsConfig, bg as VideoDownloadConfig, b4 as VideoKindConfig, be as VideoPosterConfig, bd as VideoUploadConfig, bh as VideoWatermarkConfig, cx as WhereClause, cw as WhereFieldCondition, cy as WhereOperator, cv as WhereScalar, W as WidgetOptions, aZ as defineAssetType, aD as defineContentType, aU as defineSettingsGroup, aP as defineSingleton, aE as fieldset } from './define-content-type-BUZeWtpk.cjs';
|
|
6
6
|
import { VisitorRetry } from './live-visitor.js';
|
|
7
7
|
export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.cjs';
|
|
8
|
-
export { n as RICH_TEXT_VOID_TAGS, R as RelyIOFieldAttributes, a as RelyIOFieldName, b as RelyIOFieldPath, c as RelyIOKeyed, q as RichTextAnchorsOption, t as RichTextAttributes, u as RichTextBlocksOf, v as RichTextDeclaredOf, w as RichTextDeclaredWriters, x as RichTextEntryLinkOf, y as RichTextEntryLinkOption, j as RichTextHtmlDeclaredWriters, k as RichTextHtmlFieldOption, l as RichTextHtmlOptions, z as RichTextInlineOf, m as RichTextMarkdownOptions, A as RichTextNodeContext, B as RichTextRenderable, C as RichTextRenderableOf, D as RichTextReplaceableNode, E as RichTextTag, F as RichTextTarget, e as entryHeadingAnchors, g as escapeHtml, o as isDeclaredRichTextNode, r as relyioField, p as renderRichText, d as richTextHeadingAnchors, f as richTextHeadingSlug, h as richTextToHtml, i as richTextToMarkdown, s as safeRichTextHref } from './index
|
|
9
|
-
export {
|
|
8
|
+
export { n as RICH_TEXT_VOID_TAGS, R as RelyIOFieldAttributes, a as RelyIOFieldName, b as RelyIOFieldPath, c as RelyIOKeyed, q as RichTextAnchorsOption, t as RichTextAttributes, u as RichTextBlocksOf, v as RichTextDeclaredOf, w as RichTextDeclaredWriters, x as RichTextEntryLinkOf, y as RichTextEntryLinkOption, j as RichTextHtmlDeclaredWriters, k as RichTextHtmlFieldOption, l as RichTextHtmlOptions, z as RichTextInlineOf, m as RichTextMarkdownOptions, A as RichTextNodeContext, B as RichTextRenderable, C as RichTextRenderableOf, D as RichTextReplaceableNode, E as RichTextTag, F as RichTextTarget, e as entryHeadingAnchors, g as escapeHtml, o as isDeclaredRichTextNode, r as relyioField, p as renderRichText, d as richTextHeadingAnchors, f as richTextHeadingSlug, h as richTextToHtml, i as richTextToMarkdown, s as safeRichTextHref } from './index-C-pcllqY.cjs';
|
|
9
|
+
export { A as AggregateBlock, L as AnyQueryParameters, M as DeclaredParameters, n as FetchBlock, w as FilterDefinition, I as IncludeDefinition, J as InferQueryParams, G as InferQueryResponse, Q as QueryConfig, l as QueryDefinition, K as QueryParameterValue, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, o as SearchBlock, v as SelectMapping, s as SortCondition, W as WhereCondition, k as defineQuery, d as defineSchema } from './define-schema-nCfZeboB.cjs';
|
|
10
10
|
export { e as RichTextBlock, f as RichTextCellAlignment, g as RichTextCodeBlock, h as RichTextCodeGroup, i as RichTextCodeLines, j as RichTextDivider, d as RichTextEntryLinkMark, k as RichTextHeading, l as RichTextInline, m as RichTextLineBreak, n as RichTextLinkMark, o as RichTextList, p as RichTextListItem, q as RichTextListStyle, r as RichTextMark, s as RichTextMarkType, t as RichTextNode, u as RichTextParagraph, v as RichTextQuote, w as RichTextSpan, x as RichTextStructure, y as RichTextTable, z as RichTextTableCell, B as RichTextTableRow, b as RichTextValue } from './rich-text.d-BWc-5gX1.cjs';
|
|
11
11
|
import './dev-handshake/index.cjs';
|
|
12
12
|
|
|
@@ -685,10 +685,7 @@ interface TranslationCompleteness {
|
|
|
685
685
|
*
|
|
686
686
|
* @example
|
|
687
687
|
* ```typescript
|
|
688
|
-
* const product = await client.content('product')
|
|
689
|
-
* .findById('prod_123')
|
|
690
|
-
* .locale('de-DE')
|
|
691
|
-
* .execute()
|
|
688
|
+
* const product = await client.content('product').get('prod_123', { locale: 'de-DE' })
|
|
692
689
|
*
|
|
693
690
|
* if (localeHelpers.needsTranslation(product)) {
|
|
694
691
|
* showTranslationBadge()
|
|
@@ -774,10 +771,7 @@ declare function estimateTranslationCompleteness(entry: LocalizedEntry, localize
|
|
|
774
771
|
*
|
|
775
772
|
* @example
|
|
776
773
|
* ```typescript
|
|
777
|
-
* const entry = await client.content('product')
|
|
778
|
-
* .findById('prod_123')
|
|
779
|
-
* .allLocales()
|
|
780
|
-
* .execute()
|
|
774
|
+
* const entry = await client.content('product').get('prod_123', { locale: '*' })
|
|
781
775
|
*
|
|
782
776
|
* const spanishTitle = localeHelpers.getLocalizedField(entry, 'title', 'es-ES')
|
|
783
777
|
* ```
|
|
@@ -950,19 +944,18 @@ declare function snapToLadder(value: number): number;
|
|
|
950
944
|
* ```typescript
|
|
951
945
|
* import { createClient, defineSchema, defineContentType, fields } from '@relyio/sdk'
|
|
952
946
|
*
|
|
953
|
-
* const product = defineContentType(
|
|
954
|
-
*
|
|
955
|
-
*
|
|
956
|
-
* fields.
|
|
957
|
-
*
|
|
958
|
-
* ]
|
|
947
|
+
* const product = defineContentType({
|
|
948
|
+
* fields: {
|
|
949
|
+
* title: fields.shortText({ required: true }),
|
|
950
|
+
* price: fields.decimal({ min: 0, decimalPlaces: 2 }),
|
|
951
|
+
* },
|
|
959
952
|
* })
|
|
960
953
|
*
|
|
961
954
|
* const schema = defineSchema({ contentTypes: { product } })
|
|
962
955
|
* const client = createClient({ apiKey: '...', schema })
|
|
963
956
|
*
|
|
964
957
|
* // Full autocomplete for content types and fields!
|
|
965
|
-
* const products = await client.content('product').
|
|
958
|
+
* const { data: products } = await client.content('product').list({ sort: { price: 'asc' } })
|
|
966
959
|
* ```
|
|
967
960
|
*
|
|
968
961
|
* @example Without schema (dynamic usage)
|
|
@@ -972,8 +965,8 @@ declare function snapToLadder(value: number): number;
|
|
|
972
965
|
* const client = createClient({ apiKey: '...' })
|
|
973
966
|
*
|
|
974
967
|
* // Works dynamically without type checking
|
|
975
|
-
* const products = await client.content('product').
|
|
976
|
-
* const results = await client.search('wireless'
|
|
968
|
+
* const { data: products } = await client.content('product').list()
|
|
969
|
+
* const results = await client.search('wireless', { contentType: 'product' })
|
|
977
970
|
* ```
|
|
978
971
|
*/
|
|
979
972
|
|