@sprucelabs/spruce-appointment-utils 13.6.34 → 14.0.0
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/addingCapabilities/stores/RemoteRoleCapabilityStore.d.ts +2 -2
- package/build/addingServices/EditTimeBlockTitleCard.vc.js +5 -1
- package/build/esm/addingCapabilities/stores/RemoteRoleCapabilityStore.d.ts +2 -2
- package/build/esm/addingServices/EditTimeBlockTitleCard.vc.js +5 -1
- package/build/esm/viewControllers/AbstractCapabilityCardViewController.js +4 -1
- package/build/viewControllers/AbstractCapabilityCardViewController.js +4 -1
- package/package.json +1 -1
|
@@ -10,8 +10,8 @@ export default class RemoteRoleCapabilityStore {
|
|
|
10
10
|
protected updateCapability(id: any, values: any): Promise<Pick<import("@sprucelabs/schema").SchemaStaticValues<import("@sprucelabs/mercury-types").SpruceSchemas.Appointments.v2021_06_23.UpdateRoleCapabilitySchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<import("@sprucelabs/mercury-types").SpruceSchemas.Appointments.v2021_06_23.UpdateRoleCapabilitySchema>, import("@sprucelabs/schema").StaticSchemaAllValues<import("@sprucelabs/mercury-types").SpruceSchemas.Appointments.v2021_06_23.UpdateRoleCapabilitySchema, false>>, "id" | "timeBlocks" | "serviceId" | "price" | "isEnabled" | "doesOffer">>;
|
|
11
11
|
protected clean(value: any): any;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface RemoteRoleCapabilityOptions {
|
|
14
14
|
client: MercuryClient;
|
|
15
15
|
organizationId: string;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
export {};
|
|
@@ -36,7 +36,11 @@ class EditTimeBlockTitleCardViewController extends heartwood_view_controllers_1.
|
|
|
36
36
|
sections: [
|
|
37
37
|
{
|
|
38
38
|
fields: [
|
|
39
|
-
{
|
|
39
|
+
{
|
|
40
|
+
name: 'title',
|
|
41
|
+
label: 'Title',
|
|
42
|
+
placeholder: 'Duration',
|
|
43
|
+
},
|
|
40
44
|
],
|
|
41
45
|
},
|
|
42
46
|
],
|
|
@@ -10,8 +10,8 @@ export default class RemoteRoleCapabilityStore {
|
|
|
10
10
|
protected updateCapability(id: any, values: any): Promise<Pick<import("@sprucelabs/schema").SchemaStaticValues<import("@sprucelabs/mercury-types").SpruceSchemas.Appointments.v2021_06_23.UpdateRoleCapabilitySchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<import("@sprucelabs/mercury-types").SpruceSchemas.Appointments.v2021_06_23.UpdateRoleCapabilitySchema>, import("@sprucelabs/schema").StaticSchemaAllValues<import("@sprucelabs/mercury-types").SpruceSchemas.Appointments.v2021_06_23.UpdateRoleCapabilitySchema, false>>, "id" | "timeBlocks" | "serviceId" | "price" | "isEnabled" | "doesOffer">>;
|
|
11
11
|
protected clean(value: any): any;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
interface RemoteRoleCapabilityOptions {
|
|
14
14
|
client: MercuryClient;
|
|
15
15
|
organizationId: string;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
export {};
|
|
@@ -34,7 +34,11 @@ class EditTimeBlockTitleCardViewController extends AbstractViewController {
|
|
|
34
34
|
sections: [
|
|
35
35
|
{
|
|
36
36
|
fields: [
|
|
37
|
-
{
|
|
37
|
+
{
|
|
38
|
+
name: 'title',
|
|
39
|
+
label: 'Title',
|
|
40
|
+
placeholder: 'Duration',
|
|
41
|
+
},
|
|
38
42
|
],
|
|
39
43
|
},
|
|
40
44
|
],
|
|
@@ -93,7 +93,10 @@ export default class AbstractCapabilityCardViewController extends AbstractViewCo
|
|
|
93
93
|
onCancel: () => { },
|
|
94
94
|
onSubmit: (price, timeBlocks) => __awaiter(this, void 0, void 0, function* () {
|
|
95
95
|
yield dlgVc.hide();
|
|
96
|
-
yield this.updateCapabilityForService(service, {
|
|
96
|
+
yield this.updateCapabilityForService(service, {
|
|
97
|
+
price,
|
|
98
|
+
timeBlocks,
|
|
99
|
+
});
|
|
97
100
|
}),
|
|
98
101
|
service,
|
|
99
102
|
serviceRoleCapability,
|
|
@@ -83,7 +83,10 @@ class AbstractCapabilityCardViewController extends heartwood_view_controllers_1.
|
|
|
83
83
|
onCancel: () => { },
|
|
84
84
|
onSubmit: async (price, timeBlocks) => {
|
|
85
85
|
await dlgVc.hide();
|
|
86
|
-
await this.updateCapabilityForService(service, {
|
|
86
|
+
await this.updateCapabilityForService(service, {
|
|
87
|
+
price,
|
|
88
|
+
timeBlocks,
|
|
89
|
+
});
|
|
87
90
|
},
|
|
88
91
|
service,
|
|
89
92
|
serviceRoleCapability,
|