@seedprotocol/sdk 0.2.44 → 0.2.46

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 (116) hide show
  1. package/dist/{ArweaveClient-CA1Vsnow.js → ArweaveClient-CoFomTCN.js} +2 -2
  2. package/dist/{ArweaveClient-MgJXScYG.js.map → ArweaveClient-CoFomTCN.js.map} +1 -1
  3. package/dist/{ArweaveClient-MgJXScYG.js → ArweaveClient-DQrXvrNN.js} +2 -2
  4. package/dist/{ArweaveClient-CA1Vsnow.js.map → ArweaveClient-DQrXvrNN.js.map} +1 -1
  5. package/dist/{Db-BEoczaGe.js → Db-5C5VqRWb.js} +16 -14
  6. package/dist/Db-5C5VqRWb.js.map +1 -0
  7. package/dist/{Db-Y1GWsyNL.js → Db-Dv890NJZ.js} +5 -4
  8. package/dist/{Db-Y1GWsyNL.js.map → Db-Dv890NJZ.js.map} +1 -1
  9. package/dist/{EasClient-BjlbuffX.js → EasClient-CBu9ENAi.js} +2 -2
  10. package/dist/{EasClient-Cg1q8lBu.js.map → EasClient-CBu9ENAi.js.map} +1 -1
  11. package/dist/{EasClient-Cg1q8lBu.js → EasClient-sCbTHcO8.js} +2 -2
  12. package/dist/{EasClient-BjlbuffX.js.map → EasClient-sCbTHcO8.js.map} +1 -1
  13. package/dist/{FileManager-D53H3aUS.js → FileManager-AhAsy_F_.js} +21 -8
  14. package/dist/{FileManager-D53H3aUS.js.map → FileManager-AhAsy_F_.js.map} +1 -1
  15. package/dist/{FileManager-t4zcT3NL.js → FileManager-COOp89Mj.js} +2 -2
  16. package/dist/{FileManager-t4zcT3NL.js.map → FileManager-COOp89Mj.js.map} +1 -1
  17. package/dist/{Item-BleJyiA2.js → Item-BmPvgaG4.js} +5 -4
  18. package/dist/{Item-BleJyiA2.js.map → Item-BmPvgaG4.js.map} +1 -1
  19. package/dist/{ItemProperty-CH7JmVg-.js → ItemProperty-BW4k1h0o.js} +5 -4
  20. package/dist/{ItemProperty-CH7JmVg-.js.map → ItemProperty-BW4k1h0o.js.map} +1 -1
  21. package/dist/{QueryClient-CDsEencG.js → QueryClient-BBaE-LKI.js} +2 -2
  22. package/dist/{QueryClient-CDsEencG.js.map → QueryClient-BBaE-LKI.js.map} +1 -1
  23. package/dist/{QueryClient-BKjgZnSt.js → QueryClient-C-ZzUnWq.js} +2 -2
  24. package/dist/{QueryClient-BKjgZnSt.js.map → QueryClient-C-ZzUnWq.js.map} +1 -1
  25. package/dist/bin.js +5 -5
  26. package/dist/{constants-BIdH8wc3.js → constants-Dgv-tSO3.js} +13 -3
  27. package/dist/constants-Dgv-tSO3.js.map +1 -0
  28. package/dist/{index-DanGFTTF.js → index-CGeSKilQ.js} +283 -206
  29. package/dist/index-CGeSKilQ.js.map +1 -0
  30. package/dist/{index-Dk6K4W4n.js → index-CPxn1SR4.js} +5 -4
  31. package/dist/index-CPxn1SR4.js.map +1 -0
  32. package/dist/main.js +4 -3
  33. package/dist/main.js.map +1 -1
  34. package/dist/{seed.schema.config-DdCq87m_.js → seed.schema.config-BXWvwsZQ.js} +11 -10
  35. package/dist/seed.schema.config-BXWvwsZQ.js.map +1 -0
  36. package/dist/src/BaseFileManager.ts +11 -2
  37. package/dist/src/BaseItem.ts +1 -1
  38. package/dist/src/BaseItemProperty.ts +7 -6
  39. package/dist/src/actors.ts +1 -1
  40. package/dist/src/client.ts +12 -0
  41. package/dist/src/configureFs.ts +19 -6
  42. package/dist/src/createMetadata.ts +11 -4
  43. package/dist/src/dbMachine.ts +6 -0
  44. package/dist/src/download.ts +4 -2
  45. package/dist/src/files.ts +15 -4
  46. package/dist/src/getItemProperties.ts +9 -19
  47. package/dist/src/getPublishPayload.ts +15 -8
  48. package/dist/src/getPublishUploads.ts +1 -28
  49. package/dist/src/gql.ts +9 -4
  50. package/dist/src/graphql.ts +12 -4
  51. package/dist/src/helpers.ts +21 -4
  52. package/dist/src/hydrateFromDb.ts +5 -2
  53. package/dist/src/internalMachine.ts +16 -0
  54. package/dist/src/metadataLatest.ts +34 -0
  55. package/dist/src/migrate.ts +1 -25
  56. package/dist/src/property.ts +10 -7
  57. package/dist/src/resolveRelatedValue.ts +1 -1
  58. package/dist/src/resolveRemoteStorage.ts +1 -1
  59. package/dist/src/saveImageSrc.ts +2 -2
  60. package/dist/src/saveItemStorage.ts +1 -1
  61. package/dist/src/updateItemPropertyValue.ts +1 -1
  62. package/dist/src/validate.ts +7 -4
  63. package/dist/src/waitForDb.ts +12 -9
  64. package/dist/src/waitForFiles.ts +9 -8
  65. package/dist/types/src/Item/queries.d.ts +2 -2
  66. package/dist/types/src/Item/queries.d.ts.map +1 -1
  67. package/dist/types/src/Item/service/actors/fetchDataFromEas.d.ts +1 -2
  68. package/dist/types/src/Item/service/actors/fetchDataFromEas.d.ts.map +1 -1
  69. package/dist/types/src/Item/service/actors/waitForDb.d.ts +3 -1
  70. package/dist/types/src/Item/service/actors/waitForDb.d.ts.map +1 -1
  71. package/dist/types/src/ItemProperty/BaseItemProperty.d.ts +1 -1
  72. package/dist/types/src/ItemProperty/BaseItemProperty.d.ts.map +1 -1
  73. package/dist/types/src/ItemProperty/service/actors/hydrateFromDb.d.ts.map +1 -1
  74. package/dist/types/src/ItemProperty/service/actors/waitForDb.d.ts.map +1 -1
  75. package/dist/types/src/ItemProperty/service/propertyMachine.d.ts +6 -6
  76. package/dist/types/src/browser/db/Db.d.ts.map +1 -1
  77. package/dist/types/src/browser/helpers/FileManager.d.ts.map +1 -1
  78. package/dist/types/src/browser/react/property.d.ts +1 -1
  79. package/dist/types/src/browser/react/property.d.ts.map +1 -1
  80. package/dist/types/src/client.d.ts +1 -0
  81. package/dist/types/src/client.d.ts.map +1 -1
  82. package/dist/types/src/db/read/getItemProperties.d.ts.map +1 -1
  83. package/dist/types/src/db/read/getPublishPayload.d.ts.map +1 -1
  84. package/dist/types/src/db/read/getPublishUploads.d.ts.map +1 -1
  85. package/dist/types/src/db/read/subqueries/metadataLatest.d.ts +5 -0
  86. package/dist/types/src/db/read/subqueries/metadataLatest.d.ts.map +1 -0
  87. package/dist/types/src/db/write/createMetadata.d.ts.map +1 -1
  88. package/dist/types/src/events/files/download.d.ts.map +1 -1
  89. package/dist/types/src/graphql/gql/gql.d.ts +12 -5
  90. package/dist/types/src/graphql/gql/gql.d.ts.map +1 -1
  91. package/dist/types/src/graphql/gql/graphql.d.ts +31 -15
  92. package/dist/types/src/graphql/gql/graphql.d.ts.map +1 -1
  93. package/dist/types/src/helpers/FileManager/BaseFileManager.d.ts +2 -0
  94. package/dist/types/src/helpers/FileManager/BaseFileManager.d.ts.map +1 -1
  95. package/dist/types/src/helpers/files.d.ts.map +1 -1
  96. package/dist/types/src/schema/file/queries.d.ts.map +1 -1
  97. package/dist/types/src/schema/model/index.d.ts.map +1 -1
  98. package/dist/types/src/services/db/actors/migrate.d.ts.map +1 -1
  99. package/dist/types/src/services/db/actors/validate.d.ts.map +1 -1
  100. package/dist/types/src/services/db/dbMachine.d.ts +10 -0
  101. package/dist/types/src/services/db/dbMachine.d.ts.map +1 -1
  102. package/dist/types/src/services/global/globalMachine.d.ts +90 -90
  103. package/dist/types/src/services/internal/actors/configureFs.d.ts.map +1 -1
  104. package/dist/types/src/services/internal/actors/waitForFiles.d.ts +4 -0
  105. package/dist/types/src/services/internal/actors/waitForFiles.d.ts.map +1 -0
  106. package/dist/types/src/services/internal/helpers.d.ts.map +1 -1
  107. package/dist/types/src/services/internal/internalMachine.d.ts +10 -0
  108. package/dist/types/src/services/internal/internalMachine.d.ts.map +1 -1
  109. package/package.json +3 -3
  110. package/dist/Db-BEoczaGe.js.map +0 -1
  111. package/dist/constants-BIdH8wc3.js.map +0 -1
  112. package/dist/index-DanGFTTF.js.map +0 -1
  113. package/dist/index-Dk6K4W4n.js.map +0 -1
  114. package/dist/seed.schema.config-DdCq87m_.js.map +0 -1
  115. package/dist/types/src/Item/service/actors/saveDataToDb.d.ts +0 -3
  116. package/dist/types/src/Item/service/actors/saveDataToDb.d.ts.map +0 -1
