@seedprotocol/sdk 0.1.52 → 0.1.54

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 (46) hide show
  1. package/dist/{index-DMIKRod-.js → index-DQKd-s2Q.js} +600 -452
  2. package/dist/index-DQKd-s2Q.js.map +1 -0
  3. package/dist/{index-wKss7188.js → index-NmD9sjcJ.js} +2 -2
  4. package/dist/index-NmD9sjcJ.js.map +1 -0
  5. package/dist/main.js +1 -1
  6. package/dist/{seed.schema.config-C0M8Rcti.js → seed.schema.config-OyHsE0Zl.js} +2 -2
  7. package/dist/{seed.schema.config-C0M8Rcti.js.map → seed.schema.config-OyHsE0Zl.js.map} +1 -1
  8. package/dist/src/ItemProperty.ts +114 -68
  9. package/dist/src/allItems.ts +4 -2
  10. package/dist/src/createMetadata.ts +36 -0
  11. package/dist/src/getItem.ts +20 -46
  12. package/dist/src/getItemProperty.ts +35 -0
  13. package/dist/src/getItems.ts +11 -18
  14. package/dist/src/getVersionData.ts +36 -48
  15. package/dist/src/hydrateFromDb.ts +11 -15
  16. package/dist/src/propertyMachine.ts +18 -2
  17. package/dist/src/saveValueToDb.ts +183 -69
  18. package/dist/src/syncDbWithEas.ts +1 -1
  19. package/dist/src/versionData.ts +24 -0
  20. package/dist/types/src/browser/db/read/getItem.d.ts.map +1 -1
  21. package/dist/types/src/browser/db/read/getItemProperty.d.ts +6 -0
  22. package/dist/types/src/browser/db/read/getItemProperty.d.ts.map +1 -0
  23. package/dist/types/src/browser/db/read/getItems.d.ts.map +1 -1
  24. package/dist/types/src/browser/db/read/getVersionData.d.ts +5 -14
  25. package/dist/types/src/browser/db/read/getVersionData.d.ts.map +1 -1
  26. package/dist/types/src/browser/db/read/subqueries/versionData.d.ts +70 -0
  27. package/dist/types/src/browser/db/read/subqueries/versionData.d.ts.map +1 -0
  28. package/dist/types/src/browser/db/write/createMetadata.d.ts +6 -0
  29. package/dist/types/src/browser/db/write/createMetadata.d.ts.map +1 -0
  30. package/dist/types/src/browser/events/services/allItems.d.ts.map +1 -1
  31. package/dist/types/src/browser/item/Item.d.ts +1 -7
  32. package/dist/types/src/browser/item/Item.d.ts.map +1 -1
  33. package/dist/types/src/browser/property/ItemProperty.d.ts +12 -5
  34. package/dist/types/src/browser/property/ItemProperty.d.ts.map +1 -1
  35. package/dist/types/src/browser/property/actors/hydrateFromDb.d.ts.map +1 -1
  36. package/dist/types/src/browser/property/actors/saveValueToDb.d.ts +9 -1
  37. package/dist/types/src/browser/property/actors/saveValueToDb.d.ts.map +1 -1
  38. package/dist/types/src/browser/property/index.d.ts +9 -9
  39. package/dist/types/src/browser/property/propertyMachine.d.ts.map +1 -1
  40. package/dist/types/src/types/item.d.ts +17 -0
  41. package/dist/types/src/types/item.d.ts.map +1 -1
  42. package/dist/types/src/types/property.d.ts +9 -0
  43. package/dist/types/src/types/property.d.ts.map +1 -1
  44. package/package.json +1 -1
  45. package/dist/index-DMIKRod-.js.map +0 -1
  46. package/dist/index-wKss7188.js.map +0 -1
@@ -81,19 +81,7 @@ export const hydrateFromDb = fromCallback<EventObject, typeof propertyMachine>(
81
81
  )
82
82
  }
83
83
 
