@ramme-io/shared 2.0.4 → 3.1.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/index.cjs CHANGED
@@ -69,7 +69,7 @@ var import_zod = require("zod");
69
69
  var FieldSchema = import_zod.z.object({
70
70
  key: import_zod.z.string(),
71
71
  label: import_zod.z.string(),
72
- type: import_zod.z.enum(["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]),
72
+ type: import_zod.z.enum(["text", "number", "currency", "percent", "delta", "date", "boolean", "status", "email", "image", "textarea"]),
73
73
  required: import_zod.z.boolean().optional(),
74
74
  description: import_zod.z.string().optional(),
75
75
  defaultValue: import_zod.z.any().optional()
package/dist/index.d.cts CHANGED
@@ -19,21 +19,21 @@ import { z } from 'zod';
19
19
  declare const FieldSchema: z.ZodObject<{
20
20
  key: z.ZodString;
21
21
  label: z.ZodString;
22
- type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
22
+ type: z.ZodEnum<["text", "number", "currency", "percent", "delta", "date", "boolean", "status", "email", "image", "textarea"]>;
23
23
  required: z.ZodOptional<z.ZodBoolean>;
24
24
  description: z.ZodOptional<z.ZodString>;
25
25
  defaultValue: z.ZodOptional<z.ZodAny>;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  key: string;
28
28
  label: string;
29
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
29
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
30
30
  required?: boolean | undefined;
31
31
  description?: string | undefined;
32
32
  defaultValue?: any;
33
33
  }, {
34
34
  key: string;
35
35
  label: string;
36
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
36
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
37
37
  required?: boolean | undefined;
38
38
  description?: string | undefined;
39
39
  defaultValue?: any;
@@ -45,21 +45,21 @@ declare const ResourceSchema: z.ZodObject<{
45
45
  fields: z.ZodArray<z.ZodObject<{
46
46
  key: z.ZodString;
47
47
  label: z.ZodString;
48
- type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
48
+ type: z.ZodEnum<["text", "number", "currency", "percent", "delta", "date", "boolean", "status", "email", "image", "textarea"]>;
49
49
  required: z.ZodOptional<z.ZodBoolean>;
50
50
  description: z.ZodOptional<z.ZodString>;
51
51
  defaultValue: z.ZodOptional<z.ZodAny>;
52
52
  }, "strip", z.ZodTypeAny, {
53
53
  key: string;
54
54
  label: string;
55
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
55
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
56
56
  required?: boolean | undefined;
57
57
  description?: string | undefined;
58
58
  defaultValue?: any;
59
59
  }, {
60
60
  key: string;
61
61
  label: string;
62
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
62
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
63
63
  required?: boolean | undefined;
64
64
  description?: string | undefined;
65
65
  defaultValue?: any;
@@ -90,7 +90,7 @@ declare const ResourceSchema: z.ZodObject<{
90
90
  fields: {
91
91
  key: string;
92
92
  label: string;
93
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
93
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
94
94
  required?: boolean | undefined;
95
95
  description?: string | undefined;
96
96
  defaultValue?: any;
@@ -109,7 +109,7 @@ declare const ResourceSchema: z.ZodObject<{
109
109
  fields: {
110
110
  key: string;
111
111
  label: string;
112
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
112
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
113
113
  required?: boolean | undefined;
114
114
  description?: string | undefined;
115
115
  defaultValue?: any;
@@ -631,21 +631,21 @@ declare const AppSpecificationSchema: z.ZodObject<{
631
631
  fields: z.ZodArray<z.ZodObject<{
632
632
  key: z.ZodString;
633
633
  label: z.ZodString;
634
- type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
634
+ type: z.ZodEnum<["text", "number", "currency", "percent", "delta", "date", "boolean", "status", "email", "image", "textarea"]>;
635
635
  required: z.ZodOptional<z.ZodBoolean>;
636
636
  description: z.ZodOptional<z.ZodString>;
637
637
  defaultValue: z.ZodOptional<z.ZodAny>;
638
638
  }, "strip", z.ZodTypeAny, {
639
639
  key: string;
640
640
  label: string;
641
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
641
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
642
642
  required?: boolean | undefined;
643
643
  description?: string | undefined;
644
644
  defaultValue?: any;
645
645
  }, {
646
646
  key: string;
647
647
  label: string;
648
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
648
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
649
649
  required?: boolean | undefined;
650
650
  description?: string | undefined;
651
651
  defaultValue?: any;
@@ -676,7 +676,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
676
676
  fields: {
677
677
  key: string;
678
678
  label: string;
679
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
679
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
680
680
  required?: boolean | undefined;
681
681
  description?: string | undefined;
682
682
  defaultValue?: any;
@@ -695,7 +695,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
695
695
  fields: {
696
696
  key: string;
697
697
  label: string;
698
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
698
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
699
699
  required?: boolean | undefined;
700
700
  description?: string | undefined;
701
701
  defaultValue?: any;
@@ -1151,7 +1151,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
1151
1151
  fields: {
1152
1152
  key: string;
1153
1153
  label: string;
1154
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
1154
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
1155
1155
  required?: boolean | undefined;
1156
1156
  description?: string | undefined;
1157
1157
  defaultValue?: any;
@@ -1260,7 +1260,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
1260
1260
  fields: {
1261
1261
  key: string;
1262
1262
  label: string;
1263
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
1263
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
1264
1264
  required?: boolean | undefined;
1265
1265
  description?: string | undefined;
1266
1266
  defaultValue?: any;
package/dist/index.d.ts CHANGED
@@ -19,21 +19,21 @@ import { z } from 'zod';
19
19
  declare const FieldSchema: z.ZodObject<{
20
20
  key: z.ZodString;
21
21
  label: z.ZodString;
22
- type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
22
+ type: z.ZodEnum<["text", "number", "currency", "percent", "delta", "date", "boolean", "status", "email", "image", "textarea"]>;
23
23
  required: z.ZodOptional<z.ZodBoolean>;
24
24
  description: z.ZodOptional<z.ZodString>;
25
25
  defaultValue: z.ZodOptional<z.ZodAny>;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  key: string;
28
28
  label: string;
29
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
29
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
30
30
  required?: boolean | undefined;
31
31
  description?: string | undefined;
32
32
  defaultValue?: any;
33
33
  }, {
34
34
  key: string;
35
35
  label: string;
36
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
36
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
37
37
  required?: boolean | undefined;
38
38
  description?: string | undefined;
39
39
  defaultValue?: any;
@@ -45,21 +45,21 @@ declare const ResourceSchema: z.ZodObject<{
45
45
  fields: z.ZodArray<z.ZodObject<{
46
46
  key: z.ZodString;
47
47
  label: z.ZodString;
48
- type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
48
+ type: z.ZodEnum<["text", "number", "currency", "percent", "delta", "date", "boolean", "status", "email", "image", "textarea"]>;
49
49
  required: z.ZodOptional<z.ZodBoolean>;
50
50
  description: z.ZodOptional<z.ZodString>;
51
51
  defaultValue: z.ZodOptional<z.ZodAny>;
52
52
  }, "strip", z.ZodTypeAny, {
53
53
  key: string;
54
54
  label: string;
55
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
55
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
56
56
  required?: boolean | undefined;
57
57
  description?: string | undefined;
58
58
  defaultValue?: any;
59
59
  }, {
60
60
  key: string;
61
61
  label: string;
62
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
62
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
63
63
  required?: boolean | undefined;
64
64
  description?: string | undefined;
65
65
  defaultValue?: any;
@@ -90,7 +90,7 @@ declare const ResourceSchema: z.ZodObject<{
90
90
  fields: {
91
91
  key: string;
92
92
  label: string;
93
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
93
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
94
94
  required?: boolean | undefined;
95
95
  description?: string | undefined;
96
96
  defaultValue?: any;
@@ -109,7 +109,7 @@ declare const ResourceSchema: z.ZodObject<{
109
109
  fields: {
110
110
  key: string;
111
111
  label: string;
112
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
112
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
113
113
  required?: boolean | undefined;
114
114
  description?: string | undefined;
115
115
  defaultValue?: any;
@@ -631,21 +631,21 @@ declare const AppSpecificationSchema: z.ZodObject<{
631
631
  fields: z.ZodArray<z.ZodObject<{
632
632
  key: z.ZodString;
633
633
  label: z.ZodString;
634
- type: z.ZodEnum<["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]>;
634
+ type: z.ZodEnum<["text", "number", "currency", "percent", "delta", "date", "boolean", "status", "email", "image", "textarea"]>;
635
635
  required: z.ZodOptional<z.ZodBoolean>;
636
636
  description: z.ZodOptional<z.ZodString>;
637
637
  defaultValue: z.ZodOptional<z.ZodAny>;
638
638
  }, "strip", z.ZodTypeAny, {
639
639
  key: string;
640
640
  label: string;
641
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
641
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
642
642
  required?: boolean | undefined;
643
643
  description?: string | undefined;
644
644
  defaultValue?: any;
645
645
  }, {
646
646
  key: string;
647
647
  label: string;
648
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
648
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
649
649
  required?: boolean | undefined;
650
650
  description?: string | undefined;
651
651
  defaultValue?: any;
@@ -676,7 +676,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
676
676
  fields: {
677
677
  key: string;
678
678
  label: string;
679
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
679
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
680
680
  required?: boolean | undefined;
681
681
  description?: string | undefined;
682
682
  defaultValue?: any;
@@ -695,7 +695,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
695
695
  fields: {
696
696
  key: string;
697
697
  label: string;
698
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
698
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
699
699
  required?: boolean | undefined;
700
700
  description?: string | undefined;
701
701
  defaultValue?: any;
@@ -1151,7 +1151,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
1151
1151
  fields: {
1152
1152
  key: string;
1153
1153
  label: string;
1154
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
1154
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
1155
1155
  required?: boolean | undefined;
1156
1156
  description?: string | undefined;
1157
1157
  defaultValue?: any;
@@ -1260,7 +1260,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
1260
1260
  fields: {
1261
1261
  key: string;
1262
1262
  label: string;
1263
- type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "email" | "image" | "textarea";
1263
+ type: "number" | "boolean" | "status" | "date" | "text" | "currency" | "percent" | "delta" | "email" | "image" | "textarea";
1264
1264
  required?: boolean | undefined;
1265
1265
  description?: string | undefined;
1266
1266
  defaultValue?: any;
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { z } from "zod";
9
9
  var FieldSchema = z.object({
10
10
  key: z.string(),
11
11
  label: z.string(),
12
- type: z.enum(["text", "number", "currency", "date", "boolean", "status", "email", "image", "textarea"]),
12
+ type: z.enum(["text", "number", "currency", "percent", "delta", "date", "boolean", "status", "email", "image", "textarea"]),
13
13
  required: z.boolean().optional(),
14
14
  description: z.string().optional(),
15
15
  defaultValue: z.any().optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramme-io/shared",
3
- "version": "2.0.4",
3
+ "version": "3.1.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",