@@ -3072,6 +3072,10 @@ export type TransactionEdge = {
3072
3072
  node: Transaction;
3073
3073
  };
3074
3074
 
3075
+ export type AttestationFieldsFragment = { __typename?: 'Attestation', id: string, decodedDataJson: string, attester: string, refUID: string, revoked: boolean, schemaId: string, txid: string, timeCreated: number, time: number, isOffchain: boolean, schema: { __typename?: 'Schema', schemaNames: Array<{ __typename?: 'SchemaName', name: string }> } } & { ' $fragmentName'?: 'AttestationFieldsFragment' };
3076
+
3077
+ export type SchemaFieldsFragment = { __typename?: 'Schema', id: string, resolver: string, revocable: boolean, schema: string, index: string, time: number, txid: string, creator: string, schemaNames: Array<{ __typename?: 'SchemaName', name: string }> } & { ' $fragmentName'?: 'SchemaFieldsFragment' };
3078
+
3075
3079
  export type GetTransactionTagsQueryVariables = Exact<{
3076
3080
  transactionId: Scalars['ID']['input'];
3077
3081
  }>;
@@ -3079,10 +3083,6 @@ export type GetTransactionTagsQueryVariables = Exact<{
3079
3083
 
3080
3084
  export type GetTransactionTagsQuery = { __typename?: 'Query', tags?: { __typename?: 'Transaction', id: string, tags: Array<{ __typename?: 'Tag', name: string, value: string }> } | null };
3081
3085
 
3082
- export type AttestationFieldsFragment = { __typename?: 'Attestation', id: string, decodedDataJson: string, attester: string, refUID: string, revoked: boolean, schemaId: string, txid: string, timeCreated: number, time: number, isOffchain: boolean, schema: { __typename?: 'Schema', schemaNames: Array<{ __typename?: 'SchemaName', name: string }> } } & { ' $fragmentName'?: 'AttestationFieldsFragment' };
3083
-
3084
- export type SchemaFieldsFragment = { __typename?: 'Schema', id: string, resolver: string, revocable: boolean, schema: string, index: string, time: number, txid: string, creator: string, schemaNames: Array<{ __typename?: 'SchemaName', name: string }> } & { ' $fragmentName'?: 'SchemaFieldsFragment' };
3085
-
3086
3086
  export type GetSchemasQueryVariables = Exact<{
3087
3087
  where: SchemaWhereInput;
3088
3088
  }>;
@@ -3090,6 +3090,13 @@ export type GetSchemasQueryVariables = Exact<{
3090
3090
 
3091
3091
  export type GetSchemasQuery = { __typename?: 'Query', schemas: Array<{ __typename?: 'Schema', id: string, schema: string, schemaNames: Array<{ __typename?: 'SchemaName', name: string }> }> };
3092
3092
 
3093
+ export type GetSchemaByNameQueryVariables = Exact<{
3094
+ where: SchemaWhereInput;
3095
+ }>;
3096
+
3097
+
3098
+ export type GetSchemaByNameQuery = { __typename?: 'Query', schemas: Array<{ __typename?: 'Schema', id: string, schema: string, schemaNames: Array<{ __typename?: 'SchemaName', name: string }> }> };
3099
+
3093
3100
  export type GetSeedsQueryVariables = Exact<{
3094
3101
  where: AttestationWhereInput;
3095
3102
  }>;
@@ -3188,6 +3195,7 @@ export const AttestationFieldsFragmentDoc = {"kind":"Document","definitions":[{"
3188
3195
  export const SchemaFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"schemaFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Schema"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"resolver"}},{"kind":"Field","name":{"kind":"Name","value":"revocable"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"index"}},{"kind":"Field","name":{"kind":"Name","value":"schemaNames"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"txid"}},{"kind":"Field","name":{"kind":"Name","value":"creator"}}]}}]} as unknown as DocumentNode<SchemaFieldsFragment, unknown>;
