@seedprotocol/sdk 0.2.6 → 0.2.8

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 (100) hide show
  1. package/dist/EasClient-DdahV-My.js +13 -0
  2. package/dist/EasClient-DdahV-My.js.map +1 -0
  3. package/dist/EasClient-virlpmud.js +13 -0
  4. package/dist/EasClient-virlpmud.js.map +1 -0
  5. package/dist/FileManager-5GT-dMg0.js +16 -0
  6. package/dist/FileManager-5GT-dMg0.js.map +1 -0
  7. package/dist/FileManager-hdyZkwYe.js +18 -0
  8. package/dist/FileManager-hdyZkwYe.js.map +1 -0
  9. package/dist/{Item-5bbmH1H4.js → Item-Da3oF6rX.js} +3 -3
  10. package/dist/{Item-5bbmH1H4.js.map → Item-Da3oF6rX.js.map} +1 -1
  11. package/dist/QueryClient-DI1wuuAt.js +23 -0
  12. package/dist/QueryClient-DI1wuuAt.js.map +1 -0
  13. package/dist/QueryClient-J0ohccHX.js +21 -0
  14. package/dist/QueryClient-J0ohccHX.js.map +1 -0
  15. package/dist/bin.js +4 -26
  16. package/dist/bin.js.map +1 -1
  17. package/dist/{constants-CtWTDW5q.js → constants-C0HNnrob.js} +11 -2
  18. package/dist/constants-C0HNnrob.js.map +1 -0
  19. package/dist/{index-CoqbOXfg.js → index-BAqEY103.js} +3 -3
  20. package/dist/index-BAqEY103.js.map +1 -0
  21. package/dist/{index-s_H8DdLb.js → index-vIPO_QrC.js} +67 -46
  22. package/dist/index-vIPO_QrC.js.map +1 -0
  23. package/dist/main.js +2 -2
  24. package/dist/{seed.schema.config-CTpDY6LU.js → seed.schema.config-DrHfhLwp.js} +3 -3
  25. package/dist/{seed.schema.config-CTpDY6LU.js.map → seed.schema.config-DrHfhLwp.js.map} +1 -1
  26. package/dist/src/BaseArweaveClient.ts +1 -1
  27. package/dist/src/{EasClientNode.ts → EasClient.ts} +4 -4
  28. package/dist/src/FileManager.ts +13 -0
  29. package/dist/src/{QueryClientNode.ts → QueryClient.ts} +4 -6
  30. package/dist/src/actors.ts +7 -292
  31. package/dist/src/client.ts +6 -0
  32. package/dist/src/download.ts +5 -3
  33. package/dist/src/fetchDataFromEas.ts +3 -3
  34. package/dist/src/fetchRelatedItems.ts +5 -4
  35. package/dist/src/fetchSeeds.ts +5 -4
  36. package/dist/src/fetchVersions.ts +2 -2
  37. package/dist/src/getModelSchemas.ts +2 -2
  38. package/dist/src/getSchemaUidForModel.ts +2 -2
  39. package/dist/src/index.ts +21 -4
  40. package/dist/src/queries.ts +25 -37
  41. package/dist/src/saveImageSrc.ts +1 -1
  42. package/dist/src/syncDbWithEas.ts +2 -2
  43. package/dist/src/waitForDb.ts +17 -18
  44. package/dist/types/scripts/bin.d.ts +3 -3
  45. package/dist/types/scripts/bin.d.ts.map +1 -1
  46. package/dist/types/src/Item/service/actors/fetchDataFromEas.d.ts.map +1 -1
  47. package/dist/types/src/browser/helpers/EasClient.d.ts +7 -0
  48. package/dist/types/src/browser/helpers/EasClient.d.ts.map +1 -0
  49. package/dist/types/src/browser/helpers/FileManager.d.ts +6 -0
  50. package/dist/types/src/browser/helpers/FileManager.d.ts.map +1 -0
  51. package/dist/types/src/browser/helpers/QueryClient.d.ts +7 -0
  52. package/dist/types/src/browser/helpers/QueryClient.d.ts.map +1 -0
  53. package/dist/types/src/client.d.ts.map +1 -1
  54. package/dist/types/src/events/files/download.d.ts.map +1 -1
  55. package/dist/types/src/helpers/EasClient/BaseEasClient.d.ts.map +1 -0
  56. package/dist/types/src/helpers/EasClient/index.d.ts +5 -0
  57. package/dist/types/src/helpers/EasClient/index.d.ts.map +1 -0
  58. package/dist/types/src/helpers/FileManager/BaseFileManager.d.ts.map +1 -0
  59. package/dist/types/src/helpers/FileManager/index.d.ts +5 -0
  60. package/dist/types/src/helpers/FileManager/index.d.ts.map +1 -0
  61. package/dist/types/src/helpers/QueryClient/BaseQueryClient.d.ts.map +1 -0
  62. package/dist/types/src/helpers/QueryClient/index.d.ts +5 -0
  63. package/dist/types/src/helpers/QueryClient/index.d.ts.map +1 -0
  64. package/dist/types/src/helpers/index.d.ts +3 -3
  65. package/dist/types/src/helpers/index.d.ts.map +1 -1
  66. package/dist/types/src/node/helpers/EasClient.d.ts +7 -0
  67. package/dist/types/src/node/helpers/EasClient.d.ts.map +1 -0
  68. package/dist/types/src/node/helpers/FileManager.d.ts +6 -0
  69. package/dist/types/src/node/helpers/FileManager.d.ts.map +1 -0
  70. package/dist/types/src/node/helpers/QueryClient.d.ts +9 -0
  71. package/dist/types/src/node/helpers/QueryClient.d.ts.map +1 -0
  72. package/dist/types/src/services/allItems/actors/fetchRelatedItems.d.ts.map +1 -1
  73. package/dist/types/src/services/allItems/actors/fetchSeeds.d.ts.map +1 -1
  74. package/dist/types/src/services/allItems/actors/initialize.d.ts.map +1 -1
  75. package/package.json +3 -4
  76. package/dist/constants-CtWTDW5q.js.map +0 -1
  77. package/dist/index-CoqbOXfg.js.map +0 -1
  78. package/dist/index-s_H8DdLb.js.map +0 -1
  79. package/dist/src/EasClientWeb.ts +0 -13
  80. package/dist/src/FileManagerNode.ts +0 -31
  81. package/dist/src/FileManagerWeb.ts +0 -18
  82. package/dist/src/QueryClientWeb.ts +0 -20
  83. package/dist/types/src/browser/helpers/EasClientWeb.d.ts +0 -7
  84. package/dist/types/src/browser/helpers/EasClientWeb.d.ts.map +0 -1
  85. package/dist/types/src/browser/helpers/FileManagerWeb.d.ts +0 -5
  86. package/dist/types/src/browser/helpers/FileManagerWeb.d.ts.map +0 -1
  87. package/dist/types/src/browser/helpers/QueryClientWeb.d.ts +0 -7
  88. package/dist/types/src/browser/helpers/QueryClientWeb.d.ts.map +0 -1
  89. package/dist/types/src/helpers/BaseEasClient.d.ts.map +0 -1
  90. package/dist/types/src/helpers/BaseFileManager.d.ts.map +0 -1
  91. package/dist/types/src/helpers/BaseQueryClient.d.ts.map +0 -1
  92. package/dist/types/src/node/helpers/EasClientNode.d.ts +0 -7
  93. package/dist/types/src/node/helpers/EasClientNode.d.ts.map +0 -1
  94. package/dist/types/src/node/helpers/FileManagerNode.d.ts +0 -9
  95. package/dist/types/src/node/helpers/FileManagerNode.d.ts.map +0 -1
  96. package/dist/types/src/node/helpers/QueryClientNode.d.ts +0 -9
  97. package/dist/types/src/node/helpers/QueryClientNode.d.ts.map +0 -1
  98. /package/dist/types/src/helpers/{BaseEasClient.d.ts → EasClient/BaseEasClient.d.ts} +0 -0
  99. /package/dist/types/src/helpers/{BaseFileManager.d.ts → FileManager/BaseFileManager.d.ts} +0 -0
  100. /package/dist/types/src/helpers/{BaseQueryClient.d.ts → QueryClient/BaseQueryClient.d.ts} +0 -0
