@decaf-ts/for-fabric 0.12.7 → 0.12.8
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/README.md +177 -146
- 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 +105 -1
- package/lib/cjs/cli-module.cjs.map +1 -1
- package/lib/cjs/client/indexes/generation.cjs +7 -2
- package/lib/cjs/client/indexes/generation.cjs.map +1 -1
- package/lib/cjs/contract/OtherLeafletContract.cjs +72 -0
- package/lib/cjs/contract/OtherLeafletContract.cjs.map +1 -0
- package/lib/cjs/contract/OtherLeafletFileContract.cjs +76 -0
- package/lib/cjs/contract/OtherLeafletFileContract.cjs.map +1 -0
- package/lib/cjs/contract/index.cjs +17 -18
- package/lib/cjs/contract/index.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherAudit.cjs +1 -1
- package/lib/cjs/contract/models/OtherAudit.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherBatchShared.cjs +135 -26
- package/lib/cjs/contract/models/OtherBatchShared.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherLeaflet.cjs +1 -1
- package/lib/cjs/contract/models/OtherLeaflet.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherLeafletFile.cjs +1 -1
- package/lib/cjs/contract/models/OtherLeafletFile.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherMarket.cjs +1 -1
- package/lib/cjs/contract/models/OtherMarket.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherProduct.cjs +1 -1
- package/lib/cjs/contract/models/OtherProduct.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherProductImage.cjs +1 -1
- package/lib/cjs/contract/models/OtherProductImage.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherProductShared.cjs +1 -1
- package/lib/cjs/contract/models/OtherProductShared.cjs.map +1 -1
- package/lib/cjs/contract/models/OtherProductStrength.cjs +1 -3
- package/lib/cjs/contract/models/OtherProductStrength.cjs.map +1 -1
- package/lib/cjs/contract/trackedModels/History.cjs +81 -0
- package/lib/cjs/contract/trackedModels/History.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherAudit.cjs +124 -0
- package/lib/cjs/contract/trackedModels/OtherAudit.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherLeaflet.cjs +121 -0
- package/lib/cjs/contract/trackedModels/OtherLeaflet.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherLeafletFile.cjs +71 -0
- package/lib/cjs/contract/trackedModels/OtherLeafletFile.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherMarket.cjs +90 -0
- package/lib/cjs/contract/trackedModels/OtherMarket.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherProduct.cjs +83 -0
- package/lib/cjs/contract/trackedModels/OtherProduct.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherProductImage.cjs +65 -0
- package/lib/cjs/contract/trackedModels/OtherProductImage.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherProductShared.cjs +105 -0
- package/lib/cjs/contract/trackedModels/OtherProductShared.cjs.map +1 -0
- package/lib/cjs/contract/trackedModels/OtherProductStrength.cjs +91 -0
- package/lib/cjs/contract/trackedModels/OtherProductStrength.cjs.map +1 -0
- package/lib/cjs/contracts/fabric-overrides.cjs.map +1 -1
- package/lib/cjs/version.cjs +1 -1
- package/lib/esm/cli-module.js +105 -1
- package/lib/esm/cli-module.js.map +1 -1
- package/lib/esm/client/fabric-hsm.js.map +1 -1
- package/lib/esm/client/indexes/generation.js +7 -2
- package/lib/esm/client/indexes/generation.js.map +1 -1
- package/lib/esm/contract/OtherLeafletContract.js +63 -0
- package/lib/esm/contract/OtherLeafletContract.js.map +1 -0
- package/lib/esm/contract/OtherLeafletFileContract.js +67 -0
- package/lib/esm/contract/OtherLeafletFileContract.js.map +1 -0
- package/lib/esm/contract/index.js +17 -18
- package/lib/esm/contract/index.js.map +1 -1
- package/lib/esm/contract/models/OtherAudit.js +1 -1
- package/lib/esm/contract/models/OtherAudit.js.map +1 -1
- package/lib/esm/contract/models/OtherBatchShared.js +138 -30
- package/lib/esm/contract/models/OtherBatchShared.js.map +1 -1
- package/lib/esm/contract/models/OtherLeaflet.js +1 -1
- package/lib/esm/contract/models/OtherLeaflet.js.map +1 -1
- package/lib/esm/contract/models/OtherLeafletFile.js +1 -1
- package/lib/esm/contract/models/OtherLeafletFile.js.map +1 -1
- package/lib/esm/contract/models/OtherMarket.js +1 -1
- package/lib/esm/contract/models/OtherMarket.js.map +1 -1
- package/lib/esm/contract/models/OtherProduct.js +1 -1
- package/lib/esm/contract/models/OtherProduct.js.map +1 -1
- package/lib/esm/contract/models/OtherProductImage.js +1 -1
- package/lib/esm/contract/models/OtherProductImage.js.map +1 -1
- package/lib/esm/contract/models/OtherProductShared.js +1 -1
- package/lib/esm/contract/models/OtherProductShared.js.map +1 -1
- package/lib/esm/contract/models/OtherProductStrength.js +1 -3
- package/lib/esm/contract/models/OtherProductStrength.js.map +1 -1
- package/lib/esm/contract/trackedModels/History.js +72 -0
- package/lib/esm/contract/trackedModels/History.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherAudit.js +115 -0
- package/lib/esm/contract/trackedModels/OtherAudit.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherLeaflet.js +112 -0
- package/lib/esm/contract/trackedModels/OtherLeaflet.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherLeafletFile.js +62 -0
- package/lib/esm/contract/trackedModels/OtherLeafletFile.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherMarket.js +81 -0
- package/lib/esm/contract/trackedModels/OtherMarket.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherProduct.js +74 -0
- package/lib/esm/contract/trackedModels/OtherProduct.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherProductImage.js +56 -0
- package/lib/esm/contract/trackedModels/OtherProductImage.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherProductShared.js +96 -0
- package/lib/esm/contract/trackedModels/OtherProductShared.js.map +1 -0
- package/lib/esm/contract/trackedModels/OtherProductStrength.js +82 -0
- package/lib/esm/contract/trackedModels/OtherProductStrength.js.map +1 -0
- package/lib/esm/contracts/fabric-overrides.js +2 -2
- package/lib/esm/contracts/fabric-overrides.js.map +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/contract/OtherLeafletContract.d.cts +18 -0
- package/lib/types/contract/OtherLeafletContract.d.mts +18 -0
- package/lib/types/contract/OtherLeafletFileContract.d.cts +17 -0
- package/lib/types/contract/OtherLeafletFileContract.d.mts +17 -0
- package/lib/types/contract/models/OtherBatchShared.d.cts +43 -6
- package/lib/types/contract/models/OtherBatchShared.d.mts +43 -6
- package/lib/types/contract/trackedModels/History.d.cts +9 -0
- package/lib/types/contract/trackedModels/History.d.mts +9 -0
- package/lib/types/contract/trackedModels/OtherAudit.d.cts +15 -0
- package/lib/types/contract/trackedModels/OtherAudit.d.mts +15 -0
- package/lib/types/contract/trackedModels/OtherLeaflet.d.cts +16 -0
- package/lib/types/contract/trackedModels/OtherLeaflet.d.mts +16 -0
- package/lib/types/contract/trackedModels/OtherLeafletFile.d.cts +10 -0
- package/lib/types/contract/trackedModels/OtherLeafletFile.d.mts +10 -0
- package/lib/types/contract/trackedModels/OtherMarket.d.cts +13 -0
- package/lib/types/contract/trackedModels/OtherMarket.d.mts +13 -0
- package/lib/types/contract/trackedModels/OtherProduct.d.cts +12 -0
- package/lib/types/contract/trackedModels/OtherProduct.d.mts +12 -0
- package/lib/types/contract/trackedModels/OtherProductImage.d.cts +9 -0
- package/lib/types/contract/trackedModels/OtherProductImage.d.mts +9 -0
- package/lib/types/contract/trackedModels/OtherProductShared.d.cts +18 -0
- package/lib/types/contract/trackedModels/OtherProductShared.d.mts +18 -0
- package/lib/types/contract/trackedModels/OtherProductStrength.d.cts +12 -0
- package/lib/types/contract/trackedModels/OtherProductStrength.d.mts +12 -0
- package/lib/types/version.d.cts +1 -1
- package/lib/types/version.d.mts +1 -1
- package/package.json +16 -5
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
11
|
+
import { Cascade, column, defaultQueryAttr, index, oneToMany, oneToOne, OrderDirection, pk, table, version, } from "@decaf-ts/core";
|
|
12
|
+
// import {BlockOperations, OperationKeys, readonly} from "@decaf-ts/db-decorators";
|
|
13
|
+
import { uses } from "@decaf-ts/decoration";
|
|
14
|
+
import { BaseIdentifiedModel } from "./../models/BaseIdentifiedModel.js";
|
|
15
|
+
import { gtin } from "./../models/gtin.js";
|
|
16
|
+
import { audit } from "./../models/decorators-private.js";
|
|
17
|
+
import { FabricFlavour, mirror, NamespaceCollection, ownedBy, sharedData, } from "./../../shared/index.js";
|
|
18
|
+
import { OtherProductStrength } from "./OtherProductStrength.js";
|
|
19
|
+
import { OtherMarket } from "./OtherMarket.js";
|
|
20
|
+
import { assignProductOwner } from "./../models/decorators.js";
|
|
21
|
+
import { historyDec } from "./../models/history-dec.js";
|
|
22
|
+
import { OtherProductImage } from "./OtherProductImage.js";
|
|
23
|
+
let OtherProductShared = class OtherProductShared extends BaseIdentifiedModel {
|
|
24
|
+
constructor(args) {
|
|
25
|
+
super(args);
|
|
26
|
+
this.productRecall = false;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
__decorate([
|
|
30
|
+
pk(),
|
|
31
|
+
gtin(),
|
|
32
|
+
historyDec(),
|
|
33
|
+
assignProductOwner(),
|
|
34
|
+
mirror("mirror-collection", "PharmaledgerassocMSP"),
|
|
35
|
+
audit(OtherProductShared),
|
|
36
|
+
defaultQueryAttr(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], OtherProductShared.prototype, "productCode", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
column(),
|
|
41
|
+
required(),
|
|
42
|
+
defaultQueryAttr(),
|
|
43
|
+
index([OrderDirection.ASC, OrderDirection.DSC]),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], OtherProductShared.prototype, "inventedName", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
column(),
|
|
48
|
+
required(),
|
|
49
|
+
defaultQueryAttr(),
|
|
50
|
+
index([OrderDirection.ASC, OrderDirection.DSC]),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], OtherProductShared.prototype, "nameMedicinalProduct", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
column(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], OtherProductShared.prototype, "internalMaterialCode", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
column(),
|
|
59
|
+
index([OrderDirection.ASC, OrderDirection.DSC]),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], OtherProductShared.prototype, "productRecall", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
oneToOne(() => OtherProductImage, {
|
|
64
|
+
update: Cascade.CASCADE,
|
|
65
|
+
delete: Cascade.CASCADE,
|
|
66
|
+
}, false),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], OtherProductShared.prototype, "imageData", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
version(true),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], OtherProductShared.prototype, "counter", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
oneToMany(() => OtherProductStrength, { update: Cascade.CASCADE, delete: Cascade.CASCADE }, true),
|
|
75
|
+
__metadata("design:type", Array)
|
|
76
|
+
], OtherProductShared.prototype, "strengths", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
oneToMany(() => OtherMarket, { update: Cascade.CASCADE, delete: Cascade.CASCADE }, true),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], OtherProductShared.prototype, "markets", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
column(),
|
|
83
|
+
ownedBy(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], OtherProductShared.prototype, "ownedBy", void 0);
|
|
86
|
+
OtherProductShared = __decorate([
|
|
87
|
+
sharedData(NamespaceCollection("decaf-namespace")),
|
|
88
|
+
uses(FabricFlavour)
|
|
89
|
+
// @BlockOperations([OperationKeys.DELETE])
|
|
90
|
+
,
|
|
91
|
+
table("other_product_shared"),
|
|
92
|
+
model(),
|
|
93
|
+
__metadata("design:paramtypes", [Object])
|
|
94
|
+
], OtherProductShared);
|
|
95
|
+
export { OtherProductShared };
|
|
96
|
+
//# sourceMappingURL=OtherProductShared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OtherProductShared.js","sourceRoot":"","sources":["../../../../src/contract/trackedModels/OtherProductShared.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EACL,OAAO,EACP,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,cAAc,EACd,EAAE,EACF,KAAK,EACL,OAAO,GACR,MAAM,gBAAgB,CAAC;AACxB,oFAAoF;AACpF,OA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,CAAC,CAAC;;yDACjB;AAU/B;IARC,QAAQ,CACP,GAAG,EAAE,CAAC,iBAAiB,EACvB;QACE,MAAM,EAAE,OAAO,CAAC,OAAO;QACvB,MAAM,EAAE,OAAO,CAAC,OAAO;KACxB,EACD,KAAK,CACN;;qDACsC;AAsBvC;IADC,OAAO,CAAC,IAAI,CAAC;;mDACG;AAOjB;IALC,SAAS,CACR,GAAG,EAAE,CAAC,oBAAoB,EAC1B,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,EAAE,EACpD,IAAI,CACL;;qDACkC;AAOnC;IALC,SAAS,CACR,GAAG,EAAE,CAAC,WAAW,EACjB,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,EAAE,EACpD,IAAI,CACL;;mDACuB;AAIxB;IAFC,MAAM,EAAE;IACR,OAAO,EAAE;;mDACO;AA7EN,kBAAkB;IAL9B,UAAU,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IAClD,IAAI,CAAC,aAAa,CAAC;IACpB,2CAA2C;;IAC1C,KAAK,CAAC,sBAAsB,CAAC;IAC7B,KAAK,EAAE;;GACK,kBAAkB,CAkF9B"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { model, required } from "@decaf-ts/decorator-validation";
|
|
11
|
+
import { column, defaultQueryAttr, index, OrderDirection, pk, table, uuid, } from "@decaf-ts/core";
|
|
12
|
+
import { description, uses } from "@decaf-ts/decoration";
|
|
13
|
+
import { BaseIdentifiedModel } from "./../models/BaseIdentifiedModel.js";
|
|
14
|
+
import { FabricFlavour, mirror, NamespaceCollection, sharedData, } from "./../../shared/index.js";
|
|
15
|
+
import { composed, InternalError, version } from "@decaf-ts/db-decorators";
|
|
16
|
+
import { gtin } from "./../models/gtin.js";
|
|
17
|
+
function strengthSeed(m) {
|
|
18
|
+
try {
|
|
19
|
+
return `${m.productCode}${m.strength}${m.substance ? m.substance : ""}`;
|
|
20
|
+
}
|
|
21
|
+
catch (e) {
|
|
22
|
+
throw new InternalError(`Failed to generate deterministic uuid: ${e}`);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
let OtherProductStrength = class OtherProductStrength extends BaseIdentifiedModel {
|
|
26
|
+
constructor(model) {
|
|
27
|
+
super(model);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
pk(),
|
|
32
|
+
mirror("mirror-collection", "PharmaledgerassocMSP"),
|
|
33
|
+
composed(["productCode", "uuid"], ":"),
|
|
34
|
+
description("Unique identifier of the product strength."),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], OtherProductStrength.prototype, "id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
uuid(strengthSeed),
|
|
39
|
+
required(),
|
|
40
|
+
description("Unique identifier of the audit record."),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], OtherProductStrength.prototype, "uuid", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
gtin(),
|
|
45
|
+
defaultQueryAttr(),
|
|
46
|
+
index([OrderDirection.ASC, OrderDirection.DSC]),
|
|
47
|
+
description("Product code associated with this strength entry."),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], OtherProductStrength.prototype, "productCode", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
column(),
|
|
52
|
+
required(),
|
|
53
|
+
defaultQueryAttr(),
|
|
54
|
+
index([OrderDirection.ASC, OrderDirection.DSC]),
|
|
55
|
+
description("Product concentration or dosage (e.g., 500mg, 10%)."),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], OtherProductStrength.prototype, "strength", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
column(),
|
|
60
|
+
index([OrderDirection.ASC, OrderDirection.DSC]),
|
|
61
|
+
description("Active substance related to this product strength."),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], OtherProductStrength.prototype, "substance", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
column(),
|
|
66
|
+
description("Legal entity name responsible for the product."),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], OtherProductStrength.prototype, "legalEntityName", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
version(),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], OtherProductStrength.prototype, "counter", void 0);
|
|
73
|
+
OtherProductStrength = __decorate([
|
|
74
|
+
sharedData(NamespaceCollection("decaf-namespace")),
|
|
75
|
+
uses(FabricFlavour),
|
|
76
|
+
table("other_product_strength"),
|
|
77
|
+
model(),
|
|
78
|
+
description("Represents the product’s strength and composition details."),
|
|
79
|
+
__metadata("design:paramtypes", [Object])
|
|
80
|
+
], OtherProductStrength);
|
|
81
|
+
export { OtherProductStrength };
|
|
82
|
+
//# sourceMappingURL=OtherProductStrength.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OtherProductStrength.js","sourceRoot":"","sources":["../../../../src/contract/trackedModels/OtherProductStrength.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC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AAC,cAAc,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC/C,WAAW,CAAC,mDAAmD,CAAC;;yDAC5C;AAOrB;IALC,MAAM,EAAE;IACR,QAAQ,EAAE;IACV,gBAAgB,EAAE;IAClB,KAAK,CAAC,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC/C,WAAW,CAAC,qDAAqD,CAAC;;sDACjD;AAKlB;IAHC,MAAM,EAAE;IACR,KAAK,CAAC,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;IAC/C,WAAW,CAAC,oDAAoD,CAAC;;uDAC/C;AAInB;IAFC,MAAM,EAAE;IACR,WAAW,CAAC,gDAAgD,CAAC;;6DACrC;AAGzB;IADC,OAAO,EAAE;;qDACO;AAxCN,oBAAoB;IALhC,UAAU,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IAClD,IAAI,CAAC,aAAa,CAAC;IACnB,KAAK,CAAC,wBAAwB,CAAC;IAC/B,KAAK,EAAE;IACP,WAAW,CAAC,4DAA4D,CAAC;;GAC7D,oBAAoB,CA6ChC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { apply, Decoration, Metadata, propMetadata, } from "@decaf-ts/decoration";
|
|
2
|
-
import { PersistenceKeys, UnsupportedError
|
|
3
|
-
import { onCreate, onCreateUpdate
|
|
2
|
+
import { PersistenceKeys, UnsupportedError } from "@decaf-ts/core";
|
|
3
|
+
import { onCreate, onCreateUpdate } from "@decaf-ts/db-decorators";
|
|
4
4
|
import { FabricFlavour } from "./../shared/constants.js";
|
|
5
5
|
import { Property, Property as FabricProperty, Object as FabricObject, } from "fabric-contract-api";
|
|
6
6
|
import { ValidationKeys } from "@decaf-ts/decorator-validation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fabric-overrides.js","sourceRoot":"","sources":["../../../src/contracts/fabric-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,
|
|
1
|
+
{"version":3,"file":"fabric-overrides.js","sourceRoot":"","sources":["../../../src/contracts/fabric-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,iCAA4B;AACpD,OAAO,EACL,QAAQ,EACR,QAAQ,IAAI,cAAc,EAC1B,MAAM,IAAI,YAAY,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAEjD,OAAY,EACZ,IAAS,EACT,GAAgB,EAChB,KAAU;IAEV,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QACrC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,gBAAgB,CACxB,gEAAgE,CACjE,CAAC;IACJ,CAAC;AACH,CAAC;AAED,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC;KAClC,GAAG,CAAC,eAAe,CAAC,UAAU,CAAC;KAC/B,MAAM,CAAC;IACN,SAAS,EAAE,SAAS,SAAS;QAC3B,OAAO,KAAK,CACV,QAAQ,CAAC,6BAA6B,CAAC,EACvC,YAAY,CAAC,eAAe,CAAC,UAAU,EAAE,EAAE,CAAC,CAC7C,CAAC;IACJ,CAAC;CACK,CAAC;KACR,KAAK,EAAE,CA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,cAAc,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,WAAW,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;QAChC,YAAY,EAAE,CAAC,WAAW,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC,CAAC;KACD,KAAK,EAAE,CAAC"}
|
package/lib/esm/version.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Context as Ctx } from "fabric-contract-api";
|
|
2
|
+
import { Leaflet } from "./models/OtherLeaflet.d.cts";
|
|
3
|
+
import { SerializedCrudContract } from "../contracts/index.d.cts";
|
|
4
|
+
export declare class OtherLeafletContract extends SerializedCrudContract<Leaflet> {
|
|
5
|
+
constructor();
|
|
6
|
+
create(ctx: Ctx, model: string): Promise<string>;
|
|
7
|
+
read(ctx: Ctx, key: string): Promise<string>;
|
|
8
|
+
update(ctx: Ctx, model: string): Promise<string>;
|
|
9
|
+
delete(ctx: Ctx, key: string): Promise<string>;
|
|
10
|
+
deleteAll(ctx: Ctx, keys: string): Promise<string>;
|
|
11
|
+
readAll(ctx: Ctx, keys: string): Promise<string>;
|
|
12
|
+
updateAll(ctx: Ctx, models: string): Promise<string>;
|
|
13
|
+
statement(ctx: Ctx, method: string, args: string): Promise<string>;
|
|
14
|
+
listBy(ctx: Ctx, key: string, order: string): Promise<string>;
|
|
15
|
+
paginateBy(ctx: Ctx, key: string, order: string, ref: string): Promise<string>;
|
|
16
|
+
findOneBy(ctx: Ctx, key: string, value: string): Promise<string>;
|
|
17
|
+
createAll(context: Ctx, models: string): Promise<string>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Context as Ctx } from "fabric-contract-api";
|
|
2
|
+
import { Leaflet } from "./models/OtherLeaflet.d.mts";
|
|
3
|
+
import { SerializedCrudContract } from "../contracts/index.d.mts";
|
|
4
|
+
export declare class OtherLeafletContract extends SerializedCrudContract<Leaflet> {
|
|
5
|
+
constructor();
|
|
6
|
+
create(ctx: Ctx, model: string): Promise<string>;
|
|
7
|
+
read(ctx: Ctx, key: string): Promise<string>;
|
|
8
|
+
update(ctx: Ctx, model: string): Promise<string>;
|
|
9
|
+
delete(ctx: Ctx, key: string): Promise<string>;
|
|
10
|
+
deleteAll(ctx: Ctx, keys: string): Promise<string>;
|
|
11
|
+
readAll(ctx: Ctx, keys: string): Promise<string>;
|
|
12
|
+
updateAll(ctx: Ctx, models: string): Promise<string>;
|
|
13
|
+
statement(ctx: Ctx, method: string, args: string): Promise<string>;
|
|
14
|
+
listBy(ctx: Ctx, key: string, order: string): Promise<string>;
|
|
15
|
+
paginateBy(ctx: Ctx, key: string, order: string, ref: string): Promise<string>;
|
|
16
|
+
findOneBy(ctx: Ctx, key: string, value: string): Promise<string>;
|
|
17
|
+
createAll(context: Ctx, models: string): Promise<string>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Context as Ctx } from "fabric-contract-api";
|
|
2
|
+
import { OtherLeafletFile } from "./models/OtherLeafletFile.d.cts";
|
|
3
|
+
import { SerializedCrudContract } from "../contracts/index.d.cts";
|
|
4
|
+
export declare class OtherLeafletFileContract extends SerializedCrudContract<OtherLeafletFile> {
|
|
5
|
+
constructor();
|
|
6
|
+
update(context: Ctx, model: string): Promise<string>;
|
|
7
|
+
updateAll(_context: Ctx, models: string): Promise<string>;
|
|
8
|
+
delete(context: Ctx, key: string): Promise<string>;
|
|
9
|
+
deleteAll(context: Ctx, keys: string): Promise<string>;
|
|
10
|
+
create(ctx: Ctx, model: string): Promise<string>;
|
|
11
|
+
read(ctx: Ctx, key: string): Promise<string>;
|
|
12
|
+
readAll(ctx: Ctx, keys: string): Promise<string>;
|
|
13
|
+
statement(ctx: Ctx, method: string, args: string): Promise<string>;
|
|
14
|
+
paginateBy(ctx: Ctx, key: string, order: string, ref: string): Promise<string>;
|
|
15
|
+
findOneBy(ctx: Ctx, key: string, value: string): Promise<string>;
|
|
16
|
+
createAll(context: Ctx, models: string): Promise<string>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Context as Ctx } from "fabric-contract-api";
|
|
2
|
+
import { OtherLeafletFile } from "./models/OtherLeafletFile.d.mts";
|
|
3
|
+
import { SerializedCrudContract } from "../contracts/index.d.mts";
|
|
4
|
+
export declare class OtherLeafletFileContract extends SerializedCrudContract<OtherLeafletFile> {
|
|
5
|
+
constructor();
|
|
6
|
+
update(context: Ctx, model: string): Promise<string>;
|
|
7
|
+
updateAll(_context: Ctx, models: string): Promise<string>;
|
|
8
|
+
delete(context: Ctx, key: string): Promise<string>;
|
|
9
|
+
deleteAll(context: Ctx, keys: string): Promise<string>;
|
|
10
|
+
create(ctx: Ctx, model: string): Promise<string>;
|
|
11
|
+
read(ctx: Ctx, key: string): Promise<string>;
|
|
12
|
+
readAll(ctx: Ctx, keys: string): Promise<string>;
|
|
13
|
+
statement(ctx: Ctx, method: string, args: string): Promise<string>;
|
|
14
|
+
paginateBy(ctx: Ctx, key: string, order: string, ref: string): Promise<string>;
|
|
15
|
+
findOneBy(ctx: Ctx, key: string, value: string): Promise<string>;
|
|
16
|
+
createAll(context: Ctx, models: string): Promise<string>;
|
|
17
|
+
}
|
|
@@ -1,18 +1,55 @@
|
|
|
1
1
|
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { JSONSerializer, Model } from "@decaf-ts/decorator-validation";
|
|
2
3
|
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.cts";
|
|
4
|
+
export declare class ArraySerializer<M extends Model> extends JSONSerializer<M> {
|
|
5
|
+
constructor();
|
|
6
|
+
/**
|
|
7
|
+
* @summary prepares the model for serialization
|
|
8
|
+
* @description returns a shallow copy of the object, containing an enumerable {@link ModelKeys#ANCHOR} property
|
|
9
|
+
* so the object can be recognized upon deserialization
|
|
10
|
+
*
|
|
11
|
+
* @param {any} value
|
|
12
|
+
* @protected
|
|
13
|
+
*/
|
|
14
|
+
protected preSerialize(value: any, ...args: any[]): any;
|
|
15
|
+
/**
|
|
16
|
+
* @summary Rebuilds a model from a serialization
|
|
17
|
+
* @param {string} str
|
|
18
|
+
*
|
|
19
|
+
* @throws {Error} If it fails to parse the string, or to build the model
|
|
20
|
+
*/
|
|
21
|
+
deserialize(str: string, ...args: any[]): M;
|
|
22
|
+
private serializeValue;
|
|
23
|
+
private serializeModel;
|
|
24
|
+
private serializePlain;
|
|
25
|
+
private getMetadata;
|
|
26
|
+
private rebuildValue;
|
|
27
|
+
private rebuildObject;
|
|
28
|
+
/**
|
|
29
|
+
* @summary Serializes a model
|
|
30
|
+
* @param {T} model
|
|
31
|
+
*
|
|
32
|
+
* @throws {Error} if fails to serialize
|
|
33
|
+
*/
|
|
34
|
+
serialize(model: M, ...args: any[]): string;
|
|
35
|
+
}
|
|
36
|
+
declare class ManufacturerAddress extends Model {
|
|
37
|
+
address: string;
|
|
38
|
+
constructor(arg?: ModelArg<ManufacturerAddress>);
|
|
39
|
+
}
|
|
3
40
|
export declare class OtherBatchShared extends BaseIdentifiedModel {
|
|
4
41
|
id: string;
|
|
5
42
|
productCode: string;
|
|
6
43
|
batchNumber: string;
|
|
7
44
|
expiryDate: Date;
|
|
8
45
|
importLicenseNumber?: string;
|
|
9
|
-
dateOfManufacturing?:
|
|
46
|
+
dateOfManufacturing?: Date;
|
|
10
47
|
manufacturerName?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
manufacturerAddress3?: string;
|
|
14
|
-
manufacturerAddress4?: string;
|
|
15
|
-
manufacturerAddress5?: string;
|
|
48
|
+
manufacturerAddress?: ManufacturerAddress[];
|
|
49
|
+
packagingSiteName?: string;
|
|
16
50
|
batchRecall: boolean;
|
|
51
|
+
owner: string;
|
|
52
|
+
version: number;
|
|
17
53
|
constructor(model?: ModelArg<OtherBatchShared>);
|
|
18
54
|
}
|
|
55
|
+
export {};
|
|
@@ -1,18 +1,55 @@
|
|
|
1
1
|
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { JSONSerializer, Model } from "@decaf-ts/decorator-validation";
|
|
2
3
|
import { BaseIdentifiedModel } from "./BaseIdentifiedModel.d.mts";
|
|
4
|
+
export declare class ArraySerializer<M extends Model> extends JSONSerializer<M> {
|
|
5
|
+
constructor();
|
|
6
|
+
/**
|
|
7
|
+
* @summary prepares the model for serialization
|
|
8
|
+
* @description returns a shallow copy of the object, containing an enumerable {@link ModelKeys#ANCHOR} property
|
|
9
|
+
* so the object can be recognized upon deserialization
|
|
10
|
+
*
|
|
11
|
+
* @param {any} value
|
|
12
|
+
* @protected
|
|
13
|
+
*/
|
|
14
|
+
protected preSerialize(value: any, ...args: any[]): any;
|
|
15
|
+
/**
|
|
16
|
+
* @summary Rebuilds a model from a serialization
|
|
17
|
+
* @param {string} str
|
|
18
|
+
*
|
|
19
|
+
* @throws {Error} If it fails to parse the string, or to build the model
|
|
20
|
+
*/
|
|
21
|
+
deserialize(str: string, ...args: any[]): M;
|
|
22
|
+
private serializeValue;
|
|
23
|
+
private serializeModel;
|
|
24
|
+
private serializePlain;
|
|
25
|
+
private getMetadata;
|
|
26
|
+
private rebuildValue;
|
|
27
|
+
private rebuildObject;
|
|
28
|
+
/**
|
|
29
|
+
* @summary Serializes a model
|
|
30
|
+
* @param {T} model
|
|
31
|
+
*
|
|
32
|
+
* @throws {Error} if fails to serialize
|
|
33
|
+
*/
|
|
34
|
+
serialize(model: M, ...args: any[]): string;
|
|
35
|
+
}
|
|
36
|
+
declare class ManufacturerAddress extends Model {
|
|
37
|
+
address: string;
|
|
38
|
+
constructor(arg?: ModelArg<ManufacturerAddress>);
|
|
39
|
+
}
|
|
3
40
|
export declare class OtherBatchShared extends BaseIdentifiedModel {
|
|
4
41
|
id: string;
|
|
5
42
|
productCode: string;
|
|
6
43
|
batchNumber: string;
|
|
7
44
|
expiryDate: Date;
|
|
8
45
|
importLicenseNumber?: string;
|
|
9
|
-
dateOfManufacturing?:
|
|
46
|
+
dateOfManufacturing?: Date;
|
|
10
47
|
manufacturerName?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
manufacturerAddress3?: string;
|
|
14
|
-
manufacturerAddress4?: string;
|
|
15
|
-
manufacturerAddress5?: string;
|
|
48
|
+
manufacturerAddress?: ManufacturerAddress[];
|
|
49
|
+
packagingSiteName?: string;
|
|
16
50
|
batchRecall: boolean;
|
|
51
|
+
owner: string;
|
|
52
|
+
version: number;
|
|
17
53
|
constructor(model?: ModelArg<OtherBatchShared>);
|
|
18
54
|
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseModel } from "../models/BaseModel.d.cts";
|
|
3
|
+
import { AuditOperations } from "../models/constants.d.cts";
|
|
4
|
+
export declare class OtherAudit extends BaseModel {
|
|
5
|
+
id: string;
|
|
6
|
+
model: string;
|
|
7
|
+
action: AuditOperations;
|
|
8
|
+
recordId: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
userGroup: string;
|
|
11
|
+
transaction: string;
|
|
12
|
+
diffs?: Record<string, any>;
|
|
13
|
+
owner: string;
|
|
14
|
+
constructor(model?: ModelArg<OtherAudit>);
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseModel } from "../models/BaseModel.d.mts";
|
|
3
|
+
import { AuditOperations } from "../models/constants.d.mts";
|
|
4
|
+
export declare class OtherAudit extends BaseModel {
|
|
5
|
+
id: string;
|
|
6
|
+
model: string;
|
|
7
|
+
action: AuditOperations;
|
|
8
|
+
recordId: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
userGroup: string;
|
|
11
|
+
transaction: string;
|
|
12
|
+
diffs?: Record<string, any>;
|
|
13
|
+
owner: string;
|
|
14
|
+
constructor(model?: ModelArg<OtherAudit>);
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Comparison, Model, type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/BaseIdentifiedModel.d.cts";
|
|
3
|
+
import { OtherLeafletFile } from "./OtherLeafletFile.d.cts";
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Comparison, Model, type ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/BaseIdentifiedModel.d.mts";
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ModelArg } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { BaseIdentifiedModel } from "../models/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
|
+
}
|