@sprucelabs/spruce-calendar-components 28.1.36 → 28.1.37

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.
@@ -718,6 +718,81 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
718
718
  interface UpsertThemeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.UpsertThemeEmitPayloadSchema> {
719
719
  }
720
720
  }
721
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
722
+ interface CreateCalendarEmitTargetAndPayload {
723
+ /** Source. */
724
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
725
+ 'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitTarget;
726
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitPayload;
727
+ }
728
+ interface CreateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
729
+ id: 'createCalendarEmitTargetAndPayload';
730
+ version: 'v2021_05_19';
731
+ namespace: 'Calendar';
732
+ name: '';
733
+ fields: {
734
+ /** Source. */
735
+ 'source': {
736
+ label: 'Source';
737
+ type: 'schema';
738
+ options: {
739
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
740
+ };
741
+ };
742
+ /** . */
743
+ 'target': {
744
+ type: 'schema';
745
+ isRequired: true;
746
+ options: {
747
+ schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitTargetSchema;
748
+ };
749
+ };
750
+ /** . */
751
+ 'payload': {
752
+ type: 'schema';
753
+ isRequired: true;
754
+ options: {
755
+ schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitPayloadSchema;
756
+ };
757
+ };
758
+ };
759
+ }
760
+ interface CreateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitTargetAndPayloadSchema> {
761
+ }
762
+ }
763
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
764
+ interface GetPreferencesEmitTargetAndPayload {
765
+ /** Source. */
766
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
767
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
768
+ }
769
+ interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
770
+ id: 'getPreferencesEmitTargetAndPayload';
771
+ version: 'v2021_05_19';
772
+ namespace: 'Calendar';
773
+ name: '';
774
+ fields: {
775
+ /** Source. */
776
+ 'source': {
777
+ label: 'Source';
778
+ type: 'schema';
779
+ options: {
780
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
781
+ };
782
+ };
783
+ /** . */
784
+ 'target': {
785
+ type: 'schema';
786
+ isRequired: true;
787
+ options: {
788
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
789
+ };
790
+ };
791
+ };
792
+ }
793
+ interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
794
+ }
795
+ }
721
796
  namespace SpruceSchemas.Calendar.v2021_05_19 {
722
797
  interface CreateCalendarEmitTarget {
723
798
  'organizationId': string;
@@ -789,48 +864,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
789
864
  interface CreateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitPayloadSchema> {
790
865
  }
791
866
  }
792
- namespace SpruceSchemas.Calendar.v2021_05_19 {
793
- interface CreateCalendarEmitTargetAndPayload {
794
- /** Source. */
795
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
796
- 'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitTarget;
797
- 'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitPayload;
798
- }
799
- interface CreateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
800
- id: 'createCalendarEmitTargetAndPayload';
801
- version: 'v2021_05_19';
802
- namespace: 'Calendar';
803
- name: '';
804
- fields: {
805
- /** Source. */
806
- 'source': {
807
- label: 'Source';
808
- type: 'schema';
809
- options: {
810
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
811
- };
812
- };
813
- /** . */
814
- 'target': {
815
- type: 'schema';
816
- isRequired: true;
817
- options: {
818
- schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitTargetSchema;
819
- };
820
- };
821
- /** . */
822
- 'payload': {
823
- type: 'schema';
824
- isRequired: true;
825
- options: {
826
- schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitPayloadSchema;
827
- };
828
- };
829
- };
830
- }
831
- interface CreateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEmitTargetAndPayloadSchema> {
832
- }
833
- }
834
867
  namespace SpruceSchemas.Calendar.v2021_05_19 {
835
868
  interface CreateCalendarResponsePayload {
836
869
  'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
@@ -2165,11 +2198,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2165
2198
  }
2166
2199
  }
2167
2200
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2168
- interface GetPreferencesEmitTarget {
2201
+ interface GetConflictsForTimeRangeEmitTarget {
2169
2202
  'organizationId': string;
2203
+ 'calendarIds': string[];
2170
2204
  }
2171
- interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2172
- id: 'getPreferencesEmitTarget';
2205
+ interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2206
+ id: 'getConflictsForTimeRangeEmitTarget';
2173
2207
  version: 'v2021_05_19';
2174
2208
  namespace: 'Calendar';
2175
2209
  name: '';
@@ -2180,19 +2214,27 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2180
2214
  isRequired: true;
2181
2215
  options: undefined;
2182
2216
  };
