@seedprotocol/sdk 0.1.72 → 0.1.73
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/{index-Bcf8xGUK.js → index-BmDmbqJM.js} +9 -8
- package/dist/{index-Bcf8xGUK.js.map → index-BmDmbqJM.js.map} +1 -1
- package/dist/{index-CG7KjAdn.js → index-Clo50o_L.js} +2 -2
- package/dist/{index-CG7KjAdn.js.map → index-Clo50o_L.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-Z67FC09h.js → seed.schema.config-DfD4DkGq.js} +2 -2
- package/dist/{seed.schema.config-Z67FC09h.js.map → seed.schema.config-DfD4DkGq.js.map} +1 -1
- package/dist/src/getPublishPayload.ts +4 -4
- package/dist/types/src/browser/db/read/getPublishPayload.d.ts.map +1 -1
- package/dist/types/src/types/item.d.ts +2 -0
- package/dist/types/src/types/item.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1044,7 +1044,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1044
1044
|
if (propertyRecordSchema &&
|
|
1045
1045
|
propertyRecordSchema.storageType &&
|
|
1046
1046
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
1047
|
-
const { Item } = yield import('./index-
|
|
1047
|
+
const { Item } = yield import('./index-Clo50o_L.js');
|
|
1048
1048
|
const item = yield Item.find({
|
|
1049
1049
|
seedLocalId,
|
|
1050
1050
|
modelName: itemModelName,
|
|
@@ -2548,7 +2548,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2548
2548
|
if (!models$1) {
|
|
2549
2549
|
return;
|
|
2550
2550
|
}
|
|
2551
|
-
const { models: SeedModels } = yield import('./seed.schema.config-
|
|
2551
|
+
const { models: SeedModels } = yield import('./seed.schema.config-DfD4DkGq.js');
|
|
2552
2552
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2553
2553
|
let hasModelsInDb = false;
|
|
2554
2554
|
const schemaDefsByModelName = new Map();
|
|
@@ -5810,8 +5810,10 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5810
5810
|
const versionSchemaUid = VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA;
|
|
5811
5811
|
const listOfAttestations = [];
|
|
5812
5812
|
const propertiesToUpdate = [];
|
|
5813
|
-
yield getModelSchemas();
|
|
5814
5813
|
for (const [propertyName, itemProperty] of Object.entries(item.properties)) {
|
|
5814
|
+
if (!itemProperty.value) {
|
|
5815
|
+
continue;
|
|
5816
|
+
}
|
|
5815
5817
|
const foundPropertySchema = yield queryClient.fetchQuery({
|
|
5816
5818
|
queryKey: [`getPropertySchema${propertyName}`],
|
|
5817
5819
|
queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -5831,7 +5833,6 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5831
5833
|
continue;
|
|
5832
5834
|
}
|
|
5833
5835
|
if (!itemProperty.propertyDef) {
|
|
5834
|
-
console.error(`Property definition not found for ${propertyName}`);
|
|
5835
5836
|
continue;
|
|
5836
5837
|
}
|
|
5837
5838
|
const easDataType = INTERNAL_DATA_TYPES[itemProperty.propertyDef.dataType].eas;
|
|
@@ -6079,10 +6080,10 @@ class Item {
|
|
|
6079
6080
|
return this._service.getSnapshot().context.seedUid;
|
|
6080
6081
|
}
|
|
6081
6082
|
get schemaUid() {
|
|
6082
|
-
return this.
|
|
6083
|
+
return this._service.getSnapshot().context.schemaUid;
|
|
6083
6084
|
}
|
|
6084
6085
|
get latestVersionUid() {
|
|
6085
|
-
return this.
|
|
6086
|
+
return this._service.getSnapshot().context.latestVersionUid;
|
|
6086
6087
|
}
|
|
6087
6088
|
get modelName() {
|
|
6088
6089
|
return this._service.getSnapshot().context.modelName;
|
|
@@ -6635,7 +6636,7 @@ const client = {
|
|
|
6635
6636
|
console.error('fs listeners not ready during init');
|
|
6636
6637
|
}
|
|
6637
6638
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6638
|
-
import('./seed.schema.config-
|
|
6639
|
+
import('./seed.schema.config-DfD4DkGq.js').then(({ models }) => {
|
|
6639
6640
|
for (const [key, value] of Object.entries(models)) {
|
|
6640
6641
|
setModel(key, value);
|
|
6641
6642
|
}
|
|
@@ -7596,4 +7597,4 @@ if (isNode()) {
|
|
|
7596
7597
|
}
|
|
7597
7598
|
|
|
7598
7599
|
export { GET_SCHEMAS as G, Item as I, Json as J, List as L, Model as M, Property as P, Relation as R, Text as T, GET_SCHEMA_BY_NAME as a, GET_SEEDS as b, GET_SEED_IDS as c, GET_STORAGE_TRANSACTION_ID as d, GET_VERSIONS as e, GET_PROPERTIES as f, GET_ALL_PROPERTIES_FOR_ALL_VERSIONS as g, itemMachineAll as h, itemMachineSingle as i, ImageSrc as j, ItemProperty as k, useItem as l, useItemProperties as m, useCreateItem as n, useItemProperty as o, useDeleteItem as p, useGlobalServiceStatus as q, useServices as r, getGlobalService as s, client as t, useItems as u, getCorrectId as v, withSeed as w };
|
|
7599
|
-
//# sourceMappingURL=index-
|
|
7600
|
+
//# sourceMappingURL=index-BmDmbqJM.js.map
|