evo360-types 1.1.87 → 1.1.88

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,6 +1,164 @@
1
1
  import { z } from "zod";
2
+ export declare const zCakeActionSchema: z.ZodEnum<["CREATE_SURVEY", "DELETE_SURVEY", "UPDATE_SURVEY", "SHARE_SURVEY"]>;
2
3
  export declare const zCakeAssetActionSchema: z.ZodEnum<["CREATE_CAKE_ASSET", "DELETE_CAKE_ASSET", "UPDATE_CAKE_ASSET", "PROCESS_CAKE_ASSET", "CLASSIFY_CAKE_ASSET", "EXTRACT_TEXT_CAKE_ASSET", "OCR_CAKE_ASSET", "METADATA_EXTRACTION_CAKE_ASSET", "UPDATE_RELEVANCE_SCORE_CAKE_ASSET", "UPDATE_ASSET_STATUS_CAKE_ASSET", "UPDATE_ASSET_TAGS_CAKE_ASSET", "PROCESS_CAKE_ASSET_FAILED", "CLASSIFY_CAKE_ASSET_FAILED", "EXTRACT_TEXT_CAKE_ASSET_FAILED", "STORE_CAKE_ASSET", "RETRIEVE_CAKE_ASSET"]>;
4
+ export declare const zCakePermissionSchema: z.ZodEnum<["private", "tenant", "public"]>;
5
+ export declare const zCakeStatusSchema: z.ZodEnum<["active", "archived"]>;
3
6
  export declare const zAssetTypeSchema: z.ZodEnum<["file", "event", "meeting", "note", "data"]>;