3189
3196
  export const GetTransactionTagsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetTransactionTags"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transactionId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"tags"},"name":{"kind":"Name","value":"transaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transactionId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]} as unknown as DocumentNode<GetTransactionTagsQuery, GetTransactionTagsQueryVariables>;
3190
3197
  export const GetSchemasDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetSchemas"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SchemaWhereInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"schemas"},"name":{"kind":"Name","value":"schemata"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"schemaNames"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<GetSchemasQuery, GetSchemasQueryVariables>;
3198
+ export const GetSchemaByNameDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetSchemaByName"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SchemaWhereInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"schemas"},"name":{"kind":"Name","value":"schemata"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"schema"}},{"kind":"Field","name":{"kind":"Name","value":"schemaNames"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<GetSchemaByNameQuery, GetSchemaByNameQueryVariables>;
3191
3199
  export const GetSeedsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetSeeds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AttestationWhereInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"itemSeeds"},"name":{"kind":"Name","value":"attestations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timeCreated"},"value":{"kind":"EnumValue","value":"desc"}}]}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"decodedDataJson"}},{"kind":"Field","name":{"kind":"Name","value":"attester"}},{"kind":"Field","name":{"kind":"Name","value":"schema"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"schemaNames"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"refUID"}},{"kind":"Field","name":{"kind":"Name","value":"revoked"}},{"kind":"Field","name":{"kind":"Name","value":"schemaId"}},{"kind":"Field","name":{"kind":"Name","value":"timeCreated"}},{"kind":"Field","name":{"kind":"Name","value":"isOffchain"}}]}}]}}]} as unknown as DocumentNode<GetSeedsQuery, GetSeedsQueryVariables>;
3192
3200
  export const GetSeedIdsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetSeedIds"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AttestationWhereInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"itemSeedIds"},"name":{"kind":"Name","value":"attestations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timeCreated"},"value":{"kind":"EnumValue","value":"desc"}}]}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<GetSeedIdsQuery, GetSeedIdsQueryVariables>;
3193
3201
  export const GetStorageTransactionIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetStorageTransactionId"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AttestationWhereInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"storageTransactionId"},"name":{"kind":"Name","value":"attestations"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"ListValue","values":[{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"timeCreated"},"value":{"kind":"EnumValue","value":"desc"}}]}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"decodedDataJson"}}]}}]}}]} as unknown as DocumentNode<GetStorageTransactionIdQuery, GetStorageTransactionIdQueryVariables>;
@@ -1,4 +1,4 @@
1
- import { fs } from '@zenfs/core'
1
+ import fs from '@zenfs/core'
2
2
  import path from 'path'
3
3
  import { Endpoints } from '@/types'
4
4
  import { BROWSER_FS_TOP_DIR } from '@/services/internal/constants'
@@ -17,12 +17,23 @@ export const createDirectories = async (dirPath: string) => {
17
17
  }
18
18
 
19
19
  const parentDir = path.dirname(dirPath)
20
- const parentDirExists = await fs.promises.exists(parentDir)
20
+ let parentDirExists = await fs.promises.exists(parentDir)
21
21
  if (!parentDirExists) {
22
22
  await createDirectories(parentDir)
23
23
  }