84
- const selectFromStatement = db
85
- .select({
86
- localId: metadata.localId,
87
- uid: metadata.uid,
88
- propertyName: metadata.propertyName,
89
- propertyValue: metadata.propertyValue,
90
- seedLocalId: metadata.seedLocalId,
91
- seedUid: metadata.seedUid,
92
- schemaUid: metadata.schemaUid,
93
- refResolvedValue: metadata.refResolvedValue,
94
- refResolvedDisplayValue: metadata.refResolvedDisplayValue,
95
- })
96
- .from(metadata)
84
+ const selectFromStatement = db.select().from(metadata)
97
85
 
98
86
  if (seedUid && !seedLocalId) {
99
87
  hydrateQuery = selectFromStatement.where(
@@ -139,8 +127,12 @@ export const hydrateFromDb = fromCallback<EventObject, typeof propertyMachine>(
139
127
  seedLocalId: seedLocalIdFromDb,
140
128
  seedUid: seedUidFromDb,
141
129
  schemaUid: schemaUidFromDb,
130
+ versionLocalId: versionLocalIdFromDb,
131
+ versionUid: versionUidFromDb,
132
+ refValueType,
142
133
  refResolvedValue,
143
134
  refResolvedDisplayValue,
135
+ localStorageDir,
144
136
  } = firstRow
145
137
 
146
138
  if (propertyName && !propertyNameFromDb) {
@@ -186,9 +178,13 @@ export const hydrateFromDb = fromCallback<EventObject, typeof propertyMachine>(
186
178
  propertyValue: propertyValueFromDb,
187
179
  seedLocalId: seedLocalIdFromDb,
188
180
  seedUid: seedUidFromDb,
181
+ versionLocalId: versionLocalIdFromDb,
182
+ versionUid: versionUidFromDb,
189
183
  schemaUid: schemaUidFromDb,
190
- resolveValue: refResolvedValue,
191
- resolveDisplayValue: refResolvedDisplayValue,
184
+ refValueType,
185
+ localStorageDir,
186
+ resolvedValue: refResolvedValue,
187
+ resolvedDisplayValue: refResolvedDisplayValue,
192
188
  renderValue: refResolvedDisplayValue,
193
189
  })
194
190
 
@@ -7,12 +7,15 @@ import { initialize } from '@/browser/property/actors/initialize'
7
7
  import { resolveRelatedValue } from '@/browser/property/actors/resolveRelatedValue'
8
8
  import { hydrateFromDb } from '@/browser/property/actors/hydrateFromDb'
9
9
  import { saveValueToDb } from '@/browser/property/actors/saveValueToDb'
10
- import { updateMachineContext } from '@/browser/helpers'
10
+ // import { updateMachineContext } from '@/browser/helpers'
11
11
 
12
12
  export const propertyMachine = setup({
13
13
  types: {
14
14
  context: {} as PropertyMachineContext,
15
15
  },
16
+ // actions: {
17
+ // updateContext: updateMachineContext,
18
+ // },
16
19
  actors: {
17
20
  waitForDb,
18
21
  hydrateFromDb,
@@ -48,7 +51,20 @@ export const propertyMachine = setup({
48
51
  }),
49
52
  target: '.saving',
50
53
  },
51
- updateContext: updateMachineContext,
54
+ updateContext: {
55
+ actions: assign(({ context, event }) => {
56
+ const newContext = Object.assign({}, context)
57
+
58
+ for (let i = 0; i < Object.keys(event).length; i++) {
59
+ const key = Object.keys(event)[i]
60
+ if (key === 'type') {
61
+ continue
62
+ }
63
+ newContext[key] = event[key]
64
+ }
65
+ return newContext
66
+ }),
67
+ },
52
68
  },
53
69
  states: {
54
70
  idle: {},
@@ -1,94 +1,208 @@
1
1
  import { EventObject, fromCallback } from 'xstate'
2
- import { propertyMachine } from '@/browser/property/propertyMachine'
3
2
  import { createSeed, updateItemPropertyValue } from '@/browser/db/write'
4
3
  import { fs } from '@zenfs/core'
5
4
  import { getContentUrlFromPath } from '@/browser/helpers'
6
5
  import { createVersion } from '@/browser/db/write/createVersion'
6
+ import { FromCallbackInput } from '@/types/machines'
7
+ import { PropertyMachineContext } from '@/types/property'
8
+ import { getAppDb } from '@/browser/db/sqlWasmClient'
9
+ import { metadata } from '@/shared/seedSchema'
10
+ import { and, eq } from 'drizzle-orm'
11
+ import { getItemDataFromDb } from '@/browser/db/read/getItem'
12
+ import { getItemPropertyData } from '@/browser/db/read/getItemProperty'
13
+ import { createMetadata } from '@/browser/db/write/createMetadata'
7
14
 
8
- export const saveValueToDb = fromCallback<EventObject, typeof propertyMachine>(
9
- ({ sendBack, input: { context, event } }) => {
10
- const {
11
- localId,
12
- propertyName: propertyNameRaw,
13
- seedLocalId,
14
- propertyValue: existingValue,
15
- propertyRecordSchema,
16
- itemModelName,
17
- schemaUid,
18
- } = context
15
+ type SaveValueToDbEvent = {
16
+ type: 'saveValueToDb'
17
+ newValue: any
18
+ }
19
19
 
20
- let { newValue } = event
20
+ export const saveValueToDb = fromCallback<
21
+ EventObject,
22
+ FromCallbackInput<PropertyMachineContext, SaveValueToDbEvent>
23
+ >(({ sendBack, input: { context, event } }) => {
24
+ const {
25
+ localId,
26
+ propertyName: propertyNameRaw,
27
+ seedLocalId,
28
+ seedUid,
29
+ versionLocalId,
30
+ versionUid,
31
+ propertyValue: existingValue,
32
+ propertyRecordSchema,
33
+ itemModelName,
34
+ schemaUid,
35
+ } = context
21
36
 
22
- if (existingValue === newValue) {
23
- sendBack({ type: 'saveValueToDbSuccess' })
24
- return
25
- }
37
+ let { newValue } = event
38
+
39
+ if (existingValue === newValue) {
40
+ sendBack({ type: 'saveValueToDbSuccess' })
41
+ return
42
+ }
43
+
44
+ const _saveValueToDb = async () => {
45
+ let refResolvedValue
46
+ let refResolvedDisplayValue
47
+ let refSeedType
48
+ let propertyName = propertyNameRaw
49
+ let versionLocalIdToSave = versionLocalId
50
+ let versionUidToSave = versionUid
51
+
52
+ if (propertyRecordSchema && propertyRecordSchema.dataType === 'Relation') {
53
+ refResolvedValue = newValue
54
+
55
+ if (!propertyName.endsWith('Id')) {
56
+ propertyName = `${propertyName}Id`
57
+ }
26
58
 
27
- const _saveValueToDb = async () => {
28
- let refResolvedValue
29
- let refResolvedDisplayValue
30
- let refSeedType
31
- let propertyName = propertyNameRaw
32
- let versionLocalId
33
-
34
- if (
35
- propertyRecordSchema &&
36
- propertyRecordSchema.dataType === 'Relation'
37
- ) {
38
- refResolvedValue = newValue
39
-
40
- if (!propertyName.endsWith('Id')) {
41
- propertyName = `${propertyName}Id`
59
+ let fileType
60
+
61
+ const dirs = await fs.promises.readdir('/files')
62
+
63
+ for (const dir of dirs) {
64
+ const files = await fs.promises.readdir(`/files/${dir}`)
65
+ if (files.includes(newValue)) {
66
+ fileType = dir
67
+ break
42
68
  }
69
+ }
43
70
 
44
- let fileType
71
+ if (fileType === 'images') {
72
+ const filePath = `/files/images/${newValue}`
73
+ refResolvedDisplayValue = await getContentUrlFromPath(filePath)
74
+ refSeedType = 'image'
75
+ newValue = await createSeed({
76
+ type: refSeedType,
77
+ })
78
+ versionLocalIdToSave = await createVersion({
79
+ seedLocalId,
80
+ seedUid,
81
+ seedType: refSeedType,
82
+ })
83
+ }
84
+ }
45
85
 
46
- const dirs = await fs.promises.readdir('/files')
86
+ if (
87
+ propertyRecordSchema &&
88
+ propertyRecordSchema.storageType &&
89
+ propertyRecordSchema.storageType === 'ItemStorage'
90
+ ) {
91
+ // Save value to file
92
+ const appDb = getAppDb()
93
+ let propertyData
47
94
 
48
- for (const dir of dirs) {
49
- const files = await fs.promises.readdir(`/files/${dir}`)
50
- if (files.includes(newValue)) {
51
- fileType = dir
52
- break
95
+ if (localId) {
96
+ propertyData = await getItemPropertyData({
97
+ localId,
98
+ })
99
+ }
100
+
101
+ if (!localId && seedLocalId) {
102
+ const itemData = await getItemDataFromDb({
103
+ seedLocalId,
104
+ })
105
+ if (itemData) {
106
+ const whereClauses = [
107
+ eq(metadata.propertyName, propertyName),
108
+ eq(metadata.seedLocalId, seedLocalId),
109
+ ]
110
+
111
+ if (itemData.latestVersionLocalId) {
112
+ whereClauses.push(
113
+ eq(metadata.versionLocalId, itemData.latestVersionLocalId),
114
+ )
53
115
  }
54
- }
55
116
 
56
- if (fileType === 'images') {
57
- const filePath = `/files/images/${newValue}`
58
- refResolvedDisplayValue = await getContentUrlFromPath(filePath)
59
- refSeedType = 'image'
60
- newValue = await createSeed({
61
- type: refSeedType,
62
- })
63
- versionLocalId = await createVersion({
64
- seedLocalId: newValue,
65
- seedType: refSeedType,
66
- })
117
+ const queryRows = await appDb
118
+ .select()
119
+ .from(metadata)
120
+ .where(and(...whereClauses))
121
+
122
+ if (queryRows && queryRows.length) {
123
+ propertyData = queryRows[0]
124
+ }
125
+
126
+ if (!propertyData) {
127
+ const propertyDataRows = await createMetadata(
128
+ {
129
+ propertyName,
130
+ modelType: itemModelName.toLowerCase(),
131
+ seedLocalId,
132
+ seedUid,
133
+ versionLocalId: itemData.latestVersionLocalId,
134
+ versionUid: itemData.latestVersionUid,
135
+ localStorageDir: propertyRecordSchema.localStorageDir,
136
+ refValueType: 'file',
137
+ },
138
+ propertyRecordSchema,
139
+ )
140
+
141
+ propertyData = propertyDataRows[0]
142
+ }
143
+
144
+ // propertyData = {
145
+ // propertyName,
146
+ // seedLocalId,
147
+ // seedUid,
148
+ // versionLocalId: itemData.latestVersionLocalId,
149
+ // versionUid: itemData.latestVersionUid,
150
+ // schemaUid: itemData.schemaUid,
151
+ // }
67
152
  }
68
153
  }
69
154
 
70
- await updateItemPropertyValue({
71
- propertyLocalId: localId,
72
- propertyName,
73
- newValue,
74
- seedLocalId,
75
- refSeedType,
76
- refResolvedValue,
77
- refResolvedDisplayValue,
78
- versionLocalId,
79
- modelName: itemModelName,
80
- schemaUid,
81
- })
155
+ const localStorageDir =
156
+ propertyRecordSchema.localStorageDir || propertyData.localStorageDir
157
+ const fileName =
158
+ propertyData.refResolvedValue ||
159
+ `${propertyData.localId}${propertyRecordSchema.filenameSuffix}`
160
+
161
+ if (!localStorageDir || !fileName) {
162
+ throw new Error(
163
+ `Missing localStorageDir: ${localStorageDir} or fileName: ${fileName}`,
164
+ )
165
+ }
166
+
167
+ const filePath = `/files/${localStorageDir}/${fileName}`
168
+ await fs.promises.writeFile(filePath, newValue)
169
+
170
+ await appDb
171
+ .update(metadata)
172
+ .set({
173
+ refResolvedValue: fileName,
174
+ })
175
+ .where(eq(metadata.localId, propertyData.localId))
82
176
 
83
177
  sendBack({
84
178
  type: 'updateContext',
85
- propertyValue: newValue,
86
- renderValue: refResolvedDisplayValue,
179
+ renderValue: newValue,
87
180
  })
181
+
182
+ return
88
183
  }
89
184
 
90
- _saveValueToDb().then(() => {
91
- sendBack({ type: 'saveValueToDbSuccess' })
185
+ await updateItemPropertyValue({
186
+ propertyLocalId: localId,
187
+ propertyName,
188
+ newValue,
189
+ seedLocalId,
190
+ refSeedType,
191
+ refResolvedValue,
192
+ refResolvedDisplayValue,
193
+ versionLocalId,
194
+ modelName: itemModelName,
195
+ schemaUid,
196
+ })
197
+
198
+ sendBack({
199
+ type: 'updateContext',
200
+ propertyValue: newValue,
201
+ renderValue: refResolvedDisplayValue,
92
202
  })
93
- },
94
- )
203
+ }
204
+
205
+ _saveValueToDb().then(() => {
206
+ sendBack({ type: 'saveValueToDbSuccess' })
207
+ })
208
+ })
@@ -358,7 +358,7 @@ const createMetadataRecordsForStorageTransactionId = async (
358
358
  versionLocalId,
359
359
  versionUid,
360
360
  refValueType: 'file',
361
- refResolvedValue: `${propertyValue}.${propertyDef.filenameSuffix}`,
361
+ refResolvedValue: `${propertyValue}${propertyDef.filenameSuffix}`,
362
362
  modelType: seedUidToModelType.get(seedUid),
363
363
  createdAt: Date.now(),
364
364
  updatedAt: Date.now(),
@@ -0,0 +1,24 @@
1
+ import { versions } from '@/shared/seedSchema'
2
+ import { count, max } from 'drizzle-orm'
3
+ import { getAppDb } from '@/browser/db/sqlWasmClient'
4
+
5
+ export const getVersionData = () => {
6
+ const appDb = getAppDb()
7
+
8
+ return appDb.$with('versionData').as(
9
+ appDb
10
+ .select({
11
+ seedLocalId: versions.seedLocalId,
12
+ seedUid: versions.seedUid,
13
+ latestVersionUid: versions.uid,
14
+ latestVersionLocalId: versions.localId,
15
+ versionsCount: count(versions.localId).as('versionsCount'),
16
+ lastVersionPublishedAt: max(versions.attestationCreatedAt).as(
17
+ 'lastVersionPublishedAt',
18
+ ),
19
+ lastLocalUpdateAt: max(versions.createdAt).as('lastLocalUpdateAt'),
20
+ })
21
+ .from(versions)
22
+ .groupBy(versions.seedLocalId),
23
+ )
24
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"getItem.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/db/read/getItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAKrC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAgBlC,KAAK,uBAAuB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,KAAK,iBAAiB,GAAG,CACvB,MAAM,EAAE,uBAAuB,KAC5B,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAA;AAElC,eAAO,MAAM,iBAAiB,EAAE,iBAwH/B,CAAA;AAED,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,KAAK,OAAO,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,CAAA;AAExE,eAAO,MAAM,OAAO,EAAE,OA2BrB,CAAA"}
1
+ {"version":3,"file":"getItem.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/db/read/getItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAKrC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAQlC,KAAK,uBAAuB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,KAAK,iBAAiB,GAAG,CACvB,MAAM,EAAE,uBAAuB,KAC5B,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAAA;AAElC,eAAO,MAAM,iBAAiB,EAAE,iBA2G/B,CAAA;AAED,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,KAAK,OAAO,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,CAAA;AAExE,eAAO,MAAM,OAAO,EAAE,OAsBrB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { MetadataType } from '@/shared/seedSchema';
2
+ type GetItemPropertyProps = Partial<MetadataType>;
3
+ type GetItemPropertyData = (props: GetItemPropertyProps) => Promise<Partial<MetadataType>>;
4
+ export declare const getItemPropertyData: GetItemPropertyData;
5
+ export {};
6
+ //# sourceMappingURL=getItemProperty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getItemProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/db/read/getItemProperty.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAG5D,KAAK,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;AAEjD,KAAK,mBAAmB,GAAG,CACzB,KAAK,EAAE,oBAAoB,KACxB,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA;AAEnC,eAAO,MAAM,mBAAmB,EAAE,mBAwBjC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getItems.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/db/read/getItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAgBlC,KAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;AAErE,eAAO,MAAM,YAAY,EAAE,YAmD1B,CAAA"}
1
+ {"version":3,"file":"getItems.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/db/read/getItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAMlC,KAAK,iBAAiB,GAAG;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,iBAAiB,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;AAErE,eAAO,MAAM,YAAY,EAAE,YAsD1B,CAAA"}
@@ -1,19 +1,10 @@
1
- type VersionData = {
2
- localId: string;
3
- uid: string;
4
- seedLocalId: string;
5
- seedUid: string;
6
- seedType: string;
7
- note: string;
8
- attestationCreatedAt: string;
9
- attestationRaw: string;
10
- createdAt: string;
11
- updatedAt: string;
12
- };
1
+ import { VersionsType } from '@/shared/seedSchema';
13
2
  type GetVersionDataProps = {
14
- seedLocalId: string;
3
+ localId?: string;
4
+ uid?: string;
5
+ seedLocalId?: string;
15
6
  };
16
- type GetVersionData = (props: GetVersionDataProps) => Promise<VersionData | undefined>;
7
+ type GetVersionData = (props: GetVersionDataProps) => Promise<VersionsType | undefined>;
17
8
  export declare const getVersionData: GetVersionData;
18
9
  export {};
19
10
  //# sourceMappingURL=getVersionData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getVersionData.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/db/read/getVersionData.ts"],"names":[],"mappings":"AAEA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,oBAAoB,EAAE,MAAM,CAAA;IAC5B,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,KAAK,mBAAmB,GAAG;IACzB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,KAAK,cAAc,GAAG,CACpB,KAAK,EAAE,mBAAmB,KACvB,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAA;AAErC,eAAO,MAAM,cAAc,EAAE,cAkC5B,CAAA"}
1
+ {"version":3,"file":"getVersionData.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/db/read/getVersionData.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAG5D,KAAK,mBAAmB,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,KAAK,cAAc,GAAG,CACpB,KAAK,EAAE,mBAAmB,KACvB,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAA;AAEtC,eAAO,MAAM,cAAc,EAAE,cA+B5B,CAAA"}
@@ -0,0 +1,70 @@
1
+ export declare const getVersionData: () => import("drizzle-orm/sqlite-core").WithSubqueryWithSelection<{
2
+ seedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3
+ name: "seed_local_id";
4
+ tableName: "versions";
5
+ dataType: "string";
6
+ columnType: "SQLiteText";
7
+ data: string;
8
+ driverParam: string;
9
+ notNull: false;
10
+ hasDefault: false;
11
+ isPrimaryKey: false;
12
+ isAutoincrement: false;
13
+ hasRuntimeDefault: false;
14
+ enumValues: [string, ...string[]];
15
+ baseColumn: never;
16
+ generated: undefined;
17
+ }, object>;
18
+ seedUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
19
+ name: "seed_uid";
20
+ tableName: "versions";
21
+ dataType: "string";
22
+ columnType: "SQLiteText";
23
+ data: string;
24
+ driverParam: string;
25
+ notNull: false;
26
+ hasDefault: false;
27
+ isPrimaryKey: false;
28
+ isAutoincrement: false;
29
+ hasRuntimeDefault: false;
30
+ enumValues: [string, ...string[]];
31
+ baseColumn: never;
32
+ generated: undefined;
33
+ }, object>;
34
+ latestVersionUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
35
+ name: "uid";
36
+ tableName: "versions";
37
+ dataType: "string";
38
+ columnType: "SQLiteText";
39
+ data: string;
40
+ driverParam: string;
41
+ notNull: false;
42
+ hasDefault: false;
43
+ isPrimaryKey: false;
44
+ isAutoincrement: false;
45
+ hasRuntimeDefault: false;
46
+ enumValues: [string, ...string[]];
47
+ baseColumn: never;
48
+ generated: undefined;
49
+ }, object>;
50
+ latestVersionLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
51
+ name: "local_id";
52
+ tableName: "versions";
53
+ dataType: "string";
54
+ columnType: "SQLiteText";
55
+ data: string;
56
+ driverParam: string;
57
+ notNull: false;
58
+ hasDefault: false;
59
+ isPrimaryKey: false;
60
+ isAutoincrement: false;
61
+ hasRuntimeDefault: false;
62
+ enumValues: [string, ...string[]];
63
+ baseColumn: never;
64
+ generated: undefined;
65
+ }, object>;
66
+ versionsCount: import("drizzle-orm").SQL.Aliased<number>;
67
+ lastVersionPublishedAt: import("drizzle-orm").SQL.Aliased<number | null>;
68
+ lastLocalUpdateAt: import("drizzle-orm").SQL.Aliased<number | null>;
69
+ }, "versionData">;
70
+ //# sourceMappingURL=versionData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versionData.d.ts","sourceRoot":"","sources":["../../../../../../../src/browser/db/read/subqueries/versionData.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB1B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { MetadataType } from '@/shared/seedSchema';
2
+ import { PropertyType } from '@/types';
3
+ type CreateMetadata = (metadataValues: Partial<MetadataType>, propertyRecordSchema?: PropertyType | undefined) => Promise<MetadataType>;
4
+ export declare const createMetadata: CreateMetadata;
5
+ export {};
6
+ //# sourceMappingURL=createMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createMetadata.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/db/write/createMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAG5D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,KAAK,cAAc,GAAG,CACpB,cAAc,EAAE,OAAO,CAAC,YAAY,CAAC,EACrC,oBAAoB,CAAC,EAAE,YAAY,GAAG,SAAS,KAC5C,OAAO,CAAC,YAAY,CAAC,CAAA;AAE1B,eAAO,MAAM,cAAc,EAAE,cAyB5B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"allItems.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/events/services/allItems.ts"],"names":[],"mappings":"AAGA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAiB,gBAAgB,kBAe/D,CAAA"}
1
+ {"version":3,"file":"allItems.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/events/services/allItems.ts"],"names":[],"mappings":"AAGA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAiB,gBAAgB,kBAiB/D,CAAA"}
@@ -1,14 +1,9 @@
1
- import { ItemData, ModelSchema, ModelValues, NewItemProps, PropertyData } from '@/types';
1
+ import { ItemData, ItemFindProps, ModelSchema, ModelValues, NewItemProps, PropertyData } from '@/types';
2
2
  import { ActorRefFrom, Subscription } from 'xstate';
3
3
  import { ItemProperty } from '@/browser/property/ItemProperty';
4
4
  import { itemMachineSingle } from './single/itemMachineSingle';
5
5
  import { immerable } from 'immer';
6
6
  import { VersionsType } from '@/shared/seedSchema/VersionSchema';
7
- type ItemFindProps = {
8
- modelName?: string;
9
- seedLocalId?: string;
10
- seedUid?: string;
11
- };
12
7
  export declare class Item<T extends ModelValues<ModelSchema>> {
13
8
  private static instanceCache;
14
9
  private readonly _service;
@@ -34,5 +29,4 @@ export declare class Item<T extends ModelValues<ModelSchema>> {
34
29
  get properties(): Record<string, ItemProperty<any>>;
35
30
  unload(): void;
36
31
  }
37
- export {};
38
32
  //# sourceMappingURL=Item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../../src/browser/item/Item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACb,MAAM,SAAS,CAAA;AAChB,OAAO,EAA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';
1
+ import { CreatePropertyInstanceProps, PropertyMachineContext } from '@/types';
2
2
  import { Subscriber } from 'rxjs';
3
3
  import { immerable } from 'immer';
4
4
  import { Static } from '@sinclair/typebox';
@@ -21,9 +21,9 @@ export declare class ItemProperty<PropertyType> {
21
21
  private _schemaUid;
22
22
  private _updateResponseEvent;
23
23
  [immerable]: boolean;
24
- constructor({ propertyValue, seedUid, seedLocalId, itemModelName, propertyName, storageTransactionId, schemaUid, }: ItemPropertyProps);
24
+ constructor({ propertyValue, seedUid, seedLocalId, versionLocalId, versionUid, itemModelName, propertyName, storageTransactionId, schemaUid, }: Partial<CreatePropertyInstanceProps>);
25
25
  private _updateResponseListener;
26
- static create(props: ItemPropertyProps): ItemProperty<any> | undefined;
26
+ static create(props: Partial<CreatePropertyInstanceProps>): ItemProperty<any> | undefined;
27
27
  static find({ propertyName, seedLocalId, seedUid, }: ItemPropertyFindProps): Promise<ItemProperty<any> | undefined>;
28
28
  static cacheKey(seedLocalIdOrUid: string, propertyName: string): string;
29
29
  getService(): import("xstate").ActorRef<import("xstate").MachineSnapshot<PropertyMachineContext, import("xstate").AnyEventObject, {
@@ -81,7 +81,10 @@ export declare class ItemProperty<PropertyType> {
81
81
  logic: any;
82
82
  id: string | undefined;
83
83
  };
84
- }>, never, never, never, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>>, import("xstate").EventObject>> | undefined;
84
+ }>, never, never, never, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>>, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<PropertyMachineContext, {
85
+ type: "saveValueToDb";
86
+ newValue: any;
87
+ }>, import("xstate").EventObject>> | undefined;
85
88
  }, {}, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject, import("xstate").MachineConfig<PropertyMachineContext, import("xstate").AnyEventObject, import("xstate").Values<{
86
89
  waitForDb: {
87
90
  src: "waitForDb";
@@ -164,10 +167,14 @@ export declare class ItemProperty<PropertyType> {
164
167
  };
165
168
  saveValueToDb: {
166
169
  src: "saveValueToDb";
167
- logic: any;
170
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("@/types").FromCallbackInput<PropertyMachineContext, {
171
+ type: "saveValueToDb";
172
+ newValue: any;
173
+ }>, import("xstate").EventObject>;
168
174
  id: string | undefined;
169
175
  };
170
176
  }>, never, never, never, string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>>, import("xstate").AnyEventObject, import("xstate").EventObject>;
177
+ private _getSnapshot;
171
178
  get localId(): string;
172
179
  get uid(): string;
173
180
  get seedLocalId(): string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ItemProperty.d.ts","sourceRoot":"","sources":["../../../../../src/browser/property/ItemProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAEnE,OAAO,EAAmB,UAAU,EAAE,MAAM,MAAM,CAAA;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAI9C,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;AAID,qBAAa,YAAY,CAAC,YAAY;IACpC,OAAO,CAAC,MAAM,CAAC,aAAa,CAGf;IACb,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsC;IAC/D,OAAO,CAAC,QAAQ,CAAsB;IACtC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IAC7C,OAAO,CAAC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FromDb.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa,KAkPzB,CAAA"}
1
+ {"version":3,"file":"hydrateFromDb.d.ts","sourceRoot":"","sources":["../../../../../../src/browser/property/actors/hydrateFromDb.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa,KA8OzB,CAAA"}