@seedprotocol/sdk 0.2.5 → 0.2.6
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/{Item-BnFRrM4P.js → Item-5bbmH1H4.js} +2 -2
- package/dist/{Item-BnFRrM4P.js.map → Item-5bbmH1H4.js.map} +1 -1
- package/dist/{index-C7j8knrm.js → index-CoqbOXfg.js} +2 -2
- package/dist/index-CoqbOXfg.js.map +1 -0
- package/dist/{index-DX0iILNs.js → index-s_H8DdLb.js} +9 -9
- package/dist/index-s_H8DdLb.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/{seed.schema.config-CTkdNScQ.js → seed.schema.config-CTpDY6LU.js} +2 -2
- package/dist/{seed.schema.config-CTkdNScQ.js.map → seed.schema.config-CTpDY6LU.js.map} +1 -1
- package/dist/src/actors.ts +292 -7
- package/dist/src/getModelSchemas.ts +3 -3
- package/dist/src/index.ts +4 -21
- package/dist/src/itemMachineSingle.ts +4 -4
- package/dist/src/queries.ts +37 -25
- package/dist/types/src/Item/service/actors/initialize.d.ts +2 -1
- package/dist/types/src/Item/service/actors/initialize.d.ts.map +1 -1
- package/dist/types/src/db/read/getModelSchemas.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-C7j8knrm.js.map +0 -1
- package/dist/index-DX0iILNs.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseItem } from './index-
|
|
1
|
+
import { B as BaseItem } from './index-s_H8DdLb.js';
|
|
2
2
|
import 'immer';
|
|
3
3
|
import 'reflect-metadata';
|
|
4
4
|
import 'tslib';
|
|
@@ -37,4 +37,4 @@ class Item extends BaseItem {
|
|
|
37
37
|
BaseItem.setPlatformClass(Item);
|
|
38
38
|
|
|
39
39
|
export { Item };
|
|
40
|
-
//# sourceMappingURL=Item-
|
|
40
|
+
//# sourceMappingURL=Item-5bbmH1H4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item-
|
|
1
|
+
{"version":3,"file":"Item-5bbmH1H4.js","sources":["../../src/node/Item/Item.ts"],"sourcesContent":["import { IItem } from '@/interfaces';\nimport { BaseItem } from '@/Item/BaseItem';\nimport { ModelSchema, ModelValues } from '@/types';\n\nexport class Item<T extends ModelValues<ModelSchema>> extends BaseItem<T> implements IItem<T> {\n constructor(initialValues: any) {\n super(initialValues);\n }\n\n}\n\nBaseItem.setPlatformClass(Item)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIM,MAAO,IAAyC,SAAQ,QAAW,CAAA;AACvE,IAAA,WAAA,CAAY,aAAkB,EAAA;QAC5B,KAAK,CAAC,aAAa,CAAC;;AAGvB;AAED,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Item } from './index-
|
|
1
|
+
export { I as Item } from './index-s_H8DdLb.js';
|
|
2
2
|
import 'immer';
|
|
3
3
|
import 'reflect-metadata';
|
|
4
4
|
import 'tslib';
|
|
@@ -28,4 +28,4 @@ import '@zenfs/dom';
|
|
|
28
28
|
import 'arweave';
|
|
29
29
|
import 'use-immer';
|
|
30
30
|
import '@xstate/react';
|
|
31
|
-
//# sourceMappingURL=index-
|
|
31
|
+
//# sourceMappingURL=index-CoqbOXfg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CoqbOXfg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1271,7 +1271,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1271
1271
|
if (propertyRecordSchema &&
|
|
1272
1272
|
propertyRecordSchema.storageType &&
|
|
1273
1273
|
propertyRecordSchema.storageType === 'ItemStorage') {
|
|
1274
|
-
const { Item } = yield import('./index-
|
|
1274
|
+
const { Item } = yield import('./index-CoqbOXfg.js');
|
|
1275
1275
|
const item = yield Item.find({
|
|
1276
1276
|
seedLocalId,
|
|
1277
1277
|
modelName,
|
|
@@ -1546,8 +1546,6 @@ const initialize$2 = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
1546
1546
|
|
|
1547
1547
|
const eventEmitter = new EventEmitter();
|
|
1548
1548
|
|
|
1549
|
-
const easClient$6 = BaseEasClient.getEasClient();
|
|
1550
|
-
const queryClient$6 = BaseQueryClient.getQueryClient();
|
|
1551
1549
|
const getModelSchemas = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1552
1550
|
const models$1 = getModels();
|
|
1553
1551
|
const modelRecords = [];
|
|
@@ -1583,10 +1581,12 @@ const getModelSchemas = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
1583
1581
|
});
|
|
1584
1582
|
schemaStringToModelRecord.set(schemaString, foundModel);
|
|
1585
1583
|
}
|
|
1586
|
-
const
|
|
1584
|
+
const queryClient = BaseQueryClient.getQueryClient();
|
|
1585
|
+
const easClient = BaseEasClient.getEasClient();
|
|
1586
|
+
const modelSchemas = yield queryClient.fetchQuery({
|
|
1587
1587
|
queryKey: [`getSchemasAllModels`],
|
|
1588
1588
|
queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1589
|
-
return easClient
|
|
1589
|
+
return easClient.request(GET_SCHEMAS, {
|
|
1590
1590
|
where: {
|
|
1591
1591
|
OR,
|
|
1592
1592
|
},
|
|
@@ -2222,7 +2222,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
|
|
|
2222
2222
|
if (!models$1) {
|
|
2223
2223
|
return;
|
|
2224
2224
|
}
|
|
2225
|
-
const { models: SeedModels } = yield import('./seed.schema.config-
|
|
2225
|
+
const { models: SeedModels } = yield import('./seed.schema.config-CTpDY6LU.js');
|
|
2226
2226
|
const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
|
|
2227
2227
|
let hasModelsInDb = false;
|
|
2228
2228
|
const schemaDefsByModelName = new Map();
|
|
@@ -7989,7 +7989,7 @@ const initItem = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
7989
7989
|
(yield Promise.resolve().then(function () { return Item$1; })).Item;
|
|
7990
7990
|
}
|
|
7991
7991
|
else {
|
|
7992
|
-
(yield import('./Item-
|
|
7992
|
+
(yield import('./Item-5bbmH1H4.js')).Item;
|
|
7993
7993
|
}
|
|
7994
7994
|
});
|
|
7995
7995
|
|
|
@@ -8030,7 +8030,7 @@ const client = {
|
|
|
8030
8030
|
addresses,
|
|
8031
8031
|
arweaveDomain,
|
|
8032
8032
|
});
|
|
8033
|
-
const { models: internalModels } = yield import('./seed.schema.config-
|
|
8033
|
+
const { models: internalModels } = yield import('./seed.schema.config-CTpDY6LU.js');
|
|
8034
8034
|
for (const [key, value] of Object.entries(internalModels)) {
|
|
8035
8035
|
setModel(key, value);
|
|
8036
8036
|
}
|
|
@@ -8081,4 +8081,4 @@ const client = {
|
|
|
8081
8081
|
enableMapSet();
|
|
8082
8082
|
|
|
8083
8083
|
export { BaseItem as B, Item as I, Json as J, List as L, Model as M, Property as P, Relation as R, Text as T, ImageSrc as a, ItemProperty as b, useItem as c, useItemProperties as d, useCreateItem as e, useItemProperty as f, useDeleteItem as g, useGlobalServiceStatus as h, useServices as i, getGlobalService as j, getCorrectId as k, BaseFileManager as l, eventEmitter as m, client as n, useItems as u, withSeed as w };
|
|
8084
|
-
//# sourceMappingURL=index-
|
|
8084
|
+
//# sourceMappingURL=index-s_H8DdLb.js.map
|