@seedprotocol/sdk 0.7.7 → 0.7.8-next.1034.g2acd2a2
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/dist/{ClientManager-2GtDWHq6.js → ClientManager-DBKvmJov.js} +64 -36
- package/dist/ClientManager-DBKvmJov.js.map +1 -0
- package/dist/{Item-D6j0IvBP.js → Item-BiMHgg-_.js} +539 -486
- package/dist/Item-BiMHgg-_.js.map +1 -0
- package/dist/{ModelProperty-B52C3CQ2.js → ModelProperty-C1Fzcnbm.js} +50 -51
- package/dist/ModelProperty-C1Fzcnbm.js.map +1 -0
- package/dist/{Schema-O1QLoXv6.js → Schema-COTbavcm.js} +97 -82
- package/dist/Schema-COTbavcm.js.map +1 -0
- package/dist/{SchemaValidationService-BxCbfDaI.js → SchemaValidationService-paOfbcwd.js} +6 -6
- package/dist/{SchemaValidationService-BxCbfDaI.js.map → SchemaValidationService-paOfbcwd.js.map} +1 -1
- package/dist/{backfillMetadataPropertyIds-CzSbuucw.js → backfillMetadataPropertyIds-BkpBahbz.js} +3 -3
- package/dist/{backfillMetadataPropertyIds-CzSbuucw.js.map → backfillMetadataPropertyIds-BkpBahbz.js.map} +1 -1
- package/dist/{configurePlatform-Bbpw_R4y.js → configurePlatform-_XR45RnJ.js} +2 -2
- package/dist/{configurePlatform-Bbpw_R4y.js.map → configurePlatform-_XR45RnJ.js.map} +1 -1
- package/dist/{detachRowsBeforeDelete-D1TyEMco.js → detachRowsBeforeDelete-C1iapUFl.js} +2 -2
- package/dist/{detachRowsBeforeDelete-D1TyEMco.js.map → detachRowsBeforeDelete-C1iapUFl.js.map} +1 -1
- package/dist/{discardNewDraft-hiVaUVjV.js → discardNewDraft-D4nrwp3T.js} +5 -5
- package/dist/{discardNewDraft-hiVaUVjV.js.map → discardNewDraft-D4nrwp3T.js.map} +1 -1
- package/dist/dist/{ClientManager-2GtDWHq6.d.ts → ClientManager-DBKvmJov.d.ts} +20 -1
- package/dist/dist/ClientManager-DBKvmJov.d.ts.map +1 -0
- package/dist/dist/{Item-D6j0IvBP.d.ts → Item-BiMHgg-_.d.ts} +146 -85
- package/dist/dist/Item-BiMHgg-_.d.ts.map +1 -0
- package/dist/dist/{ModelProperty-B52C3CQ2.d.ts → ModelProperty-C1Fzcnbm.d.ts} +1 -1
- package/dist/dist/{ModelProperty-B52C3CQ2.d.ts.map → ModelProperty-C1Fzcnbm.d.ts.map} +1 -1
- package/dist/dist/{Schema-O1QLoXv6.d.ts → Schema-COTbavcm.d.ts} +11 -4
- package/dist/dist/Schema-COTbavcm.d.ts.map +1 -0
- package/dist/dist/{SchemaValidationService-BxCbfDaI.d.ts → SchemaValidationService-paOfbcwd.d.ts} +1 -1
- package/dist/dist/{SchemaValidationService-BxCbfDaI.d.ts.map → SchemaValidationService-paOfbcwd.d.ts.map} +1 -1
- package/dist/dist/{backfillMetadataPropertyIds-CzSbuucw.d.ts → backfillMetadataPropertyIds-BkpBahbz.d.ts} +1 -1
- package/dist/dist/backfillMetadataPropertyIds-BkpBahbz.d.ts.map +1 -0
- package/dist/dist/{configurePlatform-Bbpw_R4y.d.ts → configurePlatform-_XR45RnJ.d.ts} +1 -1
- package/dist/dist/configurePlatform-_XR45RnJ.d.ts.map +1 -0
- package/dist/dist/{detachRowsBeforeDelete-D1TyEMco.d.ts → detachRowsBeforeDelete-C1iapUFl.d.ts} +1 -1
- package/dist/dist/detachRowsBeforeDelete-C1iapUFl.d.ts.map +1 -0
- package/dist/dist/{discardNewDraft-hiVaUVjV.d.ts → discardNewDraft-D4nrwp3T.d.ts} +1 -1
- package/dist/dist/discardNewDraft-D4nrwp3T.d.ts.map +1 -0
- package/dist/dist/{eas-DOdj-EMK.d.ts → eas-BRVEGT97.d.ts} +1 -1
- package/dist/dist/eas-BRVEGT97.d.ts.map +1 -0
- package/dist/dist/{errors-KM-yq2MD.d.ts → errors-CQagdED2.d.ts} +39 -24
- package/dist/dist/errors-CQagdED2.d.ts.map +1 -0
- package/dist/dist/{getItem-Bh0zv-o1.d.ts → getItem-Jpr1SKIL.d.ts} +1 -1
- package/dist/dist/getItem-Jpr1SKIL.d.ts.map +1 -0
- package/dist/dist/{getPublishPayload-oH8wJhnH.d.ts → getPublishPayload-Bmeqtq4l.d.ts} +1 -1
- package/dist/dist/{getPublishPayload-oH8wJhnH.d.ts.map → getPublishPayload-Bmeqtq4l.d.ts.map} +1 -1
- package/dist/dist/{getPublishUploads-Cex-NBe6.d.ts → getPublishUploads-7nW1kMZV.d.ts} +1 -1
- package/dist/dist/{getPublishUploads-Cex-NBe6.d.ts.map → getPublishUploads-7nW1kMZV.d.ts.map} +1 -1
- package/dist/dist/{index-BbFwftAv.d.ts → index-3_hGVu7v.d.ts} +1 -1
- package/dist/dist/{index-BbFwftAv.d.ts.map → index-3_hGVu7v.d.ts.map} +1 -1
- package/dist/dist/{index-DpgQMIRq.d.ts → index-C-NqjjY_.d.ts} +11 -5
- package/dist/dist/index-C-NqjjY_.d.ts.map +1 -0
- package/dist/dist/{index-BAao3_Po.d.ts → index-DM3zrNtX.d.ts} +5 -5
- package/dist/dist/index-DM3zrNtX.d.ts.map +1 -0
- package/dist/dist/{index.browser-nndbVM7z.d.ts → index.browser-DGoOSs1J.d.ts} +1 -1
- package/dist/dist/{index.browser-nndbVM7z.d.ts.map → index.browser-DGoOSs1J.d.ts.map} +1 -1
- package/dist/dist/{index.node-BUfx-JaP.d.ts → index.node-CTv62R2a.d.ts} +1 -1
- package/dist/dist/{index.node-BUfx-JaP.d.ts.map → index.node-CTv62R2a.d.ts.map} +1 -1
- package/dist/dist/platform.browser.d.ts +2 -2
- package/dist/dist/platform.node.d.ts +2 -2
- package/dist/dist/{property-BDBvImLs.d.ts → property-DaUy4XMe.d.ts} +3 -3
- package/dist/dist/property-DaUy4XMe.d.ts.map +1 -0
- package/dist/dist/{propertyValidationRules-BlfLn4rP.d.ts → propertyValidationRules-DbbWvBzj.d.ts} +1 -1
- package/dist/dist/propertyValidationRules-DbbWvBzj.d.ts.map +1 -0
- package/dist/dist/{publishDraftGraph-CLO85LLz.d.ts → publishDraftGraph-CCa6EzeO.d.ts} +1 -1
- package/dist/dist/{publishDraftGraph-CLO85LLz.d.ts.map → publishDraftGraph-CCa6EzeO.d.ts.map} +1 -1
- package/dist/dist/{resetAmbiguousLegacyItemData-Cy8ik7xk.d.ts → resetAmbiguousLegacyItemData--PN1v53N.d.ts} +1 -1
- package/dist/dist/resetAmbiguousLegacyItemData--PN1v53N.d.ts.map +1 -0
- package/dist/dist/{resolveModelForSyncedSeed-DFr4COc4.d.ts → resolveModelForSyncedSeed-VDzkS6Rs.d.ts} +1 -1
- package/dist/dist/resolveModelForSyncedSeed-VDzkS6Rs.d.ts.map +1 -0
- package/dist/dist/{syncDbWithEas-CAOlw3i-.d.ts → syncDbWithEas-D0gyJ58h.d.ts} +1 -1
- package/dist/dist/syncDbWithEas-D0gyJ58h.d.ts.map +1 -0
- package/dist/dist/{tabEvents-DksXwk3X.d.ts → tabEvents-UH-wNsZC.d.ts} +7 -4
- package/dist/dist/tabEvents-UH-wNsZC.d.ts.map +1 -0
- package/dist/dist/{tolerantWebAccess-CEIjFGf0.d.ts → tolerantWebAccess-CpcTCAZv.d.ts} +1 -1
- package/dist/dist/{tolerantWebAccess-CEIjFGf0.d.ts.map → tolerantWebAccess-CpcTCAZv.d.ts.map} +1 -1
- package/dist/dist/{updateSeedRevokedAt-Cjr35YjE.d.ts → updateSeedRevokedAt-D230zfWk.d.ts} +1 -1
- package/dist/dist/updateSeedRevokedAt-D230zfWk.d.ts.map +1 -0
- package/dist/{eas-DOdj-EMK.js → eas-BRVEGT97.js} +4 -4
- package/dist/{eas-DOdj-EMK.js.map → eas-BRVEGT97.js.map} +1 -1
- package/dist/{errors-KM-yq2MD.js → errors-CQagdED2.js} +222 -275
- package/dist/errors-CQagdED2.js.map +1 -0
- package/dist/{getItem-Bh0zv-o1.js → getItem-Jpr1SKIL.js} +4 -4
- package/dist/{getItem-Bh0zv-o1.js.map → getItem-Jpr1SKIL.js.map} +1 -1
- package/dist/{getPublishPayload-oH8wJhnH.js → getPublishPayload-Bmeqtq4l.js} +15 -15
- package/dist/{getPublishPayload-oH8wJhnH.js.map → getPublishPayload-Bmeqtq4l.js.map} +1 -1
- package/dist/{getPublishUploads-Cex-NBe6.js → getPublishUploads-7nW1kMZV.js} +6 -6
- package/dist/{getPublishUploads-Cex-NBe6.js.map → getPublishUploads-7nW1kMZV.js.map} +1 -1
- package/dist/{index-BbFwftAv.js → index-3_hGVu7v.js} +2 -2
- package/dist/index-3_hGVu7v.js.map +1 -0
- package/dist/{index-DpgQMIRq.js → index-C-NqjjY_.js} +18 -3
- package/dist/index-C-NqjjY_.js.map +1 -0
- package/dist/{index-BAao3_Po.js → index-DM3zrNtX.js} +8 -8
- package/dist/index-DM3zrNtX.js.map +1 -0
- package/dist/{index.browser-nndbVM7z.js → index.browser-DGoOSs1J.js} +27 -18
- package/dist/index.browser-DGoOSs1J.js.map +1 -0
- package/dist/{index.node-BUfx-JaP.js → index.node-CTv62R2a.js} +6 -6
- package/dist/{index.node-BUfx-JaP.js.map → index.node-CTv62R2a.js.map} +1 -1
- package/dist/main.js +24 -24
- package/dist/node.js +11 -11
- package/dist/platform.browser.js +5 -5
- package/dist/platform.node.js +4 -4
- package/dist/{property-BDBvImLs.js → property-DaUy4XMe.js} +9 -11
- package/dist/property-DaUy4XMe.js.map +1 -0
- package/dist/{propertyValidationRules-BlfLn4rP.js → propertyValidationRules-DbbWvBzj.js} +10 -10
- package/dist/{propertyValidationRules-BlfLn4rP.js.map → propertyValidationRules-DbbWvBzj.js.map} +1 -1
- package/dist/{publishDraftGraph-CLO85LLz.js → publishDraftGraph-CCa6EzeO.js} +6 -6
- package/dist/{publishDraftGraph-CLO85LLz.js.map → publishDraftGraph-CCa6EzeO.js.map} +1 -1
- package/dist/{resetAmbiguousLegacyItemData-Cy8ik7xk.js → resetAmbiguousLegacyItemData--PN1v53N.js} +2 -2
- package/dist/{resetAmbiguousLegacyItemData-Cy8ik7xk.js.map → resetAmbiguousLegacyItemData--PN1v53N.js.map} +1 -1
- package/dist/{resolveModelForSyncedSeed-DFr4COc4.js → resolveModelForSyncedSeed-VDzkS6Rs.js} +2 -2
- package/dist/{resolveModelForSyncedSeed-DFr4COc4.js.map → resolveModelForSyncedSeed-VDzkS6Rs.js.map} +1 -1
- package/dist/src/Item/Item.d.ts +23 -6
- package/dist/src/Item/Item.d.ts.map +1 -1
- package/dist/src/Item/service/itemMachineSingle.d.ts.map +1 -1
- package/dist/src/ItemProperty/ItemProperty.d.ts +38 -6
- package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
- package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts.map +1 -1
- package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts.map +1 -1
- package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +1 -1
- package/dist/src/Model/Model.d.ts +50 -9
- package/dist/src/Model/Model.d.ts.map +1 -1
- package/dist/src/Model/service/actors/validateModel.d.ts.map +1 -1
- package/dist/src/ModelProperty/ModelProperty.d.ts.map +1 -1
- package/dist/src/ModelProperty/service/actors/compareAndMarkDraft.d.ts.map +1 -1
- package/dist/src/ModelProperty/service/actors/validateProperty.d.ts.map +1 -1
- package/dist/src/Schema/Schema.d.ts +22 -3
- package/dist/src/Schema/Schema.d.ts.map +1 -1
- package/dist/src/Schema/service/actors/checkExistingSchema.d.ts.map +1 -1
- package/dist/src/Schema/service/actors/createModelInstances.d.ts.map +1 -1
- package/dist/src/Schema/service/actors/loadOrCreateSchema.d.ts.map +1 -1
- package/dist/src/browser/db/Db.d.ts.map +1 -1
- package/dist/src/browser/helpers/FileManager.d.ts.map +1 -1
- package/dist/src/client/ClientManager.d.ts +13 -0
- package/dist/src/client/ClientManager.d.ts.map +1 -1
- package/dist/src/helpers/entity/entityCache.d.ts +2 -42
- package/dist/src/helpers/entity/entityCache.d.ts.map +1 -1
- package/dist/src/helpers/entity/entityCommon.d.ts +9 -0
- package/dist/src/helpers/entity/entityCommon.d.ts.map +1 -1
- package/dist/src/helpers/entity/entityDestroy.d.ts +13 -7
- package/dist/src/helpers/entity/entityDestroy.d.ts.map +1 -1
- package/dist/src/helpers/entity/entityLiveQuery.d.ts +3 -2
- package/dist/src/helpers/entity/entityLiveQuery.d.ts.map +1 -1
- package/dist/src/helpers/entity/entityState.d.ts +28 -0
- package/dist/src/helpers/entity/entityState.d.ts.map +1 -0
- package/dist/src/helpers/entity/entityUnload.d.ts +3 -2
- package/dist/src/helpers/entity/entityUnload.d.ts.map +1 -1
- package/dist/src/helpers/entity/index.d.ts +1 -0
- package/dist/src/helpers/entity/index.d.ts.map +1 -1
- package/dist/src/helpers/metadataPropertyNames.d.ts +6 -0
- package/dist/src/helpers/metadataPropertyNames.d.ts.map +1 -1
- package/dist/src/helpers/property.d.ts.map +1 -1
- package/dist/src/helpers/reactiveProxy.d.ts +18 -0
- package/dist/src/helpers/reactiveProxy.d.ts.map +1 -1
- package/dist/src/helpers/sessionObjectUrls.d.ts +4 -0
- package/dist/src/helpers/sessionObjectUrls.d.ts.map +1 -0
- package/dist/src/imports/json.d.ts.map +1 -1
- package/dist/{syncDbWithEas-CAOlw3i-.js → syncDbWithEas-D0gyJ58h.js} +19 -19
- package/dist/syncDbWithEas-D0gyJ58h.js.map +1 -0
- package/dist/{tabEvents-DksXwk3X.js → tabEvents-UH-wNsZC.js} +24 -7
- package/dist/tabEvents-UH-wNsZC.js.map +1 -0
- package/dist/{tolerantWebAccess-CEIjFGf0.js → tolerantWebAccess-CpcTCAZv.js} +6 -6
- package/dist/{tolerantWebAccess-CEIjFGf0.js.map → tolerantWebAccess-CpcTCAZv.js.map} +1 -1
- package/dist/{updateSeedRevokedAt-Cjr35YjE.js → updateSeedRevokedAt-D230zfWk.js} +3 -3
- package/dist/{updateSeedRevokedAt-Cjr35YjE.js.map → updateSeedRevokedAt-D230zfWk.js.map} +1 -1
- package/package.json +6 -6
- package/dist/ClientManager-2GtDWHq6.js.map +0 -1
- package/dist/Item-D6j0IvBP.js.map +0 -1
- package/dist/ModelProperty-B52C3CQ2.js.map +0 -1
- package/dist/Schema-O1QLoXv6.js.map +0 -1
- package/dist/dist/ClientManager-2GtDWHq6.d.ts.map +0 -1
- package/dist/dist/Item-D6j0IvBP.d.ts.map +0 -1
- package/dist/dist/Schema-O1QLoXv6.d.ts.map +0 -1
- package/dist/dist/backfillMetadataPropertyIds-CzSbuucw.d.ts.map +0 -1
- package/dist/dist/configurePlatform-Bbpw_R4y.d.ts.map +0 -1
- package/dist/dist/detachRowsBeforeDelete-D1TyEMco.d.ts.map +0 -1
- package/dist/dist/discardNewDraft-hiVaUVjV.d.ts.map +0 -1
- package/dist/dist/eas-DOdj-EMK.d.ts.map +0 -1
- package/dist/dist/errors-KM-yq2MD.d.ts.map +0 -1
- package/dist/dist/getItem-Bh0zv-o1.d.ts.map +0 -1
- package/dist/dist/index-BAao3_Po.d.ts.map +0 -1
- package/dist/dist/index-DpgQMIRq.d.ts.map +0 -1
- package/dist/dist/property-BDBvImLs.d.ts.map +0 -1
- package/dist/dist/propertyValidationRules-BlfLn4rP.d.ts.map +0 -1
- package/dist/dist/resetAmbiguousLegacyItemData-Cy8ik7xk.d.ts.map +0 -1
- package/dist/dist/resolveModelForSyncedSeed-DFr4COc4.d.ts.map +0 -1
- package/dist/dist/syncDbWithEas-CAOlw3i-.d.ts.map +0 -1
- package/dist/dist/tabEvents-DksXwk3X.d.ts.map +0 -1
- package/dist/dist/updateSeedRevokedAt-Cjr35YjE.d.ts.map +0 -1
- package/dist/errors-KM-yq2MD.js.map +0 -1
- package/dist/index-BAao3_Po.js.map +0 -1
- package/dist/index-BbFwftAv.js.map +0 -1
- package/dist/index-DpgQMIRq.js.map +0 -1
- package/dist/index.browser-nndbVM7z.js.map +0 -1
- package/dist/property-BDBvImLs.js.map +0 -1
- package/dist/syncDbWithEas-CAOlw3i-.js.map +0 -1
- package/dist/tabEvents-DksXwk3X.js.map +0 -1
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Per-instance state for an entity (liveQuery subscriptions and the like), keyed by the entity's
|
|
3
|
+
* actor. An entity's raw instance and its reactive proxy are different objects that share one
|
|
4
|
+
* actor. State set from the constructor (`this` = raw instance) must be found again from methods
|
|
5
|
+
* called on the proxy (`this` = proxy), so a WeakMap keyed by the instance misses there.
|
|
4
6
|
*
|
|
5
|
-
*
|
|
6
|
-
* @param config - Unload configuration
|
|
7
|
+
* `getService()` must return the actor before the first `set`.
|
|
7
8
|
*/
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
declare class ActorKeyedState {
|
|
10
|
+
states: WeakMap<object, any>;
|
|
11
|
+
get(instance: any): any;
|
|
12
|
+
set(instance: any, state: any): this;
|
|
13
|
+
delete(instance: any): boolean;
|
|
14
|
+
has(instance: any): boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function getGetPublisherForNewSeeds(): any;
|
|
17
|
+
/**
|
|
18
|
+
* Metadata rows of a seed numbered per property_name in reader order (`rowNum = 1` is the value to
|
|
19
|
+
* show): live rows before revoked ones, then newest first. See `compareMetadataRowsLatestFirst`.
|
|
20
|
+
*/
|
|
21
|
+
declare function getMetadataLatest({ seedLocalId, seedUid }: {
|
|
22
|
+
seedLocalId: any;
|
|
23
|
+
seedUid: any;
|
|
24
|
+
}): any;
|
|
11
25
|
declare var ClientManagerState: any;
|
|
12
26
|
/**
|
|
13
27
|
* Default readyTimeout for create/find/all with waitForReady. Loads that touch OPFS and the DB can take
|
|
14
28
|
* several seconds on slow devices and CI runners; a load that is really stuck still errors.
|
|
15
29
|
*/
|
|
16
30
|
declare const DEFAULT_READY_TIMEOUT_MS: 15000;
|
|
31
|
+
declare function getPublishExecutor(): any;
|
|
32
|
+
declare function getRevokeExecutor(): any;
|
|
17
33
|
/** @deprecated See UploadExecutor. */
|
|
18
34
|
declare function getUploadExecutor(): any;
|
|
19
35
|
/**
|
|
@@ -29,23 +45,18 @@ declare function getUploadExecutor(): any;
|
|
|
29
45
|
* (batched resolution aligned with `getLatestPublishedVersionRow`).
|
|
30
46
|
*/
|
|
31
47
|
declare function getVersionData$1(): any;
|
|
32
|
-
/**
|
|
33
|
-
* Local draft that has never been attested: no publisher, no real uid, no attestationRaw.
|
|
34
|
-
*/
|
|
35
|
-
declare function isLocalUnsealedDraft(row: any): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Shared ownership predicate.
|
|
38
|
-
* - A local unsealed draft (never given a publisher) is owned whatever the owned addresses are:
|
|
39
|
-
* it belongs to no wallet yet, and the next wallet to connect claims it (claimUnpublishedDrafts).
|
|
40
|
-
* - Any other row is owned when its publisher (or attester) is in the owned addresses.
|
|
41
|
-
*/
|
|
42
|
-
declare function isSeedRowOwned(row: any, ownedAddresses: any): boolean;
|
|
43
48
|
declare class Item {
|
|
44
49
|
/** Prefer local id so list rows (local + uid) resolve the same cache entry as early draft loads. */
|
|
45
50
|
static findItemInstanceCacheEntryByProps(props: any): any;
|
|
46
51
|
static findItemInstanceCacheEntryById(id: any): any;
|
|
47
52
|
static collectInstanceCacheKeysForInstance(instance: any): any[];
|
|
48
53
|
static registerItemInInstanceCache(instance: any): void;
|
|
54
|
+
/**
|
|
55
|
+
* Wraps a new instance in its reactive proxy: tracked names read from and write to the actor's
|
|
56
|
+
* context, and the model's property names (`item.title`, or `item.html` for `htmlId`) read and
|
|
57
|
+
* write their ItemProperty's value.
|
|
58
|
+
*/
|
|
59
|
+
static wrapInProxy(instance: any): any;
|
|
49
60
|
/**
|
|
50
61
|
* Sets a tracked context property from the proxy. Setting `seedUid` to a different uid means a
|
|
51
62
|
* new seed attestation (publishing again after unpublish): the revocation belonged to the old
|
|
@@ -59,6 +70,11 @@ declare class Item {
|
|
|
59
70
|
* `propertyInstances` is merged (an item with a version but no property instances yet).
|
|
60
71
|
*/
|
|
61
72
|
static isItemSnapshotReadyForRead(snap: any): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The cached Item for a seedLocalId or seedUid, in any state, without taking a hold. For SDK code
|
|
75
|
+
* that reads or messages the item and doesn't hand it to a caller.
|
|
76
|
+
*/
|
|
77
|
+
static peek(id: any): any;
|
|
62
78
|
/**
|
|
63
79
|
* The cached Item for a seedLocalId or seedUid when it can be read right now: idle and hydrated,
|
|
64
80
|
* so at least what `Item.find()` would wait for. Otherwise undefined. Unlike `getById`, it takes
|
|
@@ -193,13 +209,19 @@ declare class Item {
|
|
|
193
209
|
};
|
|
194
210
|
}, import("xstate").MetaObject>>;
|
|
195
211
|
_subscription: import("xstate").Subscription;
|
|
196
|
-
_createPropertyInstance(props: any): void;
|
|
197
212
|
/**
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* instance is used after loadOrCreateItemSuccess merges DB-backed instances).
|
|
213
|
+
* The ItemProperty a model property name reads and writes on the item: by its name, or by its
|
|
214
|
+
* storage name (`html` finds `htmlId` and the other way round). Internal names don't resolve.
|
|
201
215
|
*/
|
|
202
|
-
|
|
216
|
+
_findPropertyInstance(propertyName: any): any;
|
|
217
|
+
/** Every name `_findPropertyInstance` resolves: the stored names and their schema names. */
|
|
218
|
+
_propertyInstanceNames(): any[];
|
|
219
|
+
/**
|
|
220
|
+
* Writes an assigned seed uid to the item's seed row, so later loads and getPublishPayload see it.
|
|
221
|
+
* Writes run one after another per item, so the last assignment is the one that stays.
|
|
222
|
+
*/
|
|
223
|
+
_persistSeedUid(seedUid: any): void;
|
|
224
|
+
_createPropertyInstance(props: any): void;
|
|
203
225
|
get serviceContext(): {};
|
|
204
226
|
/**
|
|
205
227
|
* Get snapshot context from the service
|
|
@@ -279,21 +301,19 @@ declare namespace Item {
|
|
|
279
301
|
let instanceCache: Map<any, any>;
|
|
280
302
|
let CREATE_METADATA_KEYS: Set<string>;
|
|
281
303
|
}
|
|
282
|
-
/** SQL form of {@link isLocalUnsealedDraft} on `seeds`. */
|
|
283
|
-
declare function localUnsealedDraftSql(): import("drizzle-orm").SQL<unknown> | undefined;
|
|
284
304
|
/**
|
|
285
|
-
*
|
|
286
|
-
* with {@link isSeedRowOwned} (empty owned → local unsealed drafts; attester fallback).
|
|
305
|
+
* Local draft that has never been attested: no publisher, no real uid, no attestationRaw.
|
|
287
306
|
*/
|
|
288
|
-
declare function
|
|
307
|
+
declare function isLocalUnsealedDraft(row: any): boolean;
|
|
289
308
|
/**
|
|
290
|
-
*
|
|
291
|
-
* -
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
* `json_extract`, which throws on malformed JSON.
|
|
309
|
+
* Shared ownership predicate.
|
|
310
|
+
* - A local unsealed draft (never given a publisher) is owned whatever the owned addresses are:
|
|
311
|
+
* it belongs to no wallet yet, and the next wallet to connect claims it (claimUnpublishedDrafts).
|
|
312
|
+
* - Any other row is owned when its publisher (or attester) is in the owned addresses.
|
|
295
313
|
*/
|
|
296
|
-
declare function
|
|
314
|
+
declare function isSeedRowOwned(row: any, ownedAddresses: any): boolean;
|
|
315
|
+
/** SQL form of {@link isLocalUnsealedDraft} on `seeds`. */
|
|
316
|
+
declare function localUnsealedDraftSql(): import("drizzle-orm").SQL<unknown> | undefined;
|
|
297
317
|
/**
|
|
298
318
|
* Canonical "latest metadata row first" ordering, the one readers use to pick a property's value
|
|
299
319
|
* from its rows across versions:
|
|
@@ -310,8 +330,11 @@ declare function ownedSeedsSql(ownedAddresses: any): import("drizzle-orm").SQL<u
|
|
|
310
330
|
* out; keep those in sync.
|
|
311
331
|
*/
|
|
312
332
|
declare const METADATA_LATEST_FIRST_ORDER_SQL: "(revoked_at IS NOT NULL), COALESCE(attestation_created_at, created_at) DESC, local_id DESC";
|
|
313
|
-
/**
|
|
314
|
-
|
|
333
|
+
/**
|
|
334
|
+
* @deprecated Matches `seeds.publisher` only. Use {@link ownedSeedsSql}, which agrees
|
|
335
|
+
* with {@link isSeedRowOwned} (empty owned → local unsealed drafts; attester fallback).
|
|
336
|
+
*/
|
|
337
|
+
declare function ownedPublisherSql(ownedAddresses: any): import("drizzle-orm").SQL<any>;
|
|
315
338
|
/**
|
|
316
339
|
* Thrown by write operations (save, destroy, publish, unpublish) on an item none
|
|
317
340
|
* of the client's addresses own. See isItemOwned for what counts as owned.
|
|
@@ -320,6 +343,16 @@ declare class OwnershipError extends Error {
|
|
|
320
343
|
constructor(message?: string);
|
|
321
344
|
}
|
|
322
345
|
declare const PUBLISH_NOT_CONFIGURED_MESSAGE: "Publishing is not configured. item.publish() needs @seedprotocol/publish: call initPublish() from it, or mount <PublishProvider config={...}>, before publishing.";
|
|
346
|
+
/**
|
|
347
|
+
* SQL for `addressFilter: 'owned'`: a row passes exactly when {@link isSeedRowOwned} is true.
|
|
348
|
+
* - Local unsealed drafts always pass.
|
|
349
|
+
* - Otherwise `lower(trim(publisher))` is in the owned set, or, when publisher is blank, the
|
|
350
|
+
* `attestationRaw.attester` ({@link resolvePublisherFromSeedRow}). `json_valid` guards
|
|
351
|
+
* `json_extract`, which throws on malformed JSON.
|
|
352
|
+
*/
|
|
353
|
+
declare function ownedSeedsSql(ownedAddresses: any): import("drizzle-orm").SQL<unknown> | undefined;
|
|
354
|
+
/** The row readers show for each property name (first by {@link compareMetadataRowsLatestFirst}). */
|
|
355
|
+
declare function pickLatestMetadataRowPerProperty(rows: any): any[];
|
|
323
356
|
/** SQL form of {@link isPlaceholderUid}: null, `''`, `'NULL'`, or zero bytes32 (trimmed, any case). */
|
|
324
357
|
declare function placeholderUidSql(column: any): import("drizzle-orm").SQL<unknown> | undefined;
|
|
325
358
|
declare const propertyMachine: import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
@@ -405,28 +438,13 @@ declare function setPublishExecutor(executor: any): void;
|
|
|
405
438
|
declare function setRevokeExecutor(executor: any): void;
|
|
406
439
|
/** @deprecated See UploadExecutor. */
|
|
407
440
|
declare function setUploadExecutor(executor: any): void;
|
|
408
|
-
/**
|
|
409
|
-
* Proxy [[GetOwnProperty]] that stays compatible with the target.
|
|
410
|
-
* Never overrides an own descriptor, never invents on a non-extensible target,
|
|
411
|
-
* and never promotes a prototype accessor to an own descriptor.
|
|
412
|
-
*/
|
|
413
|
-
declare function getInvariantSafePropertyDescriptor(target: any, prop: any, invent: any): TypedPropertyDescriptor<any> | {
|
|
414
|
-
enumerable: boolean;
|
|
415
|
-
configurable: boolean;
|
|
416
|
-
value: any;
|
|
417
|
-
writable: any;
|
|
418
|
-
} | undefined;
|
|
419
|
-
/**
|
|
420
|
-
* Shared helpers for entity destroy operations.
|
|
421
|
-
* Used by Schema, Model, ModelProperty, Item, and ItemProperty destroy() methods.
|
|
422
|
-
*/
|
|
423
|
-
/**
|
|
424
|
-
* Unsubscribe liveQuery and any extra subscription (e.g. Item/ItemProperty _subscription).
|
|
425
|
-
* Swallows errors so one failure doesn't block the rest.
|
|
426
|
-
*/
|
|
427
|
-
declare function clearDestroySubscriptions(instance: any, config: any): void;
|
|
428
441
|
declare class ItemProperty {
|
|
429
442
|
static create(props: any, options: any): any;
|
|
443
|
+
/**
|
|
444
|
+
* Wraps a new instance in its reactive proxy: tracked names read from and write to the actor's
|
|
445
|
+
* context, and assigning `value` also sends it to the actor before the setter runs.
|
|
446
|
+
*/
|
|
447
|
+
static wrapInProxy(instance: any): any;
|
|
430
448
|
/**
|
|
431
449
|
* The cached ItemProperty when it can be read right now (idle, not saving), the state
|
|
432
450
|
* `ItemProperty.find()` waits for. Otherwise undefined. Unlike `find`, it takes no cache hold, so
|
|
@@ -437,21 +455,33 @@ declare class ItemProperty {
|
|
|
437
455
|
seedLocalId: any;
|
|
438
456
|
seedUid: any;
|
|
439
457
|
}): any;
|
|
440
|
-
|
|
458
|
+
/** Takes a hold on the instance it returns: release it with `unload()`. */
|
|
459
|
+
static find({ propertyName, seedLocalId, seedUid, modelName: modelNameOption, waitForReady, readyTimeout, hold, }: {
|
|
441
460
|
propertyName: any;
|
|
442
461
|
seedLocalId: any;
|
|
443
462
|
seedUid: any;
|
|
444
463
|
modelName: any;
|
|
445
464
|
waitForReady?: boolean | undefined;
|
|
446
465
|
readyTimeout?: number | undefined;
|
|
466
|
+
hold: any;
|
|
447
467
|
}): Promise<any>;
|
|
448
468
|
/**
|
|
449
469
|
* Get all ItemProperty instances for an item.
|
|
450
470
|
* Loads property data via getItemProperties, creates instances via create, optionally waits for idle.
|
|
471
|
+
* Takes a hold on each instance, as `create` does.
|
|
451
472
|
*/
|
|
452
473
|
static all(params: any, options: any): Promise<any[]>;
|
|
474
|
+
/**
|
|
475
|
+
* @internal Takes one more hold on a cached, running instance, released with `unload()`. False
|
|
476
|
+
* (and no hold) when the instance isn't cached or was stopped.
|
|
477
|
+
*/
|
|
478
|
+
static retain(instance: any): boolean;
|
|
453
479
|
static cacheKey(seedLocalIdOrUid: any, propertyName: any): string;
|
|
454
|
-
/**
|
|
480
|
+
/**
|
|
481
|
+
* Drops an item's properties from the instance cache, under every key they're cached by. A dropped
|
|
482
|
+
* instance someone still holds keeps running but is detached: it doesn't re-key itself into the
|
|
483
|
+
* cache when its context changes, so the next lookup creates a fresh instance.
|
|
484
|
+
*/
|
|
455
485
|
static clearInstanceCacheForItem(seedLocalIdOrUid: any): void;
|
|
456
486
|
constructor(initialValues: any);
|
|
457
487
|
_isRelation: boolean;
|
|
@@ -674,6 +704,11 @@ declare class ItemProperty {
|
|
|
674
704
|
get published(): boolean;
|
|
675
705
|
subscribe(callback: any): import("xstate").Subscription;
|
|
676
706
|
save(): Promise<void>;
|
|
707
|
+
/**
|
|
708
|
+
* Every cache key holding this instance: its item's local id and seed uid, and the name it had
|
|
709
|
+
* before a rename (List of relation). They share one entry.
|
|
710
|
+
*/
|
|
711
|
+
_cacheKeys(): any[];
|
|
677
712
|
unload(): void;
|
|
678
713
|
/**
|
|
679
714
|
* Destroy the item property: remove from caches, delete its metadata rows (every version of
|
|
@@ -686,6 +721,23 @@ declare namespace ItemProperty {
|
|
|
686
721
|
let instanceCache_1: Map<any, any>;
|
|
687
722
|
export { instanceCache_1 as instanceCache };
|
|
688
723
|
}
|
|
724
|
+
/**
|
|
725
|
+
* Shared helpers for entity destroy operations.
|
|
726
|
+
* Used by Schema, Model, ModelProperty, Item, and ItemProperty destroy() methods.
|
|
727
|
+
*/
|
|
728
|
+
/**
|
|
729
|
+
* Unsubscribe the entity's liveQueries and any extra subscription (e.g. Item/ItemProperty
|
|
730
|
+
* _subscription). Swallows errors so one failure doesn't block the rest.
|
|
731
|
+
*/
|
|
732
|
+
declare function clearDestroySubscriptions(instance: any, config: any): void;
|
|
733
|
+
/**
|
|
734
|
+
* Release one reference to a cached entity instance. When none remain, remove it from the
|
|
735
|
+
* caches, clean up its subscriptions and stop its service
|
|
736
|
+
*
|
|
737
|
+
* @param instance - Entity instance to unload
|
|
738
|
+
* @param config - Unload configuration
|
|
739
|
+
*/
|
|
740
|
+
declare function unloadEntity(instance: any, config: any): void;
|
|
689
741
|
declare var ClientManagerEvents: any;
|
|
690
742
|
/**
|
|
691
743
|
* Runs `fn` with a fresh read of metadata row `localId`, holding the lock of the file that row's
|
|
@@ -794,6 +846,12 @@ declare function getGetAdditionalSyncAddresses(): any;
|
|
|
794
846
|
* "not revoked", like `seeds.revoked_at`.
|
|
795
847
|
*/
|
|
796
848
|
declare function isVersionRevoked(revokedAt: any): boolean;
|
|
849
|
+
/**
|
|
850
|
+
* Whether an actor has been stopped (unload, destroy, or Schema eviction). Async work started by an
|
|
851
|
+
* entity (DB lookups, retry timers) must check this before sending, since a stopped actor ignores
|
|
852
|
+
* events and XState warns about every one of them.
|
|
853
|
+
*/
|
|
854
|
+
declare function isActorStopped(actor: any): boolean;
|
|
797
855
|
/**
|
|
798
856
|
* Creates a reactive Proxy that intercepts property access and assignment
|
|
799
857
|
* to read from and write to an actor service's context.
|
|
@@ -810,6 +868,22 @@ declare function isVersionRevoked(revokedAt: any): boolean;
|
|
|
810
868
|
* The Proxy implementation preserves all methods via Reflect.get, so this is safe.
|
|
811
869
|
*/
|
|
812
870
|
declare function createReactiveProxy(config: any): any;
|
|
871
|
+
/**
|
|
872
|
+
* Common getters and utilities for entity classes
|
|
873
|
+
* These work with any entity that has a getService() method returning an XState actor
|
|
874
|
+
*/
|
|
875
|
+
/**
|
|
876
|
+
* Get the current state value from an entity's service
|
|
877
|
+
*/
|
|
878
|
+
/**
|
|
879
|
+
* Whether two references are the same entity: an instance and its reactive proxy are different
|
|
880
|
+
* objects that share one actor.
|
|
881
|
+
*/
|
|
882
|
+
declare function sameEntity(a: any, b: any): boolean;
|
|
883
|
+
/**
|
|
884
|
+
* Parse List property values persisted as strings (JSON array or legacy comma-separated ids).
|
|
885
|
+
*/
|
|
886
|
+
declare function parseListPropertyValueFromStorage(raw: any): any;
|
|
813
887
|
/**
|
|
814
888
|
* Generic find implementation for entities
|
|
815
889
|
*
|
|
@@ -819,15 +893,21 @@ declare function createReactiveProxy(config: any): any;
|
|
|
819
893
|
* @returns Entity instance if found, undefined otherwise
|
|
820
894
|
*/
|
|
821
895
|
declare function findEntity(config: any, params: any, options?: {}): Promise<any>;
|
|
896
|
+
/**
|
|
897
|
+
* Rows per multi-row INSERT into `table` so the statement binds at most
|
|
898
|
+
* {@link SQLITE_DEFAULT_MAX_VARIABLE_NUMBER} parameters even with every column set.
|
|
899
|
+
*/
|
|
900
|
+
declare function rowsPerInsert(table: any): number;
|
|
901
|
+
/**
|
|
902
|
+
* Runs `query` once per chunk of `values` (see {@link chunkValues}), one after another, and
|
|
903
|
+
* concatenates the rows. Use it for `inArray(column, values)` reads whose list can be large.
|
|
904
|
+
*/
|
|
905
|
+
declare function selectInBatches(values: any, query: any, size?: number): Promise<any[]>;
|
|
822
906
|
/**
|
|
823
907
|
* Remove the instance from all given caches by key, without refCount (always delete).
|
|
824
908
|
* Works for both entry caches and index caches since the operation is only delete(key).
|
|
825
909
|
*/
|
|
826
910
|
declare function forceRemoveFromCaches(instance: any, config: any): void;
|
|
827
|
-
/**
|
|
828
|
-
* Parse List property values persisted as strings (JSON array or legacy comma-separated ids).
|
|
829
|
-
*/
|
|
830
|
-
declare function parseListPropertyValueFromStorage(raw: any): any;
|
|
831
911
|
/**
|
|
832
912
|
* Run the service event sequence and stop the service:
|
|
833
913
|
* destroyStarted -> doDestroy -> (destroyError on failure) -> stop.
|
|
@@ -836,22 +916,14 @@ declare function parseListPropertyValueFromStorage(raw: any): any;
|
|
|
836
916
|
* Event names must match what the entity machines expect.
|
|
837
917
|
*/
|
|
838
918
|
declare function runDestroyLifecycle(instance: any, config: any): Promise<void>;
|
|
839
|
-
/**
|
|
840
|
-
* Rows per multi-row INSERT into `table` so the statement binds at most
|
|
841
|
-
* {@link SQLITE_DEFAULT_MAX_VARIABLE_NUMBER} parameters even with every column set.
|
|
842
|
-
*/
|
|
843
|
-
declare function rowsPerInsert(table: any): number;
|
|
844
|
-
/**
|
|
845
|
-
* Runs `query` once per chunk of `values` (see {@link chunkValues}), one after another, and
|
|
846
|
-
* concatenates the rows. Use it for `inArray(column, values)` reads whose list can be large.
|
|
847
|
-
*/
|
|
848
|
-
declare function selectInBatches(values: any, query: any, size?: number): Promise<any[]>;
|
|
849
919
|
/**
|
|
850
920
|
* A metadata row holds published content when it has a valid EAS attestation uid, or when sync
|
|
851
921
|
* derived it from one (ItemStorage rows from a storage_transaction_id attestation: no uid of their
|
|
852
922
|
* own, `derivedFromUid` set). Anything else is a local edit (or a row awaiting its uid backfill).
|
|
853
923
|
*/
|
|
854
924
|
declare function isPublishedMetadataRow(row: any): boolean;
|
|
925
|
+
/** Runs `write` once per chunk of `values`, one after another (deletes / updates with an `IN` list). */
|
|
926
|
+
declare function writeInBatches(values: any, write: any, size?: number): Promise<void>;
|
|
855
927
|
declare var MachineIds: any;
|
|
856
928
|
declare function createNewItem({ modelName, modelFileId, ...propertyData }: {
|
|
857
929
|
[x: string]: any;
|
|
@@ -862,8 +934,6 @@ declare function createNewItem({ modelName, modelFileId, ...propertyData }: {
|
|
|
862
934
|
seedLocalId: any;
|
|
863
935
|
versionLocalId: string;
|
|
864
936
|
}>;
|
|
865
|
-
/** Runs `write` once per chunk of `values`, one after another (deletes / updates with an `IN` list). */
|
|
866
|
-
declare function writeInBatches(values: any, write: any, size?: number): Promise<void>;
|
|
867
937
|
declare function getEasSchemaForItemProperty({ schemaUid, propertyName, easDataType, }: {
|
|
868
938
|
schemaUid: any;
|
|
869
939
|
propertyName: any;
|
|
@@ -877,15 +947,6 @@ declare function getEasSchemaForItemProperty({ schemaUid, propertyName, easDataT
|
|
|
877
947
|
name: string;
|
|
878
948
|
}>;
|
|
879
949
|
} | undefined>;
|
|
880
|
-
declare function getGetPublisherForNewSeeds(): any;
|
|
881
|
-
/**
|
|
882
|
-
* Metadata rows of a seed numbered per property_name in reader order (`rowNum = 1` is the value to
|
|
883
|
-
* show): live rows before revoked ones, then newest first. See `compareMetadataRowsLatestFirst`.
|
|
884
|
-
*/
|
|
885
|
-
declare function getMetadataLatest({ seedLocalId, seedUid }: {
|
|
886
|
-
seedLocalId: any;
|
|
887
|
-
seedUid: any;
|
|
888
|
-
}): any;
|
|
889
950
|
import { BehaviorSubject } from 'rxjs';
|
|
890
|
-
export {
|
|
891
|
-
//# sourceMappingURL=Item-
|
|
951
|
+
export { ActorKeyedState as $, getGetPublisherForNewSeeds as A, getMetadataLatest as B, ClientManagerState as C, DEFAULT_READY_TIMEOUT_MS as D, getPublishExecutor as E, getRevokeExecutor as F, getUploadExecutor as G, getVersionData$1 as H, Item as I, isLocalUnsealedDraft as J, isSeedRowOwned as K, localUnsealedDraftSql as L, METADATA_LATEST_FIRST_ORDER_SQL as M, ownedPublisherSql as N, OwnershipError as O, PUBLISH_NOT_CONFIGURED_MESSAGE as P, ownedSeedsSql as Q, pickLatestMetadataRowPerProperty as R, placeholderUidSql as S, propertyMachine as T, publisherInAddressListSql as U, publisherIsInOwnedSet as V, setAdditionalSyncAddresses as W, setGetPublisherForNewSeeds as X, setPublishExecutor as Y, setRevokeExecutor as Z, setUploadExecutor as _, ItemProperty as a, clearDestroySubscriptions as a0, unloadEntity as a1, ClientManagerEvents as a2, withLockedItemStorageRow as a3, getItemStorageFilePath as a4, writeItemStorageFile as a5, resolvePublisherFromSeedRow as a6, getPropertyData$1 as a7, Item$1 as a8, ItemPropertySaveValidationError as b, assertItemOwned as c, waitForEntityIdle as d, compareMetadataRowsLatestFirst as e, getEasSchemaUidForModel as f, getItemData as g, getLatestPublishedVersionRow as h, isItemOwned as i, chunkValues as j, getGetAdditionalSyncAddresses as k, isVersionRevoked as l, isActorStopped as m, createReactiveProxy as n, sameEntity as o, parseListPropertyValueFromStorage as p, findEntity as q, rowsPerInsert as r, selectInBatches as s, forceRemoveFromCaches as t, runDestroyLifecycle as u, isPublishedMetadataRow as v, writeInBatches as w, MachineIds as x, createNewItem as y, getEasSchemaForItemProperty as z };
|
|
952
|
+
//# sourceMappingURL=Item-BiMHgg-_.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Item-BiMHgg-_.d.ts","sourceRoot":"","sources":["../Item-BiMHgg-_.js"],"names":[],"mappings":"AAo+JA;;;;;;;GAOG;AACH;IAEQ,6BAA2B;IAE/B,wBAEC;IACD,qCAGC;IACD,+BAEC;IACD,4BAEC;CACJ;AAl7JD,mDAEC;AAgbD;;;GAGG;AACH;;;QA2BC;AAtOD,oCAAuB;AA1SvB;;;GAGG;AACH,wCAAiC,KAAK,CAAC;AAsFvC,2CAEC;AAeD,0CAEC;AAVD,sCAAsC;AACtC,0CAEC;AA6RD;;;;;;;;;;;GAWG;AACH,yCA4CC;AAo5MD;IAkQI,oGAAoG;IACpG,0DAcC;IACD,oDAUC;IACD,iEAOC;IACD,wDAcC;IACD;;;;OAIG;IACH,uCAmCC;IAiDD;;;;OAIG;IACH,2EA0BC;IACD,8FAA8F;IAC9F,4DAaC;IACD;;;OAGG;IACH,sDAWC;IACD;;;OAGG;IACH,0BAEC;IACD;;;;OAIG;IACH,+BAUC;IACD;;;OAGG;IACH,oFA8BC;IACD,kFAeC;IACD,sDA0NC;IACD,qFAAqF;IACrF,sEAcC;IACD;;;;OAIG;IACH,uFA8BC;IACD,yFAgBC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JD;;;;;;;;;kBAyXyB,CAAC;;;eAjUzB;gCAn5D+B,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelProperty-
|
|
1
|
+
{"version":3,"file":"ModelProperty-C1Fzcnbm.d.ts","sourceRoot":"","sources":["../ModelProperty-C1Fzcnbm.js"],"names":[],"mappings":"AA21BA;IAyZI,gDA+RC;IACD,+EAA+E;IAC/E,qEAUC;IACD,8FAA8F;IAC9F,+DAmBC;IACD;;;;OAIG;IACH,0CAMC;IACD;;OAEG;IACH,yCAmBC;IACD;;;OAGG;IACH,mEAyFC;IACD;;;;;;OAMG;IACH,0DAyEC;IACD;;;;;OAKG;IACH;;;;qBAWC;IACD;;;OAGG;IACH,2DAqBC;IACD;;OAEG;IACH,kEAOC;IACD;;;;OAIG;IACH,8EAQC;IACD;;OAEG;IACH,qEAeC;IACD;;OAEG;IACH,kDAIC;IACD;;;OAGG;IACH,mDAEC;IAyGD;;;;OAIG;IACH,8DAwBC;IAvpCD,2BAqBC;IApBG,2GAA2G;IAC3G,uBAA4C;IAY5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAEE;IAMN;;;OAGG;IACH,iCAIC;IACD;;;;;OAKG;IACH,+CA+GC;IACD;;;;;OAKG;IACH,wEAgCC;IACD;;;;OAIG;IACH,mEAuBC;IACD,6EAA6E;IAC7E;;;MAOC;IACD;;;OAGG;IACH;;;;;;;mBA8EC;IACD;;;OAGG;IACH,6CAiDC;IACD;;;OAGG;IACH,kEA8BC;IACD;;;OAGG;IACH,qCAKC;IA2nBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAEC;IACD;;;;;;;;;;;;;;;;;;;;;;;;OAEC;IACD,0BAEC;IACD,+BAMC;IACD,iBAEC;IACD,oBAcC;IACD,4BAEC;IACD,uBAGC;IACD;;;OAGG;IACH,yBA8BC;IACD,aAaC;IACD;;;;;OAKG;IACH,wBAOC;IA+BD;;;;OAIG;IACH,eAmBC;IACD;;OAEG;IACH,yBAmEC;CACJ"}
|
|
@@ -11,6 +11,11 @@ declare class Schema {
|
|
|
11
11
|
* Returns null if not found in cache
|
|
12
12
|
*/
|
|
13
13
|
static getById(schemaFileId: any): any;
|
|
14
|
+
/**
|
|
15
|
+
* The cached schema with this file id or name, without taking a hold. For SDK code that reads
|
|
16
|
+
* the schema and doesn't hand it to a caller; callers that keep it use `create` or `find`.
|
|
17
|
+
*/
|
|
18
|
+
static peek(schemaFileIdOrName: any): any;
|
|
14
19
|
/**
|
|
15
20
|
* Clear all cached Schema instances.
|
|
16
21
|
* This is primarily useful for test cleanup.
|
|
@@ -21,9 +26,9 @@ declare class Schema {
|
|
|
21
26
|
* Create or get schema instance by schemaFileId
|
|
22
27
|
* Queries the database to find the schema name if not cached
|
|
23
28
|
* @param schemaFileId - The schema file ID
|
|
24
|
-
* @returns Schema instance
|
|
29
|
+
* @returns Schema instance, with a hold taken (unless `hold: false`)
|
|
25
30
|
*/
|
|
26
|
-
static createById(schemaFileId: any): Promise<any>;
|
|
31
|
+
static createById(schemaFileId: any, options: any): Promise<any>;
|
|
27
32
|
/**
|
|
28
33
|
* Find schema instance by schemaFileId
|
|
29
34
|
* Waits for the schema to be fully loaded (idle state) by default
|
|
@@ -39,6 +44,7 @@ declare class Schema {
|
|
|
39
44
|
* Get instantiated Schema objects for all schemas (from database and files)
|
|
40
45
|
* By default, returns only the latest version of each schema and excludes the internal Seed Protocol schema.
|
|
41
46
|
* Uses loadAllSchemasFromDb() as the single source of truth, which intelligently merges database and file data.
|
|
47
|
+
* Takes no holds on the instances it returns: a caller that keeps one uses `Schema.create` or `Schema.find`.
|
|
42
48
|
*
|
|
43
49
|
* @param options - Configuration options
|
|
44
50
|
* @param options.includeAllVersions - If true, returns all versions of each schema. Default: false
|
|
@@ -445,7 +451,7 @@ declare function deletePropertyFromModel(schemaName: any, modelName: any, proper
|
|
|
445
451
|
declare var Schema$1: Readonly<{
|
|
446
452
|
__proto__: null;
|
|
447
453
|
Schema: typeof Schema;
|
|
448
|
-
schemaInstanceState:
|
|
454
|
+
schemaInstanceState: ActorKeyedState;
|
|
449
455
|
}>;
|
|
450
456
|
/**
|
|
451
457
|
* Delete a model from a schema
|
|
@@ -597,5 +603,6 @@ declare const schemaMachine: import("xstate").StateMachine<{}, import("xstate").
|
|
|
597
603
|
* @throws Error if schema not found or updates are invalid
|
|
598
604
|
*/
|
|
599
605
|
declare function updateModelProperties(schemaName: any, propertyUpdates: any, modelUpdates: any): Promise<any>;
|
|
606
|
+
import { $ as ActorKeyedState } from './Item-BiMHgg-_.js';
|
|
600
607
|
export { Schema as S, deletePropertyFromModel as a, Schema$1 as b, deleteModelFromSchema as d, renameModelProperty as r, schemaMachine as s, updateModelProperties as u };
|
|
601
|
-
//# sourceMappingURL=Schema-
|
|
608
|
+
//# sourceMappingURL=Schema-COTbavcm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema-COTbavcm.d.ts","sourceRoot":"","sources":["../Schema-COTbavcm.js"],"names":[],"mappings":"AAihIA;IAiCI,kDAoPC;IACD;;;;OAIG;IACH,iEAaC;IACD;;;OAGG;IACH,uCAMC;IACD;;;OAGG;IACH,0CAGC;IACD;;;;OAIG;IACH,0BAwBC;IACD;;;;;OAKG;IACH,iEAgCC;IACD;;;;;OAKG;IACH;;;;qBAgBC;IACD;;;;;;;;;;OAUG;IACH,yCA+IC;IA01BD;;;;;OAKG;IACH,oCAkCC;IAn7CD,6BA+BC;IA3BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAEE;IA4iBN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAEC;IACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAEC;IACD,0BAEC;IACD,sBAeC;IACD,wBAEC;IACD,cAEC;IACD;;;;OAIG;IACH,oBAmCC;IACD;;MAEC;IACD,oBAcC;IACD,4BAEC;IACD;;;OAGG;IACH,yBAEC;IACD,uBAGC;IACD;;;OAGG;IACH,yBA8BC;IACD;;;;OAIG;IACH,yCAoEC;IACD;;;;;;OAMG;IACH,+BAqLC;IACD;;;OAGG;IACH;;;;;;;;;;;;;;OAyCC;IACD;;;OAGG;IACH,uBAwBC;IACD;;;;;OAKG;IACH,0DAqXC;IA0CD,eAwCC;IACD;;;OAGG;IACH,yBAgCC;IACD,mFAqEC;IACD;;;OAGG;IACH,oCAgKC;CACJ;;;;;;;AAr2DD;;;;;;;;GAQG;AACH,0HA4EC;AA0xDD;;;;GAIG;AA//DH;;;;;;;GAOG;AACH,oGAmIC;AA5PD;;;;;;;;;GASG;AACH,gIAsGC;AAvlCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA4jBG;AA2LH;;;;;;;GAOG;AACH,+GA6HC;qCAziH0Q,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaValidationService-
|
|
1
|
+
{"version":3,"file":"SchemaValidationService-paOfbcwd.d.ts","sourceRoot":"","sources":["../SchemaValidationService-paOfbcwd.js"],"names":[],"mappings":"AA8BA;;GAEG;AACH;IACI;;OAEG;IACH,kEAqBC;IACD;;OAEG;IACH,wDAyDC;IACD;;OAEG;IACH,uDAgBC;IACD;;OAEG;IACH,oDA8BC;IACD;;OAEG;IACH;;;;;;;;MA2HC;IACD;;;;;;OAMG;IACH,+FAsJC;IACD;;OAEG;IACH;;;;;;;;MA2GC;IACD;;OAEG;IACH;;;;;;;;MAiCC;IACD;;;OAGG;IACH;;;;;;;;MAcC;IACD;;OAEG;IACH;;;;;;;;MA4BC;IACD;;OAEG;IACH;;;;;;;;MA4CC;IACD;;OAEG;IACH,mXAsBC;IACD;;;;;OAKG;IACH,kEA0BC;IACD;;OAEG;IACH,mDAOC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backfillMetadataPropertyIds-BkpBahbz.d.ts","sourceRoot":"","sources":["../backfillMetadataPropertyIds-BkpBahbz.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,+DA4CC"}
|
|
@@ -27,4 +27,4 @@ declare var configurePlatform$1: Readonly<{
|
|
|
27
27
|
*/
|
|
28
28
|
declare function configurePlatform(services: any): void;
|
|
29
29
|
export { BasePathResolver as B, configurePlatform$1 as a, configurePlatform as c };
|
|
30
|
-
//# sourceMappingURL=configurePlatform-
|
|
30
|
+
//# sourceMappingURL=configurePlatform-_XR45RnJ.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configurePlatform-_XR45RnJ.d.ts","sourceRoot":"","sources":["../configurePlatform-_XR45RnJ.js"],"names":[],"mappings":"AAiBA;IACI,kCAKC;IACD;;MAIC;IACD,0BAKC;IACD;;OAEG;IACH,0BAEC;IACD,qCAEC;IACD,4BAEC;IACD,gCAEC;IACD,8CAEC;IACD,2CAEC;IACD,4CAEC;CACJ;;;;AAeD;;;GAGG;AAfH;;GAEG;AACH,wDAOC"}
|
package/dist/dist/{detachRowsBeforeDelete-D1TyEMco.d.ts → detachRowsBeforeDelete-C1iapUFl.d.ts}
RENAMED
|
@@ -10,4 +10,4 @@ export function detachModelRows(db: any, modelIds: any): Promise<void>;
|
|
|
10
10
|
* browser leaves rows pointing at deleted ids.
|
|
11
11
|
*/
|
|
12
12
|
export function detachPropertyRows(db: any, propertyIds: any): Promise<void>;
|
|
13
|
-
//# sourceMappingURL=detachRowsBeforeDelete-
|
|
13
|
+
//# sourceMappingURL=detachRowsBeforeDelete-C1iapUFl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detachRowsBeforeDelete-C1iapUFl.d.ts","sourceRoot":"","sources":["../detachRowsBeforeDelete-C1iapUFl.js"],"names":[],"mappings":"AA8BA;;;GAGG;AACH,uEAWC;AA5BD;;;;;GAKG;AACH,6EAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discardNewDraft-D4nrwp3T.d.ts","sourceRoot":"","sources":["../discardNewDraft-D4nrwp3T.js"],"names":[],"mappings":"AAyBA;;;;;GAKG;AACH,iEA2CC"}
|
|
@@ -9,4 +9,4 @@ export function getModelSchemasFromEas(): Promise<{
|
|
|
9
9
|
}>;
|
|
10
10
|
}[]>;
|
|
11
11
|
export { PUBLISHED_BY_SCHEMA_DEF, PUBLISHED_BY_SCHEMA_NAME, decodePublishedByData, getCanonicalItemPropertiesFromEas, getEasSchemaUidBySchemaName, getItemPropertiesFromEas, getItemVersionsFromEas, getPublishedByFromEas, getSeedUidsBySchemaName, getSeedsBySchemaName, getSeedsFromSchemaUids, hashPublishedByBatch, verifyPublishedByBatch } from "@seedprotocol/eas";
|
|
12
|
-
//# sourceMappingURL=eas-
|
|
12
|
+
//# sourceMappingURL=eas-BRVEGT97.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eas-BRVEGT97.d.ts","sourceRoot":"","sources":["../eas-BRVEGT97.js"],"names":[],"mappings":"AAkBA,qDAAqD;AACrD;;;;;kBAiD8u9F,CAAC;;;KAJ9u9F"}
|