@sprucelabs/spruce-appointment-utils 14.0.49 → 14.0.51

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.
@@ -18,12 +18,12 @@ export default class DurationCardViewController extends AbstractViewController<C
18
18
  private ListVc;
19
19
  payAttentionToMe(): void;
20
20
  getTimeBlocks(): {
21
- title?: string | null | undefined;
21
+ title?: string | undefined | null;
22
22
  isBusy: boolean;
23
- subtitle?: string | null | undefined;
24
- rightIcons?: SpruceSchemasCalendarUtils.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | null | undefined;
25
- leftIcons?: SpruceSchemasCalendarUtils.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | null | undefined;
26
- durationMinutes?: number | undefined;
23
+ subtitle?: string | undefined | null;
24
+ rightIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
25
+ leftIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
26
+ durationMinutes?: number;
27
27
  id: string;
28
28
  }[];
29
29
  getDurationListVc(): DurationListViewController;
@@ -17,12 +17,12 @@ export default class DurationListViewController extends AbstractViewController<L
17
17
  private addRow;
18
18
  getListVc(): ListViewController;
19
19
  getTimeBlocks(): {
20
- title?: string | null | undefined;
20
+ title?: string | undefined | null;
21
21
  isBusy: boolean;
22
- subtitle?: string | null | undefined;
23
- rightIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | null | undefined;
24
- leftIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | null | undefined;
25
- durationMinutes?: number | undefined;
22
+ subtitle?: string | undefined | null;
23
+ rightIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
24
+ leftIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
25
+ durationMinutes?: number;
26
26
  id: string;
27
27
  }[];
28
28
  private buildRow;
@@ -18,12 +18,12 @@ export default class DurationCardViewController extends AbstractViewController<C
18
18
  private ListVc;
19
19
  payAttentionToMe(): void;
20
20
  getTimeBlocks(): {
21
- title?: string | null | undefined;
21
+ title?: string | undefined | null;
22
22
  isBusy: boolean;
23
- subtitle?: string | null | undefined;
24
- rightIcons?: SpruceSchemasCalendarUtils.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | null | undefined;
25
- leftIcons?: SpruceSchemasCalendarUtils.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | null | undefined;
26
- durationMinutes?: number | undefined;
23
+ subtitle?: string | undefined | null;
24
+ rightIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
25
+ leftIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
26
+ durationMinutes?: number;
27
27
  id: string;
28
28
  }[];
29
29
  getDurationListVc(): DurationListViewController;
@@ -17,12 +17,12 @@ export default class DurationListViewController extends AbstractViewController<L
17
17
  private addRow;
18
18
  getListVc(): ListViewController;
19
19
  getTimeBlocks(): {
20
- title?: string | null | undefined;
20
+ title?: string | undefined | null;
21
21
  isBusy: boolean;
22
- subtitle?: string | null | undefined;
23
- rightIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | null | undefined;
24
- leftIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | null | undefined;
25
- durationMinutes?: number | undefined;
22
+ subtitle?: string | undefined | null;
23
+ rightIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
24
+ leftIcons?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
25
+ durationMinutes?: number;
26
26
  id: string;
27
27
  }[];
28
28
  private buildRow;
@@ -156,7 +156,7 @@ export default class AbstractCapabilityCardViewController extends AbstractViewCo
156
156
  .reduce(function (a, b) {
157
157
  return a + b;
158
158
  });
159
- const r = durationUtil.msToFriendly(duration * 60000);
159
+ const r = durationUtil.renderDuration(duration * 60000);
160
160
  return r;
161
161
  }
162
162
  getCardVc() {
@@ -137,7 +137,7 @@ class AbstractCapabilityCardViewController extends heartwood_view_controllers_1.
137
137
  .reduce(function (a, b) {
138
138
  return a + b;
139
139
  });
140
- const r = calendar_utils_1.durationUtil.msToFriendly(duration * 60000);
140
+ const r = calendar_utils_1.durationUtil.renderDuration(duration * 60000);
141
141
  return r;
142
142
  }
143
143
  getCardVc() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-appointment-utils",
3
3
  "description": "Utils for working with appointments and Sprucebot.",
4
- "version": "14.0.49",
4
+ "version": "14.0.51",
5
5
  "skill": {
6
6
  "namespace": "appointments"
7
7
  },