@sprucelabs/spruce-calendar-components 39.6.4 → 39.6.6

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.
@@ -3690,135 +3690,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3690
3690
  interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3691
3691
  }
3692
3692
  }
3693
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3694
- interface UpdatePreferencesEmitTarget {
3695
- 'organizationId': string;
3696
- }
3697
- interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
3698
- id: 'updatePreferencesEmitTarget';
3699
- version: 'v2021_05_19';
3700
- namespace: 'Calendar';
3701
- name: '';
3702
- fields: {
3703
- /** . */
3704
- 'organizationId': {
3705
- type: 'id';
3706
- isRequired: true;
3707
- options: undefined;
3708
- };
3709
- };
3710
- }
3711
- interface UpdatePreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema> {
3712
- }
3713
- }
3714
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3715
- interface UpdatePreferencesEmitPayload {
3716
- 'selectedCalendarIds'?: string[] | undefined | null;
3717
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
3718
- 'visiblePeopleIds'?: string[] | undefined | null;
3719
- }
3720
- interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
3721
- id: 'updatePreferencesEmitPayload';
3722
- version: 'v2021_05_19';
3723
- namespace: 'Calendar';
3724
- name: '';
3725
- fields: {
3726
- /** . */
3727
- 'selectedCalendarIds': {
3728
- type: 'id';
3729
- isArray: true;
3730
- minArrayLength: 0;
3731
- options: undefined;
3732
- };
3733
- /** . */
3734
- 'visiblePeopleMode': {
3735
- type: 'select';
3736
- options: {
3737
- choices: [{
3738
- "value": "me";
3739
- "label": "Me";
3740
- }, {
3741
- "value": "working";
3742
- "label": "Working";
3743
- }, {
3744
- "value": "custom";
3745
- "label": "Custom";
3746
- }];
3747
- };
3748
- };
3749
- /** . */
3750
- 'visiblePeopleIds': {
3751
- type: 'text';
3752
- isArray: true;
3753
- options: undefined;
3754
- };
3755
- };
3756
- }
3757
- interface UpdatePreferencesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema> {
3758
- }
3759
- }
3760
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3761
- interface UpdatePreferencesEmitTargetAndPayload {
3762
- /** Source. */
3763
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3764
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
3765
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
3766
- }
3767
- interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3768
- id: 'updatePreferencesEmitTargetAndPayload';
3769
- version: 'v2021_05_19';
3770
- namespace: 'Calendar';
3771
- name: '';
3772
- fields: {
3773
- /** Source. */
3774
- 'source': {
3775
- label: 'Source';
3776
- type: 'schema';
3777
- options: {
3778
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3779
- };
3780
- };
3781
- /** . */
3782
- 'target': {
3783
- type: 'schema';
3784
- isRequired: true;
3785
- options: {
3786
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
3787
- };
3788
- };
3789
- /** . */
3790
- 'payload': {
3791
- type: 'schema';
3792
- options: {
3793
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
3794
- };
3795
- };
3796
- };
3797
- }
3798
- interface UpdatePreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema> {
3799
- }
3800
- }
3801
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3802
- interface UpdatePreferencesResponsePayload {
3803
- 'success': boolean;
3804
- }
3805
- interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
3806
- id: 'updatePreferencesResponsePayload';
3807
- version: 'v2021_05_19';
3808
- namespace: 'Calendar';
3809
- name: '';
3810
- fields: {
3811
- /** . */
3812
- 'success': {
3813
- type: 'boolean';
3814
- isRequired: true;
3815
- options: undefined;
3816
- };
3817
- };
3818
- }
3819
- interface UpdatePreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema> {
3820
- }
3821
- }
3822
3693
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3823
3694
  interface UpsertCalendarEventTypeEmitTarget {
3824
3695
  'slug': string;
@@ -4374,58 +4245,81 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4374
4245
  }
4375
4246
  }
