@awell-health/awell-extensions 2.0.239 → 2.0.240
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/extensions/stripe/actions/embeddedCheckout/config/fields.d.ts +8 -2
- package/dist/extensions/stripe/actions/embeddedCheckout/config/fields.js +17 -5
- package/dist/extensions/stripe/actions/embeddedCheckout/config/fields.js.map +1 -1
- package/dist/extensions/stripe/actions/index.d.ts +6 -0
- package/package.json +1 -1
@@ -7,6 +7,12 @@ export declare const fields: {
|
|
7
7
|
description: string;
|
8
8
|
type: FieldType.STRING;
|
9
9
|
required: true;
|
10
|
+
options: {
|
11
|
+
dropdownOptions: {
|
12
|
+
label: string;
|
13
|
+
value: string;
|
14
|
+
}[];
|
15
|
+
};
|
10
16
|
};
|
11
17
|
item: {
|
12
18
|
id: string;
|
@@ -17,12 +23,12 @@ export declare const fields: {
|
|
17
23
|
};
|
18
24
|
};
|
19
25
|
export declare const FieldsValidationSchema: z.ZodObject<{
|
20
|
-
mode: z.
|
26
|
+
mode: z.ZodEnum<["payment", "setup", "subscription"]>;
|
21
27
|
item: z.ZodString;
|
22
28
|
}, "strip", z.ZodTypeAny, {
|
23
29
|
mode: "payment" | "subscription" | "setup";
|
24
30
|
item: string;
|
25
31
|
}, {
|
26
|
-
mode:
|
32
|
+
mode: "payment" | "subscription" | "setup";
|
27
33
|
item: string;
|
28
34
|
}>;
|
@@ -13,6 +13,22 @@ exports.fields = {
|
|
13
13
|
description: "The mode of the checkout session which can be 'payment', 'setup', and 'subscription'",
|
14
14
|
type: extensions_core_1.FieldType.STRING,
|
15
15
|
required: true,
|
16
|
+
options: {
|
17
|
+
dropdownOptions: [
|
18
|
+
{
|
19
|
+
label: 'Payment',
|
20
|
+
value: 'payment',
|
21
|
+
},
|
22
|
+
{
|
23
|
+
label: 'Setup',
|
24
|
+
value: 'setup',
|
25
|
+
},
|
26
|
+
{
|
27
|
+
label: 'Subscription',
|
28
|
+
value: 'subscription',
|
29
|
+
},
|
30
|
+
],
|
31
|
+
},
|
16
32
|
},
|
17
33
|
item: {
|
18
34
|
id: 'item',
|
@@ -23,11 +39,7 @@ exports.fields = {
|
|
23
39
|
},
|
24
40
|
};
|
25
41
|
exports.FieldsValidationSchema = zod_1.default.object({
|
26
|
-
mode: zod_1.default
|
27
|
-
.string()
|
28
|
-
.min(1)
|
29
|
-
.toLowerCase()
|
30
|
-
.pipe(zod_1.default.enum(['payment', 'setup', 'subscription'])),
|
42
|
+
mode: zod_1.default.enum(['payment', 'setup', 'subscription']),
|
31
43
|
item: zod_1.default.string().min(1),
|
32
44
|
});
|
33
45
|
//# sourceMappingURL=fields.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/stripe/actions/embeddedCheckout/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAqE;AACrE,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EACT,sFAAsF;QACxF,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/stripe/actions/embeddedCheckout/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAqE;AACrE,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EACT,sFAAsF;QACxF,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,eAAe,EAAE;gBACf;oBACE,KAAK,EAAE,SAAS;oBAChB,KAAK,EAAE,SAAS;iBACjB;gBACD;oBACE,KAAK,EAAE,OAAO;oBACd,KAAK,EAAE,OAAO;iBACf;gBACD;oBACE,KAAK,EAAE,cAAc;oBACrB,KAAK,EAAE,cAAc;iBACtB;aACF;SACF;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,0DAA0D;QACvE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;IAClD,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC0B,CAAC,CAAA"}
|
@@ -124,6 +124,12 @@ declare const actions: {
|
|
124
124
|
description: string;
|
125
125
|
type: import("@awell-health/extensions-core").FieldType.STRING;
|
126
126
|
required: true;
|
127
|
+
options: {
|
128
|
+
dropdownOptions: {
|
129
|
+
label: string;
|
130
|
+
value: string;
|
131
|
+
}[];
|
132
|
+
};
|
127
133
|
};
|
128
134
|
item: {
|
129
135
|
id: string;
|