@seedprotocol/sdk 0.5.3 → 0.6.1
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/{ModelProperty-DGJf78CS.js → ModelProperty-CHIxRLfS.js} +16 -16
- package/dist/{ModelProperty-DGJf78CS.js.map → ModelProperty-CHIxRLfS.js.map} +1 -1
- package/dist/{Schema-Drmce3q-.js → Schema-BaVOWeUb.js} +22 -22
- package/dist/{Schema-Drmce3q-.js.map → Schema-BaVOWeUb.js.map} +1 -1
- package/dist/{SchemaValidationService-a_sfnpDV.js → SchemaValidationService-BX4GcEKY.js} +3 -3
- package/dist/{SchemaValidationService-a_sfnpDV.js.map → SchemaValidationService-BX4GcEKY.js.map} +1 -1
- package/dist/{backfillMetadataPropertyIds-CZcOi-cK.js → backfillMetadataPropertyIds-6kBwLScb.js} +2 -2
- package/dist/{backfillMetadataPropertyIds-CZcOi-cK.js.map → backfillMetadataPropertyIds-6kBwLScb.js.map} +1 -1
- package/dist/cjs/{ModelProperty-BA26rMV8.js → ModelProperty-BphJm1e3.js} +17 -17
- package/dist/cjs/{ModelProperty-BA26rMV8.js.map → ModelProperty-BphJm1e3.js.map} +1 -1
- package/dist/cjs/{Schema-Hgwq3L34.js → Schema-z1fBr4Rv.js} +20 -20
- package/dist/cjs/{Schema-Hgwq3L34.js.map → Schema-z1fBr4Rv.js.map} +1 -1
- package/dist/cjs/{SchemaValidationService-DVmOGZao.js → SchemaValidationService-DWmIhQqz.js} +2 -2
- package/dist/cjs/{SchemaValidationService-DVmOGZao.js.map → SchemaValidationService-DWmIhQqz.js.map} +1 -1
- package/dist/cjs/{backfillMetadataPropertyIds-BWJI4eCj.js → backfillMetadataPropertyIds--9WN2zaG.js} +2 -2
- package/dist/cjs/{backfillMetadataPropertyIds-BWJI4eCj.js.map → backfillMetadataPropertyIds--9WN2zaG.js.map} +1 -1
- package/dist/cjs/{eas-BJ8FtbU9.js → eas-YuOI6X_v.js} +3 -3
- package/dist/cjs/{eas-BJ8FtbU9.js.map → eas-YuOI6X_v.js.map} +1 -1
- package/dist/cjs/{getItem-DdBKeEEU.js → getItem-CKDdJztx.js} +2 -2
- package/dist/cjs/{getItem-DdBKeEEU.js.map → getItem-CKDdJztx.js.map} +1 -1
- package/dist/cjs/{getPublishPayload-DSBLjMKl.js → getPublishPayload-DXHDgXU3.js} +13 -11
- package/dist/cjs/getPublishPayload-DXHDgXU3.js.map +1 -0
- package/dist/cjs/{getPublishUploads-DMKnK2_R.js → getPublishUploads-yFW9CKSW.js} +4 -4
- package/dist/cjs/{getPublishUploads-DMKnK2_R.js.map → getPublishUploads-yFW9CKSW.js.map} +1 -1
- package/dist/cjs/{getSegmentedItemProperties-D0ZzTmvi.js → getSegmentedItemProperties-BLdMFDBt.js} +3 -3
- package/dist/cjs/{getSegmentedItemProperties-D0ZzTmvi.js.map → getSegmentedItemProperties-BLdMFDBt.js.map} +1 -1
- package/dist/cjs/{index-DQggpLqI.js → index-Bp16LrkZ.js} +3 -3
- package/dist/cjs/index-Bp16LrkZ.js.map +1 -0
- package/dist/cjs/{index-BD1b6zAi.js → index-WOQkKWSU.js} +34 -34
- package/dist/cjs/index-WOQkKWSU.js.map +1 -0
- package/dist/cjs/{property-D4IB0zBz.js → property-DSh60oEw.js} +4 -4
- package/dist/cjs/{property-D4IB0zBz.js.map → property-DSh60oEw.js.map} +1 -1
- package/dist/cjs/{syncDbWithEas-BYvFJc7N.js → syncDbWithEas-pVjTHk3y.js} +6 -6
- package/dist/cjs/{syncDbWithEas-BYvFJc7N.js.map → syncDbWithEas-pVjTHk3y.js.map} +1 -1
- package/dist/constants-B7aNfB_1.js.map +1 -1
- package/dist/{db-Bad8QKfZ.js → db-CMQ3TG6N.js} +5 -5
- package/dist/{db-Bad8QKfZ.js.map → db-CMQ3TG6N.js.map} +1 -1
- package/dist/{eas-BB9hVW68.js → eas-BG3zRyHC.js} +2 -2
- package/dist/{eas-BB9hVW68.js.map → eas-BG3zRyHC.js.map} +1 -1
- package/dist/{getItem-Cina46nb.js → getItem-BFDi98NG.js} +3 -3
- package/dist/{getItem-Cina46nb.js.map → getItem-BFDi98NG.js.map} +1 -1
- package/dist/{getPublishPayload-BEO52UOv.js → getPublishPayload-B2D-72EC.js} +14 -12
- package/dist/getPublishPayload-B2D-72EC.js.map +1 -0
- package/dist/{getPublishUploads-CJjfqJi9.js → getPublishUploads-D-fMspZI.js} +5 -5
- package/dist/{getPublishUploads-CJjfqJi9.js.map → getPublishUploads-D-fMspZI.js.map} +1 -1
- package/dist/{getSegmentedItemProperties-CbzFDgFr.js → getSegmentedItemProperties-DzjK6JE5.js} +3 -3
- package/dist/{getSegmentedItemProperties-CbzFDgFr.js.map → getSegmentedItemProperties-DzjK6JE5.js.map} +1 -1
- package/dist/{index-DNOCl06b.js → index-BaPbRFSy.js} +4 -4
- package/dist/index-BaPbRFSy.js.map +1 -0
- package/dist/{index-B4In0GEO.js → index-Dx0RL3Tx.js} +35 -35
- package/dist/{index-B4In0GEO.js.map → index-Dx0RL3Tx.js.map} +1 -1
- package/dist/{index.node-CnP9s4cV.js → index.node-hhs7zosf.js} +2 -2
- package/dist/{index.node-CnP9s4cV.js.map → index.node-hhs7zosf.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +29 -21
- package/dist/main.js.map +1 -1
- package/dist/node.js +4 -4
- package/dist/platform.browser.js +1 -1
- package/dist/platform.node.js +1 -1
- package/dist/{property-DIN1zQ_c.js → property-B2xdCZz_.js} +5 -5
- package/dist/{property-DIN1zQ_c.js.map → property-B2xdCZz_.js.map} +1 -1
- package/dist/src/Item/Item.d.ts.map +1 -1
- package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
- package/dist/src/db/write/applyPropertyAttestationUidsFromPublish.d.ts +4 -2
- package/dist/src/db/write/applyPropertyAttestationUidsFromPublish.d.ts.map +1 -1
- package/dist/src/helpers/mediaRef.d.ts +2 -2
- package/dist/src/helpers/mediaRef.d.ts.map +1 -1
- package/dist/{syncDbWithEas-ceVUuWSZ.js → syncDbWithEas-B9Riqty1.js} +7 -7
- package/dist/{syncDbWithEas-ceVUuWSZ.js.map → syncDbWithEas-B9Riqty1.js.map} +1 -1
- package/package.json +5 -5
- package/dist/cjs/getPublishPayload-DSBLjMKl.js.map +0 -1
- package/dist/cjs/index-BD1b6zAi.js.map +0 -1
- package/dist/cjs/index-DQggpLqI.js.map +0 -1
- package/dist/getPublishPayload-BEO52UOv.js.map +0 -1
- package/dist/index-DNOCl06b.js.map +0 -1
|
@@ -1000,7 +1000,7 @@ const createPropertyInstances = async (propertyFileIds) => {
|
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
1002
1002
|
try {
|
|
1003
|
-
const mod = await Promise.resolve().then(function () { return require('./ModelProperty-
|
|
1003
|
+
const mod = await Promise.resolve().then(function () { return require('./ModelProperty-BphJm1e3.js'); });
|
|
1004
1004
|
const ModelProperty = mod?.ModelProperty ?? mod?.default;
|
|
1005
1005
|
if (!ModelProperty) {
|
|
1006
1006
|
logger$v('createPropertyInstances: ModelProperty not available from dynamic import');
|
|
@@ -1184,7 +1184,7 @@ const loadOrCreateModel = xstate.fromCallback(({ sendBack, input: { context } })
|
|
|
1184
1184
|
// Step 2: Fallback to Schema context (only if database doesn't have the model)
|
|
1185
1185
|
// This handles the case where model exists in schema file but not yet in database
|
|
1186
1186
|
try {
|
|
1187
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-
|
|
1187
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-z1fBr4Rv.js'); });
|
|
1188
1188
|
const { Schema } = schemaMod;
|
|
1189
1189
|
const schema = Schema.create(schemaName, { waitForReady: false });
|
|
1190
1190
|
const schemaSnapshot = schema.getService().getSnapshot();
|
|
@@ -1428,7 +1428,7 @@ const loadOrCreateModel = xstate.fromCallback(({ sendBack, input: { context } })
|
|
|
1428
1428
|
}
|
|
1429
1429
|
// Mark schema as draft when a new model is created so saveNewVersion() can persist it
|
|
1430
1430
|
try {
|
|
1431
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-
|
|
1431
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-z1fBr4Rv.js'); });
|
|
1432
1432
|
const { Schema } = schemaMod;
|
|
1433
1433
|
const schema = Schema.create(schemaName, { waitForReady: false });
|
|
1434
1434
|
schema.getService().send({ type: 'markAsDraft', propertyKey: 'schema:models' });
|
|
@@ -1472,10 +1472,10 @@ const validateModel = xstate.fromCallback(({ sendBack, input: { context } }) =>
|
|
|
1472
1472
|
const _validateModel = async () => {
|
|
1473
1473
|
try {
|
|
1474
1474
|
// Use dynamic imports to break circular dependencies
|
|
1475
|
-
const validationServiceMod = await Promise.resolve().then(function () { return require('./SchemaValidationService-
|
|
1475
|
+
const validationServiceMod = await Promise.resolve().then(function () { return require('./SchemaValidationService-DWmIhQqz.js'); });
|
|
1476
1476
|
const { SchemaValidationService } = validationServiceMod;
|
|
1477
1477
|
const validationService = new SchemaValidationService();
|
|
1478
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-
|
|
1478
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-z1fBr4Rv.js'); });
|
|
1479
1479
|
const { Schema } = schemaMod;
|
|
1480
1480
|
// Validate model structure
|
|
1481
1481
|
const structureResult = validationService.validateModelStructure(context);
|
|
@@ -1585,7 +1585,7 @@ const createModelProperties = xstate.fromCallback(({ sendBack, input }) => {
|
|
|
1585
1585
|
return;
|
|
1586
1586
|
}
|
|
1587
1587
|
logger$t(`Creating ${Object.keys(propertyDefinitions).length} properties for model "${modelName}" (id: ${_dbId})`);
|
|
1588
|
-
const mod = await Promise.resolve().then(function () { return require('./ModelProperty-
|
|
1588
|
+
const mod = await Promise.resolve().then(function () { return require('./ModelProperty-BphJm1e3.js'); });
|
|
1589
1589
|
const ModelProperty = mod?.ModelProperty ?? mod?.default;
|
|
1590
1590
|
if (!ModelProperty) {
|
|
1591
1591
|
logger$t('ModelProperty not available from dynamic import');
|
|
@@ -1688,7 +1688,7 @@ const validateEntity = xstate.fromPromise(async ({ input }) => {
|
|
|
1688
1688
|
const structureMsg = `[validateEntity] Validating model structure`;
|
|
1689
1689
|
logger$s(structureMsg);
|
|
1690
1690
|
// Use existing Model validation
|
|
1691
|
-
const validationServiceMod = await Promise.resolve().then(function () { return require('./SchemaValidationService-
|
|
1691
|
+
const validationServiceMod = await Promise.resolve().then(function () { return require('./SchemaValidationService-DWmIhQqz.js'); });
|
|
1692
1692
|
const { SchemaValidationService } = validationServiceMod;
|
|
1693
1693
|
const validationService = new SchemaValidationService();
|
|
1694
1694
|
// Validate model structure
|
|
@@ -1706,7 +1706,7 @@ const validateEntity = xstate.fromPromise(async ({ input }) => {
|
|
|
1706
1706
|
if (entityInput.entityData.schemaName) {
|
|
1707
1707
|
try {
|
|
1708
1708
|
logger$s(`[validateEntity] Validating model against schema "${entityInput.entityData.schemaName}"`);
|
|
1709
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-
|
|
1709
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-z1fBr4Rv.js'); });
|
|
1710
1710
|
const { Schema } = schemaMod;
|
|
1711
1711
|
const schema = Schema.create(entityInput.entityData.schemaName, {
|
|
1712
1712
|
waitForReady: false,
|
|
@@ -1742,7 +1742,7 @@ const validateEntity = xstate.fromPromise(async ({ input }) => {
|
|
|
1742
1742
|
}
|
|
1743
1743
|
else if (entityInput.entityType === 'modelProperty') {
|
|
1744
1744
|
// Use existing ModelProperty validation
|
|
1745
|
-
const validationServiceMod = await Promise.resolve().then(function () { return require('./SchemaValidationService-
|
|
1745
|
+
const validationServiceMod = await Promise.resolve().then(function () { return require('./SchemaValidationService-DWmIhQqz.js'); });
|
|
1746
1746
|
const { SchemaValidationService } = validationServiceMod;
|
|
1747
1747
|
const validationService = new SchemaValidationService();
|
|
1748
1748
|
// Validate property structure
|
|
@@ -1757,7 +1757,7 @@ const validateEntity = xstate.fromPromise(async ({ input }) => {
|
|
|
1757
1757
|
// If schema name and model name provided, validate against schema
|
|
1758
1758
|
if (entityInput.entityData._schemaName && entityInput.entityData.modelName) {
|
|
1759
1759
|
try {
|
|
1760
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-
|
|
1760
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./Schema-z1fBr4Rv.js'); });
|
|
1761
1761
|
const { Schema } = schemaMod;
|
|
1762
1762
|
const schema = Schema.create(entityInput.entityData._schemaName, {
|
|
1763
1763
|
waitForReady: false,
|
|
@@ -1786,7 +1786,7 @@ const validateEntity = xstate.fromPromise(async ({ input }) => {
|
|
|
1786
1786
|
}
|
|
1787
1787
|
else if (entityInput.entityType === 'schema') {
|
|
1788
1788
|
// Schema validation - use existing validation
|
|
1789
|
-
const validationServiceMod = await Promise.resolve().then(function () { return require('./SchemaValidationService-
|
|
1789
|
+
const validationServiceMod = await Promise.resolve().then(function () { return require('./SchemaValidationService-DWmIhQqz.js'); });
|
|
1790
1790
|
const { SchemaValidationService } = validationServiceMod;
|
|
1791
1791
|
const validationService = new SchemaValidationService();
|
|
1792
1792
|
const schemaResult = validationService.validateSchema(entityInput.entityData);
|
|
@@ -3827,7 +3827,7 @@ const writeToDatabase = xstate.fromCallback(({ sendBack, input }) => {
|
|
|
3827
3827
|
// initial write completes is not overwritten by the stale requestWrite payload.
|
|
3828
3828
|
let dataToWrite = input.entityData;
|
|
3829
3829
|
try {
|
|
3830
|
-
const mod = await Promise.resolve().then(function () { return require('./ModelProperty-
|
|
3830
|
+
const mod = await Promise.resolve().then(function () { return require('./ModelProperty-BphJm1e3.js'); });
|
|
3831
3831
|
const ModelProperty = mod?.ModelProperty ?? mod?.default;
|
|
3832
3832
|
if (ModelProperty && typeof ModelProperty.getById === 'function') {
|
|
3833
3833
|
const instance = ModelProperty.getById(input.entityId);
|
|
@@ -4207,7 +4207,7 @@ const modelMachine = xstate.setup({
|
|
|
4207
4207
|
// Create ModelProperty instances for any new property IDs
|
|
4208
4208
|
if (Array.isArray(newPropertyIds) && newPropertyIds.length > 0) {
|
|
4209
4209
|
// Import and create instances asynchronously (fire-and-forget)
|
|
4210
|
-
Promise.resolve().then(function () { return require('./ModelProperty-
|
|
4210
|
+
Promise.resolve().then(function () { return require('./ModelProperty-BphJm1e3.js'); }).then(({ ModelProperty }) => {
|
|
4211
4211
|
const createPromises = newPropertyIds.map(async (propertyFileId) => {
|
|
4212
4212
|
try {
|
|
4213
4213
|
const property = await ModelProperty.createById(propertyFileId);
|
|
@@ -5188,7 +5188,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
|
|
|
5188
5188
|
const schemaNameToTry = model$1?.schemaName;
|
|
5189
5189
|
if (schemaNameToTry) {
|
|
5190
5190
|
try {
|
|
5191
|
-
const { Schema } = await Promise.resolve().then(function () { return require('./Schema-
|
|
5191
|
+
const { Schema } = await Promise.resolve().then(function () { return require('./Schema-z1fBr4Rv.js'); });
|
|
5192
5192
|
const schemaInstance = Schema.create(schemaNameToTry, { waitForReady: false });
|
|
5193
5193
|
const schemaContext = schemaInstance.getService().getSnapshot().context;
|
|
5194
5194
|
if (schemaContext.models?.[modelName]?.properties) {
|
|
@@ -5237,7 +5237,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
|
|
|
5237
5237
|
}
|
|
5238
5238
|
}
|
|
5239
5239
|
if (Object.keys(propertySchemas).length === 0) {
|
|
5240
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./index-
|
|
5240
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./index-Bp16LrkZ.js'); });
|
|
5241
5241
|
const { ModelPropertyDataTypes } = schemaMod;
|
|
5242
5242
|
const KNOWN_MODEL_FALLBACKS = {
|
|
5243
5243
|
Post: {
|
|
@@ -5284,7 +5284,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
|
|
|
5284
5284
|
// Infer propertyRecordSchema from metadata when schema is missing (enables persistence)
|
|
5285
5285
|
let propSchema = propertySchemas[propertyName];
|
|
5286
5286
|
if (!propSchema && isRefTypeFromMeta) {
|
|
5287
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./index-
|
|
5287
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./index-Bp16LrkZ.js'); });
|
|
5288
5288
|
const { ModelPropertyDataTypes } = schemaMod;
|
|
5289
5289
|
propSchema = {
|
|
5290
5290
|
dataType: refSeedType === 'html' ? ModelPropertyDataTypes.Html
|
|
@@ -5541,9 +5541,9 @@ const runPublish = xstate.fromCallback(({ sendBack, input: { context } }) => {
|
|
|
5541
5541
|
sendBack({ type: 'publishError', error: new Error(`Item not found for seedLocalId: ${seedLocalId}`) });
|
|
5542
5542
|
return;
|
|
5543
5543
|
}
|
|
5544
|
-
const getPublishUploadsMod = await Promise.resolve().then(function () { return require('./getPublishUploads-
|
|
5544
|
+
const getPublishUploadsMod = await Promise.resolve().then(function () { return require('./getPublishUploads-yFW9CKSW.js'); });
|
|
5545
5545
|
const { getPublishUploads } = getPublishUploadsMod;
|
|
5546
|
-
const getPublishPayloadMod = await Promise.resolve().then(function () { return require('./getPublishPayload-
|
|
5546
|
+
const getPublishPayloadMod = await Promise.resolve().then(function () { return require('./getPublishPayload-DXHDgXU3.js'); });
|
|
5547
5547
|
const { getPublishPayload } = getPublishPayloadMod;
|
|
5548
5548
|
const uploads = await getPublishUploads(item);
|
|
5549
5549
|
let uploadedTransactions = [];
|
|
@@ -6524,7 +6524,7 @@ const resolveRelatedValue = xstate.fromCallback(({ sendBack, input: { context }
|
|
|
6524
6524
|
const { isRelation, propertyValue, propertyName, seedUid, propertyRecordSchema, populatedFromDb, schemaUid, } = context;
|
|
6525
6525
|
const _resolveRelatedValue = async () => {
|
|
6526
6526
|
// Use dynamic import to break circular dependency
|
|
6527
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./index-
|
|
6527
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./index-Bp16LrkZ.js'); });
|
|
6528
6528
|
const { ModelPropertyDataTypes } = schemaMod;
|
|
6529
6529
|
if (!propertyValue || !isRelation || populatedFromDb) {
|
|
6530
6530
|
return;
|
|
@@ -7527,7 +7527,7 @@ const hydrateFromDb = xstate.fromCallback(({ sendBack, input: { context } }) =>
|
|
|
7527
7527
|
// to use dynamically imported ModelPropertyDataTypes
|
|
7528
7528
|
const _hydrateFromDb = async () => {
|
|
7529
7529
|
// Use dynamic import to break circular dependency
|
|
7530
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./index-
|
|
7530
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./index-Bp16LrkZ.js'); });
|
|
7531
7531
|
const { ModelPropertyDataTypes } = schemaMod;
|
|
7532
7532
|
const appDb = BaseDb.getAppDb();
|
|
7533
7533
|
const whereClauses = [];
|
|
@@ -7890,7 +7890,7 @@ const loadOrCreateProperty = xstate.fromCallback(({ sendBack, input: { context }
|
|
|
7890
7890
|
};
|
|
7891
7891
|
// Merge with schema from file/DB to get validation rules (enum, pattern, etc.) - properties table doesn't store these
|
|
7892
7892
|
try {
|
|
7893
|
-
const { getPropertySchema } = await Promise.resolve().then(function () { return require('./property-
|
|
7893
|
+
const { getPropertySchema } = await Promise.resolve().then(function () { return require('./property-DSh60oEw.js'); });
|
|
7894
7894
|
let schemaFromFile = await getPropertySchema(normalizedModelName, propertyName);
|
|
7895
7895
|
if (!schemaFromFile?.validation) {
|
|
7896
7896
|
// Fallback: get validation from schemaData in database (Schema context may not be loaded yet)
|
|
@@ -8355,9 +8355,9 @@ const analyzeInput = xstate.fromCallback(({ sendBack, input: { context, event }
|
|
|
8355
8355
|
}
|
|
8356
8356
|
const _analyzeInput = async () => {
|
|
8357
8357
|
// Use dynamic import to break circular dependency
|
|
8358
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./index-
|
|
8358
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./index-Bp16LrkZ.js'); });
|
|
8359
8359
|
const { ModelPropertyDataTypes } = schemaMod;
|
|
8360
|
-
const { SchemaValidationService } = await Promise.resolve().then(function () { return require('./SchemaValidationService-
|
|
8360
|
+
const { SchemaValidationService } = await Promise.resolve().then(function () { return require('./SchemaValidationService-DWmIhQqz.js'); });
|
|
8361
8361
|
let propertyName = propertyNameRaw;
|
|
8362
8362
|
if (!propertyName) {
|
|
8363
8363
|
throw new Error('propertyName is required');
|
|
@@ -8555,7 +8555,7 @@ const createMetadata = async (metadataValues, propertyRecordSchema, options) =>
|
|
|
8555
8555
|
propertyRecordSchema?.validation &&
|
|
8556
8556
|
metadataValues.propertyValue != null &&
|
|
8557
8557
|
metadataValues.propertyValue !== '') {
|
|
8558
|
-
const { SchemaValidationService } = await Promise.resolve().then(function () { return require('./SchemaValidationService-
|
|
8558
|
+
const { SchemaValidationService } = await Promise.resolve().then(function () { return require('./SchemaValidationService-DWmIhQqz.js'); });
|
|
8559
8559
|
const validationService = new SchemaValidationService();
|
|
8560
8560
|
const validationResult = validationService.validatePropertyValue(metadataValues.propertyValue, normalizeDataType(propertyRecordSchema.dataType), propertyRecordSchema.validation, propertyRecordSchema.refValueType
|
|
8561
8561
|
? normalizeDataType(String(propertyRecordSchema.refValueType))
|
|
@@ -9148,7 +9148,7 @@ const saveRelation = xstate.fromCallback(({ sendBack, input: { context, event }
|
|
|
9148
9148
|
}
|
|
9149
9149
|
const _saveRelation = async () => {
|
|
9150
9150
|
// Use dynamic import to break circular dependency
|
|
9151
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./index-
|
|
9151
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./index-Bp16LrkZ.js'); });
|
|
9152
9152
|
const { ModelPropertyDataTypes } = schemaMod;
|
|
9153
9153
|
if (!propertyNameRaw) {
|
|
9154
9154
|
throw new Error('propertyName is required');
|
|
@@ -10192,7 +10192,7 @@ class ItemProperty {
|
|
|
10192
10192
|
return;
|
|
10193
10193
|
}
|
|
10194
10194
|
// Use dynamic import to break circular dependency
|
|
10195
|
-
const schemaMod = await Promise.resolve().then(function () { return require('./index-
|
|
10195
|
+
const schemaMod = await Promise.resolve().then(function () { return require('./index-Bp16LrkZ.js'); });
|
|
10196
10196
|
const { ModelPropertyDataTypes } = schemaMod;
|
|
10197
10197
|
const { context } = snapshot;
|
|
10198
10198
|
const { propertyRecordSchema } = context;
|
|
@@ -11500,12 +11500,12 @@ class Item {
|
|
|
11500
11500
|
};
|
|
11501
11501
|
this.getPublishUploads = async (options) => {
|
|
11502
11502
|
// Use dynamic import to break circular dependency
|
|
11503
|
-
const getPublishUploadsMod = await Promise.resolve().then(function () { return require('./getPublishUploads-
|
|
11503
|
+
const getPublishUploadsMod = await Promise.resolve().then(function () { return require('./getPublishUploads-yFW9CKSW.js'); });
|
|
11504
11504
|
const { getPublishUploads } = getPublishUploadsMod;
|
|
11505
11505
|
return await getPublishUploads(this, [], undefined, options);
|
|
11506
11506
|
};
|
|
11507
11507
|
this.getPublishPayload = async (uploadedTransactions, options) => {
|
|
11508
|
-
const getPublishPayloadMod = await Promise.resolve().then(function () { return require('./getPublishPayload-
|
|
11508
|
+
const getPublishPayloadMod = await Promise.resolve().then(function () { return require('./getPublishPayload-DXHDgXU3.js'); });
|
|
11509
11509
|
const { getPublishPayload } = getPublishPayloadMod;
|
|
11510
11510
|
return await getPublishPayload(this, uploadedTransactions, options);
|
|
11511
11511
|
};
|
|
@@ -13188,7 +13188,7 @@ const runEasSync = xstate.fromPromise(async ({ input, }) => {
|
|
|
13188
13188
|
requestPayload: input.requestPayload,
|
|
13189
13189
|
persistedSnapshot: input.runningSnapshot,
|
|
13190
13190
|
});
|
|
13191
|
-
const { runSyncFromEas } = await Promise.resolve().then(function () { return require('./syncDbWithEas-
|
|
13191
|
+
const { runSyncFromEas } = await Promise.resolve().then(function () { return require('./syncDbWithEas-pVjTHk3y.js'); });
|
|
13192
13192
|
try {
|
|
13193
13193
|
await runSyncFromEas(toRunSyncArg(input.options));
|
|
13194
13194
|
await finalizeEasSyncProcessRow(rowId, {
|
|
@@ -17706,7 +17706,7 @@ const saveDraftLogger = debug('seedSdk:model:saveDraftToDb');
|
|
|
17706
17706
|
// Lazy import cache for ModelProperty to avoid circular dependency
|
|
17707
17707
|
// Eagerly start loading to minimize delay on first access
|
|
17708
17708
|
let ModelPropertyClass = null;
|
|
17709
|
-
const modelPropertyImportPromise = Promise.resolve().then(function () { return require('./ModelProperty-
|
|
17709
|
+
const modelPropertyImportPromise = Promise.resolve().then(function () { return require('./ModelProperty-BphJm1e3.js'); })
|
|
17710
17710
|
.then(module => {
|
|
17711
17711
|
ModelPropertyClass = module.ModelProperty;
|
|
17712
17712
|
return ModelPropertyClass;
|
|
@@ -17723,7 +17723,7 @@ function getModelProperty() {
|
|
|
17723
17723
|
}
|
|
17724
17724
|
// Lazy import cache for Schema to avoid circular dependency
|
|
17725
17725
|
let SchemaClass = null;
|
|
17726
|
-
const schemaImportPromise = Promise.resolve().then(function () { return require('./Schema-
|
|
17726
|
+
const schemaImportPromise = Promise.resolve().then(function () { return require('./Schema-z1fBr4Rv.js'); })
|
|
17727
17727
|
.then(module => {
|
|
17728
17728
|
SchemaClass = module.Schema;
|
|
17729
17729
|
return SchemaClass;
|
|
@@ -19628,7 +19628,7 @@ function resolveSdkDrizzleMigrationsDir(sdkRootDir) {
|
|
|
19628
19628
|
})();
|
|
19629
19629
|
// Also resolve relative to this module so temp-cwd tests / odd roots still find
|
|
19630
19630
|
// packages/sdk/src/db/drizzle (or dist/db/drizzle after publish).
|
|
19631
|
-
const moduleDir = path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cjs/index-
|
|
19631
|
+
const moduleDir = path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cjs/index-WOQkKWSU.js', document.baseURI).href))));
|
|
19632
19632
|
const candidates = [
|
|
19633
19633
|
path.join(root, 'db', 'drizzle'), // production: sdkRoot is dist/
|
|
19634
19634
|
path.join(root, 'dist', 'db', 'drizzle'), // sdk package root with built dist
|
|
@@ -19698,7 +19698,7 @@ class NodeDb {
|
|
|
19698
19698
|
logger$1('[Db.prepareDb] running migrations from %s', outDir);
|
|
19699
19699
|
await migrator.migrate(db, { migrationsFolder: outDir });
|
|
19700
19700
|
this.db = db;
|
|
19701
|
-
const { backfillMetadataPropertyIds } = await Promise.resolve().then(function () { return require('./backfillMetadataPropertyIds
|
|
19701
|
+
const { backfillMetadataPropertyIds } = await Promise.resolve().then(function () { return require('./backfillMetadataPropertyIds--9WN2zaG.js'); });
|
|
19702
19702
|
await backfillMetadataPropertyIds();
|
|
19703
19703
|
return this.db;
|
|
19704
19704
|
}
|
|
@@ -20287,4 +20287,4 @@ exports.versions = versions;
|
|
|
20287
20287
|
exports.waitForEntityIdle = waitForEntityIdle;
|
|
20288
20288
|
exports.withSeed = withSeed;
|
|
20289
20289
|
exports.writeProcessMachine = writeProcessMachine;
|
|
20290
|
-
//# sourceMappingURL=index-
|
|
20290
|
+
//# sourceMappingURL=index-WOQkKWSU.js.map
|