4376
4247
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4377
- interface DidCreateCalendarEventEmitTarget {
4378
- 'locationId': string;
4248
+ interface UpdatePreferencesEmitTarget {
4249
+ 'organizationId': string;
4379
4250
  }
4380
- interface DidCreateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4381
- id: 'didCreateCalendarEventEmitTarget';
4251
+ interface UpdatePreferencesEmitTargetSchema extends SpruceSchema.Schema {
4252
+ id: 'updatePreferencesEmitTarget';
4382
4253
  version: 'v2021_05_19';
4383
4254
  namespace: 'Calendar';
4384
4255
  name: '';
4385
4256
  fields: {
4386
4257
  /** . */
4387
- 'locationId': {
4258
+ 'organizationId': {
4388
4259
  type: 'id';
4389
4260
  isRequired: true;
4390
4261
  options: undefined;
4391
4262
  };
4392
4263
  };
4393
4264
  }
4394
- interface DidCreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema> {
4265
+ interface UpdatePreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema> {
4395
4266
  }
4396
4267
  }
4397
4268
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4398
- interface DidCreateCalendarEventEmitPayload {
4399
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4269
+ interface UpdatePreferencesEmitPayload {
4270
+ 'selectedCalendarIds'?: string[] | undefined | null;
4271
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
4272
+ 'visiblePeopleIds'?: string[] | undefined | null;
4400
4273
  }
4401
- interface DidCreateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4402
- id: 'didCreateCalendarEventEmitPayload';
4274
+ interface UpdatePreferencesEmitPayloadSchema extends SpruceSchema.Schema {
4275
+ id: 'updatePreferencesEmitPayload';
4403
4276
  version: 'v2021_05_19';
4404
4277
  namespace: 'Calendar';
4405
4278
  name: '';
4406
4279
  fields: {
4407
4280
  /** . */
4408
- 'calendarEvent': {
4409
- type: 'schema';
4410
- isRequired: true;
4281
+ 'selectedCalendarIds': {
4282
+ type: 'id';
4283
+ isArray: true;
4284
+ minArrayLength: 0;
4285
+ options: undefined;
4286
+ };
4287
+ /** . */
4288
+ 'visiblePeopleMode': {
4289
+ type: 'select';
4411
4290
  options: {
4412
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4291
+ choices: [{
4292
+ "value": "me";
4293
+ "label": "Me";
4294
+ }, {
4295
+ "value": "working";
4296
+ "label": "Working";
4297
+ }, {
4298
+ "value": "custom";
4299
+ "label": "Custom";
4300
+ }];
4413
4301
  };
4414
4302
  };
4303
+ /** . */
4304
+ 'visiblePeopleIds': {
4305
+ type: 'text';
4306
+ isArray: true;
4307
+ options: undefined;
4308
+ };
4415
4309
  };
4416
4310
  }
4417
- interface DidCreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema> {
4311
+ interface UpdatePreferencesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema> {
4418
4312
  }
4419
4313
  }
4420
4314
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4421
- interface DidCreateCalendarEventEmitTargetAndPayload {
4315
+ interface UpdatePreferencesEmitTargetAndPayload {
4422
4316
  /** Source. */
4423
4317
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4424
- 'target': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTarget;
4425
- 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayload;
4318
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTarget;
4319
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayload | undefined | null;
4426
4320
  }
4427
- interface DidCreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4428
- id: 'didCreateCalendarEventEmitTargetAndPayload';
4321
+ interface UpdatePreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4322
+ id: 'updatePreferencesEmitTargetAndPayload';
4429
4323
  version: 'v2021_05_19';
4430
4324
  namespace: 'Calendar';
4431
4325
  name: '';
@@ -4443,66 +4337,91 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4443
4337
  type: 'schema';
4444
4338
  isRequired: true;
4445
4339
  options: {
4446
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema;
4340
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetSchema;
4447
4341
  };
4448
4342
  };
4449
4343
  /** . */
4450
4344
  'payload': {
4451
4345
  type: 'schema';
4452
- isRequired: true;
4453
4346
  options: {
4454
- schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema;
4347
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitPayloadSchema;
4455
4348
  };
4456
4349
  };
4457
4350
  };
4458
4351
  }
4459
- interface DidCreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetAndPayloadSchema> {
4352
+ interface UpdatePreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesEmitTargetAndPayloadSchema> {
4460
4353
  }
4461
4354
  }
4462
4355
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4463
- interface GetSchedulesEmitPayload {
4464
- 'startDateTimeMs': number;
4465
- 'endDateTimeMs': number;
4466
- 'personIds'?: string[] | undefined | null;
4356
+ interface UpdatePreferencesResponsePayload {
4357
+ 'success': boolean;
4467
4358
  }
4468
- interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4469
- id: 'getSchedulesEmitPayload';
4359
+ interface UpdatePreferencesResponsePayloadSchema extends SpruceSchema.Schema {
4360
+ id: 'updatePreferencesResponsePayload';
4470
4361
  version: 'v2021_05_19';
4471
4362
  namespace: 'Calendar';
4472
4363
  name: '';
4473
4364
  fields: {
4474
4365
  /** . */
4475
- 'startDateTimeMs': {
4476
- type: 'number';
4366
+ 'success': {
4367
+ type: 'boolean';
4477
4368
  isRequired: true;
4478
4369
  options: undefined;
4479
4370
  };
4371
+ };
4372
+ }
4373
+ interface UpdatePreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdatePreferencesResponsePayloadSchema> {
4374
+ }
4375
+ }
4376
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4377
+ interface CreateCalendarEventEmitTarget {
4378
+ 'organizationId'?: string | undefined | null;
4379
+ 'locationId'?: string | undefined | null;
4380
+ 'calendarId': string;
4381
+ 'calendarEventPersonId': string;
4382
+ }
4383
+ interface CreateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4384
+ id: 'createCalendarEventEmitTarget';
4385
+ version: 'v2021_05_19';
4386
+ namespace: 'Calendar';
4387
+ name: '';
4388
+ fields: {
4389
+ /** . */
4390
+ 'organizationId': {
4391
+ type: 'id';
4392
+ options: undefined;
4393
+ };
4480
4394
  /** . */
4481
- 'endDateTimeMs': {
4482
- type: 'number';
4395
+ 'locationId': {
4396
+ type: 'id';
4397
+ options: undefined;
4398
+ };
4399
+ /** . */
4400
+ 'calendarId': {
4401
+ type: 'id';
4483
4402
  isRequired: true;
4484
4403
  options: undefined;
4485
4404
  };
4486
4405
  /** . */
4487
- 'personIds': {
4406
+ 'calendarEventPersonId': {
4488
4407
  type: 'id';
4489
- isArray: true;
4408
+ isRequired: true;
4490
4409
  options: undefined;
4491
4410
  };
4492
4411
  };
4493
4412
  }
4494
- interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
4413
+ interface CreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema> {
4495
4414
  }
4496
4415
  }
4497
4416
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4498
- interface GetSchedulesEmitTargetAndPayload {
4417
+ interface CreateCalendarEventEmitTargetAndPayload {
4499
4418
  /** Source. */
4500
4419
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4501
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4502
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
4503
- }
4504
- interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4505
- id: 'getSchedulesEmitTargetAndPayload';
4420
+ 'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTarget;
4421
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayload;
4422
+ }
4423
+ interface CreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4424
+ id: 'createCalendarEventEmitTargetAndPayload';
4506
4425
  version: 'v2021_05_19';
4507
4426
  namespace: 'Calendar';
4508
4427
  name: '';
@@ -4520,7 +4439,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4520
4439
  type: 'schema';
4521
4440
  isRequired: true;
4522
4441
  options: {
4523
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
4442
+ schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema;
4524
4443
  };
4525
4444
  };
4526
4445
  /** . */
@@ -4528,224 +4447,364 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4528
4447
  type: 'schema';
4529
4448
  isRequired: true;
4530
4449
  options: {
4531
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
4450
+ schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema;
4532
4451
  };
4533
4452
  };
4534
4453
  };
4535
4454
  }
4536
- interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
4455
+ interface CreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetAndPayloadSchema> {
4537
4456
  }
4538
4457
  }
