evo360-types 1.3.6 → 1.3.9
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/apps/evo-activity/zod-schemas.d.ts +93 -0
- package/dist/apps/evo-activity/zod-schemas.js +40 -0
- package/dist/apps/evo-activity/zod-schemas.ts +43 -0
- package/dist/apps/evo-cake/zod-schemas.d.ts +783 -0
- package/dist/apps/evo-cake/zod-schemas.js +110 -0
- package/dist/apps/evo-cake/zod-schemas.ts +121 -0
- package/dist/apps/evo-calendar/zod-schemas.d.ts +71 -0
- package/dist/apps/evo-calendar/zod-schemas.js +32 -0
- package/dist/apps/evo-calendar/zod-schemas.ts +33 -0
- package/dist/apps/evo-core/zod-schemas.d.ts +14 -0
- package/dist/apps/evo-core/zod-schemas.js +9 -0
- package/dist/apps/evo-core/zod-schemas.ts +7 -0
- package/dist/apps/evo-crm/dic/zod-schemas.d.ts +233 -0
- package/dist/apps/evo-crm/dic/zod-schemas.js +45 -0
- package/dist/apps/evo-crm/dic/zod-schemas.ts +46 -0
- package/dist/apps/evo-crm/lead/zod-schemas.d.ts +347 -0
- package/dist/apps/evo-crm/lead/zod-schemas.js +30 -0
- package/dist/apps/evo-crm/lead/zod-schemas.ts +35 -0
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +501 -0
- package/dist/apps/evo-med/dic/zod-schemas.js +116 -0
- package/dist/apps/evo-med/dic/zod-schemas.ts +127 -0
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +421 -0
- package/dist/apps/evo-med/insurance/zod-schemas.js +33 -0
- package/dist/apps/evo-med/insurance/zod-schemas.ts +39 -0
- package/dist/apps/evo-med/people/zod-schemas.d.ts +955 -0
- package/dist/apps/evo-med/people/zod-schemas.js +100 -0
- package/dist/apps/evo-med/people/zod-schemas.ts +117 -0
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +141 -0
- package/dist/apps/evo-med/procedure/zod-schemas.js +26 -0
- package/dist/apps/evo-med/procedure/zod-schemas.ts +26 -0
- package/dist/apps/evo-meeting/zod-schemas.d.ts +429 -0
- package/dist/apps/evo-meeting/zod-schemas.js +56 -0
- package/dist/apps/evo-meeting/zod-schemas.ts +62 -0
- package/dist/apps/evo-people/zod-schemas.d.ts +476 -0
- package/dist/apps/evo-people/zod-schemas.js +120 -0
- package/dist/apps/evo-people/zod-schemas.ts +124 -0
- package/dist/apps/evo-survey/zod-schemas.d.ts +1579 -0
- package/dist/apps/evo-survey/zod-schemas.js +191 -0
- package/dist/apps/evo-survey/zod-schemas.ts +209 -0
- package/dist/apps/evo-task/zod-schemas.d.ts +4 -0
- package/dist/apps/evo-task/zod-schemas.js +17 -0
- package/dist/apps/evo-task/zod-schemas.ts +17 -0
- package/dist/apps/evo-tenant/zod-schemas.d.ts +51 -0
- package/dist/apps/evo-tenant/zod-schemas.js +22 -0
- package/dist/apps/evo-tenant/zod-schemas.ts +23 -0
- package/dist/apps/shared/zod-schemas.d.ts +84 -0
- package/dist/apps/shared/zod-schemas.js +49 -0
- package/dist/apps/shared/zod-schemas.ts +51 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +50 -0
- package/dist/index.ts +35 -0
- package/dist/types/evo-activity/fb_collections.d.ts +4 -0
- package/dist/types/evo-activity/fb_collections.js +9 -0
- package/dist/types/evo-activity/fb_collections.ts +7 -0
- package/dist/types/evo-activity/index.d.ts +28 -0
- package/dist/types/evo-activity/index.js +27 -0
- package/dist/types/evo-activity/index.ts +45 -0
- package/dist/types/evo-cake/fb_collections.d.ts +4 -0
- package/dist/types/evo-cake/fb_collections.js +9 -0
- package/dist/types/evo-cake/fb_collections.ts +7 -0
- package/dist/types/evo-cake/index.d.ts +111 -0
- package/dist/types/evo-cake/index.js +79 -0
- package/dist/types/evo-cake/index.ts +186 -0
- package/dist/types/evo-calendar/fb_collections.d.ts +2 -0
- package/dist/types/evo-calendar/fb_collections.js +7 -0
- package/dist/types/evo-calendar/fb_collections.ts +5 -0
- package/dist/types/evo-calendar/index.d.ts +56 -0
- package/dist/types/evo-calendar/index.js +37 -0
- package/dist/types/evo-calendar/index.ts +69 -0
- package/dist/types/evo-core/index.d.ts +41 -0
- package/dist/types/evo-core/index.js +2 -0
- package/dist/types/evo-core/index.ts +48 -0
- package/dist/types/evo-crm/dic/index.d.ts +51 -0
- package/dist/types/evo-crm/dic/index.js +46 -0
- package/dist/types/evo-crm/dic/index.ts +86 -0
- package/dist/types/evo-crm/fb_collections.d.ts +7 -0
- package/dist/types/evo-crm/fb_collections.js +13 -0
- package/dist/types/evo-crm/fb_collections.ts +13 -0
- package/dist/types/evo-crm/lead/index.d.ts +31 -0
- package/dist/types/evo-crm/lead/index.js +24 -0
- package/dist/types/evo-crm/lead/index.ts +42 -0
- package/dist/types/evo-med/dic/index.d.ts +99 -0
- package/dist/types/evo-med/dic/index.js +52 -0
- package/dist/types/evo-med/dic/index.ts +131 -0
- package/dist/types/evo-med/fb_collections.d.ts +20 -0
- package/dist/types/evo-med/fb_collections.js +28 -0
- package/dist/types/evo-med/fb_collections.ts +31 -0
- package/dist/types/evo-med/insurance/index.d.ts +34 -0
- package/dist/types/evo-med/insurance/index.js +24 -0
- package/dist/types/evo-med/insurance/index.ts +45 -0
- package/dist/types/evo-med/people/index.d.ts +125 -0
- package/dist/types/evo-med/people/index.js +66 -0
- package/dist/types/evo-med/people/index.ts +188 -0
- package/dist/types/evo-med/procedure/index.d.ts +36 -0
- package/dist/types/evo-med/procedure/index.js +30 -0
- package/dist/types/evo-med/procedure/index.ts +48 -0
- package/dist/types/evo-meeting/fb_collections.d.ts +2 -0
- package/dist/types/evo-meeting/fb_collections.js +7 -0
- package/dist/types/evo-meeting/fb_collections.ts +5 -0
- package/dist/types/evo-meeting/index.d.ts +58 -0
- package/dist/types/evo-meeting/index.js +32 -0
- package/dist/types/evo-meeting/index.ts +80 -0
- package/dist/types/evo-messages/fb_collections.d.ts +1 -0
- package/dist/types/evo-messages/fb_collections.js +2 -0
- package/dist/types/evo-messages/fb_collections.ts +0 -0
- package/dist/types/evo-people/fb_collections.d.ts +5 -0
- package/dist/types/evo-people/fb_collections.js +10 -0
- package/dist/types/evo-people/fb_collections.ts +8 -0
- package/dist/types/evo-people/index.d.ts +117 -0
- package/dist/types/evo-people/index.js +59 -0
- package/dist/types/evo-people/index.ts +167 -0
- package/dist/types/evo-survey/fb_collections.d.ts +7 -0
- package/dist/types/evo-survey/fb_collections.js +13 -0
- package/dist/types/evo-survey/fb_collections.ts +12 -0
- package/dist/types/evo-survey/index.d.ts +172 -0
- package/dist/types/evo-survey/index.js +70 -0
- package/dist/types/evo-survey/index.ts +224 -0
- package/dist/types/evo-task/fb_collections.d.ts +2 -0
- package/dist/types/evo-task/fb_collections.js +7 -0
- package/dist/types/evo-task/fb_collections.ts +5 -0
- package/dist/types/evo-task/index.d.ts +35 -0
- package/dist/types/evo-task/index.js +38 -0
- package/dist/types/evo-task/index.ts +51 -0
- package/dist/types/evo-tenant/fb_collections.d.ts +1 -0
- package/dist/types/evo-tenant/fb_collections.js +5 -0
- package/dist/types/evo-tenant/fb_collections.ts +2 -0
- package/dist/types/evo-tenant/index.d.ts +28 -0
- package/dist/types/evo-tenant/index.js +35 -0
- package/dist/types/evo-tenant/index.ts +35 -0
- package/dist/types/shared/fb_collections.d.ts +5 -0
- package/dist/types/shared/fb_collections.js +13 -0
- package/dist/types/shared/fb_collections.ts +14 -0
- package/dist/types/shared/index.d.ts +52 -0
- package/dist/types/shared/index.js +30 -0
- package/dist/types/shared/index.ts +74 -0
- package/dist/types/shared/maska.d.ts +23 -0
- package/dist/types/shared/maska.js +2 -0
- package/dist/types/shared/maska.ts +26 -0
- package/package.json +1 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zStructuredDataAssetSchema = exports.zNoteAssetSchema = exports.zMeetingAssetSchema = exports.zCalendarEventAssetSchema = exports.zFileAssetSchema = exports.zBaseAssetSchema = exports.zCakeDocSchema = exports.zCakeSchema = exports.zAssetProcessingStatusSchema = exports.zAssetTypeSchema = exports.zCakeStatusSchema = exports.zCakePermissionSchema = exports.zCakeAssetActionSchema = exports.zCakeActionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
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
|
+
]);
|
|
12
|
+
exports.zCakeAssetActionSchema = zod_1.z.enum([
|
|
13
|
+
"CREATE_CAKE_ASSET",
|
|
14
|
+
"DELETE_CAKE_ASSET",
|
|
15
|
+
"UPDATE_CAKE_ASSET",
|
|
16
|
+
"PROCESS_CAKE_ASSET",
|
|
17
|
+
"CLASSIFY_CAKE_ASSET",
|
|
18
|
+
"EXTRACT_TEXT_CAKE_ASSET",
|
|
19
|
+
"OCR_CAKE_ASSET",
|
|
20
|
+
"METADATA_EXTRACTION_CAKE_ASSET",
|
|
21
|
+
"UPDATE_RELEVANCE_SCORE_CAKE_ASSET",
|
|
22
|
+
"UPDATE_ASSET_STATUS_CAKE_ASSET",
|
|
23
|
+
"UPDATE_ASSET_TAGS_CAKE_ASSET",
|
|
24
|
+
"PROCESS_CAKE_ASSET_FAILED",
|
|
25
|
+
"CLASSIFY_CAKE_ASSET_FAILED",
|
|
26
|
+
"EXTRACT_TEXT_CAKE_ASSET_FAILED",
|
|
27
|
+
"STORE_CAKE_ASSET",
|
|
28
|
+
"RETRIEVE_CAKE_ASSET",
|
|
29
|
+
]);
|
|
30
|
+
exports.zCakePermissionSchema = zod_1.z.enum(["private", "tenant", "public"]);
|
|
31
|
+
exports.zCakeStatusSchema = zod_1.z.enum(["active", "archived"]);
|
|
32
|
+
exports.zAssetTypeSchema = zod_1.z.enum([
|
|
33
|
+
"file",
|
|
34
|
+
"event",
|
|
35
|
+
"meeting",
|
|
36
|
+
"note",
|
|
37
|
+
"data",
|
|
38
|
+
]);
|
|
39
|
+
exports.zAssetProcessingStatusSchema = zod_1.z.enum([
|
|
40
|
+
"waiting",
|
|
41
|
+
"started",
|
|
42
|
+
"done",
|
|
43
|
+
"failed",
|
|
44
|
+
]);
|
|
45
|
+
exports.zCakeSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
46
|
+
.extend({
|
|
47
|
+
name: zod_1.z.string().min(1).max(255),
|
|
48
|
+
description: zod_1.z.string().max(2048).optional(),
|
|
49
|
+
status: exports.zCakeStatusSchema.optional(),
|
|
50
|
+
permission: exports.zCakePermissionSchema.optional(),
|
|
51
|
+
//assets: z.array(zCakeAssetSchema).nullable().optional(),
|
|
52
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
53
|
+
})
|
|
54
|
+
.passthrough();
|
|
55
|
+
// Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus -
|
|
56
|
+
exports.zCakeDocSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
57
|
+
.extend({
|
|
58
|
+
name: zod_1.z.string(),
|
|
59
|
+
description: zod_1.z.string().max(2048).optional(),
|
|
60
|
+
content: zod_1.z.string().nullable().optional(),
|
|
61
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
62
|
+
})
|
|
63
|
+
.passthrough();
|
|
64
|
+
// Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset -----
|
|
65
|
+
// Base schema for all assets
|
|
66
|
+
exports.zBaseAssetSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
67
|
+
.extend({
|
|
68
|
+
cakeId: zod_1.z.string(),
|
|
69
|
+
type: exports.zAssetTypeSchema,
|
|
70
|
+
relevance_score: zod_1.z.number().min(0).max(1), // Relevance score between 0 and 1
|
|
71
|
+
structured_data: (0, zod_1.any)().optional(),
|
|
72
|
+
embeddings: zod_1.z.array(zod_1.z.number()).optional(), // Array of numbers for embeddings
|
|
73
|
+
metadata: zod_1.z.record(zod_1.z.any()).optional(), // Additional metadata
|
|
74
|
+
processing_status: exports.zAssetProcessingStatusSchema.optional(), // Optional processing status
|
|
75
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
76
|
+
})
|
|
77
|
+
.passthrough();
|
|
78
|
+
// Schema for file assets
|
|
79
|
+
exports.zFileAssetSchema = exports.zBaseAssetSchema.extend({
|
|
80
|
+
file_name: zod_1.z.string(),
|
|
81
|
+
file_type: zod_1.z.string(),
|
|
82
|
+
storage_location: zod_1.z.string(),
|
|
83
|
+
download_url: zod_1.z.string(),
|
|
84
|
+
extracted_text: zod_1.z.string().optional(),
|
|
85
|
+
});
|
|
86
|
+
// Schema for calendar event assets
|
|
87
|
+
exports.zCalendarEventAssetSchema = exports.zBaseAssetSchema.extend({
|
|
88
|
+
title: zod_1.z.string(),
|
|
89
|
+
date: zod_1.z.date(),
|
|
90
|
+
start_time: zod_1.z.date().optional(),
|
|
91
|
+
end_time: zod_1.z.date().optional(),
|
|
92
|
+
location: zod_1.z.string().optional(),
|
|
93
|
+
participants: zod_1.z.array(zod_1.z.string()).optional(),
|
|
94
|
+
description: zod_1.z.string().optional(),
|
|
95
|
+
});
|
|
96
|
+
// Schema for meeting assets
|
|
97
|
+
exports.zMeetingAssetSchema = exports.zCalendarEventAssetSchema.extend({
|
|
98
|
+
agenda: zod_1.z.string().optional(),
|
|
99
|
+
notes: zod_1.z.string().optional(),
|
|
100
|
+
});
|
|
101
|
+
// Schema for note assets
|
|
102
|
+
exports.zNoteAssetSchema = exports.zBaseAssetSchema.extend({
|
|
103
|
+
title: zod_1.z.string().optional(),
|
|
104
|
+
content: zod_1.z.string(),
|
|
105
|
+
});
|
|
106
|
+
// Schema for structured data assets
|
|
107
|
+
exports.zStructuredDataAssetSchema = exports.zBaseAssetSchema.extend({
|
|
108
|
+
data: (0, zod_1.any)().optional(),
|
|
109
|
+
schema: zod_1.z.string().optional(),
|
|
110
|
+
});
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { any, z } from "zod";
|
|
2
|
+
import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
|
|
3
|
+
|
|
4
|
+
export const zCakeActionSchema = z.enum([
|
|
5
|
+
"CREATE_SURVEY",
|
|
6
|
+
"DELETE_SURVEY",
|
|
7
|
+
"UPDATE_SURVEY",
|
|
8
|
+
"SHARE_SURVEY",
|
|
9
|
+
]);
|
|
10
|
+
|
|
11
|
+
export const zCakeAssetActionSchema = z.enum([
|
|
12
|
+
"CREATE_CAKE_ASSET",
|
|
13
|
+
"DELETE_CAKE_ASSET",
|
|
14
|
+
"UPDATE_CAKE_ASSET",
|
|
15
|
+
"PROCESS_CAKE_ASSET",
|
|
16
|
+
"CLASSIFY_CAKE_ASSET",
|
|
17
|
+
"EXTRACT_TEXT_CAKE_ASSET",
|
|
18
|
+
"OCR_CAKE_ASSET",
|
|
19
|
+
"METADATA_EXTRACTION_CAKE_ASSET",
|
|
20
|
+
"UPDATE_RELEVANCE_SCORE_CAKE_ASSET",
|
|
21
|
+
"UPDATE_ASSET_STATUS_CAKE_ASSET",
|
|
22
|
+
"UPDATE_ASSET_TAGS_CAKE_ASSET",
|
|
23
|
+
"PROCESS_CAKE_ASSET_FAILED",
|
|
24
|
+
"CLASSIFY_CAKE_ASSET_FAILED",
|
|
25
|
+
"EXTRACT_TEXT_CAKE_ASSET_FAILED",
|
|
26
|
+
"STORE_CAKE_ASSET",
|
|
27
|
+
"RETRIEVE_CAKE_ASSET",
|
|
28
|
+
]);
|
|
29
|
+
|
|
30
|
+
export const zCakePermissionSchema = z.enum(["private", "tenant", "public"]);
|
|
31
|
+
|
|
32
|
+
export const zCakeStatusSchema = z.enum(["active", "archived"]);
|
|
33
|
+
|
|
34
|
+
export const zAssetTypeSchema = z.enum([
|
|
35
|
+
"file",
|
|
36
|
+
"event",
|
|
37
|
+
"meeting",
|
|
38
|
+
"note",
|
|
39
|
+
"data",
|
|
40
|
+
]);
|
|
41
|
+
|
|
42
|
+
export const zAssetProcessingStatusSchema = z.enum([
|
|
43
|
+
"waiting",
|
|
44
|
+
"started",
|
|
45
|
+
"done",
|
|
46
|
+
"failed",
|
|
47
|
+
]);
|
|
48
|
+
|
|
49
|
+
export const zCakeSchema = zFireDocSchema // Extend from FireDocSchema
|
|
50
|
+
.extend({
|
|
51
|
+
name: z.string().min(1).max(255),
|
|
52
|
+
description: z.string().max(2048).optional(),
|
|
53
|
+
status: zCakeStatusSchema.optional(),
|
|
54
|
+
permission: zCakePermissionSchema.optional(),
|
|
55
|
+
//assets: z.array(zCakeAssetSchema).nullable().optional(),
|
|
56
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
57
|
+
})
|
|
58
|
+
.passthrough();
|
|
59
|
+
|
|
60
|
+
// Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus - Consensus -
|
|
61
|
+
export const zCakeDocSchema = zFireDocSchema // Extend from FireDocSchema
|
|
62
|
+
.extend({
|
|
63
|
+
name: z.string(),
|
|
64
|
+
description: z.string().max(2048).optional(),
|
|
65
|
+
content: z.string().nullable().optional(),
|
|
66
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
67
|
+
})
|
|
68
|
+
.passthrough();
|
|
69
|
+
|
|
70
|
+
// Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset ----- Asset -----
|
|
71
|
+
// Base schema for all assets
|
|
72
|
+
export const zBaseAssetSchema = zFireDocSchema // Extend from FireDocSchema
|
|
73
|
+
.extend({
|
|
74
|
+
cakeId: z.string(),
|
|
75
|
+
type: zAssetTypeSchema,
|
|
76
|
+
relevance_score: z.number().min(0).max(1), // Relevance score between 0 and 1
|
|
77
|
+
structured_data: any().optional(),
|
|
78
|
+
embeddings: z.array(z.number()).optional(), // Array of numbers for embeddings
|
|
79
|
+
metadata: z.record(z.any()).optional(), // Additional metadata
|
|
80
|
+
processing_status: zAssetProcessingStatusSchema.optional(), // Optional processing status
|
|
81
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
82
|
+
})
|
|
83
|
+
.passthrough();
|
|
84
|
+
|
|
85
|
+
// Schema for file assets
|
|
86
|
+
export const zFileAssetSchema = zBaseAssetSchema.extend({
|
|
87
|
+
file_name: z.string(),
|
|
88
|
+
file_type: z.string(),
|
|
89
|
+
storage_location: z.string(),
|
|
90
|
+
download_url: z.string(),
|
|
91
|
+
extracted_text: z.string().optional(),
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
// Schema for calendar event assets
|
|
95
|
+
export const zCalendarEventAssetSchema = zBaseAssetSchema.extend({
|
|
96
|
+
title: z.string(),
|
|
97
|
+
date: z.date(),
|
|
98
|
+
start_time: z.date().optional(),
|
|
99
|
+
end_time: z.date().optional(),
|
|
100
|
+
location: z.string().optional(),
|
|
101
|
+
participants: z.array(z.string()).optional(),
|
|
102
|
+
description: z.string().optional(),
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// Schema for meeting assets
|
|
106
|
+
export const zMeetingAssetSchema = zCalendarEventAssetSchema.extend({
|
|
107
|
+
agenda: z.string().optional(),
|
|
108
|
+
notes: z.string().optional(),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// Schema for note assets
|
|
112
|
+
export const zNoteAssetSchema = zBaseAssetSchema.extend({
|
|
113
|
+
title: z.string().optional(),
|
|
114
|
+
content: z.string(),
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
// Schema for structured data assets
|
|
118
|
+
export const zStructuredDataAssetSchema = zBaseAssetSchema.extend({
|
|
119
|
+
data: any().optional(),
|
|
120
|
+
schema: z.string().optional(),
|
|
121
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const zCalendarActionSchema: z.ZodEnum<["CREATE_EVENT", "DELETE_EVENT", "UPDATE_EVENT"]>;
|
|
3
|
+
export declare const zCalendarEventStatusSchema: z.ZodEnum<["scheduled", "completed", "cancelled"]>;
|
|
4
|
+
export declare const zCalendarEventTypeSchema: z.ZodEnum<["event", "meeting", "workshop", "other"]>;
|
|
5
|
+
export declare const zEventSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
ref: z.ZodAny;
|
|
8
|
+
tenant: z.ZodString;
|
|
9
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
11
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
12
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
13
|
+
}, {
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16
|
+
creatorName: z.ZodString;
|
|
17
|
+
creatorRef: z.ZodAny;
|
|
18
|
+
eventType: z.ZodEnum<["event", "meeting", "workshop", "other"]>;
|
|
19
|
+
eventStatus: z.ZodEnum<["scheduled", "completed", "cancelled"]>;
|
|
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
|
+
}>, "strip", z.ZodTypeAny, {
|
|
34
|
+
id: string;
|
|
35
|
+
tenant: string;
|
|
36
|
+
model_ver: number;
|
|
37
|
+
title: string;
|
|
38
|
+
creatorName: string;
|
|
39
|
+
eventType: "other" | "event" | "meeting" | "workshop";
|
|
40
|
+
eventStatus: "completed" | "cancelled" | "scheduled";
|
|
41
|
+
ref?: any;
|
|
42
|
+
created_at?: Date | null | undefined;
|
|
43
|
+
updated_at?: Date | null | undefined;
|
|
44
|
+
deleted_at?: Date | null | undefined;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
creatorRef?: any;
|
|
47
|
+
tags?: {
|
|
48
|
+
name: string;
|
|
49
|
+
hidden: boolean;
|
|
50
|
+
color?: string | undefined;
|
|
51
|
+
}[] | null | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
id: string;
|
|
54
|
+
tenant: string;
|
|
55
|
+
title: string;
|
|
56
|
+
creatorName: string;
|
|
57
|
+
eventType: "other" | "event" | "meeting" | "workshop";
|
|
58
|
+
eventStatus: "completed" | "cancelled" | "scheduled";
|
|
59
|
+
ref?: any;
|
|
60
|
+
model_ver?: number | undefined;
|
|
61
|
+
created_at?: Date | null | undefined;
|
|
62
|
+
updated_at?: Date | null | undefined;
|
|
63
|
+
deleted_at?: Date | null | undefined;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
creatorRef?: any;
|
|
66
|
+
tags?: {
|
|
67
|
+
name: string;
|
|
68
|
+
hidden: boolean;
|
|
69
|
+
color?: string | undefined;
|
|
70
|
+
}[] | null | undefined;
|
|
71
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zEventSchema = exports.zCalendarEventTypeSchema = exports.zCalendarEventStatusSchema = exports.zCalendarActionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
|
+
exports.zCalendarActionSchema = zod_1.z.enum([
|
|
7
|
+
"CREATE_EVENT",
|
|
8
|
+
"DELETE_EVENT",
|
|
9
|
+
"UPDATE_EVENT",
|
|
10
|
+
]);
|
|
11
|
+
// Enum for Event Instance Status
|
|
12
|
+
exports.zCalendarEventStatusSchema = zod_1.z.enum([
|
|
13
|
+
"scheduled",
|
|
14
|
+
"completed",
|
|
15
|
+
"cancelled",
|
|
16
|
+
]);
|
|
17
|
+
exports.zCalendarEventTypeSchema = zod_1.z.enum([
|
|
18
|
+
"event",
|
|
19
|
+
"meeting",
|
|
20
|
+
"workshop",
|
|
21
|
+
"other",
|
|
22
|
+
]);
|
|
23
|
+
exports.zEventSchema = zod_schemas_1.zFireDocSchema // Extend from FireDocSchema
|
|
24
|
+
.extend({
|
|
25
|
+
title: zod_1.z.string(),
|
|
26
|
+
description: zod_1.z.string().optional(),
|
|
27
|
+
creatorName: zod_1.z.string(),
|
|
28
|
+
creatorRef: zod_1.z.any(),
|
|
29
|
+
eventType: exports.zCalendarEventTypeSchema,
|
|
30
|
+
eventStatus: exports.zCalendarEventStatusSchema,
|
|
31
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
32
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { zFireDocSchema, zTagSchema } from "../shared/zod-schemas";
|
|
3
|
+
|
|
4
|
+
export const zCalendarActionSchema = z.enum([
|
|
5
|
+
"CREATE_EVENT",
|
|
6
|
+
"DELETE_EVENT",
|
|
7
|
+
"UPDATE_EVENT",
|
|
8
|
+
]);
|
|
9
|
+
|
|
10
|
+
// Enum for Event Instance Status
|
|
11
|
+
export const zCalendarEventStatusSchema = z.enum([
|
|
12
|
+
"scheduled",
|
|
13
|
+
"completed",
|
|
14
|
+
"cancelled",
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
export const zCalendarEventTypeSchema = z.enum([
|
|
18
|
+
"event",
|
|
19
|
+
"meeting",
|
|
20
|
+
"workshop",
|
|
21
|
+
"other",
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
export const zEventSchema = zFireDocSchema // Extend from FireDocSchema
|
|
25
|
+
.extend({
|
|
26
|
+
title: z.string(),
|
|
27
|
+
description: z.string().optional(),
|
|
28
|
+
creatorName: z.string(),
|
|
29
|
+
creatorRef: z.any(),
|
|
30
|
+
eventType: zCalendarEventTypeSchema,
|
|
31
|
+
eventStatus: zCalendarEventStatusSchema,
|
|
32
|
+
tags: z.array(zTagSchema).nullable().optional(),
|
|
33
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const zActionArgsSchema: z.ZodObject<{
|
|
3
|
+
old_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4
|
+
new_values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5
|
+
deleted_at: z.ZodOptional<z.ZodDate>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
deleted_at?: Date | undefined;
|
|
8
|
+
old_values?: Record<string, any> | undefined;
|
|
9
|
+
new_values?: Record<string, any> | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
deleted_at?: Date | undefined;
|
|
12
|
+
old_values?: Record<string, any> | undefined;
|
|
13
|
+
new_values?: Record<string, any> | undefined;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zActionArgsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.zActionArgsSchema = zod_1.z.object({
|
|
6
|
+
old_values: zod_1.z.record(zod_1.z.any()).optional(),
|
|
7
|
+
new_values: zod_1.z.record(zod_1.z.any()).optional(),
|
|
8
|
+
deleted_at: zod_1.z.coerce.date().optional(),
|
|
9
|
+
});
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const zDistChannelTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
ref: z.ZodAny;
|
|
5
|
+
tenant: z.ZodString;
|
|
6
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
9
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
10
|
+
}, {
|
|
11
|
+
code: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
color: z.ZodOptional<z.ZodString>;
|
|
16
|
+
hidden: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
name: string;
|
|
19
|
+
hidden: boolean;
|
|
20
|
+
color?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
name: string;
|
|
23
|
+
hidden: boolean;
|
|
24
|
+
color?: string | undefined;
|
|
25
|
+
}>, "many">>>;
|
|
26
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
ref: z.ZodAny;
|
|
29
|
+
tenant: z.ZodString;
|
|
30
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
31
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
32
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
33
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
34
|
+
}, {
|
|
35
|
+
code: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
color: z.ZodOptional<z.ZodString>;
|
|
40
|
+
hidden: z.ZodBoolean;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
name: string;
|
|
43
|
+
hidden: boolean;
|
|
44
|
+
color?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
name: string;
|
|
47
|
+
hidden: boolean;
|
|
48
|
+
color?: string | undefined;
|
|
49
|
+
}>, "many">>>;
|
|
50
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
ref: z.ZodAny;
|
|
53
|
+
tenant: z.ZodString;
|
|
54
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
55
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
56
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
57
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
58
|
+
}, {
|
|
59
|
+
code: z.ZodString;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
color: z.ZodOptional<z.ZodString>;
|
|
64
|
+
hidden: z.ZodBoolean;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
name: string;
|
|
67
|
+
hidden: boolean;
|
|
68
|
+
color?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
name: string;
|
|
71
|
+
hidden: boolean;
|
|
72
|
+
color?: string | undefined;
|
|
73
|
+
}>, "many">>>;
|
|
74
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
75
|
+
export declare const zDistChannelSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
ref: z.ZodAny;
|
|
78
|
+
tenant: z.ZodString;
|
|
79
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
80
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
81
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
82
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
83
|
+
}, {
|
|
84
|
+
code: z.ZodString;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
type_code: z.ZodString;
|
|
87
|
+
type_name: z.ZodString;
|
|
88
|
+
typeRef: z.ZodAny;
|
|
89
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
color: z.ZodOptional<z.ZodString>;
|
|
92
|
+
hidden: z.ZodBoolean;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
name: string;
|
|
95
|
+
hidden: boolean;
|
|
96
|
+
color?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
name: string;
|
|
99
|
+
hidden: boolean;
|
|
100
|
+
color?: string | undefined;
|
|
101
|
+
}>, "many">>>;
|
|
102
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
103
|
+
id: z.ZodString;
|
|
104
|
+
ref: z.ZodAny;
|
|
105
|
+
tenant: z.ZodString;
|
|
106
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
107
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
108
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
109
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
110
|
+
}, {
|
|
111
|
+
code: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
type_code: z.ZodString;
|
|
114
|
+
type_name: z.ZodString;
|
|
115
|
+
typeRef: z.ZodAny;
|
|
116
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
117
|
+
name: z.ZodString;
|
|
118
|
+
color: z.ZodOptional<z.ZodString>;
|
|
119
|
+
hidden: z.ZodBoolean;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
name: string;
|
|
122
|
+
hidden: boolean;
|
|
123
|
+
color?: string | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
name: string;
|
|
126
|
+
hidden: boolean;
|
|
127
|
+
color?: string | undefined;
|
|
128
|
+
}>, "many">>>;
|
|
129
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
ref: z.ZodAny;
|
|
132
|
+
tenant: z.ZodString;
|
|
133
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
134
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
135
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
136
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
137
|
+
}, {
|
|
138
|
+
code: z.ZodString;
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
type_code: z.ZodString;
|
|
141
|
+
type_name: z.ZodString;
|
|
142
|
+
typeRef: z.ZodAny;
|
|
143
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
144
|
+
name: z.ZodString;
|
|
145
|
+
color: z.ZodOptional<z.ZodString>;
|
|
146
|
+
hidden: z.ZodBoolean;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
name: string;
|
|
149
|
+
hidden: boolean;
|
|
150
|
+
color?: string | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
name: string;
|
|
153
|
+
hidden: boolean;
|
|
154
|
+
color?: string | undefined;
|
|
155
|
+
}>, "many">>>;
|
|
156
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
157
|
+
export declare const zQualificationFunnelLevelSchema: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
|
|
158
|
+
export declare const zQualificationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
ref: z.ZodAny;
|
|
161
|
+
tenant: z.ZodString;
|
|
162
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
163
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
164
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
165
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
166
|
+
}, {
|
|
167
|
+
code: z.ZodString;
|
|
168
|
+
name: z.ZodString;
|
|
169
|
+
funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
|
|
170
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
color: z.ZodOptional<z.ZodString>;
|
|
173
|
+
hidden: z.ZodBoolean;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
name: string;
|
|
176
|
+
hidden: boolean;
|
|
177
|
+
color?: string | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
name: string;
|
|
180
|
+
hidden: boolean;
|
|
181
|
+
color?: string | undefined;
|
|
182
|
+
}>, "many">>>;
|
|
183
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
ref: z.ZodAny;
|
|
186
|
+
tenant: z.ZodString;
|
|
187
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
188
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
189
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
190
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
191
|
+
}, {
|
|
192
|
+
code: z.ZodString;
|
|
193
|
+
name: z.ZodString;
|
|
194
|
+
funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
|
|
195
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
color: z.ZodOptional<z.ZodString>;
|
|
198
|
+
hidden: z.ZodBoolean;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
name: string;
|
|
201
|
+
hidden: boolean;
|
|
202
|
+
color?: string | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
name: string;
|
|
205
|
+
hidden: boolean;
|
|
206
|
+
color?: string | undefined;
|
|
207
|
+
}>, "many">>>;
|
|
208
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
ref: z.ZodAny;
|
|
211
|
+
tenant: z.ZodString;
|
|
212
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
213
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
214
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
215
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
216
|
+
}, {
|
|
217
|
+
code: z.ZodString;
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
funnelLevel: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
|
|
220
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
221
|
+
name: z.ZodString;
|
|
222
|
+
color: z.ZodOptional<z.ZodString>;
|
|
223
|
+
hidden: z.ZodBoolean;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
name: string;
|
|
226
|
+
hidden: boolean;
|
|
227
|
+
color?: string | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
name: string;
|
|
230
|
+
hidden: boolean;
|
|
231
|
+
color?: string | undefined;
|
|
232
|
+
}>, "many">>>;
|
|
233
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.zQualificationSchema = exports.zQualificationFunnelLevelSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
|
+
exports.zDistChannelTypeSchema = zod_schemas_1.zFireDocSchema
|
|
7
|
+
.extend({
|
|
8
|
+
code: zod_1.z.string().min(1).max(10),
|
|
9
|
+
name: zod_1.z.string().min(1).max(255),
|
|
10
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
11
|
+
})
|
|
12
|
+
.passthrough();
|
|
13
|
+
exports.zDistChannelSchema = zod_schemas_1.zFireDocSchema
|
|
14
|
+
.extend({
|
|
15
|
+
code: zod_1.z.string().min(1).max(10),
|
|
16
|
+
name: zod_1.z.string().min(1).max(255),
|
|
17
|
+
type_code: zod_1.z.string().min(1).max(10),
|
|
18
|
+
type_name: zod_1.z.string().min(1).max(255),
|
|
19
|
+
typeRef: zod_1.z.any(),
|
|
20
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
21
|
+
})
|
|
22
|
+
.passthrough();
|
|
23
|
+
exports.zQualificationFunnelLevelSchema = zod_1.z.enum([
|
|
24
|
+
"new",
|
|
25
|
+
"trying_contact",
|
|
26
|
+
"contacted",
|
|
27
|
+
"qualifying",
|
|
28
|
+
"qualified",
|
|
29
|
+
"disqualified",
|
|
30
|
+
"presented",
|
|
31
|
+
"proposal_sent",
|
|
32
|
+
"negotiating",
|
|
33
|
+
"won",
|
|
34
|
+
"lost",
|
|
35
|
+
"waiting_reply",
|
|
36
|
+
"follow_up_later",
|
|
37
|
+
]);
|
|
38
|
+
exports.zQualificationSchema = zod_schemas_1.zFireDocSchema
|
|
39
|
+
.extend({
|
|
40
|
+
code: zod_1.z.string().min(1).max(10),
|
|
41
|
+
name: zod_1.z.string().min(1).max(255),
|
|
42
|
+
funnelLevel: exports.zQualificationFunnelLevelSchema,
|
|
43
|
+
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
44
|
+
})
|
|
45
|
+
.passthrough();
|