@clipboard-health/contract-core 0.22.2 → 0.22.3
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/package.json
CHANGED
package/src/lib/schemas/index.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./apiError"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./booleanString"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./money"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./nonEmptyString"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./objectId"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./uuid"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/contract-core/src/lib/schemas/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,0DAAgC;AAChC,2DAAiC;AACjC,qDAA2B;AAC3B,iDAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/contract-core/src/lib/schemas/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,0DAAgC;AAChC,kDAAwB;AACxB,2DAAiC;AACjC,qDAA2B;AAC3B,iDAAuB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Currency code that follows the ISO 4217 standard.
|
|
4
|
+
*/
|
|
5
|
+
export declare const currencyCode: z.ZodEnum<["USD"]>;
|
|
6
|
+
export declare const money: z.ZodObject<{
|
|
7
|
+
amountInMinorUnits: z.ZodNumber;
|
|
8
|
+
currencyCode: z.ZodEnum<["USD"]>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
amountInMinorUnits: number;
|
|
11
|
+
currencyCode: "USD";
|
|
12
|
+
}, {
|
|
13
|
+
amountInMinorUnits: number;
|
|
14
|
+
currencyCode: "USD";
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.money = exports.currencyCode = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Currency code that follows the ISO 4217 standard.
|
|
7
|
+
*/
|
|
8
|
+
exports.currencyCode = zod_1.z.enum(["USD"]);
|
|
9
|
+
exports.money = zod_1.z.object({
|
|
10
|
+
amountInMinorUnits: zod_1.z.number().int(),
|
|
11
|
+
currencyCode: exports.currencyCode,
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=money.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"money.js","sourceRoot":"","sources":["../../../../../../packages/contract-core/src/lib/schemas/money.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAE/B,QAAA,KAAK,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5B,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpC,YAAY,EAAZ,oBAAY;CACb,CAAC,CAAC"}
|