4539
4458
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4540
- interface GetSchedulesResponsePayload {
4541
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
4459
+ interface CreateCalendarEventEmitPayload {
4460
+ 'eventTypeSlug'?: string | undefined | null;
4461
+ 'startDateTimeMs': SpruceSchema.DateTimeFieldValue;
4462
+ 'isBusy'?: boolean | undefined | null;
4463
+ 'isResizeable'?: boolean | undefined | null;
4464
+ 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
4465
+ 'groupId'?: string | undefined | null;
4466
+ 'timeBlocks': SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[];
4467
+ 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
4468
+ 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
4469
+ '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;
4470
+ 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
4471
+ 'occurrences'?: number | undefined | null;
4472
+ 'interval'?: number | undefined | null;
4473
+ 'nthOccurrences'?: number[] | undefined | null;
4474
+ 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
4475
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
4476
+ 'nthInRepeating'?: number | undefined | null;
4477
+ 'totalInRepeating'?: number | undefined | null;
4478
+ 'meta'?: (Record<string, any>) | undefined | null;
4479
+ 'venue'?: SpruceSchemas.CalendarUtils.v2021_05_19.Venue | undefined | null;
4542
4480
  }
4543
- interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4544
- id: 'getSchedulesResponsePayload';
4481
+ interface CreateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4482
+ id: 'createCalendarEventEmitPayload';
4545
4483
  version: 'v2021_05_19';
4546
4484
  namespace: 'Calendar';
4547
4485
  name: '';
4548
4486
  fields: {
4549
4487
  /** . */
4550
- 'events': {
4551
- type: 'schema';
4552
- isRequired: true;
4553
- isArray: true;
4554
- minArrayLength: 0;
4555
- options: {
4556
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4557
- };
4488
+ 'eventTypeSlug': {
4489
+ type: 'text';
4490
+ options: undefined;
4558
4491
  };
4559
- };
4560
- }
4561
- interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
4562
- }
4563
- }
4564
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4565
- interface ListPeopleWithoutSchedulesEmitTarget {
4566
- 'locationId': string;
4567
- }
4568
- interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4569
- id: 'listPeopleWithoutSchedulesEmitTarget';
4570
- version: 'v2021_05_19';
4571
- namespace: 'Calendar';
4572
- name: '';
4573
- fields: {
4574
4492
  /** . */
4575
- 'locationId': {
4576
- type: 'id';
4493
+ 'startDateTimeMs': {
4494
+ type: 'dateTime';
4577
4495
  isRequired: true;
4578
4496
  options: undefined;
4579
4497
  };
4580
- };
4581
- }
4582
- interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
4583
- }
4584
- }
4585
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4586
- interface ListPeopleWithoutSchedulesEmitPayload {
4587
- 'calendarIds': string[];
4588
- }
4589
- interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4590
- id: 'listPeopleWithoutSchedulesEmitPayload';
4591
- version: 'v2021_05_19';
4592
- namespace: 'Calendar';
4593
- name: '';
4594
- fields: {
4595
4498
  /** . */
4596
- 'calendarIds': {
4597
- type: 'id';
4598
- isRequired: true;
4599
- isArray: true;
4499
+ 'isBusy': {
4500
+ type: 'boolean';
4600
4501
  options: undefined;
4601
4502
  };
4602
- };
4603
- }
4604
- interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
4605
- }
4606
- }
4607
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4608
- interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
4609
- /** Source. */
4610
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4611
- 'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
4612
- 'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
4613
- }
4614
- interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4615
- id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
4616
- version: 'v2021_05_19';
4617
- namespace: 'Calendar';
4618
- name: '';
4619
- fields: {
4620
- /** Source. */
4621
- 'source': {
4622
- label: 'Source';
4623
- type: 'schema';
4624
- options: {
4625
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4626
- };
4627
- };
4628
4503
  /** . */
4629
- 'target': {
4630
- type: 'schema';
4631
- isRequired: true;
4632
- options: {
4633
- schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
4634
- };
4504
+ 'isResizeable': {
4505
+ type: 'boolean';
4506
+ options: undefined;
4635
4507
  };
4636
4508
  /** . */
4637
- 'payload': {
4638
- type: 'schema';
4639
- isRequired: true;
4509
+ 'style': {
4510
+ type: 'select';
4640
4511
  options: {
4641
- schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
4512
+ choices: [{
4513
+ "value": "draft";
4514
+ "label": "Draft";
4515
+ }, {
4516
+ "value": "tentative";
4517
+ "label": "Tentative";
4518
+ }, {
4519
+ "value": "upcoming";
4520
+ "label": "Upcoming";
4521
+ }, {
4522
+ "value": "unavailable";
4523
+ "label": "Unavailable";
4524
+ }, {
4525
+ "value": "blocked";
4526
+ "label": "Blocked";
4527
+ }, {
4528
+ "value": "active";
4529
+ "label": "Active";
4530
+ }, {
4531
+ "value": "past";
4532
+ "label": "Past";
4533
+ }, {
4534
+ "value": "warn";
4535
+ "label": "Warning";
4536
+ }, {
4537
+ "value": "critical";
4538
+ "label": "Critical";
4539
+ }];
4642
4540
  };
4643
4541
  };
4644
- };
4645
- }
4646
- interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
4647
- }
4648
- }
4649
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4650
- interface PersonWithoutSchedule {
4651
- /** Id. */
4652
- 'id': string;
4653
- /** Casual name. The name you can use when talking to this person. */
4654
- 'casualName': string;
4655
- /** Avatar src. */
4656
- 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
4657
- }
4658
- interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
4659
- id: 'person-without-schedule';
4660
- version: 'v2021_05_19';
4661
- namespace: 'Calendar';
4662
- name: '';
4663
- fields: {
4664
- /** Id. */
4665
- 'id': {
4666
- label: 'Id';
4542
+ /** . */
4543
+ 'groupId': {
4667
4544
  type: 'id';
4668
- isRequired: true;
4669
4545
  options: undefined;
4670
4546
  };
4671
- /** Casual name. The name you can use when talking to this person. */
4672
- 'casualName': {
4673
- label: 'Casual name';
4674
- type: 'text';
4547
+ /** . */
4548
+ 'timeBlocks': {
4549
+ type: 'schema';
4675
4550
  isRequired: true;
4676
- hint: 'The name you can use when talking to this person.';
4677
- options: undefined;
4678
- };
4679
- /** Avatar src. */
4680
- 'avatar': {
4681
- label: 'Avatar src';
4682
- type: 'image';
4551
+ isArray: true;
4552
+ minArrayLength: 1;
4683
4553
  options: {
4684
- requiredSizes: ["*"];
4554
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema;
4685
4555
  };
4686
4556
  };
4687
- };
4688
- }
4689
- interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
4690
- }
4691
- }
4692
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4693
- interface ListPeopleWithoutSchedulesResponsePayload {
4694
- 'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
4695
- }
4696
- interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
4697
- id: 'listPeopleWithoutSchedulesResponsePayload';
4698
- version: 'v2021_05_19';
4699
- namespace: 'Calendar';
4700
- name: '';
4701
- fields: {
4702
4557
  /** . */
4703
- 'people': {
4704
- type: 'schema';
4705
- isRequired: true;
4706
- isArray: true;
4707
- minArrayLength: 0;
4558
+ 'repeats': {
4559
+ type: 'select';
4708
4560
  options: {
4709
- schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
4561
+ choices: [{
4562
+ "value": "weekly";
4563
+ "label": "Weekly";
4564
+ }, {
4565
+ "value": "monthly";
4566
+ "label": "Monthly";
4567
+ }, {
4568
+ "value": "daily";
4569
+ "label": "Daily";
4570
+ }];
4710
4571
  };
4711
4572
  };
4712
- };
4713
- }
4714
- interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
4715
- }
4716
- }
4717
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4718
- interface GetSchedulesEmitTarget {
4719
- 'organizationId'?: string | undefined | null;
4720
- 'locationId'?: string | undefined | null;
4721
- 'calendarIds': string[];
4722
- }
4723
- interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4724
- id: 'getSchedulesEmitTarget';
4725
- version: 'v2021_05_19';
4726
- namespace: 'Calendar';
4727
- name: '';
4728
- fields: {
4729
4573
  /** . */
4730
- 'organizationId': {
4731
- type: 'id';
4574
+ 'daysOfWeek': {
4575
+ type: 'select';
4576
+ isArray: true;
4577
+ options: {
4578
+ choices: [{
4579
+ "value": "sun";
4580
+ "label": "Sunday";
4581
+ }, {
4582
+ "value": "mon";
4583
+ "label": "Monday";
4584
+ }, {
4585
+ "value": "tue";
4586
+ "label": "Tuesday";
4587
+ }, {
4588
+ "value": "wed";
4589
+ "label": "Wednesday";
4590
+ }, {
4591
+ "value": "thur";
4592
+ "label": "Thursday";
4593
+ }, {
4594
+ "value": "fri";
4595
+ "label": "Friday";
4596
+ }, {
4597
+ "value": "sat";
4598
+ "label": "Saturday";
4599
+ }];
4600
+ };
4601
+ };
4602
+ /** . */
4603
+ 'daysOfMonth': {
4604
+ type: 'select';
4605
+ isArray: true;
4606
+ options: {
4607
+ choices: [{
4608
+ "value": "1";
4609
+ "label": "1";
4610
+ }, {
4611
+ "value": "2";
4612
+ "label": "2";
4613
+ }, {
4614
+ "value": "3";
4615
+ "label": "3";
4616
+ }, {
4617
+ "value": "4";
4618
+ "label": "4";
4619
+ }, {
4620
+ "value": "5";
4621
+ "label": "5";
4622
+ }, {
4623
+ "value": "6";
4624
+ "label": "6";
4625
+ }, {
4626
+ "value": "7";
4627
+ "label": "7";
4628
+ }, {
4629
+ "value": "8";
4630
+ "label": "8";
4631
+ }, {
4632
+ "value": "9";
4633
+ "label": "9";
4634
+ }, {
4635
+ "value": "10";
4636
+ "label": "10";
4637
+ }, {
4638
+ "value": "11";
4639
+ "label": "11";
4640
+ }, {
4641
+ "value": "12";
4642
+ "label": "12";
4643
+ }, {
4644
+ "value": "13";
4645
+ "label": "13";
4646
+ }, {
4647
+ "value": "14";
4648
+ "label": "14";
4649
+ }, {
4650
+ "value": "15";
4651
+ "label": "15";
4652
+ }, {
4653
+ "value": "16";
4654
+ "label": "16";
4655
+ }, {
4656
+ "value": "17";
4657
+ "label": "17";
4658
+ }, {
4659
+ "value": "18";
4660
+ "label": "18";
4661
+ }, {
4662
+ "value": "19";
4663
+ "label": "19";
4664
+ }, {
4665
+ "value": "20";
4666
+ "label": "20";
4667
+ }, {
4668
+ "value": "21";
4669
+ "label": "21";
4670
+ }, {
4671
+ "value": "22";
4672
+ "label": "22";
4673
+ }, {
4674
+ "value": "23";
4675
+ "label": "23";
4676
+ }, {
4677
+ "value": "24";
4678
+ "label": "24";
4679
+ }, {
4680
+ "value": "25";
4681
+ "label": "25";
4682
+ }, {
4683
+ "value": "26";
4684
+ "label": "26";
4685
+ }, {
4686
+ "value": "27";
4687
+ "label": "27";
4688
+ }, {
4689
+ "value": "28";
4690
+ "label": "28";
4691
+ }, {
4692
+ "value": "29";
4693
+ "label": "29";
4694
+ }, {
4695
+ "value": "30";
4696
+ "label": "30";
4697
+ }, {
4698
+ "value": "31";
4699
+ "label": "31";
4700
+ }];
4701
+ };
4702
+ };
4703
+ /** . */
4704
+ 'repeatsUntil': {
4705
+ type: 'dateTime';
4732
4706
  options: undefined;
4733
4707
  };
4734
4708
  /** . */
4735
- 'locationId': {
4736
- type: 'id';
4709
+ 'occurrences': {
4710
+ type: 'number';
4737
4711
  options: undefined;
4738
4712
  };
4739
4713
  /** . */
4740
- 'calendarIds': {
4714
+ 'interval': {
4715
+ type: 'number';
4716
+ options: undefined;
4717
+ };
4718
+ /** . */
4719
+ 'nthOccurrences': {
4720
+ type: 'number';
4721
+ isArray: true;
4722
+ options: undefined;
4723
+ };
4724
+ /** . */
4725
+ 'exclusionDates': {
4726
+ type: 'schema';
4727
+ isArray: true;
4728
+ options: {
4729
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
4730
+ };
4731
+ };
4732
+ /** . */
4733
+ 'dateDeleted': {
4734
+ type: 'dateTime';
4735
+ options: undefined;
4736
+ };
4737
+ /** . */
4738
+ 'nthInRepeating': {
4739
+ type: 'number';
4740
+ options: undefined;
4741
+ };
4742
+ /** . */
4743
+ 'totalInRepeating': {
4744
+ type: 'number';
4745
+ options: undefined;
4746
+ };
4747
+ /** . */
4748
+ 'meta': {
4749
+ type: 'raw';
4750
+ options: {
4751
+ valueType: `Record<string, any>`;
4752
+ };
4753
+ };
4754
+ /** . */
4755
+ 'venue': {
4756
+ type: 'schema';
4757
+ options: {
4758
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.VenueSchema;
4759
+ };
4760
+ };
4761
+ };
4762
+ }
4763
+ interface CreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema> {
4764
+ }
4765
+ }
4766
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4767
+ interface DidCreateCalendarEventEmitTarget {
4768
+ 'locationId': string;
4769
+ }
4770
+ interface DidCreateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4771
+ id: 'didCreateCalendarEventEmitTarget';
4772
+ version: 'v2021_05_19';
4773
+ namespace: 'Calendar';
4774
+ name: '';
4775
+ fields: {
4776
+ /** . */
4777
+ 'locationId': {
4741
4778
  type: 'id';
4742
4779
  isRequired: true;
4743
- isArray: true;
4744
4780
  options: undefined;
4745
4781
  };
4746
4782
  };
4747
4783
  }
4748
- interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
4784
+ interface DidCreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema> {
4785
+ }
4786
+ }
4787
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4788
+ interface DidCreateCalendarEventEmitPayload {
4789
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
4790
+ }
4791
+ interface DidCreateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4792
+ id: 'didCreateCalendarEventEmitPayload';
4793
+ version: 'v2021_05_19';
4794
+ namespace: 'Calendar';
4795
+ name: '';
4796
+ fields: {
4797
+ /** . */
4798
+ 'calendarEvent': {
4799
+ type: 'schema';
4800
+ isRequired: true;
4801
+ options: {
4802
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
4803
+ };
4804
+ };
4805
+ };
4806
+ }
4807
+ interface DidCreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema> {
4749
4808
  }
4750
4809
  }
4751
4810
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -4801,64 +4860,21 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4801
4860
  }
4802
4861
  }
4803
4862
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4804
- interface SendSchedulesEmitTargetAndPayload {
4805
- /** Source. */
4806
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4807
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4808
- 'payload': SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayload;
4863
+ interface GetSchedulesEmitTarget {
4864
+ 'organizationId'?: string | undefined | null;
4865
+ 'locationId'?: string | undefined | null;
4866
+ 'calendarIds': string[];
4809
4867
  }
4810
- interface SendSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4811
- id: 'sendSchedulesEmitTargetAndPayload';
4868
+ interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
4869
+ id: 'getSchedulesEmitTarget';
4812
4870
  version: 'v2021_05_19';
4813
4871
  namespace: 'Calendar';
4814
4872
  name: '';
4815
4873
  fields: {
4816
- /** Source. */
4817
- 'source': {
4818
- label: 'Source';
4819
- type: 'schema';
4820
- options: {
4821
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
4822
- };
4823
- };
4824
- /** . */
4825
- 'target': {
4826
- type: 'schema';
4827
- isRequired: true;
4828
- options: {
4829
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
4830
- };
4831
- };
4832
- /** . */
4833
- 'payload': {
4834
- type: 'schema';
4835
- isRequired: true;
4836
- options: {
4837
- schema: SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema;
4838
- };
4839
- };
4840
- };
4841
- }
4842
- interface SendSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitTargetAndPayloadSchema> {
4843
- }
4844
- }
4845
- namespace SpruceSchemas.Calendar.v2021_05_19 {
4846
- interface CreateCalendarEventEmitTarget {
4847
- 'organizationId'?: string | undefined | null;
4848
- 'locationId'?: string | undefined | null;
4849
- 'calendarId': string;
4850
- 'calendarEventPersonId': string;
4851
- }
4852
- interface CreateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
4853
- id: 'createCalendarEventEmitTarget';
4854
- version: 'v2021_05_19';
4855
- namespace: 'Calendar';
4856
- name: '';
4857
- fields: {
4858
- /** . */
4859
- 'organizationId': {
4860
- type: 'id';
4861
- options: undefined;
4874
+ /** . */
4875
+ 'organizationId': {
4876
+ type: 'id';
4877
+ options: undefined;
4862
4878
  };
4863
4879
  /** . */
4864
4880
  'locationId': {
@@ -4866,31 +4882,26 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4866
4882
  options: undefined;
4867
4883
  };
4868
4884
  /** . */
4869
- 'calendarId': {
4870
- type: 'id';
4871
- isRequired: true;
4872
- options: undefined;
4873
- };
4874
- /** . */
4875
- 'calendarEventPersonId': {
4885
+ 'calendarIds': {
4876
4886
  type: 'id';
4877
4887
  isRequired: true;
4888
+ isArray: true;
4878
4889
  options: undefined;
4879
4890
  };
4880
4891
  };
4881
4892
  }
4882
- interface CreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema> {
4893
+ interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
4883
4894
  }
4884
4895
  }
4885
4896
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4886
- interface CreateCalendarEventEmitTargetAndPayload {
4897
+ interface SendSchedulesEmitTargetAndPayload {
4887
4898
  /** Source. */
4888
4899
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4889
- 'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTarget;
4890
- 'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayload;
4900
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4901
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayload;
4891
4902
  }
4892
- interface CreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4893
- id: 'createCalendarEventEmitTargetAndPayload';
4903
+ interface SendSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4904
+ id: 'sendSchedulesEmitTargetAndPayload';
4894
4905
  version: 'v2021_05_19';
4895
4906
  namespace: 'Calendar';
4896
4907
  name: '';
@@ -4908,7 +4919,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4908
4919
  type: 'schema';
4909
4920
  isRequired: true;
4910
4921
  options: {
4911
- schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema;
4922
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
4912
4923
  };
4913
4924
  };
4914
4925
  /** . */
@@ -4916,343 +4927,290 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
4916
4927
  type: 'schema';
4917
4928
  isRequired: true;
4918
4929
  options: {
4919
- schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema;
4930
+ schema: SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitPayloadSchema;
4920
4931
  };
4921
4932
  };
