@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.
@@ -1,4 +1,4 @@
1
- import { B as BaseItem } from './index-DX0iILNs.js';
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-BnFRrM4P.js.map
40
+ //# sourceMappingURL=Item-5bbmH1H4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Item-BnFRrM4P.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
+ {"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-DX0iILNs.js';
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-C7j8knrm.js.map
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-C7j8knrm.js');
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 modelSchemas = yield queryClient$6.fetchQuery({
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$6.request(GET_SCHEMAS, {
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-CTkdNScQ.js');
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-BnFRrM4P.js')).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-CTkdNScQ.js');
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-DX0iILNs.js.map
8084
+ //# sourceMappingURL=index-s_H8DdLb.js.map