@sprucelabs/calendar-utils 43.0.125 → 43.1.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.
@@ -3,6 +3,47 @@ import { default as SchemaEntity } from '@sprucelabs/schema';
3
3
  import * as SpruceSchema from '@sprucelabs/schema';
4
4
  import '@sprucelabs/spruce-event-utils';
5
5
  declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
6
+ namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
7
+ interface Venue {
8
+ 'provider': string;
9
+ 'label': string;
10
+ 'joinUrl'?: string | undefined | null;
11
+ 'details'?: string | undefined | null;
12
+ }
13
+ interface VenueSchema extends SpruceSchema.Schema {
14
+ id: 'venue';
15
+ version: 'v2021_05_19';
16
+ namespace: 'CalendarUtils';
17
+ name: 'Venue';
18
+ moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
19
+ fields: {
20
+ /** . */
21
+ 'provider': {
22
+ type: 'text';
23
+ isRequired: true;
24
+ options: undefined;
25
+ };
26
+ /** . */
27
+ 'label': {
28
+ type: 'text';
29
+ isRequired: true;
30
+ options: undefined;
31
+ };
32
+ /** . */
33
+ 'joinUrl': {
34
+ type: 'text';
35
+ options: undefined;
36
+ };
37
+ /** . */
38
+ 'details': {
39
+ type: 'text';
40
+ options: undefined;
41
+ };
42
+ };
43
+ }
44
+ interface VenueEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.VenueSchema> {
45
+ }
46
+ }
6
47
  namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
7
48
  interface EventExclusionDate {
8
49
  'year': number;
@@ -40,94 +81,448 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
40
81
  }
41
82
  }
42
83
  namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