2217
+ /** . */
2218
+ 'calendarIds': {
2219
+ type: 'id';
2220
+ isRequired: true;
2221
+ isArray: true;
2222
+ options: undefined;
2223
+ };
2183
2224
  };
2184
2225
  }
2185
- interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2226
+ interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2186
2227
  }
2187
2228
  }
2188
2229
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2189
- interface GetPreferencesEmitTargetAndPayload {
2230
+ interface GetConflictsForTimeRangeEmitTargetAndPayload {
2190
2231
  /** Source. */
2191
2232
  'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2192
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
2233
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2234
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2193
2235
  }
2194
- interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2195
- id: 'getPreferencesEmitTargetAndPayload';
2236
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2237
+ id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2196
2238
  version: 'v2021_05_19';
2197
2239
  namespace: 'Calendar';
2198
2240
  name: '';
@@ -2210,102 +2252,57 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2210
2252
  type: 'schema';
2211
2253
  isRequired: true;
2212
2254
  options: {
2213
- schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
2255
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2214
2256
  };
2215
2257
  };
2216
- };
2217
- }
2218
- interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
2219
- }
2220
- }
2221
- namespace SpruceSchemas.Calendar.v2021_05_19 {
2222
- interface GetPreferencesResponsePayload {
2223
- 'selectedCalendarIds'?: string[] | undefined | null;
2224
- 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2225
- 'visiblePeopleIds'?: string[] | undefined | null;
2226
- }
2227
- interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2228
- id: 'getPreferencesResponsePayload';
2229
- version: 'v2021_05_19';
2230
- namespace: 'Calendar';
2231
- name: '';
2232
- fields: {
2233
- /** . */
2234
- 'selectedCalendarIds': {
2235
- type: 'id';
2236
- isArray: true;
2237
- minArrayLength: 0;
2238
- options: undefined;
2239
- };
2240
2258
  /** . */
2241
- 'visiblePeopleMode': {
2242
- type: 'select';
2259
+ 'payload': {
2260
+ type: 'schema';
2261
+ isRequired: true;
2243
2262
  options: {
2244
- choices: [{
2245
- "value": "me";
2246
- "label": "Me";
2247
- }, {
2248
- "value": "working";
2249
- "label": "Working";
2250
- }, {
2251
- "value": "custom";
2252
- "label": "Custom";
2253
- }];
2263
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2254
2264
  };
2255
2265
  };
2256
- /** . */
2257
- 'visiblePeopleIds': {
2258
- type: 'text';
2259
- isArray: true;
2260
- options: undefined;
2261
- };
2262
2266
  };
2263
2267
  }
2264
- interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2268
+ interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2265
2269
  }
2266
2270
  }
2267
2271
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2268
- interface GetSchedulesEmitTarget {
2269
- 'organizationId'?: string | undefined | null;
2270
- 'locationId'?: string | undefined | null;
2271
- 'calendarIds': string[];
2272
+ interface Teammate {
2273
+ 'personId': string;
2274
+ 'durationMinutes': number;
2272
2275
  }
2273
- interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
2274
- id: 'getSchedulesEmitTarget';
2276
+ interface TeammateSchema extends SpruceSchema.Schema {
2277
+ id: 'teammate';
2275
2278
  version: 'v2021_05_19';
2276
2279
  namespace: 'Calendar';
2277
2280
  name: '';
2278
2281
  fields: {
2279
2282
  /** . */
2280
- 'organizationId': {
2281
- type: 'id';
2282
- options: undefined;
2283
- };
2284
- /** . */
2285
- 'locationId': {
2283
+ 'personId': {
2286
2284
  type: 'id';
2285
+ isRequired: true;
2287
2286
  options: undefined;
2288
2287
  };
2289
2288
  /** . */
2290
- 'calendarIds': {
2291
- type: 'id';
2289
+ 'durationMinutes': {
2290
+ type: 'number';
2292
2291
  isRequired: true;
2293
- isArray: true;
2294
2292
  options: undefined;
2295
2293
  };
2296
2294
  };
2297
2295
  }
2298
- interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
2296
+ interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2299
2297
  }
2300
2298
  }
2301
2299
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2302
- interface GetSchedulesEmitPayload {
2300
+ interface GetConflictsForTimeRangeEmitPayload {
2303
2301
  'startDateTimeMs': number;
2304
- 'endDateTimeMs': number;
2305
- 'personIds'?: string[] | undefined | null;
2302
+ 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2306
2303
  }
2307
- interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
2308
- id: 'getSchedulesEmitPayload';
2304
+ interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2305
+ id: 'getConflictsForTimeRangeEmitPayload';
2309
2306
  version: 'v2021_05_19';
2310
2307
  namespace: 'Calendar';
2311
2308
  name: '';
@@ -2317,255 +2314,258 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2317
2314
  options: undefined;
2318
2315
  };
2319
2316
  /** . */
2320
- 'endDateTimeMs': {
2321
- type: 'number';
2317
+ 'teammate': {
2318
+ type: 'schema';
2322
2319
  isRequired: true;
2323
- options: undefined;
2324
- };
2325
- /** . */
2326
- 'personIds': {
2327
- type: 'id';
2328
- isArray: true;
2329
- options: undefined;
2320
+ options: {
2321
+ schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2322
+ };
2330
2323
  };
2331
2324
  };
2332
2325
  }
