@sprucelabs/spruce-appointment-utils 9.4.68 → 9.4.70
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 +1 -1
- package/build/addingServices/DurationCard.vc.d.ts +3 -3
- package/build/addingServices/DurationList.vc.d.ts +2 -2
- package/build/addingServices/EditOverrideDetailsCard.vc.d.ts +4 -4
- package/build/addingServices/EditTimeBlockTitleCard.vc.d.ts +4 -4
- package/build/esm/addingCapabilities/stores/RemoteRoleCapabilityStore.d.ts +1 -1
- package/build/esm/addingServices/DurationCard.vc.d.ts +3 -3
- package/build/esm/addingServices/DurationList.vc.d.ts +2 -2
- package/build/esm/addingServices/EditOverrideDetailsCard.vc.d.ts +4 -4
- package/build/esm/addingServices/EditTimeBlockTitleCard.vc.d.ts +4 -4
- package/build/esm/viewControllers/AbstractCapabilityCardViewController.d.ts +4 -4
- package/build/esm/viewControllers/RoleCapabilitiesCard.vc.d.ts +3 -3
- package/build/viewControllers/AbstractCapabilityCardViewController.d.ts +4 -4
- package/build/viewControllers/RoleCapabilitiesCard.vc.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SpruceSchemas as SpruceSchemasCalendarUtils } from '@sprucelabs/calendar-utils';
|
|
2
2
|
import { AbstractViewController, CardViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
3
3
|
import DurationListViewController from './DurationList.vc';
|
|
4
|
-
export
|
|
4
|
+
export type EventTimeBlock = Omit<SpruceSchemasCalendarUtils.CalendarUtils.v2021_05_19.EventTimeBlock, 'durationMinutes'> & {
|
|
5
5
|
durationMinutes?: number;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
export
|
|
7
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
8
|
+
export type DurationCardViewControllerOptions = ViewControllerOptions;
|
|
9
9
|
export default class DurationCardViewController extends AbstractViewController<Card> {
|
|
10
10
|
static id: string;
|
|
11
11
|
protected listVc: DurationListViewController;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AbstractViewController, ListViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import { EventTimeBlock } from './DurationCard.vc';
|
|
3
3
|
import { FormVc } from './EditTimeBlockTitleCard.vc';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type List = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.List;
|
|
5
|
+
export type DurationListViewControllerOptions = ViewControllerOptions;
|
|
6
6
|
export default class DurationListViewController extends AbstractViewController<List> {
|
|
7
7
|
static id: string;
|
|
8
8
|
private listVc;
|
|
@@ -26,14 +26,14 @@ declare const schema: {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
export
|
|
31
|
-
|
|
29
|
+
type Schema = typeof schema;
|
|
30
|
+
export type FormVc = FormViewController<Schema>;
|
|
31
|
+
type SubmitHandler = (price: number | undefined | null, timeBlocks: SpruceSchemas.Appointments.v2021_06_23.CapabilityTimeBlock[] | undefined) => void;
|
|
32
32
|
interface EditOverrideDetailsOptions {
|
|
33
33
|
service?: any;
|
|
34
34
|
serviceRoleCapability?: any;
|
|
35
35
|
onCancel: () => void;
|
|
36
36
|
onSubmit: SubmitHandler;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type EditOverrideDetailsCardViewControllerOptions = ViewControllerOptions & EditOverrideDetailsOptions;
|
|
39
39
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbstractViewController, FormViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
|
|
2
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
3
3
|
declare const schema: {
|
|
4
4
|
id: string;
|
|
5
5
|
fields: {
|
|
@@ -9,14 +9,14 @@ declare const schema: {
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
export
|
|
12
|
+
type Schema = typeof schema;
|
|
13
|
+
export type FormVc = FormViewController<Schema>;
|
|
14
14
|
interface EditTimeBlockOptions {
|
|
15
15
|
title?: string;
|
|
16
16
|
onCancel: () => void;
|
|
17
17
|
onSubmit: (title: string | undefined) => void;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type EditTimeBlockTitleCardViewControllerOptions = ViewControllerOptions & EditTimeBlockOptions;
|
|
20
20
|
export default class EditTimeBlockTitleCardViewController extends AbstractViewController<Card> {
|
|
21
21
|
static id: string;
|
|
22
22
|
private cardVc;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SpruceSchemas as SpruceSchemasCalendarUtils } from '@sprucelabs/calendar-utils';
|
|
2
2
|
import { AbstractViewController, CardViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
3
3
|
import DurationListViewController from './DurationList.vc';
|
|
4
|
-
export
|
|
4
|
+
export type EventTimeBlock = Omit<SpruceSchemasCalendarUtils.CalendarUtils.v2021_05_19.EventTimeBlock, 'durationMinutes'> & {
|
|
5
5
|
durationMinutes?: number;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
export
|
|
7
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
8
|
+
export type DurationCardViewControllerOptions = ViewControllerOptions;
|
|
9
9
|
export default class DurationCardViewController extends AbstractViewController<Card> {
|
|
10
10
|
static id: string;
|
|
11
11
|
protected listVc: DurationListViewController;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AbstractViewController, ListViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import { EventTimeBlock } from './DurationCard.vc';
|
|
3
3
|
import { FormVc } from './EditTimeBlockTitleCard.vc';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type List = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.List;
|
|
5
|
+
export type DurationListViewControllerOptions = ViewControllerOptions;
|
|
6
6
|
export default class DurationListViewController extends AbstractViewController<List> {
|
|
7
7
|
static id: string;
|
|
8
8
|
private listVc;
|
|
@@ -26,14 +26,14 @@ declare const schema: {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
export
|
|
31
|
-
|
|
29
|
+
type Schema = typeof schema;
|
|
30
|
+
export type FormVc = FormViewController<Schema>;
|
|
31
|
+
type SubmitHandler = (price: number | undefined | null, timeBlocks: SpruceSchemas.Appointments.v2021_06_23.CapabilityTimeBlock[] | undefined) => void;
|
|
32
32
|
interface EditOverrideDetailsOptions {
|
|
33
33
|
service?: any;
|
|
34
34
|
serviceRoleCapability?: any;
|
|
35
35
|
onCancel: () => void;
|
|
36
36
|
onSubmit: SubmitHandler;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type EditOverrideDetailsCardViewControllerOptions = ViewControllerOptions & EditOverrideDetailsOptions;
|
|
39
39
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbstractViewController, FormViewController, SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
|
-
|
|
2
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
3
3
|
declare const schema: {
|
|
4
4
|
id: string;
|
|
5
5
|
fields: {
|
|
@@ -9,14 +9,14 @@ declare const schema: {
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
export
|
|
12
|
+
type Schema = typeof schema;
|
|
13
|
+
export type FormVc = FormViewController<Schema>;
|
|
14
14
|
interface EditTimeBlockOptions {
|
|
15
15
|
title?: string;
|
|
16
16
|
onCancel: () => void;
|
|
17
17
|
onSubmit: (title: string | undefined) => void;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type EditTimeBlockTitleCardViewControllerOptions = ViewControllerOptions & EditTimeBlockOptions;
|
|
20
20
|
export default class EditTimeBlockTitleCardViewController extends AbstractViewController<Card> {
|
|
21
21
|
static id: string;
|
|
22
22
|
private cardVc;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AbstractViewController, ActiveRecordCardViewController, SpruceSchemas } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import EditOverrideDetailsCardViewController from '../addingServices/EditOverrideDetailsCard.vc';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
4
|
+
type ToggleDoesOfferHandler = (serviceId: string, isSelected: boolean) => void;
|
|
5
|
+
type Service = SpruceSchemas.Appointments.v2021_06_23.ListService;
|
|
6
|
+
type Capability = SpruceSchemas.Appointments.v2021_06_23.ListRoleCapability;
|
|
7
7
|
export default abstract class AbstractCapabilityCardViewController extends AbstractViewController<Card> {
|
|
8
8
|
protected activeRecordCardVc: ActiveRecordCardViewController;
|
|
9
9
|
protected toggleDoesOfferHandler?: ToggleDoesOfferHandler;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import AbstractCapabilityCardViewController from './AbstractCapabilityCardViewController';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
3
|
+
type Role = SpruceSchemas.Spruce.v2020_07_22.Role;
|
|
4
|
+
type ToggleHandler = (serviceId: string, isSelected: boolean) => void;
|
|
5
|
+
export type RolesCardViewControllerOptions = ViewControllerOptions & {
|
|
6
6
|
role: Role;
|
|
7
7
|
onInsertOrUpdateCapability: (values: any) => void;
|
|
8
8
|
onUpdateHasCapability?: ToggleHandler;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AbstractViewController, ActiveRecordCardViewController, SpruceSchemas } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import EditOverrideDetailsCardViewController from '../addingServices/EditOverrideDetailsCard.vc';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
4
|
+
type ToggleDoesOfferHandler = (serviceId: string, isSelected: boolean) => void;
|
|
5
|
+
type Service = SpruceSchemas.Appointments.v2021_06_23.ListService;
|
|
6
|
+
type Capability = SpruceSchemas.Appointments.v2021_06_23.ListRoleCapability;
|
|
7
7
|
export default abstract class AbstractCapabilityCardViewController extends AbstractViewController<Card> {
|
|
8
8
|
protected activeRecordCardVc: ActiveRecordCardViewController;
|
|
9
9
|
protected toggleDoesOfferHandler?: ToggleDoesOfferHandler;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas, ViewControllerOptions } from '@sprucelabs/heartwood-view-controllers';
|
|
2
2
|
import AbstractCapabilityCardViewController from './AbstractCapabilityCardViewController';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
3
|
+
type Role = SpruceSchemas.Spruce.v2020_07_22.Role;
|
|
4
|
+
type ToggleHandler = (serviceId: string, isSelected: boolean) => void;
|
|
5
|
+
export type RolesCardViewControllerOptions = ViewControllerOptions & {
|
|
6
6
|
role: Role;
|
|
7
7
|
onInsertOrUpdateCapability: (values: any) => void;
|
|
8
8
|
onUpdateHasCapability?: ToggleHandler;
|