4922
4933
  };
4923
4934
  }
4924
- interface CreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetAndPayloadSchema> {
4935
+ interface SendSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.SendSchedulesEmitTargetAndPayloadSchema> {
4925
4936
  }
4926
4937
  }
4927
4938
  namespace SpruceSchemas.Calendar.v2021_05_19 {
4928
- interface CreateCalendarEventEmitPayload {
4929
- 'eventTypeSlug'?: string | undefined | null;
4930
- 'startDateTimeMs': SpruceSchema.DateTimeFieldValue;
4931
- 'isBusy'?: boolean | undefined | null;
4932
- 'isResizeable'?: boolean | undefined | null;
4933
- 'style'?: ("draft" | "tentative" | "upcoming" | "unavailable" | "blocked" | "active" | "past" | "warn" | "critical") | undefined | null;
4934
- 'groupId'?: string | undefined | null;
4935
- 'timeBlocks': SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlock[];
4936
- 'repeats'?: ("weekly" | "monthly" | "daily") | undefined | null;
4937
- 'daysOfWeek'?: ("sun" | "mon" | "tue" | "wed" | "thur" | "fri" | "sat")[] | undefined | null;
4938
- '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;
4939
- 'repeatsUntil'?: SpruceSchema.DateTimeFieldValue | undefined | null;
4940
- 'occurrences'?: number | undefined | null;
4941
- 'interval'?: number | undefined | null;
4942
- 'nthOccurrences'?: number[] | undefined | null;
4943
- 'exclusionDates'?: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDate[] | undefined | null;
4944
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
4945
- 'nthInRepeating'?: number | undefined | null;
4946
- 'totalInRepeating'?: number | undefined | null;
4947
- 'meta'?: (Record<string, any>) | undefined | null;
4948
- 'venue'?: SpruceSchemas.CalendarUtils.v2021_05_19.Venue | undefined | null;
4939
+ interface GetSchedulesEmitPayload {
4940
+ 'startDateTimeMs': number;
4941
+ 'endDateTimeMs': number;
4942
+ 'personIds'?: string[] | undefined | null;
4949
4943
  }
4950
- interface CreateCalendarEventEmitPayloadSchema extends SpruceSchema.Schema {
4951
- id: 'createCalendarEventEmitPayload';
4944
+ interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
4945
+ id: 'getSchedulesEmitPayload';
4952
4946
  version: 'v2021_05_19';
4953
4947
  namespace: 'Calendar';
4954
4948
  name: '';
4955
4949
  fields: {
4956
- /** . */
4957
- 'eventTypeSlug': {
4958
- type: 'text';
4959
- options: undefined;
4960
- };
4961
4950
  /** . */
4962
4951
  'startDateTimeMs': {
4963
- type: 'dateTime';
4952
+ type: 'number';
4964
4953
  isRequired: true;
4965
4954
  options: undefined;
4966
4955
  };
4967
4956
  /** . */
4968
- 'isBusy': {
4969
- type: 'boolean';
4970
- options: undefined;
4971
- };
4972
- /** . */
4973
- 'isResizeable': {
4974
- type: 'boolean';
4957
+ 'endDateTimeMs': {
4958
+ type: 'number';
4959
+ isRequired: true;
4975
4960
  options: undefined;
4976
4961
  };
4977
4962
  /** . */
4978
- 'style': {
4979
- type: 'select';
4980
- options: {
4981
- choices: [{
4982
- "value": "draft";
4983
- "label": "Draft";
4984
- }, {
4985
- "value": "tentative";
4986
- "label": "Tentative";
4987
- }, {
4988
- "value": "upcoming";
4989
- "label": "Upcoming";
4990
- }, {
4991
- "value": "unavailable";
4992
- "label": "Unavailable";
4993
- }, {
4994
- "value": "blocked";
4995
- "label": "Blocked";
4996
- }, {
4997
- "value": "active";
4998
- "label": "Active";
4999
- }, {
5000
- "value": "past";
5001
- "label": "Past";
5002
- }, {
5003
- "value": "warn";
5004
- "label": "Warning";
5005
- }, {
5006
- "value": "critical";
5007
- "label": "Critical";
5008
- }];
5009
- };
5010
- };
5011
- /** . */
5012
- 'groupId': {
4963
+ 'personIds': {
5013
4964
  type: 'id';
4965
+ isArray: true;
5014
4966
  options: undefined;
5015
4967
  };
5016
- /** . */
5017
- 'timeBlocks': {
4968
+ };
4969
+ }
4970
+ interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
4971
+ }
4972
+ }
4973
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
4974
+ interface GetSchedulesEmitTargetAndPayload {
4975
+ /** Source. */
4976
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
4977
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
4978
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
4979
+ }
4980
+ interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
4981
+ id: 'getSchedulesEmitTargetAndPayload';
4982
+ version: 'v2021_05_19';
4983
+ namespace: 'Calendar';
4984
+ name: '';
4985
+ fields: {
4986
+ /** Source. */
4987
+ 'source': {
4988
+ label: 'Source';
5018
4989
  type: 'schema';
5019
- isRequired: true;
5020
- isArray: true;
5021
- minArrayLength: 1;
5022
- options: {
5023
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventTimeBlockSchema;
5024
- };
5025
- };
5026
- /** . */
5027
- 'repeats': {
5028
- type: 'select';
5029
- options: {
5030
- choices: [{
5031
- "value": "weekly";
5032
- "label": "Weekly";
5033
- }, {
5034
- "value": "monthly";
5035
- "label": "Monthly";
5036
- }, {
5037
- "value": "daily";
5038
- "label": "Daily";
5039
- }];
5040
- };
5041
- };
5042
- /** . */
5043
- 'daysOfWeek': {
5044
- type: 'select';
5045
- isArray: true;
5046
- options: {
5047
- choices: [{
5048
- "value": "sun";
5049
- "label": "Sunday";
5050
- }, {
5051
- "value": "mon";
5052
- "label": "Monday";
5053
- }, {
5054
- "value": "tue";
5055
- "label": "Tuesday";
5056
- }, {
5057
- "value": "wed";
5058
- "label": "Wednesday";
5059
- }, {
5060
- "value": "thur";
5061
- "label": "Thursday";
5062
- }, {
5063
- "value": "fri";
5064
- "label": "Friday";
5065
- }, {
5066
- "value": "sat";
5067
- "label": "Saturday";
5068
- }];
5069
- };
5070
- };
5071
- /** . */
5072
- 'daysOfMonth': {
5073
- type: 'select';
5074
- isArray: true;
5075
- options: {
5076
- choices: [{
5077
- "value": "1";
5078
- "label": "1";
5079
- }, {
5080
- "value": "2";
5081
- "label": "2";
5082
- }, {
5083
- "value": "3";
5084
- "label": "3";
5085
- }, {
5086
- "value": "4";
5087
- "label": "4";
5088
- }, {
5089
- "value": "5";
5090
- "label": "5";
5091
- }, {
5092
- "value": "6";
5093
- "label": "6";
5094
- }, {
5095
- "value": "7";
5096
- "label": "7";
5097
- }, {
5098
- "value": "8";
5099
- "label": "8";
5100
- }, {
5101
- "value": "9";
5102
- "label": "9";
5103
- }, {
5104
- "value": "10";
5105
- "label": "10";
5106
- }, {
5107
- "value": "11";
5108
- "label": "11";
5109
- }, {
5110
- "value": "12";
5111
- "label": "12";
5112
- }, {
5113
- "value": "13";
5114
- "label": "13";
5115
- }, {
5116
- "value": "14";
5117
- "label": "14";
5118
- }, {
5119
- "value": "15";
5120
- "label": "15";
5121
- }, {
5122
- "value": "16";
5123
- "label": "16";
5124
- }, {
5125
- "value": "17";
5126
- "label": "17";
5127
- }, {
5128
- "value": "18";
5129
- "label": "18";
5130
- }, {
5131
- "value": "19";
5132
- "label": "19";
5133
- }, {
5134
- "value": "20";
5135
- "label": "20";
5136
- }, {
5137
- "value": "21";
5138
- "label": "21";
5139
- }, {
5140
- "value": "22";
5141
- "label": "22";
5142
- }, {
5143
- "value": "23";
5144
- "label": "23";
5145
- }, {
5146
- "value": "24";
5147
- "label": "24";
5148
- }, {
5149
- "value": "25";
5150
- "label": "25";
5151
- }, {
5152
- "value": "26";
5153
- "label": "26";
5154
- }, {
5155
- "value": "27";
5156
- "label": "27";
5157
- }, {
5158
- "value": "28";
5159
- "label": "28";
5160
- }, {
5161
- "value": "29";
5162
- "label": "29";
5163
- }, {
5164
- "value": "30";
5165
- "label": "30";
5166
- }, {
5167
- "value": "31";
5168
- "label": "31";
5169
- }];
4990
+ options: {
4991
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
5170
4992
  };
5171
4993
  };
5172
4994
  /** . */
5173
- 'repeatsUntil': {
5174
- type: 'dateTime';
5175
- options: undefined;
5176
- };
5177
- /** . */
5178
- 'occurrences': {
5179
- type: 'number';
5180
- options: undefined;
4995
+ 'target': {
4996
+ type: 'schema';
4997
+ isRequired: true;
4998
+ options: {
4999
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
5000
+ };
5181
5001
  };
5182
5002
  /** . */
5183
- 'interval': {
5184
- type: 'number';
5185
- options: undefined;
5003
+ 'payload': {
5004
+ type: 'schema';
5005
+ isRequired: true;
5006
+ options: {
5007
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
5008
+ };
5186
5009
  };
5010
+ };
5011
+ }
5012
+ interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
5013
+ }
5014
+ }
5015
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
5016
+ interface CreateCalendarEventResponsePayload {
5017
+ 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
5018
+ }
5019
+ interface CreateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
5020
+ id: 'createCalendarEventResponsePayload';
5021
+ version: 'v2021_05_19';
5022
+ namespace: 'Calendar';
5023
+ name: '';
5024
+ fields: {
5187
5025
  /** . */
5188
- 'nthOccurrences': {
5189
- type: 'number';
5190
- isArray: true;
5191
- options: undefined;
5026
+ 'calendarEvent': {
5027
+ type: 'schema';
5028
+ isRequired: true;
5029
+ options: {
5030
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
5031
+ };
5192
5032
  };
5033
+ };
5034
+ }
5035
+ interface CreateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventResponsePayloadSchema> {
5036
+ }
5037
+ }
5038
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
5039
+ interface GetSchedulesResponsePayload {
5040
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
5041
+ }
5042
+ interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
5043
+ id: 'getSchedulesResponsePayload';
5044
+ version: 'v2021_05_19';
5045
+ namespace: 'Calendar';
5046
+ name: '';
5047
+ fields: {
5193
5048
  /** . */
5194
- 'exclusionDates': {
5049
+ 'events': {
5195
5050
  type: 'schema';
5051
+ isRequired: true;
5196
5052
  isArray: true;
5053
+ minArrayLength: 0;
5197
5054
  options: {
5198
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.EventExclusionDateSchema;
5055
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
5199
5056
  };
5200
5057
  };
5058
+ };
5059
+ }
5060
+ interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
5061
+ }
5062
+ }
5063
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
5064
+ interface ListPeopleWithoutSchedulesEmitTarget {
5065
+ 'locationId': string;
5066
+ }
5067
+ interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
5068
+ id: 'listPeopleWithoutSchedulesEmitTarget';
5069
+ version: 'v2021_05_19';
5070
+ namespace: 'Calendar';
5071
+ name: '';
5072
+ fields: {
5201
5073
  /** . */
5202
- 'dateDeleted': {
5203
- type: 'dateTime';
5074
+ 'locationId': {
5075
+ type: 'id';
5076
+ isRequired: true;
5204
5077
  options: undefined;
5205
5078
  };
5079
+ };
5080
+ }
5081
+ interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
5082
+ }
5083
+ }
5084
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
5085
+ interface ListPeopleWithoutSchedulesEmitPayload {
5086
+ 'calendarIds': string[];
5087
+ }
5088
+ interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
5089
+ id: 'listPeopleWithoutSchedulesEmitPayload';
5090
+ version: 'v2021_05_19';
5091
+ namespace: 'Calendar';
5092
+ name: '';
5093
+ fields: {
5206
5094
  /** . */
5207
- 'nthInRepeating': {
5208
- type: 'number';
5095
+ 'calendarIds': {
5096
+ type: 'id';
5097
+ isRequired: true;
5098
+ isArray: true;
5209
5099
  options: undefined;
5210
5100
  };
5211
- /** . */
5212
- 'totalInRepeating': {
5213
- type: 'number';
5214
- options: undefined;
5101
+ };
5102
+ }
5103
+ interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
5104
+ }
5105
+ }
5106
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
5107
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
5108
+ /** Source. */
5109
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
5110
+ 'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
5111
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
5112
+ }
5113
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5114
+ id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
5115
+ version: 'v2021_05_19';
5116
+ namespace: 'Calendar';
5117
+ name: '';
5118
+ fields: {
5119
+ /** Source. */
5120
+ 'source': {
5121
+ label: 'Source';
5122
+ type: 'schema';
5123
+ options: {
5124
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
5125
+ };
5215
5126
  };
5216
5127
  /** . */
5217
- 'meta': {
5218
- type: 'raw';
5128
+ 'target': {
5129
+ type: 'schema';
5130
+ isRequired: true;
5219
5131
  options: {
5220
- valueType: `Record<string, any>`;
5132
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
5221
5133
  };
5222
5134
  };
5223
5135
  /** . */
5224
- 'venue': {
5136
+ 'payload': {
5225
5137
  type: 'schema';
5138
+ isRequired: true;
5226
5139
  options: {
5227
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.VenueSchema;
5140
+ schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
5228
5141
  };
5229
5142
  };
5230
5143
  };
5231
5144
  }
5232
- interface CreateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema> {
5145
+ interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
5233
5146
  }
5234
5147
  }