24
24
 
25
- await fs.promises.mkdir(dirPath, { recursive: true })
25
+ parentDirExists = await fs.promises.exists(parentDir)
26
+ if (parentDirExists) {
27
+ try {
28
+ await fs.promises.mkdir(dirPath)
29
+ } catch (error) {
30
+ logger(`[Error] Failed to create directories for ${dirPath}:`, error)
31
+ }
32
+ }
33
+
34
+ if (!parentDirExists) {
35
+ console.log(fs)
36
+ }
26
37
  }
27
38
 
28
39
  let busy = false
@@ -80,7 +91,13 @@ export const downloadFile = async (url: string, localFilePath: string) => {
80
91
  }
81
92
  }
82
93
 
83
- await fs.promises.writeFile(localFilePath, fileData)
94
+ try {
95
+ await fs.promises.writeFile(localFilePath, fileData)
96
+ logger(`[downloadFile] Wrote file async to ${localFilePath}`)
97
+ } catch (error) {
98
+ fs.writeFileSync(localFilePath, fileData)
99
+ logger(`[downloadFile] Wrote file sync to ${localFilePath}`)
100
+ }
84
101
  } catch (error) {
85
102
  logger(`[Error] Failed to download file from ${url}:`, error)
86
103
  }
@@ -1,7 +1,7 @@
1
1
  import { EventObject, fromCallback } from 'xstate'
2
2
  import { and, eq, or, sql } from 'drizzle-orm'
3
3
  import debug from 'debug'
4
- import { fs } from '@zenfs/core'
4
+ import fs from '@zenfs/core'
5
5
  import { metadata } from '@/seedSchema'
6
6
  import { BaseDb } from '@/db/Db/BaseDb'
7
7
  import { updateMetadata } from '@/db/write/updateMetadata'
@@ -168,7 +168,10 @@ export const hydrateFromDb = fromCallback<
168
168
  .where(
169
169
  and(
170
170
  eq(metadata.seedUid, propertyValueFromDb),
171
- eq(metadata.propertyName, 'storageTransactionId'),
171
+ or(
172
+ eq(metadata.propertyName, 'storageTransactionId'),
173
+ eq(metadata.propertyName, 'transactionId'),
174
+ ),
172
175
  ),
173
176
  )
174
177
 
@@ -17,6 +17,7 @@ import { configureFs } from '@/services/internal/actors/configureFs'
17
17
  import { saveConfig } from '@/services/internal/actors/saveConfig'
18
18
  import { loadAppDb } from '@/services/internal/actors/loadAppDb'
19
19
  import { InternalMachineContext } from '@/types'
20
+ import { waitForFiles } from './actors/waitForFiles'
20
21
 
21
22
  const logger = debug('app:services:internal:machine')
22
23
 
