@sprucelabs/calendar-utils 39.0.292 → 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.
- package/build/.spruce/errors/calendarUtils/invalidTimezoneName.schema.js +3 -3
- package/build/.spruce/errors/errors.types.d.ts +2 -2
- package/build/.spruce/errors/errors.types.js +0 -2
- package/build/.spruce/errors/options.types.d.ts +2 -2
- package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEvent.schema.js +121 -59
- package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventLineIcon.schema.js +175 -5
- package/build/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventTarget.schema.js +11 -11
- package/build/.spruce/schemas/calendarUtils/v2021_05_19/eventExclusionDate.schema.js +7 -7
- package/build/.spruce/schemas/calendarUtils/v2021_05_19/eventTimeBlock.schema.js +13 -13
- package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
- package/build/.spruce/schemas/schemas.types.d.ts +840 -648
- package/build/.spruce/schemas/schemas.types.js +0 -2
- package/build/errors/SpruceError.d.ts +1 -1
- package/build/errors/SpruceError.js +1 -1
- package/build/esm/.spruce/errors/errors.types.d.ts +2 -2
- package/build/esm/.spruce/errors/errors.types.js +0 -2
- package/build/esm/.spruce/errors/options.types.d.ts +2 -2
- package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEvent.schema.js +121 -59
- package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventLineIcon.schema.js +175 -5
- package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/calendarEventTarget.schema.js +11 -11
- package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/eventExclusionDate.schema.js +7 -7
- package/build/esm/.spruce/schemas/calendarUtils/v2021_05_19/eventTimeBlock.schema.js +13 -13
- package/build/esm/.spruce/schemas/schemas.types.d.ts +840 -648
- package/build/esm/.spruce/schemas/schemas.types.js +0 -2
- package/build/esm/constants.d.ts +2 -2
- package/build/esm/errors/SpruceError.d.ts +1 -1
- package/build/esm/index.d.ts +1 -1
- package/build/esm/locales/Locale.js +1 -1
- package/build/esm/parsing/strategies/DowParser.js +3 -2
- package/build/esm/schemas/v2021_05_19/calendarEvent.builder.d.ts +8 -8
- package/build/esm/types/calendar.types.d.ts +3 -3
- package/build/esm/utilities/PeopleSorter.d.ts +2 -2
- package/build/esm/utilities/PeopleSorter.js +3 -1
- package/build/esm/utilities/calendar.utility.d.ts +3 -3
- package/build/esm/utilities/date.utility.js +1 -1
- package/build/esm/utilities/duration.utility.d.ts +3 -1
- package/build/esm/utilities/duration.utility.js +3 -2
- package/build/index.d.ts +1 -1
- package/build/locales/DateUtilDecorator.js +25 -12
- package/build/locales/Locale.js +7 -5
- package/build/locales/TimezoneChoiceSorter.js +1 -0
- package/build/parsing/AbstractParser.js +2 -0
- package/build/parsing/DateParser.js +8 -2
- package/build/parsing/ParserFactory.js +9 -7
- package/build/parsing/strategies/DowParser.js +4 -4
- package/build/parsing/strategies/TimeParser.js +3 -4
- package/build/parsing/strategies/WeekParser.js +1 -2
- package/build/schemas/v2021_05_19/calendarEvent.builder.js +5 -2
- package/build/types/calendar.types.d.ts +3 -3
- package/build/utilities/PeopleSorter.d.ts +2 -2
- package/build/utilities/PeopleSorter.js +9 -9
- package/build/utilities/RepeatingRuleTextGenerator.js +17 -16
- package/build/utilities/calendar.utility.js +10 -6
- package/build/utilities/date.utility.js +2 -3
- package/build/utilities/duration.utility.d.ts +3 -1
- package/build/utilities/duration.utility.js +4 -3
- package/build/utilities/sortTimezoneChoices.js +5 -3
- package/package.json +21 -22
- package/tsconfig.json +3 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import BaseSpruceError from '@sprucelabs/error';
|
|
2
|
-
import ErrorOptions from
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
14
|
+
name: {
|
|
15
15
|
type: 'text';
|
|
16
16
|
isRequired: true;
|
|
17
17
|
options: undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
-
|
|
14
|
+
id: {
|
|
15
15
|
type: 'id',
|
|
16
16
|
isRequired: true,
|
|
17
|
-
options: undefined
|
|
17
|
+
options: undefined,
|
|
18
18
|
},
|
|
19
19
|
/** . */
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
+
calendarId: {
|
|
33
33
|
type: 'id',
|
|
34
34
|
isRequired: true,
|
|
35
|
-
options: undefined
|
|
35
|
+
options: undefined,
|
|
36
36
|
},
|
|
37
37
|
/** . */
|
|
38
|
-
|
|
38
|
+
eventTypeSlug: {
|
|
39
39
|
type: 'text',
|
|
40
|
-
options: undefined
|
|
40
|
+
options: undefined,
|
|
41
41
|
},
|
|
42
42
|
/** . */
|
|
43
|
-
|
|
43
|
+
startDateTimeMs: {
|
|
44
44
|
type: 'dateTime',
|
|
45
45
|
isRequired: true,
|
|
46
|
-
options: undefined
|
|
46
|
+
options: undefined,
|
|
47
47
|
},
|
|
48
48
|
/** . */
|
|
49
|
-
|
|
49
|
+
isBusy: {
|
|
50
50
|
type: 'boolean',
|
|
51
|
-
options: undefined
|
|
51
|
+
options: undefined,
|
|
52
52
|
},
|
|
53
53
|
/** . */
|
|
54
|
-
|
|
54
|
+
isResizeable: {
|
|
55
55
|
type: 'boolean',
|
|
56
|
-
options: undefined
|
|
56
|
+
options: undefined,
|
|
57
57
|
},
|
|
58
58
|
/** . */
|
|
59
|
-
|
|
59
|
+
style: {
|
|
60
60
|
type: 'select',
|
|
61
|
-
options: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
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
|
-
|
|
89
|
+
repeats: {
|
|
78
90
|
type: 'select',
|
|
79
|
-
options: {
|
|
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
|
-
|
|
100
|
+
daysOfWeek: {
|
|
83
101
|
type: 'select',
|
|
84
102
|
isArray: true,
|
|
85
|
-
options: {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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: {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
161
|
+
occurrences: {
|
|
100
162
|
type: 'number',
|
|
101
|
-
options: undefined
|
|
163
|
+
options: undefined,
|
|
102
164
|
},
|
|
103
165
|
/** . */
|
|
104
|
-
|
|
166
|
+
interval: {
|
|
105
167
|
type: 'number',
|
|
106
|
-
options: undefined
|
|
168
|
+
options: undefined,
|
|
107
169
|
},
|
|
108
170
|
/** . */
|
|
109
|
-
|
|
171
|
+
nthOccurrences: {
|
|
110
172
|
type: 'number',
|
|
111
173
|
isArray: true,
|
|
112
|
-
options: undefined
|
|
174
|
+
options: undefined,
|
|
113
175
|
},
|
|
114
176
|
/** . */
|
|
115
|
-
|
|
177
|
+
activeUntilDate: {
|
|
116
178
|
type: 'dateTime',
|
|
117
|
-
options: undefined
|
|
179
|
+
options: undefined,
|
|
118
180
|
},
|
|
119
181
|
/** . */
|
|
120
|
-
|
|
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
|
-
|
|
188
|
+
dateDeleted: {
|
|
127
189
|
type: 'dateTime',
|
|
128
|
-
options: undefined
|
|
190
|
+
options: undefined,
|
|
129
191
|
},
|
|
130
192
|
/** . */
|
|
131
|
-
|
|
193
|
+
dateCreated: {
|
|
132
194
|
type: 'dateTime',
|
|
133
195
|
isRequired: true,
|
|
134
|
-
options: undefined
|
|
196
|
+
options: undefined,
|
|
135
197
|
},
|
|
136
198
|
/** . */
|
|
137
|
-
|
|
199
|
+
nthInRepeating: {
|
|
138
200
|
type: 'number',
|
|
139
|
-
options: undefined
|
|
201
|
+
options: undefined,
|
|
140
202
|
},
|
|
141
203
|
/** . */
|
|
142
|
-
|
|
204
|
+
totalInRepeating: {
|
|
143
205
|
type: 'number',
|
|
144
|
-
options: undefined
|
|
206
|
+
options: undefined,
|
|
145
207
|
},
|
|
146
208
|
/** . */
|
|
147
|
-
|
|
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
|
-
|
|
10
|
+
icon: {
|
|
11
11
|
type: 'select',
|
|
12
12
|
isRequired: true,
|
|
13
|
-
options: {
|
|
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
|
-
|
|
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
|
-
|
|
10
|
+
locationId: {
|
|
11
11
|
type: 'id',
|
|
12
|
-
options: undefined
|
|
12
|
+
options: undefined,
|
|
13
13
|
},
|
|
14
14
|
/** . */
|
|
15
|
-
|
|
15
|
+
personId: {
|
|
16
16
|
type: 'id',
|
|
17
17
|
isRequired: true,
|
|
18
|
-
options: undefined
|
|
18
|
+
options: undefined,
|
|
19
19
|
},
|
|
20
20
|
/** . */
|
|
21
|
-
|
|
21
|
+
organizationId: {
|
|
22
22
|
type: 'id',
|
|
23
|
-
options: undefined
|
|
23
|
+
options: undefined,
|
|
24
24
|
},
|
|
25
25
|
/** . */
|
|
26
|
-
|
|
26
|
+
skillId: {
|
|
27
27
|
type: 'id',
|
|
28
|
-
options: undefined
|
|
28
|
+
options: undefined,
|
|
29
29
|
},
|
|
30
30
|
/** . */
|
|
31
|
-
|
|
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
|
-
|
|
10
|
+
year: {
|
|
11
11
|
type: 'number',
|
|
12
12
|
isRequired: true,
|
|
13
|
-
options: undefined
|
|
13
|
+
options: undefined,
|
|
14
14
|
},
|
|
15
15
|
/** . */
|
|
16
|
-
|
|
16
|
+
month: {
|
|
17
17
|
type: 'number',
|
|
18
18
|
isRequired: true,
|
|
19
|
-
options: undefined
|
|
19
|
+
options: undefined,
|
|
20
20
|
},
|
|
21
21
|
/** . */
|
|
22
|
-
|
|
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;
|