43
- interface CalendarEventLineIcon {
44
- 'icon': ("add-circle" | "add-square" | "add" | "alarm" | "arrow-back" | "arrow-down-circle" | "arrow-down" | "arrow-next" | "arrow-up-circle" | "arrow-up" | "attachment" | "award-badge" | "binoculars" | "bolt" | "book-open" | "book" | "bookmark" | "calendar-add" | "calendar" | "camera" | "cellphone" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clipboard" | "clock" | "close-circle" | "close-square" | "close" | "code" | "coffee" | "command" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "crop" | "cube" | "delete" | "document-blank" | "document-new" | "document-text" | "download-cloud" | "download" | "edit-box" | "edit-line" | "email" | "emoji-happy" | "emoji-sad" | "external-link" | "fav-heart" | "flag" | "flip-01" | "flip-02" | "folder" | "globe" | "hash-tag" | "headphones" | "help-buoy" | "help-circle" | "home" | "info" | "jump" | "layers" | "bar-graph" | "link-angle" | "link-flat" | "loader" | "location-pin" | "lock" | "logout" | "map" | "message-circle" | "message-square" | "mic-off" | "mic-on" | "minus-circle" | "minus-square" | "money-sign" | "more-horizontal" | "more-vertical" | "notification-off" | "notification-on" | "object" | "pause-circle" | "phone-unavailable" | "phone" | "photo" | "picked" | "pie-chart" | "play-circle" | "present" | "refresh-circle" | "refresh" | "repeat" | "restricted" | "rotate" | "search-no" | "search" | "selector-checked" | "selector-circle-filled" | "selector-circle" | "send" | "settings-filled" | "settings" | "share" | "shopping-bag" | "shopping-cart" | "sort-filter-down" | "sort-filter-up" | "sound-off" | "sound-on" | "sprucebot" | "star-filled" | "star" | "sun" | "tag" | "time" | "tool" | "trending-down" | "trending-up" | "triangle" | "unlock" | "upload-cloud" | "upload" | "user-add" | "user-delete" | "user" | "users" | "video-off" | "video" | "warning" | "wifi" | "zoom-in" | "zoom-out");
45
- 'hint'?: string | undefined | null;
84
+ interface CalendarEvent {
85
+ 'id': string;
86
+ 'source': SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource;
87
+ 'target': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget;
88
+ 'calendarId': string;
89
+ 'eventTypeSlug'?: string | undefined | null;
90
+ 'startDateTimeMs': SpruceSchema.DateTimeFieldValue;
91
+ 'isBusy'?: boolean | undefined | null;
92
+ 'isResizeable'?: boolean | undefined | null;
93
+ 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
94
+ 'groupId'?: string | undefined | null;
95
+ 'timeBlocks': SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[];
96
+ 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
97
+ 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
98
+ 'daysOfMonth'?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | undefined | null;
99
+ 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
100
+ 'occurrences'?: number | undefined | null;
101
+ 'interval'?: number | undefined | null;
102
+ 'nthOccurrences'?: number[] | undefined | null;
103
+ 'activeUntilDate'?: SpruceSchema.DateTimeFieldValue | undefined | null;
104
+ 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
105
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
106
+ 'dateCreated': SpruceSchema.DateTimeFieldValue;
107
+ 'nthInRepeating'?: number | undefined | null;
108
+ 'totalInRepeating'?: number | undefined | null;
109
+ 'meta'?: (Record<string, any>) | undefined | null;
110
+ 'venue'?: SpruceSchemas.CalendarUtils.v2021_05_19.Venue | undefined | null;
46
111
  }
47
- interface CalendarEventLineIconSchema extends SpruceSchema.Schema {
48
- id: 'calendarEventLineIcon';
112
+ interface CalendarEventSchema extends SpruceSchema.Schema {
113
+ id: 'calendarEvent';
49
114
  version: 'v2021_05_19';
50
115
  namespace: 'CalendarUtils';
51
116
  name: '';
52
117
  moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
53
118
  fields: {
54
119
  /** . */
55
- 'icon': {
56
- type: 'select';
120
+ 'id': {
121
+ type: 'id';
122
+ isRequired: true;
123
+ options: undefined;
124
+ };
125
+ /** . */
126
+ 'source': {
127
+ type: 'schema';
128
+ isRequired: true;
129
+ options: {
130
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
131
+ };
132
+ };
133
+ /** . */
134
+ 'target': {
135
+ type: 'schema';
136
+ isRequired: true;
137
+ options: {
138
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
139
+ };
140
+ };
141
+ /** . */
142
+ 'calendarId': {
143
+ type: 'id';
144
+ isRequired: true;
145
+ options: undefined;
146
+ };
147
+ /** . */
148
+ 'eventTypeSlug': {
149
+ type: 'text';
150
+ options: undefined;
151
+ };
152
+ /** . */
153
+ 'startDateTimeMs': {
154
+ type: 'dateTime';
57
155
  isRequired: true;
156
+ options: undefined;
157
+ };
158
+ /** . */
159
+ 'isBusy': {
160
+ type: 'boolean';
161
+ options: undefined;
162
+ };
163
+ /** . */
164
+ 'isResizeable': {
165
+ type: 'boolean';
166
+ options: undefined;
167
+ };
168
+ /** . */
169
+ 'style': {
170
+ type: 'select';
58
171
  options: {
59
172
  choices: [{
60
- "value": "add-circle";
61
- "label": "add-circle";
173
+ "value": "draft";
174
+ "label": "Draft";
62
175
  }, {
63
- "value": "add-square";
64
- "label": "add-square";
176
+ "value": "tentative";
177
+ "label": "Tentative";
65
178
  }, {
66
- "value": "add";
67
- "label": "add";
179
+ "value": "upcoming";
180
+ "label": "Upcoming";
68
181
  }, {
69
- "value": "alarm";
70
- "label": "alarm";
182
+ "value": "unavailable";
183
+ "label": "Unavailable";
71
184
  }, {
72
- "value": "arrow-back";
73
- "label": "arrow-back";
185
+ "value": "blocked";
186
+ "label": "Blocked";
74
187
  }, {
75
- "value": "arrow-down-circle";
76
- "label": "arrow-down-circle";
188
+ "value": "active";
189
+ "label": "Active";
77
190
  }, {
78
- "value": "arrow-down";
79
- "label": "arrow-down";
191
+ "value": "past";
192
+ "label": "Past";
80
193
  }, {
81
- "value": "arrow-next";
82
- "label": "arrow-next";
194
+ "value": "warn";
195
+ "label": "Warning";
83
196
  }, {
84
- "value": "arrow-up-circle";
85
- "label": "arrow-up-circle";
197
+ "value": "critical";
198
+ "label": "Critical";
199
+ }];
200
+ };
201
+ };
202
+ /** . */
203
+ 'groupId': {
204
+ type: 'id';
205
+ options: undefined;
206
+ };
207
+ /** . */
208
+ 'timeBlocks': {
209
+ type: 'schema';
210
+ isRequired: true;
211
+ isArray: true;
212
+ minArrayLength: 1;
213
+ options: {
214
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema;
215
+ };
216
+ };
217
+ /** . */
218
+ 'repeats': {
219
+ type: 'select';
220
+ options: {
221
+ choices: [{
222
+ "value": "weekly";
223
+ "label": "Weekly";
86
224
  }, {
87
- "value": "arrow-up";
88
- "label": "arrow-up";
225
+ "value": "monthly";
226
+ "label": "Monthly";
89
227
  }, {
90
- "value": "attachment";
91
- "label": "attachment";
228
+ "value": "daily";
229
+ "label": "Daily";
230
+ }];
231
+ };
232
+ };
233
+ /** . */
234
+ 'daysOfWeek': {
235
+ type: 'select';
236
+ isArray: true;
237
+ options: {
238
+ choices: [{
239
+ "value": "sun";
240
+ "label": "Sunday";
92
241
  }, {
93
- "value": "award-badge";
94
- "label": "award-badge";
242
+ "value": "mon";
243
+ "label": "Monday";
95
244
  }, {
96
- "value": "binoculars";
97
- "label": "binoculars";
245
+ "value": "tue";
246
+ "label": "Tuesday";
98
247
  }, {
99
- "value": "bolt";
100
- "label": "bolt";
248
+ "value": "wed";
249
+ "label": "Wednesday";
101
250
  }, {
102
- "value": "book-open";
103
- "label": "book-open";
251
+ "value": "thur";
252
+ "label": "Thursday";
104
253
  }, {
105
- "value": "book";
106
- "label": "book";
254
+ "value": "fri";
255
+ "label": "Friday";
107
256
  }, {
108
- "value": "bookmark";
109
- "label": "bookmark";
257
+ "value": "sat";
258
+ "label": "Saturday";
259
+ }];
260
+ };
261
+ };
262
+ /** . */
263
+ 'daysOfMonth': {
264
+ type: 'select';
265
+ isArray: true;
266
+ options: {
267
+ choices: [{
268
+ "value": "1";
269
+ "label": "1";
110
270
  }, {
111
- "value": "calendar-add";
112
- "label": "calendar-add";
271
+ "value": "2";
272
+ "label": "2";
113
273
  }, {
114
- "value": "calendar";
115
- "label": "calendar";
274
+ "value": "3";
275
+ "label": "3";
116
276
  }, {
117
- "value": "camera";
118
- "label": "camera";
277
+ "value": "4";
278
+ "label": "4";
119
279
  }, {
120
- "value": "cellphone";
121
- "label": "cellphone";
280
+ "value": "5";
281
+ "label": "5";
122
282
  }, {
123
- "value": "checkmark";
124
- "label": "checkmark";
283
+ "value": "6";
284
+ "label": "6";
125
285
  }, {
126
- "value": "chevron-down";
127
- "label": "chevron-down";
286
+ "value": "7";
287
+ "label": "7";
128
288
  }, {
129
- "value": "chevron-left";
130
- "label": "chevron-left";
289
+ "value": "8";
290
+ "label": "8";
291
+ }, {
292
+ "value": "9";
293
+ "label": "9";
294
+ }, {
295
+ "value": "10";
296
+ "label": "10";
297
+ }, {
298
+ "value": "11";
299
+ "label": "11";
300
+ }, {
301
+ "value": "12";
302
+ "label": "12";
303
+ }, {
304
+ "value": "13";
305
+ "label": "13";
306
+ }, {
307
+ "value": "14";
308
+ "label": "14";
309
+ }, {
310
+ "value": "15";
311
+ "label": "15";
312
+ }, {
313
+ "value": "16";
314
+ "label": "16";
315
+ }, {
316
+ "value": "17";
317
+ "label": "17";
318
+ }, {
319
+ "value": "18";
320
+ "label": "18";
321
+ }, {
322
+ "value": "19";
323
+ "label": "19";
324
+ }, {
325
+ "value": "20";
326
+ "label": "20";
327
+ }, {
328
+ "value": "21";
329
+ "label": "21";
330
+ }, {
331
+ "value": "22";
332
+ "label": "22";
333
+ }, {
334
+ "value": "23";
335
+ "label": "23";
336
+ }, {
337
+ "value": "24";
338
+ "label": "24";
339
+ }, {
340
+ "value": "25";
341
+ "label": "25";
342
+ }, {
343
+ "value": "26";
344
+ "label": "26";
345
+ }, {
346
+ "value": "27";
347
+ "label": "27";
348
+ }, {
349
+ "value": "28";
350
+ "label": "28";
351
+ }, {
352
+ "value": "29";
353
+ "label": "29";
354
+ }, {
355
+ "value": "30";
356
+ "label": "30";
357
+ }, {
358
+ "value": "31";
359
+ "label": "31";
360
+ }];
361
+ };
362
+ };
363
+ /** . */
364
+ 'repeatsUntil': {
365
+ type: 'dateTime';
366
+ options: undefined;
367
+ };
368
+ /** . */
369
+ 'occurrences': {
370
+ type: 'number';
371
+ options: undefined;
372
+ };
373
+ /** . */
374
+ 'interval': {
375
+ type: 'number';
376
+ options: undefined;
377
+ };
378
+ /** . */
379
+ 'nthOccurrences': {
380
+ type: 'number';
381
+ isArray: true;
382
+ options: undefined;
383
+ };
384
+ /** . */
385
+ 'activeUntilDate': {
386
+ type: 'dateTime';
387
+ options: undefined;
388
+ };
389
+ /** . */
390
+ 'exclusionDates': {
391
+ type: 'schema';
392
+ isArray: true;
393
+ options: {
394
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
395
+ };
396
+ };
397
+ /** . */
398
+ 'dateDeleted': {
399
+ type: 'dateTime';
400
+ options: undefined;
401
+ };
402
+ /** . */
403
+ 'dateCreated': {
404
+ type: 'dateTime';
405
+ isRequired: true;
406
+ options: undefined;
407
+ };
408
+ /** . */
409
+ 'nthInRepeating': {
410
+ type: 'number';
411
+ options: undefined;
412
+ };
413
+ /** . */
414
+ 'totalInRepeating': {
415
+ type: 'number';
416
+ options: undefined;
417
+ };
418
+ /** . */
419
+ 'meta': {
420
+ type: 'raw';
421
+ options: {
422
+ valueType: `Record<string, any>`;
423
+ };
424
+ };
425
+ /** . */
426
+ 'venue': {
427
+ type: 'schema';
428
+ options: {
429
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.VenueSchema;
430
+ };
431
+ };
432
+ };
433
+ }
434
+ interface CalendarEventEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema> {
435
+ }
436
+ }
437
+ namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
438
+ interface CalendarEventLineIcon {
439
+ 'icon': ("add-circle" | "add-square" | "add" | "alarm" | "arrow-back" | "arrow-down-circle" | "arrow-down" | "arrow-next" | "arrow-up-circle" | "arrow-up" | "attachment" | "award-badge" | "binoculars" | "bolt" | "book-open" | "book" | "bookmark" | "calendar-add" | "calendar" | "camera" | "cellphone" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clipboard" | "clock" | "close-circle" | "close-square" | "close" | "code" | "coffee" | "command" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "crop" | "cube" | "delete" | "document-blank" | "document-new" | "document-text" | "download-cloud" | "download" | "edit-box" | "edit-line" | "email" | "emoji-happy" | "emoji-sad" | "external-link" | "fav-heart" | "flag" | "flip-01" | "flip-02" | "folder" | "globe" | "hash-tag" | "headphones" | "help-buoy" | "help-circle" | "home" | "info" | "jump" | "layers" | "bar-graph" | "link-angle" | "link-flat" | "loader" | "location-pin" | "lock" | "logout" | "map" | "message-circle" | "message-square" | "mic-off" | "mic-on" | "minus-circle" | "minus-square" | "money-sign" | "more-horizontal" | "more-vertical" | "notification-off" | "notification-on" | "object" | "pause-circle" | "phone-unavailable" | "phone" | "photo" | "picked" | "pie-chart" | "play-circle" | "present" | "refresh-circle" | "refresh" | "repeat" | "restricted" | "rotate" | "search-no" | "search" | "selector-checked" | "selector-circle-filled" | "selector-circle" | "send" | "settings-filled" | "settings" | "share" | "shopping-bag" | "shopping-cart" | "sort-filter-down" | "sort-filter-up" | "sound-off" | "sound-on" | "sprucebot" | "star-filled" | "star" | "sun" | "tag" | "time" | "tool" | "trending-down" | "trending-up" | "triangle" | "unlock" | "upload-cloud" | "upload" | "user-add" | "user-delete" | "user" | "users" | "video-off" | "video" | "warning" | "wifi" | "zoom-in" | "zoom-out");
440
+ 'hint'?: string | undefined | null;
441
+ }
442
+ interface CalendarEventLineIconSchema extends SpruceSchema.Schema {
443
+ id: 'calendarEventLineIcon';
444
+ version: 'v2021_05_19';
445
+ namespace: 'CalendarUtils';
446
+ name: '';
447
+ moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
448
+ fields: {
449
+ /** . */
450
+ 'icon': {
451
+ type: 'select';
452
+ isRequired: true;
453
+ options: {
454
+ choices: [{
455
+ "value": "add-circle";
456
+ "label": "add-circle";
457
+ }, {
458
+ "value": "add-square";
459
+ "label": "add-square";
460
+ }, {
461
+ "value": "add";
462
+ "label": "add";
463
+ }, {
464
+ "value": "alarm";
465
+ "label": "alarm";
466
+ }, {
467
+ "value": "arrow-back";
468
+ "label": "arrow-back";
469
+ }, {
470
+ "value": "arrow-down-circle";
471
+ "label": "arrow-down-circle";
472
+ }, {
473
+ "value": "arrow-down";
474
+ "label": "arrow-down";
475
+ }, {
476
+ "value": "arrow-next";
477
+ "label": "arrow-next";
478
+ }, {
479
+ "value": "arrow-up-circle";
480
+ "label": "arrow-up-circle";
481
+ }, {
482
+ "value": "arrow-up";
483
+ "label": "arrow-up";
484
+ }, {
485
+ "value": "attachment";
486
+ "label": "attachment";
487
+ }, {
488
+ "value": "award-badge";
489
+ "label": "award-badge";
490
+ }, {
491
+ "value": "binoculars";
492
+ "label": "binoculars";
493
+ }, {
494
+ "value": "bolt";
495
+ "label": "bolt";
496
+ }, {
497
+ "value": "book-open";
498
+ "label": "book-open";
499
+ }, {
500
+ "value": "book";
501
+ "label": "book";
502
+ }, {
503
+ "value": "bookmark";
504
+ "label": "bookmark";
505
+ }, {
506
+ "value": "calendar-add";
507
+ "label": "calendar-add";
508
+ }, {
509
+ "value": "calendar";
510
+ "label": "calendar";
511
+ }, {
512
+ "value": "camera";
513
+ "label": "camera";
514
+ }, {
515
+ "value": "cellphone";
516
+ "label": "cellphone";
517
+ }, {
518
+ "value": "checkmark";
519
+ "label": "checkmark";
520
+ }, {
521
+ "value": "chevron-down";
522
+ "label": "chevron-down";
523
+ }, {
524
+ "value": "chevron-left";
525
+ "label": "chevron-left";
131
526
  }, {
132
527
  "value": "chevron-right";
133
528
  "label": "chevron-right";
@@ -372,575 +767,229 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
372
767
  "value": "search";
373
768
  "label": "search";
374
769
  }, {
375
- "value": "selector-checked";
376
- "label": "selector-checked";
377
- }, {
378
- "value": "selector-circle-filled";
379
- "label": "selector-circle-filled";
380
- }, {
381
- "value": "selector-circle";
382
- "label": "selector-circle";
383
- }, {
384
- "value": "send";
385
- "label": "send";
386
- }, {
387
- "value": "settings-filled";
388
- "label": "settings-filled";
389
- }, {
390
- "value": "settings";
391
- "label": "settings";
392
- }, {
393
- "value": "share";
394
- "label": "share";
395
- }, {
396
- "value": "shopping-bag";
397
- "label": "shopping-bag";
398
- }, {
399
- "value": "shopping-cart";
400
- "label": "shopping-cart";
401
- }, {
402
- "value": "sort-filter-down";
403
- "label": "sort-filter-down";
404
- }, {
405
- "value": "sort-filter-up";
406
- "label": "sort-filter-up";
407
- }, {
408
- "value": "sound-off";
409
- "label": "sound-off";
410
- }, {
411
- "value": "sound-on";
412
- "label": "sound-on";
413
- }, {
414
- "value": "sprucebot";
415
- "label": "sprucebot";
416
- }, {
417
- "value": "star-filled";
418
- "label": "star-filled";
419
- }, {
420
- "value": "star";
421
- "label": "star";
422
- }, {
423
- "value": "sun";
424
- "label": "sun";
425
- }, {
426
- "value": "tag";
427
- "label": "tag";
428
- }, {
429
- "value": "time";
430
- "label": "time";
431
- }, {
432
- "value": "tool";
433
- "label": "tool";
434
- }, {
435
- "value": "trending-down";
436
- "label": "trending-down";
437
- }, {
438
- "value": "trending-up";
439
- "label": "trending-up";
440
- }, {
441
- "value": "triangle";
442
- "label": "triangle";
443
- }, {
444
- "value": "unlock";
445
- "label": "unlock";
446
- }, {
447
- "value": "upload-cloud";
448
- "label": "upload-cloud";
449
- }, {
450
- "value": "upload";
451
- "label": "upload";
452
- }, {
453
- "value": "user-add";
454
- "label": "user-add";
455
- }, {
456
- "value": "user-delete";
457
- "label": "user-delete";
458
- }, {
459
- "value": "user";
460
- "label": "user";
461
- }, {
462
- "value": "users";
463
- "label": "users";
464
- }, {
465
- "value": "video-off";
466
- "label": "video-off";
467
- }, {
468
- "value": "video";
469
- "label": "video";
470
- }, {
471
- "value": "warning";
472
- "label": "warning";
473
- }, {
474
- "value": "wifi";
475
- "label": "wifi";
476
- }, {
477
- "value": "zoom-in";
478
- "label": "zoom-in";
479
- }, {
480
- "value": "zoom-out";
481
- "label": "zoom-out";
482
- }];
483
- };
484
- };
485
- /** . */
486
- 'hint': {
487
- type: 'text';
488
- options: undefined;
489
- };
490
- };
491
- }
492
- interface CalendarEventLineIconEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIconSchema> {
493
- }
494
- }
495
- namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
496
- interface EventTimeBlock {
497
- 'title'?: string | undefined | null;
498
- 'subtitle'?: string | undefined | null;
499
- 'isBusy': boolean;
500
- 'durationMinutes': number;
501
- 'rightIcons'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
502
- 'leftIcons'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
503
- }
504
- interface EventTimeBlockSchema extends SpruceSchema.Schema {
505
- id: 'eventTimeBlock';
506
- version: 'v2021_05_19';
507
- namespace: 'CalendarUtils';
508
- name: '';
509
- moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
510
- fields: {
511
- /** . */
512
- 'title': {
513
- type: 'text';
514
- options: undefined;
515
- };
516
- /** . */
517
- 'subtitle': {
518
- type: 'text';
519
- options: undefined;
520
- };
521
- /** . */
522
- 'isBusy': {
523
- type: 'boolean';
524
- isRequired: true;
525
- options: undefined;
526
- };
527
- /** . */
528
- 'durationMinutes': {
529
- type: 'number';
530
- isRequired: true;
531
- options: undefined;
532
- };
533
- /** . */
534
- 'rightIcons': {
535
- type: 'schema';
536
- isArray: true;
537
- options: {
538
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIconSchema;
539
- };
540
- };
541
- /** . */
542
- 'leftIcons': {
543
- type: 'schema';
544
- isArray: true;
545
- options: {
546
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIconSchema;
547
- };
548
- };
549
- };
550
- }
551
- interface EventTimeBlockEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema> {
552
- }
553
- }
554
- namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
555
- interface CalendarEventTarget {
556
- 'locationId'?: string | undefined | null;
557
- 'personId': string;
558
- 'organizationId'?: string | undefined | null;
559
- 'skillId'?: string | undefined | null;
560
- 'roleId'?: string | undefined | null;
561
- }
562
- interface CalendarEventTargetSchema extends SpruceSchema.Schema {
563
- id: 'calendarEventTarget';
564
- version: 'v2021_05_19';
565
- namespace: 'CalendarUtils';
566
- name: '';
567
- moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
568
- fields: {
569
- /** . */
570
- 'locationId': {
571
- type: 'id';
572
- options: undefined;
573
- };
574
- /** . */
575
- 'personId': {
576
- type: 'id';
577
- isRequired: true;
578
- options: undefined;
579
- };
580
- /** . */
581
- 'organizationId': {
582
- type: 'id';
583
- options: undefined;
584
- };
585
- /** . */
586
- 'skillId': {
587
- type: 'id';
588
- options: undefined;
589
- };
590
- /** . */
591
- 'roleId': {
592
- type: 'id';
593
- options: undefined;
594
- };
595
- };
596
- }
597
- interface CalendarEventTargetEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema> {
598
- }
599
- }
600
- namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
601
- interface CalendarEvent {
602
- 'id': string;
603
- 'source': SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource;
604
- 'target': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTarget;
605
- 'calendarId': string;
606
- 'eventTypeSlug'?: string | undefined | null;
607
- 'startDateTimeMs': SpruceSchema.DateTimeFieldValue;
608
- 'isBusy'?: boolean | undefined | null;
609
- 'isResizeable'?: boolean | undefined | null;
610
- 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
611
- 'groupId'?: string | undefined | null;
612
- 'timeBlocks': SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[];
613
- 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
614
- 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
615
- 'daysOfMonth'?: ("1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31")[] | undefined | null;
616
- 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
617
- 'occurrences'?: number | undefined | null;
618
- 'interval'?: number | undefined | null;
619
- 'nthOccurrences'?: number[] | undefined | null;
620
- 'activeUntilDate'?: SpruceSchema.DateTimeFieldValue | undefined | null;
621
- 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
622
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
623
- 'dateCreated': SpruceSchema.DateTimeFieldValue;
624
- 'nthInRepeating'?: number | undefined | null;
625
- 'totalInRepeating'?: number | undefined | null;
626
- 'meta'?: (Record<string, any>) | undefined | null;
627
- }
628
- interface CalendarEventSchema extends SpruceSchema.Schema {
629
- id: 'calendarEvent';
630
- version: 'v2021_05_19';
631
- namespace: 'CalendarUtils';
632
- name: '';
633
- moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
634
- fields: {
635
- /** . */
636
- 'id': {
637
- type: 'id';
638
- isRequired: true;
639
- options: undefined;
640
- };
641
- /** . */
642
- 'source': {
643
- type: 'schema';
644
- isRequired: true;
645
- options: {
646
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
647
- };
648
- };
649
- /** . */
650
- 'target': {
651
- type: 'schema';
652
- isRequired: true;
653
- options: {
654
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema;
655
- };
656
- };
657
- /** . */
658
- 'calendarId': {
659
- type: 'id';
660
- isRequired: true;
661
- options: undefined;
662
- };
663
- /** . */
664
- 'eventTypeSlug': {
665
- type: 'text';
666
- options: undefined;
667
- };
668
- /** . */
669
- 'startDateTimeMs': {
670
- type: 'dateTime';
671
- isRequired: true;
672
- options: undefined;
673
- };
674
- /** . */
675
- 'isBusy': {
676
- type: 'boolean';
677
- options: undefined;
678
- };
679
- /** . */
680
- 'isResizeable': {
681
- type: 'boolean';
682
- options: undefined;
683
- };
684
- /** . */
685
- 'style': {
686
- type: 'select';
687
- options: {
688
- choices: [{
689
- "value": "draft";
690
- "label": "Draft";
691
- }, {
692
- "value": "tentative";
693
- "label": "Tentative";
694
- }, {
695
- "value": "upcoming";
696
- "label": "Upcoming";
697
- }, {
698
- "value": "unavailable";
699
- "label": "Unavailable";
700
- }, {
701
- "value": "blocked";
702
- "label": "Blocked";
703
- }, {
704
- "value": "active";
705
- "label": "Active";
706
- }, {
707
- "value": "past";
708
- "label": "Past";
709
- }, {
710
- "value": "warn";
711
- "label": "Warning";
712
- }, {
713
- "value": "critical";
714
- "label": "Critical";
715
- }];
716
- };
717
- };
718
- /** . */
719
- 'groupId': {
720
- type: 'id';
721
- options: undefined;
722
- };
723
- /** . */
724
- 'timeBlocks': {
725
- type: 'schema';
726
- isRequired: true;
727
- isArray: true;
728
- minArrayLength: 1;
729
- options: {
730
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema;
731
- };
732
- };
733
- /** . */
734
- 'repeats': {
735
- type: 'select';
736
- options: {
737
- choices: [{
738
- "value": "weekly";
739
- "label": "Weekly";
740
- }, {
741
- "value": "monthly";
742
- "label": "Monthly";
743
- }, {
744
- "value": "daily";
745
- "label": "Daily";
746
- }];
747
- };
748
- };
749
- /** . */
750
- 'daysOfWeek': {
751
- type: 'select';
752
- isArray: true;
753
- options: {
754
- choices: [{
755
- "value": "sun";
756
- "label": "Sunday";
757
- }, {
758
- "value": "mon";
759
- "label": "Monday";
760
- }, {
761
- "value": "tue";
762
- "label": "Tuesday";
770
+ "value": "selector-checked";
771
+ "label": "selector-checked";
763
772
  }, {
764
- "value": "wed";
765
- "label": "Wednesday";
773
+ "value": "selector-circle-filled";
774
+ "label": "selector-circle-filled";
766
775
  }, {
767
- "value": "thur";
768
- "label": "Thursday";
776
+ "value": "selector-circle";
777
+ "label": "selector-circle";
769
778
  }, {
770
- "value": "fri";
771
- "label": "Friday";
779
+ "value": "send";
780
+ "label": "send";
772
781
  }, {
773
- "value": "sat";
774
- "label": "Saturday";
775
- }];
776
- };
777
- };
778
- /** . */
779
- 'daysOfMonth': {
780
- type: 'select';
781
- isArray: true;
782
- options: {
783
- choices: [{
784
- "value": "1";
785
- "label": "1";
782
+ "value": "settings-filled";
783
+ "label": "settings-filled";
786
784
  }, {
787
- "value": "2";
788
- "label": "2";
785
+ "value": "settings";
786
+ "label": "settings";
789
787
  }, {
790
- "value": "3";
791
- "label": "3";
788
+ "value": "share";
789
+ "label": "share";
792
790
  }, {
793
- "value": "4";
794
- "label": "4";
791
+ "value": "shopping-bag";
792
+ "label": "shopping-bag";
795
793
  }, {
796
- "value": "5";
797
- "label": "5";
794
+ "value": "shopping-cart";
795
+ "label": "shopping-cart";
798
796
  }, {
799
- "value": "6";
800
- "label": "6";
797
+ "value": "sort-filter-down";
798
+ "label": "sort-filter-down";
801
799
  }, {
802
- "value": "7";
803
- "label": "7";
800
+ "value": "sort-filter-up";
801
+ "label": "sort-filter-up";
804
802
  }, {
805
- "value": "8";
806
- "label": "8";
803
+ "value": "sound-off";
804
+ "label": "sound-off";
807
805
  }, {
808
- "value": "9";
809
- "label": "9";
806
+ "value": "sound-on";
807
+ "label": "sound-on";
810
808
  }, {
811
- "value": "10";
812
- "label": "10";
809
+ "value": "sprucebot";
810
+ "label": "sprucebot";
813
811
  }, {
814
- "value": "11";
815
- "label": "11";
812
+ "value": "star-filled";
813
+ "label": "star-filled";
816
814
  }, {
817
- "value": "12";
818
- "label": "12";
815
+ "value": "star";
816
+ "label": "star";
819
817
  }, {
820
- "value": "13";
821
- "label": "13";
818
+ "value": "sun";
819
+ "label": "sun";
822
820
  }, {
823
- "value": "14";
824
- "label": "14";
821
+ "value": "tag";
822
+ "label": "tag";
825
823
  }, {
826
- "value": "15";
827
- "label": "15";
824
+ "value": "time";
825
+ "label": "time";
828
826
  }, {
829
- "value": "16";
830
- "label": "16";
827
+ "value": "tool";
828
+ "label": "tool";
831
829
  }, {
832
- "value": "17";
833
- "label": "17";
830
+ "value": "trending-down";
831
+ "label": "trending-down";
834
832
  }, {
835
- "value": "18";
836
- "label": "18";
833
+ "value": "trending-up";
834
+ "label": "trending-up";
837
835
  }, {
838
- "value": "19";
839
- "label": "19";
836
+ "value": "triangle";
837
+ "label": "triangle";
840
838
  }, {
841
- "value": "20";
842
- "label": "20";
839
+ "value": "unlock";
840
+ "label": "unlock";
843
841
  }, {
844
- "value": "21";
845
- "label": "21";
842
+ "value": "upload-cloud";
843
+ "label": "upload-cloud";
846
844
  }, {
847
- "value": "22";
848
- "label": "22";
845
+ "value": "upload";
846
+ "label": "upload";
849
847
  }, {
850
- "value": "23";
851
- "label": "23";
848
+ "value": "user-add";
849
+ "label": "user-add";
852
850
  }, {
853
- "value": "24";
854
- "label": "24";
851
+ "value": "user-delete";
852
+ "label": "user-delete";
855
853
  }, {
856
- "value": "25";
857
- "label": "25";
854
+ "value": "user";
855
+ "label": "user";
858
856
  }, {
859
- "value": "26";
860
- "label": "26";
857
+ "value": "users";
858
+ "label": "users";
861
859
  }, {
862
- "value": "27";
863
- "label": "27";
860
+ "value": "video-off";
861
+ "label": "video-off";
864
862
  }, {
865
- "value": "28";
866
- "label": "28";
863
+ "value": "video";
864
+ "label": "video";
867
865
  }, {
868
- "value": "29";
869
- "label": "29";
866
+ "value": "warning";
867
+ "label": "warning";
870
868
  }, {
871
- "value": "30";
872
- "label": "30";
869
+ "value": "wifi";
870
+ "label": "wifi";
873
871
  }, {
874
- "value": "31";
875
- "label": "31";
872
+ "value": "zoom-in";
873
+ "label": "zoom-in";
874
+ }, {
875
+ "value": "zoom-out";
876
+ "label": "zoom-out";
876
877
  }];
877
878
  };
878
879
  };
879
880
  /** . */
880
- 'repeatsUntil': {
881
- type: 'dateTime';
881
+ 'hint': {
882
+ type: 'text';
882
883
  options: undefined;
883
884
  };
885
+ };
886
+ }
887
+ interface CalendarEventLineIconEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIconSchema> {
888
+ }
889
+ }
890
+ namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
891
+ interface EventTimeBlock {
892
+ 'title'?: string | undefined | null;
893
+ 'subtitle'?: string | undefined | null;
894
+ 'isBusy': boolean;
895
+ 'durationMinutes': number;
896
+ 'rightIcons'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
897
+ 'leftIcons'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIcon[] | undefined | null;
898
+ }
899
+ interface EventTimeBlockSchema extends SpruceSchema.Schema {
900
+ id: 'eventTimeBlock';
901
+ version: 'v2021_05_19';
902
+ namespace: 'CalendarUtils';
903
+ name: '';
904
+ moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
905
+ fields: {
884
906
  /** . */
885
- 'occurrences': {
886
- type: 'number';
907
+ 'title': {
908
+ type: 'text';
887
909
  options: undefined;
888
910
  };
889
911
  /** . */
890
- 'interval': {
891
- type: 'number';
912
+ 'subtitle': {
913
+ type: 'text';
892
914
  options: undefined;
893
915
  };
894
916
  /** . */
895
- 'nthOccurrences': {
896
- type: 'number';
897
- isArray: true;
917
+ 'isBusy': {
918
+ type: 'boolean';
919
+ isRequired: true;
898
920
  options: undefined;
899
921
  };
900
922
  /** . */
901
- 'activeUntilDate': {
902
- type: 'dateTime';
923
+ 'durationMinutes': {
924
+ type: 'number';
925
+ isRequired: true;
903
926
  options: undefined;
904
927
  };
905
928
  /** . */
906
- 'exclusionDates': {
929
+ 'rightIcons': {
907
930
  type: 'schema';
908
931
  isArray: true;
909
932
  options: {
910
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
933
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIconSchema;
911
934
  };
912
935
  };
913
936
  /** . */
914
- 'dateDeleted': {
915
- type: 'dateTime';
937
+ 'leftIcons': {
938
+ type: 'schema';
939
+ isArray: true;
940
+ options: {
941
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventLineIconSchema;
942
+ };
943
+ };
944
+ };
945
+ }
946
+ interface EventTimeBlockEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema> {
947
+ }
948
+ }
949
+ namespace SpruceSchemas.CalendarUtils.v2021_05_19 {
950
+ interface CalendarEventTarget {
951
+ 'locationId'?: string | undefined | null;
952
+ 'personId': string;
953
+ 'organizationId'?: string | undefined | null;
954
+ 'skillId'?: string | undefined | null;
955
+ 'roleId'?: string | undefined | null;
956
+ }
957
+ interface CalendarEventTargetSchema extends SpruceSchema.Schema {
958
+ id: 'calendarEventTarget';
959
+ version: 'v2021_05_19';
960
+ namespace: 'CalendarUtils';
961
+ name: '';
962
+ moduleToImportFromWhenRemote: '@sprucelabs/calendar-utils';
963
+ fields: {
964
+ /** . */
965
+ 'locationId': {
966
+ type: 'id';
916
967
  options: undefined;
917
968
  };
918
969
  /** . */
919
- 'dateCreated': {
920
- type: 'dateTime';
970
+ 'personId': {
971
+ type: 'id';
921
972
  isRequired: true;
922
973
  options: undefined;
923
974
  };
924
975
  /** . */
925
- 'nthInRepeating': {
926
- type: 'number';
976
+ 'organizationId': {
977
+ type: 'id';
927
978
  options: undefined;
928
979
  };
929
980
  /** . */
930
- 'totalInRepeating': {
931
- type: 'number';
981
+ 'skillId': {
982
+ type: 'id';
932
983
  options: undefined;
933
984
  };
934
985
  /** . */
935
- 'meta': {
936
- type: 'raw';
937
- options: {
938
- valueType: `Record<string, any>`;
939
- };
986
+ 'roleId': {
987
+ type: 'id';
988
+ options: undefined;
940
989
  };
941
990
  };
942
991
  }
943
- interface CalendarEventEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema> {
992
+ interface CalendarEventTargetEntity extends SchemaEntity<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventTargetSchema> {
944
993
  }
945
994
  }
946
995
  }