@sprucelabs/spruce-calendar-components 22.6.8 → 22.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/.spruce/schemas/schemas.types.d.ts +100 -100
- package/build/esm/.spruce/schemas/schemas.types.d.ts +100 -100
- package/build/esm/stores/RemoteEventStore.js +2 -2
- package/build/esm/viewControllers/Calendar.vc.js +6 -7
- package/build/stores/RemoteEventStore.js +2 -2
- package/build/viewControllers/Calendar.vc.js +6 -7
- package/package.json +1 -1
|
@@ -2346,106 +2346,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2346
2346
|
interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2350
|
-
interface GetPreferencesEmitTarget {
|
|
2351
|
-
'organizationId': string;
|
|
2352
|
-
}
|
|
2353
|
-
interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
|
|
2354
|
-
id: 'getPreferencesEmitTarget';
|
|
2355
|
-
version: 'v2021_05_19';
|
|
2356
|
-
namespace: 'Calendar';
|
|
2357
|
-
name: '';
|
|
2358
|
-
fields: {
|
|
2359
|
-
/** . */
|
|
2360
|
-
'organizationId': {
|
|
2361
|
-
type: 'id';
|
|
2362
|
-
isRequired: true;
|
|
2363
|
-
options: undefined;
|
|
2364
|
-
};
|
|
2365
|
-
};
|
|
2366
|
-
}
|
|
2367
|
-
interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
|
|
2368
|
-
}
|
|
2369
|
-
}
|
|
2370
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2371
|
-
interface GetPreferencesEmitTargetAndPayload {
|
|
2372
|
-
/** Source. */
|
|
2373
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
2374
|
-
'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
|
|
2375
|
-
}
|
|
2376
|
-
interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
2377
|
-
id: 'getPreferencesEmitTargetAndPayload';
|
|
2378
|
-
version: 'v2021_05_19';
|
|
2379
|
-
namespace: 'Calendar';
|
|
2380
|
-
name: '';
|
|
2381
|
-
fields: {
|
|
2382
|
-
/** Source. */
|
|
2383
|
-
'source': {
|
|
2384
|
-
label: 'Source';
|
|
2385
|
-
type: 'schema';
|
|
2386
|
-
options: {
|
|
2387
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
2388
|
-
};
|
|
2389
|
-
};
|
|
2390
|
-
/** . */
|
|
2391
|
-
'target': {
|
|
2392
|
-
type: 'schema';
|
|
2393
|
-
isRequired: true;
|
|
2394
|
-
options: {
|
|
2395
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2398
|
-
};
|
|
2399
|
-
}
|
|
2400
|
-
interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2404
|
-
interface GetPreferencesResponsePayload {
|
|
2405
|
-
'selectedCalendarIds'?: string[] | undefined | null;
|
|
2406
|
-
'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
|
|
2407
|
-
'visiblePeopleIds'?: string[] | undefined | null;
|
|
2408
|
-
}
|
|
2409
|
-
interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
|
|
2410
|
-
id: 'getPreferencesResponsePayload';
|
|
2411
|
-
version: 'v2021_05_19';
|
|
2412
|
-
namespace: 'Calendar';
|
|
2413
|
-
name: '';
|
|
2414
|
-
fields: {
|
|
2415
|
-
/** . */
|
|
2416
|
-
'selectedCalendarIds': {
|
|
2417
|
-
type: 'id';
|
|
2418
|
-
isArray: true;
|
|
2419
|
-
minArrayLength: 0;
|
|
2420
|
-
options: undefined;
|
|
2421
|
-
};
|
|
2422
|
-
/** . */
|
|
2423
|
-
'visiblePeopleMode': {
|
|
2424
|
-
type: 'select';
|
|
2425
|
-
options: {
|
|
2426
|
-
choices: [{
|
|
2427
|
-
"value": "me";
|
|
2428
|
-
"label": "Me";
|
|
2429
|
-
}, {
|
|
2430
|
-
"value": "working";
|
|
2431
|
-
"label": "Working";
|
|
2432
|
-
}, {
|
|
2433
|
-
"value": "custom";
|
|
2434
|
-
"label": "Custom";
|
|
2435
|
-
}];
|
|
2436
|
-
};
|
|
2437
|
-
};
|
|
2438
|
-
/** . */
|
|
2439
|
-
'visiblePeopleIds': {
|
|
2440
|
-
type: 'text';
|
|
2441
|
-
isArray: true;
|
|
2442
|
-
options: undefined;
|
|
2443
|
-
};
|
|
2444
|
-
};
|
|
2445
|
-
}
|
|
2446
|
-
interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
|
|
2447
|
-
}
|
|
2448
|
-
}
|
|
2449
2349
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2450
2350
|
interface GetSchedulesEmitTarget {
|
|
2451
2351
|
'organizationId'?: string | undefined | null;
|
|
@@ -2582,6 +2482,106 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2582
2482
|
interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
|
|
2583
2483
|
}
|
|
2584
2484
|
}
|
|
2485
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2486
|
+
interface GetPreferencesEmitTarget {
|
|
2487
|
+
'organizationId': string;
|
|
2488
|
+
}
|
|
2489
|
+
interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
|
|
2490
|
+
id: 'getPreferencesEmitTarget';
|
|
2491
|
+
version: 'v2021_05_19';
|
|
2492
|
+
namespace: 'Calendar';
|
|
2493
|
+
name: '';
|
|
2494
|
+
fields: {
|
|
2495
|
+
/** . */
|
|
2496
|
+
'organizationId': {
|
|
2497
|
+
type: 'id';
|
|
2498
|
+
isRequired: true;
|
|
2499
|
+
options: undefined;
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
}
|
|
2503
|
+
interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2507
|
+
interface GetPreferencesEmitTargetAndPayload {
|
|
2508
|
+
/** Source. */
|
|
2509
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
2510
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
|
|
2511
|
+
}
|
|
2512
|
+
interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
2513
|
+
id: 'getPreferencesEmitTargetAndPayload';
|
|
2514
|
+
version: 'v2021_05_19';
|
|
2515
|
+
namespace: 'Calendar';
|
|
2516
|
+
name: '';
|
|
2517
|
+
fields: {
|
|
2518
|
+
/** Source. */
|
|
2519
|
+
'source': {
|
|
2520
|
+
label: 'Source';
|
|
2521
|
+
type: 'schema';
|
|
2522
|
+
options: {
|
|
2523
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
2524
|
+
};
|
|
2525
|
+
};
|
|
2526
|
+
/** . */
|
|
2527
|
+
'target': {
|
|
2528
|
+
type: 'schema';
|
|
2529
|
+
isRequired: true;
|
|
2530
|
+
options: {
|
|
2531
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
|
|
2532
|
+
};
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
2535
|
+
}
|
|
2536
|
+
interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2540
|
+
interface GetPreferencesResponsePayload {
|
|
2541
|
+
'selectedCalendarIds'?: string[] | undefined | null;
|
|
2542
|
+
'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
|
|
2543
|
+
'visiblePeopleIds'?: string[] | undefined | null;
|
|
2544
|
+
}
|
|
2545
|
+
interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
|
|
2546
|
+
id: 'getPreferencesResponsePayload';
|
|
2547
|
+
version: 'v2021_05_19';
|
|
2548
|
+
namespace: 'Calendar';
|
|
2549
|
+
name: '';
|
|
2550
|
+
fields: {
|
|
2551
|
+
/** . */
|
|
2552
|
+
'selectedCalendarIds': {
|
|
2553
|
+
type: 'id';
|
|
2554
|
+
isArray: true;
|
|
2555
|
+
minArrayLength: 0;
|
|
2556
|
+
options: undefined;
|
|
2557
|
+
};
|
|
2558
|
+
/** . */
|
|
2559
|
+
'visiblePeopleMode': {
|
|
2560
|
+
type: 'select';
|
|
2561
|
+
options: {
|
|
2562
|
+
choices: [{
|
|
2563
|
+
"value": "me";
|
|
2564
|
+
"label": "Me";
|
|
2565
|
+
}, {
|
|
2566
|
+
"value": "working";
|
|
2567
|
+
"label": "Working";
|
|
2568
|
+
}, {
|
|
2569
|
+
"value": "custom";
|
|
2570
|
+
"label": "Custom";
|
|
2571
|
+
}];
|
|
2572
|
+
};
|
|
2573
|
+
};
|
|
2574
|
+
/** . */
|
|
2575
|
+
'visiblePeopleIds': {
|
|
2576
|
+
type: 'text';
|
|
2577
|
+
isArray: true;
|
|
2578
|
+
options: undefined;
|
|
2579
|
+
};
|
|
2580
|
+
};
|
|
2581
|
+
}
|
|
2582
|
+
interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
2585
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2586
2586
|
interface ListCalendarEventTypesEmitPayload {
|
|
2587
2587
|
'shouldShowOnlyMine'?: boolean | undefined | null;
|
|
@@ -2346,106 +2346,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2346
2346
|
interface GetConflictsForTimeRangeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeResponsePayloadSchema> {
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2350
|
-
interface GetPreferencesEmitTarget {
|
|
2351
|
-
'organizationId': string;
|
|
2352
|
-
}
|
|
2353
|
-
interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
|
|
2354
|
-
id: 'getPreferencesEmitTarget';
|
|
2355
|
-
version: 'v2021_05_19';
|
|
2356
|
-
namespace: 'Calendar';
|
|
2357
|
-
name: '';
|
|
2358
|
-
fields: {
|
|
2359
|
-
/** . */
|
|
2360
|
-
'organizationId': {
|
|
2361
|
-
type: 'id';
|
|
2362
|
-
isRequired: true;
|
|
2363
|
-
options: undefined;
|
|
2364
|
-
};
|
|
2365
|
-
};
|
|
2366
|
-
}
|
|
2367
|
-
interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
|
|
2368
|
-
}
|
|
2369
|
-
}
|
|
2370
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2371
|
-
interface GetPreferencesEmitTargetAndPayload {
|
|
2372
|
-
/** Source. */
|
|
2373
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
2374
|
-
'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
|
|
2375
|
-
}
|
|
2376
|
-
interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
2377
|
-
id: 'getPreferencesEmitTargetAndPayload';
|
|
2378
|
-
version: 'v2021_05_19';
|
|
2379
|
-
namespace: 'Calendar';
|
|
2380
|
-
name: '';
|
|
2381
|
-
fields: {
|
|
2382
|
-
/** Source. */
|
|
2383
|
-
'source': {
|
|
2384
|
-
label: 'Source';
|
|
2385
|
-
type: 'schema';
|
|
2386
|
-
options: {
|
|
2387
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
2388
|
-
};
|
|
2389
|
-
};
|
|
2390
|
-
/** . */
|
|
2391
|
-
'target': {
|
|
2392
|
-
type: 'schema';
|
|
2393
|
-
isRequired: true;
|
|
2394
|
-
options: {
|
|
2395
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2398
|
-
};
|
|
2399
|
-
}
|
|
2400
|
-
interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2404
|
-
interface GetPreferencesResponsePayload {
|
|
2405
|
-
'selectedCalendarIds'?: string[] | undefined | null;
|
|
2406
|
-
'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
|
|
2407
|
-
'visiblePeopleIds'?: string[] | undefined | null;
|
|
2408
|
-
}
|
|
2409
|
-
interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
|
|
2410
|
-
id: 'getPreferencesResponsePayload';
|
|
2411
|
-
version: 'v2021_05_19';
|
|
2412
|
-
namespace: 'Calendar';
|
|
2413
|
-
name: '';
|
|
2414
|
-
fields: {
|
|
2415
|
-
/** . */
|
|
2416
|
-
'selectedCalendarIds': {
|
|
2417
|
-
type: 'id';
|
|
2418
|
-
isArray: true;
|
|
2419
|
-
minArrayLength: 0;
|
|
2420
|
-
options: undefined;
|
|
2421
|
-
};
|
|
2422
|
-
/** . */
|
|
2423
|
-
'visiblePeopleMode': {
|
|
2424
|
-
type: 'select';
|
|
2425
|
-
options: {
|
|
2426
|
-
choices: [{
|
|
2427
|
-
"value": "me";
|
|
2428
|
-
"label": "Me";
|
|
2429
|
-
}, {
|
|
2430
|
-
"value": "working";
|
|
2431
|
-
"label": "Working";
|
|
2432
|
-
}, {
|
|
2433
|
-
"value": "custom";
|
|
2434
|
-
"label": "Custom";
|
|
2435
|
-
}];
|
|
2436
|
-
};
|
|
2437
|
-
};
|
|
2438
|
-
/** . */
|
|
2439
|
-
'visiblePeopleIds': {
|
|
2440
|
-
type: 'text';
|
|
2441
|
-
isArray: true;
|
|
2442
|
-
options: undefined;
|
|
2443
|
-
};
|
|
2444
|
-
};
|
|
2445
|
-
}
|
|
2446
|
-
interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
|
|
2447
|
-
}
|
|
2448
|
-
}
|
|
2449
2349
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2450
2350
|
interface GetSchedulesEmitTarget {
|
|
2451
2351
|
'organizationId'?: string | undefined | null;
|
|
@@ -2582,6 +2482,106 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2582
2482
|
interface GetSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetSchedulesResponsePayloadSchema> {
|
|
2583
2483
|
}
|
|
2584
2484
|
}
|
|
2485
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2486
|
+
interface GetPreferencesEmitTarget {
|
|
2487
|
+
'organizationId': string;
|
|
2488
|
+
}
|
|
2489
|
+
interface GetPreferencesEmitTargetSchema extends SpruceSchema.Schema {
|
|
2490
|
+
id: 'getPreferencesEmitTarget';
|
|
2491
|
+
version: 'v2021_05_19';
|
|
2492
|
+
namespace: 'Calendar';
|
|
2493
|
+
name: '';
|
|
2494
|
+
fields: {
|
|
2495
|
+
/** . */
|
|
2496
|
+
'organizationId': {
|
|
2497
|
+
type: 'id';
|
|
2498
|
+
isRequired: true;
|
|
2499
|
+
options: undefined;
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
}
|
|
2503
|
+
interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2507
|
+
interface GetPreferencesEmitTargetAndPayload {
|
|
2508
|
+
/** Source. */
|
|
2509
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
2510
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
|
|
2511
|
+
}
|
|
2512
|
+
interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
2513
|
+
id: 'getPreferencesEmitTargetAndPayload';
|
|
2514
|
+
version: 'v2021_05_19';
|
|
2515
|
+
namespace: 'Calendar';
|
|
2516
|
+
name: '';
|
|
2517
|
+
fields: {
|
|
2518
|
+
/** Source. */
|
|
2519
|
+
'source': {
|
|
2520
|
+
label: 'Source';
|
|
2521
|
+
type: 'schema';
|
|
2522
|
+
options: {
|
|
2523
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
2524
|
+
};
|
|
2525
|
+
};
|
|
2526
|
+
/** . */
|
|
2527
|
+
'target': {
|
|
2528
|
+
type: 'schema';
|
|
2529
|
+
isRequired: true;
|
|
2530
|
+
options: {
|
|
2531
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
|
|
2532
|
+
};
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
2535
|
+
}
|
|
2536
|
+
interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2540
|
+
interface GetPreferencesResponsePayload {
|
|
2541
|
+
'selectedCalendarIds'?: string[] | undefined | null;
|
|
2542
|
+
'visiblePeopleMode'?: ("me" | "working" | "custom") | undefined | null;
|
|
2543
|
+
'visiblePeopleIds'?: string[] | undefined | null;
|
|
2544
|
+
}
|
|
2545
|
+
interface GetPreferencesResponsePayloadSchema extends SpruceSchema.Schema {
|
|
2546
|
+
id: 'getPreferencesResponsePayload';
|
|
2547
|
+
version: 'v2021_05_19';
|
|
2548
|
+
namespace: 'Calendar';
|
|
2549
|
+
name: '';
|
|
2550
|
+
fields: {
|
|
2551
|
+
/** . */
|
|
2552
|
+
'selectedCalendarIds': {
|
|
2553
|
+
type: 'id';
|
|
2554
|
+
isArray: true;
|
|
2555
|
+
minArrayLength: 0;
|
|
2556
|
+
options: undefined;
|
|
2557
|
+
};
|
|
2558
|
+
/** . */
|
|
2559
|
+
'visiblePeopleMode': {
|
|
2560
|
+
type: 'select';
|
|
2561
|
+
options: {
|
|
2562
|
+
choices: [{
|
|
2563
|
+
"value": "me";
|
|
2564
|
+
"label": "Me";
|
|
2565
|
+
}, {
|
|
2566
|
+
"value": "working";
|
|
2567
|
+
"label": "Working";
|
|
2568
|
+
}, {
|
|
2569
|
+
"value": "custom";
|
|
2570
|
+
"label": "Custom";
|
|
2571
|
+
}];
|
|
2572
|
+
};
|
|
2573
|
+
};
|
|
2574
|
+
/** . */
|
|
2575
|
+
'visiblePeopleIds': {
|
|
2576
|
+
type: 'text';
|
|
2577
|
+
isArray: true;
|
|
2578
|
+
options: undefined;
|
|
2579
|
+
};
|
|
2580
|
+
};
|
|
2581
|
+
}
|
|
2582
|
+
interface GetPreferencesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesResponsePayloadSchema> {
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
2585
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2586
2586
|
interface ListCalendarEventTypesEmitPayload {
|
|
2587
2587
|
'shouldShowOnlyMine'?: boolean | undefined | null;
|
|
@@ -121,7 +121,7 @@ export default class RemoteEventStoreImpl {
|
|
|
121
121
|
const client = yield this.connectToApi();
|
|
122
122
|
const results = yield client.emitAndFlattenResponses('calendar.update-calendar-event::v2021_05_19', {
|
|
123
123
|
target: Object.assign({ calendarEventId: event.id }, target),
|
|
124
|
-
payload: Object.assign({}, payload),
|
|
124
|
+
payload: Object.assign(Object.assign({}, payload), { isBusy: false }),
|
|
125
125
|
});
|
|
126
126
|
const [{ calendarEvent }] = results;
|
|
127
127
|
return calendarEvent;
|
|
@@ -139,7 +139,7 @@ export default class RemoteEventStoreImpl {
|
|
|
139
139
|
const { target, payload } = this.splitPayloadAndTarget(event);
|
|
140
140
|
const [{ calendarEvent }] = yield this.client.emitAndFlattenResponses('calendar.create-calendar-event::v2021_05_19', {
|
|
141
141
|
target: Object.assign(Object.assign({}, target), { calendarId: this.resolveCalendarId(event) }),
|
|
142
|
-
payload: Object.assign({}, payload),
|
|
142
|
+
payload: Object.assign(Object.assign({}, payload), { isBusy: false }),
|
|
143
143
|
});
|
|
144
144
|
return calendarEvent;
|
|
145
145
|
});
|
|
@@ -171,10 +171,10 @@ export default class CalendarViewController extends CoreCalendarViewController {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
updateEvent(id, updates) {
|
|
174
|
-
const { shouldPersist } = updates, rest = __rest(updates, ["shouldPersist"]);
|
|
174
|
+
const { shouldPersist = true } = updates, rest = __rest(updates, ["shouldPersist"]);
|
|
175
175
|
try {
|
|
176
|
-
const updated = super.updateEvent(id, Object.assign(Object.assign({}, rest), { isBusy:
|
|
177
|
-
if (shouldPersist
|
|
176
|
+
const updated = super.updateEvent(id, Object.assign(Object.assign({}, rest), { isBusy: shouldPersist }));
|
|
177
|
+
if (shouldPersist) {
|
|
178
178
|
void this.persist(updated);
|
|
179
179
|
}
|
|
180
180
|
return updated;
|
|
@@ -183,14 +183,13 @@ export default class CalendarViewController extends CoreCalendarViewController {
|
|
|
183
183
|
catch (_a) { }
|
|
184
184
|
return Object.assign({}, updates);
|
|
185
185
|
}
|
|
186
|
-
persist(event
|
|
186
|
+
persist(event) {
|
|
187
187
|
const _super = Object.create(null, {
|
|
188
188
|
updateEvent: { get: () => super.updateEvent }
|
|
189
189
|
});
|
|
190
190
|
var _a, _b;
|
|
191
191
|
return __awaiter(this, void 0, void 0, function* () {
|
|
192
192
|
const id = event.id;
|
|
193
|
-
const isBusy = (options === null || options === void 0 ? void 0 : options.isBusy) === true;
|
|
194
193
|
try {
|
|
195
194
|
if (!this.activelyPersisting[id]) {
|
|
196
195
|
this.activelyPersisting[id] = 1;
|
|
@@ -198,7 +197,7 @@ export default class CalendarViewController extends CoreCalendarViewController {
|
|
|
198
197
|
else {
|
|
199
198
|
this.activelyPersisting[id]++;
|
|
200
199
|
}
|
|
201
|
-
const saved = yield ((_a = this.remoteEventStore) === null || _a === void 0 ? void 0 : _a.persist(Object.assign(
|
|
200
|
+
const saved = yield ((_a = this.remoteEventStore) === null || _a === void 0 ? void 0 : _a.persist(Object.assign({}, event)));
|
|
202
201
|
this.activelyPersisting[id]--;
|
|
203
202
|
if (!saved) {
|
|
204
203
|
return;
|
|
@@ -216,7 +215,7 @@ export default class CalendarViewController extends CoreCalendarViewController {
|
|
|
216
215
|
}
|
|
217
216
|
}
|
|
218
217
|
else {
|
|
219
|
-
_super.updateEvent.call(this, saved.id, { isBusy, error: undefined });
|
|
218
|
+
_super.updateEvent.call(this, saved.id, { isBusy: false, error: undefined });
|
|
220
219
|
}
|
|
221
220
|
return saved;
|
|
222
221
|
}
|
|
@@ -110,7 +110,7 @@ class RemoteEventStoreImpl {
|
|
|
110
110
|
const client = await this.connectToApi();
|
|
111
111
|
const results = await client.emitAndFlattenResponses('calendar.update-calendar-event::v2021_05_19', {
|
|
112
112
|
target: Object.assign({ calendarEventId: event.id }, target),
|
|
113
|
-
payload: Object.assign({}, payload),
|
|
113
|
+
payload: Object.assign(Object.assign({}, payload), { isBusy: false }),
|
|
114
114
|
});
|
|
115
115
|
const [{ calendarEvent }] = results;
|
|
116
116
|
return calendarEvent;
|
|
@@ -124,7 +124,7 @@ class RemoteEventStoreImpl {
|
|
|
124
124
|
const { target, payload } = this.splitPayloadAndTarget(event);
|
|
125
125
|
const [{ calendarEvent }] = await this.client.emitAndFlattenResponses('calendar.create-calendar-event::v2021_05_19', {
|
|
126
126
|
target: Object.assign(Object.assign({}, target), { calendarId: this.resolveCalendarId(event) }),
|
|
127
|
-
payload: Object.assign({}, payload),
|
|
127
|
+
payload: Object.assign(Object.assign({}, payload), { isBusy: false }),
|
|
128
128
|
});
|
|
129
129
|
return calendarEvent;
|
|
130
130
|
}
|
|
@@ -152,10 +152,10 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
|
|
|
152
152
|
this.enableAnimation();
|
|
153
153
|
}
|
|
154
154
|
updateEvent(id, updates) {
|
|
155
|
-
const { shouldPersist } = updates, rest = __rest(updates, ["shouldPersist"]);
|
|
155
|
+
const { shouldPersist = true } = updates, rest = __rest(updates, ["shouldPersist"]);
|
|
156
156
|
try {
|
|
157
|
-
const updated = super.updateEvent(id, Object.assign(Object.assign({}, rest), { isBusy:
|
|
158
|
-
if (shouldPersist
|
|
157
|
+
const updated = super.updateEvent(id, Object.assign(Object.assign({}, rest), { isBusy: shouldPersist }));
|
|
158
|
+
if (shouldPersist) {
|
|
159
159
|
void this.persist(updated);
|
|
160
160
|
}
|
|
161
161
|
return updated;
|
|
@@ -164,10 +164,9 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
|
|
|
164
164
|
catch (_a) { }
|
|
165
165
|
return Object.assign({}, updates);
|
|
166
166
|
}
|
|
167
|
-
async persist(event
|
|
167
|
+
async persist(event) {
|
|
168
168
|
var _a, _b;
|
|
169
169
|
const id = event.id;
|
|
170
|
-
const isBusy = (options === null || options === void 0 ? void 0 : options.isBusy) === true;
|
|
171
170
|
try {
|
|
172
171
|
if (!this.activelyPersisting[id]) {
|
|
173
172
|
this.activelyPersisting[id] = 1;
|
|
@@ -175,7 +174,7 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
|
|
|
175
174
|
else {
|
|
176
175
|
this.activelyPersisting[id]++;
|
|
177
176
|
}
|
|
178
|
-
const saved = await ((_a = this.remoteEventStore) === null || _a === void 0 ? void 0 : _a.persist(Object.assign(
|
|
177
|
+
const saved = await ((_a = this.remoteEventStore) === null || _a === void 0 ? void 0 : _a.persist(Object.assign({}, event)));
|
|
179
178
|
this.activelyPersisting[id]--;
|
|
180
179
|
if (!saved) {
|
|
181
180
|
return;
|
|
@@ -193,7 +192,7 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
|
|
|
193
192
|
}
|
|
194
193
|
}
|
|
195
194
|
else {
|
|
196
|
-
super.updateEvent(saved.id, { isBusy, error: undefined });
|
|
195
|
+
super.updateEvent(saved.id, { isBusy: false, error: undefined });
|
|
197
196
|
}
|
|
198
197
|
return saved;
|
|
199
198
|
}
|