@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.
@@ -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.ZodPipeline<z.ZodString, z.ZodEnum<["payment", "setup", "subscription"]>>;
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: string;
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;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;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,WAAW,EAAE;SACb,IAAI,CAAC,aAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;IACrD,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC0B,CAAC,CAAA"}
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.239",
3
+ "version": "2.0.240",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {