@relyio/sdk 0.8.0 → 0.10.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 +52 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-72UK5U7T.cjs → chunk-2HP566NI.cjs} +10 -2
- package/dist/{chunk-QFHVF3YF.js → chunk-2L5JUW7O.js} +65 -21
- package/dist/{chunk-XIE7WJV3.cjs → chunk-DC4QLAI3.cjs} +65 -20
- package/dist/{chunk-YEJUMW4X.js → chunk-IGHYC2WM.js} +10 -2
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +1 -1
- package/dist/{define-content-type-cEGjIwT5.d.cts → define-content-type-DfnTu26S.d.cts} +78 -2
- package/dist/{define-content-type-cEGjIwT5.d.ts → define-content-type-DfnTu26S.d.ts} +78 -2
- package/dist/{define-schema-DgbJ5Kwn.d.cts → define-schema-W-0u1Jg1.d.cts} +13 -20
- package/dist/{define-schema-BPj2srgh.d.ts → define-schema-rbTrXxNN.d.ts} +13 -20
- package/dist/{index-Cv4tmcrw.d.ts → index-B9hDmCho.d.ts} +1 -1
- package/dist/{index-DBoPPlT1.d.cts → index-KuYgc7eG.d.cts} +80 -14
- package/dist/{index-B_rIWO_l.d.cts → index-NnLCwSqF.d.cts} +1 -1
- package/dist/{index-yRJ2IqM_.d.ts → index-rLEBSFvK.d.ts} +80 -14
- package/dist/index.cjs +85 -81
- package/dist/index.d.cts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.js +3 -3
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +3 -3
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunk2HP566NI_cjs = require('./chunk-2HP566NI.cjs');
|
|
6
|
+
var chunkDC4QLAI3_cjs = require('./chunk-DC4QLAI3.cjs');
|
|
7
7
|
require('./chunk-LSRPMNPT.cjs');
|
|
8
8
|
require('./chunk-PPA2WWOH.cjs');
|
|
9
9
|
var chunkTZL374LS_cjs = require('./chunk-TZL374LS.cjs');
|
|
@@ -20,9 +20,9 @@ function stopOnUnknownAnswer(_answer) {
|
|
|
20
20
|
}
|
|
21
21
|
chunkMWMSFIWN_cjs.__name(stopOnUnknownAnswer, "stopOnUnknownAnswer");
|
|
22
22
|
function classifyFollowFailure(error) {
|
|
23
|
-
if (error instanceof
|
|
24
|
-
if (!(error instanceof
|
|
25
|
-
const afterMs =
|
|
23
|
+
if (error instanceof chunkDC4QLAI3_cjs.LiveEdgeError) return liveEdgeVerdict(error);
|
|
24
|
+
if (!(error instanceof chunkDC4QLAI3_cjs.SDKError) || !error.retryable) return { retry: false };
|
|
25
|
+
const afterMs = chunkDC4QLAI3_cjs.serviceInstructedDelayMs(error, Date.now());
|
|
26
26
|
return afterMs === void 0 ? { retry: true } : { retry: true, afterMs };
|
|
27
27
|
}
|
|
28
28
|
chunkMWMSFIWN_cjs.__name(classifyFollowFailure, "classifyFollowFailure");
|
|
@@ -36,7 +36,7 @@ function liveEdgeVerdict(error) {
|
|
|
36
36
|
return { retry: true, ...hint };
|
|
37
37
|
}
|
|
38
38
|
case "back-off": {
|
|
39
|
-
return { retry: true, ...hint, backOffMs:
|
|
39
|
+
return { retry: true, ...hint, backOffMs: chunkDC4QLAI3_cjs.VISITOR_ADMISSION_RETRY_AFTER_SECONDS * 1e3 };
|
|
40
40
|
}
|
|
41
41
|
default: {
|
|
42
42
|
return stopOnUnknownAnswer(error.retry);
|
|
@@ -49,10 +49,10 @@ async function followChanges(source, options) {
|
|
|
49
49
|
const classify = options.classify ?? classifyFollowFailure;
|
|
50
50
|
const random = options.random ?? Math.random;
|
|
51
51
|
const report = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name((state) => {
|
|
52
|
-
if (!
|
|
52
|
+
if (!chunkDC4QLAI3_cjs.isAborted(signal)) options.onState?.(state);
|
|
53
53
|
}, "report");
|
|
54
54
|
const resync = /* @__PURE__ */ chunkMWMSFIWN_cjs.__name(async (cause) => {
|
|
55
|
-
if (
|
|
55
|
+
if (chunkDC4QLAI3_cjs.isAborted(signal)) return;
|
|
56
56
|
await onResync(cause);
|
|
57
57
|
report({ kind: "resynced", resync: cause });
|
|
58
58
|
}, "resync");
|
|
@@ -61,12 +61,12 @@ async function followChanges(source, options) {
|
|
|
61
61
|
let unanchored = false;
|
|
62
62
|
let current;
|
|
63
63
|
for (; ; ) {
|
|
64
|
-
if (
|
|
64
|
+
if (chunkDC4QLAI3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
65
65
|
try {
|
|
66
66
|
if (unanchored) {
|
|
67
67
|
unanchored = false;
|
|
68
68
|
await resync({ cause: "no-cursor" });
|
|
69
|
-
if (
|
|
69
|
+
if (chunkDC4QLAI3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
70
70
|
}
|
|
71
71
|
report({ kind: "following" });
|
|
72
72
|
const open = {};
|
|
@@ -83,13 +83,13 @@ async function followChanges(source, options) {
|
|
|
83
83
|
}, "reached")
|
|
84
84
|
});
|
|
85
85
|
for await (const change of changes) {
|
|
86
|
-
if (
|
|
86
|
+
if (chunkDC4QLAI3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
87
87
|
failures = 0;
|
|
88
88
|
await onChange(change);
|
|
89
89
|
since = change.cursor;
|
|
90
|
-
if (
|
|
90
|
+
if (chunkDC4QLAI3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
91
91
|
}
|
|
92
|
-
if (
|
|
92
|
+
if (chunkDC4QLAI3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
93
93
|
const error = new Error(
|
|
94
94
|
"The change source completed without its signal aborting; a source ends only on abort and throws every other end."
|
|
95
95
|
);
|
|
@@ -97,7 +97,7 @@ async function followChanges(source, options) {
|
|
|
97
97
|
return { kind: "stopped", since, error };
|
|
98
98
|
} catch (error) {
|
|
99
99
|
current = void 0;
|
|
100
|
-
if (
|
|
100
|
+
if (chunkDC4QLAI3_cjs.isAborted(signal)) return { kind: "aborted", since };
|
|
101
101
|
const verdict = classify(error);
|
|
102
102
|
if (!verdict.retry) {
|
|
103
103
|
report({ kind: "stopped", error });
|
|
@@ -106,7 +106,7 @@ async function followChanges(source, options) {
|
|
|
106
106
|
failures += 1;
|
|
107
107
|
const retryInMs = retryDelayMs(failures, verdict, random);
|
|
108
108
|
report({ kind: "reconnecting", error, retryInMs });
|
|
109
|
-
await
|
|
109
|
+
await chunkDC4QLAI3_cjs.sleep(retryInMs, signal);
|
|
110
110
|
if (since === void 0) unanchored = true;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -302,267 +302,271 @@ var VERSION = "__VERSION__";
|
|
|
302
302
|
|
|
303
303
|
Object.defineProperty(exports, "defineAssetType", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunk2HP566NI_cjs.defineAssetType; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "defineComponent", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunk2HP566NI_cjs.defineComponent; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "defineContentType", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunk2HP566NI_cjs.defineContentType; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "defineQuery", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunk2HP566NI_cjs.defineQuery; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "defineSchema", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunk2HP566NI_cjs.defineSchema; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "defineSettingsGroup", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunk2HP566NI_cjs.defineSettingsGroup; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "defineSingleton", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunk2HP566NI_cjs.defineSingleton; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "defineSingletonContentType", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunk2HP566NI_cjs.defineSingletonContentType; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "fields", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunk2HP566NI_cjs.fields; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "fieldset", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunk2HP566NI_cjs.fieldset; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "AdhocQueryBuilder", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkDC4QLAI3_cjs.AdhocQueryBuilder; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "AdhocQueryClient", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkDC4QLAI3_cjs.AdhocQueryClient; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "AssetClient", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkDC4QLAI3_cjs.AssetClient; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "AssetFileBuilder", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkDC4QLAI3_cjs.AssetFileBuilder; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "AssetUploadBuilder", {
|
|
360
360
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkDC4QLAI3_cjs.AssetUploadBuilder; }
|
|
362
362
|
});
|
|
363
363
|
Object.defineProperty(exports, "AuthorizationError", {
|
|
364
364
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkDC4QLAI3_cjs.AuthorizationError; }
|
|
366
366
|
});
|
|
367
367
|
Object.defineProperty(exports, "AutocompleteBuilder", {
|
|
368
368
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunkDC4QLAI3_cjs.AutocompleteBuilder; }
|
|
370
370
|
});
|
|
371
371
|
Object.defineProperty(exports, "BaseValidationError", {
|
|
372
372
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunkDC4QLAI3_cjs.BaseValidationError; }
|
|
374
374
|
});
|
|
375
375
|
Object.defineProperty(exports, "BatchBuilder", {
|
|
376
376
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunkDC4QLAI3_cjs.BatchBuilder; }
|
|
378
378
|
});
|
|
379
379
|
Object.defineProperty(exports, "BatchClient", {
|
|
380
380
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
381
|
+
get: function () { return chunkDC4QLAI3_cjs.BatchClient; }
|
|
382
382
|
});
|
|
383
383
|
Object.defineProperty(exports, "ChangesExpiredError", {
|
|
384
384
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
385
|
+
get: function () { return chunkDC4QLAI3_cjs.ChangesExpiredError; }
|
|
386
386
|
});
|
|
387
387
|
Object.defineProperty(exports, "ConnectionError", {
|
|
388
388
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunkDC4QLAI3_cjs.ConnectionError; }
|
|
390
390
|
});
|
|
391
391
|
Object.defineProperty(exports, "ContentByIdBuilder", {
|
|
392
392
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunkDC4QLAI3_cjs.ContentByIdBuilder; }
|
|
394
394
|
});
|
|
395
395
|
Object.defineProperty(exports, "ContentClient", {
|
|
396
396
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunkDC4QLAI3_cjs.ContentClient; }
|
|
398
398
|
});
|
|
399
399
|
Object.defineProperty(exports, "ContentQueryBuilder", {
|
|
400
400
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
401
|
+
get: function () { return chunkDC4QLAI3_cjs.ContentQueryBuilder; }
|
|
402
402
|
});
|
|
403
403
|
Object.defineProperty(exports, "ErrorMapper", {
|
|
404
404
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
405
|
+
get: function () { return chunkDC4QLAI3_cjs.ErrorMapper; }
|
|
406
406
|
});
|
|
407
407
|
Object.defineProperty(exports, "FileUploadError", {
|
|
408
408
|
enumerable: true,
|
|
409
|
-
get: function () { return
|
|
409
|
+
get: function () { return chunkDC4QLAI3_cjs.FileUploadError; }
|
|
410
410
|
});
|
|
411
411
|
Object.defineProperty(exports, "FileValidationError", {
|
|
412
412
|
enumerable: true,
|
|
413
|
-
get: function () { return
|
|
413
|
+
get: function () { return chunkDC4QLAI3_cjs.FileValidationError; }
|
|
414
414
|
});
|
|
415
415
|
Object.defineProperty(exports, "HttpClient", {
|
|
416
416
|
enumerable: true,
|
|
417
|
-
get: function () { return
|
|
417
|
+
get: function () { return chunkDC4QLAI3_cjs.HttpClient; }
|
|
418
418
|
});
|
|
419
419
|
Object.defineProperty(exports, "InvalidApiKeyError", {
|
|
420
420
|
enumerable: true,
|
|
421
|
-
get: function () { return
|
|
421
|
+
get: function () { return chunkDC4QLAI3_cjs.InvalidApiKeyError; }
|
|
422
422
|
});
|
|
423
423
|
Object.defineProperty(exports, "InvalidPayloadError", {
|
|
424
424
|
enumerable: true,
|
|
425
|
-
get: function () { return
|
|
425
|
+
get: function () { return chunkDC4QLAI3_cjs.InvalidPayloadError; }
|
|
426
426
|
});
|
|
427
427
|
Object.defineProperty(exports, "LIVE_KEEPALIVE_INTERVAL_MS", {
|
|
428
428
|
enumerable: true,
|
|
429
|
-
get: function () { return
|
|
429
|
+
get: function () { return chunkDC4QLAI3_cjs.LIVE_KEEPALIVE_INTERVAL_MS; }
|
|
430
|
+
});
|
|
431
|
+
Object.defineProperty(exports, "LIVE_SOCKET_OPEN_TIMEOUT_MS", {
|
|
432
|
+
enumerable: true,
|
|
433
|
+
get: function () { return chunkDC4QLAI3_cjs.LIVE_SOCKET_OPEN_TIMEOUT_MS; }
|
|
430
434
|
});
|
|
431
435
|
Object.defineProperty(exports, "LiveEdgeError", {
|
|
432
436
|
enumerable: true,
|
|
433
|
-
get: function () { return
|
|
437
|
+
get: function () { return chunkDC4QLAI3_cjs.LiveEdgeError; }
|
|
434
438
|
});
|
|
435
439
|
Object.defineProperty(exports, "MethodNotAllowedError", {
|
|
436
440
|
enumerable: true,
|
|
437
|
-
get: function () { return
|
|
441
|
+
get: function () { return chunkDC4QLAI3_cjs.MethodNotAllowedError; }
|
|
438
442
|
});
|
|
439
443
|
Object.defineProperty(exports, "MissingApiKeyError", {
|
|
440
444
|
enumerable: true,
|
|
441
|
-
get: function () { return
|
|
445
|
+
get: function () { return chunkDC4QLAI3_cjs.MissingApiKeyError; }
|
|
442
446
|
});
|
|
443
447
|
Object.defineProperty(exports, "NetworkError", {
|
|
444
448
|
enumerable: true,
|
|
445
|
-
get: function () { return
|
|
449
|
+
get: function () { return chunkDC4QLAI3_cjs.NetworkError; }
|
|
446
450
|
});
|
|
447
451
|
Object.defineProperty(exports, "PUBLISHABLE_KEY_PREFIX", {
|
|
448
452
|
enumerable: true,
|
|
449
|
-
get: function () { return
|
|
453
|
+
get: function () { return chunkDC4QLAI3_cjs.PUBLISHABLE_KEY_PREFIX; }
|
|
450
454
|
});
|
|
451
455
|
Object.defineProperty(exports, "PayloadTooLargeError", {
|
|
452
456
|
enumerable: true,
|
|
453
|
-
get: function () { return
|
|
457
|
+
get: function () { return chunkDC4QLAI3_cjs.PayloadTooLargeError; }
|
|
454
458
|
});
|
|
455
459
|
Object.defineProperty(exports, "PlanFeatureUnavailableError", {
|
|
456
460
|
enumerable: true,
|
|
457
|
-
get: function () { return
|
|
461
|
+
get: function () { return chunkDC4QLAI3_cjs.PlanFeatureUnavailableError; }
|
|
458
462
|
});
|
|
459
463
|
Object.defineProperty(exports, "RateLimitError", {
|
|
460
464
|
enumerable: true,
|
|
461
|
-
get: function () { return
|
|
465
|
+
get: function () { return chunkDC4QLAI3_cjs.RateLimitError; }
|
|
462
466
|
});
|
|
463
467
|
Object.defineProperty(exports, "ReadOnlyKeyError", {
|
|
464
468
|
enumerable: true,
|
|
465
|
-
get: function () { return
|
|
469
|
+
get: function () { return chunkDC4QLAI3_cjs.ReadOnlyKeyError; }
|
|
466
470
|
});
|
|
467
471
|
Object.defineProperty(exports, "ResourceConflictError", {
|
|
468
472
|
enumerable: true,
|
|
469
|
-
get: function () { return
|
|
473
|
+
get: function () { return chunkDC4QLAI3_cjs.ResourceConflictError; }
|
|
470
474
|
});
|
|
471
475
|
Object.defineProperty(exports, "ResourceExpiredError", {
|
|
472
476
|
enumerable: true,
|
|
473
|
-
get: function () { return
|
|
477
|
+
get: function () { return chunkDC4QLAI3_cjs.ResourceExpiredError; }
|
|
474
478
|
});
|
|
475
479
|
Object.defineProperty(exports, "ResourceNotFoundError", {
|
|
476
480
|
enumerable: true,
|
|
477
|
-
get: function () { return
|
|
481
|
+
get: function () { return chunkDC4QLAI3_cjs.ResourceNotFoundError; }
|
|
478
482
|
});
|
|
479
483
|
Object.defineProperty(exports, "SDKError", {
|
|
480
484
|
enumerable: true,
|
|
481
|
-
get: function () { return
|
|
485
|
+
get: function () { return chunkDC4QLAI3_cjs.SDKError; }
|
|
482
486
|
});
|
|
483
487
|
Object.defineProperty(exports, "SearchBuilder", {
|
|
484
488
|
enumerable: true,
|
|
485
|
-
get: function () { return
|
|
489
|
+
get: function () { return chunkDC4QLAI3_cjs.SearchBuilder; }
|
|
486
490
|
});
|
|
487
491
|
Object.defineProperty(exports, "SearchClient", {
|
|
488
492
|
enumerable: true,
|
|
489
|
-
get: function () { return
|
|
493
|
+
get: function () { return chunkDC4QLAI3_cjs.SearchClient; }
|
|
490
494
|
});
|
|
491
495
|
Object.defineProperty(exports, "ServerError", {
|
|
492
496
|
enumerable: true,
|
|
493
|
-
get: function () { return
|
|
497
|
+
get: function () { return chunkDC4QLAI3_cjs.ServerError; }
|
|
494
498
|
});
|
|
495
499
|
Object.defineProperty(exports, "ServiceIndeterminateError", {
|
|
496
500
|
enumerable: true,
|
|
497
|
-
get: function () { return
|
|
501
|
+
get: function () { return chunkDC4QLAI3_cjs.ServiceIndeterminateError; }
|
|
498
502
|
});
|
|
499
503
|
Object.defineProperty(exports, "SettingsClient", {
|
|
500
504
|
enumerable: true,
|
|
501
|
-
get: function () { return
|
|
505
|
+
get: function () { return chunkDC4QLAI3_cjs.SettingsClient; }
|
|
502
506
|
});
|
|
503
507
|
Object.defineProperty(exports, "SimilarBuilder", {
|
|
504
508
|
enumerable: true,
|
|
505
|
-
get: function () { return
|
|
509
|
+
get: function () { return chunkDC4QLAI3_cjs.SimilarBuilder; }
|
|
506
510
|
});
|
|
507
511
|
Object.defineProperty(exports, "SingletonClient", {
|
|
508
512
|
enumerable: true,
|
|
509
|
-
get: function () { return
|
|
513
|
+
get: function () { return chunkDC4QLAI3_cjs.SingletonClient; }
|
|
510
514
|
});
|
|
511
515
|
Object.defineProperty(exports, "TimeoutError", {
|
|
512
516
|
enumerable: true,
|
|
513
|
-
get: function () { return
|
|
517
|
+
get: function () { return chunkDC4QLAI3_cjs.TimeoutError; }
|
|
514
518
|
});
|
|
515
519
|
Object.defineProperty(exports, "TransactionRolledBackError", {
|
|
516
520
|
enumerable: true,
|
|
517
|
-
get: function () { return
|
|
521
|
+
get: function () { return chunkDC4QLAI3_cjs.TransactionRolledBackError; }
|
|
518
522
|
});
|
|
519
523
|
Object.defineProperty(exports, "TypedRelyIOClient", {
|
|
520
524
|
enumerable: true,
|
|
521
|
-
get: function () { return
|
|
525
|
+
get: function () { return chunkDC4QLAI3_cjs.TypedRelyIOClient; }
|
|
522
526
|
});
|
|
523
527
|
Object.defineProperty(exports, "UnknownContractError", {
|
|
524
528
|
enumerable: true,
|
|
525
|
-
get: function () { return
|
|
529
|
+
get: function () { return chunkDC4QLAI3_cjs.UnknownContractError; }
|
|
526
530
|
});
|
|
527
531
|
Object.defineProperty(exports, "UsageQuotaExceededError", {
|
|
528
532
|
enumerable: true,
|
|
529
|
-
get: function () { return
|
|
533
|
+
get: function () { return chunkDC4QLAI3_cjs.UsageQuotaExceededError; }
|
|
530
534
|
});
|
|
531
535
|
Object.defineProperty(exports, "ValidationError", {
|
|
532
536
|
enumerable: true,
|
|
533
|
-
get: function () { return
|
|
537
|
+
get: function () { return chunkDC4QLAI3_cjs.ValidationError; }
|
|
534
538
|
});
|
|
535
539
|
Object.defineProperty(exports, "createClient", {
|
|
536
540
|
enumerable: true,
|
|
537
|
-
get: function () { return
|
|
541
|
+
get: function () { return chunkDC4QLAI3_cjs.createClient; }
|
|
538
542
|
});
|
|
539
543
|
Object.defineProperty(exports, "default", {
|
|
540
544
|
enumerable: true,
|
|
541
|
-
get: function () { return
|
|
545
|
+
get: function () { return chunkDC4QLAI3_cjs.createClient; }
|
|
542
546
|
});
|
|
543
547
|
Object.defineProperty(exports, "entityTagOf", {
|
|
544
548
|
enumerable: true,
|
|
545
|
-
get: function () { return
|
|
549
|
+
get: function () { return chunkDC4QLAI3_cjs.entityTagOf; }
|
|
546
550
|
});
|
|
547
551
|
Object.defineProperty(exports, "isAssetEntry", {
|
|
548
552
|
enumerable: true,
|
|
549
|
-
get: function () { return
|
|
553
|
+
get: function () { return chunkDC4QLAI3_cjs.isAssetEntry; }
|
|
550
554
|
});
|
|
551
555
|
Object.defineProperty(exports, "isPublishableKey", {
|
|
552
556
|
enumerable: true,
|
|
553
|
-
get: function () { return
|
|
557
|
+
get: function () { return chunkDC4QLAI3_cjs.isPublishableKey; }
|
|
554
558
|
});
|
|
555
559
|
Object.defineProperty(exports, "isResourceNotFound", {
|
|
556
560
|
enumerable: true,
|
|
557
|
-
get: function () { return
|
|
561
|
+
get: function () { return chunkDC4QLAI3_cjs.isResourceNotFound; }
|
|
558
562
|
});
|
|
559
563
|
Object.defineProperty(exports, "matchRoute", {
|
|
560
564
|
enumerable: true,
|
|
561
|
-
get: function () { return
|
|
565
|
+
get: function () { return chunkDC4QLAI3_cjs.matchRoute; }
|
|
562
566
|
});
|
|
563
567
|
Object.defineProperty(exports, "validateFile", {
|
|
564
568
|
enumerable: true,
|
|
565
|
-
get: function () { return
|
|
569
|
+
get: function () { return chunkDC4QLAI3_cjs.validateFile; }
|
|
566
570
|
});
|
|
567
571
|
Object.defineProperty(exports, "camelToSnake", {
|
|
568
572
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-
|
|
2
|
-
export { A as ActiveSandbox,
|
|
1
|
+
import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-KuYgc7eG.cjs';
|
|
2
|
+
export { A as ActiveSandbox, a6 as AdhocAggregateBlock, a5 as AdhocFetchBlock, a4 as AdhocQueryBuilder, a3 as AdhocQueryClient, ab as AdhocQueryDefinition, ac as AdhocQueryOptions, ae as AdhocQueryResult, a8 as AdhocSearchBlock, a7 as AggregateMetric, af as AssetClient, aq as AssetEntryResponse, am as AssetFileBlock, ag as AssetFileBuilder, an as AssetFileExtracted, ah as AssetUploadBuilder, ap as AssetUrls, aj as AssetVisibility, y as AutocompleteBuilder, K as AutocompleteResponse, J as AutocompleteSuggestion, Y as BatchBuilder, X as BatchClient, Z as BatchMethod, _ as BatchOperation, a0 as BatchOperationResult, $ as BatchOptions, a2 as BatchResponse, a1 as BatchSummary, k as ChangesHeadOptions, l as ChangesOptions, t as ChildrenOptions, e as ClientSchema, i as ConditionalWriteOptions, au as ConfirmInput, av as ConfirmResult, s as ContentByIdBuilder, o as ContentClient, r as ContentQueryBuilder, ay as CreateAssetOptions, E as ExtendedQueryResult, F as FeedChange, al as FileBackend, aI as FileErrorCode, ak as FileStatus, ao as FileStatusResult, aK as FileUploadError, aJ as FileUploadErrorCode, aM as FileValidationConstraints, aL as FileValidationError, a9 as FilterValue, aa as FullTextConfig, H as HttpClient, L as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, n as LiveChangesOptions, aA as MultipartCreateResult, aB as MultipartPart, aC as MultipartTarget, ar as PopulatedAssetReference, as as PresignInput, at as PresignResult, P as Project, ad as QueryMetadata, R as Register, f as RegisteredSchema, aw as ResolveUrlInput, ax as ResolveUrlResult, aF as ResourceConflictError, aG as ResourceExpiredError, aE as ResourceNotFoundError, j as RetryableWriteOptions, S as SandboxState, x as SearchBuilder, w as SearchClient, W as SearchEntry, Q as SearchFields, O as SearchFilter, G as SearchHitMetadata, B as SearchMode, I as SearchResponse, D as SearchResultItem, U as SearchSort, V as SearchTypeName, g as SendOptions, q as SettingsClient, v as SettingsFetchOptions, z as SimilarBuilder, N as SimilarResponse, M as SimilarResult, p as SingletonClient, u as SingletonFetchOptions, d as TypedClientConfig, T as TypedRelyIOClient, aD as UploadProgress, az as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ai as isAssetEntry, aH as isResourceNotFound, aN as validateFile } from './index-KuYgc7eG.cjs';
|
|
3
3
|
export { fields } from './schema/index.cjs';
|
|
4
|
-
import { S as SDKError, B as BaseContent } from './index-
|
|
5
|
-
export { c as ApiMethod, A as ApiPath, w as ApiResponse, d as ApiSuccessBody, H as BaseValidationError, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, p as FieldOptions, F as FieldTypeName, J as InvalidPayloadError, L as LiveWebSocket, b as LiveWebSocketConstructor, z as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, v as RequestConfig, x as RetryConfig, e as RouteMatch, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, I as ValidationError, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar, W as Wire, m as matchRoute } from './index-
|
|
4
|
+
import { S as SDKError, B as BaseContent } from './index-NnLCwSqF.cjs';
|
|
5
|
+
export { c as ApiMethod, A as ApiPath, w as ApiResponse, d as ApiSuccessBody, H as BaseValidationError, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, p as FieldOptions, F as FieldTypeName, J as InvalidPayloadError, L as LiveWebSocket, b as LiveWebSocketConstructor, z as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, v as RequestConfig, x as RetryConfig, e as RouteMatch, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, I as ValidationError, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar, W as Wire, m as matchRoute } from './index-NnLCwSqF.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
|
-
import { Q as EntryMetadata } from './define-content-type-
|
|
9
|
-
export { a5 as AssetTypeConfig, a9 as AssetTypeDefinition, n as BaseFieldConfig, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, c as FieldDefinition, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, ab as ImageKindConfig, ai as ImageSourceConfig, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, L as LocalizationConfig, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, a4 as defineAssetType, H as defineContentType, Z as defineSingleton, Y as defineSingletonContentType, J as fieldset } from './define-content-type-
|
|
10
|
-
export {
|
|
8
|
+
import { Q as EntryMetadata } from './define-content-type-DfnTu26S.cjs';
|
|
9
|
+
export { a5 as AssetTypeConfig, a9 as AssetTypeDefinition, n as BaseFieldConfig, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, c as FieldDefinition, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, ab as ImageKindConfig, ai as ImageSourceConfig, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, L as LocalizationConfig, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, a4 as defineAssetType, H as defineContentType, Z as defineSingleton, Y as defineSingletonContentType, J as fieldset } from './define-content-type-DfnTu26S.cjs';
|
|
10
|
+
export { a9 as AggregateBlock, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, a8 as FetchBlock, am as FilterDefinition, ai as IncludeDefinition, aw as InferQueryParams, av as InferQueryResponse, a4 as QueryConfig, a5 as QueryDefinition, 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, aa as SearchBlock, al as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, ag as SortCondition, ab as WhereCondition, r as defineComponent, a3 as defineQuery, d as defineSchema, w as defineSettingsGroup } from './define-schema-W-0u1Jg1.cjs';
|
|
11
11
|
import './dev-handshake/index.cjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -59,10 +59,11 @@ declare const isPublishableKey: (apiKey: string | undefined) => boolean;
|
|
|
59
59
|
* `reached()` with the cursor `feed.opened` names, so a socket dropped before its
|
|
60
60
|
* first change reconnects from that cursor instead of re-reading everything.
|
|
61
61
|
*
|
|
62
|
-
* The long-poll calls
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
62
|
+
* The long-poll never calls `opened()`, so its back-off resets only on a
|
|
63
|
+
* delivered change. It calls `reached()` once, opened without a cursor, with the
|
|
64
|
+
* head its first poll answered (REL-1513) — the position it starts from, and
|
|
65
|
+
* where a failure before its first change reopens — and never with a later
|
|
66
|
+
* empty page's cursor, which for a filtered feed is past rows the filter hid.
|
|
66
67
|
*/
|
|
67
68
|
|
|
68
69
|
/** The ceiling of the first wait after a failure worth retrying; doubled per consecutive failure. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-
|
|
2
|
-
export { A as ActiveSandbox,
|
|
1
|
+
import { C as Change, a as ChangesExpiredError, b as ChangesExpiredReason } from './index-rLEBSFvK.js';
|
|
2
|
+
export { A as ActiveSandbox, a6 as AdhocAggregateBlock, a5 as AdhocFetchBlock, a4 as AdhocQueryBuilder, a3 as AdhocQueryClient, ab as AdhocQueryDefinition, ac as AdhocQueryOptions, ae as AdhocQueryResult, a8 as AdhocSearchBlock, a7 as AggregateMetric, af as AssetClient, aq as AssetEntryResponse, am as AssetFileBlock, ag as AssetFileBuilder, an as AssetFileExtracted, ah as AssetUploadBuilder, ap as AssetUrls, aj as AssetVisibility, y as AutocompleteBuilder, K as AutocompleteResponse, J as AutocompleteSuggestion, Y as BatchBuilder, X as BatchClient, Z as BatchMethod, _ as BatchOperation, a0 as BatchOperationResult, $ as BatchOptions, a2 as BatchResponse, a1 as BatchSummary, k as ChangesHeadOptions, l as ChangesOptions, t as ChildrenOptions, e as ClientSchema, i as ConditionalWriteOptions, au as ConfirmInput, av as ConfirmResult, s as ContentByIdBuilder, o as ContentClient, r as ContentQueryBuilder, ay as CreateAssetOptions, E as ExtendedQueryResult, F as FeedChange, al as FileBackend, aI as FileErrorCode, ak as FileStatus, ao as FileStatusResult, aK as FileUploadError, aJ as FileUploadErrorCode, aM as FileValidationConstraints, aL as FileValidationError, a9 as FilterValue, aa as FullTextConfig, H as HttpClient, L as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, n as LiveChangesOptions, aA as MultipartCreateResult, aB as MultipartPart, aC as MultipartTarget, ar as PopulatedAssetReference, as as PresignInput, at as PresignResult, P as Project, ad as QueryMetadata, R as Register, f as RegisteredSchema, aw as ResolveUrlInput, ax as ResolveUrlResult, aF as ResourceConflictError, aG as ResourceExpiredError, aE as ResourceNotFoundError, j as RetryableWriteOptions, S as SandboxState, x as SearchBuilder, w as SearchClient, W as SearchEntry, Q as SearchFields, O as SearchFilter, G as SearchHitMetadata, B as SearchMode, I as SearchResponse, D as SearchResultItem, U as SearchSort, V as SearchTypeName, g as SendOptions, q as SettingsClient, v as SettingsFetchOptions, z as SimilarBuilder, N as SimilarResponse, M as SimilarResult, p as SingletonClient, u as SingletonFetchOptions, d as TypedClientConfig, T as TypedRelyIOClient, aD as UploadProgress, az as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ai as isAssetEntry, aH as isResourceNotFound, aN as validateFile } from './index-rLEBSFvK.js';
|
|
3
3
|
export { fields } from './schema/index.js';
|
|
4
|
-
import { S as SDKError, B as BaseContent } from './index-
|
|
5
|
-
export { c as ApiMethod, A as ApiPath, w as ApiResponse, d as ApiSuccessBody, H as BaseValidationError, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, p as FieldOptions, F as FieldTypeName, J as InvalidPayloadError, L as LiveWebSocket, b as LiveWebSocketConstructor, z as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, v as RequestConfig, x as RetryConfig, e as RouteMatch, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, I as ValidationError, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar, W as Wire, m as matchRoute } from './index-
|
|
4
|
+
import { S as SDKError, B as BaseContent } from './index-B9hDmCho.js';
|
|
5
|
+
export { c as ApiMethod, A as ApiPath, w as ApiResponse, d as ApiSuccessBody, H as BaseValidationError, t as CacheConfig, y as CacheStrategy, k as ContentQueryResult, o as ContentTypeSchema, C as CreateInput, n as CustomQuery, D as DebugConfig, E as Environment, p as FieldOptions, F as FieldTypeName, J as InvalidPayloadError, L as LiveWebSocket, b as LiveWebSocketConstructor, z as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, u as RealtimeConfig, r as RealtimeEvent, q as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, v as RequestConfig, x as RetryConfig, e as RouteMatch, l as SingletonContent, j as SortOptions, s as SubscriptionOptions, U as UpdateInput, I as ValidationError, V as ValidationRule, G as ValidationViolation, h as WhereClause, g as WhereFieldCondition, i as WhereOperator, f as WhereScalar, W as Wire, m as matchRoute } from './index-B9hDmCho.js';
|
|
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.js';
|
|
8
|
-
import { Q as EntryMetadata } from './define-content-type-
|
|
9
|
-
export { a5 as AssetTypeConfig, a9 as AssetTypeDefinition, n as BaseFieldConfig, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, c as FieldDefinition, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, ab as ImageKindConfig, ai as ImageSourceConfig, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, L as LocalizationConfig, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, a4 as defineAssetType, H as defineContentType, Z as defineSingleton, Y as defineSingletonContentType, J as fieldset } from './define-content-type-
|
|
10
|
-
export {
|
|
8
|
+
import { Q as EntryMetadata } from './define-content-type-DfnTu26S.js';
|
|
9
|
+
export { a5 as AssetTypeConfig, a9 as AssetTypeDefinition, n as BaseFieldConfig, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, c as FieldDefinition, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, ab as ImageKindConfig, ai as ImageSourceConfig, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, L as LocalizationConfig, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, a4 as defineAssetType, H as defineContentType, Z as defineSingleton, Y as defineSingletonContentType, J as fieldset } from './define-content-type-DfnTu26S.js';
|
|
10
|
+
export { a9 as AggregateBlock, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, a8 as FetchBlock, am as FilterDefinition, ai as IncludeDefinition, aw as InferQueryParams, av as InferQueryResponse, a4 as QueryConfig, a5 as QueryDefinition, 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, aa as SearchBlock, al as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, ag as SortCondition, ab as WhereCondition, r as defineComponent, a3 as defineQuery, d as defineSchema, w as defineSettingsGroup } from './define-schema-rbTrXxNN.js';
|
|
11
11
|
import './dev-handshake/index.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -59,10 +59,11 @@ declare const isPublishableKey: (apiKey: string | undefined) => boolean;
|
|
|
59
59
|
* `reached()` with the cursor `feed.opened` names, so a socket dropped before its
|
|
60
60
|
* first change reconnects from that cursor instead of re-reading everything.
|
|
61
61
|
*
|
|
62
|
-
* The long-poll calls
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
62
|
+
* The long-poll never calls `opened()`, so its back-off resets only on a
|
|
63
|
+
* delivered change. It calls `reached()` once, opened without a cursor, with the
|
|
64
|
+
* head its first poll answered (REL-1513) — the position it starts from, and
|
|
65
|
+
* where a failure before its first change reopens — and never with a later
|
|
66
|
+
* empty page's cursor, which for a filtered feed is past rows the filter hid.
|
|
66
67
|
*/
|
|
67
68
|
|
|
68
69
|
/** The ceiling of the first wait after a failure worth retrying; doubled per consecutive failure. */
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-
|
|
2
|
-
import { LiveEdgeError, SDKError, serviceInstructedDelayMs, VISITOR_ADMISSION_RETRY_AFTER_SECONDS, isAborted, sleep } from './chunk-
|
|
3
|
-
export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ChangesExpiredError, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidPayloadError, LIVE_KEEPALIVE_INTERVAL_MS, LiveEdgeError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isPublishableKey, isResourceNotFound, matchRoute, validateFile } from './chunk-
|
|
1
|
+
export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-IGHYC2WM.js';
|
|
2
|
+
import { LiveEdgeError, SDKError, serviceInstructedDelayMs, VISITOR_ADMISSION_RETRY_AFTER_SECONDS, isAborted, sleep } from './chunk-2L5JUW7O.js';
|
|
3
|
+
export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ChangesExpiredError, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidPayloadError, LIVE_KEEPALIVE_INTERVAL_MS, LIVE_SOCKET_OPEN_TIMEOUT_MS, LiveEdgeError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isPublishableKey, isResourceNotFound, matchRoute, validateFile } from './chunk-2L5JUW7O.js';
|
|
4
4
|
import './chunk-BBUB7C2Z.js';
|
|
5
5
|
import './chunk-IY5LSKXU.js';
|
|
6
6
|
export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './chunk-H6IBQSMM.js';
|