@sprucelabs/spruce-appointment-utils 7.7.26 → 7.7.29
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/build/esm/viewControllers/EditOverrideDetailsCard.vc.d.ts +2 -2
- package/build/esm/viewControllers/EditOverrideDetailsCard.vc.js +2 -2
- package/build/viewControllers/EditOverrideDetailsCard.vc.d.ts +2 -2
- package/build/viewControllers/EditOverrideDetailsCard.vc.js +2 -2
- package/package.json +1 -1
|
@@ -5,14 +5,14 @@ declare const schema: {
|
|
|
5
5
|
id: string;
|
|
6
6
|
fields: {
|
|
7
7
|
price: {
|
|
8
|
-
type: "
|
|
8
|
+
type: "number";
|
|
9
9
|
label: string;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
declare type Schema = typeof schema;
|
|
14
14
|
export declare type FormVc = FormViewController<Schema>;
|
|
15
|
-
declare type SubmitHandler = (price: number | undefined, timeBlocks: SpruceSchemas.Appointments.v2021_06_23.CapabilityTimeBlock[] | undefined) => void;
|
|
15
|
+
declare type SubmitHandler = (price: number | undefined | null, timeBlocks: SpruceSchemas.Appointments.v2021_06_23.CapabilityTimeBlock[] | undefined) => void;
|
|
16
16
|
interface EditOverrideDetailsOptions {
|
|
17
17
|
service?: any;
|
|
18
18
|
serviceRoleCapability?: any;
|
|
@@ -13,7 +13,7 @@ const schema = buildSchema({
|
|
|
13
13
|
id: 'priceSchema',
|
|
14
14
|
fields: {
|
|
15
15
|
price: {
|
|
16
|
-
type: '
|
|
16
|
+
type: 'number',
|
|
17
17
|
label: 'Price',
|
|
18
18
|
},
|
|
19
19
|
},
|
|
@@ -40,7 +40,7 @@ export default class EditOverrideDetailsCardViewController extends AbstractViewC
|
|
|
40
40
|
schema,
|
|
41
41
|
shouldShowCancelButton: false,
|
|
42
42
|
onSubmit: ({ values }) => {
|
|
43
|
-
this.submitHandler(values.price
|
|
43
|
+
this.submitHandler(values.price, this.getDurationVc().getTimeBlocks());
|
|
44
44
|
},
|
|
45
45
|
onCancel: () => {
|
|
46
46
|
this.cancelHandler();
|
|
@@ -5,14 +5,14 @@ declare const schema: {
|
|
|
5
5
|
id: string;
|
|
6
6
|
fields: {
|
|
7
7
|
price: {
|
|
8
|
-
type: "
|
|
8
|
+
type: "number";
|
|
9
9
|
label: string;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
declare type Schema = typeof schema;
|
|
14
14
|
export declare type FormVc = FormViewController<Schema>;
|
|
15
|
-
declare type SubmitHandler = (price: number | undefined, timeBlocks: SpruceSchemas.Appointments.v2021_06_23.CapabilityTimeBlock[] | undefined) => void;
|
|
15
|
+
declare type SubmitHandler = (price: number | undefined | null, timeBlocks: SpruceSchemas.Appointments.v2021_06_23.CapabilityTimeBlock[] | undefined) => void;
|
|
16
16
|
interface EditOverrideDetailsOptions {
|
|
17
17
|
service?: any;
|
|
18
18
|
serviceRoleCapability?: any;
|
|
@@ -6,7 +6,7 @@ const schema = (0, schema_1.buildSchema)({
|
|
|
6
6
|
id: 'priceSchema',
|
|
7
7
|
fields: {
|
|
8
8
|
price: {
|
|
9
|
-
type: '
|
|
9
|
+
type: 'number',
|
|
10
10
|
label: 'Price',
|
|
11
11
|
},
|
|
12
12
|
},
|
|
@@ -33,7 +33,7 @@ class EditOverrideDetailsCardViewController extends heartwood_view_controllers_1
|
|
|
33
33
|
schema,
|
|
34
34
|
shouldShowCancelButton: false,
|
|
35
35
|
onSubmit: ({ values }) => {
|
|
36
|
-
this.submitHandler(values.price
|
|
36
|
+
this.submitHandler(values.price, this.getDurationVc().getTimeBlocks());
|
|
37
37
|
},
|
|
38
38
|
onCancel: () => {
|
|
39
39
|
this.cancelHandler();
|