evo360-types 1.3.18 → 1.3.20

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.
@@ -0,0 +1,217 @@
1
+ import { z } from "zod";
2
+ export declare const zChatbeeChannelSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ external_id: z.ZodString;
5
+ name: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ name: string;
8
+ id: string;
9
+ external_id: string;
10
+ }, {
11
+ name: string;
12
+ id: string;
13
+ external_id: string;
14
+ }>;
15
+ export declare const zChatbeeContactSchema: z.ZodObject<{
16
+ id: z.ZodString;
17
+ external_id: z.ZodString;
18
+ name: z.ZodString;
19
+ is_group: z.ZodString;
20
+ address: z.ZodString;
21
+ type: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ name: string;
24
+ id: string;
25
+ type: string;
26
+ address: string;
27
+ external_id: string;
28
+ is_group: string;
29
+ }, {
30
+ name: string;
31
+ id: string;
32
+ type: string;
33
+ address: string;
34
+ external_id: string;
35
+ is_group: string;
36
+ }>;
37
+ export declare const zChatContactSchema: z.ZodObject<z.objectUtil.extendShape<{
38
+ id: z.ZodString;
39
+ ref: z.ZodAny;
40
+ tenant: z.ZodString;
41
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
42
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
43
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
44
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
45
+ }, {
46
+ channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
47
+ id: z.ZodString;
48
+ external_id: z.ZodString;
49
+ name: z.ZodString;
50
+ }, "strip", z.ZodTypeAny, {
51
+ name: string;
52
+ id: string;
53
+ external_id: string;
54
+ }, {
55
+ name: string;
56
+ id: string;
57
+ external_id: string;
58
+ }>>>;
59
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
60
+ id: z.ZodString;
61
+ external_id: z.ZodString;
62
+ name: z.ZodString;
63
+ is_group: z.ZodString;
64
+ address: z.ZodString;
65
+ type: z.ZodString;
66
+ }, "strip", z.ZodTypeAny, {
67
+ name: string;
68
+ id: string;
69
+ type: string;
70
+ address: string;
71
+ external_id: string;
72
+ is_group: string;
73
+ }, {
74
+ name: string;
75
+ id: string;
76
+ type: string;
77
+ address: string;
78
+ external_id: string;
79
+ is_group: string;
80
+ }>>>;
81
+ lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
83
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
84
+ name: z.ZodString;
85
+ color: z.ZodOptional<z.ZodString>;
86
+ hidden: z.ZodBoolean;
87
+ }, "strip", z.ZodTypeAny, {
88
+ name: string;
89
+ hidden: boolean;
90
+ color?: string | undefined;
91
+ }, {
92
+ name: string;
93
+ hidden: boolean;
94
+ color?: string | undefined;
95
+ }>, "many">>>;
96
+ userRef: z.ZodOptional<z.ZodAny>;
97
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
98
+ id: z.ZodString;
99
+ ref: z.ZodAny;
100
+ tenant: z.ZodString;
101
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
102
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
103
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
104
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
105
+ }, {
106
+ channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
107
+ id: z.ZodString;
108
+ external_id: z.ZodString;
109
+ name: z.ZodString;
110
+ }, "strip", z.ZodTypeAny, {
111
+ name: string;
112
+ id: string;
113
+ external_id: string;
114
+ }, {
115
+ name: string;
116
+ id: string;
117
+ external_id: string;
118
+ }>>>;
119
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
120
+ id: z.ZodString;
121
+ external_id: z.ZodString;
122
+ name: z.ZodString;
123
+ is_group: z.ZodString;
124
+ address: z.ZodString;
125
+ type: z.ZodString;
126
+ }, "strip", z.ZodTypeAny, {
127
+ name: string;
128
+ id: string;
129
+ type: string;
130
+ address: string;
131
+ external_id: string;
132
+ is_group: string;
133
+ }, {
134
+ name: string;
135
+ id: string;
136
+ type: string;
137
+ address: string;
138
+ external_id: string;
139
+ is_group: string;
140
+ }>>>;
141
+ lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ lead_ref: z.ZodOptional<z.ZodNullable<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
+ userRef: z.ZodOptional<z.ZodAny>;
157
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
158
+ id: z.ZodString;
159
+ ref: z.ZodAny;
160
+ tenant: z.ZodString;
161
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
162
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
163
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
164
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
165
+ }, {
166
+ channel: z.ZodOptional<z.ZodNullable<z.ZodObject<{
167
+ id: z.ZodString;
168
+ external_id: z.ZodString;
169
+ name: z.ZodString;
170
+ }, "strip", z.ZodTypeAny, {
171
+ name: string;
172
+ id: string;
173
+ external_id: string;
174
+ }, {
175
+ name: string;
176
+ id: string;
177
+ external_id: string;
178
+ }>>>;
179
+ contact: z.ZodOptional<z.ZodNullable<z.ZodObject<{
180
+ id: z.ZodString;
181
+ external_id: z.ZodString;
182
+ name: z.ZodString;
183
+ is_group: z.ZodString;
184
+ address: z.ZodString;
185
+ type: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ name: string;
188
+ id: string;
189
+ type: string;
190
+ address: string;
191
+ external_id: string;
192
+ is_group: string;
193
+ }, {
194
+ name: string;
195
+ id: string;
196
+ type: string;
197
+ address: string;
198
+ external_id: string;
199
+ is_group: string;
200
+ }>>>;
201
+ lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
+ lead_ref: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
203
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
204
+ name: z.ZodString;
205
+ color: z.ZodOptional<z.ZodString>;
206
+ hidden: z.ZodBoolean;
207
+ }, "strip", z.ZodTypeAny, {
208
+ name: string;
209
+ hidden: boolean;
210
+ color?: string | undefined;
211
+ }, {
212
+ name: string;
213
+ hidden: boolean;
214
+ color?: string | undefined;
215
+ }>, "many">>>;
216
+ userRef: z.ZodOptional<z.ZodAny>;
217
+ }>, z.ZodTypeAny, "passthrough">>;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zChatContactSchema = exports.zChatbeeContactSchema = exports.zChatbeeChannelSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_schemas_1 = require("../../shared/zod-schemas");
6
+ exports.zChatbeeChannelSchema = zod_1.z.object({
7
+ id: zod_1.z.string(),
8
+ external_id: zod_1.z.string(),
9
+ name: zod_1.z.string(),
10
+ });
11
+ exports.zChatbeeContactSchema = zod_1.z.object({
12
+ id: zod_1.z.string(),
13
+ external_id: zod_1.z.string(),
14
+ name: zod_1.z.string(),
15
+ is_group: zod_1.z.string(),
16
+ address: zod_1.z.string(),
17
+ type: zod_1.z.string(),
18
+ });
19
+ exports.zChatContactSchema = zod_schemas_1.zFireDocSchema
20
+ .extend({
21
+ channel: exports.zChatbeeChannelSchema.nullable().optional(),
22
+ contact: exports.zChatbeeContactSchema.nullable().optional(),
23
+ lead_id: zod_1.z.string().nullable().optional(),
24
+ lead_ref: zod_1.z.any().nullable().optional(),
25
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
26
+ userRef: zod_1.z.any().optional(),
27
+ })
28
+ .passthrough();
@@ -0,0 +1,28 @@
1
+ import { z } from "zod";
2
+ import { zFireDocSchema, zTagSchema } from "../../shared/zod-schemas";
3
+
4
+ export const zChatbeeChannelSchema = z.object({
5
+ id: z.string(),
6
+ external_id: z.string(),
7
+ name: z.string(),
8
+ });
9
+
10
+ export const zChatbeeContactSchema = z.object({
11
+ id: z.string(),
12
+ external_id: z.string(),
13
+ name: z.string(),
14
+ is_group: z.string(),
15
+ address: z.string(),
16
+ type: z.string(),
17
+ });
18
+
19
+ export const zChatContactSchema = zFireDocSchema
20
+ .extend({
21
+ channel: zChatbeeChannelSchema.nullable().optional(),
22
+ contact: zChatbeeContactSchema.nullable().optional(),
23
+ lead_id: z.string().nullable().optional(),
24
+ lead_ref: z.any().nullable().optional(),
25
+ tags: z.array(zTagSchema).nullable().optional(),
26
+ userRef: z.any().optional(),
27
+ })
28
+ .passthrough();
@@ -0,0 +1,86 @@
1
+ import { z } from "zod";
2
+ export declare const zHSMMessageSchema: 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
+ contact_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ channel_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ payload: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
16
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
17
+ name: z.ZodString;
18
+ color: z.ZodOptional<z.ZodString>;
19
+ hidden: z.ZodBoolean;
20
+ }, "strip", z.ZodTypeAny, {
21
+ name: string;
22
+ hidden: boolean;
23
+ color?: string | undefined;
24
+ }, {
25
+ name: string;
26
+ hidden: boolean;
27
+ color?: string | undefined;
28
+ }>, "many">>>;
29
+ userRef: z.ZodOptional<z.ZodAny>;
30
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
31
+ id: z.ZodString;
32
+ ref: z.ZodAny;
33
+ tenant: z.ZodString;
34
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
35
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
36
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
37
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
38
+ }, {
39
+ contact_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ channel_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ payload: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
44
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
45
+ name: z.ZodString;
46
+ color: z.ZodOptional<z.ZodString>;
47
+ hidden: z.ZodBoolean;
48
+ }, "strip", z.ZodTypeAny, {
49
+ name: string;
50
+ hidden: boolean;
51
+ color?: string | undefined;
52
+ }, {
53
+ name: string;
54
+ hidden: boolean;
55
+ color?: string | undefined;
56
+ }>, "many">>>;
57
+ userRef: z.ZodOptional<z.ZodAny>;
58
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
59
+ id: z.ZodString;
60
+ ref: z.ZodAny;
61
+ tenant: z.ZodString;
62
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
63
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
64
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
65
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
66
+ }, {
67
+ contact_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ department_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ channel_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ payload: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
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
+ userRef: z.ZodOptional<z.ZodAny>;
86
+ }>, z.ZodTypeAny, "passthrough">>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zHSMMessageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const zod_schemas_1 = require("../../shared/zod-schemas");
6
+ exports.zHSMMessageSchema = zod_schemas_1.zFireDocSchema
7
+ .extend({
8
+ contact_address: zod_1.z.string().nullable().optional(),
9
+ department_id: zod_1.z.string().nullable().optional(),
10
+ channel_id: zod_1.z.string().nullable().optional(),
11
+ type: zod_1.z.string().nullable().optional(),
12
+ payload: zod_1.z.any().nullable().optional(),
13
+ tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
14
+ userRef: zod_1.z.any().optional(),
15
+ })
16
+ .passthrough();
@@ -0,0 +1,14 @@
1
+ import { z } from "zod";
2
+ import { zFireDocSchema, zTagSchema } from "../../shared/zod-schemas";
3
+
4
+ export const zHSMMessageSchema = zFireDocSchema
5
+ .extend({
6
+ contact_address: z.string().nullable().optional(),
7
+ department_id: z.string().nullable().optional(),
8
+ channel_id: z.string().nullable().optional(),
9
+ type: z.string().nullable().optional(),
10
+ payload: z.any().nullable().optional(),
11
+ tags: z.array(zTagSchema).nullable().optional(),
12
+ userRef: z.any().optional(),
13
+ })
14
+ .passthrough();
@@ -1,5 +1,5 @@
1
1
  export * from "../fb_collections";