2333
- interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
2326
+ interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2334
2327
  }
2335
2328
  }
2336
2329
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2337
- interface GetSchedulesEmitTargetAndPayload {
2338
- /** Source. */
2339
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2340
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
2341
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
2330
+ interface GetConflictsForTimeRangeResponsePayload {
2331
+ 'isAvailable': boolean;
2332
+ 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2333
+ 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2342
2334
  }
2343
- interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2344
- id: 'getSchedulesEmitTargetAndPayload';
2335
+ interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2336
+ id: 'getConflictsForTimeRangeResponsePayload';
2345
2337
  version: 'v2021_05_19';
2346
2338
  namespace: 'Calendar';
2347
2339
  name: '';
2348
2340
  fields: {
2349
- /** Source. */
2350
- 'source': {
2351
- label: 'Source';
2352
- type: 'schema';
2353
- options: {
2354
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2355
- };
2341
+ /** . */
2342
+ 'isAvailable': {
2343
+ type: 'boolean';
2344
+ isRequired: true;
2345
+ options: undefined;
2356
2346
  };
2357
2347
  /** . */
2358
- 'target': {
2348
+ 'excludedBy': {
2359
2349
  type: 'schema';
2360
- isRequired: true;
2350
+ isArray: true;
2361
2351
  options: {
2362
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
2352
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2363
2353
  };
2364
2354
  };
2365
2355
  /** . */
2366
- 'payload': {
2356
+ 'overlapsWith': {
2367
2357
  type: 'schema';
2368
- isRequired: true;
2358
+ isArray: true;
2369
2359
  options: {
2370
- schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
2360
+ schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2371
2361
  };
2372
2362
  };
2373
2363
  };
2374
2364
  }
2375
- interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
2365
+ interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2376
2366
  }
2377
2367
  }
2378
2368
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2379
- interface GetSchedulesResponsePayload {
2380
- 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2369
+ interface GetPreferencesEmitTarget {
2370
+ 'organizationId': string;
2381
2371
  }
2382
- interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
2383
- id: 'getSchedulesResponsePayload';
2372
+ interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
2373
+ id: 'getPreferencesEmitTarget';
2384
2374
  version: 'v2021_05_19';
2385
2375
  namespace: 'Calendar';
2386
2376
  name: '';
2387
2377
  fields: {
2388
2378
  /** . */
2389
- 'events': {
2390
- type: 'schema';
2379
+ 'organizationId': {
2380
+ type: 'id';
2391
2381
  isRequired: true;
2392
- isArray: true;
2393
- minArrayLength: 0;
2394
- options: {
2395
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2396
- };
2382
+ options: undefined;
2397
2383
  };
2398
2384
  };
2399
2385
  }
2400
- interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
2386
+ interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
2401
2387
  }
2402
2388
  }
