@seedprotocol/sdk 0.1.102 → 0.1.103
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-D4vrRdvL.js → index-BB80Wb2a.js} +2 -2
- package/dist/{index-D4vrRdvL.js.map → index-BB80Wb2a.js.map} +1 -1
- package/dist/{index-C63Ut7kK.js → index-Cbpu60mV.js} +8 -6
- package/dist/{index-C63Ut7kK.js.map → index-Cbpu60mV.js.map} +1 -1
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-BCA5sEAY.js → seed.schema.config--Nifymhk.js} +2 -2
- package/dist/{seed.schema.config-BCA5sEAY.js.map → seed.schema.config--Nifymhk.js.map} +1 -1
- package/dist/src/getPublishPayload.ts +5 -2
- 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-Cbpu60mV.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-BB80Wb2a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BB80Wb2a.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-BB80Wb2a.js');
|
|
1072
1072
|
const item = yield Item.find({
|
|
1073
1073
|
seedLocalId,
|
|
1074
1074
|
modelName: itemModelName,
|
|
@@ -2622,7 +2622,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2622
2622
|
if (!models$1) {
|
|
2623
2623
|
return;
|
|
2624
2624
|
}
|
|
2625
|
-
const { models: SeedModels } = yield import('./seed.schema.config
|
|
2625
|
+
const { models: SeedModels } = yield import('./seed.schema.config--Nifymhk.js');
|
|
2626
2626
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2627
2627
|
let hasModelsInDb = false;
|
|
2628
2628
|
const schemaDefsByModelName = new Map();
|
|
@@ -5846,6 +5846,7 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5846
5846
|
continue;
|
|
5847
5847
|
}
|
|
5848
5848
|
const easDataType = INTERNAL_DATA_TYPES[itemProperty.propertyDef.dataType].eas;
|
|
5849
|
+
let schemaUid = itemProperty.schemaUid;
|
|
5849
5850
|
let propertyNameForSchema = propertyName;
|
|
5850
5851
|
let propertyValue = itemProperty.getService().getSnapshot()
|
|
5851
5852
|
.context.propertyValue;
|
|
@@ -5873,13 +5874,14 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5873
5874
|
continue;
|
|
5874
5875
|
}
|
|
5875
5876
|
const foundPropertySchema = yield getSchemaForItemProperty({
|
|
5876
|
-
schemaUid
|
|
5877
|
+
schemaUid,
|
|
5877
5878
|
propertyName: propertyNameForSchema,
|
|
5878
5879
|
easDataType,
|
|
5879
5880
|
});
|
|
5880
5881
|
if (!foundPropertySchema) {
|
|
5881
5882
|
throw new Error(`No schema found for property ${itemProperty.propertyName} ${itemProperty.localId}`);
|
|
5882
5883
|
}
|
|
5884
|
+
schemaUid = foundPropertySchema.id;
|
|
5883
5885
|
const data = [
|
|
5884
5886
|
{
|
|
5885
5887
|
name: toSnakeCase(propertyNameForSchema),
|
|
@@ -5891,7 +5893,7 @@ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, fun
|
|
|
5891
5893
|
const dataEncoder = new SchemaEncoder(easSchemaDefinition);
|
|
5892
5894
|
const encodedData = dataEncoder.encodeData(data);
|
|
5893
5895
|
listOfAttestations.push({
|
|
5894
|
-
schema:
|
|
5896
|
+
schema: schemaUid,
|
|
5895
5897
|
data: [
|
|
5896
5898
|
Object.assign(Object.assign({}, defaultAttestationData), { data: encodedData }),
|
|
5897
5899
|
],
|
|
@@ -6697,7 +6699,7 @@ const client = {
|
|
|
6697
6699
|
console.error('fs listeners not ready during init');
|
|
6698
6700
|
}
|
|
6699
6701
|
globalService.send({ type: 'init', endpoints, models, addresses });
|
|
6700
|
-
import('./seed.schema.config
|
|
6702
|
+
import('./seed.schema.config--Nifymhk.js').then(({ models }) => {
|
|
6701
6703
|
for (const [key, value] of Object.entries(models)) {
|
|
6702
6704
|
setModel(key, value);
|
|
6703
6705
|
}
|
|
@@ -7650,4 +7652,4 @@ if (isNode()) {
|
|
|
7650
7652
|
}
|
|
7651
7653
|
|
|
7652
7654
|
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 };
|
|
7653
|
-
//# sourceMappingURL=index-
|
|
7655
|
+
//# sourceMappingURL=index-Cbpu60mV.js.map
|