@seedprotocol/sdk 0.1.71 → 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.
Files changed (66) hide show
  1. package/README.md +40 -19
  2. package/dist/bin.js +3 -1
  3. package/dist/bin.js.map +1 -1
  4. package/dist/{constants-BLctWkrn.js → constants-CtmwCBma.js} +23 -2
  5. package/dist/{constants-BLctWkrn.js.map → constants-CtmwCBma.js.map} +1 -1
  6. package/dist/{index-Cv-NmpW4.js → index-BmDmbqJM.js} +192 -55
  7. package/dist/index-BmDmbqJM.js.map +1 -0
  8. package/dist/{index-DXh19Ejc.js → index-Clo50o_L.js} +5 -3
  9. package/dist/index-Clo50o_L.js.map +1 -0
  10. package/dist/main.js +4 -2
  11. package/dist/main.js.map +1 -1
  12. package/dist/{seed.schema.config-Bp82HrfV.js → seed.schema.config-DfD4DkGq.js} +5 -3
  13. package/dist/seed.schema.config-DfD4DkGq.js.map +1 -0
  14. package/dist/src/ItemProperty.ts +4 -0
  15. package/dist/src/allItems.ts +3 -2
  16. package/dist/src/download.ts +2 -2
  17. package/dist/src/getPublishPayload.ts +111 -0
  18. package/dist/src/globalMachine.ts +46 -26
  19. package/dist/src/index.ts +19 -104
  20. package/dist/src/item.ts +5 -5
  21. package/dist/src/publish.ts +0 -3
  22. package/dist/src/saveAppState.ts +19 -0
  23. package/dist/src/savePublishService.ts +30 -0
  24. package/dist/src/seed.ts +31 -4
  25. package/dist/src/services.ts +13 -4
  26. package/dist/src/write.ts +1 -18
  27. package/dist/types/src/browser/db/read/getPublishPayload.d.ts +15 -0
  28. package/dist/types/src/browser/db/read/getPublishPayload.d.ts.map +1 -0
  29. package/dist/types/src/browser/db/write/saveAppState.d.ts +2 -0
  30. package/dist/types/src/browser/db/write/saveAppState.d.ts.map +1 -0
  31. package/dist/types/src/browser/db/write.d.ts +0 -1
  32. package/dist/types/src/browser/db/write.d.ts.map +1 -1
  33. package/dist/types/src/browser/events/item/index.d.ts.map +1 -1
  34. package/dist/types/src/browser/events/item/publish.d.ts +0 -1
  35. package/dist/types/src/browser/events/item/publish.d.ts.map +1 -1
  36. package/dist/types/src/browser/events/services/allItems.d.ts.map +1 -1
  37. package/dist/types/src/browser/item/Item.d.ts +1 -0
  38. package/dist/types/src/browser/item/Item.d.ts.map +1 -1
  39. package/dist/types/src/browser/item/queries.d.ts +3 -0
  40. package/dist/types/src/browser/item/queries.d.ts.map +1 -1
  41. package/dist/types/src/browser/property/ItemProperty.d.ts +1 -0
  42. package/dist/types/src/browser/property/ItemProperty.d.ts.map +1 -1
  43. package/dist/types/src/browser/react/item.d.ts.map +1 -1
  44. package/dist/types/src/browser/react/services.d.ts.map +1 -1
  45. package/dist/types/src/browser/schema/file/fetchAll/actors.d.ts.map +1 -1
  46. package/dist/types/src/browser/services/global/actors/savePublishService.d.ts +4 -0
  47. package/dist/types/src/browser/services/global/actors/savePublishService.d.ts.map +1 -0
  48. package/dist/types/src/browser/services/global/globalMachine.d.ts +20 -0
  49. package/dist/types/src/browser/services/global/globalMachine.d.ts.map +1 -1
  50. package/dist/types/src/shared/helpers/constants.d.ts +12 -0
  51. package/dist/types/src/shared/helpers/constants.d.ts.map +1 -1
  52. package/dist/types/src/types/item.d.ts +2 -0
  53. package/dist/types/src/types/item.d.ts.map +1 -1
  54. package/package.json +1 -1
  55. package/dist/index-Cv-NmpW4.js.map +0 -1
  56. package/dist/index-DXh19Ejc.js.map +0 -1
  57. package/dist/seed.schema.config-Bp82HrfV.js.map +0 -1
  58. package/dist/src/seedData.ts +0 -0
  59. package/dist/types/src/browser/eas/actors.d.ts +0 -3
  60. package/dist/types/src/browser/eas/actors.d.ts.map +0 -1
  61. package/dist/types/src/browser/eas/helpers.d.ts +0 -5
  62. package/dist/types/src/browser/eas/helpers.d.ts.map +0 -1
  63. package/dist/types/src/browser/eas/index.d.ts +0 -113
  64. package/dist/types/src/browser/eas/index.d.ts.map +0 -1
  65. package/dist/types/src/browser/eas/seedData.d.ts +0 -1
  66. package/dist/types/src/browser/eas/seedData.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { b as __awaiter, d as __rest, i as internalPropertyNames, I as INTERNAL_DATA_TYPES } from './constants-BLctWkrn.js';
