@seedprotocol/sdk 0.1.89 → 0.1.90
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-CcE521Ay.js → index-4AsvJICt.js} +2 -2
- package/dist/{index-CcE521Ay.js.map → index-4AsvJICt.js.map} +1 -1
- package/dist/{index-BejZtiZ6.js → index-C4VKEAXQ.js} +25 -13
- package/dist/{index-BejZtiZ6.js.map → index-C4VKEAXQ.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-CnfT1dNe.js → seed.schema.config-_TspGuXU.js} +2 -2
- package/dist/{seed.schema.config-CnfT1dNe.js.map → seed.schema.config-_TspGuXU.js.map} +1 -1
- package/dist/src/getPublishPayload.ts +25 -8
- package/dist/types/src/browser/db/read/getPublishPayload.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, f as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SCHEMA_BY_NAME, b as GET_SEEDS, c as GET_SEED_IDS, d as GET_STORAGE_TRANSACTION_ID, e as GET_VERSIONS, I as Item, h as itemMachineAll, i as itemMachineSingle } from './index-
|
|
1
|
+
export { g as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, f as GET_PROPERTIES, G as GET_SCHEMAS, a as GET_SCHEMA_BY_NAME, b as GET_SEEDS, c as GET_SEED_IDS, d as GET_STORAGE_TRANSACTION_ID, e as GET_VERSIONS, I as Item, h as itemMachineAll, i as itemMachineSingle } from './index-C4VKEAXQ.js';
|
|
2
2
|
import './constants-rmQ8zg8_.js';
|
|
3
3
|
import '@ethereum-attestation-service/eas-sdk';
|
|
4
4
|
import 'thirdweb';
|
|
@@ -29,4 +29,4 @@ import 'rxjs';
|
|
|
29
29
|
import 'drizzle-orm/sqlite-proxy';
|
|
30
30
|
import '@zenfs/dom';
|
|
31
31
|
import 'arweave';
|
|
32
|
-
//# sourceMappingURL=index-
|
|
32
|
+
//# sourceMappingURL=index-4AsvJICt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-4AsvJICt.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1068,7 +1068,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1068
1068
|
if (propertyRecordSchema &&
|
|
1069
1069
|
propertyRecordSchema.storageType &&
|
|
1070
1070
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
1071
|
-
const { Item } = yield import('./index-
|
|
1071
|
+
const { Item } = yield import('./index-4AsvJICt.js');
|
|
1072
1072
|
const item = yield Item.find({
|
|
1073
1073
|
seedLocalId,
|
|
1074
1074
|
modelName: itemModelName,
|
|
@@ -2635,7 +2635,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2635
2635
|
if (!models$1) {
|
|
2636
2636
|
return;
|
|
2637
2637
|
}
|
|
2638
|
-
const { models: SeedModels } = yield import('./seed.schema.config-
|
|
2638
|
+
const { models: SeedModels } = yield import('./seed.schema.config-_TspGuXU.js');
|
|
2639
2639
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2640
2640
|
let hasModelsInDb = false;
|
|
2641
2641
|
const schemaDefsByModelName = new Map();
|
|
@@ -5802,17 +5802,29 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5802
5802
|
if (!itemProperty.value) {
|
|
5803
5803
|
continue;
|
|
5804
5804
|
}
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5805
|
+
let queryParams = {
|
|
5806
|
+
where: {
|
|
5807
|
+
id: {
|
|
5808
|
+
equals: itemProperty.schemaUid,
|
|
5809
|
+
},
|
|
5810
|
+
},
|
|
5811
|
+
};
|
|
5812
|
+
if (!itemProperty.schemaUid) {
|
|
5813
|
+
queryParams = {
|
|
5814
|
+
where: {
|
|
5815
|
+
schemaNames: {
|
|
5816
|
+
some: {
|
|
5817
|
+
name: {
|
|
5818
|
+
equals: toSnakeCase(propertyName),
|
|
5819
|
+
},
|
|
5812
5820
|
},
|
|
5813
5821
|
},
|
|
5814
|
-
}
|
|
5815
|
-
}
|
|
5822
|
+
},
|
|
5823
|
+
};
|
|
5824
|
+
}
|
|
5825
|
+
const foundPropertySchema = yield queryClient.fetchQuery({
|
|
5826
|
+
queryKey: [`getPropertySchema${propertyName}`],
|
|
5827
|
+
queryFn: () => __awaiter(void 0, void 0, void 0, function* () { return easClient.request(GET_SCHEMAS, queryParams); }),
|
|
5816
5828
|
});
|
|
5817
5829
|
if (!foundPropertySchema ||
|
|
5818
5830
|
!foundPropertySchema.schemas ||
|
|
@@ -6637,7 +6649,7 @@ const client = {
|
|
|
6637
6649
|
console.error('fs listeners not ready during init');
|
|
6638
6650
|
}
|
|
6639
6651
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6640
|
-
import('./seed.schema.config-
|
|
6652
|
+
import('./seed.schema.config-_TspGuXU.js').then(({ models }) => {
|
|
6641
6653
|
for (const [key, value] of Object.entries(models)) {
|
|
6642
6654
|
setModel(key, value);
|
|
6643
6655
|
}
|
|
@@ -7575,4 +7587,4 @@ if (isNode()) {
|
|
|
7575
7587
|
}
|
|
7576
7588
|
|
|
7577
7589
|
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 };
|
|
7578
|
-
//# sourceMappingURL=index-
|
|
7590
|
+
//# sourceMappingURL=index-C4VKEAXQ.js.map
|