@sphereon/ssi-sdk.data-store 0.19.1-unstable.67 → 0.19.1-unstable.73
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/entities/machineState/MachineStateInfoEntity.d.ts +22 -3
- package/dist/entities/machineState/MachineStateInfoEntity.d.ts.map +1 -1
- package/dist/entities/machineState/MachineStateInfoEntity.js +34 -9
- package/dist/entities/machineState/MachineStateInfoEntity.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/machineState/IAbstractMachineStateStore.d.ts +52 -0
- package/dist/machineState/IAbstractMachineStateStore.d.ts.map +1 -0
- package/dist/machineState/IAbstractMachineStateStore.js +13 -0
- package/dist/machineState/IAbstractMachineStateStore.js.map +1 -0
- package/dist/machineState/MachineStateStore.d.ts +21 -0
- package/dist/machineState/MachineStateStore.d.ts.map +1 -0
- package/dist/machineState/{MachineStateInfoStore.js → MachineStateStore.js} +52 -29
- package/dist/machineState/MachineStateStore.js.map +1 -0
- package/dist/migrations/generic/7-CreateMachineStateStore.js +1 -1
- package/dist/migrations/generic/7-CreateMachineStateStore.js.map +1 -1
- package/dist/migrations/generic/index.d.ts +1 -1
- package/dist/migrations/generic/index.d.ts.map +1 -1
- package/dist/migrations/generic/index.js +3 -3
- package/dist/migrations/generic/index.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +2 -2
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.d.ts.map +1 -1
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js +8 -8
- package/dist/migrations/postgres/1708797018115-CreateMachineStateStore.js.map +1 -1
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.d.ts.map +1 -1
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js +5 -3
- package/dist/migrations/sqlite/1708796002272-CreateMachineStateStore.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/machineState/IAbstractMachineStateStore.d.ts +58 -0
- package/dist/types/machineState/IAbstractMachineStateStore.d.ts.map +1 -0
- package/dist/types/{xstate/IAbstractXStateStore.js → machineState/IAbstractMachineStateStore.js} +1 -1
- package/dist/types/machineState/IAbstractMachineStateStore.js.map +1 -0
- package/package.json +4 -4
- package/src/__tests__/machineState.entities.test.ts +11 -10
- package/src/__tests__/machineState.store.test.ts +47 -40
- package/src/entities/machineState/MachineStateInfoEntity.ts +34 -10
- package/src/index.ts +5 -5
- package/src/machineState/IAbstractMachineStateStore.ts +65 -0
- package/src/machineState/MachineStateStore.ts +151 -0
- package/src/migrations/generic/7-CreateMachineStateStore.ts +1 -1
- package/src/migrations/generic/index.ts +2 -2
- package/src/migrations/index.ts +1 -1
- package/src/migrations/postgres/1708797018115-CreateMachineStateStore.ts +8 -8
- package/src/migrations/sqlite/1708796002272-CreateMachineStateStore.ts +5 -3
- package/src/types/index.ts +1 -1
- package/src/types/machineState/IAbstractMachineStateStore.ts +68 -0
- package/dist/machineState/IAbstractMachineStateInfoStore.d.ts +0 -10
- package/dist/machineState/IAbstractMachineStateInfoStore.d.ts.map +0 -1
- package/dist/machineState/IAbstractMachineStateInfoStore.js +0 -7
- package/dist/machineState/IAbstractMachineStateInfoStore.js.map +0 -1
- package/dist/machineState/MachineStateInfoStore.d.ts +0 -18
- package/dist/machineState/MachineStateInfoStore.d.ts.map +0 -1
- package/dist/machineState/MachineStateInfoStore.js.map +0 -1
- package/dist/types/xstate/IAbstractXStateStore.d.ts +0 -41
- package/dist/types/xstate/IAbstractXStateStore.d.ts.map +0 -1
- package/dist/types/xstate/IAbstractXStateStore.js.map +0 -1
- package/src/machineState/IAbstractMachineStateInfoStore.ts +0 -18
- package/src/machineState/MachineStateInfoStore.ts +0 -120
- package/src/types/xstate/IAbstractXStateStore.ts +0 -46
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
import { BaseEntity } from 'typeorm';
|
|
2
|
+
/**
|
|
3
|
+
* @class MachineStateInfoEntity
|
|
4
|
+
* Represents a machine state. It allows to continue a machine at a later point in time at the point it was left of
|
|
5
|
+
*
|
|
6
|
+
* @param {string} instanceId - The instance ID of the machine state.
|
|
7
|
+
* @param {string} [sessionId] - The session ID of the machine state. (optional)
|
|
8
|
+
* @param {string} machineName - The name of the machine.
|
|
9
|
+
* @param {string} [latestStateName] - The name of the latest state. (optional)
|
|
10
|
+
* @param {string} latestEventType - The type of the latest event.
|
|
11
|
+
* @param {string} state - The current state of the machine.
|
|
12
|
+
* @param {Date} createdAt - The date and time when the machine state was created.
|
|
13
|
+
* @param {Date} updatedAt - The date and time when the machine state was last updated.
|
|
14
|
+
* @param {number} updatedCount - The number of times the machine state has been updated.
|
|
15
|
+
* @param {Date} [expiresAt] - The date and time when the machine state expires. (optional)
|
|
16
|
+
* @param {Date} [completedAt] - The date and time when the machine state was completed. (optional)
|
|
17
|
+
* @param {string} [tenantId] - The ID of the tenant associated with the machine state. (optional)
|
|
18
|
+
*/
|
|
2
19
|
export declare class MachineStateInfoEntity extends BaseEntity {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
20
|
+
instanceId: string;
|
|
21
|
+
sessionId?: string;
|
|
22
|
+
machineName: string;
|
|
23
|
+
latestStateName?: string;
|
|
6
24
|
latestEventType: string;
|
|
7
25
|
state: string;
|
|
8
26
|
createdAt: Date;
|
|
9
27
|
updatedAt: Date;
|
|
28
|
+
updatedCount: number;
|
|
10
29
|
expiresAt?: Date;
|
|
11
30
|
completedAt?: Date;
|
|
12
31
|
tenantId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MachineStateInfoEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/machineState/MachineStateInfoEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqE,MAAM,SAAS,CAAA;AAEvG,qBACa,sBAAuB,SAAQ,UAAU;IAEpD,
|
|
1
|
+
{"version":3,"file":"MachineStateInfoEntity.d.ts","sourceRoot":"","sources":["../../../src/entities/machineState/MachineStateInfoEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqE,MAAM,SAAS,CAAA;AAEvG;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IAEpD,UAAU,EAAG,MAAM,CAAA;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAIlB,WAAW,EAAG,MAAM,CAAA;IAGpB,eAAe,CAAC,EAAE,MAAM,CAAA;IAGxB,eAAe,EAAG,MAAM,CAAA;IAGxB,KAAK,EAAG,MAAM,CAAA;IAGd,SAAS,EAAG,IAAI,CAAA;IAGhB,SAAS,EAAG,IAAI,CAAA;IAGhB,YAAY,EAAG,MAAM,CAAA;IAGrB,SAAS,CAAC,EAAE,IAAI,CAAA;IAGhB,WAAW,CAAC,EAAE,IAAI,CAAA;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -11,36 +11,61 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.MachineStateInfoEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
+
/**
|
|
15
|
+
* @class MachineStateInfoEntity
|
|
16
|
+
* Represents a machine state. It allows to continue a machine at a later point in time at the point it was left of
|
|
17
|
+
*
|
|
18
|
+
* @param {string} instanceId - The instance ID of the machine state.
|
|
19
|
+
* @param {string} [sessionId] - The session ID of the machine state. (optional)
|
|
20
|
+
* @param {string} machineName - The name of the machine.
|
|
21
|
+
* @param {string} [latestStateName] - The name of the latest state. (optional)
|
|
22
|
+
* @param {string} latestEventType - The type of the latest event.
|
|
23
|
+
* @param {string} state - The current state of the machine.
|
|
24
|
+
* @param {Date} createdAt - The date and time when the machine state was created.
|
|
25
|
+
* @param {Date} updatedAt - The date and time when the machine state was last updated.
|
|
26
|
+
* @param {number} updatedCount - The number of times the machine state has been updated.
|
|
27
|
+
* @param {Date} [expiresAt] - The date and time when the machine state expires. (optional)
|
|
28
|
+
* @param {Date} [completedAt] - The date and time when the machine state was completed. (optional)
|
|
29
|
+
* @param {string} [tenantId] - The ID of the tenant associated with the machine state. (optional)
|
|
30
|
+
*/
|
|
14
31
|
let MachineStateInfoEntity = class MachineStateInfoEntity extends typeorm_1.BaseEntity {
|
|
15
32
|
};
|
|
16
33
|
__decorate([
|
|
17
|
-
(0, typeorm_1.PrimaryColumn)({ name: '
|
|
34
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'instance_id', type: 'varchar', nullable: false }),
|
|
18
35
|
__metadata("design:type", String)
|
|
19
|
-
], MachineStateInfoEntity.prototype, "
|
|
36
|
+
], MachineStateInfoEntity.prototype, "instanceId", void 0);
|
|
20
37
|
__decorate([
|
|
21
|
-
(0, typeorm_1.Column)({ name: '
|
|
38
|
+
(0, typeorm_1.Column)({ name: 'session_id', type: 'varchar', nullable: true }),
|
|
22
39
|
__metadata("design:type", String)
|
|
23
|
-
], MachineStateInfoEntity.prototype, "
|
|
40
|
+
], MachineStateInfoEntity.prototype, "sessionId", void 0);
|
|
24
41
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ name: '
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'machine_name', type: 'varchar', nullable: false }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], MachineStateInfoEntity.prototype, "machineName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'latest_state_name', type: 'varchar', nullable: true }),
|
|
26
47
|
__metadata("design:type", String)
|
|
27
48
|
], MachineStateInfoEntity.prototype, "latestStateName", void 0);
|
|
28
49
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({ name: 'latest_event_type', nullable: false }),
|
|
50
|
+
(0, typeorm_1.Column)({ name: 'latest_event_type', type: 'varchar', nullable: false }),
|
|
30
51
|
__metadata("design:type", String)
|
|
31
52
|
], MachineStateInfoEntity.prototype, "latestEventType", void 0);
|
|
32
53
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({ name: 'state', nullable: false }),
|
|
54
|
+
(0, typeorm_1.Column)({ name: 'state', type: 'text', nullable: false }),
|
|
34
55
|
__metadata("design:type", String)
|
|
35
56
|
], MachineStateInfoEntity.prototype, "state", void 0);
|
|
36
57
|
__decorate([
|
|
37
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false }),
|
|
58
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'datetime', nullable: false }),
|
|
38
59
|
__metadata("design:type", Date)
|
|
39
60
|
], MachineStateInfoEntity.prototype, "createdAt", void 0);
|
|
40
61
|
__decorate([
|
|
41
|
-
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', nullable: false }),
|
|
62
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', type: 'datetime', nullable: false }),
|
|
42
63
|
__metadata("design:type", Date)
|
|
43
64
|
], MachineStateInfoEntity.prototype, "updatedAt", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ name: 'updated_count', type: 'integer', nullable: false }),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], MachineStateInfoEntity.prototype, "updatedCount", void 0);
|
|
44
69
|
__decorate([
|
|
45
70
|
(0, typeorm_1.Column)({ name: 'expires_at', type: 'datetime', nullable: true }),
|
|
46
71
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MachineStateInfoEntity.js","sourceRoot":"","sources":["../../../src/entities/machineState/MachineStateInfoEntity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;
|
|
1
|
+
{"version":3,"file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C;8BAChE,IAAI;yDAAA;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4DAC/C;AAErB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACrD,IAAI;yDAAA;AAEhB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACrD,IAAI;2DAAA;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAC9C;AApCN,sBAAsB;IADlC,IAAA,gBAAM,EAAC,wBAAwB,CAAC;GACpB,sBAAsB,CAqClC;AArCY,wDAAsB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -34,9 +34,9 @@ import { DigitalCredentialEntity } from './entities/digitalCredential/DigitalCre
|
|
|
34
34
|
import { digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs } from './utils/digitalCredential/MappingUtils';
|
|
35
35
|
export { AbstractEventLoggerStore } from './eventLogger/AbstractEventLoggerStore';
|
|
36
36
|
export { EventLoggerStore } from './eventLogger/EventLoggerStore';
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations,
|
|
37
|
+
export { IAbstractMachineStateStore } from './machineState/IAbstractMachineStateStore';
|
|
38
|
+
export { MachineStateStore } from './machineState/MachineStateStore';
|
|
39
|
+
export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreMachineStateMigrations, } from './migrations';
|
|
40
40
|
export * from './types';
|
|
41
41
|
export * from './utils/contact/MappingUtils';
|
|
42
42
|
export declare const DataStoreContactEntities: (typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity)[];
|
|
@@ -44,7 +44,7 @@ export declare const DataStoreIssuanceBrandingEntities: (typeof ImageDimensionsE
|
|
|
44
44
|
export declare const DataStoreStatusListEntities: (typeof StatusListEntryEntity | typeof StatusListEntity)[];
|
|
45
45
|
export declare const DataStoreEventLoggerEntities: (typeof AuditEventEntity)[];
|
|
46
46
|
export declare const DataStoreDigitalCredentialEntities: (typeof DigitalCredentialEntity)[];
|
|
47
|
-
export declare const
|
|
47
|
+
export declare const DataStoreMachineStateEntities: (typeof MachineStateInfoEntity)[];
|
|
48
48
|
export declare const DataStoreEntities: (typeof StatusListEntryEntity | typeof StatusListEntity | typeof CorrelationIdentifierEntity | typeof IdentityMetadataItemEntity | typeof PartyTypeEntity | typeof PartyEntity | typeof BaseContactEntity | typeof PartyRelationshipEntity | typeof ConnectionEntity | typeof BaseConfigEntity | typeof ImageDimensionsEntity | typeof ImageAttributesEntity | typeof TextAttributesEntity | typeof BaseLocaleBrandingEntity | typeof CredentialBrandingEntity | typeof IssuerBrandingEntity | typeof MachineStateInfoEntity | typeof AuditEventEntity | typeof DigitalCredentialEntity)[];
|
|
49
49
|
export { BaseConfigEntity, ConnectionEntity, PartyEntity, CorrelationIdentifierEntity, DidAuthConfigEntity, IdentityEntity, IdentityMetadataItemEntity, OpenIdConfigEntity, BackgroundAttributesEntity, CredentialBrandingEntity, ImageAttributesEntity, ImageDimensionsEntity, BaseLocaleBrandingEntity, IssuerBrandingEntity, TextAttributesEntity, CredentialLocaleBrandingEntity, IssuerLocaleBrandingEntity, ElectronicAddressEntity, PhysicalAddressEntity, backgroundAttributesEntityFrom, credentialBrandingEntityFrom, imageAttributesEntityFrom, imageDimensionsEntityFrom, issuerBrandingEntityFrom, textAttributesEntityFrom, issuerLocaleBrandingEntityFrom, credentialLocaleBrandingEntityFrom, IStatusListEntity, IStatusListEntryEntity, StatusListEntity, StatusListEntryEntity, AuditEventEntity, auditEventEntityFrom, DigitalCredentialEntity, digitalCredentialFrom, digitalCredentialsFrom, nonPersistedDigitalCredentialEntityFromAddArgs, MachineStateInfoEntity, };
|
|
50
50
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sDAAsD,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAA;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAA;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAA;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,MAAM,wDAAwD,CAAA;AACnI,OAAO,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAA;AAC7H,OAAO,EAAE,8BAA8B,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAA;AAC/I,OAAO,EAAE,qBAAqB,E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GAChC,MAAM,cAAc,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,8BAA8B,CAAA;AAE5C,eAAO,MAAM,wBAAwB,0OAgBpC,CAAA;AAED,eAAO,MAAM,iCAAiC,iMAU7C,CAAA;AAED,eAAO,MAAM,2BAA2B,4DAA4C,CAAA;AAEpF,eAAO,MAAM,4BAA4B,6BAAqB,CAAA;AAE9D,eAAO,MAAM,kCAAkC,oCAA4B,CAAA;AAE3E,eAAO,MAAM,6BAA6B,mCAA2B,CAAA;AAGrE,eAAO,MAAM,iBAAiB,4jBAO7B,CAAA;AAED,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,8BAA8B,EAC9B,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,8BAA8B,EAC9B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,8CAA8C,EAC9C,sBAAsB,GACvB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.StatusListEntity = exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.PhysicalAddressEntity = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.
|
|
17
|
+
exports.StatusListEntity = exports.credentialLocaleBrandingEntityFrom = exports.issuerLocaleBrandingEntityFrom = exports.textAttributesEntityFrom = exports.issuerBrandingEntityFrom = exports.imageDimensionsEntityFrom = exports.imageAttributesEntityFrom = exports.credentialBrandingEntityFrom = exports.backgroundAttributesEntityFrom = exports.PhysicalAddressEntity = exports.ElectronicAddressEntity = exports.IssuerLocaleBrandingEntity = exports.CredentialLocaleBrandingEntity = exports.TextAttributesEntity = exports.IssuerBrandingEntity = exports.BaseLocaleBrandingEntity = exports.ImageDimensionsEntity = exports.ImageAttributesEntity = exports.CredentialBrandingEntity = exports.BackgroundAttributesEntity = exports.OpenIdConfigEntity = exports.IdentityMetadataItemEntity = exports.IdentityEntity = exports.DidAuthConfigEntity = exports.CorrelationIdentifierEntity = exports.PartyEntity = exports.ConnectionEntity = exports.BaseConfigEntity = exports.DataStoreEntities = exports.DataStoreMachineStateEntities = exports.DataStoreDigitalCredentialEntities = exports.DataStoreEventLoggerEntities = exports.DataStoreStatusListEntities = exports.DataStoreIssuanceBrandingEntities = exports.DataStoreContactEntities = exports.DataStoreMachineStateMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreMigrations = exports.MachineStateStore = exports.IAbstractMachineStateStore = exports.EventLoggerStore = exports.AbstractEventLoggerStore = exports.StatusListStore = exports.IssuanceBrandingStore = exports.AbstractIssuanceBrandingStore = exports.AbstractContactStore = exports.ContactStore = void 0;
|
|
18
18
|
exports.MachineStateInfoEntity = exports.nonPersistedDigitalCredentialEntityFromAddArgs = exports.digitalCredentialsFrom = exports.digitalCredentialFrom = exports.DigitalCredentialEntity = exports.auditEventEntityFrom = exports.AuditEventEntity = exports.StatusListEntryEntity = void 0;
|
|
19
19
|
const BaseConfigEntity_1 = require("./entities/contact/BaseConfigEntity");
|
|
20
20
|
Object.defineProperty(exports, "BaseConfigEntity", { enumerable: true, get: function () { return BaseConfigEntity_1.BaseConfigEntity; } });
|
|
@@ -96,17 +96,17 @@ var AbstractEventLoggerStore_1 = require("./eventLogger/AbstractEventLoggerStore
|
|
|
96
96
|
Object.defineProperty(exports, "AbstractEventLoggerStore", { enumerable: true, get: function () { return AbstractEventLoggerStore_1.AbstractEventLoggerStore; } });
|
|
97
97
|
var EventLoggerStore_1 = require("./eventLogger/EventLoggerStore");
|
|
98
98
|
Object.defineProperty(exports, "EventLoggerStore", { enumerable: true, get: function () { return EventLoggerStore_1.EventLoggerStore; } });
|
|
99
|
-
var
|
|
100
|
-
Object.defineProperty(exports, "
|
|
101
|
-
var
|
|
102
|
-
Object.defineProperty(exports, "
|
|
99
|
+
var IAbstractMachineStateStore_1 = require("./machineState/IAbstractMachineStateStore");
|
|
100
|
+
Object.defineProperty(exports, "IAbstractMachineStateStore", { enumerable: true, get: function () { return IAbstractMachineStateStore_1.IAbstractMachineStateStore; } });
|
|
101
|
+
var MachineStateStore_1 = require("./machineState/MachineStateStore");
|
|
102
|
+
Object.defineProperty(exports, "MachineStateStore", { enumerable: true, get: function () { return MachineStateStore_1.MachineStateStore; } });
|
|
103
103
|
var migrations_1 = require("./migrations");
|
|
104
104
|
Object.defineProperty(exports, "DataStoreMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMigrations; } });
|
|
105
105
|
Object.defineProperty(exports, "DataStoreEventLoggerMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreEventLoggerMigrations; } });
|
|
106
106
|
Object.defineProperty(exports, "DataStoreContactMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreContactMigrations; } });
|
|
107
107
|
Object.defineProperty(exports, "DataStoreIssuanceBrandingMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreIssuanceBrandingMigrations; } });
|
|
108
108
|
Object.defineProperty(exports, "DataStoreStatusListMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreStatusListMigrations; } });
|
|
109
|
-
Object.defineProperty(exports, "
|
|
109
|
+
Object.defineProperty(exports, "DataStoreMachineStateMigrations", { enumerable: true, get: function () { return migrations_1.DataStoreMachineStateMigrations; } });
|
|
110
110
|
__exportStar(require("./types"), exports);
|
|
111
111
|
__exportStar(require("./utils/contact/MappingUtils"), exports);
|
|
112
112
|
exports.DataStoreContactEntities = [
|
|
@@ -140,7 +140,7 @@ exports.DataStoreIssuanceBrandingEntities = [
|
|
|
140
140
|
exports.DataStoreStatusListEntities = [StatusList2021Entity_1.StatusListEntity, StatusList2021EntryEntity_1.StatusListEntryEntity];
|
|
141
141
|
exports.DataStoreEventLoggerEntities = [AuditEventEntity_1.AuditEventEntity];
|
|
142
142
|
exports.DataStoreDigitalCredentialEntities = [DigitalCredentialEntity_1.DigitalCredentialEntity];
|
|
143
|
-
exports.
|
|
143
|
+
exports.DataStoreMachineStateEntities = [MachineStateInfoEntity_1.MachineStateInfoEntity];
|
|
144
144
|
// All entities combined if a party wants to enable them all at once
|
|
145
145
|
exports.DataStoreEntities = [
|
|
146
146
|
...exports.DataStoreContactEntities,
|
|
@@ -148,6 +148,6 @@ exports.DataStoreEntities = [
|
|
|
148
148
|
...exports.DataStoreStatusListEntities,
|
|
149
149
|
...exports.DataStoreEventLoggerEntities,
|
|
150
150
|
...exports.DataStoreDigitalCredentialEntities,
|
|
151
|
-
...exports.
|
|
151
|
+
...exports.DataStoreMachineStateEntities,
|
|
152
152
|
];
|
|
153
153
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0EAAsE;AAqGpE,iGArGO,mCAAgB,OAqGP;AApGlB,mGAA+F;AAgH7F,yGAhHO,mDAAwB,OAgHP;AA/G1B,4EAAwE;AACxE,0EAAsE;AAmGpE,iGAnGO,mCAAgB,OAmGP;AAlGlB,gEAA4D;AAmG1D,4FAnGO,yBAAW,OAmGP;AAlGb,gGAA4F;AAmG1F,4GAnGO,yDAA2B,OAmGP;AAlG7B,gFAA4E;AAmG1E,oGAnGO,yCAAmB,OAmGP;AAlGrB,sEAAkE;AAmGhE,+FAnGO,+BAAc,OAmGP;AAlGhB,8FAA0F;AAmGxF,2GAnGO,uDAA0B,OAmGP;AAlG5B,8EAA0E;AAmGxE,mGAnGO,uCAAkB,OAmGP;AAlGpB,uGAAmI;AAmGjI,2GAnGO,uDAA0B,OAmGP;AAW1B,+GA9GmC,2DAA8B,OA8GnC;AA7GhC,mGAA6H;AAmG3H,yGAnGO,mDAAwB,OAmGP;AAWxB,6GA9GiC,uDAA4B,OA8GjC;AA7G9B,+GAA+I;AAwG7I,+GAxGO,+DAA8B,OAwGP;AAW9B,mHAnHuC,mEAAkC,OAmHvC;AAlHpC,6FAAoH;AAkGlH,sGAlGO,6CAAqB,OAkGP;AAWrB,0GA7G8B,iDAAyB,OA6G9B;AA5G3B,6FAAoH;AAkGlH,sGAlGO,6CAAqB,OAkGP;AAWrB,0GA7G8B,iDAAyB,OA6G9B;AA5G3B,uGAAmI;AAsGjI,2GAtGO,uDAA0B,OAsGP;AAS1B,+GA/GmC,2DAA8B,OA+GnC;AA9GhC,2FAAiH;AAkG/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B,mDAAwB;IACxB,2CAAoB;IACpB,2CAAoB;IACpB,+DAA8B;IAC9B,uDAA0B;CAC3B,CAAA;AAEY,QAAA,2BAA2B,GAAG,CAAC,uCAAgB,EAAE,iDAAqB,CAAC,CAAA;AAEvE,QAAA,4BAA4B,GAAG,CAAC,mCAAgB,CAAC,CAAA;AAEjD,QAAA,kCAAkC,GAAG,CAAC,iDAAuB,CAAC,CAAA;AAE9D,QAAA,6BAA6B,GAAG,CAAC,+CAAsB,CAAC,CAAA;AAErE,oEAAoE;AACvD,QAAA,iBAAiB,GAAG;IAC/B,GAAG,gCAAwB;IAC3B,GAAG,yCAAiC;IACpC,GAAG,mCAA2B;IAC9B,GAAG,oCAA4B;IAC/B,GAAG,0CAAkC;IACrC,GAAG,qCAA6B;CACjC,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { StoreMachineStateDeleteExpiredArgs, StoreMachineStateDeleteArgs, StoreMachineStatesFindActiveArgs, StoreFindMachineStatesArgs, StoreMachineStatePersistArgs, StoreMachineStateInfo, StoreMachineStateGetArgs } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an abstract class for storing machine states.
|
|
4
|
+
* This class provides methods for persisting, retrieving, and deleting machine states.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class IAbstractMachineStateStore {
|
|
9
|
+
/**
|
|
10
|
+
* Persists the machine state.
|
|
11
|
+
*
|
|
12
|
+
* @param {StoreMachineStatePersistArgs} state - The object containing the machine state to persist.
|
|
13
|
+
* @return {Promise<StoreMachineStateInfo>} - A Promise that resolves to the information about the persisted machine state.
|
|
14
|
+
*/
|
|
15
|
+
abstract persistMachineState(state: StoreMachineStatePersistArgs): Promise<StoreMachineStateInfo>;
|
|
16
|
+
/**
|
|
17
|
+
* Finds active machine states based on the given arguments.
|
|
18
|
+
*
|
|
19
|
+
* @param {StoreMachineStatesFindActiveArgs} args - The arguments for finding active machine states.
|
|
20
|
+
* @return {Promise<Array<StoreMachineStateInfo>>} - A promise that resolves with an array of active machine states.
|
|
21
|
+
*/
|
|
22
|
+
abstract findActiveMachineStates(args: StoreMachineStatesFindActiveArgs): Promise<Array<StoreMachineStateInfo>>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves the state of a particular machine.
|
|
25
|
+
*
|
|
26
|
+
* @param {StoreMachineStateGetArgs} args - The arguments for retrieving the machine state.
|
|
27
|
+
* @returns {Promise<StoreMachineStateInfo>} - A promise that resolves to the machine state information.
|
|
28
|
+
*/
|
|
29
|
+
abstract getMachineState(args: StoreMachineStateGetArgs): Promise<StoreMachineStateInfo>;
|
|
30
|
+
/**
|
|
31
|
+
* Finds the machine states based on the given arguments.
|
|
32
|
+
*
|
|
33
|
+
* @param {StoreFindMachineStatesArgs} [args] - The arguments to filter the machine states.
|
|
34
|
+
* @returns {Promise<Array<StoreMachineStateInfo>>} - A promise that resolves to an array of machine state information.
|
|
35
|
+
*/
|
|
36
|
+
abstract findMachineStates(args?: StoreFindMachineStatesArgs): Promise<Array<StoreMachineStateInfo>>;
|
|
37
|
+
/**
|
|
38
|
+
* Deletes a machine state.
|
|
39
|
+
*
|
|
40
|
+
* @param {StoreMachineStateDeleteArgs} args - The arguments for deleting the machine state.
|
|
41
|
+
* @return {Promise<boolean>} - A promise that resolves to a boolean indicating if the machine state was successfully deleted or not.
|
|
42
|
+
*/
|
|
43
|
+
abstract deleteMachineState(args: StoreMachineStateDeleteArgs): Promise<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Deletes expired machine states from the database.
|
|
46
|
+
*
|
|
47
|
+
* @param {StoreMachineStateDeleteExpiredArgs} args - The arguments for deleting expired machine states.
|
|
48
|
+
* @return {Promise<number>} - A promise that resolves to the number of deleted machine states.
|
|
49
|
+
*/
|
|
50
|
+
abstract deleteExpiredMachineStates(args: StoreMachineStateDeleteExpiredArgs): Promise<number>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=IAbstractMachineStateStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAbstractMachineStateStore.d.ts","sourceRoot":"","sources":["../../src/machineState/IAbstractMachineStateStore.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,4BAA4B,EAC5B,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,UAAU,CAAA;AAEjB;;;;;GAKG;AACH,8BAAsB,0BAA0B;IAC9C;;;;;OAKG;IACH,QAAQ,CAAC,mBAAmB,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAEjG;;;;;OAKG;IACH,QAAQ,CAAC,uBAAuB,CAAC,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAE/G;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAExF;;;;;OAKG;IACH,QAAQ,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAEpG;;;;;OAKG;IACH,QAAQ,CAAC,kBAAkB,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,OAAO,CAAC;IAEhF;;;;;OAKG;IACH,QAAQ,CAAC,0BAA0B,CAAC,IAAI,EAAE,kCAAkC,GAAG,OAAO,CAAC,MAAM,CAAC;CAC/F"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IAbstractMachineStateStore = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Represents an abstract class for storing machine states.
|
|
6
|
+
* This class provides methods for persisting, retrieving, and deleting machine states.
|
|
7
|
+
*
|
|
8
|
+
* @interface
|
|
9
|
+
*/
|
|
10
|
+
class IAbstractMachineStateStore {
|
|
11
|
+
}
|
|
12
|
+
exports.IAbstractMachineStateStore = IAbstractMachineStateStore;
|
|
13
|
+
//# sourceMappingURL=IAbstractMachineStateStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAbstractMachineStateStore.js","sourceRoot":"","sources":["../../src/machineState/IAbstractMachineStateStore.ts"],"names":[],"mappings":";;;AAUA;;;;;GAKG;AACH,MAAsB,0BAA0B;CAgD/C;AAhDD,gEAgDC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OrPromise } from '@sphereon/ssi-types';
|
|
2
|
+
import { DataSource } from 'typeorm';
|
|
3
|
+
import { MachineStateInfoEntity } from '../entities/machineState/MachineStateInfoEntity';
|
|
4
|
+
import { StoreFindMachineStatesArgs, StoreMachineStateDeleteArgs, StoreMachineStateDeleteExpiredArgs, StoreMachineStateGetArgs, StoreMachineStateInfo, StoreMachineStatePersistArgs, StoreMachineStatesFindActiveArgs } from '../types';
|
|
5
|
+
import { IAbstractMachineStateStore } from './IAbstractMachineStateStore';
|
|
6
|
+
/**
|
|
7
|
+
* Represents a data store for managing machine states.
|
|
8
|
+
*/
|
|
9
|
+
export declare class MachineStateStore extends IAbstractMachineStateStore {
|
|
10
|
+
private readonly _dbConnection;
|
|
11
|
+
constructor(dbConnection: OrPromise<DataSource>);
|
|
12
|
+
persistMachineState(state: StoreMachineStatePersistArgs): Promise<StoreMachineStateInfo>;
|
|
13
|
+
findActiveMachineStates(args: StoreMachineStatesFindActiveArgs): Promise<Array<StoreMachineStateInfo>>;
|
|
14
|
+
findMachineStates(args?: StoreFindMachineStatesArgs): Promise<Array<StoreMachineStateInfo>>;
|
|
15
|
+
getMachineState(args: StoreMachineStateGetArgs): Promise<StoreMachineStateInfo>;
|
|
16
|
+
deleteMachineState(args: StoreMachineStateDeleteArgs): Promise<boolean>;
|
|
17
|
+
deleteExpiredMachineStates(args: StoreMachineStateDeleteExpiredArgs): Promise<number>;
|
|
18
|
+
protected static machineInfoFrom: (machineStateInfoEntity: MachineStateInfoEntity) => StoreMachineStateInfo;
|
|
19
|
+
static machineStateInfoEntityFrom: (machineStateInfo: StoreMachineStateInfo | StoreMachineStatePersistArgs) => MachineStateInfoEntity;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=MachineStateStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MachineStateStore.d.ts","sourceRoot":"","sources":["../../src/machineState/MachineStateStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE/C,OAAO,EAAY,UAAU,EAA2C,MAAM,SAAS,CAAA;AAEvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAA;AACxF,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,kCAAkC,EAClC,wBAAwB,EACxB,qBAAqB,EACrB,4BAA4B,EAC5B,gCAAgC,EACjC,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAIzE;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,0BAA0B;IAC/D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAuB;gBAEzC,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC;IAKzC,mBAAmB,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAyBxF,uBAAuB,CAAC,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAgCtG,iBAAiB,CAAC,IAAI,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;IAW3F,eAAe,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAM/E,kBAAkB,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,OAAO,CAAC;IAgBvE,0BAA0B,CAAC,IAAI,EAAE,kCAAkC,GAAG,OAAO,CAAC,MAAM,CAAC;IAqB3F,SAAS,CAAC,MAAM,CAAC,eAAe,2BAA4B,sBAAsB,KAAG,qBAAqB,CAGzG;IAED,MAAM,CAAC,0BAA0B,qBAAsB,qBAAqB,GAAG,4BAA4B,KAAG,sBAAsB,CAInI;CACF"}
|
|
@@ -12,13 +12,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.MachineStateStore = void 0;
|
|
16
16
|
const debug_1 = __importDefault(require("debug"));
|
|
17
17
|
const typeorm_1 = require("typeorm");
|
|
18
18
|
const MachineStateInfoEntity_1 = require("../entities/machineState/MachineStateInfoEntity");
|
|
19
|
-
const
|
|
20
|
-
const debug = (0, debug_1.default)('sphereon:ssi-sdk:machine-state
|
|
21
|
-
|
|
19
|
+
const IAbstractMachineStateStore_1 = require("./IAbstractMachineStateStore");
|
|
20
|
+
const debug = (0, debug_1.default)('sphereon:ssi-sdk:machine-state:store');
|
|
21
|
+
/**
|
|
22
|
+
* Represents a data store for managing machine states.
|
|
23
|
+
*/
|
|
24
|
+
class MachineStateStore extends IAbstractMachineStateStore_1.IAbstractMachineStateStore {
|
|
22
25
|
constructor(dbConnection) {
|
|
23
26
|
super();
|
|
24
27
|
this._dbConnection = dbConnection;
|
|
@@ -26,57 +29,75 @@ class MachineStateInfoStore extends IAbstractMachineStateInfoStore_1.IAbstractMa
|
|
|
26
29
|
persistMachineState(state) {
|
|
27
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
28
31
|
const connection = yield this._dbConnection;
|
|
29
|
-
|
|
30
|
-
|
|
32
|
+
const { machineName, instanceId, tenantId } = state;
|
|
33
|
+
debug(`Executing persistMachineState for machine ${machineName}, instance ${instanceId}, tenantId: ${tenantId}...`);
|
|
34
|
+
const entity = MachineStateStore.machineStateInfoEntityFrom(state);
|
|
35
|
+
const existing = yield connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).findOne({
|
|
36
|
+
where: {
|
|
37
|
+
instanceId: state.instanceId,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
if (existing && existing.updatedCount > state.updatedCount) {
|
|
41
|
+
return Promise.reject(new Error(`Updating machine state with an older version is not allowed. Machine ${existing.machineName}, last count: ${existing.updatedCount}, new count: ${existing.updatedCount}, last updated: ${existing.updatedAt}, current: ${new Date()}, instance: ${existing.instanceId}`));
|
|
42
|
+
}
|
|
43
|
+
// No need for a transaction. This is a single entity. We don't want to be surprised by an isolation level hiding the state from others
|
|
44
|
+
const result = yield connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).save(entity, { transaction: false });
|
|
45
|
+
debug(`Done persistMachineState machine ${machineName}, instance ${instanceId}, tenantId: ${tenantId}`);
|
|
46
|
+
return MachineStateStore.machineInfoFrom(result);
|
|
31
47
|
});
|
|
32
48
|
}
|
|
33
49
|
findActiveMachineStates(args) {
|
|
34
50
|
var _a;
|
|
35
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const { tenantId,
|
|
52
|
+
const { tenantId, machineName, instanceId } = args;
|
|
37
53
|
const connection = yield this._dbConnection;
|
|
38
|
-
debug(`Executing findActiveMachineStates query with
|
|
54
|
+
debug(`Executing findActiveMachineStates query with machineName: ${machineName}, tenantId: ${tenantId}`);
|
|
39
55
|
const queryBuilder = connection
|
|
40
56
|
.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity)
|
|
41
57
|
.createQueryBuilder('state')
|
|
42
58
|
.where('state.completedAt IS NULL')
|
|
43
59
|
.andWhere(new typeorm_1.Brackets((qb) => {
|
|
44
60
|
qb.where('state.expiresAt IS NULL').orWhere('state.expiresAt > :now', { now: new Date() });
|
|
45
|
-
}))
|
|
46
|
-
|
|
61
|
+
}));
|
|
62
|
+
if (instanceId) {
|
|
63
|
+
queryBuilder.andWhere('state.instanceId = :instanceId', { instanceId });
|
|
64
|
+
}
|
|
47
65
|
if (tenantId) {
|
|
48
66
|
queryBuilder.andWhere('state.tenantId = :tenantId', { tenantId });
|
|
49
67
|
}
|
|
50
|
-
if (
|
|
51
|
-
queryBuilder.andWhere('state.
|
|
68
|
+
if (machineName) {
|
|
69
|
+
queryBuilder.andWhere('state.machineName = :machineName', { machineName });
|
|
52
70
|
}
|
|
53
|
-
return (_a = (yield queryBuilder
|
|
71
|
+
return ((_a = (yield queryBuilder
|
|
72
|
+
.orderBy('state.updatedAt', 'DESC')
|
|
73
|
+
.getMany()
|
|
74
|
+
.then((entities) => entities.map(MachineStateStore.machineInfoFrom)))) !== null && _a !== void 0 ? _a : []);
|
|
54
75
|
});
|
|
55
76
|
}
|
|
56
77
|
findMachineStates(args) {
|
|
57
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
79
|
const connection = yield this._dbConnection;
|
|
59
80
|
debug('findMachineStates', args);
|
|
60
|
-
const result = yield connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).find(Object.assign({}, ((args === null || args === void 0 ? void 0 : args.filter) && { where: args === null || args === void 0 ? void 0 : args.filter })));
|
|
61
|
-
return result.map((event) =>
|
|
81
|
+
const result = yield connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).find(Object.assign(Object.assign({}, ((args === null || args === void 0 ? void 0 : args.filter) && { where: args === null || args === void 0 ? void 0 : args.filter })), { transaction: false }));
|
|
82
|
+
return result.map((event) => MachineStateStore.machineInfoFrom(event));
|
|
62
83
|
});
|
|
63
84
|
}
|
|
64
85
|
getMachineState(args) {
|
|
65
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
87
|
const connection = yield this._dbConnection;
|
|
67
88
|
debug('getMachineState', args);
|
|
68
|
-
return connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).findOneOrFail({ where: {
|
|
89
|
+
return connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).findOneOrFail({ where: { instanceId: args.instanceId } });
|
|
69
90
|
});
|
|
70
91
|
}
|
|
71
92
|
deleteMachineState(args) {
|
|
72
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
debug(`Executing deleteMachineState query with id: ${args.
|
|
74
|
-
if (!args.
|
|
75
|
-
throw new Error('No
|
|
94
|
+
debug(`Executing deleteMachineState query with id: ${args.instanceId}`);
|
|
95
|
+
if (!args.instanceId) {
|
|
96
|
+
throw new Error('No instanceId parameter is provided.');
|
|
76
97
|
}
|
|
77
98
|
try {
|
|
78
99
|
const connection = yield this._dbConnection;
|
|
79
|
-
const result = yield connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).delete(args.
|
|
100
|
+
const result = yield connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).delete(args.instanceId);
|
|
80
101
|
return result.affected != null && result.affected > 0;
|
|
81
102
|
}
|
|
82
103
|
catch (error) {
|
|
@@ -86,29 +107,31 @@ class MachineStateInfoStore extends IAbstractMachineStateInfoStore_1.IAbstractMa
|
|
|
86
107
|
});
|
|
87
108
|
}
|
|
88
109
|
deleteExpiredMachineStates(args) {
|
|
110
|
+
var _a;
|
|
89
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const { machineName, tenantId, deleteDoneStates } = args;
|
|
90
113
|
debug(`Executing deleteExpiredMachineStates query with params: ${JSON.stringify(args)}`);
|
|
91
114
|
try {
|
|
92
115
|
const connection = yield this._dbConnection;
|
|
93
|
-
const deleteCriteria = Object.assign({ expiresAt: (0, typeorm_1.LessThan)(new Date()) }, (
|
|
116
|
+
const deleteCriteria = Object.assign(Object.assign(Object.assign(Object.assign({}, (machineName && { machineName })), (tenantId && { tenantId })), (!deleteDoneStates && { expiresAt: (0, typeorm_1.LessThan)(new Date()) })), (deleteDoneStates && { completedAt: (0, typeorm_1.Not)((0, typeorm_1.IsNull)()) }));
|
|
94
117
|
const result = yield connection.getRepository(MachineStateInfoEntity_1.MachineStateInfoEntity).delete(deleteCriteria);
|
|
95
|
-
return result.affected
|
|
118
|
+
return (_a = result.affected) !== null && _a !== void 0 ? _a : 0;
|
|
96
119
|
}
|
|
97
120
|
catch (error) {
|
|
98
121
|
debug(`Error deleting machine info: ${error}`);
|
|
99
|
-
return
|
|
122
|
+
return Promise.reject(new Error(`Error deleting expired machine states for machine type ${machineName}`));
|
|
100
123
|
}
|
|
101
124
|
});
|
|
102
125
|
}
|
|
103
126
|
}
|
|
104
|
-
exports.
|
|
105
|
-
|
|
106
|
-
|
|
127
|
+
exports.MachineStateStore = MachineStateStore;
|
|
128
|
+
MachineStateStore.machineInfoFrom = (machineStateInfoEntity) => {
|
|
129
|
+
// We are making sure no entity function get copied
|
|
130
|
+
return JSON.parse(JSON.stringify(machineStateInfoEntity));
|
|
107
131
|
};
|
|
108
|
-
|
|
132
|
+
MachineStateStore.machineStateInfoEntityFrom = (machineStateInfo) => {
|
|
109
133
|
const entity = new MachineStateInfoEntity_1.MachineStateInfoEntity();
|
|
110
134
|
Object.assign(entity, machineStateInfo);
|
|
111
|
-
entity.state = JSON.stringify(machineStateInfo.state);
|
|
112
135
|
return entity;
|
|
113
136
|
};
|
|
114
|
-
//# sourceMappingURL=
|
|
137
|
+
//# sourceMappingURL=MachineStateStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MachineStateStore.js","sourceRoot":"","sources":["../../src/machineState/MachineStateStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,qCAAuF;AAEvF,4FAAwF;AAUxF,6EAAyE;AAEzE,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,sCAAsC,CAAC,CAAA;AAE3D;;GAEG;AACH,MAAa,iBAAkB,SAAQ,uDAA0B;IAG/D,YAAY,YAAmC;QAC7C,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,aAAa,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AA;IAC3C,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IACvC,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
@@ -49,7 +49,7 @@ class CreateMachineStateStore1708098041262 {
|
|
|
49
49
|
}
|
|
50
50
|
down(queryRunner) {
|
|
51
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
debug('migration: reverting
|
|
52
|
+
debug('migration: reverting machine state tables');
|
|
53
53
|
const dbType = queryRunner.connection.driver.options.type;
|
|
54
54
|
switch (dbType) {
|
|
55
55
|
case 'postgres': {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"7-CreateMachineStateStore.js","sourceRoot":"","sources":["../../../src/migrations/generic/7-CreateMachineStateStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,8GAAwG;AACxG,4GAAsG;AAEtG,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAAa,oCAAoC;IAAjD;QACE,SAAI,GAAG,sCAAsC,CAAA;IAyD/C,CAAC;IAvDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,0CAA0C,CAAC,CAAA;YACjD,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YAEvE,QAAQ,MAAM,EAAE;gBACd,KAAK,UAAU,CAAC,CAAC;oBACf,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,MAAM,GAAG,GAAyC,IAAI,6EAAoC,EAAE,CAAA;oBAC5F,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD,KAAK,QAAQ,CAAC;gBACd,KAAK,MAAM,CAAC;gBACZ,KAAK,cAAc,CAAC,CAAC;oBACnB,KAAK,CAAC,0CAA0C,CAAC,CAAA;oBACjD,MAAM,GAAG,GAAyC,IAAI,6EAAoC,EAAE,CAAA;oBAC5F,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,4FAA4F,MAAM,+GAA+G,CAClN,CAAA;aACJ;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"7-CreateMachineStateStore.js","sourceRoot":"","sources":["../../../src/migrations/generic/7-CreateMachineStateStore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,8GAAwG;AACxG,4GAAsG;AAEtG,MAAM,KAAK,GAAmB,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAElE,MAAa,oCAAoC;IAAjD;QACE,SAAI,GAAG,sCAAsC,CAAA;IAyD/C,CAAC;IAvDc,EAAE,CAAC,WAAwB;;YACtC,KAAK,CAAC,0CAA0C,CAAC,CAAA;YACjD,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YAEvE,QAAQ,MAAM,EAAE;gBACd,KAAK,UAAU,CAAC,CAAC;oBACf,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,MAAM,GAAG,GAAyC,IAAI,6EAAoC,EAAE,CAAA;oBAC5F,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD,KAAK,QAAQ,CAAC;gBACd,KAAK,MAAM,CAAC;gBACZ,KAAK,cAAc,CAAC,CAAC;oBACnB,KAAK,CAAC,0CAA0C,CAAC,CAAA;oBACjD,MAAM,GAAG,GAAyC,IAAI,6EAAoC,EAAE,CAAA;oBAC5F,MAAM,GAAG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAA;oBACzB,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,4FAA4F,MAAM,+GAA+G,CAClN,CAAA;aACJ;QACH,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,KAAK,CAAC,2CAA2C,CAAC,CAAA;YAClD,MAAM,MAAM,GAAiB,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA;YAEvE,QAAQ,MAAM,EAAE;gBACd,KAAK,UAAU,CAAC,CAAC;oBACf,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,MAAM,GAAG,GAAyC,IAAI,6EAAoC,EAAE,CAAA;oBAC5F,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD,KAAK,QAAQ,CAAC;gBACd,KAAK,MAAM,CAAC;gBACZ,KAAK,cAAc,CAAC,CAAC;oBACnB,KAAK,CAAC,0CAA0C,CAAC,CAAA;oBACjD,MAAM,GAAG,GAAyC,IAAI,6EAAoC,EAAE,CAAA;oBAC5F,MAAM,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;oBAC3B,KAAK,CAAC,+BAA+B,CAAC,CAAA;oBACtC,OAAM;iBACP;gBACD;oBACE,OAAO,OAAO,CAAC,MAAM,CACnB,4FAA4F,MAAM,+GAA+G,CAClN,CAAA;aACJ;QACH,CAAC;KAAA;CACF;AA1DD,oFA0DC"}
|
|
@@ -16,6 +16,6 @@ export declare const DataStoreIssuanceBrandingMigrations: (typeof CreateIssuance
|
|
|
16
16
|
export declare const DataStoreStatusListMigrations: (typeof CreateStatusList1693866470000)[];
|
|
17
17
|
export declare const DataStoreEventLoggerMigrations: (typeof CreateAuditEvents1701635835330)[];
|
|
18
18
|
export declare const DataStoreDigitalCredentialMigrations: (typeof CreateDigitalCredential1708525189000)[];
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const DataStoreMachineStateMigrations: (typeof CreateMachineStateStore1708098041262)[];
|
|
20
20
|
export declare const DataStoreMigrations: (typeof CreateContacts1659463079429)[];
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAA;AACtE,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAElF;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAA6D,CAAA;AACpG,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAC5E,eAAO,MAAM,8BAA8B,2CAAmC,CAAA;AAC9E,eAAO,MAAM,oCAAoC,iDAAyC,CAAA;AAC1F,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,4BAA4B,CAAA;AAEhF,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAA;AACtE,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAClF,OAAO,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AAElF;;;;;;GAMG;AAGH,eAAO,MAAM,0BAA0B,wCAA6D,CAAA;AACpG,eAAO,MAAM,mCAAmC,gDAAwC,CAAA;AACxF,eAAO,MAAM,6BAA6B,0CAAkC,CAAA;AAC5E,eAAO,MAAM,8BAA8B,2CAAmC,CAAA;AAC9E,eAAO,MAAM,oCAAoC,iDAAyC,CAAA;AAC1F,eAAO,MAAM,+BAA+B,iDAAyC,CAAA;AAGrF,eAAO,MAAM,mBAAmB,wCAO/B,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataStoreMigrations = exports.
|
|
3
|
+
exports.DataStoreMigrations = exports.DataStoreMachineStateMigrations = exports.DataStoreDigitalCredentialMigrations = exports.DataStoreEventLoggerMigrations = exports.DataStoreStatusListMigrations = exports.DataStoreIssuanceBrandingMigrations = exports.DataStoreContactMigrations = void 0;
|
|
4
4
|
const _1_CreateContacts_1 = require("./1-CreateContacts");
|
|
5
5
|
const _2_CreateIssuanceBranding_1 = require("./2-CreateIssuanceBranding");
|
|
6
6
|
const _3_CreateContacts_1 = require("./3-CreateContacts");
|
|
@@ -21,7 +21,7 @@ exports.DataStoreIssuanceBrandingMigrations = [_2_CreateIssuanceBranding_1.Creat
|
|
|
21
21
|
exports.DataStoreStatusListMigrations = [_4_CreateStatusList_1.CreateStatusList1693866470000];
|
|
22
22
|
exports.DataStoreEventLoggerMigrations = [_5_CreateAuditEvents_1.CreateAuditEvents1701635835330];
|
|
23
23
|
exports.DataStoreDigitalCredentialMigrations = [_6_CreateDigitalCredential_1.CreateDigitalCredential1708525189000];
|
|
24
|
-
exports.
|
|
24
|
+
exports.DataStoreMachineStateMigrations = [_7_CreateMachineStateStore_1.CreateMachineStateStore1708098041262];
|
|
25
25
|
// All migrations together
|
|
26
26
|
exports.DataStoreMigrations = [
|
|
27
27
|
...exports.DataStoreContactMigrations,
|
|
@@ -29,6 +29,6 @@ exports.DataStoreMigrations = [
|
|
|
29
29
|
...exports.DataStoreStatusListMigrations,
|
|
30
30
|
...exports.DataStoreEventLoggerMigrations,
|
|
31
31
|
...exports.DataStoreDigitalCredentialMigrations,
|
|
32
|
-
...exports.
|
|
32
|
+
...exports.DataStoreMachineStateMigrations,
|
|
33
33
|
];
|
|
34
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0EAAgF;AAChF,0DAAgE;AAChE,8DAAoE;AACpE,gEAAsE;AACtE,4EAAkF;AAClF,4EAAkF;AAElF;;;;;;GAMG;AAEH,yJAAyJ;AAC5I,QAAA,0BAA0B,GAAG,CAAC,+CAA2B,EAAE,+CAA2B,CAAC,CAAA;AACvF,QAAA,mCAAmC,GAAG,CAAC,+DAAmC,CAAC,CAAA;AAC3E,QAAA,6BAA6B,GAAG,CAAC,mDAA6B,CAAC,CAAA;AAC/D,QAAA,8BAA8B,GAAG,CAAC,qDAA8B,CAAC,CAAA;AACjE,QAAA,oCAAoC,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAC7E,QAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/migrations/generic/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgE;AAChE,0EAAgF;AAChF,0DAAgE;AAChE,8DAAoE;AACpE,gEAAsE;AACtE,4EAAkF;AAClF,4EAAkF;AAElF;;;;;;GAMG;AAEH,yJAAyJ;AAC5I,QAAA,0BAA0B,GAAG,CAAC,+CAA2B,EAAE,+CAA2B,CAAC,CAAA;AACvF,QAAA,mCAAmC,GAAG,CAAC,+DAAmC,CAAC,CAAA;AAC3E,QAAA,6BAA6B,GAAG,CAAC,mDAA6B,CAAC,CAAA;AAC/D,QAAA,8BAA8B,GAAG,CAAC,qDAA8B,CAAC,CAAA;AACjE,QAAA,oCAAoC,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAC7E,QAAA,+BAA+B,GAAG,CAAC,iEAAoC,CAAC,CAAA;AAErF,0BAA0B;AACb,QAAA,mBAAmB,GAAG;IACjC,GAAG,kCAA0B;IAC7B,GAAG,2CAAmC;IACtC,GAAG,qCAA6B;IAChC,GAAG,sCAA8B;IACjC,GAAG,4CAAoC;IACvC,GAAG,uCAA+B;CACnC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreDigitalCredentialMigrations,
|
|
1
|
+
export { DataStoreMigrations, DataStoreEventLoggerMigrations, DataStoreContactMigrations, DataStoreIssuanceBrandingMigrations, DataStoreStatusListMigrations, DataStoreDigitalCredentialMigrations, DataStoreMachineStateMigrations, } from './generic';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,oCAAoC,EACpC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,8BAA8B,EAC9B,0BAA0B,EAC1B,mCAAmC,EACnC,6BAA6B,EAC7B,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,WAAW,CAAA"}
|