2403
2389
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2404
- interface GetConflictsForTimeRangeEmitTarget {
2405
- 'organizationId': string;
2406
- 'calendarIds': string[];
2390
+ interface GetPreferencesResponsePayload {
2391
+ 'selectedCalendarIds'?: string[] | undefined | null;
2392
+ 'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
2393
+ 'visiblePeopleIds'?: string[] | undefined | null;
2407
2394
  }
2408
- interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
2409
- id: 'getConflictsForTimeRangeEmitTarget';
2395
+ interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
2396
+ id: 'getPreferencesResponsePayload';
2410
2397
  version: 'v2021_05_19';
2411
2398
  namespace: 'Calendar';
2412
2399
  name: '';
2413
2400
  fields: {
2414
2401
  /** . */
2415
- 'organizationId': {
2402
+ 'selectedCalendarIds': {
2416
2403
  type: 'id';
2417
- isRequired: true;
2404
+ isArray: true;
2405
+ minArrayLength: 0;
2418
2406
  options: undefined;
2419
2407
  };
2420
2408
  /** . */
2421
- 'calendarIds': {
2422
- type: 'id';
2423
- isRequired: true;
2409
+ 'visiblePeopleMode': {
2410
+ type: 'select';
2411
+ options: {
2412
+ choices: [{
2413
+ "value": "me";
2414
+ "label": "Me";
2415
+ }, {
2416
+ "value": "working";
2417
+ "label": "Working";
2418
+ }, {
2419
+ "value": "custom";
2420
+ "label": "Custom";
2421
+ }];
2422
+ };
2423
+ };
2424
+ /** . */
2425
+ 'visiblePeopleIds': {
2426
+ type: 'text';
2424
2427
  isArray: true;
2425
2428
  options: undefined;
2426
2429
  };
2427
2430
  };
2428
2431
  }
2429
- interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
2432
+ interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
2430
2433
  }
2431
2434
  }
