@sprucelabs/calendar-utils 39.0.291 → 40.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.
Files changed (59) hide show
  1. package/build/.spruce/errors/calendarUtils/invalidTimezoneName.schema.js +3 -3
  2. package/build/.spruce/errors/errors.types.d.ts +2 -2
  3. package/build/.spruce/errors/errors.types.js +0 -2
  4. package/build/.spruce/errors/options.types.d.ts +2 -2
  5. package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEvent.schema.js +121 -59
  6. package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventLineIcon.schema.js +175 -5
  7. package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventTarget.schema.js +11 -11
  8. package/build/.spruce/schemas/calendarUtils/v2021_05_19/eventExclusionDate.schema.js +7 -7
  9. package/build/.spruce/schemas/calendarUtils/v2021_05_19/eventTimeBlock.schema.js +13 -13
  10. package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
  11. package/build/.spruce/schemas/schemas.types.d.ts +840 -648
  12. package/build/.spruce/schemas/schemas.types.js +0 -2
  13. package/build/errors/SpruceError.d.ts +1 -1
  14. package/build/errors/SpruceError.js +1 -1
  15. package/build/esm/.spruce/errors/errors.types.d.ts +2 -2
  16. package/build/esm/.spruce/errors/errors.types.js +0 -2
  17. package/build/esm/.spruce/errors/options.types.d.ts +2 -2
  18. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEvent.schema.js +121 -59
  19. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventLineIcon.schema.js +175 -5
  20. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventTarget.schema.js +11 -11
  21. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/eventExclusionDate.schema.js +7 -7
  22. package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/eventTimeBlock.schema.js +13 -13
  23. package/build/esm/.spruce/schemas/schemas.types.d.ts +840 -648
  24. package/build/esm/.spruce/schemas/schemas.types.js +0 -2
  25. package/build/esm/constants.d.ts +2 -2
  26. package/build/esm/errors/SpruceError.d.ts +1 -1
  27. package/build/esm/index.d.ts +1 -1
  28. package/build/esm/locales/Locale.js +1 -1
  29. package/build/esm/parsing/strategies/DowParser.js +3 -2
  30. package/build/esm/schemas/v2021_05_19/calendarEvent.builder.d.ts +8 -8
  31. package/build/esm/types/calendar.types.d.ts +3 -3
  32. package/build/esm/utilities/PeopleSorter.d.ts +2 -2
  33. package/build/esm/utilities/PeopleSorter.js +3 -1
  34. package/build/esm/utilities/calendar.utility.d.ts +3 -3
  35. package/build/esm/utilities/date.utility.js +1 -1
  36. package/build/esm/utilities/duration.utility.d.ts +3 -1
  37. package/build/esm/utilities/duration.utility.js +3 -2
  38. package/build/index.d.ts +1 -1
  39. package/build/locales/DateUtilDecorator.js +25 -12
  40. package/build/locales/Locale.js +7 -5
  41. package/build/locales/TimezoneChoiceSorter.js +1 -0
  42. package/build/parsing/AbstractParser.js +2 -0
  43. package/build/parsing/DateParser.js +8 -2
  44. package/build/parsing/ParserFactory.js +9 -7
  45. package/build/parsing/strategies/DowParser.js +4 -4
  46. package/build/parsing/strategies/TimeParser.js +3 -4
  47. package/build/parsing/strategies/WeekParser.js +1 -2
  48. package/build/schemas/v2021_05_19/calendarEvent.builder.js +5 -2
  49. package/build/types/calendar.types.d.ts +3 -3
  50. package/build/utilities/PeopleSorter.d.ts +2 -2
  51. package/build/utilities/PeopleSorter.js +9 -9
  52. package/build/utilities/RepeatingRuleTextGenerator.js +17 -16
  53. package/build/utilities/calendar.utility.js +10 -6
  54. package/build/utilities/date.utility.js +2 -3
  55. package/build/utilities/duration.utility.d.ts +3 -1
  56. package/build/utilities/duration.utility.js +4 -3
  57. package/build/utilities/sortTimezoneChoices.js +5 -3
  58. package/package.json +21 -22
  59. package/tsconfig.json +3 -4
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/no-namespace */
3
- /* eslint-disable no-redeclare */
4
2
  Object.defineProperty(exports, "__esModule", { value: true });
5
3
  require("@sprucelabs/spruce-event-utils");
@@ -1,5 +1,5 @@
1
1
  import BaseSpruceError from '@sprucelabs/error';
