@contember/engine-system-api 2.1.0-alpha.1 → 2.1.0-alpha.2
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/development/src/migrations/2025-03-14-110000-fix-missing-index.cjs +60 -0
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.cjs.map +1 -0
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.js +61 -0
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.js.map +1 -0
- package/dist/development/src/migrations/runner.cjs +3 -1
- package/dist/development/src/migrations/runner.cjs.map +1 -1
- package/dist/development/src/migrations/runner.js +3 -1
- package/dist/development/src/migrations/runner.js.map +1 -1
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.cjs +1 -5
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.cjs.map +1 -1
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.js +1 -5
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.js.map +1 -1
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.cjs +60 -0
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.cjs.map +1 -0
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.js +61 -0
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.js.map +1 -0
- package/dist/production/src/migrations/runner.cjs +3 -1
- package/dist/production/src/migrations/runner.cjs.map +1 -1
- package/dist/production/src/migrations/runner.js +3 -1
- package/dist/production/src/migrations/runner.js.map +1 -1
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.cjs +1 -5
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.cjs.map +1 -1
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.js +1 -5
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.js.map +1 -1
- package/dist/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.d.ts +2 -0
- package/dist/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.d.ts.map +1 -0
- package/dist/tests/src/uuid.d.ts.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/dist/types/migrations/2025-03-14-110000-fix-missing-index.d.ts +4 -0
- package/dist/types/migrations/2025-03-14-110000-fix-missing-index.d.ts.map +1 -0
- package/dist/types/migrations/runner.d.ts.map +1 -1
- package/dist/types/migrations/snapshot-factory.d.ts.map +1 -1
- package/dist/types/model/events/EventResponseHelper.d.ts.map +1 -1
- package/dist/types/model/events/identityUtils.d.ts.map +1 -1
- package/dist/types/model/helpers/modelHelpers.d.ts.map +1 -1
- package/dist/types/model/queries/events/EventQueryHelpers.d.ts.map +1 -1
- package/dist/types/model/queries/events/LatestTransactionIdByStageQuery.d.ts +2 -2
- package/dist/types/model/queries/events/LatestTransactionIdByStageQuery.d.ts.map +1 -1
- package/dist/types/model/queries/migrations/ExecutedMigrationsQueryHelper.d.ts.map +1 -1
- package/dist/types/resolvers/types/OldValuesHelpers.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/utils/batchQuery.d.ts.map +1 -1
- package/dist/types/utils/tuple.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/migrations/2025-03-14-110000-fix-missing-index.ts +68 -0
- package/src/migrations/runner.ts +2 -0
- package/src/model/queries/events/LatestTransactionIdByStageQuery.ts +3 -7
- package/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.ts +62 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MigrationArgs, MigrationBuilder } from '@contember/database-migrations';
|
|
2
|
+
import { SystemMigrationArgs } from './types';
|
|
3
|
+
export default function (builder: MigrationBuilder, args: MigrationArgs<SystemMigrationArgs>): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=2025-03-14-110000-fix-missing-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2025-03-14-110000-fix-missing-index.d.ts","sourceRoot":"","sources":["../../../src/migrations/2025-03-14-110000-fix-missing-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAK7C,yBAA+B,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,CAAC,mBAAmB,CAAC,iBAgCjG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/migrations/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,cAAc,EAGd,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/migrations/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,cAAc,EAGd,MAAM,gCAAgC,CAAA;AA6BvC,OAAO,EAAyC,cAAc,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AACrH,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAgC1C,qBAAa,sBAAsB;IAEjC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,wBAAwB;gBAJxB,sBAAsB,EAAE,sBAAsB,EAC9C,OAAO,EAAE,aAAa,GAAG;QAAE,EAAE,EAAE,cAAc,CAAA;KAAE,EAC/C,cAAc,EAAE,cAAc,EAC9B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,EACxD,wBAAwB,EAAE,wBAAwB;IAG9D,GAAG,CAAC,MAAM,EAAE,MAAM;CAmCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-factory.d.ts","sourceRoot":"","sources":["../../../src/migrations/snapshot-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"snapshot-factory.d.ts","sourceRoot":"","sources":["../../../src/migrations/snapshot-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,iBAAiB,GAAI,YAAY,CAAC,IAAI,EAAE;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,MACzE,SAAS,gBAAgB,EAAE,MAAM,aAAa,CAAC,mBAAmB,CAAC,kBAwCjF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventResponseHelper.d.ts","sourceRoot":"","sources":["../../../../src/model/events/EventResponseHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE/D,eAAO,MAAM,wBAAwB,GAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"EventResponseHelper.d.ts","sourceRoot":"","sources":["../../../../src/model/events/EventResponseHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE/D,eAAO,MAAM,wBAAwB,GAAI,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,WAAW;;;;;;;CAM3E,CAAA;AAEF,eAAO,MAAM,wBAAwB,GAAI,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,WAAW;;;;;;CAK3E,CAAA;AAEF,eAAO,MAAM,wBAAwB,GAAI,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,WAAW;;;;CAK3E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identityUtils.d.ts","sourceRoot":"","sources":["../../../../src/model/events/identityUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA;AAGvE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"identityUtils.d.ts","sourceRoot":"","sources":["../../../../src/model/events/identityUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA;AAGvE,eAAO,MAAM,cAAc,GAAI,UAAU,cAAc,KAAG,MAUzD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelHelpers.d.ts","sourceRoot":"","sources":["../../../../src/model/helpers/modelHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAGzC,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"modelHelpers.d.ts","sourceRoot":"","sources":["../../../../src/model/helpers/modelHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAGzC,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK,CAAC,MAAM,KAAG,KAAK,CAAC,YAAY,EAgBzE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventQueryHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/model/queries/events/EventQueryHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA4B,SAAS,EAAe,MAAM,cAAc,CAAA;AAG7F,MAAM,MAAM,QAAQ,GAAG;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,SAAS,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"EventQueryHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/model/queries/events/EventQueryHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA4B,SAAS,EAAe,MAAM,cAAc,CAAA;AAG7F,MAAM,MAAM,QAAQ,GAAG;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,SAAS,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,MAAM,QAAQ,EAAE,KAAG,YAAY,EAuCnE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DatabaseQuery, DatabaseQueryable } from '@contember/database';
|
|
2
|
-
export declare class LatestTransactionIdByStageQuery extends DatabaseQuery<string> {
|
|
2
|
+
export declare class LatestTransactionIdByStageQuery extends DatabaseQuery<string | null> {
|
|
3
3
|
private readonly stageId;
|
|
4
4
|
constructor(stageId: string);
|
|
5
|
-
fetch(queryable: DatabaseQueryable): Promise<string>;
|
|
5
|
+
fetch(queryable: DatabaseQueryable): Promise<string | null>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=LatestTransactionIdByStageQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LatestTransactionIdByStageQuery.d.ts","sourceRoot":"","sources":["../../../../../src/model/queries/events/LatestTransactionIdByStageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAiB,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"LatestTransactionIdByStageQuery.d.ts","sourceRoot":"","sources":["../../../../../src/model/queries/events/LatestTransactionIdByStageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAiB,MAAM,qBAAqB,CAAA;AAErF,qBAAa,+BAAgC,SAAQ,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC;IACpE,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM;IAItC,KAAK,CAAC,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAWjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutedMigrationsQueryHelper.d.ts","sourceRoot":"","sources":["../../../../../src/model/queries/migrations/ExecutedMigrationsQueryHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAG9C,KAAK,oBAAoB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;CAAE,CAAA;AAChJ,eAAO,MAAM,mCAAmC,2CAI3B,CAAA;AAErB,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ExecutedMigrationsQueryHelper.d.ts","sourceRoot":"","sources":["../../../../../src/model/queries/migrations/ExecutedMigrationsQueryHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAG9C,KAAK,oBAAoB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;CAAE,CAAA;AAChJ,eAAO,MAAM,mCAAmC,2CAI3B,CAAA;AAErB,eAAO,MAAM,0BAA0B,GAAI,KAAK,oBAAoB,sBASlE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OldValuesHelpers.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/types/OldValuesHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAI7C,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"OldValuesHelpers.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/types/OldValuesHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAI7C,eAAO,MAAM,sBAAsB,GAAI,IAAI,eAAe,gEAMxD,CAAA"}
|