2432
2435
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2433
- interface GetConflictsForTimeRangeEmitTargetAndPayload {
2434
- /** Source. */
2435
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2436
- 'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
2437
- 'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
2436
+ interface GetSchedulesEmitTarget {
2437
+ 'organizationId'?: string | undefined | null;
2438
+ 'locationId'?: string | undefined | null;
2439
+ 'calendarIds': string[];
2438
2440
  }
2439
- interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2440
- id: 'getConflictsForTimeRangeEmitTargetAndPayload';
2441
+ interface GetSchedulesEmitTargetSchema extends SpruceSchema.Schema {
2442
+ id: 'getSchedulesEmitTarget';
2441
2443
  version: 'v2021_05_19';
2442
2444
  namespace: 'Calendar';
2443
2445
  name: '';
2444
2446
  fields: {
2445
- /** Source. */
2446
- 'source': {
2447
- label: 'Source';
2448
- type: 'schema';
2449
- options: {
2450
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2451
- };
2447
+ /** . */
2448
+ 'organizationId': {
2449
+ type: 'id';
2450
+ options: undefined;
2452
2451
  };
2453
2452
  /** . */
2454
- 'target': {
2455
- type: 'schema';
2456
- isRequired: true;
2457
- options: {
2458
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
2459
- };
2453
+ 'locationId': {
2454
+ type: 'id';
2455
+ options: undefined;
2460
2456
  };
2461
2457
  /** . */
2462
- 'payload': {
2463
- type: 'schema';
2458
+ 'calendarIds': {
2459
+ type: 'id';
2464
2460
  isRequired: true;
2465
- options: {
2466
- schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
2467
- };
2461
+ isArray: true;
2462
+ options: undefined;
2468
2463
  };
2469
2464
  };
2470
2465
  }
2471
- interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
2466
+ interface GetSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema> {
2472
2467
  }
2473
2468
  }
2474
2469
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2475
- interface Teammate {
2476
- 'personId': string;
2477
- 'durationMinutes': number;
2470
+ interface GetSchedulesEmitPayload {
2471
+ 'startDateTimeMs': number;
2472
+ 'endDateTimeMs': number;
2473
+ 'personIds'?: string[] | undefined | null;
2478
2474
  }
2479
- interface TeammateSchema extends SpruceSchema.Schema {
2480
- id: 'teammate';
2475
+ interface GetSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
2476
+ id: 'getSchedulesEmitPayload';
2481
2477
  version: 'v2021_05_19';
2482
2478
  namespace: 'Calendar';
2483
2479
  name: '';
2484
2480
  fields: {
2485
2481
  /** . */
2486
- 'personId': {
2487
- type: 'id';
2482
+ 'startDateTimeMs': {
2483
+ type: 'number';
2488
2484
  isRequired: true;
2489
2485
  options: undefined;
2490
2486
  };
2491
2487
  /** . */
2492
- 'durationMinutes': {
2488
+ 'endDateTimeMs': {
2493
2489
  type: 'number';
2494
2490
  isRequired: true;
2495
2491
  options: undefined;
2496
2492
  };
2493
+ /** . */
2494
+ 'personIds': {
2495
+ type: 'id';
2496
+ isArray: true;
2497
+ options: undefined;
2498
+ };
2497
2499
  };
2498
2500
  }
2499
- interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
2501
+ interface GetSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema> {
2500
2502
  }
2501
2503
  }
2502
2504
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2503
- interface GetConflictsForTimeRangeEmitPayload {
2504
- 'startDateTimeMs': number;
2505
- 'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
2505
+ interface GetSchedulesEmitTargetAndPayload {
2506
+ /** Source. */
2507
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
2508
+ 'target': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTarget;
2509
+ 'payload': SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayload;
2506
2510
  }
2507
- interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
2508
- id: 'getConflictsForTimeRangeEmitPayload';
2511
+ interface GetSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
2512
+ id: 'getSchedulesEmitTargetAndPayload';
2509
2513
  version: 'v2021_05_19';
2510
2514
  namespace: 'Calendar';
2511
2515
  name: '';
2512
2516
  fields: {
2517
+ /** Source. */
2518
+ 'source': {
2519
+ label: 'Source';
2520
+ type: 'schema';
2521
+ options: {
2522
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
2523
+ };
2524
+ };
2513
2525
  /** . */
2514
- 'startDateTimeMs': {
2515
- type: 'number';
2526
+ 'target': {
2527
+ type: 'schema';
2516
2528
  isRequired: true;
2517
- options: undefined;
2529
+ options: {
2530
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetSchema;
2531
+ };
2518
2532
  };
2519
2533
  /** . */
2520
- 'teammate': {
2534
+ 'payload': {
2521
2535
  type: 'schema';
2522
2536
  isRequired: true;
2523
2537
  options: {
2524
- schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
2538
+ schema: SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitPayloadSchema;
2525
2539
  };
2526
2540
  };
2527
2541
  };
2528
2542
  }
2529
- interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
2543
+ interface GetSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesEmitTargetAndPayloadSchema> {
2530
2544
  }
2531
2545
  }
2532
2546
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2533
- interface GetConflictsForTimeRangeResponsePayload {
2534
- 'isAvailable': boolean;
2535
- 'excludedBy'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2536
- 'overlapsWith'?: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[] | undefined | null;
2547
+ interface GetSchedulesResponsePayload {
2548
+ 'events': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent[];
2537
2549
  }
2538
- interface GetConflictsForTimeRangeResponsePayloadSchema extends SpruceSchema.Schema {
2539
- id: 'getConflictsForTimeRangeResponsePayload';
2550
+ interface GetSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
2551
+ id: 'getSchedulesResponsePayload';
2540
2552
  version: 'v2021_05_19';
2541
2553
  namespace: 'Calendar';
2542
2554
  name: '';
2543
2555
  fields: {
2544
2556
  /** . */
2545
- 'isAvailable': {
2546
- type: 'boolean';
2547
- isRequired: true;
2548
- options: undefined;
2549
- };
2550
- /** . */
2551
- 'excludedBy': {
2552
- type: 'schema';
2553
- isArray: true;
2554
- options: {
2555
- schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2556
- };
2557
- };
2558
- /** . */
2559
- 'overlapsWith': {
2557
+ 'events': {
2560
2558
  type: 'schema';
2559
+ isRequired: true;
2561
2560
  isArray: true;
2561
+ minArrayLength: 0;
2562
2562
  options: {
2563
2563
  schema: SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema;
2564
2564
  };
2565
2565
  };
2566
2566
  };
2567
2567
  }
2568
- interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
2568
+ interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
2569
2569
  }
2570
2570
  }
2571
2571
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -2969,238 +2969,43 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
2969
2969
  }
2970
2970
  }
2971
2971
  namespace SpruceSchemas.Calendar.v2021_05_19 {
2972
- interface UpdateCalendarEmitTarget {
2973
- 'organizationId': string;
2974
- 'calendarId': string;
2972
+ interface UpdateCalendarEventEmitTarget {
2973
+ 'organizationId'?: string | undefined | null;
2974
+ 'locationId'?: string | undefined | null;
2975
+ 'calendarEventId': string;
2976
+ 'calendarEventPersonId': string;
2975
2977
  }
2976
- interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
2977
- id: 'updateCalendarEmitTarget';
2978
+ interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
2979
+ id: 'updateCalendarEventEmitTarget';
2978
2980
  version: 'v2021_05_19';
2979
2981
  namespace: 'Calendar';
2980
2982
  name: '';
2981
2983
  fields: {
2982
2984
  /** . */
2983
2985
  'organizationId': {
2986
+ type: 'id';
2987
+ options: undefined;
2988
+ };
2989
+ /** . */
2990
+ 'locationId': {
2991
+ type: 'id';
2992
+ options: undefined;
2993
+ };
2994
+ /** . */
2995
+ 'calendarEventId': {
2984
2996
  type: 'id';
2985
2997
  isRequired: true;
2986
2998
  options: undefined;
2987
2999
  };
2988
3000
  /** . */
2989
- 'calendarId': {
3001
+ 'calendarEventPersonId': {
2990
3002
  type: 'id';
2991
3003
  isRequired: true;
2992
3004
  options: undefined;
2993
3005
  };
2994
3006
  };
2995
3007
  }
2996
- interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
2997
- }
2998
- }
2999
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3000
- interface UpdateCalendarEmitPayload {
3001
- 'slug'?: string | undefined | null;
3002
- 'title'?: string | undefined | null;
3003
- 'eventTypes'?: string[] | undefined | null;
3004
- 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3005
- 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3006
- 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3007
- }
3008
- interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3009
- id: 'updateCalendarEmitPayload';
3010
- version: 'v2021_05_19';
3011
- namespace: 'Calendar';
3012
- name: '';
3013
- fields: {
3014
- /** . */
3015
- 'slug': {
3016
- type: 'id';
3017
- options: undefined;
3018
- };
3019
- /** . */
3020
- 'title': {
3021
- type: 'text';
3022
- options: undefined;
3023
- };
3024
- /** . */
3025
- 'eventTypes': {
3026
- type: 'text';
3027
- isArray: true;
3028
- minArrayLength: 0;
3029
- options: undefined;
3030
- };
3031
- /** . */
3032
- 'target': {
3033
- type: 'schema';
3034
- options: {
3035
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3036
- };
3037
- };
3038
- /** . */
3039
- 'dateDeleted': {
3040
- type: 'dateTime';
3041
- options: undefined;
3042
- };
3043
- /** . */
3044
- 'availableTimeSlotBehavior': {
3045
- type: 'select';
3046
- options: {
3047
- choices: [{
3048
- "value": "include";
3049
- "label": "Include";
3050
- }, {
3051
- "value": "exclude";
3052
- "label": "Exclude";
3053
- }];
3054
- };
3055
- };
3056
- };
3057
- }
3058
- interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3059
- }
3060
- }
3061
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3062
- interface UpdateCalendarEmitTargetAndPayload {
3063
- /** Source. */
3064
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3065
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3066
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3067
- }
3068
- interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3069
- id: 'updateCalendarEmitTargetAndPayload';
3070
- version: 'v2021_05_19';
3071
- namespace: 'Calendar';
3072
- name: '';
3073
- fields: {
3074
- /** Source. */
3075
- 'source': {
3076
- label: 'Source';
3077
- type: 'schema';
3078
- options: {
3079
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3080
- };
3081
- };
3082
- /** . */
3083
- 'target': {
3084
- type: 'schema';
3085
- isRequired: true;
3086
- options: {
3087
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3088
- };
3089
- };
3090
- /** . */
3091
- 'payload': {
3092
- type: 'schema';
3093
- options: {
3094
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3095
- };
3096
- };
3097
- };
3098
- }
3099
- interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3100
- }
3101
- }
3102
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3103
- interface UpdateCalendarResponsePayload {
3104
- 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3105
- }
3106
- interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3107
- id: 'updateCalendarResponsePayload';
3108
- version: 'v2021_05_19';
3109
- namespace: 'Calendar';
3110
- name: '';
3111
- fields: {
3112
- /** . */
3113
- 'calendar': {
3114
- type: 'schema';
3115
- isRequired: true;
3116
- options: {
3117
- schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3118
- };
3119
- };
3120
- };
3121
- }
3122
- interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3123
- }
3124
- }
3125
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3126
- interface UpdateCalendarEventEmitTarget {
3127
- 'organizationId'?: string | undefined | null;
3128
- 'locationId'?: string | undefined | null;
3129
- 'calendarEventId': string;
3130
- 'calendarEventPersonId': string;
3131
- }
3132
- interface UpdateCalendarEventEmitTargetSchema extends SpruceSchema.Schema {
3133
- id: 'updateCalendarEventEmitTarget';
3134
- version: 'v2021_05_19';
3135
- namespace: 'Calendar';
3136
- name: '';
3137
- fields: {
3138
- /** . */
3139
- 'organizationId': {
3140
- type: 'id';
3141
- options: undefined;
3142
- };
3143
- /** . */
3144
- 'locationId': {
3145
- type: 'id';
3146
- options: undefined;
3147
- };
3148
- /** . */
3149
- 'calendarEventId': {
3150
- type: 'id';
3151
- isRequired: true;
3152
- options: undefined;
3153
- };
3154
- /** . */
3155
- 'calendarEventPersonId': {
3156
- type: 'id';
3157
- isRequired: true;
3158
- options: undefined;
3159
- };
3160
- };
3161
- }
3162
- interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
3163
- }
3164
- }
3165
- namespace SpruceSchemas.Calendar.v2021_05_19 {
3166
- interface UpdateCalendarEventEmitTargetAndPayload {
3167
- /** Source. */
3168
- 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3169
- 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
3170
- 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
3171
- }
3172
- interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3173
- id: 'updateCalendarEventEmitTargetAndPayload';
3174
- version: 'v2021_05_19';
3175
- namespace: 'Calendar';
3176
- name: '';
3177
- fields: {
3178
- /** Source. */
3179
- 'source': {
3180
- label: 'Source';
3181
- type: 'schema';
3182
- options: {
3183
- schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3184
- };
3185
- };
3186
- /** . */
3187
- 'target': {
3188
- type: 'schema';
3189
- isRequired: true;
3190
- options: {
3191
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3192
- };
3193
- };
3194
- /** . */
3195
- 'payload': {
3196
- type: 'schema';
3197
- options: {
3198
- schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
3199
- };
3200
- };
3201
- };
3202
- }
3203
- interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
3008
+ interface UpdateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema> {
3204
3009
  }
