@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clipboard-health/contract-core",
3
3
  "description": "Shared Zod schemas for Clipboard's contracts.",
4
- "version": "0.22.2",
4
+ "version": "0.22.3",
5
5
  "bugs": "https://github.com/ClipboardHealth/core-utils/issues",
6
6
  "dependencies": {
7
7
  "tslib": "2.8.1"
@@ -1,5 +1,6 @@
1
1
  export * from "./apiError";
2
2
  export * from "./booleanString";
3
+ export * from "./money";
3
4
  export * from "./nonEmptyString";
4
5
  export * from "./objectId";
5
6
  export * from "./uuid";
@@ -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"}