evo360-types 1.3.1 → 1.3.2

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.
@@ -154,8 +154,8 @@ export declare const zDistChannelSchema: z.ZodObject<z.objectUtil.extendShape<{
154
154
  color?: string | undefined;
155
155
  }>, "many">>>;
156
156
  }>, z.ZodTypeAny, "passthrough">>;
157
- export declare const zLeadQualificationFunnelLevelSchema: z.ZodEnum<["new", "trying_contact", "contacted", "qualifying", "qualified", "disqualified", "presented", "proposal_sent", "negotiating", "won", "lost", "waiting_reply", "follow_up_later"]>;
158
- export declare const zLeadQualificationSchema: z.ZodObject<z.objectUtil.extendShape<{
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
159
  id: z.ZodString;
160
160
  ref: z.ZodAny;
161
161
  tenant: z.ZodString;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zLeadQualificationSchema = exports.zLeadQualificationFunnelLevelSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = void 0;
3
+ exports.zQualificationSchema = exports.zQualificationFunnelLevelSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  exports.zDistChannelTypeSchema = zod_schemas_1.zFireDocSchema
@@ -20,7 +20,7 @@ exports.zDistChannelSchema = zod_schemas_1.zFireDocSchema
20
20
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
21
21
  })
22
22
  .passthrough();