3205
3010
  }
3206
3011
  namespace SpruceSchemas.Calendar.v2021_05_19 {
@@ -3552,6 +3357,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3552
3357
  interface UpdateCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema> {
3553
3358
  }
3554
3359
  }
3360
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3361
+ interface UpdateCalendarEventEmitTargetAndPayload {
3362
+ /** Source. */
3363
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3364
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTarget;
3365
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload | undefined | null;
3366
+ }
3367
+ interface UpdateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3368
+ id: 'updateCalendarEventEmitTargetAndPayload';
3369
+ version: 'v2021_05_19';
3370
+ namespace: 'Calendar';
3371
+ name: '';
3372
+ fields: {
3373
+ /** Source. */
3374
+ 'source': {
3375
+ label: 'Source';
3376
+ type: 'schema';
3377
+ options: {
3378
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3379
+ };
3380
+ };
3381
+ /** . */
3382
+ 'target': {
3383
+ type: 'schema';
3384
+ isRequired: true;
3385
+ options: {
3386
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetSchema;
3387
+ };
3388
+ };
3389
+ /** . */
3390
+ 'payload': {
3391
+ type: 'schema';
3392
+ options: {
3393
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayloadSchema;
3394
+ };
3395
+ };
3396
+ };
3397
+ }
3398
+ interface UpdateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitTargetAndPayloadSchema> {
3399
+ }
3400
+ }
3555
3401
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3556
3402
  interface UpdateCalendarEventResponsePayload {
3557
3403
  'calendarEvent': SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
@@ -3575,6 +3421,160 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
3575
3421
  interface UpdateCalendarEventResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventResponsePayloadSchema> {
3576
3422
  }
3577
3423
  }
