@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Audit.js","sourceRoot":"","sources":["Audit.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CA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BAAwB;QACxB,6BAAa,CAAC,MAAM;QACpB,6BAAa,CAAC,MAAM;KACvB,CAAC;IACF,IAAA,iBAAI,EAAC,wBAAa,CAAC;IACnB,IAAA,YAAK,EAAC,OAAO,CAAC;IACd,IAAA,4BAAK,GAAE;IACP,UAAU,CAAC,mBAAmB,EAAE,CAAC,MAAM,CAAC,CAAC;CAC5C,EAAE,KAAK,CAAC,CAAC;AAEV,iCAAiC"}
|
|
@@ -1,81 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.History = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
19
|
-
const core_1 = require("@decaf-ts/core");
|
|
20
|
-
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
21
|
-
const decoration_1 = require("@decaf-ts/decoration");
|
|
22
|
-
const index_js_1 = require("./../../shared/index.cjs");
|
|
23
|
-
let History = class History extends decorator_validation_1.Model {
|
|
24
|
-
constructor(model) {
|
|
25
|
-
super(model);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.History = History;
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, core_1.pk)(),
|
|
31
|
-
(0, index_js_1.mirror)("ptp-history-mirror", "PharmaledgerassocMSP"),
|
|
32
|
-
(0, db_decorators_1.composed)(["table", "key", "version"], ":"),
|
|
33
|
-
(0, decoration_1.description)("Unique identifier of the history record."),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], History.prototype, "id", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, core_1.column)(),
|
|
38
|
-
(0, db_decorators_1.readonly)(),
|
|
39
|
-
(0, db_decorators_1.readonly)(),
|
|
40
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
41
|
-
(0, decoration_1.description)("table this history object refers to"),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], History.prototype, "table", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, core_1.column)(),
|
|
46
|
-
(0, decorator_validation_1.required)(),
|
|
47
|
-
(0, db_decorators_1.readonly)(),
|
|
48
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
49
|
-
(0, decoration_1.description)("id of the original object"),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], History.prototype, "key", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, core_1.column)(),
|
|
54
|
-
(0, decorator_validation_1.required)(),
|
|
55
|
-
(0, db_decorators_1.readonly)(),
|
|
56
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
57
|
-
(0, decoration_1.description)("the version of the original object"),
|
|
58
|
-
__metadata("design:type", Number)
|
|
59
|
-
], History.prototype, "version", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, core_1.column)(),
|
|
62
|
-
(0, decorator_validation_1.required)(),
|
|
63
|
-
(0, db_decorators_1.readonly)(),
|
|
64
|
-
(0, decoration_1.description)("the object to keep history of"),
|
|
65
|
-
__metadata("design:type", Object)
|
|
66
|
-
], History.prototype, "record", void 0);
|
|
67
|
-
exports.History = History = __decorate([
|
|
68
|
-
(0, decoration_1.description)("Logs user activity for auditing purposes."),
|
|
69
|
-
(0, decoration_1.uses)(index_js_1.FabricFlavour),
|
|
70
|
-
(0, db_decorators_1.BlockOperations)([
|
|
71
|
-
db_decorators_1.OperationKeys.CREATE,
|
|
72
|
-
db_decorators_1.OperationKeys.UPDATE,
|
|
73
|
-
db_decorators_1.OperationKeys.DELETE,
|
|
74
|
-
]),
|
|
75
|
-
(0, core_1.table)("history"),
|
|
76
|
-
(0, index_js_1.sharedData)((0, index_js_1.NamespaceCollection)("ptp-history")),
|
|
77
|
-
(0, decorator_validation_1.model)(),
|
|
78
|
-
__metadata("design:paramtypes", [Object])
|
|
79
|
-
], History);
|
|
4
|
+
var History_js_1 = require("./../trackedModels/History.cjs");
|
|
5
|
+
Object.defineProperty(exports, "History", { enumerable: true, get: function () { return History_js_1.History; } });
|
|
80
6
|
//# sourceMappingURL=History.js.map
|
|
81
7
|
//# sourceMappingURL=History.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"History.js","sourceRoot":"","sources":["History.js"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"History.js","sourceRoot":"","sources":["History.js"],"names":[],"mappings":";;;AAAA,4DAAwD;AAA/C,qGAAA,OAAO,OAAA;AAChB,mCAAmC"}
|
|
@@ -1,242 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OtherBatchShared =
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
19
|
-
const core_1 = require("@decaf-ts/core");
|
|
20
|
-
const constants_js_1 = require("./constants.cjs");
|
|
21
|
-
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
22
|
-
const decoration_1 = require("@decaf-ts/decoration");
|
|
23
|
-
const BaseIdentifiedModel_js_1 = require("./BaseIdentifiedModel.cjs");
|
|
24
|
-
const decorators_private_js_1 = require("./decorators-private.cjs");
|
|
25
|
-
const gtin_js_1 = require("./gtin.cjs");
|
|
26
|
-
const index_js_1 = require("./../../shared/index.cjs");
|
|
27
|
-
const history_dec_js_1 = require("./history-dec.cjs");
|
|
28
|
-
// import { historyDec } from "./history-dec";
|
|
29
|
-
class ArraySerializer extends decorator_validation_1.JSONSerializer {
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @summary prepares the model for serialization
|
|
35
|
-
* @description returns a shallow copy of the object, containing an enumerable {@link ModelKeys#ANCHOR} property
|
|
36
|
-
* so the object can be recognized upon deserialization
|
|
37
|
-
*
|
|
38
|
-
* @param {any} value
|
|
39
|
-
* @protected
|
|
40
|
-
*/
|
|
41
|
-
preSerialize(value, ...args) {
|
|
42
|
-
return this.serializeValue(value, ...args);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @summary Rebuilds a model from a serialization
|
|
46
|
-
* @param {string} str
|
|
47
|
-
*
|
|
48
|
-
* @throws {Error} If it fails to parse the string, or to build the model
|
|
49
|
-
*/
|
|
50
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
51
|
-
deserialize(str, ...args) {
|
|
52
|
-
const deserialization = JSON.parse(str);
|
|
53
|
-
return this.rebuildValue(deserialization);
|
|
54
|
-
}
|
|
55
|
-
serializeValue(value, ...args) {
|
|
56
|
-
if (value === undefined || value === null)
|
|
57
|
-
return value;
|
|
58
|
-
if (typeof value !== "object")
|
|
59
|
-
return value;
|
|
60
|
-
if (value instanceof Date)
|
|
61
|
-
return value.toISOString();
|
|
62
|
-
if (Array.isArray(value)) {
|
|
63
|
-
return value.map((item) => this.serializeValue(item, ...args));
|
|
64
|
-
}
|
|
65
|
-
if (decorator_validation_1.Model.isModel(value)) {
|
|
66
|
-
return this.serializeModel(value, ...args);
|
|
67
|
-
}
|
|
68
|
-
return this.serializePlain(value, ...args);
|
|
69
|
-
}
|
|
70
|
-
serializeModel(value, ...args) {
|
|
71
|
-
const serialized = this.serializePlain(value, ...args);
|
|
72
|
-
const metadata = this.getMetadata(value.constructor) ??
|
|
73
|
-
value.constructor?.name;
|
|
74
|
-
if (metadata)
|
|
75
|
-
serialized[decorator_validation_1.ModelKeys.ANCHOR] = metadata;
|
|
76
|
-
return serialized;
|
|
77
|
-
}
|
|
78
|
-
serializePlain(value, ...args) {
|
|
79
|
-
const result = {};
|
|
80
|
-
for (const [key, child] of Object.entries(value)) {
|
|
81
|
-
result[key] = this.serializeValue(child, ...args);
|
|
82
|
-
}
|
|
83
|
-
return result;
|
|
84
|
-
}
|
|
85
|
-
getMetadata(constructor) {
|
|
86
|
-
try {
|
|
87
|
-
return decoration_1.Metadata.modelName(constructor);
|
|
88
|
-
}
|
|
89
|
-
catch {
|
|
90
|
-
return undefined;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
rebuildValue(value) {
|
|
94
|
-
if (value === null || typeof value !== "object")
|
|
95
|
-
return value;
|
|
96
|
-
if (Array.isArray(value)) {
|
|
97
|
-
return value.map((item) => this.rebuildValue(item));
|
|
98
|
-
}
|
|
99
|
-
const anchor = value[decorator_validation_1.ModelKeys.ANCHOR];
|
|
100
|
-
const rebuilt = this.rebuildObject(value);
|
|
101
|
-
if (!anchor)
|
|
102
|
-
return rebuilt;
|
|
103
|
-
if (anchor === "??condition")
|
|
104
|
-
return core_1.Condition.from(rebuilt);
|
|
105
|
-
return decorator_validation_1.Model.build(rebuilt, anchor);
|
|
106
|
-
}
|
|
107
|
-
rebuildObject(value) {
|
|
108
|
-
const result = {};
|
|
109
|
-
for (const [key, child] of Object.entries(value)) {
|
|
110
|
-
if (key === decorator_validation_1.ModelKeys.ANCHOR)
|
|
111
|
-
continue;
|
|
112
|
-
result[key] = this.rebuildValue(child);
|
|
113
|
-
}
|
|
114
|
-
return result;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @summary Serializes a model
|
|
118
|
-
* @param {T} model
|
|
119
|
-
*
|
|
120
|
-
* @throws {Error} if fails to serialize
|
|
121
|
-
*/
|
|
122
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
123
|
-
serialize(model, ...args) {
|
|
124
|
-
return JSON.stringify(this.preSerialize(model));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.ArraySerializer = ArraySerializer;
|
|
128
|
-
let ManufacturerAddress = class ManufacturerAddress extends decorator_validation_1.Model {
|
|
129
|
-
constructor(arg) {
|
|
130
|
-
super(arg);
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
__decorate([
|
|
134
|
-
(0, decorator_validation_1.minlength)(2),
|
|
135
|
-
__metadata("design:type", String)
|
|
136
|
-
], ManufacturerAddress.prototype, "address", void 0);
|
|
137
|
-
ManufacturerAddress = __decorate([
|
|
138
|
-
(0, decorator_validation_1.model)(),
|
|
139
|
-
__metadata("design:paramtypes", [Object])
|
|
140
|
-
], ManufacturerAddress);
|
|
141
|
-
let OtherBatchShared = class OtherBatchShared extends BaseIdentifiedModel_js_1.BaseIdentifiedModel {
|
|
142
|
-
constructor(model) {
|
|
143
|
-
super(model);
|
|
144
|
-
this.batchRecall = false;
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
exports.OtherBatchShared = OtherBatchShared;
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, core_1.pk)(),
|
|
150
|
-
(0, decorators_private_js_1.audit)(OtherBatchShared),
|
|
151
|
-
(0, history_dec_js_1.historyDec)(),
|
|
152
|
-
(0, index_js_1.mirror)("mirror-collection", "PharmaledgerassocMSP"),
|
|
153
|
-
(0, db_decorators_1.composed)(["productCode", "batchNumber"], ":"),
|
|
154
|
-
(0, decoration_1.description)("Unique identifier composed of product code and batch number."),
|
|
155
|
-
__metadata("design:type", String)
|
|
156
|
-
], OtherBatchShared.prototype, "id", void 0);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, gtin_js_1.gtin)(),
|
|
159
|
-
(0, db_decorators_1.readonly)()
|
|
160
|
-
// @manyToOne(
|
|
161
|
-
// () => Product,
|
|
162
|
-
// { update: Cascade.NONE, delete: Cascade.NONE },
|
|
163
|
-
// false
|
|
164
|
-
// )
|
|
165
|
-
,
|
|
166
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
167
|
-
(0, decoration_1.description)("Code of the product associated with this batch."),
|
|
168
|
-
(0, core_1.defaultQueryAttr)(),
|
|
169
|
-
__metadata("design:type", String)
|
|
170
|
-
], OtherBatchShared.prototype, "productCode", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
(0, core_1.column)(),
|
|
173
|
-
(0, db_decorators_1.readonly)(),
|
|
174
|
-
(0, decorator_validation_1.pattern)(constants_js_1.BatchPattern),
|
|
175
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
176
|
-
(0, decoration_1.description)("Batch number assigned to the product."),
|
|
177
|
-
(0, core_1.defaultQueryAttr)(),
|
|
178
|
-
__metadata("design:type", String)
|
|
179
|
-
], OtherBatchShared.prototype, "batchNumber", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
(0, decorator_validation_1.required)(),
|
|
182
|
-
(0, core_1.column)(),
|
|
183
|
-
(0, decorator_validation_1.date)("yyyy-MM-dd HH:mm:ss"),
|
|
184
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
185
|
-
(0, decoration_1.description)("Date when the batch expires."),
|
|
186
|
-
__metadata("design:type", Date)
|
|
187
|
-
], OtherBatchShared.prototype, "expiryDate", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
(0, core_1.column)(),
|
|
190
|
-
(0, decoration_1.description)("Import license number for this batch."),
|
|
191
|
-
__metadata("design:type", String)
|
|
192
|
-
], OtherBatchShared.prototype, "importLicenseNumber", void 0);
|
|
193
|
-
__decorate([
|
|
194
|
-
(0, core_1.column)(),
|
|
195
|
-
(0, decoration_1.description)("Date when the batch was manufactured."),
|
|
196
|
-
(0, decorator_validation_1.date)(constants_js_1.DatePattern),
|
|
197
|
-
__metadata("design:type", Date)
|
|
198
|
-
], OtherBatchShared.prototype, "dateOfManufacturing", void 0);
|
|
199
|
-
__decorate([
|
|
200
|
-
(0, core_1.column)(),
|
|
201
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
202
|
-
(0, decoration_1.description)("Name of the product manufacturer."),
|
|
203
|
-
__metadata("design:type", String)
|
|
204
|
-
], OtherBatchShared.prototype, "manufacturerName", void 0);
|
|
205
|
-
__decorate([
|
|
206
|
-
(0, db_decorators_1.serialize)(ArraySerializer),
|
|
207
|
-
(0, core_1.column)(),
|
|
208
|
-
(0, decorator_validation_1.list)(ManufacturerAddress),
|
|
209
|
-
(0, decoration_1.description)("Manufacturer address"),
|
|
210
|
-
__metadata("design:type", Array)
|
|
211
|
-
], OtherBatchShared.prototype, "manufacturerAddress", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
(0, core_1.column)(),
|
|
214
|
-
(0, decoration_1.description)("Name of the site where the product was packaged."),
|
|
215
|
-
__metadata("design:type", String)
|
|
216
|
-
], OtherBatchShared.prototype, "packagingSiteName", void 0);
|
|
217
|
-
__decorate([
|
|
218
|
-
(0, core_1.column)(),
|
|
219
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
220
|
-
(0, decoration_1.description)("Indicates whether this batch has been recalled."),
|
|
221
|
-
__metadata("design:type", Boolean)
|
|
222
|
-
], OtherBatchShared.prototype, "batchRecall", void 0);
|
|
223
|
-
__decorate([
|
|
224
|
-
(0, index_js_1.ownedBy)(),
|
|
225
|
-
(0, decoration_1.description)("the owner (msp) of the batch"),
|
|
226
|
-
__metadata("design:type", String)
|
|
227
|
-
], OtherBatchShared.prototype, "owner", void 0);
|
|
228
|
-
__decorate([
|
|
229
|
-
(0, db_decorators_1.version)(),
|
|
230
|
-
__metadata("design:type", Number)
|
|
231
|
-
], OtherBatchShared.prototype, "version", void 0);
|
|
232
|
-
exports.OtherBatchShared = OtherBatchShared = __decorate([
|
|
233
|
-
(0, index_js_1.sharedData)((0, index_js_1.NamespaceCollection)("decaf-namespace")),
|
|
234
|
-
(0, decoration_1.description)("Represents a product batch"),
|
|
235
|
-
(0, decoration_1.uses)(index_js_1.FabricFlavour),
|
|
236
|
-
(0, db_decorators_1.BlockOperations)([db_decorators_1.OperationKeys.DELETE]),
|
|
237
|
-
(0, core_1.table)("other_batch_shared"),
|
|
238
|
-
(0, decorator_validation_1.model)(),
|
|
239
|
-
__metadata("design:paramtypes", [Object])
|
|
240
|
-
], OtherBatchShared);
|
|
3
|
+
exports.OtherBatchShared = void 0;
|
|
4
|
+
var OtherBatchShared_js_1 = require("./../trackedModels/OtherBatchShared.cjs");
|
|
5
|
+
Object.defineProperty(exports, "OtherBatchShared", { enumerable: true, get: function () { return OtherBatchShared_js_1.OtherBatchShared; } });
|
|
241
6
|
//# sourceMappingURL=OtherBatchShared.js.map
|
|
242
7
|
//# sourceMappingURL=OtherBatchShared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtherBatchShared.js","sourceRoot":"","sources":["OtherBatchShared.js"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"OtherBatchShared.js","sourceRoot":"","sources":["OtherBatchShared.js"],"names":[],"mappings":";;;AAAA,8EAA0E;AAAjE,uHAAA,gBAAgB,OAAA;AACzB,4CAA4C"}
|
|
@@ -1,121 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Leaflet = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
19
|
-
const core_1 = require("@decaf-ts/core");
|
|
20
|
-
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
21
|
-
const decoration_1 = require("@decaf-ts/decoration");
|
|
22
|
-
const BaseIdentifiedModel_js_1 = require("./BaseIdentifiedModel.cjs");
|
|
23
|
-
const index_js_1 = require("./../../shared/index.cjs");
|
|
24
|
-
const decorators_private_js_1 = require("./decorators-private.cjs");
|
|
25
|
-
const history_dec_js_1 = require("./history-dec.cjs");
|
|
26
|
-
const gtin_js_1 = require("./gtin.cjs");
|
|
27
|
-
const OtherLeafletFile_js_1 = require("./OtherLeafletFile.cjs");
|
|
28
|
-
let Leaflet = class Leaflet extends BaseIdentifiedModel_js_1.BaseIdentifiedModel {
|
|
29
|
-
constructor(model) {
|
|
30
|
-
super(model);
|
|
31
|
-
this.leafletType = "leaflet";
|
|
32
|
-
}
|
|
33
|
-
compare(other, ...exceptions) {
|
|
34
|
-
return super.compare(other, ...[
|
|
35
|
-
...new Set([
|
|
36
|
-
exceptions,
|
|
37
|
-
"updatedAt",
|
|
38
|
-
"updatedBy",
|
|
39
|
-
"otherFilesContent",
|
|
40
|
-
"xmlFileContent",
|
|
41
|
-
]).values(),
|
|
42
|
-
]);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.Leaflet = Leaflet;
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, core_1.pk)(),
|
|
48
|
-
(0, history_dec_js_1.historyDec)(),
|
|
49
|
-
(0, index_js_1.mirror)("mirror-collection", "PharmaledgerassocMSP"),
|
|
50
|
-
(0, decorators_private_js_1.audit)(Leaflet),
|
|
51
|
-
(0, db_decorators_1.composed)(["productCode", "batchNumber", "leafletType", "lang", "epiMarket"], ":", ["batchNumber", "epiMarket"]),
|
|
52
|
-
(0, decoration_1.description)("Unique identifier composed of product code, batch number, and language."),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], Leaflet.prototype, "id", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, gtin_js_1.gtin)(),
|
|
57
|
-
(0, core_1.column)(),
|
|
58
|
-
(0, decorator_validation_1.required)(),
|
|
59
|
-
(0, db_decorators_1.readonly)(),
|
|
60
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
61
|
-
(0, decoration_1.description)("GTIN code of the product associated with this leaflet."),
|
|
62
|
-
(0, core_1.defaultQueryAttr)(),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], Leaflet.prototype, "productCode", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, core_1.column)(),
|
|
67
|
-
(0, db_decorators_1.readonly)(),
|
|
68
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
69
|
-
(0, decoration_1.description)("Batch number linked to the product, if applicable."),
|
|
70
|
-
(0, core_1.defaultQueryAttr)(),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], Leaflet.prototype, "batchNumber", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, core_1.column)(),
|
|
75
|
-
(0, decorator_validation_1.required)(),
|
|
76
|
-
(0, db_decorators_1.readonly)(),
|
|
77
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
78
|
-
(0, decoration_1.description)("Type category the leaflet belongs to."),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], Leaflet.prototype, "leafletType", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, core_1.column)(),
|
|
83
|
-
(0, decorator_validation_1.required)(),
|
|
84
|
-
(0, db_decorators_1.readonly)(),
|
|
85
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
86
|
-
(0, decoration_1.description)("Language code of the leaflet (e.g., 'en', 'pt', 'es')."),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], Leaflet.prototype, "lang", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, core_1.column)(),
|
|
91
|
-
(0, db_decorators_1.readonly)(),
|
|
92
|
-
__metadata("design:type", String)
|
|
93
|
-
], Leaflet.prototype, "epiMarket", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, core_1.column)(),
|
|
96
|
-
(0, decorator_validation_1.required)(),
|
|
97
|
-
(0, decoration_1.description)("Main XML content of the electronic leaflet."),
|
|
98
|
-
(0, core_1.oneToOne)(() => OtherLeafletFile_js_1.OtherLeafletFile, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
|
|
99
|
-
(0, decoration_1.description)("file with the xml content of the leaflet"),
|
|
100
|
-
__metadata("design:type", Object)
|
|
101
|
-
], Leaflet.prototype, "xmlFileContent", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, core_1.oneToMany)(() => OtherLeafletFile_js_1.OtherLeafletFile, { update: core_1.Cascade.CASCADE, delete: core_1.Cascade.CASCADE }, false),
|
|
104
|
-
(0, decoration_1.description)("List of additional files linked to the leaflet, such as PDFs or images."),
|
|
105
|
-
__metadata("design:type", Array)
|
|
106
|
-
], Leaflet.prototype, "otherFilesContent", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, index_js_1.ownedBy)(),
|
|
109
|
-
(0, decoration_1.description)("the owner (msp) of the leaflet"),
|
|
110
|
-
__metadata("design:type", String)
|
|
111
|
-
], Leaflet.prototype, "owner", void 0);
|
|
112
|
-
exports.Leaflet = Leaflet = __decorate([
|
|
113
|
-
(0, decoration_1.description)("Represents the ePI leaflet linked to a specific product, batch, and language."),
|
|
114
|
-
(0, decoration_1.uses)(index_js_1.FabricFlavour),
|
|
115
|
-
(0, core_1.table)("other_leaflet"),
|
|
116
|
-
(0, index_js_1.sharedData)((0, index_js_1.NamespaceCollection)("decaf-namespace")),
|
|
117
|
-
(0, decorator_validation_1.model)(),
|
|
118
|
-
__metadata("design:paramtypes", [Object])
|
|
119
|
-
], Leaflet);
|
|
3
|
+
exports.OtherLeaflet = exports.Leaflet = void 0;
|
|
4
|
+
var OtherLeaflet_js_1 = require("./../trackedModels/OtherLeaflet.cjs");
|
|
5
|
+
Object.defineProperty(exports, "Leaflet", { enumerable: true, get: function () { return OtherLeaflet_js_1.Leaflet; } });
|
|
6
|
+
var OtherLeaflet_js_2 = require("./../trackedModels/OtherLeaflet.cjs");
|
|
7
|
+
Object.defineProperty(exports, "OtherLeaflet", { enumerable: true, get: function () { return OtherLeaflet_js_2.Leaflet; } });
|
|
120
8
|
//# sourceMappingURL=OtherLeaflet.js.map
|
|
121
9
|
//# sourceMappingURL=OtherLeaflet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtherLeaflet.js","sourceRoot":"","sources":["OtherLeaflet.js"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"OtherLeaflet.js","sourceRoot":"","sources":["OtherLeaflet.js"],"names":[],"mappings":";;;AAAA,sEAA6D;AAApD,0GAAA,OAAO,OAAA;AAChB,sEAA6E;AAApE,+GAAA,OAAO,OAAgB;AAChC,wCAAwC"}
|
|
@@ -1,71 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OtherLeafletFile = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
else
|
|
9
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
10
|
-
if (d = decorators[i])
|
|
11
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
12
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
|
-
};
|
|
14
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
15
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
16
|
-
return Reflect.metadata(k, v);
|
|
17
|
-
};
|
|
18
|
-
const decorator_validation_1 = require("@decaf-ts/decorator-validation");
|
|
19
|
-
const core_1 = require("@decaf-ts/core");
|
|
20
|
-
const decoration_1 = require("@decaf-ts/decoration");
|
|
21
|
-
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
22
|
-
const BaseIdentifiedModel_js_1 = require("./BaseIdentifiedModel.cjs");
|
|
23
|
-
const index_js_1 = require("./../../shared/index.cjs");
|
|
24
|
-
let OtherLeafletFile = class OtherLeafletFile extends BaseIdentifiedModel_js_1.BaseIdentifiedModel {
|
|
25
|
-
constructor(model) {
|
|
26
|
-
super(model);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.OtherLeafletFile = OtherLeafletFile;
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, core_1.pk)(),
|
|
32
|
-
(0, index_js_1.mirror)("mirror-collection", "PharmaledgerassocMSP"),
|
|
33
|
-
(0, db_decorators_1.composed)(["leafletId", "fileName"], ":"),
|
|
34
|
-
(0, decoration_1.description)("Unique identifier of the leaflet file."),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], OtherLeafletFile.prototype, "id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, core_1.column)(),
|
|
39
|
-
(0, decorator_validation_1.required)(),
|
|
40
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
41
|
-
(0, decoration_1.description)("Identifier of the leaflet this file belongs to."),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], OtherLeafletFile.prototype, "leafletId", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, core_1.column)(),
|
|
46
|
-
(0, decorator_validation_1.required)(),
|
|
47
|
-
(0, core_1.index)([core_1.OrderDirection.ASC, core_1.OrderDirection.DSC]),
|
|
48
|
-
(0, decoration_1.description)("Name of the file, including its extension."),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], OtherLeafletFile.prototype, "fileName", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, core_1.column)(),
|
|
53
|
-
(0, decorator_validation_1.required)(),
|
|
54
|
-
(0, decoration_1.description)("Base64-encoded content of the file."),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], OtherLeafletFile.prototype, "fileContent", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, index_js_1.ownedBy)(),
|
|
59
|
-
(0, decoration_1.description)("the owner (msp) of the leaflet"),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], OtherLeafletFile.prototype, "owner", void 0);
|
|
62
|
-
exports.OtherLeafletFile = OtherLeafletFile = __decorate([
|
|
63
|
-
(0, decoration_1.description)("Represents an additional file associated with a leaflet, such as a PDF or image."),
|
|
64
|
-
(0, decoration_1.uses)(index_js_1.FabricFlavour),
|
|
65
|
-
(0, core_1.table)("other_leaflet_file"),
|
|
66
|
-
(0, index_js_1.sharedData)((0, index_js_1.NamespaceCollection)("decaf-namespace")),
|
|
67
|
-
(0, decorator_validation_1.model)(),
|
|
68
|
-
__metadata("design:paramtypes", [Object])
|
|
69
|
-
], OtherLeafletFile);
|
|
4
|
+
var OtherLeafletFile_js_1 = require("./../trackedModels/OtherLeafletFile.cjs");
|
|
5
|
+
Object.defineProperty(exports, "OtherLeafletFile", { enumerable: true, get: function () { return OtherLeafletFile_js_1.OtherLeafletFile; } });
|
|
70
6
|
//# sourceMappingURL=OtherLeafletFile.js.map
|
|
71
7
|
//# sourceMappingURL=OtherLeafletFile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OtherLeafletFile.js","sourceRoot":"","sources":["OtherLeafletFile.js"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"OtherLeafletFile.js","sourceRoot":"","sources":["OtherLeafletFile.js"],"names":[],"mappings":";;;AAAA,8EAA0E;AAAjE,uHAAA,gBAAgB,OAAA;AACzB,4CAA4C"}
|