@awell-health/awell-extensions 2.0.108 → 2.0.110
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/elation/actions/createReferralOrder/config/dataPoints.d.ts +6 -0
- package/dist/extensions/elation/actions/createReferralOrder/config/dataPoints.js +10 -0
- package/dist/extensions/elation/actions/createReferralOrder/config/dataPoints.js.map +1 -0
- package/dist/extensions/elation/actions/createReferralOrder/config/fields.d.ts +84 -0
- package/dist/extensions/elation/actions/createReferralOrder/config/fields.js +74 -0
- package/dist/extensions/elation/actions/createReferralOrder/config/fields.js.map +1 -0
- package/dist/extensions/elation/actions/createReferralOrder/config/index.d.ts +2 -0
- package/dist/extensions/elation/actions/createReferralOrder/config/index.js +9 -0
- package/dist/extensions/elation/actions/createReferralOrder/config/index.js.map +1 -0
- package/dist/extensions/elation/actions/createReferralOrder/createReferralOrder.d.ts +10 -0
- package/dist/extensions/elation/actions/createReferralOrder/createReferralOrder.js +82 -0
- package/dist/extensions/elation/actions/createReferralOrder/createReferralOrder.js.map +1 -0
- package/dist/extensions/elation/actions/createReferralOrder/index.d.ts +1 -0
- package/dist/extensions/elation/actions/createReferralOrder/index.js +6 -0
- package/dist/extensions/elation/actions/createReferralOrder/index.js.map +1 -0
- package/dist/extensions/elation/actions/index.d.ts +100 -0
- package/dist/extensions/elation/actions/index.js +3 -1
- package/dist/extensions/elation/actions/index.js.map +1 -1
- package/dist/extensions/elation/client.d.ts +12 -1
- package/dist/extensions/elation/client.js +30 -2
- package/dist/extensions/elation/client.js.map +1 -1
- package/dist/extensions/elation/types/contact.d.ts +2 -0
- package/dist/extensions/elation/types/letter.d.ts +2 -2
- package/dist/extensions/elation/types/referralOrder.d.ts +8 -0
- package/dist/extensions/elation/types/referralOrder.js +3 -0
- package/dist/extensions/elation/types/referralOrder.js.map +1 -0
- package/dist/extensions/elation/types/specialty.d.ts +3 -0
- package/dist/extensions/elation/types/specialty.js +3 -0
- package/dist/extensions/elation/types/specialty.js.map +1 -0
- package/dist/extensions/elation/validation/referralOrder.zod.d.ts +129 -0
- package/dist/extensions/elation/validation/referralOrder.zod.js +47 -0
- package/dist/extensions/elation/validation/referralOrder.zod.js.map +1 -0
- package/dist/extensions/elation/validation/specialty.zod.d.ts +14 -0
- package/dist/extensions/elation/validation/specialty.zod.js +10 -0
- package/dist/extensions/elation/validation/specialty.zod.js.map +1 -0
- package/dist/extensions/mailchimp/settings.d.ts +3 -3
- package/dist/extensions/mailchimp/settings.js +2 -1
- package/dist/extensions/mailchimp/settings.js.map +1 -1
- package/dist/extensions/mailchimp/v1/actions/sendEmail/config/fields.d.ts +3 -3
- package/dist/extensions/mailchimp/v1/actions/sendEmail/config/fields.js +2 -1
- package/dist/extensions/mailchimp/v1/actions/sendEmail/config/fields.js.map +1 -1
- package/dist/extensions/mailchimp/v1/actions/sendEmailWithTemplate/config/fields.d.ts +3 -3
- package/dist/extensions/mailchimp/v1/actions/sendEmailWithTemplate/config/fields.js +2 -1
- package/dist/extensions/mailchimp/v1/actions/sendEmailWithTemplate/config/fields.js.map +1 -1
- package/dist/extensions/mailgun/settings.d.ts +3 -3
- package/dist/extensions/mailgun/settings.js +2 -1
- package/dist/extensions/mailgun/settings.js.map +1 -1
- package/dist/extensions/mailgun/v1/actions/sendEmail/config/fields.d.ts +3 -3
- package/dist/extensions/mailgun/v1/actions/sendEmail/config/fields.js +2 -1
- package/dist/extensions/mailgun/v1/actions/sendEmail/config/fields.js.map +1 -1
- package/dist/extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.d.ts +3 -3
- package/dist/extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.js +2 -1
- package/dist/extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.js.map +1 -1
- package/dist/extensions/sendgrid-extension/settings.d.ts +3 -3
- package/dist/extensions/sendgrid-extension/settings.js +2 -1
- package/dist/extensions/sendgrid-extension/settings.js.map +1 -1
- package/dist/extensions/sendgrid-extension/v1/actions/addOrUpdateContact/config/fields.d.ts +3 -3
- package/dist/extensions/sendgrid-extension/v1/actions/addOrUpdateContact/config/fields.js +2 -1
- package/dist/extensions/sendgrid-extension/v1/actions/addOrUpdateContact/config/fields.js.map +1 -1
- package/dist/extensions/sendgrid-extension/v1/actions/addSuppressions/config/fields.d.ts +3 -3
- package/dist/extensions/sendgrid-extension/v1/actions/addSuppressions/config/fields.js +2 -1
- package/dist/extensions/sendgrid-extension/v1/actions/addSuppressions/config/fields.js.map +1 -1
- package/dist/extensions/sendgrid-extension/v1/actions/removeSuppressions/config/fields.d.ts +3 -3
- package/dist/extensions/sendgrid-extension/v1/actions/removeSuppressions/config/fields.js +2 -1
- package/dist/extensions/sendgrid-extension/v1/actions/removeSuppressions/config/fields.js.map +1 -1
- package/dist/extensions/sendgrid-extension/v1/actions/sendEmail/config/fields.d.ts +6 -6
- package/dist/extensions/sendgrid-extension/v1/actions/sendEmail/config/fields.js +3 -2
- package/dist/extensions/sendgrid-extension/v1/actions/sendEmail/config/fields.js.map +1 -1
- package/dist/extensions/sendgrid-extension/v1/actions/sendEmailWithTemplate/config/fields.d.ts +6 -6
- package/dist/extensions/sendgrid-extension/v1/actions/sendEmailWithTemplate/config/fields.js +3 -2
- package/dist/extensions/sendgrid-extension/v1/actions/sendEmailWithTemplate/config/fields.js.map +1 -1
- package/dist/src/lib/awell/getEmailValidationRegex/getEmailValidation.d.ts +6 -0
- package/dist/src/lib/awell/getEmailValidationRegex/getEmailValidation.js +14 -0
- package/dist/src/lib/awell/getEmailValidationRegex/getEmailValidation.js.map +1 -0
- package/dist/src/lib/awell/getEmailValidationRegex/index.d.ts +1 -0
- package/dist/src/lib/awell/getEmailValidationRegex/index.js +18 -0
- package/dist/src/lib/awell/getEmailValidationRegex/index.js.map +1 -0
- package/dist/src/lib/awell/index.d.ts +1 -0
- package/dist/src/lib/awell/index.js +1 -0
- package/dist/src/lib/awell/index.js.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,8 @@
|
|
1
|
+
import { type z } from 'zod';
|
2
|
+
import { type referralOrderSchema } from '../validation/referralOrder.zod';
|
3
|
+
export type GetReferralOrderInputType = number;
|
4
|
+
export type GetReferralOrderResponseType = z.infer<typeof referralOrderSchema>;
|
5
|
+
export type PostReferralOrderInput = Pick<z.infer<typeof referralOrderSchema>, 'authorization_for' | 'auth_number' | 'consultant_name' | 'short_consultant_name' | 'date_for_reEval' | 'practice' | 'patient' | 'icd10_codes' | 'specialty'>;
|
6
|
+
export interface PostReferralOrderResponse extends PostReferralOrderInput {
|
7
|
+
id: number;
|
8
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"referralOrder.js","sourceRoot":"","sources":["../../../../extensions/elation/types/referralOrder.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"specialty.js","sourceRoot":"","sources":["../../../../extensions/elation/types/specialty.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const AuthorizationForSchema: z.ZodEnum<["Referral For Treatment, includes Consult Visit", "Procedure / Testing Only", "Consult (One Visit Only)"]>;
|
3
|
+
export declare const AuthorizationForShortSchema: z.ZodEnum<["ForTreat", "ProcOnly", "ConsOnly"]>;
|
4
|
+
export declare const ResolutionStateSchema: z.ZodEnum<["outstanding", "fulfilled", "cancelled"]>;
|
5
|
+
export declare const resolutionSchema: z.ZodObject<{
|
6
|
+
id: z.ZodNumber;
|
7
|
+
document: z.ZodNumber;
|
8
|
+
resolving_document: z.ZodNullable<z.ZodNumber>;
|
9
|
+
state: z.ZodEnum<["outstanding", "fulfilled", "cancelled"]>;
|
10
|
+
note: z.ZodNullable<z.ZodString>;
|
11
|
+
created_date: z.ZodString;
|
12
|
+
deleted_date: z.ZodNullable<z.ZodString>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
id: number;
|
15
|
+
state: "cancelled" | "outstanding" | "fulfilled";
|
16
|
+
note: string | null;
|
17
|
+
document: number;
|
18
|
+
resolving_document: number | null;
|
19
|
+
created_date: string;
|
20
|
+
deleted_date: string | null;
|
21
|
+
}, {
|
22
|
+
id: number;
|
23
|
+
state: "cancelled" | "outstanding" | "fulfilled";
|
24
|
+
note: string | null;
|
25
|
+
document: number;
|
26
|
+
resolving_document: number | null;
|
27
|
+
created_date: string;
|
28
|
+
deleted_date: string | null;
|
29
|
+
}>;
|
30
|
+
export declare const referralOrderSchema: z.ZodObject<{
|
31
|
+
authorization_for: z.ZodEnum<["Referral For Treatment, includes Consult Visit", "Procedure / Testing Only", "Consult (One Visit Only)"]>;
|
32
|
+
auth_number: z.ZodNullable<z.ZodString>;
|
33
|
+
consultant_name: z.ZodString;
|
34
|
+
short_consultant_name: z.ZodString;
|
35
|
+
date_for_reEval: z.ZodNullable<z.ZodString>;
|
36
|
+
authorization_for_short: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ForTreat", "ProcOnly", "ConsOnly"]>>>;
|
37
|
+
practice: z.ZodNumber;
|
38
|
+
patient: z.ZodNumber;
|
39
|
+
letter: z.ZodNumber;
|
40
|
+
resolution: z.ZodObject<{
|
41
|
+
id: z.ZodNumber;
|
42
|
+
document: z.ZodNumber;
|
43
|
+
resolving_document: z.ZodNullable<z.ZodNumber>;
|
44
|
+
state: z.ZodEnum<["outstanding", "fulfilled", "cancelled"]>;
|
45
|
+
note: z.ZodNullable<z.ZodString>;
|
46
|
+
created_date: z.ZodString;
|
47
|
+
deleted_date: z.ZodNullable<z.ZodString>;
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
49
|
+
id: number;
|
50
|
+
state: "cancelled" | "outstanding" | "fulfilled";
|
51
|
+
note: string | null;
|
52
|
+
document: number;
|
53
|
+
resolving_document: number | null;
|
54
|
+
created_date: string;
|
55
|
+
deleted_date: string | null;
|
56
|
+
}, {
|
57
|
+
id: number;
|
58
|
+
state: "cancelled" | "outstanding" | "fulfilled";
|
59
|
+
note: string | null;
|
60
|
+
document: number;
|
61
|
+
resolving_document: number | null;
|
62
|
+
created_date: string;
|
63
|
+
deleted_date: string | null;
|
64
|
+
}>;
|
65
|
+
icd10_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
66
|
+
specialty: z.ZodObject<{
|
67
|
+
id: z.ZodOptional<z.ZodString>;
|
68
|
+
name: z.ZodOptional<z.ZodString>;
|
69
|
+
abbreviation: z.ZodOptional<z.ZodString>;
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
71
|
+
id?: string | undefined;
|
72
|
+
name?: string | undefined;
|
73
|
+
abbreviation?: string | undefined;
|
74
|
+
}, {
|
75
|
+
id?: string | undefined;
|
76
|
+
name?: string | undefined;
|
77
|
+
abbreviation?: string | undefined;
|
78
|
+
}>;
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
80
|
+
patient: number;
|
81
|
+
practice: number;
|
82
|
+
specialty: {
|
83
|
+
id?: string | undefined;
|
84
|
+
name?: string | undefined;
|
85
|
+
abbreviation?: string | undefined;
|
86
|
+
};
|
87
|
+
authorization_for: "Referral For Treatment, includes Consult Visit" | "Procedure / Testing Only" | "Consult (One Visit Only)";
|
88
|
+
auth_number: string | null;
|
89
|
+
consultant_name: string;
|
90
|
+
short_consultant_name: string;
|
91
|
+
date_for_reEval: string | null;
|
92
|
+
letter: number;
|
93
|
+
resolution: {
|
94
|
+
id: number;
|
95
|
+
state: "cancelled" | "outstanding" | "fulfilled";
|
96
|
+
note: string | null;
|
97
|
+
document: number;
|
98
|
+
resolving_document: number | null;
|
99
|
+
created_date: string;
|
100
|
+
deleted_date: string | null;
|
101
|
+
};
|
102
|
+
authorization_for_short?: "ForTreat" | "ProcOnly" | "ConsOnly" | null | undefined;
|
103
|
+
icd10_codes?: string[] | undefined;
|
104
|
+
}, {
|
105
|
+
patient: number;
|
106
|
+
practice: number;
|
107
|
+
specialty: {
|
108
|
+
id?: string | undefined;
|
109
|
+
name?: string | undefined;
|
110
|
+
abbreviation?: string | undefined;
|
111
|
+
};
|
112
|
+
authorization_for: "Referral For Treatment, includes Consult Visit" | "Procedure / Testing Only" | "Consult (One Visit Only)";
|
113
|
+
auth_number: string | null;
|
114
|
+
consultant_name: string;
|
115
|
+
short_consultant_name: string;
|
116
|
+
date_for_reEval: string | null;
|
117
|
+
letter: number;
|
118
|
+
resolution: {
|
119
|
+
id: number;
|
120
|
+
state: "cancelled" | "outstanding" | "fulfilled";
|
121
|
+
note: string | null;
|
122
|
+
document: number;
|
123
|
+
resolving_document: number | null;
|
124
|
+
created_date: string;
|
125
|
+
deleted_date: string | null;
|
126
|
+
};
|
127
|
+
authorization_for_short?: "ForTreat" | "ProcOnly" | "ConsOnly" | null | undefined;
|
128
|
+
icd10_codes?: string[] | undefined;
|
129
|
+
}>;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.referralOrderSchema = exports.resolutionSchema = exports.ResolutionStateSchema = exports.AuthorizationForShortSchema = exports.AuthorizationForSchema = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
const specialty_zod_1 = require("./specialty.zod");
|
7
|
+
exports.AuthorizationForSchema = zod_1.z.enum([
|
8
|
+
'Referral For Treatment, includes Consult Visit',
|
9
|
+
'Procedure / Testing Only',
|
10
|
+
'Consult (One Visit Only)'
|
11
|
+
]);
|
12
|
+
exports.AuthorizationForShortSchema = zod_1.z.enum([
|
13
|
+
'ForTreat',
|
14
|
+
'ProcOnly',
|
15
|
+
'ConsOnly'
|
16
|
+
]);
|
17
|
+
exports.ResolutionStateSchema = zod_1.z.enum([
|
18
|
+
'outstanding',
|
19
|
+
'fulfilled',
|
20
|
+
'cancelled'
|
21
|
+
]);
|
22
|
+
exports.resolutionSchema = zod_1.z.object({
|
23
|
+
id: zod_1.z.number(),
|
24
|
+
document: zod_1.z.number(),
|
25
|
+
resolving_document: zod_1.z.number().nullable(),
|
26
|
+
state: exports.ResolutionStateSchema,
|
27
|
+
note: zod_1.z.string().nullable(),
|
28
|
+
created_date: zod_1.z.string().datetime(),
|
29
|
+
deleted_date: zod_1.z.string().datetime().nullable()
|
30
|
+
});
|
31
|
+
exports.referralOrderSchema = zod_1.z.object({
|
32
|
+
authorization_for: exports.AuthorizationForSchema,
|
33
|
+
auth_number: zod_1.z.string().nullable(),
|
34
|
+
consultant_name: zod_1.z.string(),
|
35
|
+
short_consultant_name: zod_1.z.string(),
|
36
|
+
date_for_reEval: zod_1.z.string().datetime().nullable(),
|
37
|
+
authorization_for_short: exports.AuthorizationForShortSchema.nullable().optional(),
|
38
|
+
practice: extensions_core_1.NumericIdSchema,
|
39
|
+
patient: extensions_core_1.NumericIdSchema,
|
40
|
+
letter: extensions_core_1.NumericIdSchema,
|
41
|
+
resolution: exports.resolutionSchema,
|
42
|
+
icd10_codes: zod_1.z.array(zod_1.z.string()).optional(),
|
43
|
+
specialty: specialty_zod_1.specialtySchema
|
44
|
+
});
|
45
|
+
// Note: id is not included in the schema as it's generated by the server
|
46
|
+
// It's only included in the response type (PostReferralOrderResponse)
|
47
|
+
//# sourceMappingURL=referralOrder.zod.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"referralOrder.zod.js","sourceRoot":"","sources":["../../../../extensions/elation/validation/referralOrder.zod.ts"],"names":[],"mappings":";;;AAAA,mEAA+D;AAC/D,6BAAuB;AACvB,mDAAiD;AAEpC,QAAA,sBAAsB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC3C,gDAAgD;IAChD,0BAA0B;IAC1B,0BAA0B;CAClB,CAAC,CAAA;AAEE,QAAA,2BAA2B,GAAG,OAAC,CAAC,IAAI,CAAC;IAChD,UAAU;IACV,UAAU;IACV,UAAU;CACF,CAAC,CAAA;AAEE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC1C,aAAa;IACb,WAAW;IACX,WAAW;CACH,CAAC,CAAA;AAEE,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,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, "strip", z.ZodTypeAny, {
|
7
|
+
id?: string | undefined;
|
8
|
+
name?: string | undefined;
|
9
|
+
abbreviation?: string | undefined;
|
10
|
+
}, {
|
11
|
+
id?: string | undefined;
|
12
|
+
name?: string | undefined;
|
13
|
+
abbreviation?: string | undefined;
|
14
|
+
}>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.specialtySchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.specialtySchema = zod_1.z.object({
|
6
|
+
id: zod_1.z.string().optional(),
|
7
|
+
name: zod_1.z.string().optional(),
|
8
|
+
abbreviation: zod_1.z.string().optional()
|
9
|
+
});
|
10
|
+
//# sourceMappingURL=specialty.zod.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"specialty.zod.js","sourceRoot":"","sources":["../../../../extensions/elation/validation/specialty.zod.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAGX,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC"}
|
@@ -26,13 +26,13 @@ export declare const RegionValidationSchema: z.ZodOptional<z.ZodEnum<["EU", "eu"
|
|
26
26
|
export declare const SettingsValidationSchema: z.ZodObject<{
|
27
27
|
apiKey: z.ZodString;
|
28
28
|
fromName: z.ZodString;
|
29
|
-
fromEmail: z.
|
29
|
+
fromEmail: z.ZodTypeAny;
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
31
31
|
apiKey: string;
|
32
32
|
fromName: string;
|
33
|
-
fromEmail
|
33
|
+
fromEmail?: any;
|
34
34
|
}, {
|
35
35
|
apiKey: string;
|
36
36
|
fromName: string;
|
37
|
-
fromEmail
|
37
|
+
fromEmail?: any;
|
38
38
|
}>;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SettingsValidationSchema = exports.RegionValidationSchema = exports.settings = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const awell_1 = require("../../src/lib/awell");
|
5
6
|
exports.settings = {
|
6
7
|
apiKey: {
|
7
8
|
key: 'apiKey',
|
@@ -29,6 +30,6 @@ exports.RegionValidationSchema = zod_1.z.optional(zod_1.z.enum(['EU', 'eu', 'US'
|
|
29
30
|
exports.SettingsValidationSchema = zod_1.z.object({
|
30
31
|
apiKey: zod_1.z.string(),
|
31
32
|
fromName: zod_1.z.string(),
|
32
|
-
fromEmail:
|
33
|
+
fromEmail: (0, awell_1.getEmailValidation)(),
|
33
34
|
});
|
34
35
|
//# sourceMappingURL=settings.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/mailchimp/settings.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/mailchimp/settings.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AAExC,+CAAwD;AAE3C,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,kFAAkF;KACrF;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,WAAW;QAClB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,mDAAmD;KACjE;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,KAAK,EAAE,YAAY;QACnB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4DAA4D;KAC1E;CACgC,CAAA;AAEtB,QAAA,sBAAsB,GAAG,OAAC,CAAC,QAAQ,CAC9C,OAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CACjC,CAAA;AAEY,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,IAAA,0BAAkB,GAAE;CACoB,CAAC,CAAA"}
|
@@ -28,15 +28,15 @@ export declare const fields: {
|
|
28
28
|
};
|
29
29
|
};
|
30
30
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
31
|
-
to: z.
|
31
|
+
to: z.ZodTypeAny;
|
32
32
|
subject: z.ZodString;
|
33
33
|
body: z.ZodString;
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
35
35
|
body: string;
|
36
|
-
to: string;
|
37
36
|
subject: string;
|
37
|
+
to?: any;
|
38
38
|
}, {
|
39
39
|
body: string;
|
40
|
-
to: string;
|
41
40
|
subject: string;
|
41
|
+
to?: any;
|
42
42
|
}>;
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FieldsValidationSchema = exports.fields = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
6
|
+
const awell_1 = require("../../../../../../src/lib/awell");
|
6
7
|
exports.fields = {
|
7
8
|
to: {
|
8
9
|
id: 'to',
|
@@ -32,7 +33,7 @@ exports.fields = {
|
|
32
33
|
},
|
33
34
|
};
|
34
35
|
exports.FieldsValidationSchema = zod_1.z.object({
|
35
|
-
to:
|
36
|
+
to: (0, awell_1.getEmailValidation)(),
|
36
37
|
subject: zod_1.z.string(),
|
37
38
|
body: zod_1.z.string(),
|
38
39
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/mailchimp/v1/actions/sendEmail/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/mailchimp/v1/actions/sendEmail/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AACrE,2DAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB;;;WAGG;QACH,gCAAgC;QAChC,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,IAAA,0BAAkB,GAAE;IACxB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACiC,CAAC,CAAA"}
|
@@ -39,19 +39,19 @@ interface TemplateContent {
|
|
39
39
|
content: string;
|
40
40
|
}
|
41
41
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
42
|
-
to: z.
|
42
|
+
to: z.ZodTypeAny;
|
43
43
|
subject: z.ZodString;
|
44
44
|
templateName: z.ZodString;
|
45
45
|
templateContent: z.ZodEffects<z.ZodOptional<z.ZodString>, TemplateContent[], string | undefined>;
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
47
|
-
to: string;
|
48
47
|
subject: string;
|
49
48
|
templateName: string;
|
50
49
|
templateContent: TemplateContent[];
|
50
|
+
to?: any;
|
51
51
|
}, {
|
52
|
-
to: string;
|
53
52
|
subject: string;
|
54
53
|
templateName: string;
|
54
|
+
to?: any;
|
55
55
|
templateContent?: string | undefined;
|
56
56
|
}>;
|
57
57
|
export {};
|
@@ -4,6 +4,7 @@ exports.FieldsValidationSchema = exports.fields = void 0;
|
|
4
4
|
const lodash_1 = require("lodash");
|
5
5
|
const zod_1 = require("zod");
|
6
6
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
7
|
+
const awell_1 = require("../../../../../../src/lib/awell");
|
7
8
|
exports.fields = {
|
8
9
|
to: {
|
9
10
|
id: 'to',
|
@@ -40,7 +41,7 @@ exports.fields = {
|
|
40
41
|
},
|
41
42
|
};
|
42
43
|
exports.FieldsValidationSchema = zod_1.z.object({
|
43
|
-
to:
|
44
|
+
to: (0, awell_1.getEmailValidation)(),
|
44
45
|
subject: zod_1.z.string(),
|
45
46
|
templateName: zod_1.z.string(),
|
46
47
|
templateContent: zod_1.z
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/mailchimp/v1/actions/sendEmailWithTemplate/config/fields.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AACvC,6BAAwC;AACxC,mEAAqE;
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/mailchimp/v1/actions/sendEmailWithTemplate/config/fields.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AACvC,6BAAwC;AACxC,mEAAqE;AACrE,2DAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,IAAI;QACX,WAAW,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AAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,oCAAoC;iBAC9C,CAAC,CAAA;gBACF,OAAO,OAAC,CAAC,KAAK,CAAA;aACf;YAED,MAAM,kBAAkB,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;gBAClD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;oBAC3B,GAAG,CAAC,QAAQ,CAAC;wBACX,IAAI,EAAE,QAAQ;wBACd,OAAO,EACL,6DAA6D;qBAChE,CAAC,CAAA;oBACF,OAAO,OAAC,CAAC,KAAK,CAAA;iBACf;gBAED,OAAO,MAAM,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,CAAA;YAC1C,CAAC,CAAC,CAAA;YAEF,IAAI,CAAC,kBAAkB,EAAE;gBACvB,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,QAAQ;oBACd,OAAO,EACL,2FAA2F;iBAC9F,CAAC,CAAA;gBACF,OAAO,OAAC,CAAC,KAAK,CAAA;aACf;YAED,OAAO,UAAU,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAA;YACzD,OAAO,OAAC,CAAC,KAAK,CAAA;SACf;IACH,CAAC,CAAC;CAC6C,CAAC,CAAA"}
|
@@ -48,22 +48,22 @@ export declare const SettingsValidationSchema: z.ZodObject<{
|
|
48
48
|
apiKey: z.ZodString;
|
49
49
|
domain: z.ZodString;
|
50
50
|
fromName: z.ZodString;
|
51
|
-
fromEmail: z.
|
51
|
+
fromEmail: z.ZodTypeAny;
|
52
52
|
region: z.ZodOptional<z.ZodEnum<["EU", "eu", "US", "us"]>>;
|
53
53
|
testMode: z.ZodEffects<z.ZodOptional<z.ZodEnum<["Yes", "yes", "No", "no"]>>, boolean, "Yes" | "No" | "yes" | "no" | undefined>;
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
55
55
|
apiKey: string;
|
56
56
|
fromName: string;
|
57
57
|
testMode: boolean;
|
58
|
-
fromEmail: string;
|
59
58
|
domain: string;
|
59
|
+
fromEmail?: any;
|
60
60
|
region?: "US" | "EU" | "eu" | "us" | undefined;
|
61
61
|
}, {
|
62
62
|
apiKey: string;
|
63
63
|
fromName: string;
|
64
|
-
fromEmail: string;
|
65
64
|
domain: string;
|
66
65
|
testMode?: "Yes" | "No" | "yes" | "no" | undefined;
|
66
|
+
fromEmail?: any;
|
67
67
|
region?: "US" | "EU" | "eu" | "us" | undefined;
|
68
68
|
}>;
|
69
69
|
export declare const validateSettings: (settings: unknown) => z.infer<typeof SettingsValidationSchema>;
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateSettings = exports.SettingsValidationSchema = exports.RegionValidationSchema = exports.settings = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
5
|
const zod_1 = require("zod");
|
6
|
+
const awell_1 = require("../../src/lib/awell");
|
6
7
|
exports.settings = {
|
7
8
|
apiKey: {
|
8
9
|
key: 'apiKey',
|
@@ -52,7 +53,7 @@ exports.SettingsValidationSchema = zod_1.z.object({
|
|
52
53
|
apiKey: zod_1.z.string(),
|
53
54
|
domain: zod_1.z.string(),
|
54
55
|
fromName: zod_1.z.string(),
|
55
|
-
fromEmail:
|
56
|
+
fromEmail: (0, awell_1.getEmailValidation)(),
|
56
57
|
region: exports.RegionValidationSchema,
|
57
58
|
testMode: zod_1.z.optional(zod_1.z.enum(['Yes', 'yes', 'No', 'no'])).transform((val) => {
|
58
59
|
const serializedVal = (0, lodash_1.lowerCase)(val);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/mailgun/settings.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAClC,6BAAwC;
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":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;IAClB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,IAAA,0BAAkB,GAAE;IAC/B,MAAM,EAAE,8BAAsB;IAC9B,QAAQ,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;QACzE,MAAM,aAAa,GAAG,IAAA,kBAAS,EAAC,GAAG,CAAC,CAAA;QAEpC,IAAI,aAAa,KAAK,KAAK;YAAE,OAAO,IAAI,CAAA;QAExC,OAAO,KAAK,CAAA;IACd,CAAC,CAAC;CACiD,CAAC,CAAA;AAE/C,MAAM,gBAAgB,GAAG,CAC9B,QAAiB,EACyB,EAAE;IAC5C,MAAM,UAAU,GAAG,gCAAwB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAE3D,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AANY,QAAA,gBAAgB,oBAM5B"}
|
@@ -28,16 +28,16 @@ export declare const fields: {
|
|
28
28
|
};
|
29
29
|
};
|
30
30
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
31
|
-
to: z.
|
31
|
+
to: z.ZodTypeAny;
|
32
32
|
subject: z.ZodString;
|
33
33
|
body: z.ZodString;
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
35
35
|
body: string;
|
36
|
-
to: string;
|
37
36
|
subject: string;
|
37
|
+
to?: any;
|
38
38
|
}, {
|
39
39
|
body: string;
|
40
|
-
to: string;
|
41
40
|
subject: string;
|
41
|
+
to?: any;
|
42
42
|
}>;
|
43
43
|
export declare const validateActionFields: (fields: unknown) => z.infer<typeof FieldsValidationSchema>;
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateActionFields = exports.FieldsValidationSchema = exports.fields = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
6
|
+
const awell_1 = require("../../../../../../src/lib/awell");
|
6
7
|
exports.fields = {
|
7
8
|
to: {
|
8
9
|
id: 'to',
|
@@ -32,7 +33,7 @@ exports.fields = {
|
|
32
33
|
},
|
33
34
|
};
|
34
35
|
exports.FieldsValidationSchema = zod_1.z.object({
|
35
|
-
to:
|
36
|
+
to: (0, awell_1.getEmailValidation)(),
|
36
37
|
subject: zod_1.z.string(),
|
37
38
|
body: zod_1.z.string(),
|
38
39
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/mailgun/v1/actions/sendEmail/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/mailgun/v1/actions/sendEmail/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AACrE,2DAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB;;;WAGG;QACH,gCAAgC;QAChC,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,IAAA,0BAAkB,GAAE;IACxB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACiC,CAAC,CAAA;AAE7C,MAAM,oBAAoB,GAAG,CAClC,MAAe,EACyB,EAAE;IAC1C,MAAM,UAAU,GAAG,8BAAsB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAEvD,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AANY,QAAA,oBAAoB,wBAMhC"}
|
@@ -35,23 +35,23 @@ export declare const fields: {
|
|
35
35
|
};
|
36
36
|
};
|
37
37
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
38
|
-
to: z.
|
38
|
+
to: z.ZodTypeAny;
|
39
39
|
subject: z.ZodString;
|
40
40
|
template: z.ZodString;
|
41
41
|
variables: z.ZodEffects<z.ZodOptional<z.ZodString>, string | number | boolean | {
|
42
42
|
[key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
43
43
|
} | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null, string | undefined>;
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
45
|
-
to: string;
|
46
45
|
variables: string | number | boolean | {
|
47
46
|
[key: string]: string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
48
47
|
} | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | (string | number | boolean | any | any | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null)[] | null;
|
49
48
|
subject: string;
|
50
49
|
template: string;
|
50
|
+
to?: any;
|
51
51
|
}, {
|
52
|
-
to: string;
|
53
52
|
subject: string;
|
54
53
|
template: string;
|
54
|
+
to?: any;
|
55
55
|
variables?: string | undefined;
|
56
56
|
}>;
|
57
57
|
export declare const validateActionFields: (fields: unknown) => z.infer<typeof FieldsValidationSchema>;
|
@@ -4,6 +4,7 @@ exports.validateActionFields = exports.FieldsValidationSchema = exports.fields =
|
|
4
4
|
const lodash_1 = require("lodash");
|
5
5
|
const zod_1 = require("zod");
|
6
6
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
7
|
+
const awell_1 = require("../../../../../../src/lib/awell");
|
7
8
|
exports.fields = {
|
8
9
|
to: {
|
9
10
|
id: 'to',
|
@@ -40,7 +41,7 @@ exports.fields = {
|
|
40
41
|
},
|
41
42
|
};
|
42
43
|
exports.FieldsValidationSchema = zod_1.z.object({
|
43
|
-
to:
|
44
|
+
to: (0, awell_1.getEmailValidation)(),
|
44
45
|
subject: zod_1.z.string(),
|
45
46
|
template: zod_1.z.string(),
|
46
47
|
variables: zod_1.z
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,6BAAwC;AACxC,mEAAiF;
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,6BAAwC;AACxC,mEAAiF;AACjF,2DAAoE;AAEvD,QAAA,MAAM,GAAG;IACpB,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB;;;WAGG;QACH,gCAAgC;QAChC,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,UAAU;QACjB,WAAW,EACT,iEAAiE;QACnE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,KAAK;KAChB;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAG,IAAA,0BAAkB,GAAE;IACzB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,OAAC;SACT,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACpB,SAAS,CAAC,CAAC,GAAG,EAAE,GAAG,EAAoC,EAAE;QACxD,IAAI,IAAA,cAAK,EAAC,GAAG,CAAC;YAAE,OAAO,EAAE,CAAA;QAEzB,IAAI;YACF,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;SACvB;QAAC,OAAO,CAAC,EAAE;YACV,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAA;YACzD,OAAO,OAAC,CAAC,KAAK,CAAA;SACf;IACH,CAAC,CAAC;CAC6C,CAAC,CAAA;AAE7C,MAAM,oBAAoB,GAAG,CAClC,MAAe,EACyB,EAAE;IAC1C,MAAM,UAAU,GAAG,8BAAsB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAEvD,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AANY,QAAA,oBAAoB,wBAMhC"}
|
@@ -25,13 +25,13 @@ export declare const settings: {
|
|
25
25
|
export declare const SettingsValidationSchema: z.ZodObject<{
|
26
26
|
apiKey: z.ZodString;
|
27
27
|
fromName: z.ZodOptional<z.ZodString>;
|
28
|
-
fromEmail: z.ZodOptional<z.
|
28
|
+
fromEmail: z.ZodOptional<z.ZodTypeAny>;
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
30
30
|
apiKey: string;
|
31
31
|
fromName?: string | undefined;
|
32
|
-
fromEmail?:
|
32
|
+
fromEmail?: any;
|
33
33
|
}, {
|
34
34
|
apiKey: string;
|
35
35
|
fromName?: string | undefined;
|
36
|
-
fromEmail?:
|
36
|
+
fromEmail?: any;
|
37
37
|
}>;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SettingsValidationSchema = exports.settings = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const awell_1 = require("../../src/lib/awell");
|
5
6
|
exports.settings = {
|
6
7
|
apiKey: {
|
7
8
|
key: 'apiKey',
|
@@ -28,6 +29,6 @@ exports.settings = {
|
|
28
29
|
exports.SettingsValidationSchema = zod_1.z.object({
|
29
30
|
apiKey: zod_1.z.string(),
|
30
31
|
fromName: zod_1.z.string().optional(),
|
31
|
-
fromEmail:
|
32
|
+
fromEmail: (0, awell_1.getEmailValidation)().optional(),
|
32
33
|
});
|
33
34
|
//# sourceMappingURL=settings.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/sendgrid-extension/settings.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/sendgrid-extension/settings.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AAExC,+CAAwD;AAE3C,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,gFAAgF;KACnF;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,WAAW;QAClB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,mDAAmD;KACjE;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,KAAK,EAAE,YAAY;QACnB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,4DAA4D;KAC1E;CACgC,CAAA;AAEtB,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAG,IAAA,0BAAkB,GAAE,CAAC,QAAQ,EAAE;CACQ,CAAC,CAAA"}
|
@@ -42,21 +42,21 @@ interface CustomFields {
|
|
42
42
|
}
|
43
43
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
44
44
|
listIds: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string[], string>, string[], string>;
|
45
|
-
email: z.
|
45
|
+
email: z.ZodTypeAny;
|
46
46
|
firstName: z.ZodString;
|
47
47
|
lastName: z.ZodString;
|
48
48
|
customFields: z.ZodEffects<z.ZodOptional<z.ZodString>, CustomFields, string | undefined>;
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
50
50
|
firstName: string;
|
51
51
|
lastName: string;
|
52
|
-
email: string;
|
53
52
|
customFields: CustomFields;
|
54
53
|
listIds: string[];
|
54
|
+
email?: any;
|
55
55
|
}, {
|
56
56
|
firstName: string;
|
57
57
|
lastName: string;
|
58
|
-
email: string;
|
59
58
|
listIds: string;
|
59
|
+
email?: any;
|
60
60
|
customFields?: string | undefined;
|
61
61
|
}>;
|
62
62
|
export {};
|
@@ -4,6 +4,7 @@ exports.FieldsValidationSchema = exports.fields = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
6
6
|
const lodash_1 = require("lodash");
|
7
|
+
const awell_1 = require("../../../../../../src/lib/awell");
|
7
8
|
exports.fields = {
|
8
9
|
listIds: {
|
9
10
|
id: 'listIds',
|
@@ -53,7 +54,7 @@ exports.FieldsValidationSchema = zod_1.z.object({
|
|
53
54
|
return false;
|
54
55
|
return true;
|
55
56
|
})),
|
56
|
-
email:
|
57
|
+
email: (0, awell_1.getEmailValidation)(),
|
57
58
|
// max 50 chars - API limit
|
58
59
|
firstName: zod_1.z.string().max(50),
|
59
60
|
lastName: zod_1.z.string().max(50),
|