1
+ import { b as __awaiter, d as __rest, i as internalPropertyNames, I as INTERNAL_DATA_TYPES, e as defaultAttestationData, V as VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA } from './constants-CtmwCBma.js';
2
2
  import path, { basename } from 'path';
3
3
  import 'reflect-metadata';
4
4
  import { Type } from '@sinclair/typebox';
@@ -26,6 +26,8 @@ import { WebAccess } from '@zenfs/dom';
26
26
  import Arweave from 'arweave';
27
27
  import { useImmer } from 'use-immer';
28
28
  import { useSelector } from '@xstate/react';
29
+ import { ZERO_ADDRESS } from 'thirdweb';
30
+ import { SchemaEncoder } from '@ethereum-attestation-service/eas-sdk';
29
31
 
30
32
  const isNode = () => {
31
33
  return (typeof process !== 'undefined' &&
@@ -1042,7 +1044,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
1042
1044
  if (propertyRecordSchema &&
1043
1045
  propertyRecordSchema.storageType &&
1044
1046
  propertyRecordSchema.storageType === 'ItemStorage') {
1045
- const { Item } = yield import('./index-DXh19Ejc.js');
1047
+ const { Item } = yield import('./index-Clo50o_L.js');
1046
1048
  const item = yield Item.find({
1047
1049
  seedLocalId,
1048
1050
  modelName: itemModelName,
@@ -1214,21 +1216,6 @@ const createNewItem = (_a) => __awaiter(void 0, void 0, void 0, function* () {
1214
1216
  versionLocalId: newVersionId,
1215
1217
  };
1216
1218
  });
1217
- const writeAppState = (key, value) => __awaiter(void 0, void 0, void 0, function* () {
1218
- const appDb = getAppDb();
1219
- yield appDb
1220
- .insert(appState)
1221
- .values({
1222
- key,
1223
- value,
1224
- })
1225
- .onConflictDoUpdate({
1226
- target: appState.key,
1227
- set: {
1228
- value,
1229
- },
1230
- });
1231
- });
1232
1219
 
1233
1220
  const eventEmitter = new EventEmitter();
1234
1221
 
@@ -1585,6 +1572,9 @@ class ItemProperty {
1585
1572
  get seedUid() {
1586
1573
  return this._getSnapshot().context.seedUid;
1587
1574
  }
1575
+ get schemaUid() {
1576
+ return this._getSnapshot().context.schemaUid;
1577
+ }
1588
1578
  get propertyName() {
1589
1579
  if (this._alias) {
1590
1580
  return this._alias;
@@ -1845,6 +1835,17 @@ const GET_SCHEMAS = graphql(/* GraphQL */ `
1845
1835
  }
1846
1836
  }
1847
1837
  `);
1838
+ const GET_SCHEMA_BY_NAME = graphql(/* GraphQL */ `
1839
+ query GetSchemaByName($where: SchemaWhereInput!) {
1840
+ schema: schemata(where: $where) {
1841
+ id
1842
+ schema
1843
+ schemaNames {
1844
+ name
1845
+ }
1846
+ }
1847
+ }
1848
+ `);
1848
1849
  const GET_SEEDS = graphql(/* GraphQL */ `
1849
1850
  query GetSeeds($where: AttestationWhereInput!) {
1850
1851
  itemSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {
@@ -2547,7 +2548,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
2547
2548
  if (!models$1) {
2548
2549
  return;
2549
2550
  }
2550
- const { models: SeedModels } = yield import('./seed.schema.config-Bp82HrfV.js');
2551
+ const { models: SeedModels } = yield import('./seed.schema.config-DfD4DkGq.js');
2551
2552
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
2552
2553
  let hasModelsInDb = false;
2553
2554
  const schemaDefsByModelName = new Map();
@@ -3566,6 +3567,22 @@ const GET_TRANSACTION_TAGS = graphql(/* GraphQL */ `
3566
3567
  }
3567
3568
  `);
3568
3569
 
3570
+ const saveAppState = (key, value) => __awaiter(void 0, void 0, void 0, function* () {
3571
+ const appDb = getAppDb();
3572
+ yield appDb
3573
+ .insert(appState)
3574
+ .values({
3575
+ key,
3576
+ value,
3577
+ })
3578
+ .onConflictDoUpdate({
3579
+ target: appState.key,
3580
+ set: {
3581
+ value,
3582
+ },
3583
+ });
3584
+ });
3585
+
3569
3586
  const logger$c = debug('app:files:download');
3570
3587
  const downloadAllFilesRequestHandler = (_a) => __awaiter(void 0, [_a], void 0, function* ({ endpoints, eventId, }) {
3571
3588
  yield syncDbFiles(endpoints);
@@ -3652,7 +3669,7 @@ const downloadAllFilesBinaryRequestHandler = () => __awaiter(void 0, void 0, voi
3652
3669
  if (res.status !== 200) {
3653
3670
  logger$c(`[fetchAll/actors] [fetchAllBinaryData] error fetching transaction data for ${transactionId}`);
3654
3671
  excludedTransactions.add(transactionId);
3655
- yield writeAppState('excludedTransactions', JSON.stringify(Array.from(excludedTransactions)));
3672
+ yield saveAppState('excludedTransactions', JSON.stringify(Array.from(excludedTransactions)));
3656
3673
  continue;
3657
3674
  }
3658
3675
  const { tags } = yield queryClient.fetchQuery({
@@ -4873,6 +4890,23 @@ const publishMachine = setup({
4873
4890
  },
4874
4891
  });
4875
4892
 
4893
+ const savePublishService = fromCallback(({ sendBack, input: { event, context } }) => {
4894
+ const { publishItemService } = context;
4895
+ if (!publishItemService) {
4896
+ sendBack({ type: 'savePublishServiceError' });
4897
+ return;
4898
+ }
4899
+ const _savePublishService = () => __awaiter(void 0, void 0, void 0, function* () {
4900
+ yield saveAppState(`snapshot__publishItemService`, JSON.stringify(publishItemService.getPersistedSnapshot()));
4901
+ return true;
4902
+ });
4903
+ _savePublishService().then((success) => {
4904
+ if (success) {
4905
+ sendBack({ type: 'savePublishServiceSuccess' });
4906
+ }
4907
+ });
4908
+ });
4909
+
4876
4910
  const { UNINITIALIZED, INITIALIZING, INITIALIZED, PUBLISHING_ITEM, ADDING_MODELS_TO_DB, } = GlobalState;
4877
4911
  createBrowserInspector({
4878
4912
  autoStart: false,
@@ -4886,11 +4920,17 @@ const globalMachine = setup({
4886
4920
  initialize: initialize$1,
4887
4921
  addModelsToDb,
4888
4922
  getSchemaForModel,
4923
+ savePublishService,
4889
4924
  },
4890
4925
  }).createMachine({
4891
4926
  id: MachineIds.GLOBAL,
4892
4927
  initial: UNINITIALIZED,
4893
4928
  context: ({ input }) => input,
4929
+ on: {
4930
+ publishItemRequest: `.${PUBLISHING_ITEM}`,
4931
+ savePublishService: `.savingPublishService`,
4932
+ restorePublishService: `.${PUBLISHING_ITEM}`,
4933
+ },
4894
4934
  states: {
4895
4935
  [UNINITIALIZED]: {
4896
4936
  on: {
@@ -4921,7 +4961,7 @@ const globalMachine = setup({
4921
4961
  displayText: 'Booting up',
4922
4962
  percentComplete: 5,
4923
4963
  },
4924
- tags: ['loading'],
4964
+ tags: ['loading', 'startup'],
4925
4965
  },
4926
4966
  [INITIALIZING]: {
4927
4967
  on: {
@@ -4970,7 +5010,7 @@ const globalMachine = setup({
4970
5010
  displayText: 'Initializing Seed SDK',
4971
5011
  percentComplete: 10,
4972
5012
  },
4973
- tags: ['loading'],
5013
+ tags: ['loading', 'startup'],
4974
5014
  },
4975
5015
  },
4976
5016
  [ADDING_MODELS_TO_DB]: {
@@ -4988,38 +5028,51 @@ const globalMachine = setup({
4988
5028
  meta: {
4989
5029
  displayText: 'Adding models to database',
4990
5030
  },
4991
- tags: ['loading'],
5031
+ tags: ['loading', 'startup'],
4992
5032
  },
4993
5033
  },
4994
5034
  [INITIALIZED]: {
4995
- type: 'parallel',
4996
- on: {
4997
- publishItemRequest: `.${PUBLISHING_ITEM}`,
4998
- },
5035
+ // type: 'parallel',
5036
+ // on: {
5037
+ // publishItemRequest: `.${PUBLISHING_ITEM}`,
5038
+ // },
4999
5039
  meta: {
5000
5040
  displayText: 'Global service ready',
5001
5041
  percentComplete: 40,
5002
5042
  },
5003
- tags: ['loading'],
5004
- states: {
5005
- [PUBLISHING_ITEM]: {
5006
- entry: [
5007
- assign({
5008
- publishItemService: ({ spawn, event }) => spawn(publishMachine, {
5009
- id: 'publishService',
5010
- input: {
5011
- modelName: event.modelName,
5012
- localId: event.seedLocalId,
5013
- },
5014
- }),
5015
- }),
5016
- ],
5017
- meta: {
5018
- displayText: 'Publishing item',
5019
- },
5020
- tags: ['publishing'],
5021
- },
5043
+ tags: ['loading', 'startup'],
5044
+ // initial: PUBLISHING_ITEM,
5045
+ },
5046
+ [PUBLISHING_ITEM]: {
5047
+ target: INITIALIZED,
5048
+ entry: [
5049
+ assign({
5050
+ publishItemService: ({ spawn, event }) => spawn(publishMachine, {
5051
+ id: 'publishService',
5052
+ input: {
5053
+ localId: event.seedLocalId,
5054
+ },
5055
+ }),
5056
+ }),
5057
+ ],
5058
+ meta: {
5059
+ displayText: 'Publishing item',
5022
5060
  },
5061
+ tags: ['publishing'],
5062
+ },
5063
+ savingPublishService: {
5064
+ target: INITIALIZED,
5065
+ on: {
5066
+ savePublishServiceSuccess: INITIALIZED,
5067
+ },
5068
+ invoke: {
5069
+ src: 'savePublishService',
5070
+ input: ({ context }) => ({ context }),
5071
+ },
5072
+ meta: {
5073
+ displayText: 'Saving publish service',
5074
+ },
5075
+ tags: ['publishing'],
5023
5076
  },
5024
5077
  },
5025
5078
  // on: {
@@ -5092,7 +5145,7 @@ const globalService = createActor(globalMachine, {
5092
5145
  globalService.start();
5093
5146
  const getGlobalService = () => globalService;
5094
5147
 
5095
- const publishItemRequestHandler = (_a) => __awaiter(void 0, [_a], void 0, function* ({ modelName, seedLocalId, }) {
5148
+ const publishItemRequestHandler = (_a) => __awaiter(void 0, [_a], void 0, function* ({ seedLocalId, }) {
5096
5149
  const globalService = getGlobalService();
5097
5150
  globalService.subscribe((snapshot) => {
5098
5151
  if (!snapshot ||
@@ -5103,7 +5156,6 @@ const publishItemRequestHandler = (_a) => __awaiter(void 0, [_a], void 0, functi
5103
5156
  });
5104
5157
  globalService.send({
5105
5158
  type: 'publishItemRequest',
5106
- modelName,
5107
5159
  seedLocalId,
5108
5160
  });
5109
5161
  });
@@ -5121,6 +5173,7 @@ const setupAllItemsEventHandlers = () => {
5121
5173
  // eventEmitter.addListener('item.update', itemUpdateHandler)
5122
5174
  eventEmitter.addListener('syncDbWithEas', syncDbWithEasHandler);
5123
5175
  eventEmitter.addListener('item.publish.request', publishItemRequestHandler);
5176
+ eventEmitter.addListener('item.publish.payload.request', publishItemRequestHandler);
5124
5177
  //
5125
5178
  // eventEmitter.emit('item.events.setupAllItemsEventHandlers')
5126
5179
  areReady = true;
@@ -5728,6 +5781,87 @@ const getItemDataFromDb = (_a) => __awaiter(void 0, [_a], void 0, function* ({ m
5728
5781
  }
5729
5782
  return itemData;
5730
5783
  });
5784
+ const getItem = (_a) => __awaiter(void 0, [_a], void 0, function* ({ modelName, seedLocalId, seedUid }) {
5785
+ const itemInitObj = yield getItemDataFromDb({
5786
+ modelName,
5787
+ seedLocalId,
5788
+ seedUid,
5789
+ });
5790
+ if (!itemInitObj) {
5791
+ console.error(`[db/queries] [getItem] no itemInitObj modelName: ${modelName} seedLocalId: ${seedLocalId} seedUid: ${seedUid}`);
5792
+ return;
5793
+ }
5794
+ if (!itemInitObj.seedLocalId) {
5795
+ console.error(`[db/queries] [getItem] no itemInitObj.seedLocalId modelName: ${modelName} seedLocalId: ${seedLocalId} seedUid: ${seedUid}`);
5796
+ return;
5797
+ }
5798
+ return Item.create(itemInitObj);
5799
+ });
5800
+
5801
+ const getPublishPayload = (seedLocalId) => __awaiter(void 0, void 0, void 0, function* () {
5802
+ const item = yield getItem({ seedLocalId });
5803
+ if (!item) {
5804
+ throw new Error('Item not found');
5805
+ }
5806
+ const localId = item.seedLocalId;
5807
+ const seedIsRevocable = true;
5808
+ const seedSchemaUid = item.schemaUid;
5809
+ const seedUid = item.seedUid;
5810
+ const versionSchemaUid = VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA;
5811
+ const listOfAttestations = [];
5812
+ const propertiesToUpdate = [];
5813
+ for (const [propertyName, itemProperty] of Object.entries(item.properties)) {
5814
+ if (!itemProperty.value) {
5815
+ continue;
5816
+ }
5817
+ const foundPropertySchema = yield queryClient.fetchQuery({
5818
+ queryKey: [`getPropertySchema${propertyName}`],
5819
+ queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
5820
+ return easClient.request(GET_SCHEMAS, {
5821
+ where: {
5822
+ id: {
5823
+ equals: itemProperty.schemaUid,
5824
+ },
5825
+ },
5826
+ });
5827
+ }),
5828
+ });
5829
+ if (!foundPropertySchema ||
5830
+ !foundPropertySchema.schemas ||
5831
+ foundPropertySchema.schemas.length === 0) {
5832
+ console.error(`Property schema not found for ${propertyName}`);
5833
+ continue;
5834
+ }
5835
+ if (!itemProperty.propertyDef) {
5836
+ continue;
5837
+ }
5838
+ const easDataType = INTERNAL_DATA_TYPES[itemProperty.propertyDef.dataType].eas;
5839
+ const data = [
5840
+ { name: propertyName, type: easDataType, value: itemProperty.value },
5841
+ ];
5842
+ const easSchemaDefinition = foundPropertySchema.schemas[0].schema;
5843
+ const dataEncoder = new SchemaEncoder(easSchemaDefinition);
5844
+ const encodedData = dataEncoder.encodeData(data);
5845
+ listOfAttestations.push({
5846
+ schema: itemProperty.schemaUid,
5847
+ data: [
5848
+ Object.assign(Object.assign({}, defaultAttestationData), { data: encodedData }),
5849
+ ],
5850
+ });
5851
+ }
5852
+ return [
5853
+ {
5854
+ localId,
5855
+ seedIsRevocable,
5856
+ seedSchemaUid,
5857
+ seedUid: seedUid || ZERO_ADDRESS,
5858
+ versionUid: item.latestVersionUid || ZERO_ADDRESS,
5859
+ versionSchemaUid,
5860
+ listOfAttestations,
5861
+ propertiesToUpdate,
5862
+ },
5863
+ ];
5864
+ });
5731
5865
 
5732
5866
  var _a$1;
5733
5867
  class Item {
@@ -5761,6 +5895,9 @@ class Item {
5761
5895
  },
5762
5896
  });
5763
5897
  });
5898
+ this.getPublishPayload = () => __awaiter(this, void 0, void 0, function* () {
5899
+ yield getPublishPayload(this.seedLocalId);
5900
+ });
5764
5901
  const { modelName, seedUid, schemaUid, seedLocalId, latestVersionLocalId, latestVersionUid, } = initialValues;
5765
5902
  const ModelClass = getModel(modelName);
5766
5903
  if (ModelClass &&
@@ -5943,10 +6080,10 @@ class Item {
5943
6080
  return this._service.getSnapshot().context.seedUid;
5944
6081
  }
5945
6082
  get schemaUid() {
5946
- return this.properties['schemaUid'].value;
6083
+ return this._service.getSnapshot().context.schemaUid;
5947
6084
  }
5948
6085
  get latestVersionUid() {
5949
- return this.properties['latestVersionUid'].value;
6086
+ return this._service.getSnapshot().context.latestVersionUid;
5950
6087
  }
5951
6088
  get modelName() {
5952
6089
  return this._service.getSnapshot().context.modelName;
@@ -5964,7 +6101,7 @@ _a$1 = immerable;
5964
6101
  Item.instanceCache = new Map();
5965
6102
 
5966
6103
  const logger$4 = debug('app:react:services');
5967
- const finalStrings = ['idle', 'ready', 'done', 'success'];
6104
+ const finalStrings = ['idle', 'ready', 'done', 'success', 'initialized'];
5968
6105
  const getServiceName = (service) => {
5969
6106
  let name = 'actor';
5970
6107
  if (service && service.uniqueKey) {
@@ -6077,7 +6214,7 @@ const useServices = () => {
6077
6214
  if (!globalService || !internalService) {
6078
6215
  return;
6079
6216
  }
6080
- if (getServiceValue(globalService) === 'ready' &&
6217
+ if (getServiceValue(globalService) === 'initialized' &&
6081
6218
  getServiceValue(internalService) === 'ready') {
6082
6219
  const denominator = actors.length;
6083
6220
  const finishedActors = actors.filter((actor) => {
@@ -6475,7 +6612,7 @@ const saveServiceHandler = (event) => __awaiter(void 0, void 0, void 0, function
6475
6612
  console.log(`[saveServiceHandler] service not found: ${nameOfService}`);
6476
6613
  return;
6477
6614
  }
6478
- yield writeAppState(`snapshot__${modelName}`, JSON.stringify(service.getPersistedSnapshot()));
6615
+ yield saveAppState(`snapshot__${modelName}`, JSON.stringify(service.getPersistedSnapshot()));
6479
6616
  });
6480
6617
 
6481
6618
  const setupServiceHandlers = () => {
@@ -6499,7 +6636,7 @@ const client = {
6499
6636
  console.error('fs listeners not ready during init');
6500
6637
  }
6501
6638
  globalService.send({ type: 'init', endpoints, models, addresses });
6502
- import('./seed.schema.config-Bp82HrfV.js').then(({ models }) => {
6639
+ import('./seed.schema.config-DfD4DkGq.js').then(({ models }) => {
6503
6640
  for (const [key, value] of Object.entries(models)) {
6504
6641
  setModel(key, value);
6505
6642
  }
@@ -7459,5 +7596,5 @@ if (isNode()) {
7459
7596
  withSeed = (_a = initSeedSync()) === null || _a === void 0 ? void 0 : _a.withSeed;
7460
7597
  }
7461
7598
 
7462
- 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_SEEDS as a, GET_SEED_IDS as b, GET_STORAGE_TRANSACTION_ID as c, GET_VERSIONS as d, GET_PROPERTIES as e, GET_ALL_PROPERTIES_FOR_ALL_VERSIONS as f, itemMachineAll as g, ImageSrc as h, itemMachineSingle as i, ItemProperty as j, useItem as k, useItemProperties as l, useCreateItem as m, useItemProperty as n, useDeleteItem as o, useGlobalServiceStatus as p, useServices as q, getGlobalService as r, client as s, getCorrectId as t, useItems as u, withSeed as w };
7463
- //# sourceMappingURL=index-Cv-NmpW4.js.map
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 };
7600
+ //# sourceMappingURL=index-BmDmbqJM.js.map