@@ -9,7 +9,7 @@ import 'dayjs';
9
9
  import { customAlphabet } from 'nanoid';
10
10
  import * as nanoIdDictionary from 'nanoid-dictionary';
11
11
  import debug from 'debug';
12
- import { a as BaseQueryClient, B as BaseEasClient, I as INTERNAL_DATA_TYPES, G as GLOBAL_INITIALIZING_INTERNAL_SERVICE_READY, d as GLOBAL_INITIALIZING_SEND_CONFIG, e as GLOBAL_INITIALIZING_CREATE_ALL_ITEMS_SERVICES, f as GLOBAL_ADDING_MODELS_TO_DB_SUCCESS, D as DB_CHECK_STATUS_UPDATE_PATHS, g as DB_CHECK_STATUS_EXISTS, h as BROWSER_FS_TOP_DIR, i as DB_CREATING_SUCCESS, j as DB_VALIDATING_SUCCESS, k as DB_VALIDATING_WAIT, l as DB_MIGRATING_SUCCESS, M as MachineIds, m as DB_WAITING_FOR_FILES_RECEIVED, n as DB_MIGRATING_WAIT, o as DbState, p as INTERNAL_VALIDATING_INPUT_SUCCESS, b as BaseArweaveClient, q as ARWEAVE_HOST, r as INTERNAL_CONFIGURING_FS_SUCCESS, s as INTERNAL_SAVING_CONFIG_SUCCESS, t as INTERNAL_LOADING_APP_DB_SUCCESS, u as DB_ON_SNAPSHOT, v as DB_NAME_APP, w as InternalState, P as PublishMachineStates, x as GlobalState, V as VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA, y as defaultAttestationData, z as internalPropertyNames } from './constants-CtWTDW5q.js';
12
+ import { a as BaseQueryClient, B as BaseEasClient, I as INTERNAL_DATA_TYPES, G as GLOBAL_INITIALIZING_INTERNAL_SERVICE_READY, e as GLOBAL_INITIALIZING_SEND_CONFIG, f as GLOBAL_INITIALIZING_CREATE_ALL_ITEMS_SERVICES, g as GLOBAL_ADDING_MODELS_TO_DB_SUCCESS, D as DB_CHECK_STATUS_UPDATE_PATHS, h as DB_CHECK_STATUS_EXISTS, i as BROWSER_FS_TOP_DIR, j as DB_CREATING_SUCCESS, k as DB_VALIDATING_SUCCESS, l as DB_VALIDATING_WAIT, m as DB_MIGRATING_SUCCESS, M as MachineIds, n as DB_WAITING_FOR_FILES_RECEIVED, o as DB_MIGRATING_WAIT, p as DbState, q as INTERNAL_VALIDATING_INPUT_SUCCESS, r as ARWEAVE_HOST, c as BaseArweaveClient, s as INTERNAL_CONFIGURING_FS_SUCCESS, t as INTERNAL_SAVING_CONFIG_SUCCESS, u as INTERNAL_LOADING_APP_DB_SUCCESS, v as DB_ON_SNAPSHOT, w as DB_NAME_APP, x as InternalState, P as PublishMachineStates, y as GlobalState, V as VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA, z as defaultAttestationData, C as internalPropertyNames, b as BaseFileManager } from './constants-C0HNnrob.js';
13
13
  import { sqliteTable, text, int, blob, check, unique } from 'drizzle-orm/sqlite-core';