7
+ export declare const zCakeSchema: z.ZodObject<z.objectUtil.extendShape<{
8
+ id: z.ZodString;
9
+ ref: z.ZodAny;
10
+ tenant: z.ZodString;
11
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
12
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
13
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
14
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
15
+ }, {
16
+ name: z.ZodString;
17
+ description: z.ZodOptional<z.ZodString>;
18
+ status: z.ZodOptional<z.ZodEnum<["active", "archived"]>>;
19
+ permission: z.ZodOptional<z.ZodEnum<["private", "tenant", "public"]>>;
20
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
21
+ name: z.ZodString;
22
+ color: z.ZodOptional<z.ZodString>;
23
+ hidden: z.ZodBoolean;
24
+ }, "strip", z.ZodTypeAny, {
25
+ name: string;
26
+ hidden: boolean;
27
+ color?: string | undefined;
28
+ }, {
29
+ name: string;
30
+ hidden: boolean;
31
+ color?: string | undefined;
32
+ }>, "many">>>;
33
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
34
+ id: z.ZodString;
35
+ ref: z.ZodAny;
36
+ tenant: z.ZodString;
37
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
38
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
39
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
40
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
41
+ }, {
42
+ name: z.ZodString;
43
+ description: z.ZodOptional<z.ZodString>;
44
+ status: z.ZodOptional<z.ZodEnum<["active", "archived"]>>;
45
+ permission: z.ZodOptional<z.ZodEnum<["private", "tenant", "public"]>>;
46
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
47
+ name: z.ZodString;
48
+ color: z.ZodOptional<z.ZodString>;
49
+ hidden: z.ZodBoolean;
50
+ }, "strip", z.ZodTypeAny, {
51
+ name: string;
52
+ hidden: boolean;
53
+ color?: string | undefined;
54
+ }, {
55
+ name: string;
56
+ hidden: boolean;
57
+ color?: string | undefined;
58
+ }>, "many">>>;
59
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
60
+ id: z.ZodString;
61
+ ref: z.ZodAny;
62
+ tenant: z.ZodString;
63
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
64
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
65
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
66
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
67
+ }, {
68
+ name: z.ZodString;
69
+ description: z.ZodOptional<z.ZodString>;
70
+ status: z.ZodOptional<z.ZodEnum<["active", "archived"]>>;
71
+ permission: z.ZodOptional<z.ZodEnum<["private", "tenant", "public"]>>;
72
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
73
+ name: z.ZodString;
74
+ color: z.ZodOptional<z.ZodString>;
75
+ hidden: z.ZodBoolean;
76
+ }, "strip", z.ZodTypeAny, {
77
+ name: string;
78
+ hidden: boolean;
79
+ color?: string | undefined;
80
+ }, {
81
+ name: string;
82
+ hidden: boolean;
83
+ color?: string | undefined;
84
+ }>, "many">>>;
85
+ }>, z.ZodTypeAny, "passthrough">>;
86
+ export declare const zCakeDocSchema: z.ZodObject<z.objectUtil.extendShape<{
87
+ id: z.ZodString;
88
+ ref: z.ZodAny;
89
+ tenant: z.ZodString;
90
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
91
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
92
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
93
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
94
+ }, {
95
+ name: z.ZodString;
96
+ description: z.ZodOptional<z.ZodString>;
97
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
99
+ name: z.ZodString;
100
+ color: z.ZodOptional<z.ZodString>;
101
+ hidden: z.ZodBoolean;
102
+ }, "strip", z.ZodTypeAny, {
103
+ name: string;
104
+ hidden: boolean;
105
+ color?: string | undefined;
106
+ }, {
107
+ name: string;
108
+ hidden: boolean;
109
+ color?: string | undefined;
110
+ }>, "many">>>;
111
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
112
+ id: z.ZodString;
113
+ ref: z.ZodAny;
114
+ tenant: z.ZodString;
115
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
116
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
117
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
118
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
119
+ }, {
120
+ name: z.ZodString;
121
+ description: z.ZodOptional<z.ZodString>;
122
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
124
+ name: z.ZodString;
125
+ color: z.ZodOptional<z.ZodString>;
126
+ hidden: z.ZodBoolean;
127
+ }, "strip", z.ZodTypeAny, {
128
+ name: string;
129
+ hidden: boolean;
130
+ color?: string | undefined;
131
+ }, {
132
+ name: string;
133
+ hidden: boolean;
134
+ color?: string | undefined;
135
+ }>, "many">>>;
136
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
137
+ id: z.ZodString;
138
+ ref: z.ZodAny;
139
+ tenant: z.ZodString;
140
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
141
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
142
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
143
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
144
+ }, {
145
+ name: z.ZodString;
146
+ description: z.ZodOptional<z.ZodString>;
147
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
149
+ name: z.ZodString;
150
+ color: z.ZodOptional<z.ZodString>;
151
+ hidden: z.ZodBoolean;
152
+ }, "strip", z.ZodTypeAny, {
153
+ name: string;
154
+ hidden: boolean;
155
+ color?: string | undefined;
156
+ }, {
157
+ name: string;
158
+ hidden: boolean;
159
+ color?: string | undefined;
160
+ }>, "many">>>;
161
+ }>, z.ZodTypeAny, "passthrough">>;
4
162
  export declare const zBaseAssetSchema: z.ZodObject<z.objectUtil.extendShape<{
5
163
  id: z.ZodString;
6
164
  ref: z.ZodAny;
@@ -1,8 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zStructuredDataAssetSchema = exports.zNoteAssetSchema = exports.zMeetingAssetSchema = exports.zCalendarEventAssetSchema = exports.zFileAssetSchema = exports.zBaseAssetSchema = exports.zAssetTypeSchema = exports.zCakeAssetActionSchema = void 0;
3
+ exports.zStructuredDataAssetSchema = exports.zNoteAssetSchema = exports.zMeetingAssetSchema = exports.zCalendarEventAssetSchema = exports.zFileAssetSchema = exports.zBaseAssetSchema = exports.zCakeDocSchema = exports.zCakeSchema = exports.zAssetTypeSchema = exports.zCakeStatusSchema = exports.zCakePermissionSchema = exports.zCakeAssetActionSchema = exports.zCakeActionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../shared/zod-schemas");
6
+ exports.zCakeActionSchema = zod_1.z.enum([
7
+ "CREATE_SURVEY",
8
+ "DELETE_SURVEY",
9
+ "UPDATE_SURVEY",
10
+ "SHARE_SURVEY",
11
+ ]);
6
12
  exports.zCakeAssetActionSchema = zod_1.z.enum([
7
13
  "CREATE_CAKE_ASSET",
8
14
  "DELETE_CAKE_ASSET",
@@ -21,6 +27,8 @@ exports.zCakeAssetActionSchema = zod_1.z.enum([
21
27
  "STORE_CAKE_ASSET",
22
28
  "RETRIEVE_CAKE_ASSET",
23
29
  ]);
30
+ exports.zCakePermissionSchema = zod_1.z.enum(["private", "tenant", "public"]);
31
+ exports.zCakeStatusSchema = zod_1.z.enum(["active", "archived"]);
24
32
  exports.zAssetTypeSchema = zod_1.z.enum([
25
33
  "file",
26
34
  "event",
@@ -28,6 +36,26 @@ exports.zAssetTypeSchema = zod_1.z.enum([
28
36
  "note",
29
37
  "data",
30
38
  ]);
39
+ exports.zCakeSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
40
+ .extend({
41
+ name: zod_1.z.string().min(1).max(255),
42
+ description: zod_1.z.string().max(2048).optional(),
43
+ status: exports.zCakeStatusSchema.optional(),
44
+ permission: exports.zCakePermissionSchema.optional(),
45
+ //assets: z.array(zCakeAssetSchema).nullable().optional(),
46
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
47
+ })
48
+ .passthrough();
49
+ // Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus -
50
+ exports.zCakeDocSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
51
+ .extend({
52
+ name: zod_1.z.string(),
53
+ description: zod_1.z.string().max(2048).optional(),
54
+ content: zod_1.z.string().nullable().optional(),
55
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
56
+ })
57
+ .passthrough();
58
+ // Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset -----
31
59
  // Base schema for all assets
32
60
  exports.zBaseAssetSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
33
61
  .extend({
@@ -1,6 +1,13 @@
1
1
  import { any, z } from "zod";
2
2
  import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
3
3
 
4
+ export const zCakeActionSchema = z.enum([
5
+ "CREATE_SURVEY",
6
+ "DELETE_SURVEY",
7
+ "UPDATE_SURVEY",
8
+ "SHARE_SURVEY",
9
+ ]);
10
+
4
11
  export const zCakeAssetActionSchema = z.enum([
5
12
  "CREATE_CAKE_ASSET",
6
13
  "DELETE_CAKE_ASSET",
@@ -20,6 +27,10 @@ export const zCakeAssetActionSchema = z.enum([
20
27
  "RETRIEVE_CAKE_ASSET",
21
28
  ]);
22
29
 
30
+ export const zCakePermissionSchema = z.enum(["private", "tenant", "public"]);
31
+
32
+ export const zCakeStatusSchema = z.enum(["active", "archived"]);
33
+
23
34
  export const zAssetTypeSchema = z.enum([
24
35
  "file",
25
36
  "event",
@@ -28,6 +39,28 @@ export const zAssetTypeSchema = z.enum([
28
39
  "data",
29
40
  ]);
30
41
 
42
+ export const zCakeSchema = zFireDocSchema // Extend from FireDocSchema
43
+ .extend({
44
+ name: z.string().min(1).max(255),
45
+ description: z.string().max(2048).optional(),
46
+ status: zCakeStatusSchema.optional(),
47
+ permission: zCakePermissionSchema.optional(),
48
+ //assets: z.array(zCakeAssetSchema).nullable().optional(),
49
+ tags: z.array(zTagSchema).nullable().optional(),
50
+ })
51
+ .passthrough();
52
+
53
+ // Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus -
54
+ export const zCakeDocSchema = zFireDocSchema // Extend from FireDocSchema
55
+ .extend({
56
+ name: z.string(),
57
+ description: z.string().max(2048).optional(),
58
+ content: z.string().nullable().optional(),
59
+ tags: z.array(zTagSchema).nullable().optional(),
60
+ })
61
+ .passthrough();
62
+
63
+ // Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset -----
31
64
  // Base schema for all assets
32
65
  export const zBaseAssetSchema = zFireDocSchema // Extend from FireDocSchema
33
66
  .extend({
@@ -48,7 +48,7 @@ export interface ICake extends IFireDoc {
48
48
  export interface ICakeDoc extends IFireDoc {
49
49
  name: string;
50
50
  description?: string;
51
- content?: string;
51
+ content?: string | null;
52
52
  tags?: ITag[] | null;
53
53
  }
54
54
  export type CakeAssetType = "file" | "event" | "meeting" | "note" | "data";
@@ -89,7 +89,7 @@ export interface ICake extends IFireDoc {
89
89
  export interface ICakeDoc extends IFireDoc {
90
90
  name: string;
91
91
  description?: string;
92
- content?: string;
92
+ content?: string | null;
93
93
  tags?: ITag[] | null;
94
94
  }
95
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.1.87",
3
+ "version": "1.1.88",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",