3424
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3425
+ interface UpdateCalendarEmitTarget {
3426
+ 'organizationId': string;
3427
+ 'calendarId': string;
3428
+ }
3429
+ interface UpdateCalendarEmitTargetSchema extends SpruceSchema.Schema {
3430
+ id: 'updateCalendarEmitTarget';
3431
+ version: 'v2021_05_19';
3432
+ namespace: 'Calendar';
3433
+ name: '';
3434
+ fields: {
3435
+ /** . */
3436
+ 'organizationId': {
3437
+ type: 'id';
3438
+ isRequired: true;
3439
+ options: undefined;
3440
+ };
3441
+ /** . */
3442
+ 'calendarId': {
3443
+ type: 'id';
3444
+ isRequired: true;
3445
+ options: undefined;
3446
+ };
3447
+ };
3448
+ }
3449
+ interface UpdateCalendarEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema> {
3450
+ }
3451
+ }
3452
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3453
+ interface UpdateCalendarEmitPayload {
3454
+ 'slug'?: string | undefined | null;
3455
+ 'title'?: string | undefined | null;
3456
+ 'eventTypes'?: string[] | undefined | null;
3457
+ 'target'?: SpruceSchemas.Calendar.v2021_05_19.CalendarTarget | undefined | null;
3458
+ 'dateDeleted'?: SpruceSchema.DateTimeFieldValue | undefined | null;
3459
+ 'availableTimeSlotBehavior'?: ("include" | "exclude") | undefined | null;
3460
+ }
3461
+ interface UpdateCalendarEmitPayloadSchema extends SpruceSchema.Schema {
3462
+ id: 'updateCalendarEmitPayload';
3463
+ version: 'v2021_05_19';
3464
+ namespace: 'Calendar';
3465
+ name: '';
3466
+ fields: {
3467
+ /** . */
3468
+ 'slug': {
3469
+ type: 'id';
3470
+ options: undefined;
3471
+ };
3472
+ /** . */
3473
+ 'title': {
3474
+ type: 'text';
3475
+ options: undefined;
3476
+ };
3477
+ /** . */
3478
+ 'eventTypes': {
3479
+ type: 'text';
3480
+ isArray: true;
3481
+ minArrayLength: 0;
3482
+ options: undefined;
3483
+ };
3484
+ /** . */
3485
+ 'target': {
3486
+ type: 'schema';
3487
+ options: {
3488
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema;
3489
+ };
3490
+ };
3491
+ /** . */
3492
+ 'dateDeleted': {
3493
+ type: 'dateTime';
3494
+ options: undefined;
3495
+ };
3496
+ /** . */
3497
+ 'availableTimeSlotBehavior': {
3498
+ type: 'select';
3499
+ options: {
3500
+ choices: [{
3501
+ "value": "include";
3502
+ "label": "Include";
3503
+ }, {
3504
+ "value": "exclude";
3505
+ "label": "Exclude";
3506
+ }];
3507
+ };
3508
+ };
3509
+ };
3510
+ }
3511
+ interface UpdateCalendarEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema> {
3512
+ }
3513
+ }
3514
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3515
+ interface UpdateCalendarEmitTargetAndPayload {
3516
+ /** Source. */
3517
+ 'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
3518
+ 'target': SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTarget;
3519
+ 'payload'?: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayload | undefined | null;
3520
+ }
3521
+ interface UpdateCalendarEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
3522
+ id: 'updateCalendarEmitTargetAndPayload';
3523
+ version: 'v2021_05_19';
3524
+ namespace: 'Calendar';
3525
+ name: '';
3526
+ fields: {
3527
+ /** Source. */
3528
+ 'source': {
3529
+ label: 'Source';
3530
+ type: 'schema';
3531
+ options: {
3532
+ schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
3533
+ };
3534
+ };
3535
+ /** . */
3536
+ 'target': {
3537
+ type: 'schema';
3538
+ isRequired: true;
3539
+ options: {
3540
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetSchema;
3541
+ };
3542
+ };
3543
+ /** . */
3544
+ 'payload': {
3545
+ type: 'schema';
3546
+ options: {
3547
+ schema: SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitPayloadSchema;
3548
+ };
3549
+ };
3550
+ };
3551
+ }
3552
+ interface UpdateCalendarEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEmitTargetAndPayloadSchema> {
3553
+ }
3554
+ }
3555
+ namespace SpruceSchemas.Calendar.v2021_05_19 {
3556
+ interface UpdateCalendarResponsePayload {
3557
+ 'calendar': SpruceSchemas.Calendar.v2021_05_19.Calendar;
3558
+ }
3559
+ interface UpdateCalendarResponsePayloadSchema extends SpruceSchema.Schema {
3560
+ id: 'updateCalendarResponsePayload';
3561
+ version: 'v2021_05_19';
3562
+ namespace: 'Calendar';
3563
+ name: '';
3564
+ fields: {
3565
+ /** . */
3566
+ 'calendar': {
3567
+ type: 'schema';
3568
+ isRequired: true;
3569
+ options: {
3570
+ schema: SpruceSchemas.Calendar.v2021_05_19.CalendarSchema;
3571
+ };
3572
+ };
3573
+ };
3574
+ }
3575
+ interface UpdateCalendarResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarResponsePayloadSchema> {
3576
+ }
3577
+ }
3578
3578
  namespace SpruceSchemas.Calendar.v2021_05_19 {
3579
3579
  interface UpdatePreferencesEmitTarget {
3580
3580
  'organizationId': string;