23
- exports.zLeadQualificationFunnelLevelSchema = zod_1.z.enum([
23
+ exports.zQualificationFunnelLevelSchema = zod_1.z.enum([
24
24
  "new",
25
25
  "trying_contact",
26
26
  "contacted",
@@ -35,11 +35,11 @@ exports.zLeadQualificationFunnelLevelSchema = zod_1.z.enum([
35
35
  "waiting_reply",
36
36
  "follow_up_later",
37
37
  ]);
38
- exports.zLeadQualificationSchema = zod_schemas_1.zFireDocSchema
38
+ exports.zQualificationSchema = zod_schemas_1.zFireDocSchema
39
39
  .extend({
40
40
  code: zod_1.z.string().min(1).max(10),
41
41
  name: zod_1.z.string().min(1).max(255),
42
- funnelLevel: exports.zLeadQualificationFunnelLevelSchema,
42
+ funnelLevel: exports.zQualificationFunnelLevelSchema,
43
43
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
44
44
  })
45
45
  .passthrough();
@@ -20,7 +20,7 @@ export const zDistChannelSchema = zFireDocSchema
20
20
  })
21
21
  .passthrough();
22
22
 
23
- export const zLeadQualificationFunnelLevelSchema = z.enum([
23
+ export const zQualificationFunnelLevelSchema = z.enum([
24
24
  "new",
25
25
  "trying_contact",
26
26
  "contacted",
@@ -36,11 +36,11 @@ export const zLeadQualificationFunnelLevelSchema = z.enum([
36
36
  "follow_up_later",
37
37
  ]);
38
38
 
39
- export const zLeadQualificationSchema = zFireDocSchema
39
+ export const zQualificationSchema = zFireDocSchema
40
40
  .extend({
41
41
  code: z.string().min(1).max(10),
42
42
  name: z.string().min(1).max(255),
43
- funnelLevel: zLeadQualificationFunnelLevelSchema,
43
+ funnelLevel: zQualificationFunnelLevelSchema,
44
44
  tags: z.array(zTagSchema).nullable().optional(),
45
45
  })
46
46
  .passthrough();
@@ -16,7 +16,7 @@ export declare const zLeadQualificationSchema: z.ZodObject<{
16
16
  funnelLevel: "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
17
17
  ref?: any;
18
18
  }>;
19
- export declare const zDistChannelSchema: z.ZodObject<{
19
+ export declare const zLeadDistChannelSchema: z.ZodObject<{
20
20
  code: z.ZodString;
21
21
  name: z.ZodString;
22
22
  ref: z.ZodAny;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zLeadSchema = exports.zDistChannelSchema = exports.zLeadQualificationSchema = exports.zLeadStatusSchema = void 0;
3
+ exports.zLeadSchema = exports.zLeadDistChannelSchema = exports.zLeadQualificationSchema = exports.zLeadStatusSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  const zod_schemas_2 = require("../../evo-people/zod-schemas");
@@ -9,10 +9,10 @@ exports.zLeadStatusSchema = zod_1.z.enum(["active", "inactive", "draft"]);
9
9
  exports.zLeadQualificationSchema = zod_1.z.object({
10
10
  code: zod_1.z.string().min(1).max(10),
11
11
  name: zod_1.z.string().min(1).max(255),
12
- funnelLevel: zod_schemas_3.zLeadQualificationFunnelLevelSchema,
12
+ funnelLevel: zod_schemas_3.zQualificationFunnelLevelSchema,
13
13
  ref: zod_1.z.any(),
14
14
  });
15
- exports.zDistChannelSchema = zod_1.z.object({
15
+ exports.zLeadDistChannelSchema = zod_1.z.object({
16
16
  code: zod_1.z.string().min(1).max(10),
17
17
  name: zod_1.z.string().min(1).max(255),
18
18
  ref: zod_1.z.any(),
@@ -21,7 +21,7 @@ exports.zLeadSchema = zod_schemas_2.zProfileSchema // Extend from ProfileSchema
21
21
  .extend({
22
22
  status: exports.zLeadStatusSchema.optional(),
23
23
  qualification: exports.zLeadQualificationSchema.nullable().optional(),
24
- distChannel: exports.zDistChannelSchema.nullable().optional(),
24
+ distChannel: exports.zLeadDistChannelSchema.nullable().optional(),
25
25
  address: zod_schemas_1.zAddressSchema.nullable().optional(),
26
26
  contact: zod_schemas_1.zContactSchema.nullable().optional(),
27
27
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
@@ -2,22 +2,21 @@ import { z } from "zod";
2
2
  import {
3
3
  zAddressSchema,
4
4
  zContactSchema,
5
- zFireDocSchema,
6
5
  zTagSchema,
7
6
  } from "../../shared/zod-schemas";
8
7
  import { zProfileSchema } from "../../evo-people/zod-schemas";
9
- import { zLeadQualificationFunnelLevelSchema } from "../dic/zod-schemas";
8
+ import { zQualificationFunnelLevelSchema } from "../dic/zod-schemas";
10
9
 
11
10
  export const zLeadStatusSchema = z.enum(["active", "inactive", "draft"]);
12
11
 
13
12
  export const zLeadQualificationSchema = z.object({
14
13
  code: z.string().min(1).max(10),
15
14
  name: z.string().min(1).max(255),
16
- funnelLevel: zLeadQualificationFunnelLevelSchema,
15
+ funnelLevel: zQualificationFunnelLevelSchema,
17
16
  ref: z.any(),
18
17
  });
19
18
 
20
- export const zDistChannelSchema = z.object({
19
+ export const zLeadDistChannelSchema = z.object({
21
20
  code: z.string().min(1).max(10),
22
21
  name: z.string().min(1).max(255),
23
22
  ref: z.any(),
@@ -27,7 +26,7 @@ export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
27
26
  .extend({
28
27
  status: zLeadStatusSchema.optional(),
29
28
  qualification: zLeadQualificationSchema.nullable().optional(),
30
- distChannel: zDistChannelSchema.nullable().optional(),
29
+ distChannel: zLeadDistChannelSchema.nullable().optional(),
31
30
  address: zAddressSchema.nullable().optional(),
32
31
  contact: zContactSchema.nullable().optional(),
33
32
  tags: z.array(zTagSchema).nullable().optional(),
@@ -118,161 +118,6 @@ export declare const zSpecialtySchema: z.ZodObject<z.objectUtil.extendShape<{
118
118
  color?: string | undefined;
119
119
  }>, "many">>>;
120
120
  }>, z.ZodTypeAny, "passthrough">>;
121
- export declare const zDistChannelTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
122
- id: z.ZodString;
123
- ref: z.ZodAny;
124
- tenant: z.ZodString;
125
- model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
126
- created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
127
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
128
- deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
129
- }, {
130
- code: z.ZodString;
131
- name: z.ZodString;
132
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
133
- name: z.ZodString;
134
- color: z.ZodOptional<z.ZodString>;
135
- hidden: z.ZodBoolean;
136
- }, "strip", z.ZodTypeAny, {
137
- name: string;
138
- hidden: boolean;
139
- color?: string | undefined;
140
- }, {
141
- name: string;
142
- hidden: boolean;
143
- color?: string | undefined;
144
- }>, "many">>>;
145
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
146
- id: z.ZodString;
147
- ref: z.ZodAny;
148
- tenant: z.ZodString;
149
- model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
150
- created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
151
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
152
- deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
153
- }, {
154
- code: z.ZodString;
155
- name: z.ZodString;
156
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
157
- name: z.ZodString;
158
- color: z.ZodOptional<z.ZodString>;
159
- hidden: z.ZodBoolean;
160
- }, "strip", z.ZodTypeAny, {
161
- name: string;
162
- hidden: boolean;
163
- color?: string | undefined;
164
- }, {
165
- name: string;
166
- hidden: boolean;
167
- color?: string | undefined;
168
- }>, "many">>>;
169
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
170
- id: z.ZodString;
171
- ref: z.ZodAny;
172
- tenant: z.ZodString;
173
- model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
174
- created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
175
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
176
- deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
177
- }, {
178
- code: z.ZodString;
179
- name: z.ZodString;
180
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
181
- name: z.ZodString;
182
- color: z.ZodOptional<z.ZodString>;
183
- hidden: z.ZodBoolean;
184
- }, "strip", z.ZodTypeAny, {
185
- name: string;
186
- hidden: boolean;
187
- color?: string | undefined;
188
- }, {
189
- name: string;
190
- hidden: boolean;
191
- color?: string | undefined;
192
- }>, "many">>>;
193
- }>, z.ZodTypeAny, "passthrough">>;
194
- export declare const zDistChannelSchema: z.ZodObject<z.objectUtil.extendShape<{
195
- id: z.ZodString;
196
- ref: z.ZodAny;
197
- tenant: z.ZodString;
198
- model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
199
- created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
200
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
201
- deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
202
- }, {
203
- code: z.ZodString;
204
- name: z.ZodString;
205
- type_code: z.ZodString;
206
- type_name: z.ZodString;
207
- typeRef: z.ZodAny;
208
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
209
- name: z.ZodString;
210
- color: z.ZodOptional<z.ZodString>;
211
- hidden: z.ZodBoolean;
212
- }, "strip", z.ZodTypeAny, {
213
- name: string;
214
- hidden: boolean;
215
- color?: string | undefined;
216
- }, {
217
- name: string;
218
- hidden: boolean;
219
- color?: string | undefined;
220
- }>, "many">>>;
221
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
222
- id: z.ZodString;
223
- ref: z.ZodAny;
224
- tenant: z.ZodString;
225
- model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
226
- created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
227
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
228
- deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
229
- }, {
230
- code: z.ZodString;
231
- name: z.ZodString;
232
- type_code: z.ZodString;
233
- type_name: z.ZodString;
234
- typeRef: z.ZodAny;
235
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
236
- name: z.ZodString;
237
- color: z.ZodOptional<z.ZodString>;
238
- hidden: z.ZodBoolean;
239
- }, "strip", z.ZodTypeAny, {
240
- name: string;
241
- hidden: boolean;
242
- color?: string | undefined;
243
- }, {
244
- name: string;
245
- hidden: boolean;
246
- color?: string | undefined;
247
- }>, "many">>>;
248
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
249
- id: z.ZodString;
250
- ref: z.ZodAny;
251
- tenant: z.ZodString;
252
- model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
253
- created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
254
- updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
255
- deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
256
- }, {
257
- code: z.ZodString;
258
- name: z.ZodString;
259
- type_code: z.ZodString;
260
- type_name: z.ZodString;
261
- typeRef: z.ZodAny;
262
- tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
263
- name: z.ZodString;
264
- color: z.ZodOptional<z.ZodString>;
265
- hidden: z.ZodBoolean;
266
- }, "strip", z.ZodTypeAny, {
267
- name: string;
268
- hidden: boolean;
269
- color?: string | undefined;
270
- }, {
271
- name: string;
272
- hidden: boolean;
273
- color?: string | undefined;
274
- }>, "many">>>;
275
- }>, z.ZodTypeAny, "passthrough">>;
276
121
  export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
277
122
  id: z.ZodString;
278
123
  ref: z.ZodAny;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zMedicalCouncilSchema = exports.zMedicalCouncilUFSchema = exports.zAllergySchema = exports.zAllergyKindSchema = exports.zChronicConditionSchema = exports.zSeveritySchema = exports.zMedicationSchema = exports.zAppointmentStatusSchema = exports.zAppointmentStatusTypeSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = exports.zSpecialtySchema = exports.zSpecialtyTypeSchema = void 0;
3
+ exports.zMedicalCouncilSchema = exports.zMedicalCouncilUFSchema = exports.zAllergySchema = exports.zAllergyKindSchema = exports.zChronicConditionSchema = exports.zSeveritySchema = exports.zMedicationSchema = exports.zAppointmentStatusSchema = exports.zAppointmentStatusTypeSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zSpecialtySchema = exports.zSpecialtyTypeSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  exports.zSpecialtyTypeSchema = zod_schemas_1.zFireDocSchema
@@ -20,23 +20,6 @@ exports.zSpecialtySchema = zod_schemas_1.zFireDocSchema
20
20
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
21
21
  })
22
22
  .passthrough();
23
- exports.zDistChannelTypeSchema = zod_schemas_1.zFireDocSchema
24
- .extend({
25
- code: zod_1.z.string().min(1).max(10),
26
- name: zod_1.z.string().min(1).max(255),
27
- tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
28
- })
29
- .passthrough();
30
- exports.zDistChannelSchema = zod_schemas_1.zFireDocSchema
31
- .extend({
32
- code: zod_1.z.string().min(1).max(10),
33
- name: zod_1.z.string().min(1).max(255),
34
- type_code: zod_1.z.string().min(1).max(10),
35
- type_name: zod_1.z.string().min(1).max(255),
36
- typeRef: zod_1.z.any(),
37
- tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
38
- })
39
- .passthrough();
40
23
  exports.zPatientSourceSchema = zod_schemas_1.zFireDocSchema
41
24
  .extend({
42
25
  code: zod_1.z.string().min(1).max(10),
@@ -20,25 +20,6 @@ export const zSpecialtySchema = zFireDocSchema
20
20
  })
21
21
  .passthrough();
22
22
 
23
- export const zDistChannelTypeSchema = zFireDocSchema
24
- .extend({
25
- code: z.string().min(1).max(10),
26
- name: z.string().min(1).max(255),
27
- tags: z.array(zTagSchema).nullable().optional(),
28
- })
29
- .passthrough();
30
-
31
- export const zDistChannelSchema = zFireDocSchema
32
- .extend({
33
- code: z.string().min(1).max(10),
34
- name: z.string().min(1).max(255),
35
- type_code: z.string().min(1).max(10),
36
- type_name: z.string().min(1).max(255),
37
- typeRef: z.any(),
38
- tags: z.array(zTagSchema).nullable().optional(),
39
- })
40
- .passthrough();
41
-
42
23
  export const zPatientSourceSchema = zFireDocSchema
43
24
  .extend({
44
25
  code: z.string().min(1).max(10),
@@ -1,4 +1,16 @@
1
1
  import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
2
+ export type CRMDicAction = "CREATE_DIST_CHANNEL_TYPE" | "DELETE_DIST_CHANNEL_TYPE" | "UPDATE_DIST_CHANNEL_TYPE" | "CREATE_DIST_CHANNEL" | "DELETE_DIST_CHANNEL" | "UPDATE_DIST_CHANNEL" | "CREATE_LEADQUALIFICATION" | "DELETE_LEADQUALIFICATION" | "UPDATE_LEADQUALIFICATION";
3
+ export declare enum ICRMDicAction {
4
+ Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
5
+ Delete_dist_channel_type = "DELETE_DIST_CHANNEL_TYPE",
6
+ Update_dist_channel_type = "UPDATE_DIST_CHANNEL_TYPE",
7
+ Create_dist_channel = "CREATE_DIST_CHANNEL",
8
+ Delete_dist_channel = "DELETE_DIST_CHANNEL",
9
+ Update_dist_channel = "UPDATE_DIST_CHANNEL",
10
+ Create_patient_source = "CREATE_LEADQUALIFICATION",
11
+ Delete_patient_source = "DELETE_LEADQUALIFICATION",
12
+ Update_patient_source = "UPDATE_LEADQUALIFICATION"
13
+ }
2
14
  export interface IDistChannelType extends IFireDoc {
3
15
  code: string;
4
16
  name: string;
@@ -14,8 +26,8 @@ export interface IDistChannel extends IFireDoc {
14
26
  tags?: ITag[] | null;
15
27
  [key: string]: unknown;
16
28
  }
17
- export type LeadQualificationFunnelLevel = "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
18
- export declare enum ILeadQualificationFunnelLevel {
29
+ export type QualificationFunnelLevel = "new" | "trying_contact" | "contacted" | "qualifying" | "qualified" | "disqualified" | "presented" | "proposal_sent" | "negotiating" | "won" | "lost" | "waiting_reply" | "follow_up_later";
30
+ export declare enum IQualificationFunnelLevel {
19
31
  New = "new",// Lead recém-captado
20
32
  TryingContact = "trying_contact",// Tentando contato inicial
21
33
  Contacted = "contacted",// Contato estabelecido
@@ -30,9 +42,9 @@ export declare enum ILeadQualificationFunnelLevel {
30
42
  WaitingReply = "waiting_reply",// Aguardando retorno do lead
31
43
  FollowUpLater = "follow_up_later"
32
44
  }
33
- export interface ILeadQualification extends IFireDoc {
45
+ export interface IQualification extends IFireDoc {
34
46
  code: string;
35
47
  name: string;
36
- funnelLevel: LeadQualificationFunnelLevel;
48
+ funnelLevel: QualificationFunnelLevel;
37
49
  [key: string]: unknown;
38
50
  }
@@ -1,19 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ILeadQualificationFunnelLevel = void 0;
4
- var ILeadQualificationFunnelLevel;
5
- (function (ILeadQualificationFunnelLevel) {
6
- ILeadQualificationFunnelLevel["New"] = "new";
7
- ILeadQualificationFunnelLevel["TryingContact"] = "trying_contact";
8
- ILeadQualificationFunnelLevel["Contacted"] = "contacted";
9
- ILeadQualificationFunnelLevel["Qualifying"] = "qualifying";
10
- ILeadQualificationFunnelLevel["Qualified"] = "qualified";
11
- ILeadQualificationFunnelLevel["Disqualified"] = "disqualified";
12
- ILeadQualificationFunnelLevel["Presented"] = "presented";
13
- ILeadQualificationFunnelLevel["ProposalSent"] = "proposal_sent";
14
- ILeadQualificationFunnelLevel["Negotiating"] = "negotiating";
15
- ILeadQualificationFunnelLevel["Won"] = "won";
16
- ILeadQualificationFunnelLevel["Lost"] = "lost";
17
- ILeadQualificationFunnelLevel["WaitingReply"] = "waiting_reply";
18
- ILeadQualificationFunnelLevel["FollowUpLater"] = "follow_up_later";
19
- })(ILeadQualificationFunnelLevel || (exports.ILeadQualificationFunnelLevel = ILeadQualificationFunnelLevel = {}));
3
+ exports.IQualificationFunnelLevel = exports.ICRMDicAction = void 0;
4
+ var ICRMDicAction;
5
+ (function (ICRMDicAction) {
6
+ ICRMDicAction["Create_dist_channel_type"] = "CREATE_DIST_CHANNEL_TYPE";
7
+ ICRMDicAction["Delete_dist_channel_type"] = "DELETE_DIST_CHANNEL_TYPE";
8
+ ICRMDicAction["Update_dist_channel_type"] = "UPDATE_DIST_CHANNEL_TYPE";
9
+ ICRMDicAction["Create_dist_channel"] = "CREATE_DIST_CHANNEL";
10
+ ICRMDicAction["Delete_dist_channel"] = "DELETE_DIST_CHANNEL";
11
+ ICRMDicAction["Update_dist_channel"] = "UPDATE_DIST_CHANNEL";
12
+ ICRMDicAction["Create_patient_source"] = "CREATE_LEADQUALIFICATION";
13
+ ICRMDicAction["Delete_patient_source"] = "DELETE_LEADQUALIFICATION";
14
+ ICRMDicAction["Update_patient_source"] = "UPDATE_LEADQUALIFICATION";
15
+ })(ICRMDicAction || (exports.ICRMDicAction = ICRMDicAction = {}));
16
+ var IQualificationFunnelLevel;
17
+ (function (IQualificationFunnelLevel) {
18
+ IQualificationFunnelLevel["New"] = "new";
19
+ IQualificationFunnelLevel["TryingContact"] = "trying_contact";
20
+ IQualificationFunnelLevel["Contacted"] = "contacted";
21
+ IQualificationFunnelLevel["Qualifying"] = "qualifying";
22
+ IQualificationFunnelLevel["Qualified"] = "qualified";
23
+ IQualificationFunnelLevel["Disqualified"] = "disqualified";
24
+ IQualificationFunnelLevel["Presented"] = "presented";
25
+ IQualificationFunnelLevel["ProposalSent"] = "proposal_sent";
26
+ IQualificationFunnelLevel["Negotiating"] = "negotiating";
27
+ IQualificationFunnelLevel["Won"] = "won";
28
+ IQualificationFunnelLevel["Lost"] = "lost";
29
+ IQualificationFunnelLevel["WaitingReply"] = "waiting_reply";
30
+ IQualificationFunnelLevel["FollowUpLater"] = "follow_up_later";
31
+ })(IQualificationFunnelLevel || (exports.IQualificationFunnelLevel = IQualificationFunnelLevel = {}));
@@ -1,5 +1,31 @@
1
1
  import { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
2
2
 
3
+ // ----- CRMDicTypes
4
+
5
+ // Enum for EvoCRM Dic Action - used in Dictionaries tracking
6
+ export type CRMDicAction =
7
+ | "CREATE_DIST_CHANNEL_TYPE"
8
+ | "DELETE_DIST_CHANNEL_TYPE"
9
+ | "UPDATE_DIST_CHANNEL_TYPE"
10
+ | "CREATE_DIST_CHANNEL"
11
+ | "DELETE_DIST_CHANNEL"
12
+ | "UPDATE_DIST_CHANNEL"
13
+ | "CREATE_LEADQUALIFICATION"
14
+ | "DELETE_LEADQUALIFICATION"
15
+ | "UPDATE_LEADQUALIFICATION";
16
+
17
+ export enum ICRMDicAction {
18
+ Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
19
+ Delete_dist_channel_type = "DELETE_DIST_CHANNEL_TYPE",
20
+ Update_dist_channel_type = "UPDATE_DIST_CHANNEL_TYPE",
21
+ Create_dist_channel = "CREATE_DIST_CHANNEL",
22
+ Delete_dist_channel = "DELETE_DIST_CHANNEL",
23
+ Update_dist_channel = "UPDATE_DIST_CHANNEL",
24
+ Create_patient_source = "CREATE_LEADQUALIFICATION",
25
+ Delete_patient_source = "DELETE_LEADQUALIFICATION",
26
+ Update_patient_source = "UPDATE_LEADQUALIFICATION",
27
+ }
28
+
3
29
  export interface IDistChannelType extends IFireDoc {
4
30
  code: string;
5
31
  name: string;
@@ -18,7 +44,7 @@ export interface IDistChannel extends IFireDoc {
18
44
  }
19
45
 
20
46
  // Funnel levels
21
- export type LeadQualificationFunnelLevel =
47
+ export type QualificationFunnelLevel =
22
48
  | "new"
23
49
  | "trying_contact"
24
50
  | "contacted"
@@ -33,7 +59,7 @@ export type LeadQualificationFunnelLevel =
33
59
  | "waiting_reply"
34
60
  | "follow_up_later";
35
61
 
36
- export enum ILeadQualificationFunnelLevel {
62
+ export enum IQualificationFunnelLevel {
37
63
  New = "new", // Lead recém-captado
38
64
  TryingContact = "trying_contact", // Tentando contato inicial
39
65
  Contacted = "contacted", // Contato estabelecido
@@ -50,9 +76,9 @@ export enum ILeadQualificationFunnelLevel {
50
76
  }
51
77
 
52
78
  // Lead qualification status
53
- export interface ILeadQualification extends IFireDoc {
79
+ export interface IQualification extends IFireDoc {
54
80
  code: string;
55
81
  name: string;
56
- funnelLevel: LeadQualificationFunnelLevel;
82
+ funnelLevel: QualificationFunnelLevel;
57
83
  [key: string]: unknown; // index signature
58
84
  }
@@ -1,6 +1,6 @@
1
1
  import { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
2
2
  import { IProfile } from "../../evo-people";
3
- import { LeadQualificationFunnelLevel } from "../dic";
3
+ import { QualificationFunnelLevel } from "../dic";
4
4
  export type LeadStatus = "active" | "inactive" | "draft";
5
5
  export declare enum ILeadStatus {
6
6
  Active = "active",
@@ -10,10 +10,10 @@ export declare enum ILeadStatus {
10
10
  export interface ILeadQualification {
11
11
  code: string;
12
12
  name: string;
13
- funnelLevel: LeadQualificationFunnelLevel;
13
+ funnelLevel: QualificationFunnelLevel;
14
14
  ref?: FirestoreDocumentReference;
15
15
  }
16
- export interface IDistChannel {
16
+ export interface ILeadDistChannel {
17
17
  code: string;
18
18
  name: string;
19
19
  ref?: FirestoreDocumentReference;
@@ -21,7 +21,7 @@ export interface IDistChannel {
21
21
  export interface ILead extends IProfile {
22
22
  status?: LeadStatus;
23
23
  qualification?: ILeadQualification | null;
24
- distChannel?: IDistChannel | null;
24
+ distChannel?: ILeadDistChannel | null;
25
25
  address?: IAddress | null;
26
26
  contact?: IContact | null;
27
27
  tags?: ITag[] | null;
@@ -5,7 +5,7 @@ import {
5
5
  ITag,
6
6
  } from "../../shared";
7
7
  import { IProfile } from "../../evo-people";
8
- import { LeadQualificationFunnelLevel } from "../dic";
8
+ import { QualificationFunnelLevel } from "../dic";
9
9
 
10
10
  // Lead status
11
11
  export type LeadStatus = "active" | "inactive" | "draft";
@@ -18,11 +18,11 @@ export enum ILeadStatus {
18
18
  export interface ILeadQualification {
19
19
  code: string;
20
20
  name: string;
21
- funnelLevel: LeadQualificationFunnelLevel;
21
+ funnelLevel: QualificationFunnelLevel;
22
22
  ref?: FirestoreDocumentReference;
23
23
  }
24
24
 
25
- export interface IDistChannel {
25
+ export interface ILeadDistChannel {
26
26
  code: string;
27
27
  name: string;
28
28
  ref?: FirestoreDocumentReference;
@@ -31,7 +31,7 @@ export interface IDistChannel {
31
31
  export interface ILead extends IProfile {
32
32
  status?: LeadStatus;
33
33
  qualification?: ILeadQualification | null;
34
- distChannel?: IDistChannel | null;
34
+ distChannel?: ILeadDistChannel | null;
35
35
  address?: IAddress | null;
36
36
  contact?: IContact | null;
37
37
  tags?: ITag[] | null;
@@ -1,16 +1,10 @@
1
1
  export * from "../../evo-people/fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
- export type MedDicAction = "CREATE_SPECIALTY" | "DELETE_SPECIALTY" | "UPDATE_SPECIALTY" | "CREATE_DIST_CHANNEL_TYPE" | "DELETE_DIST_CHANNEL_TYPE" | "UPDATE_DIST_CHANNEL_TYPE" | "CREATE_DIST_CHANNEL" | "DELETE_DIST_CHANNEL" | "UPDATE_DIST_CHANNEL" | "CREATE_PATIENT_SOURCE" | "DELETE_PATIENT_SOURCE" | "UPDATE_PATIENT_SOURCE" | "CREATE_APPOINTMENT_SOURCE" | "DELETE_APPOINTMENT_SOURCE" | "UPDATE_APPOINTMENT_SOURCE" | "CREATE_APPOINTMENT_REQUEST_TYPE" | "DELETE_APPOINTMENT_REQUEST_TYPE" | "UPDATE_APPOINTMENT_REQUEST_TYPE" | "CREATE_APPOINTMENT_STATUS" | "DELETE_APPOINTMENT_STATUS" | "UPDATE_APPOINTMENT_STATUS";
3
+ export type MedDicAction = "CREATE_SPECIALTY" | "DELETE_SPECIALTY" | "UPDATE_SPECIALTY" | "CREATE_PATIENT_SOURCE" | "DELETE_PATIENT_SOURCE" | "UPDATE_PATIENT_SOURCE" | "CREATE_APPOINTMENT_SOURCE" | "DELETE_APPOINTMENT_SOURCE" | "UPDATE_APPOINTMENT_SOURCE" | "CREATE_APPOINTMENT_REQUEST_TYPE" | "DELETE_APPOINTMENT_REQUEST_TYPE" | "UPDATE_APPOINTMENT_REQUEST_TYPE" | "CREATE_APPOINTMENT_STATUS" | "DELETE_APPOINTMENT_STATUS" | "UPDATE_APPOINTMENT_STATUS";
4
4
  export declare enum IMedDicAction {
5
5
  Create_specialty = "CREATE_SPECIALTY",
6
6
  Delete_specialty = "DELETE_SPECIALTY",
7
7
  Update_specialty = "UPDATE_SPECIALTY",
8
- Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
9
- Delete_dist_channel_type = "DELETE_DIST_CHANNEL_TYPE",
10
- Update_dist_channel_type = "UPDATE_DIST_CHANNEL_TYPE",
11
- Create_dist_channel = "CREATE_DIST_CHANNEL",
12
- Delete_dist_channel = "DELETE_DIST_CHANNEL",
13
- Update_dist_channel = "UPDATE_DIST_CHANNEL",
14
8
  Create_patient_source = "CREATE_PATIENT_SOURCE",
15
9
  Delete_patient_source = "DELETE_PATIENT_SOURCE",
16
10
  Update_patient_source = "UPDATE_PATIENT_SOURCE",
@@ -21,12 +21,6 @@ var IMedDicAction;
21
21
  IMedDicAction["Create_specialty"] = "CREATE_SPECIALTY";
22
22
  IMedDicAction["Delete_specialty"] = "DELETE_SPECIALTY";
23
23
  IMedDicAction["Update_specialty"] = "UPDATE_SPECIALTY";
24
- IMedDicAction["Create_dist_channel_type"] = "CREATE_DIST_CHANNEL_TYPE";
25
- IMedDicAction["Delete_dist_channel_type"] = "DELETE_DIST_CHANNEL_TYPE";
26
- IMedDicAction["Update_dist_channel_type"] = "UPDATE_DIST_CHANNEL_TYPE";
27
- IMedDicAction["Create_dist_channel"] = "CREATE_DIST_CHANNEL";
28
- IMedDicAction["Delete_dist_channel"] = "DELETE_DIST_CHANNEL";
29
- IMedDicAction["Update_dist_channel"] = "UPDATE_DIST_CHANNEL";
30
24
  IMedDicAction["Create_patient_source"] = "CREATE_PATIENT_SOURCE";
31
25
  IMedDicAction["Delete_patient_source"] = "DELETE_PATIENT_SOURCE";
32
26
  IMedDicAction["Update_patient_source"] = "UPDATE_PATIENT_SOURCE";
@@ -8,12 +8,6 @@ export type MedDicAction =
8
8
  | "CREATE_SPECIALTY"
9
9
  | "DELETE_SPECIALTY"
10
10
  | "UPDATE_SPECIALTY"
11
- | "CREATE_DIST_CHANNEL_TYPE"
12
- | "DELETE_DIST_CHANNEL_TYPE"
13
- | "UPDATE_DIST_CHANNEL_TYPE"
14
- | "CREATE_DIST_CHANNEL"
15
- | "DELETE_DIST_CHANNEL"
16
- | "UPDATE_DIST_CHANNEL"
17
11
  | "CREATE_PATIENT_SOURCE"
18
12
  | "DELETE_PATIENT_SOURCE"
19
13
  | "UPDATE_PATIENT_SOURCE"
@@ -31,12 +25,6 @@ export enum IMedDicAction {
31
25
  Create_specialty = "CREATE_SPECIALTY",
32
26
  Delete_specialty = "DELETE_SPECIALTY",
33
27
  Update_specialty = "UPDATE_SPECIALTY",
34
- Create_dist_channel_type = "CREATE_DIST_CHANNEL_TYPE",
35
- Delete_dist_channel_type = "DELETE_DIST_CHANNEL_TYPE",
36
- Update_dist_channel_type = "UPDATE_DIST_CHANNEL_TYPE",
37
- Create_dist_channel = "CREATE_DIST_CHANNEL",
38
- Delete_dist_channel = "DELETE_DIST_CHANNEL",
39
- Update_dist_channel = "UPDATE_DIST_CHANNEL",
40
28
  Create_patient_source = "CREATE_PATIENT_SOURCE",
41
29
  Delete_patient_source = "DELETE_PATIENT_SOURCE",
42
30
  Update_patient_source = "UPDATE_PATIENT_SOURCE",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",