5235
5148
  namespace SpruceSchemas.Calendar.v2021_05_19 {
5236
- interface CreateCalendarEventResponsePayload {
5237
- 'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
5149
+ interface PersonWithoutSchedule {
5150
+ /** Id. */
5151
+ 'id': string;
5152
+ /** Casual name. The name you can use when talking to this person. */
5153
+ 'casualName': string;
5154
+ /** Avatar src. */
5155
+ 'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
5238
5156
  }
5239
- interface CreateCalendarEventResponsePayloadSchema extends SpruceSchema.Schema {
5240
- id: 'createCalendarEventResponsePayload';
5157
+ interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
5158
+ id: 'person-without-schedule';
5159
+ version: 'v2021_05_19';
5160
+ namespace: 'Calendar';
5161
+ name: '';
5162
+ fields: {
5163
+ /** Id. */
5164
+ 'id': {
5165
+ label: 'Id';
5166
+ type: 'id';
5167
+ isRequired: true;
5168
+ options: undefined;
5169
+ };
5170
+ /** Casual name. The name you can use when talking to this person. */
5171
+ 'casualName': {
5172
+ label: 'Casual name';
5173
+ type: 'text';
5174
+ isRequired: true;
5175
+ hint: 'The name you can use when talking to this person.';
5176
+ options: undefined;
5177
+ };
5178
+ /** Avatar src. */
5179
+ 'avatar': {
5180
+ label: 'Avatar src';
5181
+ type: 'image';
5182
+ options: {
5183
+ requiredSizes: ["*"];
5184
+ };
5185
+ };
5186
+ };
5187
+ }
5188
+ interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
5189
+ }
5190
+ }
5191
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
5192
+ interface ListPeopleWithoutSchedulesResponsePayload {
5193
+ 'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
5194
+ }
5195
+ interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
5196
+ id: 'listPeopleWithoutSchedulesResponsePayload';
5241
5197
  version: 'v2021_05_19';