2
- import { FirestoreDocumentReference, ITag } from "../../shared";
2
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
3
  export interface IChatbeeChannel {
4
4
  id: string;
5
5
  external_id: string;
@@ -13,7 +13,7 @@ export interface IChatbeeContact {
13
13
  address: string;
14
14
  type: string;
15
15
  }
16
- export interface IChatContact {
16
+ export interface IChatContact extends IFireDoc {
17
17
  channel: IChatbeeChannel;
18
18
  contact: IChatbeeContact;
19
19
  lead_id?: string;
@@ -1,6 +1,6 @@
1
1
  export * from "../fb_collections";
2
2
 
3
- import { FirestoreDocumentReference, ITag } from "../../shared";
3
+ import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
4
4
 
5
5
  export interface IChatbeeChannel {
6
6
  id: string;
@@ -17,7 +17,7 @@ export interface IChatbeeContact {
17
17
  type: string;
18
18
  }
19
19
 
20
- export interface IChatContact {
20
+ export interface IChatContact extends IFireDoc {
21
21
  channel: IChatbeeChannel;
22
22
  contact: IChatbeeContact;
23
23
  lead_id?: string;
@@ -1,4 +1,5 @@
1
- export interface IHSMMessage {
1
+ import { IFireDoc } from "../../shared";
2
+ export interface IHSMMessage extends IFireDoc {
2
3
  contact_address: string;
3
4
  department_id: string;
4
5
  channel_id: string;
@@ -1,4 +1,6 @@
1
- export interface IHSMMessage {
1
+ import { IFireDoc } from "../../shared";
2
+
3
+ export interface IHSMMessage extends IFireDoc {
2
4
  contact_address: string;
3
5
  department_id: string;
4
6
  channel_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.18",
3
+ "version": "1.3.20",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",