@seedprotocol/sdk 0.6.6 → 0.6.7
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.
- package/dist/{BasePathResolver-BGxb4Qod.js → BasePathResolver-qV0apdVY.js} +124 -2
- package/dist/BasePathResolver-qV0apdVY.js.map +1 -0
- package/dist/{index-CJNKYI37.js → ClientManager-Y5EWQuJj.js} +1525 -5495
- package/dist/ClientManager-Y5EWQuJj.js.map +1 -0
- package/dist/{ModelProperty-Bvg9cJcd.js → ModelProperty-DuB5nk6A.js} +33 -30
- package/dist/ModelProperty-DuB5nk6A.js.map +1 -0
- package/dist/{Schema-BNJBY80k.js → Schema-BYM-GNdE.js} +40 -39
- package/dist/{Schema-BNJBY80k.js.map → Schema-BYM-GNdE.js.map} +1 -1
- package/dist/{SchemaValidationService-aqXkwXTr.js → SchemaValidationService-Dr6nmwPm.js} +12 -9
- package/dist/{SchemaValidationService-aqXkwXTr.js.map → SchemaValidationService-Dr6nmwPm.js.map} +1 -1
- package/dist/{backfillMetadataPropertyIds-DYkvoOMz.js → backfillMetadataPropertyIds-BzbAB-C5.js} +4 -3
- package/dist/{backfillMetadataPropertyIds-DYkvoOMz.js.map → backfillMetadataPropertyIds-BzbAB-C5.js.map} +1 -1
- package/dist/cjs/{ModelProperty-alntkSnH.js → ModelProperty-CDTOx5zi.js} +21 -20
- package/dist/cjs/{ModelProperty-alntkSnH.js.map → ModelProperty-CDTOx5zi.js.map} +1 -1
- package/dist/cjs/{Schema-ByFv6fcb.js → Schema-XXcwj3hV.js} +24 -23
- package/dist/cjs/{Schema-ByFv6fcb.js.map → Schema-XXcwj3hV.js.map} +1 -1
- package/dist/cjs/{SchemaValidationService-D55MWsxv.js → SchemaValidationService-Z7OhtGn5.js} +6 -5
- package/dist/cjs/{SchemaValidationService-D55MWsxv.js.map → SchemaValidationService-Z7OhtGn5.js.map} +1 -1
- package/dist/cjs/{backfillMetadataPropertyIds-DrrL5RqD.js → backfillMetadataPropertyIds-Bt4fzfIV.js} +6 -5
- package/dist/cjs/{backfillMetadataPropertyIds-DrrL5RqD.js.map → backfillMetadataPropertyIds-Bt4fzfIV.js.map} +1 -1
- package/dist/cjs/{eas-D2E3_i_c.js → eas-DdI-4vwl.js} +31 -6
- package/dist/cjs/eas-DdI-4vwl.js.map +1 -0
- package/dist/cjs/{getItem-B2zLVB_l.js → getItem-B_2GeTQf.js} +5 -4
- package/dist/cjs/{getItem-B2zLVB_l.js.map → getItem-B_2GeTQf.js.map} +1 -1
- package/dist/cjs/{getPublishPayload-Bv94k4ak.js → getPublishPayload-Jmgi1RUj.js} +13 -12
- package/dist/cjs/getPublishPayload-Jmgi1RUj.js.map +1 -0
- package/dist/cjs/{getPublishUploads-CSbHUxYk.js → getPublishUploads-DNULcrN5.js} +8 -7
- package/dist/cjs/{getPublishUploads-CSbHUxYk.js.map → getPublishUploads-DNULcrN5.js.map} +1 -1
- package/dist/cjs/{getSegmentedItemProperties-CMhXKQHz.js → getSegmentedItemProperties-DK82kjri.js} +3 -3
- package/dist/cjs/{getSegmentedItemProperties-CMhXKQHz.js.map → getSegmentedItemProperties-DK82kjri.js.map} +1 -1
- package/dist/cjs/{index-D-9WglxG.js → index-DM1WR83P.js} +5152 -4967
- package/dist/cjs/index-DM1WR83P.js.map +1 -0
- package/dist/cjs/{index-pSLjO-ch.js → index-tpO1Nj4v.js} +7 -6
- package/dist/cjs/index-tpO1Nj4v.js.map +1 -0
- package/dist/cjs/{property-gUK2PijH.js → property-DmvgA8FD.js} +8 -7
- package/dist/cjs/{property-gUK2PijH.js.map → property-DmvgA8FD.js.map} +1 -1
- package/dist/cjs/{syncDbWithEas-CYtl7VTD.js → syncDbWithEas-3hOoPdu1.js} +9 -8
- package/dist/cjs/{syncDbWithEas-CYtl7VTD.js.map → syncDbWithEas-3hOoPdu1.js.map} +1 -1
- package/dist/{configurePlatform-bGvKBBQy.js → configurePlatform-CCYQruij.js} +6 -3
- package/dist/{configurePlatform-bGvKBBQy.js.map → configurePlatform-CCYQruij.js.map} +1 -1
- package/dist/constants-DSqHBPNe.js +1347 -0
- package/dist/constants-DSqHBPNe.js.map +1 -0
- package/dist/{db-YiH_kIpE.js → db-CceyWksv.js} +29 -35
- package/dist/{db-YiH_kIpE.js.map → db-CceyWksv.js.map} +1 -1
- package/dist/{eas-1nUCcmeh.js → eas-CH8iFIST.js} +9 -6
- package/dist/eas-CH8iFIST.js.map +1 -0
- package/dist/generateId-BopUwD8F.js +9 -0
- package/dist/generateId-BopUwD8F.js.map +1 -0
- package/dist/{getItem-Bb8bTYzY.js → getItem-C7Mtfz6O.js} +11 -9
- package/dist/{getItem-Bb8bTYzY.js.map → getItem-C7Mtfz6O.js.map} +1 -1
- package/dist/{getPublishPayload-BHw8mPSb.js → getPublishPayload-2gnnDdMh.js} +23 -20
- package/dist/getPublishPayload-2gnnDdMh.js.map +1 -0
- package/dist/{getPublishUploads-BYhckxFl.js → getPublishUploads-AKISt3JA.js} +14 -11
- package/dist/{getPublishUploads-BYhckxFl.js.map → getPublishUploads-AKISt3JA.js.map} +1 -1
- package/dist/{getSegmentedItemProperties-B73nMPBv.js → getSegmentedItemProperties-eIjvhCP_.js} +5 -5
- package/dist/{getSegmentedItemProperties-B73nMPBv.js.map → getSegmentedItemProperties-eIjvhCP_.js.map} +1 -1
- package/dist/index-BFpbtEsg.js +3492 -0
- package/dist/index-BFpbtEsg.js.map +1 -0
- package/dist/{index-DzgMt8ba.js → index-CHi212ST.js} +15 -12
- package/dist/index-CHi212ST.js.map +1 -0
- package/dist/{index-C_5xwOPQ.js → index-CsmiM0RI.js} +2 -2
- package/dist/index-CsmiM0RI.js.map +1 -0
- package/dist/{index.node-ZLiBj9Cu.js → index.node-CbWB4MDz.js} +4 -5
- package/dist/{index.node-ZLiBj9Cu.js.map → index.node-CbWB4MDz.js.map} +1 -1
- package/dist/main.cjs +5 -4
- package/dist/main.cjs.map +1 -1
- package/dist/main.js +33 -31
- package/dist/main.js.map +1 -1
- package/dist/model-DGMe-TTm.js +25 -0
- package/dist/model-DGMe-TTm.js.map +1 -0
- package/dist/node.js +19 -16
- package/dist/node.js.map +1 -1
- package/dist/platform.browser.js +60 -23
- package/dist/platform.browser.js.map +1 -1
- package/dist/platform.node.js +4 -5
- package/dist/platform.node.js.map +1 -1
- package/dist/{property-Dcb50seV.js → property-CWKcZ5YZ.js} +18 -16
- package/dist/property-CWKcZ5YZ.js.map +1 -0
- package/dist/src/Item/Item.d.ts.map +1 -1
- package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
- package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts.map +1 -1
- package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts.map +1 -1
- package/dist/src/Model/service/actors/loadOrCreateModel.d.ts.map +1 -1
- package/dist/src/browser/db/Db.d.ts.map +1 -1
- package/dist/src/browser/db/embeddedMigrations.d.ts +17 -0
- package/dist/src/browser/db/embeddedMigrations.d.ts.map +1 -0
- package/dist/src/client/ClientManager.d.ts +18 -3
- package/dist/src/client/ClientManager.d.ts.map +1 -1
- package/dist/src/client/clientManagerMachine.d.ts +6 -1
- package/dist/src/client/clientManagerMachine.d.ts.map +1 -1
- package/dist/src/eas.d.ts +2 -2
- package/dist/src/eas.d.ts.map +1 -1
- package/dist/src/helpers/ArweaveClient/selectReadGateway.d.ts +1 -1
- package/dist/src/helpers/ArweaveClient/selectReadGateway.d.ts.map +1 -1
- package/dist/src/helpers/constants.d.ts +1 -2
- package/dist/src/helpers/constants.d.ts.map +1 -1
- package/dist/src/helpers/crypto.d.ts +3 -2
- package/dist/src/helpers/crypto.d.ts.map +1 -1
- package/dist/src/helpers/ensureImageLocal.d.ts +24 -0
- package/dist/src/helpers/ensureImageLocal.d.ts.map +1 -0
- package/dist/src/helpers/ethereumUtils.d.ts.map +1 -1
- package/dist/src/helpers/index.d.ts +10 -2
- package/dist/src/helpers/index.d.ts.map +1 -1
- package/dist/src/imports/json.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/{syncDbWithEas-B0RUeDuj.js → syncDbWithEas-5kZneTEL.js} +19 -17
- package/dist/syncDbWithEas-5kZneTEL.js.map +1 -0
- package/dist/{updateSeedRevokedAt-D5ZbBehZ.js → updateSeedRevokedAt-CgfOBtqJ.js} +2 -2
- package/dist/{updateSeedRevokedAt-D5ZbBehZ.js.map → updateSeedRevokedAt-CgfOBtqJ.js.map} +1 -1
- package/package.json +6 -6
- package/dist/BasePathResolver-BGxb4Qod.js.map +0 -1
- package/dist/ModelProperty-Bvg9cJcd.js.map +0 -1
- package/dist/cjs/eas-D2E3_i_c.js.map +0 -1
- package/dist/cjs/getPublishPayload-Bv94k4ak.js.map +0 -1
- package/dist/cjs/index-D-9WglxG.js.map +0 -1
- package/dist/cjs/index-pSLjO-ch.js.map +0 -1
- package/dist/constants-Bre6dTJR.js +0 -122
- package/dist/constants-Bre6dTJR.js.map +0 -1
- package/dist/constants-CTs2RUrM.js +0 -657
- package/dist/constants-CTs2RUrM.js.map +0 -1
- package/dist/eas-1nUCcmeh.js.map +0 -1
- package/dist/getPublishPayload-BHw8mPSb.js.map +0 -1
- package/dist/index-CJNKYI37.js.map +0 -1
- package/dist/index-C_5xwOPQ.js.map +0 -1
- package/dist/index-DzgMt8ba.js.map +0 -1
- package/dist/property-Dcb50seV.js.map +0 -1
- package/dist/syncDbWithEas-B0RUeDuj.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var xstate = require('xstate');
|
|
4
|
-
var main_cjs = require('./index-
|
|
4
|
+
var main_cjs = require('./index-DM1WR83P.js');
|
|
5
5
|
var drizzleOrm = require('drizzle-orm');
|
|
6
6
|
var debug = require('debug');
|
|
7
|
-
var SchemaValidationService = require('./SchemaValidationService-
|
|
7
|
+
var SchemaValidationService = require('./SchemaValidationService-Z7OhtGn5.js');
|
|
8
8
|
require('pluralize');
|
|
9
9
|
require('immer');
|
|
10
10
|
require('reflect-metadata');
|
|
@@ -12,13 +12,14 @@ require('drizzle-orm/sqlite-core');
|
|
|
12
12
|
require('@seedprotocol/arweave');
|
|
13
13
|
require('@seedprotocol/eas');
|
|
14
14
|
require('@sinclair/typebox');
|
|
15
|
+
require('drizzle-orm/casing');
|
|
16
|
+
require('lodash-es');
|
|
15
17
|
require('nanoid');
|
|
16
18
|
require('nanoid-dictionary');
|
|
17
19
|
require('@seedprotocol/query');
|
|
18
|
-
require('drizzle-orm/casing');
|
|
19
|
-
require('lodash-es');
|
|
20
20
|
require('rxjs');
|
|
21
|
-
require('
|
|
21
|
+
require('@noble/hashes/sha3');
|
|
22
|
+
require('@noble/hashes/utils');
|
|
22
23
|
require('fs/promises');
|
|
23
24
|
require('fs');
|
|
24
25
|
require('path');
|
|
@@ -74,7 +75,7 @@ const createModelInstances$2 = async (modelIds) => {
|
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
77
|
try {
|
|
77
|
-
const modelMod = await Promise.resolve().then(function () { return require('./index-
|
|
78
|
+
const modelMod = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.Model$1; });
|
|
78
79
|
const { Model } = modelMod;
|
|
79
80
|
// Create instances for all model IDs in parallel
|
|
80
81
|
// Model.createById() will check cache first, then query DB and create if needed
|
|
@@ -187,7 +188,7 @@ const loadOrCreateSchema = xstate.fromCallback(({ sendBack, input: { context } }
|
|
|
187
188
|
// For Seed Protocol, always load from internal file, never create new
|
|
188
189
|
logger$d(`Loading internal Seed Protocol schema from SDK`);
|
|
189
190
|
try {
|
|
190
|
-
const internalSchema = await Promise.resolve().then(function () { return require('./index-
|
|
191
|
+
const internalSchema = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.SEEDPROTOCOL_Seed_Protocol_v1; });
|
|
191
192
|
const schemaFile = internalSchema.default;
|
|
192
193
|
// Check if it exists in database, if not, add it
|
|
193
194
|
const db = main_cjs.BaseDb.getAppDb();
|
|
@@ -680,7 +681,7 @@ const loadOrCreateSchema = xstate.fromCallback(({ sendBack, input: { context } }
|
|
|
680
681
|
// Ensure models are populated (fallback for seed-protocol if missing)
|
|
681
682
|
if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
|
|
682
683
|
try {
|
|
683
|
-
const internalSchema = await Promise.resolve().then(function () { return require('./index-
|
|
684
|
+
const internalSchema = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.SEEDPROTOCOL_Seed_Protocol_v1; });
|
|
684
685
|
const internalSchemaFile = internalSchema.default;
|
|
685
686
|
mergedModels = { ...(internalSchemaFile.models || {}) };
|
|
686
687
|
logger$d(`Populated models for seed-protocol schema from internal file`);
|
|
@@ -907,7 +908,7 @@ const loadOrCreateSchema = xstate.fromCallback(({ sendBack, input: { context } }
|
|
|
907
908
|
// Ensure models are populated (fallback for seed-protocol if missing)
|
|
908
909
|
if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
|
|
909
910
|
try {
|
|
910
|
-
const internalSchema = await Promise.resolve().then(function () { return require('./index-
|
|
911
|
+
const internalSchema = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.SEEDPROTOCOL_Seed_Protocol_v1; });
|
|
911
912
|
const internalSchemaFile = internalSchema.default;
|
|
912
913
|
mergedModels = { ...(internalSchemaFile.models || {}) };
|
|
913
914
|
logger$d(`Populated models for seed-protocol schema from internal file`);
|
|
@@ -996,7 +997,7 @@ const loadOrCreateSchema = xstate.fromCallback(({ sendBack, input: { context } }
|
|
|
996
997
|
// Ensure models are populated (fallback for seed-protocol if missing)
|
|
997
998
|
if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
|
|
998
999
|
try {
|
|
999
|
-
const internalSchema = await Promise.resolve().then(function () { return require('./index-
|
|
1000
|
+
const internalSchema = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.SEEDPROTOCOL_Seed_Protocol_v1; });
|
|
1000
1001
|
const internalSchemaFile = internalSchema.default;
|
|
1001
1002
|
mergedModels = { ...(internalSchemaFile.models || {}) };
|
|
1002
1003
|
logger$d(`Populated models for seed-protocol schema from internal file`);
|
|
@@ -1082,7 +1083,7 @@ const loadOrCreateSchema = xstate.fromCallback(({ sendBack, input: { context } }
|
|
|
1082
1083
|
// If schemaData is missing, try to load from internal schema file for seed-protocol
|
|
1083
1084
|
if (!dbSchema.schemaData && schemaName === 'Seed Protocol') {
|
|
1084
1085
|
try {
|
|
1085
|
-
const internalSchema = await Promise.resolve().then(function () { return require('./index-
|
|
1086
|
+
const internalSchema = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.SEEDPROTOCOL_Seed_Protocol_v1; });
|
|
1086
1087
|
const schemaFile = internalSchema.default;
|
|
1087
1088
|
logger$d(`Found seed-protocol schema in internal file (schemaData missing, using internal schema)`);
|
|
1088
1089
|
// Update database with schemaData for future loads
|
|
@@ -1191,7 +1192,7 @@ const loadOrCreateSchema = xstate.fromCallback(({ sendBack, input: { context } }
|
|
|
1191
1192
|
// Ensure models are populated (fallback for seed-protocol if missing)
|
|
1192
1193
|
if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
|
|
1193
1194
|
try {
|
|
1194
|
-
const internalSchema = await Promise.resolve().then(function () { return require('./index-
|
|
1195
|
+
const internalSchema = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.SEEDPROTOCOL_Seed_Protocol_v1; });
|
|
1195
1196
|
const internalSchemaFile = internalSchema.default;
|
|
1196
1197
|
mergedModels = { ...(internalSchemaFile.models || {}) };
|
|
1197
1198
|
logger$d(`Populated models for seed-protocol schema from internal file`);
|
|
@@ -2092,7 +2093,7 @@ const createModelInstances$1 = async (modelIds) => {
|
|
|
2092
2093
|
return;
|
|
2093
2094
|
}
|
|
2094
2095
|
try {
|
|
2095
|
-
const mod = await Promise.resolve().then(function () { return require('./index-
|
|
2096
|
+
const mod = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.Model$1; });
|
|
2096
2097
|
const Model = mod?.Model ?? mod?.default;
|
|
2097
2098
|
if (!Model) {
|
|
2098
2099
|
logger$c('Model not available from dynamic import');
|
|
@@ -2137,7 +2138,7 @@ const checkExistingSchema = xstate.fromCallback(({ sendBack, input: { context }
|
|
|
2137
2138
|
if (isInternal && schemaName === main_cjs.SEED_PROTOCOL_SCHEMA_NAME) {
|
|
2138
2139
|
// For Seed Protocol, check if it exists in database
|
|
2139
2140
|
try {
|
|
2140
|
-
const internalSchema = await Promise.resolve().then(function () { return require('./index-
|
|
2141
|
+
const internalSchema = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.SEEDPROTOCOL_Seed_Protocol_v1; });
|
|
2141
2142
|
const schemaFile = internalSchema.default;
|
|
2142
2143
|
if (db && schemaFile.id) {
|
|
2143
2144
|
const existing = await db
|
|
@@ -2495,7 +2496,7 @@ const writeSchemaToDb = xstate.fromCallback(({ sendBack, input }) => {
|
|
|
2495
2496
|
if (isInternal && schemaName === main_cjs.SEED_PROTOCOL_SCHEMA_NAME) {
|
|
2496
2497
|
// For Seed Protocol, load from internal file
|
|
2497
2498
|
logger$b(`Loading internal Seed Protocol schema from SDK`);
|
|
2498
|
-
const internalSchema = await Promise.resolve().then(function () { return require('./index-
|
|
2499
|
+
const internalSchema = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.SEEDPROTOCOL_Seed_Protocol_v1; });
|
|
2499
2500
|
finalSchema = internalSchema.default;
|
|
2500
2501
|
const db = main_cjs.BaseDb.getAppDb();
|
|
2501
2502
|
if (db && finalSchema.id) {
|
|
@@ -2963,7 +2964,7 @@ const createModelInstances = xstate.fromCallback(({ sendBack, input }) => {
|
|
|
2963
2964
|
return;
|
|
2964
2965
|
}
|
|
2965
2966
|
try {
|
|
2966
|
-
const modelMod = await Promise.resolve().then(function () { return require('./index-
|
|
2967
|
+
const modelMod = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.Model$1; });
|
|
2967
2968
|
const { Model } = modelMod;
|
|
2968
2969
|
// Create instances for all model IDs in parallel
|
|
2969
2970
|
// Model.createById() will check cache first, then query DB and create if needed
|
|
@@ -3049,7 +3050,7 @@ const verifyModelInstancesInCache = xstate.fromCallback(({ sendBack, input }) =>
|
|
|
3049
3050
|
}
|
|
3050
3051
|
try {
|
|
3051
3052
|
const result = await verifyWithRetry$2(async () => {
|
|
3052
|
-
const modelMod = await Promise.resolve().then(function () { return require('./index-
|
|
3053
|
+
const modelMod = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.Model$1; });
|
|
3053
3054
|
const { Model } = modelMod;
|
|
3054
3055
|
// Check each model ID in the cache
|
|
3055
3056
|
const verifiedInstances = [];
|
|
@@ -3106,7 +3107,7 @@ const writePropertiesToDb = xstate.fromCallback(({ sendBack, input }) => {
|
|
|
3106
3107
|
const _write = async () => {
|
|
3107
3108
|
const { modelIds } = input;
|
|
3108
3109
|
try {
|
|
3109
|
-
const modelSchemaMod = await Promise.resolve().then(function () { return require('./index-
|
|
3110
|
+
const modelSchemaMod = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.ModelSchema; });
|
|
3110
3111
|
const { models: modelsTable, properties: propertiesTable } = modelSchemaMod;
|
|
3111
3112
|
const drizzleMod = await import('drizzle-orm');
|
|
3112
3113
|
const { eq } = drizzleMod;
|
|
@@ -3294,9 +3295,9 @@ const createPropertyInstances = xstate.fromCallback(({ sendBack, input }) => {
|
|
|
3294
3295
|
return;
|
|
3295
3296
|
}
|
|
3296
3297
|
try {
|
|
3297
|
-
const modProp = await Promise.resolve().then(function () { return require('./ModelProperty-
|
|
3298
|
+
const modProp = await Promise.resolve().then(function () { return require('./ModelProperty-CDTOx5zi.js'); });
|
|
3298
3299
|
const ModelProperty = modProp?.ModelProperty ?? modProp?.default;
|
|
3299
|
-
const modModel = await Promise.resolve().then(function () { return require('./index-
|
|
3300
|
+
const modModel = await Promise.resolve().then(function () { return require('./index-DM1WR83P.js'); }).then(function (n) { return n.Model$1; });
|
|
3300
3301
|
const Model = modModel?.Model ?? modModel?.default;
|
|
3301
3302
|
if (!ModelProperty || !Model) {
|
|
3302
3303
|
logger$3('ModelProperty or Model not available from dynamic import');
|
|
@@ -3401,7 +3402,7 @@ const verifyPropertyInstancesInCache = xstate.fromCallback(({ sendBack, input })
|
|
|
3401
3402
|
}
|
|
3402
3403
|
try {
|
|
3403
3404
|
const result = await verifyWithRetry(async () => {
|
|
3404
|
-
const mod = await Promise.resolve().then(function () { return require('./ModelProperty-
|
|
3405
|
+
const mod = await Promise.resolve().then(function () { return require('./ModelProperty-CDTOx5zi.js'); });
|
|
3405
3406
|
const ModelProperty = mod?.ModelProperty ?? mod?.default;
|
|
3406
3407
|
if (!ModelProperty) {
|
|
3407
3408
|
throw new Error('ModelProperty not available from dynamic import');
|
|
@@ -5179,7 +5180,7 @@ class Schema {
|
|
|
5179
5180
|
_dbVersion: publishedSchema.version,
|
|
5180
5181
|
});
|
|
5181
5182
|
// Clear edited flags on all ModelProperty instances and in database
|
|
5182
|
-
const modelPropertyMod = await Promise.resolve().then(function () { return require('./ModelProperty-
|
|
5183
|
+
const modelPropertyMod = await Promise.resolve().then(function () { return require('./ModelProperty-CDTOx5zi.js'); });
|
|
5183
5184
|
const { ModelProperty } = modelPropertyMod;
|
|
5184
5185
|
for (const propertyKey of context._editedProperties) {
|
|
5185
5186
|
const [modelName, propertyName] = propertyKey.split(':');
|
|
@@ -5983,4 +5984,4 @@ var Schema$1 = /*#__PURE__*/Object.freeze({
|
|
|
5983
5984
|
|
|
5984
5985
|
exports.Schema = Schema;
|
|
5985
5986
|
exports.schemaInstanceState = schemaInstanceState;
|
|
5986
|
-
//# sourceMappingURL=Schema-
|
|
5987
|
+
//# sourceMappingURL=Schema-XXcwj3hV.js.map
|