@decaf-ts/for-fabric 0.12.8 → 0.13.0
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/for-fabric.cjs +1 -1
- package/dist/for-fabric.cjs.map +1 -1
- package/dist/for-fabric.js +1 -1
- package/dist/for-fabric.js.map +1 -1
- package/lib/cjs/cli-module.cjs +109 -4
- package/lib/cjs/cli-module.cjs.map +1 -1
- package/lib/cjs/client/FabricClientAdapter.cjs +134 -63
- package/lib/cjs/client/FabricClientAdapter.cjs.map +1 -1
- package/lib/cjs/client/FabricClientContext.cjs +30 -0
- package/lib/cjs/client/FabricClientContext.cjs.map +1 -0
- package/lib/cjs/client/FabricClientDispatch.cjs +1 -1
- package/lib/cjs/client/FabricClientDispatch.cjs.map +1 -1
- package/lib/cjs/client/FabricClientRepository.cjs +1 -1
- package/lib/cjs/client/FabricClientRepository.cjs.map +1 -1
- package/lib/cjs/client/FabricClientStatement.cjs +3 -2
- package/lib/cjs/client/FabricClientStatement.cjs.map +1 -1
- package/lib/cjs/client/constants.cjs +1 -0
- package/lib/cjs/client/constants.cjs.map +1 -1
- package/lib/cjs/client/index.cjs +1 -0
- package/lib/cjs/client/index.cjs.map +1 -1
- package/lib/cjs/client/indexes/generation.cjs +1 -13
- package/lib/cjs/client/indexes/generation.cjs.map +1 -1
- package/lib/cjs/contract/models/Audit.cjs +1 -3
- package/lib/cjs/contract/models/Audit.cjs.map +1 -1
- package/lib/cjs/contract/models/History.cjs +2 -76
- package/lib/cjs/contract/models/History.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherBatchShared.cjs +3 -238
- package/lib/cjs/contract/models/OtherBatchShared.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherLeaflet.cjs +5 -117
- package/lib/cjs/contract/models/OtherLeaflet.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherLeafletFile.cjs +2 -66
- package/lib/cjs/contract/models/OtherLeafletFile.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherMarket.cjs +2 -85
- package/lib/cjs/contract/models/OtherMarket.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherProduct.cjs +2 -78
- package/lib/cjs/contract/models/OtherProduct.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherProductImage.cjs +2 -60
- package/lib/cjs/contract/models/OtherProductImage.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherProductShared.cjs +2 -100
- package/lib/cjs/contract/models/OtherProductShared.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherProductStrength.cjs +2 -86
- package/lib/cjs/contract/models/OtherProductStrength.cjs.map +1 -1
- package/lib/cjs/contract/models/ProductStrength.cjs.map +1 -1
- package/lib/cjs/contract/models/SegregatedDocument.cjs +0 -4
- package/lib/cjs/contract/models/SegregatedDocument.cjs.map +1 -1
- package/lib/cjs/contract/models/decorators.cjs +0 -3
- package/lib/cjs/contract/models/decorators.cjs.map +1 -1
- package/lib/cjs/contract/trackedModels/OtherBatchShared.cjs +129 -0
- package/lib/cjs/contract/trackedModels/OtherBatchShared.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherProduct.cjs +1 -1
- package/lib/cjs/contract/trackedModels/OtherProduct.cjs.map +1 -1
- package/lib/cjs/contracts/ContractAdapter.cjs +39 -7
- package/lib/cjs/contracts/ContractAdapter.cjs.map +1 -1
- package/lib/cjs/contracts/MigrationContract.cjs +4 -5
- package/lib/cjs/contracts/MigrationContract.cjs.map +1 -1
- package/lib/cjs/contracts/crud/crud-contract.cjs +25 -21
- package/lib/cjs/contracts/crud/crud-contract.cjs.map +1 -1
- package/lib/cjs/shared/constants.cjs +4 -0
- package/lib/cjs/shared/constants.cjs.map +1 -1
- package/lib/cjs/shared/decorators.cjs +22 -1
- package/lib/cjs/shared/decorators.cjs.map +1 -1
- package/lib/cjs/shared/overrides/overrides.cjs +34 -0
- package/lib/cjs/shared/overrides/overrides.cjs.map +1 -1
- package/lib/cjs/version.cjs +16 -2
- package/lib/cjs/version.cjs.map +1 -1
- package/lib/esm/cli-module.js +109 -4
- package/lib/esm/cli-module.js.map +1 -1
- package/lib/esm/client/FabricClientAdapter.js +135 -64
- package/lib/esm/client/FabricClientAdapter.js.map +1 -1
- package/lib/esm/client/FabricClientContext.js +25 -0
- package/lib/esm/client/FabricClientContext.js.map +1 -0
- package/lib/esm/client/FabricClientDispatch.js +1 -1
- package/lib/esm/client/FabricClientDispatch.js.map +1 -1
- package/lib/esm/client/FabricClientRepository.js +1 -1
- package/lib/esm/client/FabricClientRepository.js.map +1 -1
- package/lib/esm/client/FabricClientStatement.js +3 -2
- package/lib/esm/client/FabricClientStatement.js.map +1 -1
- package/lib/esm/client/constants.js +1 -0
- package/lib/esm/client/constants.js.map +1 -1
- package/lib/esm/client/index.js +1 -0
- package/lib/esm/client/index.js.map +1 -1
- package/lib/esm/client/indexes/generation.js +1 -13
- package/lib/esm/client/indexes/generation.js.map +1 -1
- package/lib/esm/contract/index.js.map +1 -1
- package/lib/esm/contract/models/Audit.js +2 -4
- package/lib/esm/contract/models/Audit.js.map +1 -1
- package/lib/esm/contract/models/History.js +1 -71
- package/lib/esm/contract/models/History.js.map +1 -1
- package/lib/esm/contract/models/OtherBatchShared.js +1 -231
- package/lib/esm/contract/models/OtherBatchShared.js.map +1 -1
- package/lib/esm/contract/models/OtherLeaflet.js +2 -111
- package/lib/esm/contract/models/OtherLeaflet.js.map +1 -1
- package/lib/esm/contract/models/OtherLeafletFile.js +1 -61
- package/lib/esm/contract/models/OtherLeafletFile.js.map +1 -1
- package/lib/esm/contract/models/OtherMarket.js +1 -80
- package/lib/esm/contract/models/OtherMarket.js.map +1 -1
- package/lib/esm/contract/models/OtherProduct.js +1 -73
- package/lib/esm/contract/models/OtherProduct.js.map +1 -1
- package/lib/esm/contract/models/OtherProductImage.js +1 -55
- package/lib/esm/contract/models/OtherProductImage.js.map +1 -1
- package/lib/esm/contract/models/OtherProductShared.js +1 -95
- package/lib/esm/contract/models/OtherProductShared.js.map +1 -1
- package/lib/esm/contract/models/OtherProductStrength.js +1 -81
- package/lib/esm/contract/models/OtherProductStrength.js.map +1 -1
- package/lib/esm/contract/models/ProductStrength.js +1 -1
- package/lib/esm/contract/models/ProductStrength.js.map +1 -1
- package/lib/esm/contract/models/SegregatedDocument.js +1 -5
- package/lib/esm/contract/models/SegregatedDocument.js.map +1 -1
- package/lib/esm/contract/models/decorators.js +0 -3
- package/lib/esm/contract/models/decorators.js.map +1 -1
- package/lib/esm/contract/trackedModels/OtherBatchShared.js +120 -0
- package/lib/esm/contract/trackedModels/OtherBatchShared.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherProduct.js +2 -2
- package/lib/esm/contract/trackedModels/OtherProduct.js.map +1 -1
- package/lib/esm/contract/trackedModels/OtherProductStrength.js.map +1 -1
- package/lib/esm/contracts/ContractAdapter.js +40 -8
- package/lib/esm/contracts/ContractAdapter.js.map +1 -1
- package/lib/esm/contracts/FabricContractStatement.js.map +1 -1
- package/lib/esm/contracts/MigrationContract.js +4 -5
- package/lib/esm/contracts/MigrationContract.js.map +1 -1
- package/lib/esm/contracts/crud/crud-contract.js +27 -23
- package/lib/esm/contracts/crud/crud-contract.js.map +1 -1
- package/lib/esm/shared/constants.js +4 -0
- package/lib/esm/shared/constants.js.map +1 -1
- package/lib/esm/shared/decorators.js +17 -0
- package/lib/esm/shared/decorators.js.map +1 -1
- package/lib/esm/shared/overrides/overrides.js +35 -1
- package/lib/esm/shared/overrides/overrides.js.map +1 -1
- package/lib/esm/version.js +15 -1
- package/lib/esm/version.js.map +1 -1
- package/lib/types/client/FabricClientAdapter.d.cts +42 -33
- package/lib/types/client/FabricClientAdapter.d.mts +42 -33
- package/lib/types/client/FabricClientContext.d.cts +11 -0
- package/lib/types/client/FabricClientContext.d.mts +11 -0
- package/lib/types/client/FabricClientDispatch.d.cts +5 -5
- package/lib/types/client/FabricClientDispatch.d.mts +5 -5
- package/lib/types/client/FabricClientStatement.d.cts +6 -6
- package/lib/types/client/FabricClientStatement.d.mts +6 -6
- package/lib/types/client/index.d.cts +1 -0
- package/lib/types/client/index.d.mts +1 -0
- package/lib/types/client/types.d.cts +2 -0
- package/lib/types/client/types.d.mts +2 -0
- package/lib/types/contract/models/History.d.cts +1 -9
- package/lib/types/contract/models/History.d.mts +1 -9
- package/lib/types/contract/models/OtherBatchShared.d.cts +1 -55
- package/lib/types/contract/models/OtherBatchShared.d.mts +1 -55
- package/lib/types/contract/models/OtherLeaflet.d.cts +2 -16
- package/lib/types/contract/models/OtherLeaflet.d.mts +2 -16
- package/lib/types/contract/models/OtherLeafletFile.d.cts +1 -10
- package/lib/types/contract/models/OtherLeafletFile.d.mts +1 -10
- package/lib/types/contract/models/OtherMarket.d.cts +1 -13
- package/lib/types/contract/models/OtherMarket.d.mts +1 -13
- package/lib/types/contract/models/OtherProduct.d.cts +1 -12
- package/lib/types/contract/models/OtherProduct.d.mts +1 -12
- package/lib/types/contract/models/OtherProductImage.d.cts +1 -9
- package/lib/types/contract/models/OtherProductImage.d.mts +1 -9
- package/lib/types/contract/models/OtherProductShared.d.cts +1 -18
- package/lib/types/contract/models/OtherProductShared.d.mts +1 -18
- package/lib/types/contract/models/OtherProductStrength.d.cts +1 -12
- package/lib/types/contract/models/OtherProductStrength.d.mts +1 -12
- package/lib/types/contract/trackedModels/OtherBatchShared.d.cts +19 -0
- package/lib/types/contract/trackedModels/OtherBatchShared.d.mts +19 -0
- package/lib/types/contracts/ContractAdapter.d.cts +1 -0
- package/lib/types/contracts/ContractAdapter.d.mts +1 -0
- package/lib/types/contracts/FabricContractStatement.d.cts +2 -3
- package/lib/types/contracts/FabricContractStatement.d.mts +2 -3
- package/lib/types/contracts/MigrationContract.d.cts +1 -1
- package/lib/types/contracts/MigrationContract.d.mts +1 -1
- package/lib/types/contracts/crud/crud-contract.d.cts +3 -1
- package/lib/types/contracts/crud/crud-contract.d.mts +3 -1
- package/lib/types/contracts/types.d.cts +1 -0
- package/lib/types/contracts/types.d.mts +1 -0
- package/lib/types/shared/constants.d.cts +5 -1
- package/lib/types/shared/constants.d.mts +5 -1
- package/lib/types/shared/decorators.d.cts +9 -1
- package/lib/types/shared/decorators.d.mts +9 -1
- package/lib/types/shared/overrides/Model.d.cts +4 -0
- package/lib/types/shared/overrides/Model.d.mts +4 -0
- package/lib/types/version.d.cts +15 -1
- package/lib/types/version.d.mts +15 -1
- package/package.json +6 -4
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { OtherLeafletFile } from "./OtherLeafletFile.d.mts";
|
|
4
|
-
export declare class Leaflet extends BaseIdentifiedModel {
|
|
5
|
-
id: string;
|
|
6
|
-
productCode: string;
|
|
7
|
-
batchNumber?: string;
|
|
8
|
-
leafletType: string;
|
|
9
|
-
lang: string;
|
|
10
|
-
epiMarket: string;
|
|
11
|
-
xmlFileContent: string | OtherLeafletFile;
|
|
12
|
-
otherFilesContent: string[] | OtherLeafletFile[];
|
|
13
|
-
owner: string;
|
|
14
|
-
constructor(model?: ModelArg<Leaflet>);
|
|
15
|
-
compare<M extends Model>(other: M, ...exceptions: (keyof M)[]): Comparison<M> | undefined;
|
|
16
|
-
}
|
|
1
|
+
export { Leaflet } from "../trackedModels/OtherLeaflet.d.mts";
|
|
2
|
+
export { Leaflet as OtherLeaflet } from "../trackedModels/OtherLeaflet.d.mts";
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.cts";
|
|
3
|
-
export declare class OtherLeafletFile extends BaseIdentifiedModel {
|
|
4
|
-
id: string;
|
|
5
|
-
leafletId: string;
|
|
6
|
-
fileName: string;
|
|
7
|
-
fileContent: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
constructor(model?: ModelArg<OtherLeafletFile>);
|
|
10
|
-
}
|
|
1
|
+
export { OtherLeafletFile } from "../trackedModels/OtherLeafletFile.d.cts";
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.mts";
|
|
3
|
-
export declare class OtherLeafletFile extends BaseIdentifiedModel {
|
|
4
|
-
id: string;
|
|
5
|
-
leafletId: string;
|
|
6
|
-
fileName: string;
|
|
7
|
-
fileContent: string;
|
|
8
|
-
owner: string;
|
|
9
|
-
constructor(model?: ModelArg<OtherLeafletFile>);
|
|
10
|
-
}
|
|
1
|
+
export { OtherLeafletFile } from "../trackedModels/OtherLeafletFile.d.mts";
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.cts";
|
|
3
|
-
export declare class OtherMarket extends BaseIdentifiedModel {
|
|
4
|
-
id: string;
|
|
5
|
-
marketId: string;
|
|
6
|
-
productCode: string;
|
|
7
|
-
nationalCode?: string;
|
|
8
|
-
mahName?: string;
|
|
9
|
-
legalEntityName?: string;
|
|
10
|
-
mahAddress?: string;
|
|
11
|
-
counter?: number;
|
|
12
|
-
constructor(model?: ModelArg<OtherMarket>);
|
|
13
|
-
}
|
|
1
|
+
export { OtherMarket } from "../trackedModels/OtherMarket.d.cts";
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.mts";
|
|
3
|
-
export declare class OtherMarket extends BaseIdentifiedModel {
|
|
4
|
-
id: string;
|
|
5
|
-
marketId: string;
|
|
6
|
-
productCode: string;
|
|
7
|
-
nationalCode?: string;
|
|
8
|
-
mahName?: string;
|
|
9
|
-
legalEntityName?: string;
|
|
10
|
-
mahAddress?: string;
|
|
11
|
-
counter?: number;
|
|
12
|
-
constructor(model?: ModelArg<OtherMarket>);
|
|
13
|
-
}
|
|
1
|
+
export { OtherMarket } from "../trackedModels/OtherMarket.d.mts";
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.cts";
|
|
3
|
-
export declare class OtherProduct extends BaseIdentifiedModel {
|
|
4
|
-
productCode: string;
|
|
5
|
-
inventedName: string;
|
|
6
|
-
nameMedicinalProduct: string;
|
|
7
|
-
internalMaterialCode?: string;
|
|
8
|
-
productRecall: boolean;
|
|
9
|
-
counter?: number;
|
|
10
|
-
ownedBy?: string;
|
|
11
|
-
constructor(args?: ModelArg<OtherProduct>);
|
|
12
|
-
}
|
|
1
|
+
export { OtherProduct } from "../trackedModels/OtherProduct.d.cts";
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.mts";
|
|
3
|
-
export declare class OtherProduct extends BaseIdentifiedModel {
|
|
4
|
-
productCode: string;
|
|
5
|
-
inventedName: string;
|
|
6
|
-
nameMedicinalProduct: string;
|
|
7
|
-
internalMaterialCode?: string;
|
|
8
|
-
productRecall: boolean;
|
|
9
|
-
counter?: number;
|
|
10
|
-
ownedBy?: string;
|
|
11
|
-
constructor(args?: ModelArg<OtherProduct>);
|
|
12
|
-
}
|
|
1
|
+
export { OtherProduct } from "../trackedModels/OtherProduct.d.mts";
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.cts";
|
|
3
|
-
export declare class OtherProductImage extends BaseIdentifiedModel {
|
|
4
|
-
productCode: string;
|
|
5
|
-
content: string;
|
|
6
|
-
owner: string;
|
|
7
|
-
counter?: number;
|
|
8
|
-
constructor(model?: ModelArg<OtherProductImage>);
|
|
9
|
-
}
|
|
1
|
+
export { OtherProductImage } from "../trackedModels/OtherProductImage.d.cts";
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.mts";
|
|
3
|
-
export declare class OtherProductImage extends BaseIdentifiedModel {
|
|
4
|
-
productCode: string;
|
|
5
|
-
content: string;
|
|
6
|
-
owner: string;
|
|
7
|
-
counter?: number;
|
|
8
|
-
constructor(model?: ModelArg<OtherProductImage>);
|
|
9
|
-
}
|
|
1
|
+
export { OtherProductImage } from "../trackedModels/OtherProductImage.d.mts";
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.cts";
|
|
3
|
-
import { OtherProductStrength } from "./OtherProductStrength.d.cts";
|
|
4
|
-
import { OtherMarket } from "./OtherMarket.d.cts";
|
|
5
|
-
import { OtherProductImage } from "./OtherProductImage.d.cts";
|
|
6
|
-
export declare class OtherProductShared extends BaseIdentifiedModel {
|
|
7
|
-
productCode: string;
|
|
8
|
-
inventedName: string;
|
|
9
|
-
nameMedicinalProduct: string;
|
|
10
|
-
internalMaterialCode?: string;
|
|
11
|
-
productRecall: boolean;
|
|
12
|
-
imageData?: string | OtherProductImage;
|
|
13
|
-
counter?: number;
|
|
14
|
-
strengths: OtherProductStrength[];
|
|
15
|
-
markets: OtherMarket[];
|
|
16
|
-
ownedBy?: string;
|
|
17
|
-
constructor(args?: ModelArg<OtherProductShared>);
|
|
18
|
-
}
|
|
1
|
+
export { OtherProductShared } from "../trackedModels/OtherProductShared.d.cts";
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.mts";
|
|
3
|
-
import { OtherProductStrength } from "./OtherProductStrength.d.mts";
|
|
4
|
-
import { OtherMarket } from "./OtherMarket.d.mts";
|
|
5
|
-
import { OtherProductImage } from "./OtherProductImage.d.mts";
|
|
6
|
-
export declare class OtherProductShared extends BaseIdentifiedModel {
|
|
7
|
-
productCode: string;
|
|
8
|
-
inventedName: string;
|
|
9
|
-
nameMedicinalProduct: string;
|
|
10
|
-
internalMaterialCode?: string;
|
|
11
|
-
productRecall: boolean;
|
|
12
|
-
imageData?: string | OtherProductImage;
|
|
13
|
-
counter?: number;
|
|
14
|
-
strengths: OtherProductStrength[];
|
|
15
|
-
markets: OtherMarket[];
|
|
16
|
-
ownedBy?: string;
|
|
17
|
-
constructor(args?: ModelArg<OtherProductShared>);
|
|
18
|
-
}
|
|
1
|
+
export { OtherProductShared } from "../trackedModels/OtherProductShared.d.mts";
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.cts";
|
|
3
|
-
export declare class OtherProductStrength extends BaseIdentifiedModel {
|
|
4
|
-
id: string;
|
|
5
|
-
uuid: string;
|
|
6
|
-
productCode: string;
|
|
7
|
-
strength: string;
|
|
8
|
-
substance?: string;
|
|
9
|
-
legalEntityName?: string;
|
|
10
|
-
counter?: number;
|
|
11
|
-
constructor(model?: ModelArg<OtherProductStrength>);
|
|
12
|
-
}
|
|
1
|
+
export { OtherProductStrength } from "../trackedModels/OtherProductStrength.d.cts";
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.mts";
|
|
3
|
-
export declare class OtherProductStrength extends BaseIdentifiedModel {
|
|
4
|
-
id: string;
|
|
5
|
-
uuid: string;
|
|
6
|
-
productCode: string;
|
|
7
|
-
strength: string;
|
|
8
|
-
substance?: string;
|
|
9
|
-
legalEntityName?: string;
|
|
10
|
-
counter?: number;
|
|
11
|
-
constructor(model?: ModelArg<OtherProductStrength>);
|
|
12
|
-
}
|
|
1
|
+
export { OtherProductStrength } from "../trackedModels/OtherProductStrength.d.mts";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/BaseIdentifiedModel.d.cts";
|
|
3
|
+
export declare class OtherBatchShared extends BaseIdentifiedModel {
|
|
4
|
+
id: string;
|
|
5
|
+
productCode: string;
|
|
6
|
+
batchNumber: string;
|
|
7
|
+
expiryDate: Date;
|
|
8
|
+
importLicenseNumber?: string;
|
|
9
|
+
dateOfManufacturing?: string;
|
|
10
|
+
manufacturerName?: string;
|
|
11
|
+
manufacturerAddress1?: string;
|
|
12
|
+
manufacturerAddress2?: string;
|
|
13
|
+
manufacturerAddress3?: string;
|
|
14
|
+
manufacturerAddress4?: string;
|
|
15
|
+
manufacturerAddress5?: string;
|
|
16
|
+
batchRecall: boolean;
|
|
17
|
+
owner?: string;
|
|
18
|
+
constructor(model?: ModelArg<OtherBatchShared>);
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/BaseIdentifiedModel.d.mts";
|
|
3
|
+
export declare class OtherBatchShared extends BaseIdentifiedModel {
|
|
4
|
+
id: string;
|
|
5
|
+
productCode: string;
|
|
6
|
+
batchNumber: string;
|
|
7
|
+
expiryDate: Date;
|
|
8
|
+
importLicenseNumber?: string;
|
|
9
|
+
dateOfManufacturing?: string;
|
|
10
|
+
manufacturerName?: string;
|
|
11
|
+
manufacturerAddress1?: string;
|
|
12
|
+
manufacturerAddress2?: string;
|
|
13
|
+
manufacturerAddress3?: string;
|
|
14
|
+
manufacturerAddress4?: string;
|
|
15
|
+
manufacturerAddress5?: string;
|
|
16
|
+
batchRecall: boolean;
|
|
17
|
+
owner?: string;
|
|
18
|
+
constructor(model?: ModelArg<OtherBatchShared>);
|
|
19
|
+
}
|
|
@@ -274,6 +274,7 @@ export declare class FabricContractAdapter extends CouchDBAdapter<any, void, Fab
|
|
|
274
274
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD): FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>;
|
|
275
275
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: false): FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>;
|
|
276
276
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: true, overrides?: Partial<FlagsOf<FabricContractContext>>): Promise<FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>>;
|
|
277
|
+
private readTransientOverrides;
|
|
277
278
|
updateObservers(table: Constructor<any> | string, event: OperationKeys | BulkCrudOperationKeys | string, id: EventIds, ...args: ContextualArgs<FabricContractContext>): Promise<void>;
|
|
278
279
|
static parseError<E extends BaseError>(err: Error | string): E;
|
|
279
280
|
/**
|
|
@@ -274,6 +274,7 @@ export declare class FabricContractAdapter extends CouchDBAdapter<any, void, Fab
|
|
|
274
274
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD): FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>;
|
|
275
275
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: false): FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>;
|
|
276
276
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: true, overrides?: Partial<FlagsOf<FabricContractContext>>): Promise<FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>>;
|
|
277
|
+
private readTransientOverrides;
|
|
277
278
|
updateObservers(table: Constructor<any> | string, event: OperationKeys | BulkCrudOperationKeys | string, id: EventIds, ...args: ContextualArgs<FabricContractContext>): Promise<void>;
|
|
278
279
|
static parseError<E extends BaseError>(err: Error | string): E;
|
|
279
280
|
/**
|
|
@@ -2,8 +2,7 @@ import { CouchDBAdapter, MangoQuery } from "@decaf-ts/for-couchdb";
|
|
|
2
2
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
3
|
import { FabricContractContext } from "./ContractContext.d.cts";
|
|
4
4
|
import { CouchDBStatement } from "@decaf-ts/for-couchdb";
|
|
5
|
-
import { AdapterFlags, MaybeContextualArg } from "@decaf-ts/core";
|
|
6
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
+
import { AdapterFlags, ContextualArgs, MaybeContextualArg } from "@decaf-ts/core";
|
|
7
6
|
/**
|
|
8
7
|
* @description Statement wrapper for executing Mango queries within Fabric contracts
|
|
9
8
|
* @summary Bridges CouchDB-style queries to Fabric via the FabricContractAdapter, handling identity and primary key projection when needed.
|
|
@@ -30,7 +29,7 @@ import { Constructor } from "@decaf-ts/decoration";
|
|
|
30
29
|
*/
|
|
31
30
|
export declare class FabricStatement<M extends Model, R> extends CouchDBStatement<M, CouchDBAdapter<any, void, FabricContractContext>, R> {
|
|
32
31
|
constructor(adapter: CouchDBAdapter<any, void, FabricContractContext>, overrides?: Partial<AdapterFlags>);
|
|
33
|
-
protected executionPrefix(method: any, ...args: MaybeContextualArg<FabricContractContext>): Promise<[Constructor<M>, ...any[]
|
|
32
|
+
protected executionPrefix(method: any, ...args: MaybeContextualArg<FabricContractContext>): Promise<ContextualArgs<any, [import("@decaf-ts/decoration").Constructor<M>, ...any[]]>>;
|
|
34
33
|
protected build(): MangoQuery;
|
|
35
34
|
execute(...args: MaybeContextualArg<FabricContractContext>): Promise<R>;
|
|
36
35
|
}
|
|
@@ -2,8 +2,7 @@ import { CouchDBAdapter, MangoQuery } from "@decaf-ts/for-couchdb";
|
|
|
2
2
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
3
|
import { FabricContractContext } from "./ContractContext.d.mts";
|
|
4
4
|
import { CouchDBStatement } from "@decaf-ts/for-couchdb";
|
|
5
|
-
import { AdapterFlags, MaybeContextualArg } from "@decaf-ts/core";
|
|
6
|
-
import { Constructor } from "@decaf-ts/decoration";
|
|
5
|
+
import { AdapterFlags, ContextualArgs, MaybeContextualArg } from "@decaf-ts/core";
|
|
7
6
|
/**
|
|
8
7
|
* @description Statement wrapper for executing Mango queries within Fabric contracts
|
|
9
8
|
* @summary Bridges CouchDB-style queries to Fabric via the FabricContractAdapter, handling identity and primary key projection when needed.
|
|
@@ -30,7 +29,7 @@ import { Constructor } from "@decaf-ts/decoration";
|
|
|
30
29
|
*/
|
|
31
30
|
export declare class FabricStatement<M extends Model, R> extends CouchDBStatement<M, CouchDBAdapter<any, void, FabricContractContext>, R> {
|
|
32
31
|
constructor(adapter: CouchDBAdapter<any, void, FabricContractContext>, overrides?: Partial<AdapterFlags>);
|
|
33
|
-
protected executionPrefix(method: any, ...args: MaybeContextualArg<FabricContractContext>): Promise<[Constructor<M>, ...any[]
|
|
32
|
+
protected executionPrefix(method: any, ...args: MaybeContextualArg<FabricContractContext>): Promise<ContextualArgs<any, [import("@decaf-ts/decoration").Constructor<M>, ...any[]]>>;
|
|
34
33
|
protected build(): MangoQuery;
|
|
35
34
|
execute(...args: MaybeContextualArg<FabricContractContext>): Promise<R>;
|
|
36
35
|
}
|
|
@@ -9,7 +9,7 @@ export declare class MigrationContract extends Contract {
|
|
|
9
9
|
constructor();
|
|
10
10
|
protected get adapter(): FabricContractAdapter;
|
|
11
11
|
migrate(context: Ctx, reference: string, migrationArgs?: string): Promise<void>;
|
|
12
|
-
protected getRegisteredMigrations(
|
|
12
|
+
protected getRegisteredMigrations(): Array<{
|
|
13
13
|
class: any;
|
|
14
14
|
reference: string;
|
|
15
15
|
flavour: string;
|
|
@@ -9,7 +9,7 @@ export declare class MigrationContract extends Contract {
|
|
|
9
9
|
constructor();
|
|
10
10
|
protected get adapter(): FabricContractAdapter;
|
|
11
11
|
migrate(context: Ctx, reference: string, migrationArgs?: string): Promise<void>;
|
|
12
|
-
protected getRegisteredMigrations(
|
|
12
|
+
protected getRegisteredMigrations(): Array<{
|
|
13
13
|
class: any;
|
|
14
14
|
reference: string;
|
|
15
15
|
flavour: string;
|
|
@@ -11,6 +11,7 @@ import { Checkable, healthcheck } from "../../shared/interfaces/Checkable.d.cts"
|
|
|
11
11
|
import { Constructor } from "@decaf-ts/decoration";
|
|
12
12
|
import { FabricContractContext } from "../ContractContext.d.cts";
|
|
13
13
|
import { PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
14
|
+
import { FabricFlags } from "../../shared/index.d.cts";
|
|
14
15
|
/**
|
|
15
16
|
* @description Base contract class for CRUD operations in Fabric chaincode
|
|
16
17
|
* @summary Provides standard create, read, update, and delete operations for models in Fabric chaincode
|
|
@@ -113,6 +114,7 @@ export declare abstract class FabricCrudContract<M extends Model> extends Contra
|
|
|
113
114
|
*/
|
|
114
115
|
read(ctx: Ctx | FabricContractContext, key: PrimaryKeyType | string, ...args: any[]): Promise<M | string>;
|
|
115
116
|
protected getTransientData(ctx: FabricContractContext): any;
|
|
117
|
+
protected deserializeBulkModels(models: string): M[];
|
|
116
118
|
/**
|
|
117
119
|
* @description Updates a single model in the state database
|
|
118
120
|
* @summary Delegates to the repository's update method
|
|
@@ -196,5 +198,5 @@ export declare abstract class FabricCrudContract<M extends Model> extends Contra
|
|
|
196
198
|
protected ensureMirrorWritePermissions(ctx: FabricContractContext): void;
|
|
197
199
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD): FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>;
|
|
198
200
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: false): FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>;
|
|
199
|
-
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: true): Promise<FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>>;
|
|
201
|
+
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: true, overrides?: Partial<FabricFlags<any>>): Promise<FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>>;
|
|
200
202
|
}
|
|
@@ -11,6 +11,7 @@ import { Checkable, healthcheck } from "../../shared/interfaces/Checkable.d.mts"
|
|
|
11
11
|
import { Constructor } from "@decaf-ts/decoration";
|
|
12
12
|
import { FabricContractContext } from "../ContractContext.d.mts";
|
|
13
13
|
import { PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
14
|
+
import { FabricFlags } from "../../shared/index.d.mts";
|
|
14
15
|
/**
|
|
15
16
|
* @description Base contract class for CRUD operations in Fabric chaincode
|
|
16
17
|
* @summary Provides standard create, read, update, and delete operations for models in Fabric chaincode
|
|
@@ -113,6 +114,7 @@ export declare abstract class FabricCrudContract<M extends Model> extends Contra
|
|
|
113
114
|
*/
|
|
114
115
|
read(ctx: Ctx | FabricContractContext, key: PrimaryKeyType | string, ...args: any[]): Promise<M | string>;
|
|
115
116
|
protected getTransientData(ctx: FabricContractContext): any;
|
|
117
|
+
protected deserializeBulkModels(models: string): M[];
|
|
116
118
|
/**
|
|
117
119
|
* @description Updates a single model in the state database
|
|
118
120
|
* @summary Delegates to the repository's update method
|
|
@@ -196,5 +198,5 @@ export declare abstract class FabricCrudContract<M extends Model> extends Contra
|
|
|
196
198
|
protected ensureMirrorWritePermissions(ctx: FabricContractContext): void;
|
|
197
199
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD): FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>;
|
|
198
200
|
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: false): FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>;
|
|
199
|
-
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: true): Promise<FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>>;
|
|
201
|
+
protected logCtx<ARGS extends any[] = any[], METHOD extends MethodOrOperation = MethodOrOperation>(args: MaybeContextualArg<FabricContractContext, ARGS>, operation: METHOD, allowCreate: true, overrides?: Partial<FabricFlags<any>>): Promise<FabricContextualizedArgs<ARGS, METHOD extends string ? true : false>>;
|
|
200
202
|
}
|
|
@@ -25,6 +25,7 @@ export interface FabricContractFlags extends FabricFlags {
|
|
|
25
25
|
segregateRead?: string | string[];
|
|
26
26
|
forceSegregateWrite?: boolean;
|
|
27
27
|
fullySegregated?: boolean;
|
|
28
|
+
allowContextTransientMap?: boolean;
|
|
28
29
|
sequenceSegregation?: Map<string, {
|
|
29
30
|
fullySegregated: boolean;
|
|
30
31
|
collections: string[];
|
|
@@ -25,6 +25,7 @@ export interface FabricContractFlags extends FabricFlags {
|
|
|
25
25
|
segregateRead?: string | string[];
|
|
26
26
|
forceSegregateWrite?: boolean;
|
|
27
27
|
fullySegregated?: boolean;
|
|
28
|
+
allowContextTransientMap?: boolean;
|
|
28
29
|
sequenceSegregation?: Map<string, {
|
|
29
30
|
fullySegregated: boolean;
|
|
30
31
|
collections: string[];
|
|
@@ -13,7 +13,11 @@ export declare enum FabricModelKeys {
|
|
|
13
13
|
FABRIC = "fabric",
|
|
14
14
|
OWNED_BY = "owned-by",
|
|
15
15
|
TRANSACTION_ID = "transaction-id",
|
|
16
|
-
MIRROR = "mirror"
|
|
16
|
+
MIRROR = "mirror",
|
|
17
|
+
CONTRACT = "fabric.contract",
|
|
18
|
+
CHAINCODE = "fabric.chaincode",
|
|
19
|
+
CHANNEL = "fabric.channel",
|
|
20
|
+
OVERRIDES = "__overrides"
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* @description Supported identity types for Fabric credentials
|
|
@@ -13,7 +13,11 @@ export declare enum FabricModelKeys {
|
|
|
13
13
|
FABRIC = "fabric",
|
|
14
14
|
OWNED_BY = "owned-by",
|
|
15
15
|
TRANSACTION_ID = "transaction-id",
|
|
16
|
-
MIRROR = "mirror"
|
|
16
|
+
MIRROR = "mirror",
|
|
17
|
+
CONTRACT = "fabric.contract",
|
|
18
|
+
CHAINCODE = "fabric.chaincode",
|
|
19
|
+
CHANNEL = "fabric.channel",
|
|
20
|
+
OVERRIDES = "__overrides"
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* @description Supported identity types for Fabric credentials
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Repo, Context, Repository, ContextOf } from "@decaf-ts/core";
|
|
1
|
+
import { Repo, Context, Repository, ContextOf, ContextualArgs } from "@decaf-ts/core";
|
|
2
2
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
3
|
import { ClientIdentity } from "fabric-shim-api";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
@@ -6,6 +6,14 @@ import { FabricFlags } from "./types.d.cts";
|
|
|
6
6
|
import { FabricContractFlags } from "../contracts/types.d.cts";
|
|
7
7
|
import "../shared/overrides";
|
|
8
8
|
import { type FabricContractContext } from "../contracts/ContractContext.d.cts";
|
|
9
|
+
export type ResolverFunction<T> = (model: Constructor<Model<any>>, ...args: ContextualArgs<any>) => Promise<T> | T;
|
|
10
|
+
export declare const DefaultContractResolver: (model: Constructor<Model<any>>, ...args: ContextualArgs<any>) => string;
|
|
11
|
+
export type ChaincodeMetadata = {
|
|
12
|
+
resolver: string | ResolverFunction<string>;
|
|
13
|
+
};
|
|
14
|
+
export declare function contract(resolver: any): (model: any, prop?: any, descriptor?: PropertyDescriptor | number) => void;
|
|
15
|
+
export declare function chaincode(resolver: any): (model: any, prop?: any, descriptor?: PropertyDescriptor | number) => void;
|
|
16
|
+
export declare function channel(resolver: any): (model: any, prop?: any, descriptor?: PropertyDescriptor | number) => void;
|
|
9
17
|
/**
|
|
10
18
|
* @description Extracts the MSP ID from either a string or ClientIdentity object
|
|
11
19
|
* @param identity - The identity value which can be a string MSP ID or ClientIdentity object
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Repo, Context, Repository, ContextOf } from "@decaf-ts/core";
|
|
1
|
+
import { Repo, Context, Repository, ContextOf, ContextualArgs } from "@decaf-ts/core";
|
|
2
2
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
3
3
|
import { ClientIdentity } from "fabric-shim-api";
|
|
4
4
|
import { Constructor } from "@decaf-ts/decoration";
|
|
@@ -6,6 +6,14 @@ import { FabricFlags } from "./types.d.mts";
|
|
|
6
6
|
import { FabricContractFlags } from "../contracts/types.d.mts";
|
|
7
7
|
import "../shared/overrides";
|
|
8
8
|
import { type FabricContractContext } from "../contracts/ContractContext.d.mts";
|
|
9
|
+
export type ResolverFunction<T> = (model: Constructor<Model<any>>, ...args: ContextualArgs<any>) => Promise<T> | T;
|
|
10
|
+
export declare const DefaultContractResolver: (model: Constructor<Model<any>>, ...args: ContextualArgs<any>) => string;
|
|
11
|
+
export type ChaincodeMetadata = {
|
|
12
|
+
resolver: string | ResolverFunction<string>;
|
|
13
|
+
};
|
|
14
|
+
export declare function contract(resolver: any): (model: any, prop?: any, descriptor?: PropertyDescriptor | number) => void;
|
|
15
|
+
export declare function chaincode(resolver: any): (model: any, prop?: any, descriptor?: PropertyDescriptor | number) => void;
|
|
16
|
+
export declare function channel(resolver: any): (model: any, prop?: any, descriptor?: PropertyDescriptor | number) => void;
|
|
9
17
|
/**
|
|
10
18
|
* @description Extracts the MSP ID from either a string or ClientIdentity object
|
|
11
19
|
* @param identity - The identity value which can be a string MSP ID or ClientIdentity object
|
|
@@ -2,6 +2,7 @@ import { SegregatedModel } from "../types.d.cts";
|
|
|
2
2
|
import { Constructor } from "@decaf-ts/decoration";
|
|
3
3
|
import "@decaf-ts/decorator-validation";
|
|
4
4
|
import { CollectionResolver, MirrorMetadata } from "../decorators.d.cts";
|
|
5
|
+
import { ContextualArgs } from "@decaf-ts/core";
|
|
5
6
|
declare module "@decaf-ts/decorator-validation" {
|
|
6
7
|
interface Model {
|
|
7
8
|
isPrivate<M extends Model>(this: M): boolean;
|
|
@@ -18,5 +19,8 @@ declare module "@decaf-ts/decorator-validation" {
|
|
|
18
19
|
privateCols: (string | CollectionResolver)[];
|
|
19
20
|
sharedCols: (string | CollectionResolver)[];
|
|
20
21
|
};
|
|
22
|
+
function chaincodeOf<M extends Model>(model: Constructor<M>, ...args: ContextualArgs<any>): string | undefined | Promise<string | undefined>;
|
|
23
|
+
function contractOf<M extends Model>(model: Constructor<M>, ...args: ContextualArgs<any>): string | undefined | Promise<string | undefined>;
|
|
24
|
+
function channelOf<M extends Model>(model: Constructor<M>, ...args: ContextualArgs<any>): string | undefined | Promise<string | undefined>;
|
|
21
25
|
}
|
|
22
26
|
}
|
|
@@ -2,6 +2,7 @@ import { SegregatedModel } from "../types.d.mts";
|
|
|
2
2
|
import { Constructor } from "@decaf-ts/decoration";
|
|
3
3
|
import "@decaf-ts/decorator-validation";
|
|
4
4
|
import { CollectionResolver, MirrorMetadata } from "../decorators.d.mts";
|
|
5
|
+
import { ContextualArgs } from "@decaf-ts/core";
|
|
5
6
|
declare module "@decaf-ts/decorator-validation" {
|
|
6
7
|
interface Model {
|
|
7
8
|
isPrivate<M extends Model>(this: M): boolean;
|
|
@@ -18,5 +19,8 @@ declare module "@decaf-ts/decorator-validation" {
|
|
|
18
19
|
privateCols: (string | CollectionResolver)[];
|
|
19
20
|
sharedCols: (string | CollectionResolver)[];
|
|
20
21
|
};
|
|
22
|
+
function chaincodeOf<M extends Model>(model: Constructor<M>, ...args: ContextualArgs<any>): string | undefined | Promise<string | undefined>;
|
|
23
|
+
function contractOf<M extends Model>(model: Constructor<M>, ...args: ContextualArgs<any>): string | undefined | Promise<string | undefined>;
|
|
24
|
+
function channelOf<M extends Model>(model: Constructor<M>, ...args: ContextualArgs<any>): string | undefined | Promise<string | undefined>;
|
|
21
25
|
}
|
|
22
26
|
}
|
package/lib/types/version.d.cts
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
export declare const VERSION = "0.12.
|
|
1
|
+
export declare const VERSION = "0.12.10";
|
|
2
|
+
/**
|
|
3
|
+
* @description Represents the current commit hash of the module build.
|
|
4
|
+
* @summary Stores the current git commit hash for the package. The build replaces
|
|
5
|
+
* the placeholder with the actual commit hash at publish time.
|
|
6
|
+
* @const COMMIT
|
|
7
|
+
*/
|
|
8
|
+
export declare const COMMIT = "5880c77";
|
|
9
|
+
/**
|
|
10
|
+
* @description Represents the full version string of the module.
|
|
11
|
+
* @summary Stores the semver version and commit hash for the package.
|
|
12
|
+
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
13
|
+
* @const FULL_VERSION
|
|
14
|
+
*/
|
|
15
|
+
export declare const FULL_VERSION = "0.12.10-5880c77";
|
|
2
16
|
export declare const PACKAGE_NAME = "@decaf-ts/for-fabric";
|
package/lib/types/version.d.mts
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
export declare const VERSION = "0.12.
|
|
1
|
+
export declare const VERSION = "0.12.10";
|
|
2
|
+
/**
|
|
3
|
+
* @description Represents the current commit hash of the module build.
|
|
4
|
+
* @summary Stores the current git commit hash for the package. The build replaces
|
|
5
|
+
* the placeholder with the actual commit hash at publish time.
|
|
6
|
+
* @const COMMIT
|
|
7
|
+
*/
|
|
8
|
+
export declare const COMMIT = "5880c77";
|
|
9
|
+
/**
|
|
10
|
+
* @description Represents the full version string of the module.
|
|
11
|
+
* @summary Stores the semver version and commit hash for the package.
|
|
12
|
+
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
13
|
+
* @const FULL_VERSION
|
|
14
|
+
*/
|
|
15
|
+
export declare const FULL_VERSION = "0.12.10-5880c77";
|
|
2
16
|
export declare const PACKAGE_NAME = "@decaf-ts/for-fabric";
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/for-fabric",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
|
+
"packageManager": "npm@11.13.0",
|
|
4
5
|
"description": "Abstracts fabric logic",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"exports": {
|
|
@@ -124,14 +125,14 @@
|
|
|
124
125
|
"repo:tests": "codex exec \"$(cat ./.codex/prompts/bulk-tests.md)\nbase_path is ./ and coverage is 95%\" -s workspace-write",
|
|
125
126
|
"repo:readme": "codex exec \"$(cat ./.codex/prompts/update-readme.md)\nbase_path is ./\" -s workspace-write",
|
|
126
127
|
"repo:pr": "npm run repo:doc && npm run repo:tests && npm run repo:readme",
|
|
127
|
-
"build:contract:shared": "npm run compile:contract:shared && npm run extract:indexes:shared
|
|
128
|
+
"build:contract:shared": "npm run compile:contract:shared && npm run extract:indexes:shared",
|
|
128
129
|
"docker:build-contracts": "DOCKER_BUILDKIT=1 docker build --no-cache --secret id=TOKEN,src=$PWD/.npmtoken -t ghcr.io/decaf-ts/for-fabric:contract-$(cat package.json | jq -r '.version') -t ghcr.io/decaf-ts/for-fabric:contract-${VERSION:-latest} -f ./docker/images/Dockerfile-contract .",
|
|
129
130
|
"build:contract:docker": "npm run compile:contract:docker && npm run extract:indexes:docker && npm run extract:collections:docker",
|
|
130
131
|
"compile:contract:docker": "decaf fabric compile-contract --dev --debug --bundle --ccaas --name ${CONTRACT_NAME:-global} --input ./src/contracts --output ./contracts --strip-contract-name",
|
|
131
132
|
"extract:indexes:docker": "decaf fabric extract-indexes --folder ./lib/cjs/contract/models --outDir ./contracts",
|
|
132
133
|
"extract:collections:docker": "decaf fabric extract-collections --folder ./lib/cjs/contract/models --outDir ./contracts --mspIds '[\"org-b\",\"org-c\"]' --mainMspId org-a",
|
|
133
134
|
"sync-codex": "./bin/sync-codex.sh",
|
|
134
|
-
"compile:contract:shared": "decaf fabric compile-contract --dev --debug --
|
|
135
|
+
"compile:contract:shared": "decaf fabric compile-contract --ccaas --from-lib --dev --debug --name ${CONTRACT_NAME:-Global} --input ./src/contract --output ./docker/infrastructure/chaincode",
|
|
135
136
|
"extract:indexes:shared": "decaf fabric extract-indexes --folder ./lib/cjs/contract/trackedModels --outDir ./docker/infrastructure/chaincode/${CONTRACT_NAME:-Global}",
|
|
136
137
|
"extract:collections:shared": "decaf fabric extract-collections --folder ./lib/cjs/contract/trackedModels --outDir ./docker/infrastructure/chaincode/${CONTRACT_NAME:-Global}"
|
|
137
138
|
},
|
|
@@ -170,7 +171,8 @@
|
|
|
170
171
|
"@decaf-ts/cli": "latest",
|
|
171
172
|
"@decaf-ts/fabric-weaver": "latest",
|
|
172
173
|
"@decaf-ts/utils": "latest",
|
|
173
|
-
"@types/jest": "^30.0.0"
|
|
174
|
+
"@types/jest": "^30.0.0",
|
|
175
|
+
"@types/node": "^25.9.1"
|
|
174
176
|
},
|
|
175
177
|
"dependencies": {
|
|
176
178
|
"@decaf-ts/core": "latest",
|