@@ -41,6 +42,7 @@ export const internalMachine = setup({
41
42
  actors: {
42
43
  prepareDb,
43
44
  validateInput,
45
+ waitForFiles,
44
46
  configureFs,
45
47
  loadAppDb,
46
48
  saveConfig,
@@ -111,12 +113,26 @@ export const internalMachine = setup({
111
113
  input: ({ context, event }) => ({ context, event }),
112
114
  },
113
115
  },
116
+ waitingForFiles: {
117
+ on: {
118
+ filesReceived: {
119
+ target: LOADING_APP_DB,
120
+ },
121
+ },
122
+ invoke: {
123
+ src: 'waitForFiles',
124
+ input: ({ context, event }) => ({ context, event }),
125
+ },
126
+ },
114
127
  [CONFIGURING_FS]: {
115
128
  on: {
116
129
  [INTERNAL_CONFIGURING_FS_SUCCESS]: {
117
130
  target: LOADING_APP_DB,
118
131
  actions: assign({ hasFiles: true }),
119
132
  },
133
+ shouldWaitForFiles: {
134
+ target: 'waitingForFiles',
135
+ },
120
136
  },
121
137
  invoke: {
122
138
  src: 'configureFs',
@@ -0,0 +1,34 @@
1
+ import { and, eq, getTableColumns, or, SQL, sql } from 'drizzle-orm'
2
+ import { BaseDb } from '@/db/Db/BaseDb'
3
+ import { metadata } from '@/seedSchema'
4
+
5
+ export const getMetadataLatest = ({seedLocalId, seedUid}: {seedLocalId?: string, seedUid?: string}) => {
6
+ const appDb = BaseDb.getAppDb()
7
+
8
+ const whereClauses: SQL[] = []
9
+
10
+ if (seedLocalId) {
11
+ whereClauses.push(eq(metadata.seedLocalId, seedLocalId))
12
+ }
13
+
14
+ if (seedUid) {
15
+ whereClauses.push(eq(metadata.seedUid, seedUid))
16
+ }
17
+
18
+ const metadataColumns = getTableColumns(metadata)
19
+
20
+ return appDb.$with('metadataLatest').as(
21
+ appDb
22
+ .select({
23
+ ...metadataColumns,
24
+ rowNum: sql.raw(`
25
+ ROW_NUMBER() OVER (
26
+ PARTITION BY property_name
27
+ ORDER BY COALESCE(created_at, attestation_created_at) DESC
28
+ )
29
+ `).as('rowNum')
30
+ })
31
+ .from(metadata)
32
+ .where(and(...whereClauses))
33
+ )
34
+ }
@@ -23,16 +23,6 @@ export const migrate = fromCallback<
23
23
 
24
24
  let journalExists = false
25
25
 
26
- // const _initFs = async (): Promise<void> => {
27
- // const handle = await navigator.storage.getDirectory()
28
- // // await configure({ backend: WebAccess, handle })
29
- // await configureSingle({
30
- // backend: WebAccess,
31
- // handle,
32
- // })
33
- // }
34
- //
35
- // _initFs()
36
26
 
37
27
  const _checkForFiles = async (): Promise<void> => {
38
28
  const journalPath = `/${pathToDbDir}/meta/_journal.json`
@@ -41,21 +31,7 @@ export const migrate = fromCallback<
41
31
 
42
32
 
43
33
  if (!journalExists) {
44
- await waitForFile(journalPath)
45
- // const handle = await navigator.storage.getDirectory()
46
- //
47
- // await configureSingle({
48
- // backend: WebAccess,
49
- // handle,
50
- // })
51
-
52
- // window.location.reload()
53
-
54
- // setTimeout(() => {
55
- // _checkForFiles().then(() => {
56
- // return
57
- // })
58
- // }, 500)
34
+ await waitForFile(journalPath, 500, 60000)
59
35
  }
60
36
  }
61
37
 
@@ -23,13 +23,16 @@ type UseItemPropertyReturn = {
23
23
  status: string
24
24
  }
25
25
 
26
- type UseItemProperty = (props: UseItemPropertyProps) => UseItemPropertyReturn
26
+ type UseItemProperty = (props: UseItemPropertyProps | undefined) => UseItemPropertyReturn
27
27
 
28
- export const useItemProperty: UseItemProperty = ({
29
- propertyName,
30
- seedLocalId,
31
- seedUid,
28
+ export const useItemProperty: UseItemProperty = (props = {
29
+ propertyName: '',
30
+ seedLocalId: '',
31
+ seedUid: '',
32
32
  }) => {
33
+
34
+ const { propertyName, seedLocalId, seedUid } = props
35
+
33
36
  const [property, setProperty] = useState<IItemProperty<any> | undefined>()
34
37
  const [isInitialized, setIsInitialized] = useState(false)
35
38
 
@@ -76,13 +79,13 @@ export const useItemProperty: UseItemProperty = ({
76
79
  setProperty(foundProperty)
77
80
  setIsInitialized(true)
78
81
  isReadingDb.current = false
79
- }, [internalStatus])
82
+ }, [internalStatus, props])
80
83
 
81
84
  const listenerRef = useRef(readFromDb)
82
85
 
83
86
  useEffect(() => {
84
87
  listenerRef.current = readFromDb
85
- }, [readFromDb])
88
+ }, [readFromDb, props])
86
89
 
87
90
  useEffect(() => {
88
91
  if (internalStatus === 'ready') {
@@ -1,6 +1,6 @@
1
1
  import { EventObject, fromCallback } from 'xstate'
2
2
  import { convertTxIdToImageSrc } from '@/helpers'
3
- import { fs } from '@zenfs/core'
3
+ import fs from '@zenfs/core'
4
4
  import debug from 'debug'
5
5
  import { FromCallbackInput } from '@/types/machines'
6
6
  import { PropertyMachineContext } from '@/types/property'
@@ -1,7 +1,7 @@
1
1
  import { EventObject, fromCallback } from 'xstate'
2
2
  import { FromCallbackInput } from '@/types/machines'
3
3
  import { PropertyMachineContext } from '@/types/property'
4
- import { fs } from '@zenfs/core'
4
+ import fs from '@zenfs/core'
5
5
 
6
6
  export const resolveRemoteStorage = fromCallback<
7
7
  EventObject,
@@ -8,7 +8,7 @@ import {
8
8
  import { createSeed } from '@/db/write/createSeed'
9
9
  import { getDataTypeFromString, getMimeType } from '@/helpers'
10
10
  import { createVersion } from '@/db/write/createVersion'
11
- import { fs } from '@zenfs/core'
11
+ import fs from '@zenfs/core'
12
12
  import { createMetadata } from '@/db/write/createMetadata'
13
13
  import { updateItemPropertyValue } from '@/db/write/updateItemPropertyValue'
14
14
  import { getSchemaUidForSchemaDefinition } from '@/stores/eas'
@@ -232,7 +232,7 @@ export const saveImageSrc = fromCallback<
232
232
  refSeedType: 'image',
233
233
  refSchemaUid: imageSchemaUid,
234
234
  renderValue: refResolvedDisplayValue,
235
- refResolvedDisplayValue: refResolvedDisplayValue,
235
+ refResolvedDisplayValue,
236
236
  refResolvedValue: fileName,
237
237
  localStorageDir: '/images',
238
238
  easDataType: 'bytes32',
@@ -11,7 +11,7 @@ import { getItemData } from '@/db/read/getItemData'
11
11
  import { and, eq } from 'drizzle-orm'
12
12
  import { metadata } from '@/seedSchema'
13
13
  import { createMetadata } from '@/db/write/createMetadata'
14
- import { fs } from '@zenfs/core'
14
+ import fs from '@zenfs/core'
15
15
 
16
16
  export const saveItemStorage = fromCallback<
17
17
  EventObject,
@@ -13,7 +13,7 @@ const sendItemUpdateEvent = ({ modelName, seedLocalId, seedUid }: { modelName: s
13
13
  if (!modelName || (!seedLocalId && !seedUid)) {
14
14
  return
15
15
  }
16
- eventEmitter.emit(`item.${modelName}.${seedUid || seedLocalId}.update`)
16
+ // eventEmitter.emit(`item.${modelName}.${seedUid || seedLocalId}.update`)
17
17
  }
18
18
 
19
19
  type UpdateItemPropertyValueResult = {
@@ -1,6 +1,6 @@
1
1
  import { EventObject, fromCallback } from 'xstate'
2
2
  import { DbServiceContext, FromCallbackInput } from '@/types/machines'
3
- import { fs } from '@zenfs/core'
3
+ import fs from '@zenfs/core'
4
4
  import {
5
5
  DB_VALIDATING_SUCCESS,
6
6
  DB_VALIDATING_WAIT,
@@ -35,8 +35,11 @@ export const validate = fromCallback<
35
35
  return exists
36
36
  }
37
37
 
38
- _validate().then(() => {
39
- sendBack({ type: DB_VALIDATING_SUCCESS, pathToDb, pathToDir })
40
- return
38
+ _validate().then((allFilesExist) => {
39
+ if (allFilesExist) {
40
+ sendBack({ type: DB_VALIDATING_SUCCESS, pathToDb, pathToDir })
41
+ return
42
+ }
43
+ sendBack({ type: DB_VALIDATING_WAIT })
41
44
  })
42
45
  })
@@ -1,23 +1,26 @@
1
1
  import { EventObject, fromCallback } from 'xstate'
2
- import { FromCallbackInput, PropertyMachineContext } from '@/types'
3
2
  import { BaseDb } from '@/db/Db/BaseDb'
3
+ import { FromCallbackInput, ItemMachineContext } from '@/types'
4
+ import debug from 'debug'
5
+
6
+ const logger = debug('app:item:service:actors:waitForDb')
4
7
 
5
8
  export const waitForDb = fromCallback<
6
9
  EventObject,
7
- FromCallbackInput<PropertyMachineContext>
10
+ FromCallbackInput<ItemMachineContext<any>>
8
11
  >(({ sendBack }) => {
9
12
  const _waitForDb = new Promise<void>((resolve) => {
10
13
  const interval = setInterval(() => {
11
14
  const appDb = BaseDb.getAppDb()
12
-
13
15
  if (appDb) {
14
16
  clearInterval(interval)
15
17
  resolve()
16
18
  }
17
- }, 100)
18
- })
19
+ }, 100)
20
+ })
19
21
 
20
- _waitForDb.then(() => {
21
- sendBack({ type: 'waitForDbSuccess' })
22
- })
23
- })
22
+ _waitForDb.then(() => {
23
+ sendBack({ type: 'waitForDbSuccess' })
24
+ })
25
+ },
26
+ )
@@ -1,33 +1,34 @@
1
1
  import { EventObject, fromCallback } from 'xstate'
2
- import { DbServiceContext, FromCallbackInput } from '@/types'
3
- import { DB_WAITING_FOR_FILES_RECEIVED } from '@/services/internal/constants'
2
+ import { FromCallbackInput, InternalMachineContext } from '@/types'
4
3
  import debug from 'debug'
5
4
  import fs from '@zenfs/core'
6
5
 
7
- const logger = debug('app:services:db:actors:waitForFiles')
6
+ const logger = debug('app:services:internal:actors:waitForFiles')
8
7
 
9
8
  export const waitForFiles = fromCallback<
10
9
  EventObject,
11
- FromCallbackInput<DbServiceContext>
10
+ FromCallbackInput<InternalMachineContext>
12
11
  >(({ sendBack, input: { context } }) => {
13
- const { pathToDbDir } = context
12
+ const { endpoints } = context
13
+
14
+ const filesDir = endpoints.files
14
15
 
15
16
  const _waitForFiles = async (): Promise<void> => {
16
17
  return new Promise((resolve) => {
17
18
  const interval = setInterval(async () => {
18
19
  const journalExists = await fs.promises.exists(
19
- `${pathToDbDir}/meta/_journal.json`,
20
+ `${filesDir}/db/meta/_journal.json`,
20
21
  )
21
22
  if (journalExists) {
22
23
  clearInterval(interval)
23
24
  resolve()
24
25
  }
25
- })
26
+ }, 1000)
26
27
  })
27
28
  }
28
29
 
29
30
  _waitForFiles().then(() => {
30
- sendBack({ type: DB_WAITING_FOR_FILES_RECEIVED })
31
+ sendBack({ type: 'filesReceived' })
31
32
  return
32
33
  })
33
34
  })
@@ -1,10 +1,10 @@
1
1
  import { TypedDocumentNode } from '@graphql-typed-document-node/core';
2
- import { Attestation } from '@/graphql/gql/graphql';
2
+ import { Attestation, Schema } from '@/graphql/gql/graphql';
3
3
  export declare const GET_SCHEMAS: TypedDocumentNode<import("@/graphql/gql/graphql").GetSchemasQuery, import("@/graphql/gql/graphql").Exact<{
4
4
  where: import("@/graphql/gql/graphql").SchemaWhereInput;
5
5
  }>>;
6
6
  export declare const GET_SCHEMA_BY_NAME: TypedDocumentNode<{
7
- schema: Attestation;
7
+ schemas: Schema[];
8
8
  }>;
9
9
  export declare const GET_SEEDS: TypedDocumentNode<{
10
10
  itemSeeds: Attestation[];
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/Item/queries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,eAAO,MAAM,WAAW;;GAUtB,CAAA;AAEF,eAAO,MAAM,kBAAkB,EAUzB,iBAAiB,CAAC;IAAE,MAAM,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA;AAEhD,eAAO,MAAM,SAAS,EAkBhB,iBAAiB,CAAC;IAAE,SAAS,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAErD,eAAO,MAAM,YAAY,EAMnB,iBAAiB,CAAC;IAAE,WAAW,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAEvD,eAAO,MAAM,0BAA0B,EAUjC,iBAAiB,CAAC;IAAE,oBAAoB,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAEhE,eAAO,MAAM,YAAY,EASnB,iBAAiB,CAAC;IAAE,YAAY,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAExD,eAAO,MAAM,cAAc,EASrB,iBAAiB,CAAC;IAAE,cAAc,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAE1D,eAAO,MAAM,mCAAmC,EAS1C,iBAAiB,CAAC;IAAE,aAAa,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/Item/queries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAE3D,eAAO,MAAM,WAAW;;GAUtB,CAAA;AAEF,eAAO,MAAM,kBAAkB,EAUzB,iBAAiB,CAAC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAAA;AAE9C,eAAO,MAAM,SAAS,EAkBhB,iBAAiB,CAAC;IAAE,SAAS,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAErD,eAAO,MAAM,YAAY,EAMnB,iBAAiB,CAAC;IAAE,WAAW,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAEvD,eAAO,MAAM,0BAA0B,EAUjC,iBAAiB,CAAC;IAAE,oBAAoB,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAEhE,eAAO,MAAM,YAAY,EASnB,iBAAiB,CAAC;IAAE,YAAY,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAExD,eAAO,MAAM,cAAc,EASrB,iBAAiB,CAAC;IAAE,cAAc,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA;AAE1D,eAAO,MAAM,mCAAmC,EAS1C,iBAAiB,CAAC;IAAE,aAAa,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- import { EventObject } from 'xstate';
2
- export declare const fetchDataFromEas: import("xstate").CallbackActorLogic<EventObject, any, EventObject>;
1
+ export declare const fetchDataFromEas: any;
3
2
  //# sourceMappingURL=fetchDataFromEas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchDataFromEas.d.ts","sourceRoot":"","sources":["../../../../../../src/Item/service/actors/fetchDataFromEas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,QAAQ,CAAA;AASlD,eAAO,MAAM,gBAAgB,oEAoF3B,CAAA"}
1
+ {"version":3,"file":"fetchDataFromEas.d.ts","sourceRoot":"","sources":["../../../../../../src/Item/service/actors/fetchDataFromEas.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB,KAoF3B,CAAA"}
@@ -1,2 +1,4 @@
1
- export declare const waitForDb: any;
1
+ import { EventObject } from 'xstate';
2
+ import { FromCallbackInput, ItemMachineContext } from '@/types';
3
+ export declare const waitForDb: import("xstate").CallbackActorLogic<EventObject, FromCallbackInput<ItemMachineContext<any>>, EventObject>;
2
4
  //# sourceMappingURL=waitForDb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"waitForDb.d.ts","sourceRoot":"","sources":["../../../../../../src/Item/service/actors/waitForDb.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,KAiBrB,CAAA"}
1
+ {"version":3,"file":"waitForDb.d.ts","sourceRoot":"","sources":["../../../../../../src/Item/service/actors/waitForDb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,QAAQ,CAAA;AAElD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAK/D,eAAO,MAAM,SAAS,2GAkBrB,CAAA"}
@@ -34,7 +34,7 @@ export declare abstract class BaseItemProperty<PropertyType> implements IItemPro
34
34
  static find({ propertyName, seedLocalId, seedUid, }: ItemPropertyFindProps): Promise<IItemProperty<any> | undefined>;
35
35
  static cacheKey(seedLocalIdOrUid: string, propertyName: string): string;
36
36
  getService(): import("xstate").ActorRef<import("xstate").MachineSnapshot<any, import("xstate").AnyEventObject, {
37
- [x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("xstate").EventObject>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("@/types").SaveValueToDbEvent>, import("xstate").EventObject>> | undefined;
37
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("xstate").EventObject>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("@/types").SaveValueToDbEvent>, import("xstate").EventObject>> | undefined;
38
38
  }, "initializing" | "idle" | "waitingForDb" | "hydratingFromDb" | "resolvingRelatedValue" | "resolvingRemoteStorage" | {
39
39
  saving: "analyzingInput" | "doneSaving" | "savingImageSrc" | "savingRelation" | "savingItemStorage";
40
40
  }, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject, {
@@ -1 +1 @@
1
- {"version":3,"file":"BaseItemProperty.d.ts","sourceRoot":"","sources":["../../../../src/ItemProperty/BaseItemProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6B,YAAY,EAAW,MAAM,QAAQ,CAAA;AACvF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAE7E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAQ3D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAIpC,KAAK,mBAAmB,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAA;AAG/D,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,8BAAsB,gBAAgB,CAAC,YAAY,CAAE,YAAW,aAAa,CAA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C;IAkB3B,MAAM;CAGP"}
@@ -1 +1 @@
1
- {"version":3,"file":"hydrateFromDb.d.ts","sourceRoot":"","sources":["../../../../../../src/ItemProperty/service/actors/hydrateFromDb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,QAAQ,CAAA;AAOlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAMpD,eAAO,MAAM,aAAa,oGA6PxB,CAAA"}
1
+ {"version":3,"file":"hydrateFromDb.d.ts","sourceRoot":"","sources":["../../../../../../src/ItemProperty/service/actors/hydrateFromDb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,QAAQ,CAAA;AAOlD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAMpD,eAAO,MAAM,aAAa,oGAgQxB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"waitForDb.d.ts","sourceRoot":"","sources":["../../../../../../src/ItemProperty/service/actors/waitForDb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,QAAQ,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAA0B,MAAM,SAAS,CAAA;AAGnE,eAAO,MAAM,SAAS,uFAkBpB,CAAA"}
1
+ {"version":3,"file":"waitForDb.d.ts","sourceRoot":"","sources":["../../../../../../src/ItemProperty/service/actors/waitForDb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,QAAQ,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAA0B,MAAM,SAAS,CAAA;AAMnE,eAAO,MAAM,SAAS,uFAiBpB,CAAA"}
@@ -1,17 +1,17 @@
1
1
  import { PropertyMachineContext } from '@/types';
2
2
  export declare const propertyMachine: import("xstate").StateMachine<any, import("xstate").AnyEventObject, {
3
- [x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("xstate").EventObject>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("@/types").SaveValueToDbEvent>, import("xstate").EventObject>> | undefined;
3
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("xstate").EventObject>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("@/types").SaveValueToDbEvent>, import("xstate").EventObject>> | undefined;
4
4
  }, import("xstate").Values<{
5
- waitForDb: {
6
- src: "waitForDb";
7
- logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any>, import("xstate").EventObject>;
8
- id: string | undefined;
9
- };
10
5
  initialize: {
11
6
  src: "initialize";
12
7
  logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("xstate").EventObject>, import("xstate").EventObject>;
13
8
  id: string | undefined;
14
9
  };
10
+ waitForDb: {
11
+ src: "waitForDb";
12
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any>, import("xstate").EventObject>;
13
+ id: string | undefined;
14
+ };
15
15
  saveRelation: {
16
16
  src: "saveRelation";
17
17
  logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<any, import("@/types").SaveValueToDbEvent>, import("xstate").EventObject>;
@@ -1 +1 @@
1
- {"version":3,"file":"Db.d.ts","sourceRoot":"","sources":["../../../../../src/browser/db/Db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAavC,eAAO,MAAM,MAAM,kFAkElB,CAAA;AAED,cAAM,EAAG,SAAQ,MAAO,YAAW,GAAG;;IAKpC,MAAM,CAAC,QAAQ;IAIf,MAAM,CAAC,YAAY;IAInB,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM;IAoBjC,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;WAyCvC,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAmKvF;AAID,OAAO,EAAE,EAAE,EAAE,CAAA"}
1
+ {"version":3,"file":"Db.d.ts","sourceRoot":"","sources":["../../../../../src/browser/db/Db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAavC,eAAO,MAAM,MAAM,kFAkElB,CAAA;AAED,cAAM,EAAG,SAAQ,MAAO,YAAW,GAAG;;IAKpC,MAAM,CAAC,QAAQ;IAIf,MAAM,CAAC,YAAY;IAInB,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM;IAmBjC,MAAM,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;WAyCvC,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CA6KvF;AAID,OAAO,EAAE,EAAE,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"FileManager.d.ts","sourceRoot":"","sources":["../../../../../src/browser/helpers/FileManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAU,uCAAuC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AqB,GAAI,OAAO,CAAC,IAAI,CAAC;CAIxF;AAID,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -11,7 +11,7 @@ type UseItemPropertyReturn = {
11
11
  value: any;
12
12
  status: string;
13
13
  };
14
- type UseItemProperty = (props: UseItemPropertyProps) => UseItemPropertyReturn;
14
+ type UseItemProperty = (props: UseItemPropertyProps | undefined) => UseItemPropertyReturn;
15
15
  export declare const useItemProperty: UseItemProperty;
16
16
  export declare const useItemProperties: (item?: Item<any>) => {
17
17
  properties: {};
@@ -1 +1 @@
1
- {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../../src/browser/react/property.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAOrC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAI5C,KAAK,oBAAoB,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;IACxC,aAAa,EAAE,OAAO,CAAA;IACtB,KAAK,EAAE,GAAG,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,oBAAoB,KAAK,qBAAqB,CAAA;AAE7E,eAAO,MAAM,eAAe,EAAE,eAsF7B,CAAA;AACD,eAAO,MAAM,iBAAiB,UAAW,IAAI,CAAC,GAAG,CAAC;;CAsCjD,CAAA"}
1
+ {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../../src/browser/react/property.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAOrC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAI5C,KAAK,oBAAoB,GAAG;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;IACxC,aAAa,EAAE,OAAO,CAAA;IACtB,KAAK,EAAE,GAAG,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,oBAAoB,GAAG,SAAS,KAAK,qBAAqB,CAAA;AAEzF,eAAO,MAAM,eAAe,EAAE,eAyF7B,CAAA;AACD,eAAO,MAAM,iBAAiB,UAAW,IAAI,CAAC,GAAG,CAAC;;CAsCjD,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { ModelClassType, SeedConstructorOptions } from '@/types';
2
2
  declare const client: {
3
+ isInitialized: boolean;
3
4
  init: (options: SeedConstructorOptions) => Promise<void>;
4
5
  subscribe: (callback: any) => {
5
6
  unsubscribe: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/client.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAgBhE,QAAA,MAAM,MAAM;oBACY,sBAAsB;0BA4CtB,GAAG;;;qBAYR,MAAM,YAAY,GAAG;;;;0BAqBhB,MAAM;qBAGb,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;yBAG1B,MAAM,EAAE;CAG5B,CAAA;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/client.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAmBhE,QAAA,MAAM,MAAM;;oBAEY,sBAAsB;0BAoDtB,GAAG;;;qBAYR,MAAM,YAAY,GAAG;;;;0BAqBhB,MAAM;qBAGb,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC;yBAG1B,MAAM,EAAE;CAG5B,CAAA;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getItemProperties.d.ts","sourceRoot":"","sources":["../../../../../src/db/read/getItemProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgB,MAAM,SAAS,CAAA;AAMzD,eAAO,MAAM,iBAAiB,EAAE,iBA2D/B,CAAA"}
1
+ {"version":3,"file":"getItemProperties.d.ts","sourceRoot":"","sources":["../../../../../src/db/read/getItemProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgB,MAAM,SAAS,CAAA;AAOzD,eAAO,MAAM,iBAAiB,EAAE,iBAgD/B,CAAA"}