5242
5198
  namespace: 'Calendar';
5243
5199
  name: '';
5244
5200
  fields: {
5245
5201
  /** . */
5246
- 'calendarEvent': {
5202
+ 'people': {
5247
5203
  type: 'schema';
5248
5204
  isRequired: true;
5205
+ isArray: true;
5206
+ minArrayLength: 0;
5249
5207
  options: {
5250
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
5208
+ schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
5251
5209
  };
5252
5210
  };
5253
5211
  };
5254
5212
  }
5255
- interface CreateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventResponsePayloadSchema> {
5213
+ interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
5256
5214
  }
5257
5215
  }
5258
5216
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -5281,6 +5239,48 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
5281
5239
  interface CalendarTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema> {
5282
5240
  }
5283
5241
  }
5242
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
5243
+ interface DidCreateCalendarEventEmitTargetAndPayload {
5244
+ /** Source. */
5245
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
5246
+ 'target': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTarget;
5247
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayload;
5248
+ }
5249
+ interface DidCreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
5250
+ id: 'didCreateCalendarEventEmitTargetAndPayload';
5251
+ version: 'v2021_05_19';
5252
+ namespace: 'Calendar';
5253
+ name: '';
5254
+ fields: {
5255
+ /** Source. */
5256
+ 'source': {
5257
+ label: 'Source';
5258
+ type: 'schema';
5259
+ options: {
5260
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
5261
+ };
5262
+ };
5263
+ /** . */
5264
+ 'target': {
5265
+ type: 'schema';
5266
+ isRequired: true;
5267
+ options: {
5268
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetSchema;
5269
+ };
5270
+ };
5271
+ /** . */
5272
+ 'payload': {
5273
+ type: 'schema';
5274
+ isRequired: true;
5275
+ options: {
5276
+ schema: SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitPayloadSchema;
5277
+ };
5278
+ };
5279
+ };
5280
+ }
5281
+ interface DidCreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetAndPayloadSchema> {
5282
+ }
5283
+ }
5284
5284
  namespace SpruceSchemas.Calendar.v2021_05_19 {
5285
5285
  interface CalendarEventType {
5286
5286
  'id': string;