14
14
  import { sql, relations, and, eq, max, or, isNotNull, not, inArray, like, isNull, getTableColumns, count, gt } from 'drizzle-orm';
15
15
  import path from 'path';
@@ -133,15 +133,6 @@ const waitForDb$1 = fromCallback(({ sendBack }) => {
133
133
  });
134
134
  });
135
135
 
136
- class BaseFileManager {
137
- static setPlatformClass(platformClass) {
138
- this.PlatformClass = platformClass;
139
- }
140
- static getContentUrlFromPath(path) {
141
- return this.PlatformClass.getContentUrlFromPath(path);
142
- }
143
- }
144
-
145
136
  const logger$p = debug('app:shared:helpers');
146
137
  const { alphanumeric } = nanoIdDictionary;
147
138
  const generateId = () => {
@@ -1271,7 +1262,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
1271
1262
  if (propertyRecordSchema &&
1272
1263
  propertyRecordSchema.storageType &&
1273
1264
  propertyRecordSchema.storageType === 'ItemStorage') {
1274
- const { Item } = yield import('./index-CoqbOXfg.js');
1265
+ const { Item } = yield import('./index-BAqEY103.js');
1275
1266
  const item = yield Item.find({
1276
1267
  seedLocalId,
1277
1268
  modelName,
@@ -2222,7 +2213,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
2222
2213
  if (!models$1) {
2223
2214
  return;
2224
2215
  }
2225
- const { models: SeedModels } = yield import('./seed.schema.config-CTpDY6LU.js');
2216
+ const { models: SeedModels } = yield import('./seed.schema.config-DrHfhLwp.js');
2226
2217
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
2227
2218
  let hasModelsInDb = false;
2228
2219
  const schemaDefsByModelName = new Map();
@@ -3234,9 +3225,6 @@ const saveAppState = (key, value) => __awaiter(void 0, void 0, void 0, function*
3234
3225
  });
3235
3226
  });
3236
3227
 
3237
- const easClient$5 = BaseEasClient.getEasClient();
3238
- const queryClient$5 = BaseQueryClient.getQueryClient();
3239
- const arweaveClient = BaseArweaveClient.getArweaveClient();
3240
3228
  const logger$e = debug('app:files:download');
3241
3229
  const downloadAllFilesRequestHandler = (_a) => __awaiter(void 0, [_a], void 0, function* ({ endpoints, eventId, }) {
3242
3230
  yield syncDbFiles(endpoints);
@@ -3259,10 +3247,12 @@ const downloadAllFilesBinaryRequestHandler = () => __awaiter(void 0, void 0, voi
3259
3247
  if (!addresses || addresses.length === 0) {
3260
3248
  return;
3261
3249
  }
3262
- const { filesMetadata } = yield queryClient$5.fetchQuery({
3250
+ const queryClient = BaseQueryClient.getQueryClient();
3251
+ const easClient = BaseEasClient.getEasClient();
3252
+ const { filesMetadata } = yield queryClient.fetchQuery({
3263
3253
  queryKey: ['getFilesMetadata', ...addresses],
3264
3254
  queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
3265
- return easClient$5.request(GET_FILES_METADATA, {
3255
+ return easClient.request(GET_FILES_METADATA, {
3266
3256
  where: {
3267
3257
  attester: {
3268
3258
  in: addresses,
@@ -3329,7 +3319,8 @@ const downloadAllFilesBinaryRequestHandler = () => __awaiter(void 0, void 0, voi
3329
3319
  if (transactionId === 'ZXnDkNk_PHRl5Yqu90kEJn_R3LS3Tl9P8eLtlJTqB-M') {
3330
3320
  console.log('transactionId', transactionId);
3331
3321
  }
3332
- const { tags: tagsResult } = yield queryClient$5.fetchQuery({
3322
+ const arweaveClient = BaseArweaveClient.getArweaveClient();
3323
+ const { tags: tagsResult } = yield queryClient.fetchQuery({
3333
3324
  queryKey: ['getTransactionTags', transactionId],
3334
3325
  queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
3335
3326
  return arweaveClient.request(GET_TRANSACTION_TAGS, {
@@ -3352,7 +3343,7 @@ const downloadAllFilesBinaryRequestHandler = () => __awaiter(void 0, void 0, voi
3352
3343
  }
3353
3344
  }
3354
3345
  }
3355
- const data = yield queryClient$5.fetchQuery({
3346
+ const data = yield queryClient.fetchQuery({
3356
3347
  queryKey: ['fetchTransaction', transactionId],
3357
3348
  queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
3358
3349
  const response = yield fetch(`https://${ARWEAVE_HOST}/raw/${transactionId}`);
@@ -3864,8 +3855,6 @@ const internalMachine = setup({
3864
3855
  // })
3865
3856
  // internalService.start()
3866
3857
 
3867
- const easClient$4 = BaseEasClient.getEasClient();
3868
- const queryClient$4 = BaseQueryClient.getQueryClient();
3869
3858
  const initialize = fromCallback(({ sendBack, input: { context } }) => {
3870
3859
  const { modelName, modelAddedToDb, ModelClass, times } = context;
3871
3860
  const newTimes = {
@@ -3908,10 +3897,12 @@ const initialize = fromCallback(({ sendBack, input: { context } }) => {
3908
3897
  // }
3909
3898
  modelNameLowercase = modelName.toLowerCase();
3910
3899
  modelNamePlural = pluralize(modelNameLowercase);
3911
- const modelSchemas = yield queryClient$4.fetchQuery({
3900
+ const queryClient = BaseQueryClient.getQueryClient();
3901
+ const easClient = BaseEasClient.getEasClient();
3902
+ const modelSchemas = yield queryClient.fetchQuery({
3912
3903
  queryKey: [`getSchemas${modelName}`],
3913
3904
  queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
3914
- return easClient$4.request(GET_SCHEMAS, {
3905
+ return easClient.request(GET_SCHEMAS, {
3915
3906
  where: {
3916
3907
  schema: {
3917
3908
  equals: `bytes32 ${toSnakeCase(modelName)}`,
@@ -3981,9 +3972,9 @@ const initialize = fromCallback(({ sendBack, input: { context } }) => {
3981
3972
  });
3982
3973
  }
3983
3974
  }
3984
- const foundPropertySchemas = yield queryClient$4.fetchQuery({
3975
+ const foundPropertySchemas = yield queryClient.fetchQuery({
3985
3976
  queryKey: [`getPropertySchemas${modelName}`],
3986
- queryFn: () => __awaiter(void 0, void 0, void 0, function* () { return easClient$4.request(GET_SCHEMAS, queryVariables); }),
3977
+ queryFn: () => __awaiter(void 0, void 0, void 0, function* () { return easClient.request(GET_SCHEMAS, queryVariables); }),
3987
3978
  });
3988
3979
  const tempExclusions = ['html', 'json'];
3989
3980
  for (const foundProperty of foundPropertiesDb) {
@@ -4058,8 +4049,6 @@ const fetchDbData = fromCallback(({ sendBack, input: { context } }) => {
4058
4049
  return () => { };
4059
4050
  });
4060
4051
 
4061
- const easClient$3 = BaseEasClient.getEasClient();
4062
- const queryClient$3 = BaseQueryClient.getQueryClient();
4063
4052
  const logger$9 = debug('app:allItemsActors:fetchSeeds');
4064
4053
  const fetchSeeds = fromCallback(({ sendBack, input: { context } }) => {
4065
4054
  const { queryVariables, modelName } = context;
@@ -4069,11 +4058,13 @@ const fetchSeeds = fromCallback(({ sendBack, input: { context } }) => {
4069
4058
  let itemSeeds;
4070
4059
  const _fetchSeeds = () => __awaiter(void 0, void 0, void 0, function* () {
4071
4060
  const queryKey = [`getSeeds${modelName}`];
4072
- const cachedResults = queryClient$3.getQueryData(queryKey);
4061
+ const queryClient = BaseQueryClient.getQueryClient();
4062
+ const easClient = BaseEasClient.getEasClient();
4063
+ const cachedResults = queryClient.getQueryData(queryKey);
4073
4064
  logger$9(`[allItemsActors] [fetchSeeds] cachedResults ${Date.now()}`, cachedResults);
4074
- const results = yield queryClient$3.fetchQuery({
4065
+ const results = yield queryClient.fetchQuery({
4075
4066
  queryKey,
4076
- queryFn: () => __awaiter(void 0, void 0, void 0, function* () { return easClient$3.request(GET_SEEDS, queryVariables); }),
4067
+ queryFn: () => __awaiter(void 0, void 0, void 0, function* () { return easClient.request(GET_SEEDS, queryVariables); }),
4077
4068
  });
4078
4069
  itemSeeds = results.itemSeeds;
4079
4070
  });
@@ -4113,8 +4104,6 @@ const fetchVersions = fromCallback(({ sendBack, input: { context } }) => {
4113
4104
  return () => { };
4114
4105
  });
4115
4106
 
4116
- const easClient$2 = BaseEasClient.getEasClient();
4117
- const queryClient$2 = BaseQueryClient.getQueryClient();
4118
4107
  const fetchRelatedItems = fromCallback(({ sendBack, input: { context } }) => {
4119
4108
  const { ModelClass, modelName } = context;
4120
4109
  const appDb = BaseDb.getAppDb();
@@ -4154,10 +4143,12 @@ const fetchRelatedItems = fromCallback(({ sendBack, input: { context } }) => {
4154
4143
  }
4155
4144
  }
4156
4145
  const queryKey = [`getRelatedSeedIds${modelName}`];
4157
- const { itemSeedIds: relatedSeedIdAttestations } = yield queryClient$2.fetchQuery({
4146
+ const queryClient = BaseQueryClient.getQueryClient();
4147
+ const easClient = BaseEasClient.getEasClient();
4148
+ const { itemSeedIds: relatedSeedIdAttestations } = yield queryClient.fetchQuery({
4158
4149
  queryKey,
4159
4150
  queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
4160
- return easClient$2.request(GET_SEED_IDS, {
4151
+ return easClient.request(GET_SEED_IDS, {
4161
4152
  where: {
4162
4153
  schema: {
4163
4154
  is: {
@@ -4174,10 +4165,10 @@ const fetchRelatedItems = fromCallback(({ sendBack, input: { context } }) => {
4174
4165
  }),
4175
4166
  });
4176
4167
  const relatedSeedIds = relatedSeedIdAttestations.map((seed) => seed.id);
4177
- const { itemVersions: relatedVersions } = yield queryClient$2.fetchQuery({
4168
+ const { itemVersions: relatedVersions } = yield queryClient.fetchQuery({
4178
4169
  queryKey: [`getRelatedVersions${modelName}`],
4179
4170
  queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
4180
- return easClient$2.request(GET_VERSIONS, {
4171
+ return easClient.request(GET_VERSIONS, {
4181
4172
  where: {
4182
4173
  refUID: {
4183
4174
  in: relatedSeedIds,
@@ -4206,10 +4197,10 @@ const fetchRelatedItems = fromCallback(({ sendBack, input: { context } }) => {
4206
4197
  }
4207
4198
  // Extract the ids of the most recent versions
4208
4199
  const mostRecentVersionIds = Array.from(mostRecentVersionsBySeedUid.values()).map((version) => version.id);
4209
- const { allProperties } = yield queryClient$2.fetchQuery({
4200
+ const { allProperties } = yield queryClient.fetchQuery({
4210
4201
  queryKey: [`getAllProperties${modelName}`],
4211
4202
  queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
4212
- return easClient$2.request(GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, {
4203
+ return easClient.request(GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, {
4213
4204
  where: {
4214
4205
  refUID: {
4215
4206
  in: mostRecentVersionIds,
@@ -5074,8 +5065,6 @@ const hydrateNewItem = fromCallback(({ sendBack, input: { context } }) => {
5074
5065
  });
5075
5066
  });
5076
5067
 
5077
- const easClient$1 = BaseEasClient.getEasClient();
5078
- const queryClient$1 = BaseQueryClient.getQueryClient();
5079
5068
  const fetchDataFromEas = fromCallback(({ sendBack, input: { context } }) => {
5080
5069
  const { ModelClass, modelTableName, versionUid } = context;
5081
5070
  const propertiesMetadata = new Map();
@@ -5093,11 +5082,13 @@ const fetchDataFromEas = fromCallback(({ sendBack, input: { context } }) => {
5093
5082
  return;
5094
5083
  }
5095
5084
  const _fetchDataFromEas = () => __awaiter(void 0, void 0, void 0, function* () {
5085
+ const queryClient = BaseQueryClient.getQueryClient();
5086
+ const easClient = BaseEasClient.getEasClient();
5096
5087
  // Fetch Properties by versionUid
5097
- const { itemProperties } = yield queryClient$1.fetchQuery({
5088
+ const { itemProperties } = yield queryClient.fetchQuery({
5098
5089
  queryKey: ['getProperties', versionUid],
5099
5090
  queryFn: () => __awaiter(void 0, void 0, void 0, function* () {
5100
- return easClient$1.request(GET_PROPERTIES, {
5091
+ return easClient.request(GET_PROPERTIES, {
5101
5092
  where: {
5102
5093
  refUID: {
5103
5094
  in: [versionUid],
@@ -7989,7 +7980,7 @@ const initItem = () => __awaiter(void 0, void 0, void 0, function* () {
7989
7980
  (yield Promise.resolve().then(function () { return Item$1; })).Item;
7990
7981
  }
7991
7982
  else {
7992
- (yield import('./Item-5bbmH1H4.js')).Item;
7983
+ (yield import('./Item-Da3oF6rX.js')).Item;
7993
7984
  }
7994
7985
  });
7995
7986
 
@@ -8002,10 +7993,40 @@ const initItemProperty = () => __awaiter(void 0, void 0, void 0, function* () {
8002
7993
  }
8003
7994
  });
8004
7995
 
7996
+ const initEasClient = () => __awaiter(void 0, void 0, void 0, function* () {
7997
+ if (typeof window !== 'undefined') {
7998
+ (yield import('./EasClient-DdahV-My.js')).EasClient;
7999
+ }
8000
+ else {
8001
+ (yield import('./EasClient-virlpmud.js')).EasClient;
8002
+ }
8003
+ });
8004
+
8005
+ const initQueryClient = () => __awaiter(void 0, void 0, void 0, function* () {
8006
+ if (typeof window !== 'undefined') {
8007
+ (yield import('./QueryClient-J0ohccHX.js')).QueryClient;
8008
+ }
8009
+ else {
8010
+ (yield import('./QueryClient-DI1wuuAt.js')).QueryClient;
8011
+ }
8012
+ });
8013
+
8014
+ const initFileManager = () => __awaiter(void 0, void 0, void 0, function* () {
8015
+ if (typeof window !== 'undefined') {
8016
+ (yield import('./FileManager-hdyZkwYe.js')).FileManager;
8017
+ }
8018
+ else {
8019
+ (yield import('./FileManager-5GT-dMg0.js')).FileManager;
8020
+ }
8021
+ });
8022
+
8005
8023
  const client = {
8006
8024
  init: (_a) => __awaiter(void 0, [_a], void 0, function* ({ config, addresses }) {
8007
8025
  yield initItem();
8008
8026
  yield initItemProperty();
8027
+ yield initEasClient();
8028
+ yield initQueryClient();
8029
+ yield initFileManager();
8009
8030
  const { endpoints, models, arweaveDomain } = config;
8010
8031
  if (arweaveDomain) {
8011
8032
  setArweaveDomain(arweaveDomain);
@@ -8030,7 +8051,7 @@ const client = {
8030
8051
  addresses,
8031
8052
  arweaveDomain,
8032
8053
  });
8033
- const { models: internalModels } = yield import('./seed.schema.config-CTpDY6LU.js');
8054
+ const { models: internalModels } = yield import('./seed.schema.config-DrHfhLwp.js');
8034
8055
  for (const [key, value] of Object.entries(internalModels)) {
8035
8056
  setModel(key, value);
8036
8057
  }
@@ -8080,5 +8101,5 @@ const client = {
8080
8101
 
8081
8102
  enableMapSet();
8082
8103
 
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-s_H8DdLb.js.map
8104
+ 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, eventEmitter as l, client as m, useItems as u, withSeed as w };
8105
+ //# sourceMappingURL=index-vIPO_QrC.js.map