@deessejs/collections 0.0.4 → 0.0.5

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.
@@ -1,3 +1,4 @@
1
+ import { Field } from "../fields";
1
2
  export type Collection = {
2
3
  slug: string;
3
4
  name?: string;
@@ -6,6 +7,6 @@ export type Collection = {
6
7
  group?: string;
7
8
  };
8
9
  fields: {
9
- [key: string]: string;
10
+ [key: string]: Field;
10
11
  };
11
12
  };
@@ -0,0 +1,2 @@
1
+ import z from "zod";
2
+ export declare const number: (params: number) => import("./types").FieldTypeFinal<z.ZodNumber>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.number = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const field_1 = require("./field");
9
+ exports.number = (0, field_1.fieldType)({
10
+ schema: zod_1.default.number(),
11
+ dsl: {
12
+ kind: "number",
13
+ },
14
+ admin: {
15
+ component: undefined,
16
+ },
17
+ });
@@ -1,2 +1,3 @@
1
1
  export * from './field';
2
2
  export * from './types';
3
+ export * from './core';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./field"), exports);
18
18
  __exportStar(require("./types"), exports);
19
+ __exportStar(require("./core"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deessejs/collections",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",