2
- import ErrorOptions from "./../.spruce/errors/options.types";
2
+ import ErrorOptions from './../.spruce/errors/options.types';
3
3
  export default class SpruceError extends BaseSpruceError<ErrorOptions> {
4
4
  /** An easy to understand version of the errors */
5
5
  friendlyMessage(): string;
@@ -9,7 +9,7 @@ class SpruceError extends error_1.default {
9
9
  friendlyMessage() {
10
10
  const { options } = this;
11
11
  let message;
12
- switch (options === null || options === void 0 ? void 0 : options.code) {
12
+ switch (options?.code) {
13
13
  case 'INVALID_TIMEZONE_NAME':
14
14
  message = `Invalid timezone: ${options.name}!`;
15
15
  break;
@@ -2,7 +2,7 @@ import { default as SchemaEntity } from '@sprucelabs/schema';
2
2
  import * as SpruceSchema from '@sprucelabs/schema';
3
3
  export declare namespace SpruceErrors.CalendarUtils {
4
4
  interface InvalidTimezoneName {
5
- 'name': string;
5
+ name: string;
6
6
  }
7
7
  interface InvalidTimezoneNameSchema extends SpruceSchema.Schema {
8
8
  id: 'invalidTimezoneName';
@@ -11,7 +11,7 @@ export declare namespace SpruceErrors.CalendarUtils {
11
11
  moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
12
12
  fields: {
13
13
  /** . */
14
- 'name': {
14
+ name: {
15
15
  type: 'text';
16
16
  isRequired: true;
17
17
  options: undefined;
@@ -1,3 +1 @@
1
- /* eslint-disable @typescript-eslint/no-namespace */
2
- /* eslint-disable no-redeclare */
3
1
  export {};
@@ -1,5 +1,5 @@
1
- import { SpruceErrors } from "./errors.types";
2
- import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
1
+ import { ErrorOptions as ISpruceErrorOptions } from '@sprucelabs/error';
2
+ import { SpruceErrors } from './errors.types';
3
3
  export interface InvalidTimezoneNameErrorOptions extends SpruceErrors.CalendarUtils.InvalidTimezoneName, ISpruceErrorOptions {
4
4
  code: 'INVALID_TIMEZONE_NAME';
5
5
  }
@@ -1,8 +1,8 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema';
2
- import eventSourceSchema_v2021_09_13 from './../../spruceEventUtils/v2021_09_13/eventSource.schema.js';
3
2
  import calendarEventTargetSchema_v2021_05_19 from './calendarEventTarget.schema.js';
4
- import eventTimeBlockSchema_v2021_05_19 from './eventTimeBlock.schema.js';
5
3
  import eventExclusionDateSchema_v2021_05_19 from './eventExclusionDate.schema.js';
4
+ import eventTimeBlockSchema_v2021_05_19 from './eventTimeBlock.schema.js';
5
+ import eventSourceSchema_v2021_09_13 from './../../spruceEventUtils/v2021_09_13/eventSource.schema.js';
6
6
  const calendarEventSchema = {
7
7
  id: 'calendarEvent',
8
8
  version: 'v2021_05_19',
@@ -11,144 +11,206 @@ const calendarEventSchema = {
11
11
  moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils',
12
12
  fields: {
13
13
  /** . */
14
- 'id': {
14
+ id: {
15
15
  type: 'id',
16
16
  isRequired: true,
17
- options: undefined
17
+ options: undefined,
18
18
  },
19
19
  /** . */
20
- 'source': {
20
+ source: {
21
21
  type: 'schema',
22
22
  isRequired: true,
23
- options: { schema: eventSourceSchema_v2021_09_13, }
23
+ options: { schema: eventSourceSchema_v2021_09_13 },
24
24
  },
25
25
  /** . */
26
- 'target': {
26
+ target: {
27
27
  type: 'schema',
28
28
  isRequired: true,
29
- options: { schema: calendarEventTargetSchema_v2021_05_19, }
29
+ options: { schema: calendarEventTargetSchema_v2021_05_19 },
30
30
  },
31
31
  /** . */
32
- 'calendarId': {
32
+ calendarId: {
33
33
  type: 'id',
34
34
  isRequired: true,
35
- options: undefined
35
+ options: undefined,
36
36
  },
37
37
  /** . */
38
- 'eventTypeSlug': {
38
+ eventTypeSlug: {
39
39
  type: 'text',
40
- options: undefined
40
+ options: undefined,
41
41
  },
42
42
  /** . */
43
- 'startDateTimeMs': {
43
+ startDateTimeMs: {
44
44
  type: 'dateTime',
45
45
  isRequired: true,
46
- options: undefined
46
+ options: undefined,
47
47
  },
48
48
  /** . */
49
- 'isBusy': {
49
+ isBusy: {
50
50
  type: 'boolean',
51
- options: undefined
51
+ options: undefined,
52
52
  },
53
53
  /** . */
54
- 'isResizeable': {
54
+ isResizeable: {
55
55
  type: 'boolean',
56
- options: undefined
56
+ options: undefined,
57
57
  },
58
58
  /** . */
59
- 'style': {
59
+ style: {
60
60
  type: 'select',
61
- options: { choices: [{ "value": "draft", "label": "Draft" }, { "value": "tentative", "label": "Tentative" }, { "value": "upcoming", "label": "Upcoming" }, { "value": "unavailable", "label": "Unavailable" }, { "value": "blocked", "label": "Blocked" }, { "value": "active", "label": "Active" }, { "value": "past", "label": "Past" }, { "value": "warn", "label": "Warning" }, { "value": "critical", "label": "Critical" }], }
62
- },
63
- /** . */
64
- 'groupId': {
61
+ options: {
62
+ choices: [
63
+ { value: 'draft', label: 'Draft' },
64
+ { value: 'tentative', label: 'Tentative' },
65
+ { value: 'upcoming', label: 'Upcoming' },
66
+ { value: 'unavailable', label: 'Unavailable' },
67
+ { value: 'blocked', label: 'Blocked' },
68
+ { value: 'active', label: 'Active' },
69
+ { value: 'past', label: 'Past' },
70
+ { value: 'warn', label: 'Warning' },
71
+ { value: 'critical', label: 'Critical' },
72
+ ],
73
+ },
74
+ },
75
+ /** . */
76
+ groupId: {
65
77
  type: 'id',
66
- options: undefined
78
+ options: undefined,
67
79
  },
68
80
  /** . */
69
- 'timeBlocks': {
81
+ timeBlocks: {
70
82
  type: 'schema',
71
83
  isRequired: true,
72
84
  isArray: true,
73
85
  minArrayLength: 1,
74
- options: { schema: eventTimeBlockSchema_v2021_05_19, }
86
+ options: { schema: eventTimeBlockSchema_v2021_05_19 },
75
87
  },
76
88
  /** . */
77
- 'repeats': {
89
+ repeats: {
78
90
  type: 'select',
79
- options: { choices: [{ "value": "weekly", "label": "Weekly" }, { "value": "monthly", "label": "Monthly" }, { "value": "daily", "label": "Daily" }], }
91
+ options: {
92
+ choices: [
93
+ { value: 'weekly', label: 'Weekly' },
94
+ { value: 'monthly', label: 'Monthly' },
95
+ { value: 'daily', label: 'Daily' },
96
+ ],
97
+ },
80
98
  },
81
99
  /** . */
82
- 'daysOfWeek': {
100
+ daysOfWeek: {
83
101
  type: 'select',
84
102
  isArray: true,
85
- options: { choices: [{ "value": "sun", "label": "Sunday" }, { "value": "mon", "label": "Monday" }, { "value": "tue", "label": "Tuesday" }, { "value": "wed", "label": "Wednesday" }, { "value": "thur", "label": "Thursday" }, { "value": "fri", "label": "Friday" }, { "value": "sat", "label": "Saturday" }], }
86
- },
87
- /** . */
88
- 'daysOfMonth': {
103
+ options: {
104
+ choices: [
105
+ { value: 'sun', label: 'Sunday' },
106
+ { value: 'mon', label: 'Monday' },
107
+ { value: 'tue', label: 'Tuesday' },
108
+ { value: 'wed', label: 'Wednesday' },
109
+ { value: 'thur', label: 'Thursday' },
110
+ { value: 'fri', label: 'Friday' },
111
+ { value: 'sat', label: 'Saturday' },
112
+ ],
113
+ },
114
+ },
115
+ /** . */
116
+ daysOfMonth: {
89
117
  type: 'select',
90
118
  isArray: true,
91
- options: { choices: [{ "value": "1", "label": "1" }, { "value": "2", "label": "2" }, { "value": "3", "label": "3" }, { "value": "4", "label": "4" }, { "value": "5", "label": "5" }, { "value": "6", "label": "6" }, { "value": "7", "label": "7" }, { "value": "8", "label": "8" }, { "value": "9", "label": "9" }, { "value": "10", "label": "10" }, { "value": "11", "label": "11" }, { "value": "12", "label": "12" }, { "value": "13", "label": "13" }, { "value": "14", "label": "14" }, { "value": "15", "label": "15" }, { "value": "16", "label": "16" }, { "value": "17", "label": "17" }, { "value": "18", "label": "18" }, { "value": "19", "label": "19" }, { "value": "20", "label": "20" }, { "value": "21", "label": "21" }, { "value": "22", "label": "22" }, { "value": "23", "label": "23" }, { "value": "24", "label": "24" }, { "value": "25", "label": "25" }, { "value": "26", "label": "26" }, { "value": "27", "label": "27" }, { "value": "28", "label": "28" }, { "value": "29", "label": "29" }, { "value": "30", "label": "30" }, { "value": "31", "label": "31" }], }
92
- },
93
- /** . */
94
- 'repeatsUntil': {
119
+ options: {
120
+ choices: [
121
+ { value: '1', label: '1' },
122
+ { value: '2', label: '2' },
123
+ { value: '3', label: '3' },
124
+ { value: '4', label: '4' },
125
+ { value: '5', label: '5' },
126
+ { value: '6', label: '6' },
127
+ { value: '7', label: '7' },
128
+ { value: '8', label: '8' },
129
+ { value: '9', label: '9' },
130
+ { value: '10', label: '10' },
131
+ { value: '11', label: '11' },
132
+ { value: '12', label: '12' },
133
+ { value: '13', label: '13' },
134
+ { value: '14', label: '14' },
135
+ { value: '15', label: '15' },
136
+ { value: '16', label: '16' },
137
+ { value: '17', label: '17' },
138
+ { value: '18', label: '18' },
139
+ { value: '19', label: '19' },
140
+ { value: '20', label: '20' },
141
+ { value: '21', label: '21' },
142
+ { value: '22', label: '22' },
143
+ { value: '23', label: '23' },
144
+ { value: '24', label: '24' },
145
+ { value: '25', label: '25' },
146
+ { value: '26', label: '26' },
147
+ { value: '27', label: '27' },
148
+ { value: '28', label: '28' },
149
+ { value: '29', label: '29' },
150
+ { value: '30', label: '30' },
151
+ { value: '31', label: '31' },
152
+ ],
153
+ },
154
+ },
155
+ /** . */
156
+ repeatsUntil: {
95
157
  type: 'dateTime',
96
- options: undefined
158
+ options: undefined,
97
159
  },
98
160
  /** . */
99
- 'occurrences': {
161
+ occurrences: {
100
162
  type: 'number',
101
- options: undefined
163
+ options: undefined,
102
164
  },
103
165
  /** . */
104
- 'interval': {
166
+ interval: {
105
167
  type: 'number',
106
- options: undefined
168
+ options: undefined,
107
169
  },
108
170
  /** . */
109
- 'nthOccurrences': {
171
+ nthOccurrences: {
110
172
  type: 'number',
111
173
  isArray: true,
112
- options: undefined
174
+ options: undefined,
113
175
  },
114
176
  /** . */
115
- 'activeUntilDate': {
177
+ activeUntilDate: {
116
178
  type: 'dateTime',
117
- options: undefined
179
+ options: undefined,
118
180
  },
119
181
  /** . */
120
- 'exclusionDates': {
182
+ exclusionDates: {
121
183
  type: 'schema',
122
184
  isArray: true,
123
- options: { schema: eventExclusionDateSchema_v2021_05_19, }
185
+ options: { schema: eventExclusionDateSchema_v2021_05_19 },
124
186
  },
125
187
  /** . */
126
- 'dateDeleted': {
188
+ dateDeleted: {
127
189
  type: 'dateTime',
128
- options: undefined
190
+ options: undefined,
129
191
  },
130
192
  /** . */
131
- 'dateCreated': {
193
+ dateCreated: {
132
194
  type: 'dateTime',
133
195
  isRequired: true,
134
- options: undefined
196
+ options: undefined,
135
197
  },
136
198
  /** . */
137
- 'nthInRepeating': {
199
+ nthInRepeating: {
138
200
  type: 'number',
139
- options: undefined
201
+ options: undefined,
140
202
  },
141
203
  /** . */
142
- 'totalInRepeating': {
204
+ totalInRepeating: {
143
205
  type: 'number',
144
- options: undefined
206
+ options: undefined,
145
207
  },
146
208
  /** . */
147
- 'meta': {
209
+ meta: {
148
210
  type: 'raw',
149
- options: { valueType: `Record<string, any>`, }
211
+ options: { valueType: `Record<string, any>` },
150
212
  },
151
- }
213
+ },
152
214
  };
153
215
  SchemaRegistry.getInstance().trackSchema(calendarEventSchema);
154
216
  export default calendarEventSchema;
@@ -7,17 +7,187 @@ const calendarEventLineIconSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils',
8
8
  fields: {
9
9
  /** . */
10
- 'icon': {
10
+ icon: {
11
11
  type: 'select',
12
12
  isRequired: true,
13
- options: { choices: [{ "value": "sprucebot", "label": "sprucebot" }, { "value": "add-circle", "label": "add-circle" }, { "value": "chevron-left", "label": "chevron-left" }, { "value": "document-text", "label": "document-text" }, { "value": "link-angle", "label": "link-angle" }, { "value": "play-circle", "label": "play-circle" }, { "value": "star", "label": "star" }, { "value": "add-square", "label": "add-square" }, { "value": "chevron-right", "label": "chevron-right" }, { "value": "download-cloud", "label": "download-cloud" }, { "value": "link-flat", "label": "link-flat" }, { "value": "present", "label": "present" }, { "value": "sun", "label": "sun" }, { "value": "add", "label": "add" }, { "value": "chevron-up", "label": "chevron-up" }, { "value": "download", "label": "download" }, { "value": "loader", "label": "loader" }, { "value": "refresh-circle", "label": "refresh-circle" }, { "value": "tag", "label": "tag" }, { "value": "alarm", "label": "alarm" }, { "value": "clipboard", "label": "clipboard" }, { "value": "edit-box", "label": "edit-box" }, { "value": "location-pin", "label": "location-pin" }, { "value": "refresh", "label": "refresh" }, { "value": "time", "label": "time" }, { "value": "arrow-back", "label": "arrow-back" }, { "value": "clock", "label": "clock" }, { "value": "edit-line", "label": "edit-line" }, { "value": "lock", "label": "lock" }, { "value": "repeat", "label": "repeat" }, { "value": "tool", "label": "tool" }, { "value": "arrow-down-circle", "label": "arrow-down-circle" }, { "value": "close-circle", "label": "close-circle" }, { "value": "email", "label": "email" }, { "value": "map", "label": "map" }, { "value": "restricted", "label": "restricted" }, { "value": "trending-down", "label": "trending-down" }, { "value": "arrow-down", "label": "arrow-down" }, { "value": "close-square", "label": "close-square" }, { "value": "emoji-happy", "label": "emoji-happy" }, { "value": "message-circle", "label": "message-circle" }, { "value": "rotate", "label": "rotate" }, { "value": "trending-up", "label": "trending-up" }, { "value": "arrow-next", "label": "arrow-next" }, { "value": "close", "label": "close" }, { "value": "emoji-sad", "label": "emoji-sad" }, { "value": "message-square", "label": "message-square" }, { "value": "search-no", "label": "search-no" }, { "value": "triangle", "label": "triangle" }, { "value": "arrow-up-circle", "label": "arrow-up-circle" }, { "value": "code", "label": "code" }, { "value": "external-link", "label": "external-link" }, { "value": "mic-off", "label": "mic-off" }, { "value": "search", "label": "search" }, { "value": "unlock", "label": "unlock" }, { "value": "arrow-up", "label": "arrow-up" }, { "value": "coffee", "label": "coffee" }, { "value": "fav-heart", "label": "fav-heart" }, { "value": "mic-on", "label": "mic-on" }, { "value": "selector-checked", "label": "selector-checked" }, { "value": "upload-cloud", "label": "upload-cloud" }, { "value": "attachment", "label": "attachment" }, { "value": "command", "label": "command" }, { "value": "flag", "label": "flag" }, { "value": "minus-circle", "label": "minus-circle" }, { "value": "selector-circle-filled", "label": "selector-circle-filled" }, { "value": "upload", "label": "upload" }, { "value": "award-badge", "label": "award-badge" }, { "value": "corner-down-left", "label": "corner-down-left" }, { "value": "flip-01", "label": "flip-01" }, { "value": "minus-square", "label": "minus-square" }, { "value": "selector-circle", "label": "selector-circle" }, { "value": "user-add", "label": "user-add" }, { "value": "binoculars", "label": "binoculars" }, { "value": "corner-down-right", "label": "corner-down-right" }, { "value": "flip-02", "label": "flip-02" }, { "value": "money-sign", "label": "money-sign" }, { "value": "send", "label": "send" }, { "value": "user-delete", "label": "user-delete" }, { "value": "bolt", "label": "bolt" }, { "value": "corner-left-down", "label": "corner-left-down" }, { "value": "folder", "label": "folder" }, { "value": "more-horizontal", "label": "more-horizontal" }, { "value": "settings-filled", "label": "settings-filled" }, { "value": "user", "label": "user" }, { "value": "book-open", "label": "book-open" }, { "value": "corner-left-up", "label": "corner-left-up" }, { "value": "globe", "label": "globe" }, { "value": "more-vertical", "label": "more-vertical" }, { "value": "settings", "label": "settings" }, { "value": "users", "label": "users" }, { "value": "book", "label": "book" }, { "value": "corner-right-down", "label": "corner-right-down" }, { "value": "hash-tag", "label": "hash-tag" }, { "value": "notification-off", "label": "notification-off" }, { "value": "share", "label": "share" }, { "value": "video-off", "label": "video-off" }, { "value": "bookmark", "label": "bookmark" }, { "value": "corner-right-up", "label": "corner-right-up" }, { "value": "headphones", "label": "headphones" }, { "value": "notification-on", "label": "notification-on" }, { "value": "shopping-bag", "label": "shopping-bag" }, { "value": "video", "label": "video" }, { "value": "calendar-add", "label": "calendar-add" }, { "value": "corner-up-left", "label": "corner-up-left" }, { "value": "help-buoy", "label": "help-buoy" }, { "value": "object", "label": "object" }, { "value": "shopping-cart", "label": "shopping-cart" }, { "value": "warning", "label": "warning" }, { "value": "calendar", "label": "calendar" }, { "value": "corner-up-right", "label": "corner-up-right" }, { "value": "help-circle", "label": "help-circle" }, { "value": "pause-circle", "label": "pause-circle" }, { "value": "sort-filter-down", "label": "sort-filter-down" }, { "value": "wifi", "label": "wifi" }, { "value": "camera", "label": "camera" }, { "value": "crop", "label": "crop" }, { "value": "home", "label": "home" }, { "value": "phone-unavailable", "label": "phone-unavailable" }, { "value": "sort-filter-up", "label": "sort-filter-up" }, { "value": "zoom-in", "label": "zoom-in" }, { "value": "cellphone", "label": "cellphone" }, { "value": "delete", "label": "delete" }, { "value": "info", "label": "info" }, { "value": "phone", "label": "phone" }, { "value": "sound-off", "label": "sound-off" }, { "value": "zoom-out", "label": "zoom-out" }, { "value": "checkmark", "label": "checkmark" }, { "value": "document-blank", "label": "document-blank" }, { "value": "jump", "label": "jump" }, { "value": "photo", "label": "photo" }, { "value": "sound-on", "label": "sound-on" }, { "value": "chevron-down", "label": "chevron-down" }, { "value": "document-new", "label": "document-new" }, { "value": "layers", "label": "layers" }, { "value": "picked", "label": "picked" }, { "value": "star-filled", "label": "star-filled" }], }
13
+ options: {
14
+ choices: [
15
+ { value: 'sprucebot', label: 'sprucebot' },
16
+ { value: 'add-circle', label: 'add-circle' },
17
+ { value: 'chevron-left', label: 'chevron-left' },
18
+ { value: 'document-text', label: 'document-text' },
19
+ { value: 'link-angle', label: 'link-angle' },
20
+ { value: 'play-circle', label: 'play-circle' },
21
+ { value: 'star', label: 'star' },
22
+ { value: 'add-square', label: 'add-square' },
23
+ { value: 'chevron-right', label: 'chevron-right' },
24
+ { value: 'download-cloud', label: 'download-cloud' },
25
+ { value: 'link-flat', label: 'link-flat' },
26
+ { value: 'present', label: 'present' },
27
+ { value: 'sun', label: 'sun' },
28
+ { value: 'add', label: 'add' },
29
+ { value: 'chevron-up', label: 'chevron-up' },
30
+ { value: 'download', label: 'download' },
31
+ { value: 'loader', label: 'loader' },
32
+ { value: 'refresh-circle', label: 'refresh-circle' },
33
+ { value: 'tag', label: 'tag' },
34
+ { value: 'alarm', label: 'alarm' },
35
+ { value: 'clipboard', label: 'clipboard' },
36
+ { value: 'edit-box', label: 'edit-box' },
37
+ { value: 'location-pin', label: 'location-pin' },
38
+ { value: 'refresh', label: 'refresh' },
39
+ { value: 'time', label: 'time' },
40
+ { value: 'arrow-back', label: 'arrow-back' },
41
+ { value: 'clock', label: 'clock' },
42
+ { value: 'edit-line', label: 'edit-line' },
43
+ { value: 'lock', label: 'lock' },
44
+ { value: 'repeat', label: 'repeat' },
45
+ { value: 'tool', label: 'tool' },
46
+ {
47
+ value: 'arrow-down-circle',
48
+ label: 'arrow-down-circle',
49
+ },
50
+ { value: 'close-circle', label: 'close-circle' },
51
+ { value: 'email', label: 'email' },
52
+ { value: 'map', label: 'map' },
53
+ { value: 'restricted', label: 'restricted' },
54
+ { value: 'trending-down', label: 'trending-down' },
55
+ { value: 'arrow-down', label: 'arrow-down' },
56
+ { value: 'close-square', label: 'close-square' },
57
+ { value: 'emoji-happy', label: 'emoji-happy' },
58
+ { value: 'message-circle', label: 'message-circle' },
59
+ { value: 'rotate', label: 'rotate' },
60
+ { value: 'trending-up', label: 'trending-up' },
61
+ { value: 'arrow-next', label: 'arrow-next' },
62
+ { value: 'close', label: 'close' },
63
+ { value: 'emoji-sad', label: 'emoji-sad' },
64
+ { value: 'message-square', label: 'message-square' },
65
+ { value: 'search-no', label: 'search-no' },
66
+ { value: 'triangle', label: 'triangle' },
67
+ { value: 'arrow-up-circle', label: 'arrow-up-circle' },
68
+ { value: 'code', label: 'code' },
69
+ { value: 'external-link', label: 'external-link' },
70
+ { value: 'mic-off', label: 'mic-off' },
71
+ { value: 'search', label: 'search' },
72
+ { value: 'unlock', label: 'unlock' },
73
+ { value: 'arrow-up', label: 'arrow-up' },
74
+ { value: 'coffee', label: 'coffee' },
75
+ { value: 'fav-heart', label: 'fav-heart' },
76
+ { value: 'mic-on', label: 'mic-on' },
77
+ {
78
+ value: 'selector-checked',
79
+ label: 'selector-checked',
80
+ },
81
+ { value: 'upload-cloud', label: 'upload-cloud' },
82
+ { value: 'attachment', label: 'attachment' },
83
+ { value: 'command', label: 'command' },
84
+ { value: 'flag', label: 'flag' },
85
+ { value: 'minus-circle', label: 'minus-circle' },
86
+ {
87
+ value: 'selector-circle-filled',
88
+ label: 'selector-circle-filled',
89
+ },
90
+ { value: 'upload', label: 'upload' },
91
+ { value: 'award-badge', label: 'award-badge' },
92
+ {
93
+ value: 'corner-down-left',
94
+ label: 'corner-down-left',
95
+ },
96
+ { value: 'flip-01', label: 'flip-01' },
97
+ { value: 'minus-square', label: 'minus-square' },
98
+ { value: 'selector-circle', label: 'selector-circle' },
99
+ { value: 'user-add', label: 'user-add' },
100
+ { value: 'binoculars', label: 'binoculars' },
101
+ {
102
+ value: 'corner-down-right',
103
+ label: 'corner-down-right',
104
+ },
105
+ { value: 'flip-02', label: 'flip-02' },
106
+ { value: 'money-sign', label: 'money-sign' },
107
+ { value: 'send', label: 'send' },
108
+ { value: 'user-delete', label: 'user-delete' },
109
+ { value: 'bolt', label: 'bolt' },
110
+ {
111
+ value: 'corner-left-down',
112
+ label: 'corner-left-down',
113
+ },
114
+ { value: 'folder', label: 'folder' },
115
+ { value: 'more-horizontal', label: 'more-horizontal' },
116
+ { value: 'settings-filled', label: 'settings-filled' },
117
+ { value: 'user', label: 'user' },
118
+ { value: 'book-open', label: 'book-open' },
119
+ { value: 'corner-left-up', label: 'corner-left-up' },
120
+ { value: 'globe', label: 'globe' },
121
+ { value: 'more-vertical', label: 'more-vertical' },
122
+ { value: 'settings', label: 'settings' },
123
+ { value: 'users', label: 'users' },
124
+ { value: 'book', label: 'book' },
125
+ {
126
+ value: 'corner-right-down',
127
+ label: 'corner-right-down',
128
+ },
129
+ { value: 'hash-tag', label: 'hash-tag' },
130
+ {
131
+ value: 'notification-off',
132
+ label: 'notification-off',
133
+ },
134
+ { value: 'share', label: 'share' },
135
+ { value: 'video-off', label: 'video-off' },
136
+ { value: 'bookmark', label: 'bookmark' },
137
+ { value: 'corner-right-up', label: 'corner-right-up' },
138
+ { value: 'headphones', label: 'headphones' },
139
+ { value: 'notification-on', label: 'notification-on' },
140
+ { value: 'shopping-bag', label: 'shopping-bag' },
141
+ { value: 'video', label: 'video' },
142
+ { value: 'calendar-add', label: 'calendar-add' },
143
+ { value: 'corner-up-left', label: 'corner-up-left' },
144
+ { value: 'help-buoy', label: 'help-buoy' },
145
+ { value: 'object', label: 'object' },
146
+ { value: 'shopping-cart', label: 'shopping-cart' },
147
+ { value: 'warning', label: 'warning' },
148
+ { value: 'calendar', label: 'calendar' },
149
+ { value: 'corner-up-right', label: 'corner-up-right' },
150
+ { value: 'help-circle', label: 'help-circle' },
151
+ { value: 'pause-circle', label: 'pause-circle' },
152
+ {
153
+ value: 'sort-filter-down',
154
+ label: 'sort-filter-down',
155
+ },
156
+ { value: 'wifi', label: 'wifi' },
157
+ { value: 'camera', label: 'camera' },
158
+ { value: 'crop', label: 'crop' },
159
+ { value: 'home', label: 'home' },
160
+ {
161
+ value: 'phone-unavailable',
162
+ label: 'phone-unavailable',
163
+ },
164
+ { value: 'sort-filter-up', label: 'sort-filter-up' },
165
+ { value: 'zoom-in', label: 'zoom-in' },
166
+ { value: 'cellphone', label: 'cellphone' },
167
+ { value: 'delete', label: 'delete' },
168
+ { value: 'info', label: 'info' },
169
+ { value: 'phone', label: 'phone' },
170
+ { value: 'sound-off', label: 'sound-off' },
171
+ { value: 'zoom-out', label: 'zoom-out' },
172
+ { value: 'checkmark', label: 'checkmark' },
173
+ { value: 'document-blank', label: 'document-blank' },
174
+ { value: 'jump', label: 'jump' },
175
+ { value: 'photo', label: 'photo' },
176
+ { value: 'sound-on', label: 'sound-on' },
177
+ { value: 'chevron-down', label: 'chevron-down' },
178
+ { value: 'document-new', label: 'document-new' },
179
+ { value: 'layers', label: 'layers' },
180
+ { value: 'picked', label: 'picked' },
181
+ { value: 'star-filled', label: 'star-filled' },
182
+ ],
183
+ },
14
184
  },
15
185
  /** . */
16
- 'hint': {
186
+ hint: {
17
187
  type: 'text',
18
- options: undefined
188
+ options: undefined,
19
189
  },
20
- }
190
+ },
21
191
  };
22
192
  SchemaRegistry.getInstance().trackSchema(calendarEventLineIconSchema);
23
193
  export default calendarEventLineIconSchema;
@@ -7,32 +7,32 @@ const calendarEventTargetSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils',
8
8
  fields: {
9
9
  /** . */
10
- 'locationId': {
10
+ locationId: {
11
11
  type: 'id',
12
- options: undefined
12
+ options: undefined,
13
13
  },
14
14
  /** . */
15
- 'personId': {
15
+ personId: {
16
16
  type: 'id',
17
17
  isRequired: true,
18
- options: undefined
18
+ options: undefined,
19
19
  },
20
20
  /** . */
21
- 'organizationId': {
21
+ organizationId: {
22
22
  type: 'id',
23
- options: undefined
23
+ options: undefined,
24
24
  },
25
25
  /** . */
26
- 'skillId': {
26
+ skillId: {
27
27
  type: 'id',
28
- options: undefined
28
+ options: undefined,
29
29
  },
30
30
  /** . */
31
- 'roleId': {
31
+ roleId: {
32
32
  type: 'id',
33
- options: undefined
33
+ options: undefined,
34
34
  },
35
- }
35
+ },
36
36
  };
37
37
  SchemaRegistry.getInstance().trackSchema(calendarEventTargetSchema);
38
38
  export default calendarEventTargetSchema;
@@ -7,24 +7,24 @@ const eventExclusionDateSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils',
8
8
  fields: {
9
9
  /** . */
10
- 'year': {
10
+ year: {
11
11
  type: 'number',
12
12
  isRequired: true,
13
- options: undefined
13
+ options: undefined,
14
14
  },
15
15
  /** . */
16
- 'month': {
16
+ month: {
17
17
  type: 'number',
18
18
  isRequired: true,
19
- options: undefined
19
+ options: undefined,
20
20
  },
21
21
  /** . */
22
- 'day': {
22
+ day: {
23
23
  type: 'number',
24
24
  isRequired: true,
25
- options: undefined
25
+ options: undefined,
26
26
  },
27
- }
27
+ },
28
28
  };
29
29
  SchemaRegistry.getInstance().trackSchema(eventExclusionDateSchema);
30
30
  export default eventExclusionDateSchema;