nodecommons-esm-models-step-flow 0.0.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/index.d.mts +4 -0
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -0
- package/dist/models/commons-step-flow-condition.model.d.mts +10 -0
- package/dist/models/commons-step-flow-condition.model.mjs +6 -0
- package/dist/models/commons-step-flow-condition.model.mjs.map +1 -0
- package/dist/models/commons-step-flow-flow.model.d.mts +14 -0
- package/dist/models/commons-step-flow-flow.model.mjs +12 -0
- package/dist/models/commons-step-flow-flow.model.mjs.map +1 -0
- package/dist/models/commons-step-flow-step.model.d.mts +29 -0
- package/dist/models/commons-step-flow-step.model.mjs +42 -0
- package/dist/models/commons-step-flow-step.model.mjs.map +1 -0
- package/package.json +36 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TInternalStepFlowStepModelParamFields, TInternalStepFlowStepModelTypeFields, TInternalStepFlowStepModelValueFields, TInternalStepFlowStepModelDbValueFields, CommonsStepFlowStepModel } from './models/commons-step-flow-step.model.mjs';
|
|
2
|
+
import { CommonsStepFlowConditionModel, CommonsStepFlowConditionOrderedModel } from './models/commons-step-flow-condition.model.mjs';
|
|
3
|
+
import { CommonsStepFlowFlowModel } from './models/commons-step-flow-flow.model.mjs';
|
|
4
|
+
export { TInternalStepFlowStepModelParamFields, TInternalStepFlowStepModelTypeFields, TInternalStepFlowStepModelValueFields, TInternalStepFlowStepModelDbValueFields, CommonsStepFlowStepModel, CommonsStepFlowConditionModel, CommonsStepFlowConditionOrderedModel, CommonsStepFlowFlowModel };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CommonsStepFlowStepModel } from './models/commons-step-flow-step.model.mjs';
|
|
2
|
+
import { CommonsStepFlowConditionModel, CommonsStepFlowConditionOrderedModel } from './models/commons-step-flow-condition.model.mjs';
|
|
3
|
+
import { CommonsStepFlowFlowModel } from './models/commons-step-flow-flow.model.mjs';
|
|
4
|
+
export { CommonsStepFlowStepModel, CommonsStepFlowConditionModel, CommonsStepFlowConditionOrderedModel, CommonsStepFlowFlowModel };
|
|
5
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,EAKL,wBAAwB,EACzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,6BAA6B,EAAE,oCAAoC,EAAE,MAAM,gDAAgD,CAAC;AACrI,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAKN,wBAAwB,EACxB,6BAA6B,EAC7B,oCAAoC,EACpC,wBAAwB,EACxB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICommonsSecondClass, ICommonsOrientatedOrdered, ICommonsFirstClass } from 'tscommons-esm-models';
|
|
2
|
+
import { ICommonsStepFlowCondition, ICommonsStepFlowFlow, ICommonsStepFlowStep } from 'tscommons-esm-models-step-flow';
|
|
3
|
+
import { TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues } from 'nodecommons-esm-database';
|
|
4
|
+
import { CommonsFirstClass, CommonsSecondClass, CommonsOrientatedOrdered } from 'nodecommons-esm-models';
|
|
5
|
+
import { CommonsStepFlowStepModel } from './commons-step-flow-step.model.mjs';
|
|
6
|
+
import { CommonsStepFlowFlowModel } from './commons-step-flow-flow.model.mjs';
|
|
7
|
+
export declare abstract class CommonsStepFlowConditionModel<ModelI extends ICommonsSecondClass<FlowI> & ICommonsStepFlowCondition<FlowI, StepI>, ModelParamsT extends TCommonsDatabaseParams, ModelTypesT extends TCommonsDatabaseTypes, ModelDbValuesT extends TCommonsDatabaseDbValues, FlowI extends ICommonsOrientatedOrdered<StepI> & ICommonsStepFlowFlow<StepI>, FlowClassT extends CommonsStepFlowFlowModel<FlowI, StepI, StepClassT>, StepI extends ICommonsSecondClass<ICommonsFirstClass> & ICommonsStepFlowStep, StepClassT extends CommonsStepFlowStepModel<StepI, TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues, ICommonsFirstClass, CommonsFirstClass<ICommonsFirstClass, TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues>>> extends CommonsSecondClass<ModelI, ModelParamsT, ModelTypesT, ModelDbValuesT, FlowI, FlowClassT> {
|
|
8
|
+
}
|
|
9
|
+
export declare abstract class CommonsStepFlowConditionOrderedModel<ModelI extends ICommonsOrientatedOrdered<FlowI> & ICommonsStepFlowCondition<FlowI, StepI>, ModelParamsT extends TCommonsDatabaseParams, ModelTypesT extends TCommonsDatabaseTypes, ModelDbValuesT extends TCommonsDatabaseDbValues, FlowI extends ICommonsOrientatedOrdered<StepI> & ICommonsStepFlowFlow<StepI>, FlowClassT extends CommonsStepFlowFlowModel<FlowI, StepI, StepClassT>, StepI extends ICommonsSecondClass<ICommonsFirstClass> & ICommonsStepFlowStep, StepClassT extends CommonsStepFlowStepModel<StepI, TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues, ICommonsFirstClass, CommonsFirstClass<ICommonsFirstClass, TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues>>> extends CommonsOrientatedOrdered<ModelI, ModelParamsT, ModelTypesT, ModelDbValuesT, FlowI, FlowClassT> {
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CommonsSecondClass, CommonsOrientatedOrdered } from 'nodecommons-esm-models';
|
|
2
|
+
export class CommonsStepFlowConditionModel extends CommonsSecondClass {
|
|
3
|
+
}
|
|
4
|
+
export class CommonsStepFlowConditionOrderedModel extends CommonsOrientatedOrdered {
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=commons-step-flow-condition.model.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commons-step-flow-condition.model.mjs","sourceRoot":"","sources":["../../src/models/commons-step-flow-condition.model.mts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAKzG,MAAM,OAAgB,6BAyBpB,SAAQ,kBAOT;CAAG;AAEJ,MAAM,OAAgB,oCAyBpB,SAAQ,wBAOT;CAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICommonsSecondClass, ICommonsFirstClass } from 'tscommons-esm-models';
|
|
2
|
+
import { ICommonsStepFlowFlow, ICommonsStepFlowStep } from 'tscommons-esm-models-step-flow';
|
|
3
|
+
import { TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues, CommonsDatabaseParam, CommonsDatabaseTypeId, CommonsSqlDatabaseService, ICommonsCredentials } from 'nodecommons-esm-database';
|
|
4
|
+
import { CommonsFirstClass, CommonsOrientatedOrdered } from 'nodecommons-esm-models';
|
|
5
|
+
import { CommonsStepFlowStepModel } from './commons-step-flow-step.model.mjs';
|
|
6
|
+
export declare abstract class CommonsStepFlowFlowModel<ModelI extends ICommonsSecondClass<StepI> & ICommonsStepFlowFlow<StepI>, StepI extends ICommonsSecondClass<ICommonsFirstClass> & ICommonsStepFlowStep, StepClassT extends CommonsStepFlowStepModel<StepI, TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues, ICommonsFirstClass, CommonsFirstClass<ICommonsFirstClass, TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues>>> extends CommonsOrientatedOrdered<ModelI, {
|
|
7
|
+
outstep: CommonsDatabaseParam<number, number>;
|
|
8
|
+
}, {
|
|
9
|
+
outstep: CommonsDatabaseTypeId;
|
|
10
|
+
}, {
|
|
11
|
+
outstep: number;
|
|
12
|
+
}, StepI, StepClassT> {
|
|
13
|
+
constructor(database: CommonsSqlDatabaseService<ICommonsCredentials>, tableName: string, stepModel: StepClassT, stepField: string);
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonsDatabaseTypeId, ECommonsDatabaseTypeNull, CommonsDatabaseForeignKey, ECommonsDatabaseReferentialAction } from 'nodecommons-esm-database';
|
|
2
|
+
import { CommonsOrientatedOrdered } from 'nodecommons-esm-models';
|
|
3
|
+
export class CommonsStepFlowFlowModel extends CommonsOrientatedOrdered {
|
|
4
|
+
constructor(database, tableName, stepModel, stepField) {
|
|
5
|
+
super(database, tableName, {
|
|
6
|
+
outstep: new CommonsDatabaseTypeId(ECommonsDatabaseTypeNull.NOT_NULL)
|
|
7
|
+
}, stepModel, stepField, {
|
|
8
|
+
outstep: new CommonsDatabaseForeignKey(stepModel.name, stepModel.idField, ECommonsDatabaseReferentialAction.CASCADE, ECommonsDatabaseReferentialAction.CASCADE)
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=commons-step-flow-flow.model.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commons-step-flow-flow.model.mjs","sourceRoot":"","sources":["../../src/models/commons-step-flow-flow.model.mts"],"names":[],"mappings":"AAGA,OAAO,EAKL,qBAAqB,EAGrB,wBAAwB,EACxB,yBAAyB,EACzB,iCAAiC,EAClC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAqB,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAIrF,MAAM,OAAgB,wBAgBpB,SAAQ,wBAaT;IACA,YACE,QAAwD,EACxD,SAAiB,EACjB,SAAqB,EACrB,SAAiB;QAElB,KAAK,CACH,QAAQ,EACR,SAAS,EACT;YACE,OAAO,EAAE,IAAI,qBAAqB,CAAC,wBAAwB,CAAC,QAAQ,CAAC;SACtE,EACD,SAAS,EACT,SAAS,EACT;YACE,OAAO,EAAE,IAAI,yBAAyB,CACpC,SAAS,CAAC,IAAI,EACd,SAAS,CAAC,OAAO,EACjB,iCAAiC,CAAC,OAAO,EACzC,iCAAiC,CAAC,OAAO,CAC1C;SACF,CACF,CAAC;IACH,CAAC;CACD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ICommonsSecondClass, ICommonsFirstClass } from 'tscommons-esm-models';
|
|
2
|
+
import { ECommonsStepFlowStepType, ICommonsStepFlowStep } from 'tscommons-esm-models-step-flow';
|
|
3
|
+
import { CommonsDatabaseIndexKey, CommonsDatabaseParam, CommonsDatabaseTypeBase62BigId, CommonsDatabaseTypeEnum, CommonsDatabaseUniqueKey, CommonsSqlDatabaseService, ICommonsCredentials, TCommonsDatabaseDbValues, TCommonsDatabaseParams, TCommonsDatabaseTypes } from 'nodecommons-esm-database';
|
|
4
|
+
import { CommonsFirstClass, CommonsSecondClass, TCommonsModelForeignKeys } from 'nodecommons-esm-models';
|
|
5
|
+
export type TInternalStepFlowStepModelParamFields = {
|
|
6
|
+
type: CommonsDatabaseParam<string, string>;
|
|
7
|
+
uid: CommonsDatabaseParam<string, string>;
|
|
8
|
+
};
|
|
9
|
+
export type TInternalStepFlowStepModelTypeFields = {
|
|
10
|
+
type: CommonsDatabaseTypeEnum<ECommonsStepFlowStepType>;
|
|
11
|
+
uid: CommonsDatabaseTypeBase62BigId;
|
|
12
|
+
};
|
|
13
|
+
export type TInternalStepFlowStepModelValueFields = Pick<ICommonsStepFlowStep, 'type' | 'uid'>;
|
|
14
|
+
export type TInternalStepFlowStepModelDbValueFields = TInternalStepFlowStepModelValueFields;
|
|
15
|
+
export declare abstract class CommonsStepFlowStepModel<ModelI extends ICommonsSecondClass<FirstClassI> & ICommonsStepFlowStep, ModelParamsT extends TCommonsDatabaseParams, ModelTypesT extends TCommonsDatabaseTypes, ModelDbValuesT extends TCommonsDatabaseDbValues, FirstClassI extends ICommonsFirstClass, FirstClassClassT extends CommonsFirstClass<FirstClassI, TCommonsDatabaseParams, TCommonsDatabaseTypes, TCommonsDatabaseDbValues>> extends CommonsSecondClass<ModelI, ModelParamsT & TInternalStepFlowStepModelParamFields, ModelTypesT & TInternalStepFlowStepModelTypeFields, ModelDbValuesT & TInternalStepFlowStepModelDbValueFields, FirstClassI, FirstClassClassT> {
|
|
16
|
+
constructor(database: CommonsSqlDatabaseService<ICommonsCredentials>, tableName: string, structure: ModelTypesT & {
|
|
17
|
+
id?: never;
|
|
18
|
+
type?: never;
|
|
19
|
+
uid?: never;
|
|
20
|
+
}, firstClass: FirstClassClassT, firstClassField: string, foreignKeys?: TCommonsModelForeignKeys, uniqueKeys?: CommonsDatabaseUniqueKey[], indexKeys?: CommonsDatabaseIndexKey[]);
|
|
21
|
+
protected preprepare(): void;
|
|
22
|
+
getByUid(uid: string): Promise<ModelI | undefined>;
|
|
23
|
+
getRootByFirstClass(firstClass: FirstClassI): Promise<ModelI | undefined>;
|
|
24
|
+
create(parent: FirstClassI, type: ECommonsStepFlowStepType, data: Partial<ModelI> & {
|
|
25
|
+
id?: never;
|
|
26
|
+
type?: never;
|
|
27
|
+
uid?: never;
|
|
28
|
+
}): Promise<ModelI>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { commonsBase62GenerateRandomId } from 'tscommons-esm-core';
|
|
2
|
+
import { ECOMMONS_STEP_FLOW_STEP_TYPES, ECommonsStepFlowStepType, fromECommonsStepFlowStepType, toECommonsStepFlowStepType } from 'tscommons-esm-models-step-flow';
|
|
3
|
+
import { CommonsDatabaseParam, CommonsDatabaseTypeBase62BigId, CommonsDatabaseTypeEnum, CommonsDatabaseTypeId, ECommonsDatabaseTypeNull } from 'nodecommons-esm-database';
|
|
4
|
+
import { CommonsUniqueNamedHelper, CommonsManaged } from 'nodecommons-esm-models-adamantine';
|
|
5
|
+
import { CommonsSecondClass } from 'nodecommons-esm-models';
|
|
6
|
+
export class CommonsStepFlowStepModel extends CommonsSecondClass {
|
|
7
|
+
constructor(database, tableName, structure, firstClass, firstClassField, foreignKeys, uniqueKeys, indexKeys) {
|
|
8
|
+
super(database, tableName, {
|
|
9
|
+
...structure,
|
|
10
|
+
type: new CommonsDatabaseTypeEnum(ECOMMONS_STEP_FLOW_STEP_TYPES, fromECommonsStepFlowStepType, toECommonsStepFlowStepType, ECommonsDatabaseTypeNull.NOT_NULL, ECommonsStepFlowStepType.DATA, undefined, `${tableName}__ECommonsStepFlowStepType`),
|
|
11
|
+
uid: new CommonsDatabaseTypeBase62BigId(ECommonsDatabaseTypeNull.NOT_NULL)
|
|
12
|
+
}, firstClass, firstClassField, foreignKeys, CommonsUniqueNamedHelper.extendUniqueKeysForFirstClass(tableName, CommonsManaged.uidField, uniqueKeys), indexKeys);
|
|
13
|
+
}
|
|
14
|
+
preprepare() {
|
|
15
|
+
super.preprepare();
|
|
16
|
+
CommonsUniqueNamedHelper
|
|
17
|
+
.build(this.database)
|
|
18
|
+
.buildPreprepareForFirstClass(this, CommonsManaged.uidField, true);
|
|
19
|
+
}
|
|
20
|
+
async getByUid(uid) {
|
|
21
|
+
return CommonsUniqueNamedHelper
|
|
22
|
+
.build(this.database)
|
|
23
|
+
.getFirstClassByName(this, uid, CommonsManaged.uidField);
|
|
24
|
+
}
|
|
25
|
+
async getRootByFirstClass(firstClass) {
|
|
26
|
+
const params = {
|
|
27
|
+
type: new CommonsDatabaseParam(ECommonsStepFlowStepType.ROOT, this.structure['type'])
|
|
28
|
+
};
|
|
29
|
+
params[this.firstClassField] = new CommonsDatabaseParam(firstClass.id, new CommonsDatabaseTypeId(ECommonsDatabaseTypeNull.NOT_NULL));
|
|
30
|
+
const rows = await this.database
|
|
31
|
+
.selectRowsByConditions(this.name, this.structure, params);
|
|
32
|
+
if (rows.length === 0)
|
|
33
|
+
return undefined;
|
|
34
|
+
return rows[0];
|
|
35
|
+
}
|
|
36
|
+
async create(parent, type, data) {
|
|
37
|
+
data.type = type;
|
|
38
|
+
data.uid = commonsBase62GenerateRandomId();
|
|
39
|
+
return await this.insertForFirstClass(parent, data);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=commons-step-flow-step.model.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commons-step-flow-step.model.mjs","sourceRoot":"","sources":["../../src/models/commons-step-flow-step.model.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,4BAA4B,EAE5B,0BAA0B,EAC3B,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAEL,oBAAoB,EACpB,8BAA8B,EAC9B,uBAAuB,EACvB,qBAAqB,EAGrB,wBAAwB,EAKzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAqB,kBAAkB,EAA4B,MAAM,wBAAwB,CAAC;AAazG,MAAM,OAAgB,wBAapB,SAAQ,kBAOT;IACA,YACE,QAAwD,EACxD,SAAiB,EACjB,SAIC,EACD,UAA4B,EAC5B,eAAuB,EACvB,WAAsC,EACtC,UAAuC,EACvC,SAAqC;QAEtC,KAAK,CACH,QAAQ,EACR,SAAS,EACT;YACE,GAAG,SAAS;YACZ,IAAI,EAAE,IAAI,uBAAuB,CAC/B,6BAA6B,EAC7B,4BAA4B,EAC5B,0BAA0B,EAC1B,wBAAwB,CAAC,QAAQ,EACjC,wBAAwB,CAAC,IAAI,EAC7B,SAAS,EACT,GAAG,SAAS,4BAA4B,CACzC;YACD,GAAG,EAAE,IAAI,8BAA8B,CAAC,wBAAwB,CAAC,QAAQ,CAAC;SAC3E,EACD,UAAU,EACV,eAAe,EACf,WAAW,EACX,wBAAwB,CAAC,6BAA6B,CACpD,SAAS,EACT,cAAc,CAAC,QAAQ,EACvB,UAAU,CACX,EACD,SAAS,CACV,CAAC;IACH,CAAC;IAEkB,UAAU;QAC5B,KAAK,CAAC,UAAU,EAAE,CAAC;QAEnB,wBAAwB;aACrB,KAAK,CAOJ,IAAI,CAAC,QAAQ,CAAC;aACf,4BAA4B,CAC3B,IAAI,EACJ,cAAc,CAAC,QAAQ,EACvB,IAAI,CACL,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,QAAQ,CAAC,GAAW;QAChC,OAAO,wBAAwB;aAC5B,KAAK,CAOJ,IAAI,CAAC,QAAQ,CAAC;aACf,mBAAmB,CAClB,IAAI,EACJ,GAAG,EACH,cAAc,CAAC,QAAQ,CACxB,CAAC;IACL,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,UAAuB;QACvD,MAAM,MAAM,GAAiF;YAC3F,IAAI,EAAE,IAAI,oBAAoB,CAAC,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACtF,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,qBAAqB,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAErI,MAAM,IAAI,GAAc,MAAM,IAAI,CAAC,QAAQ;aACxC,sBAAsB,CACrB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,SAAS,EACd,MAAM,CACP,CAAC;QAEJ,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,SAAS,CAAC;QAExC,OAAO,IAAI,CAAC,CAAC,CAAW,CAAC;IAC1B,CAAC;IAEM,KAAK,CAAC,MAAM,CACjB,MAAmB,EACnB,IAA8B,EAC9B,IAAiE;QAEjE,IAA8C,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3D,IAA8C,CAAC,GAAG,GAAG,6BAA6B,EAAE,CAAC;QAEtF,OAAO,MAAM,IAAI,CAAC,mBAAmB,CACnC,MAAM,EACN,IAAI,CACL,CAAC;IACH,CAAC;CACD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nodecommons-esm-models-step-flow",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"tsc": "./node_modules/typescript/bin/tsc",
|
|
7
|
+
"preprepare": "rm -rf ./dist; php ~/Dev/etim.php src/ && npm run tsc",
|
|
8
|
+
"publish-major": "rm -rf dist; npm run tsc && npx eslint . && npm run preprepare && npm version major && npm install && npm publish && git add . && git commit -m 'publish'",
|
|
9
|
+
"publish-minor": "rm -rf dist; npm run tsc && npx eslint . && npm run preprepare && npm version minor && npm install && npm publish && git add . && git commit -m 'publish'",
|
|
10
|
+
"publish-patch": "rm -rf dist; npm run tsc && npx eslint . && npm run preprepare && npm version patch && npm install && npm publish && git add . && git commit -m 'publish'"
|
|
11
|
+
},
|
|
12
|
+
"main": "dist/index.mjs",
|
|
13
|
+
"types": "dist/index.d.mjs",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"author": "Pete Morris",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@stylistic/eslint-plugin-ts": "^2.11.0",
|
|
19
|
+
"@types/node": "^22.10.0",
|
|
20
|
+
"eslint-plugin-import": "^2.31.0",
|
|
21
|
+
"eslint-plugin-prefer-arrow-functions": "^3.4.1",
|
|
22
|
+
"typescript": "^5.7.2",
|
|
23
|
+
"typescript-eslint": "^8.16.0"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist/**/*"
|
|
27
|
+
],
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"nodecommons-esm-database": "^0.0.8",
|
|
30
|
+
"nodecommons-esm-models": "^0.0.17",
|
|
31
|
+
"nodecommons-esm-models-adamantine": "^0.0.3",
|
|
32
|
+
"tscommons-esm-core": "^0.0.4",
|
|
33
|
+
"tscommons-esm-models": "^0.0.7",
|
|
34
|
+
"tscommons-esm-models-step-flow": "^0.0.7"
|
|
35
|
+
}
|
|
36
|
+
}
|