@sprucelabs/spruce-calendar-components 22.6.26 → 22.7.1
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.
|
@@ -708,6 +708,39 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
708
708
|
interface UpsertThemeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.UpsertThemeResponsePayloadSchema> {
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
712
|
+
interface GetPreferencesEmitTargetAndPayload {
|
|
713
|
+
/** Source. */
|
|
714
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
715
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
|
|
716
|
+
}
|
|
717
|
+
interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
718
|
+
id: 'getPreferencesEmitTargetAndPayload';
|
|
719
|
+
version: 'v2021_05_19';
|
|
720
|
+
namespace: 'Calendar';
|
|
721
|
+
name: '';
|
|
722
|
+
fields: {
|
|
723
|
+
/** Source. */
|
|
724
|
+
'source': {
|
|
725
|
+
label: 'Source';
|
|
726
|
+
type: 'schema';
|
|
727
|
+
options: {
|
|
728
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
/** . */
|
|
732
|
+
'target': {
|
|
733
|
+
type: 'schema';
|
|
734
|
+
isRequired: true;
|
|
735
|
+
options: {
|
|
736
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
|
|
742
|
+
}
|
|
743
|
+
}
|
|
711
744
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
712
745
|
interface CancelCalendarEventEmitTarget {
|
|
713
746
|
'locationId': string;
|
|
@@ -736,6 +769,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
736
769
|
interface CancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema> {
|
|
737
770
|
}
|
|
738
771
|
}
|
|
772
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
773
|
+
interface CancelCalendarEventEmitTargetAndPayload {
|
|
774
|
+
/** Source. */
|
|
775
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
776
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
|
|
777
|
+
'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
|
|
778
|
+
}
|
|
779
|
+
interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
780
|
+
id: 'cancelCalendarEventEmitTargetAndPayload';
|
|
781
|
+
version: 'v2021_05_19';
|
|
782
|
+
namespace: 'Calendar';
|
|
783
|
+
name: '';
|
|
784
|
+
fields: {
|
|
785
|
+
/** Source. */
|
|
786
|
+
'source': {
|
|
787
|
+
label: 'Source';
|
|
788
|
+
type: 'schema';
|
|
789
|
+
options: {
|
|
790
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
/** . */
|
|
794
|
+
'target': {
|
|
795
|
+
type: 'schema';
|
|
796
|
+
isRequired: true;
|
|
797
|
+
options: {
|
|
798
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
/** . */
|
|
802
|
+
'payload': {
|
|
803
|
+
type: 'schema';
|
|
804
|
+
options: {
|
|
805
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
|
|
811
|
+
}
|
|
812
|
+
}
|
|
739
813
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
740
814
|
interface CancelDates {
|
|
741
815
|
'year': number;
|
|
@@ -800,47 +874,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
800
874
|
interface CancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema> {
|
|
801
875
|
}
|
|
802
876
|
}
|
|
803
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
804
|
-
interface CancelCalendarEventEmitTargetAndPayload {
|
|
805
|
-
/** Source. */
|
|
806
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
807
|
-
'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
|
|
808
|
-
'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
|
|
809
|
-
}
|
|
810
|
-
interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
811
|
-
id: 'cancelCalendarEventEmitTargetAndPayload';
|
|
812
|
-
version: 'v2021_05_19';
|
|
813
|
-
namespace: 'Calendar';
|
|
814
|
-
name: '';
|
|
815
|
-
fields: {
|
|
816
|
-
/** Source. */
|
|
817
|
-
'source': {
|
|
818
|
-
label: 'Source';
|
|
819
|
-
type: 'schema';
|
|
820
|
-
options: {
|
|
821
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
822
|
-
};
|
|
823
|
-
};
|
|
824
|
-
/** . */
|
|
825
|
-
'target': {
|
|
826
|
-
type: 'schema';
|
|
827
|
-
isRequired: true;
|
|
828
|
-
options: {
|
|
829
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
|
-
/** . */
|
|
833
|
-
'payload': {
|
|
834
|
-
type: 'schema';
|
|
835
|
-
options: {
|
|
836
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
|
|
837
|
-
};
|
|
838
|
-
};
|
|
839
|
-
};
|
|
840
|
-
}
|
|
841
|
-
interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
877
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
845
878
|
interface CancelCalendarEventResponsePayload {
|
|
846
879
|
'totalDeleted': number;
|
|
@@ -2179,132 +2212,132 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2179
2212
|
}
|
|
2180
2213
|
}
|
|
2181
2214
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2182
|
-
interface
|
|
2183
|
-
'
|
|
2184
|
-
'
|
|
2215
|
+
interface GetConflictsForTimeRangeEmitTarget {
|
|
2216
|
+
'organizationId': string;
|
|
2217
|
+
'calendarIds': string[];
|
|
2185
2218
|
}
|
|
2186
|
-
interface
|
|
2187
|
-
id: '
|
|
2219
|
+
interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
|
|
2220
|
+
id: 'getConflictsForTimeRangeEmitTarget';
|
|
2188
2221
|
version: 'v2021_05_19';
|
|
2189
2222
|
namespace: 'Calendar';
|
|
2190
2223
|
name: '';
|
|
2191
2224
|
fields: {
|
|
2192
2225
|
/** . */
|
|
2193
|
-
'
|
|
2226
|
+
'organizationId': {
|
|
2194
2227
|
type: 'id';
|
|
2195
2228
|
isRequired: true;
|
|
2196
2229
|
options: undefined;
|
|
2197
2230
|
};
|
|
2198
2231
|
/** . */
|
|
2199
|
-
'
|
|
2200
|
-
type: '
|
|
2232
|
+
'calendarIds': {
|
|
2233
|
+
type: 'id';
|
|
2201
2234
|
isRequired: true;
|
|
2235
|
+
isArray: true;
|
|
2202
2236
|
options: undefined;
|
|
2203
2237
|
};
|
|
2204
2238
|
};
|
|
2205
2239
|
}
|
|
2206
|
-
interface
|
|
2240
|
+
interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
|
|
2207
2241
|
}
|
|
2208
2242
|
}
|
|
2209
2243
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2210
|
-
interface
|
|
2211
|
-
|
|
2212
|
-
'
|
|
2244
|
+
interface GetConflictsForTimeRangeEmitTargetAndPayload {
|
|
2245
|
+
/** Source. */
|
|
2246
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
2247
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
|
|
2248
|
+
'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
|
|
2213
2249
|
}
|
|
2214
|
-
interface
|
|
2215
|
-
id: '
|
|
2250
|
+
interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
2251
|
+
id: 'getConflictsForTimeRangeEmitTargetAndPayload';
|
|
2216
2252
|
version: 'v2021_05_19';
|
|
2217
2253
|
namespace: 'Calendar';
|
|
2218
2254
|
name: '';
|
|
2219
2255
|
fields: {
|
|
2256
|
+
/** Source. */
|
|
2257
|
+
'source': {
|
|
2258
|
+
label: 'Source';
|
|
2259
|
+
type: 'schema';
|
|
2260
|
+
options: {
|
|
2261
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2220
2264
|
/** . */
|
|
2221
|
-
'
|
|
2222
|
-
type: '
|
|
2265
|
+
'target': {
|
|
2266
|
+
type: 'schema';
|
|
2223
2267
|
isRequired: true;
|
|
2224
|
-
options:
|
|
2268
|
+
options: {
|
|
2269
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
|
|
2270
|
+
};
|
|
2225
2271
|
};
|
|
2226
2272
|
/** . */
|
|
2227
|
-
'
|
|
2273
|
+
'payload': {
|
|
2228
2274
|
type: 'schema';
|
|
2229
2275
|
isRequired: true;
|
|
2230
2276
|
options: {
|
|
2231
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.
|
|
2277
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
|
|
2232
2278
|
};
|
|
2233
2279
|
};
|
|
2234
2280
|
};
|
|
2235
2281
|
}
|
|
2236
|
-
interface
|
|
2282
|
+
interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
|
|
2237
2283
|
}
|
|
2238
2284
|
}
|
|
2239
2285
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2240
|
-
interface
|
|
2241
|
-
'
|
|
2242
|
-
'
|
|
2286
|
+
interface Teammate {
|
|
2287
|
+
'personId': string;
|
|
2288
|
+
'durationMinutes': number;
|
|
2243
2289
|
}
|
|
2244
|
-
interface
|
|
2245
|
-
id: '
|
|
2290
|
+
interface TeammateSchema extends SpruceSchema.Schema {
|
|
2291
|
+
id: 'teammate';
|
|
2246
2292
|
version: 'v2021_05_19';
|
|
2247
2293
|
namespace: 'Calendar';
|
|
2248
2294
|
name: '';
|
|
2249
2295
|
fields: {
|
|
2250
2296
|
/** . */
|
|
2251
|
-
'
|
|
2297
|
+
'personId': {
|
|
2252
2298
|
type: 'id';
|
|
2253
2299
|
isRequired: true;
|
|
2254
2300
|
options: undefined;
|
|
2255
2301
|
};
|
|
2256
2302
|
/** . */
|
|
2257
|
-
'
|
|
2258
|
-
type: '
|
|
2303
|
+
'durationMinutes': {
|
|
2304
|
+
type: 'number';
|
|
2259
2305
|
isRequired: true;
|
|
2260
|
-
isArray: true;
|
|
2261
2306
|
options: undefined;
|
|
2262
2307
|
};
|
|
2263
2308
|
};
|
|
2264
2309
|
}
|
|
2265
|
-
interface
|
|
2310
|
+
interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
|
|
2266
2311
|
}
|
|
2267
2312
|
}
|
|
2268
2313
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2269
|
-
interface
|
|
2270
|
-
|
|
2271
|
-
'
|
|
2272
|
-
'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
|
|
2273
|
-
'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
|
|
2314
|
+
interface GetConflictsForTimeRangeEmitPayload {
|
|
2315
|
+
'startDateTimeMs': number;
|
|
2316
|
+
'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
|
|
2274
2317
|
}
|
|
2275
|
-
interface
|
|
2276
|
-
id: '
|
|
2318
|
+
interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
|
|
2319
|
+
id: 'getConflictsForTimeRangeEmitPayload';
|
|
2277
2320
|
version: 'v2021_05_19';
|
|
2278
2321
|
namespace: 'Calendar';
|
|
2279
2322
|
name: '';
|
|
2280
2323
|
fields: {
|
|
2281
|
-
/** Source. */
|
|
2282
|
-
'source': {
|
|
2283
|
-
label: 'Source';
|
|
2284
|
-
type: 'schema';
|
|
2285
|
-
options: {
|
|
2286
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
2287
|
-
};
|
|
2288
|
-
};
|
|
2289
2324
|
/** . */
|
|
2290
|
-
'
|
|
2291
|
-
type: '
|
|
2325
|
+
'startDateTimeMs': {
|
|
2326
|
+
type: 'number';
|
|
2292
2327
|
isRequired: true;
|
|
2293
|
-
options:
|
|
2294
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
|
|
2295
|
-
};
|
|
2328
|
+
options: undefined;
|
|
2296
2329
|
};
|
|
2297
2330
|
/** . */
|
|
2298
|
-
'
|
|
2331
|
+
'teammate': {
|
|
2299
2332
|
type: 'schema';
|
|
2300
2333
|
isRequired: true;
|
|
2301
2334
|
options: {
|
|
2302
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.
|
|
2335
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
|
|
2303
2336
|
};
|
|
2304
2337
|
};
|
|
2305
2338
|
};
|
|
2306
2339
|
}
|
|
2307
|
-
interface
|
|
2340
|
+
interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
|
|
2308
2341
|
}
|
|
2309
2342
|
}
|
|
2310
2343
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
@@ -2367,39 +2400,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2367
2400
|
interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
|
|
2368
2401
|
}
|
|
2369
2402
|
}
|
|
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
2403
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2404
2404
|
interface GetPreferencesResponsePayload {
|
|
2405
2405
|
'selectedCalendarIds'?: string[] | undefined | null;
|
|
@@ -4280,48 +4280,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
4280
4280
|
interface CreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema> {
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4284
|
-
interface CreateCalendarEventEmitTargetAndPayload {
|
|
4285
|
-
/** Source. */
|
|
4286
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
4287
|
-
'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTarget;
|
|
4288
|
-
'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayload;
|
|
4289
|
-
}
|
|
4290
|
-
interface CreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
4291
|
-
id: 'createCalendarEventEmitTargetAndPayload';
|
|
4292
|
-
version: 'v2021_05_19';
|
|
4293
|
-
namespace: 'Calendar';
|
|
4294
|
-
name: '';
|
|
4295
|
-
fields: {
|
|
4296
|
-
/** Source. */
|
|
4297
|
-
'source': {
|
|
4298
|
-
label: 'Source';
|
|
4299
|
-
type: 'schema';
|
|
4300
|
-
options: {
|
|
4301
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
4302
|
-
};
|
|
4303
|
-
};
|
|
4304
|
-
/** . */
|
|
4305
|
-
'target': {
|
|
4306
|
-
type: 'schema';
|
|
4307
|
-
isRequired: true;
|
|
4308
|
-
options: {
|
|
4309
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema;
|
|
4310
|
-
};
|
|
4311
|
-
};
|
|
4312
|
-
/** . */
|
|
4313
|
-
'payload': {
|
|
4314
|
-
type: 'schema';
|
|
4315
|
-
isRequired: true;
|
|
4316
|
-
options: {
|
|
4317
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema;
|
|
4318
|
-
};
|
|
4319
|
-
};
|
|
4320
|
-
};
|
|
4321
|
-
}
|
|
4322
|
-
interface CreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetAndPayloadSchema> {
|
|
4323
|
-
}
|
|
4324
|
-
}
|
|
4325
4283
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4326
4284
|
interface CreateCalendarEventEmitPayload {
|
|
4327
4285
|
'eventTypeSlug'?: string | undefined | null;
|
|
@@ -4723,6 +4681,159 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
4723
4681
|
interface DidCreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetAndPayloadSchema> {
|
|
4724
4682
|
}
|
|
4725
4683
|
}
|
|
4684
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4685
|
+
interface ListPeopleWithoutSchedulesEmitTarget {
|
|
4686
|
+
'locationId': string;
|
|
4687
|
+
}
|
|
4688
|
+
interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
|
|
4689
|
+
id: 'listPeopleWithoutSchedulesEmitTarget';
|
|
4690
|
+
version: 'v2021_05_19';
|
|
4691
|
+
namespace: 'Calendar';
|
|
4692
|
+
name: '';
|
|
4693
|
+
fields: {
|
|
4694
|
+
/** . */
|
|
4695
|
+
'locationId': {
|
|
4696
|
+
type: 'id';
|
|
4697
|
+
isRequired: true;
|
|
4698
|
+
options: undefined;
|
|
4699
|
+
};
|
|
4700
|
+
};
|
|
4701
|
+
}
|
|
4702
|
+
interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
|
|
4703
|
+
}
|
|
4704
|
+
}
|
|
4705
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4706
|
+
interface ListPeopleWithoutSchedulesEmitPayload {
|
|
4707
|
+
'calendarIds': string[];
|
|
4708
|
+
}
|
|
4709
|
+
interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
|
|
4710
|
+
id: 'listPeopleWithoutSchedulesEmitPayload';
|
|
4711
|
+
version: 'v2021_05_19';
|
|
4712
|
+
namespace: 'Calendar';
|
|
4713
|
+
name: '';
|
|
4714
|
+
fields: {
|
|
4715
|
+
/** . */
|
|
4716
|
+
'calendarIds': {
|
|
4717
|
+
type: 'id';
|
|
4718
|
+
isRequired: true;
|
|
4719
|
+
isArray: true;
|
|
4720
|
+
options: undefined;
|
|
4721
|
+
};
|
|
4722
|
+
};
|
|
4723
|
+
}
|
|
4724
|
+
interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
|
|
4725
|
+
}
|
|
4726
|
+
}
|
|
4727
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4728
|
+
interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
|
|
4729
|
+
/** Source. */
|
|
4730
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
4731
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
|
|
4732
|
+
'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
|
|
4733
|
+
}
|
|
4734
|
+
interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
4735
|
+
id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
|
|
4736
|
+
version: 'v2021_05_19';
|
|
4737
|
+
namespace: 'Calendar';
|
|
4738
|
+
name: '';
|
|
4739
|
+
fields: {
|
|
4740
|
+
/** Source. */
|
|
4741
|
+
'source': {
|
|
4742
|
+
label: 'Source';
|
|
4743
|
+
type: 'schema';
|
|
4744
|
+
options: {
|
|
4745
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
4746
|
+
};
|
|
4747
|
+
};
|
|
4748
|
+
/** . */
|
|
4749
|
+
'target': {
|
|
4750
|
+
type: 'schema';
|
|
4751
|
+
isRequired: true;
|
|
4752
|
+
options: {
|
|
4753
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
|
|
4754
|
+
};
|
|
4755
|
+
};
|
|
4756
|
+
/** . */
|
|
4757
|
+
'payload': {
|
|
4758
|
+
type: 'schema';
|
|
4759
|
+
isRequired: true;
|
|
4760
|
+
options: {
|
|
4761
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
|
|
4762
|
+
};
|
|
4763
|
+
};
|
|
4764
|
+
};
|
|
4765
|
+
}
|
|
4766
|
+
interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
|
|
4767
|
+
}
|
|
4768
|
+
}
|
|
4769
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4770
|
+
interface PersonWithoutSchedule {
|
|
4771
|
+
/** Id. */
|
|
4772
|
+
'id': string;
|
|
4773
|
+
/** Casual name. The name you can use when talking to this person. */
|
|
4774
|
+
'casualName': string;
|
|
4775
|
+
/** Avatar src. */
|
|
4776
|
+
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
4777
|
+
}
|
|
4778
|
+
interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
|
|
4779
|
+
id: 'person-without-schedule';
|
|
4780
|
+
version: 'v2021_05_19';
|
|
4781
|
+
namespace: 'Calendar';
|
|
4782
|
+
name: '';
|
|
4783
|
+
fields: {
|
|
4784
|
+
/** Id. */
|
|
4785
|
+
'id': {
|
|
4786
|
+
label: 'Id';
|
|
4787
|
+
type: 'id';
|
|
4788
|
+
isRequired: true;
|
|
4789
|
+
options: undefined;
|
|
4790
|
+
};
|
|
4791
|
+
/** Casual name. The name you can use when talking to this person. */
|
|
4792
|
+
'casualName': {
|
|
4793
|
+
label: 'Casual name';
|
|
4794
|
+
type: 'text';
|
|
4795
|
+
isRequired: true;
|
|
4796
|
+
hint: 'The name you can use when talking to this person.';
|
|
4797
|
+
options: undefined;
|
|
4798
|
+
};
|
|
4799
|
+
/** Avatar src. */
|
|
4800
|
+
'avatar': {
|
|
4801
|
+
label: 'Avatar src';
|
|
4802
|
+
type: 'image';
|
|
4803
|
+
options: {
|
|
4804
|
+
requiredSizes: ["*"];
|
|
4805
|
+
};
|
|
4806
|
+
};
|
|
4807
|
+
};
|
|
4808
|
+
}
|
|
4809
|
+
interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
|
|
4810
|
+
}
|
|
4811
|
+
}
|
|
4812
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4813
|
+
interface ListPeopleWithoutSchedulesResponsePayload {
|
|
4814
|
+
'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
|
|
4815
|
+
}
|
|
4816
|
+
interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
|
|
4817
|
+
id: 'listPeopleWithoutSchedulesResponsePayload';
|
|
4818
|
+
version: 'v2021_05_19';
|
|
4819
|
+
namespace: 'Calendar';
|
|
4820
|
+
name: '';
|
|
4821
|
+
fields: {
|
|
4822
|
+
/** . */
|
|
4823
|
+
'people': {
|
|
4824
|
+
type: 'schema';
|
|
4825
|
+
isRequired: true;
|
|
4826
|
+
isArray: true;
|
|
4827
|
+
minArrayLength: 0;
|
|
4828
|
+
options: {
|
|
4829
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
|
|
4830
|
+
};
|
|
4831
|
+
};
|
|
4832
|
+
};
|
|
4833
|
+
}
|
|
4834
|
+
interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4726
4837
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4727
4838
|
interface CalendarTarget {
|
|
4728
4839
|
'organizationId'?: string | undefined | null;
|
|
@@ -4749,6 +4860,48 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
4749
4860
|
interface CalendarTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema> {
|
|
4750
4861
|
}
|
|
4751
4862
|
}
|
|
4863
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4864
|
+
interface CreateCalendarEventEmitTargetAndPayload {
|
|
4865
|
+
/** Source. */
|
|
4866
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
4867
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTarget;
|
|
4868
|
+
'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayload;
|
|
4869
|
+
}
|
|
4870
|
+
interface CreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
4871
|
+
id: 'createCalendarEventEmitTargetAndPayload';
|
|
4872
|
+
version: 'v2021_05_19';
|
|
4873
|
+
namespace: 'Calendar';
|
|
4874
|
+
name: '';
|
|
4875
|
+
fields: {
|
|
4876
|
+
/** Source. */
|
|
4877
|
+
'source': {
|
|
4878
|
+
label: 'Source';
|
|
4879
|
+
type: 'schema';
|
|
4880
|
+
options: {
|
|
4881
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
4882
|
+
};
|
|
4883
|
+
};
|
|
4884
|
+
/** . */
|
|
4885
|
+
'target': {
|
|
4886
|
+
type: 'schema';
|
|
4887
|
+
isRequired: true;
|
|
4888
|
+
options: {
|
|
4889
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema;
|
|
4890
|
+
};
|
|
4891
|
+
};
|
|
4892
|
+
/** . */
|
|
4893
|
+
'payload': {
|
|
4894
|
+
type: 'schema';
|
|
4895
|
+
isRequired: true;
|
|
4896
|
+
options: {
|
|
4897
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema;
|
|
4898
|
+
};
|
|
4899
|
+
};
|
|
4900
|
+
};
|
|
4901
|
+
}
|
|
4902
|
+
interface CreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetAndPayloadSchema> {
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4752
4905
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4753
4906
|
interface CalendarEventType {
|
|
4754
4907
|
'id': string;
|
|
@@ -708,6 +708,39 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
708
708
|
interface UpsertThemeResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Heartwood.v2021_02_11.UpsertThemeResponsePayloadSchema> {
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
712
|
+
interface GetPreferencesEmitTargetAndPayload {
|
|
713
|
+
/** Source. */
|
|
714
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
715
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTarget;
|
|
716
|
+
}
|
|
717
|
+
interface GetPreferencesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
718
|
+
id: 'getPreferencesEmitTargetAndPayload';
|
|
719
|
+
version: 'v2021_05_19';
|
|
720
|
+
namespace: 'Calendar';
|
|
721
|
+
name: '';
|
|
722
|
+
fields: {
|
|
723
|
+
/** Source. */
|
|
724
|
+
'source': {
|
|
725
|
+
label: 'Source';
|
|
726
|
+
type: 'schema';
|
|
727
|
+
options: {
|
|
728
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
/** . */
|
|
732
|
+
'target': {
|
|
733
|
+
type: 'schema';
|
|
734
|
+
isRequired: true;
|
|
735
|
+
options: {
|
|
736
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema;
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
interface GetPreferencesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetAndPayloadSchema> {
|
|
742
|
+
}
|
|
743
|
+
}
|
|
711
744
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
712
745
|
interface CancelCalendarEventEmitTarget {
|
|
713
746
|
'locationId': string;
|
|
@@ -736,6 +769,47 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
736
769
|
interface CancelCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema> {
|
|
737
770
|
}
|
|
738
771
|
}
|
|
772
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
773
|
+
interface CancelCalendarEventEmitTargetAndPayload {
|
|
774
|
+
/** Source. */
|
|
775
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
776
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
|
|
777
|
+
'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
|
|
778
|
+
}
|
|
779
|
+
interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
780
|
+
id: 'cancelCalendarEventEmitTargetAndPayload';
|
|
781
|
+
version: 'v2021_05_19';
|
|
782
|
+
namespace: 'Calendar';
|
|
783
|
+
name: '';
|
|
784
|
+
fields: {
|
|
785
|
+
/** Source. */
|
|
786
|
+
'source': {
|
|
787
|
+
label: 'Source';
|
|
788
|
+
type: 'schema';
|
|
789
|
+
options: {
|
|
790
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
/** . */
|
|
794
|
+
'target': {
|
|
795
|
+
type: 'schema';
|
|
796
|
+
isRequired: true;
|
|
797
|
+
options: {
|
|
798
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
/** . */
|
|
802
|
+
'payload': {
|
|
803
|
+
type: 'schema';
|
|
804
|
+
options: {
|
|
805
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
|
|
811
|
+
}
|
|
812
|
+
}
|
|
739
813
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
740
814
|
interface CancelDates {
|
|
741
815
|
'year': number;
|
|
@@ -800,47 +874,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
800
874
|
interface CancelCalendarEventEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema> {
|
|
801
875
|
}
|
|
802
876
|
}
|
|
803
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
804
|
-
interface CancelCalendarEventEmitTargetAndPayload {
|
|
805
|
-
/** Source. */
|
|
806
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
807
|
-
'target': SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTarget;
|
|
808
|
-
'payload'?: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayload | undefined | null;
|
|
809
|
-
}
|
|
810
|
-
interface CancelCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
811
|
-
id: 'cancelCalendarEventEmitTargetAndPayload';
|
|
812
|
-
version: 'v2021_05_19';
|
|
813
|
-
namespace: 'Calendar';
|
|
814
|
-
name: '';
|
|
815
|
-
fields: {
|
|
816
|
-
/** Source. */
|
|
817
|
-
'source': {
|
|
818
|
-
label: 'Source';
|
|
819
|
-
type: 'schema';
|
|
820
|
-
options: {
|
|
821
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
822
|
-
};
|
|
823
|
-
};
|
|
824
|
-
/** . */
|
|
825
|
-
'target': {
|
|
826
|
-
type: 'schema';
|
|
827
|
-
isRequired: true;
|
|
828
|
-
options: {
|
|
829
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetSchema;
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
|
-
/** . */
|
|
833
|
-
'payload': {
|
|
834
|
-
type: 'schema';
|
|
835
|
-
options: {
|
|
836
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitPayloadSchema;
|
|
837
|
-
};
|
|
838
|
-
};
|
|
839
|
-
};
|
|
840
|
-
}
|
|
841
|
-
interface CancelCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CancelCalendarEventEmitTargetAndPayloadSchema> {
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
877
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
845
878
|
interface CancelCalendarEventResponsePayload {
|
|
846
879
|
'totalDeleted': number;
|
|
@@ -2179,132 +2212,132 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2179
2212
|
}
|
|
2180
2213
|
}
|
|
2181
2214
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2182
|
-
interface
|
|
2183
|
-
'
|
|
2184
|
-
'
|
|
2215
|
+
interface GetConflictsForTimeRangeEmitTarget {
|
|
2216
|
+
'organizationId': string;
|
|
2217
|
+
'calendarIds': string[];
|
|
2185
2218
|
}
|
|
2186
|
-
interface
|
|
2187
|
-
id: '
|
|
2219
|
+
interface GetConflictsForTimeRangeEmitTargetSchema extends SpruceSchema.Schema {
|
|
2220
|
+
id: 'getConflictsForTimeRangeEmitTarget';
|
|
2188
2221
|
version: 'v2021_05_19';
|
|
2189
2222
|
namespace: 'Calendar';
|
|
2190
2223
|
name: '';
|
|
2191
2224
|
fields: {
|
|
2192
2225
|
/** . */
|
|
2193
|
-
'
|
|
2226
|
+
'organizationId': {
|
|
2194
2227
|
type: 'id';
|
|
2195
2228
|
isRequired: true;
|
|
2196
2229
|
options: undefined;
|
|
2197
2230
|
};
|
|
2198
2231
|
/** . */
|
|
2199
|
-
'
|
|
2200
|
-
type: '
|
|
2232
|
+
'calendarIds': {
|
|
2233
|
+
type: 'id';
|
|
2201
2234
|
isRequired: true;
|
|
2235
|
+
isArray: true;
|
|
2202
2236
|
options: undefined;
|
|
2203
2237
|
};
|
|
2204
2238
|
};
|
|
2205
2239
|
}
|
|
2206
|
-
interface
|
|
2240
|
+
interface GetConflictsForTimeRangeEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema> {
|
|
2207
2241
|
}
|
|
2208
2242
|
}
|
|
2209
2243
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2210
|
-
interface
|
|
2211
|
-
|
|
2212
|
-
'
|
|
2244
|
+
interface GetConflictsForTimeRangeEmitTargetAndPayload {
|
|
2245
|
+
/** Source. */
|
|
2246
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
2247
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
|
|
2248
|
+
'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
|
|
2213
2249
|
}
|
|
2214
|
-
interface
|
|
2215
|
-
id: '
|
|
2250
|
+
interface GetConflictsForTimeRangeEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
2251
|
+
id: 'getConflictsForTimeRangeEmitTargetAndPayload';
|
|
2216
2252
|
version: 'v2021_05_19';
|
|
2217
2253
|
namespace: 'Calendar';
|
|
2218
2254
|
name: '';
|
|
2219
2255
|
fields: {
|
|
2256
|
+
/** Source. */
|
|
2257
|
+
'source': {
|
|
2258
|
+
label: 'Source';
|
|
2259
|
+
type: 'schema';
|
|
2260
|
+
options: {
|
|
2261
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2220
2264
|
/** . */
|
|
2221
|
-
'
|
|
2222
|
-
type: '
|
|
2265
|
+
'target': {
|
|
2266
|
+
type: 'schema';
|
|
2223
2267
|
isRequired: true;
|
|
2224
|
-
options:
|
|
2268
|
+
options: {
|
|
2269
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
|
|
2270
|
+
};
|
|
2225
2271
|
};
|
|
2226
2272
|
/** . */
|
|
2227
|
-
'
|
|
2273
|
+
'payload': {
|
|
2228
2274
|
type: 'schema';
|
|
2229
2275
|
isRequired: true;
|
|
2230
2276
|
options: {
|
|
2231
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.
|
|
2277
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema;
|
|
2232
2278
|
};
|
|
2233
2279
|
};
|
|
2234
2280
|
};
|
|
2235
2281
|
}
|
|
2236
|
-
interface
|
|
2282
|
+
interface GetConflictsForTimeRangeEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetAndPayloadSchema> {
|
|
2237
2283
|
}
|
|
2238
2284
|
}
|
|
2239
2285
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2240
|
-
interface
|
|
2241
|
-
'
|
|
2242
|
-
'
|
|
2286
|
+
interface Teammate {
|
|
2287
|
+
'personId': string;
|
|
2288
|
+
'durationMinutes': number;
|
|
2243
2289
|
}
|
|
2244
|
-
interface
|
|
2245
|
-
id: '
|
|
2290
|
+
interface TeammateSchema extends SpruceSchema.Schema {
|
|
2291
|
+
id: 'teammate';
|
|
2246
2292
|
version: 'v2021_05_19';
|
|
2247
2293
|
namespace: 'Calendar';
|
|
2248
2294
|
name: '';
|
|
2249
2295
|
fields: {
|
|
2250
2296
|
/** . */
|
|
2251
|
-
'
|
|
2297
|
+
'personId': {
|
|
2252
2298
|
type: 'id';
|
|
2253
2299
|
isRequired: true;
|
|
2254
2300
|
options: undefined;
|
|
2255
2301
|
};
|
|
2256
2302
|
/** . */
|
|
2257
|
-
'
|
|
2258
|
-
type: '
|
|
2303
|
+
'durationMinutes': {
|
|
2304
|
+
type: 'number';
|
|
2259
2305
|
isRequired: true;
|
|
2260
|
-
isArray: true;
|
|
2261
2306
|
options: undefined;
|
|
2262
2307
|
};
|
|
2263
2308
|
};
|
|
2264
2309
|
}
|
|
2265
|
-
interface
|
|
2310
|
+
interface TeammateEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.TeammateSchema> {
|
|
2266
2311
|
}
|
|
2267
2312
|
}
|
|
2268
2313
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2269
|
-
interface
|
|
2270
|
-
|
|
2271
|
-
'
|
|
2272
|
-
'target': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTarget;
|
|
2273
|
-
'payload': SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayload;
|
|
2314
|
+
interface GetConflictsForTimeRangeEmitPayload {
|
|
2315
|
+
'startDateTimeMs': number;
|
|
2316
|
+
'teammate': SpruceSchemas.Calendar.v2021_05_19.Teammate;
|
|
2274
2317
|
}
|
|
2275
|
-
interface
|
|
2276
|
-
id: '
|
|
2318
|
+
interface GetConflictsForTimeRangeEmitPayloadSchema extends SpruceSchema.Schema {
|
|
2319
|
+
id: 'getConflictsForTimeRangeEmitPayload';
|
|
2277
2320
|
version: 'v2021_05_19';
|
|
2278
2321
|
namespace: 'Calendar';
|
|
2279
2322
|
name: '';
|
|
2280
2323
|
fields: {
|
|
2281
|
-
/** Source. */
|
|
2282
|
-
'source': {
|
|
2283
|
-
label: 'Source';
|
|
2284
|
-
type: 'schema';
|
|
2285
|
-
options: {
|
|
2286
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
2287
|
-
};
|
|
2288
|
-
};
|
|
2289
2324
|
/** . */
|
|
2290
|
-
'
|
|
2291
|
-
type: '
|
|
2325
|
+
'startDateTimeMs': {
|
|
2326
|
+
type: 'number';
|
|
2292
2327
|
isRequired: true;
|
|
2293
|
-
options:
|
|
2294
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitTargetSchema;
|
|
2295
|
-
};
|
|
2328
|
+
options: undefined;
|
|
2296
2329
|
};
|
|
2297
2330
|
/** . */
|
|
2298
|
-
'
|
|
2331
|
+
'teammate': {
|
|
2299
2332
|
type: 'schema';
|
|
2300
2333
|
isRequired: true;
|
|
2301
2334
|
options: {
|
|
2302
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.
|
|
2335
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.TeammateSchema;
|
|
2303
2336
|
};
|
|
2304
2337
|
};
|
|
2305
2338
|
};
|
|
2306
2339
|
}
|
|
2307
|
-
interface
|
|
2340
|
+
interface GetConflictsForTimeRangeEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetConflictsForTimeRangeEmitPayloadSchema> {
|
|
2308
2341
|
}
|
|
2309
2342
|
}
|
|
2310
2343
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
@@ -2367,39 +2400,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2367
2400
|
interface GetPreferencesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.GetPreferencesEmitTargetSchema> {
|
|
2368
2401
|
}
|
|
2369
2402
|
}
|
|
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
2403
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
2404
2404
|
interface GetPreferencesResponsePayload {
|
|
2405
2405
|
'selectedCalendarIds'?: string[] | undefined | null;
|
|
@@ -4280,48 +4280,6 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
4280
4280
|
interface CreateCalendarEventEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema> {
|
|
4281
4281
|
}
|
|
4282
4282
|
}
|
|
4283
|
-
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4284
|
-
interface CreateCalendarEventEmitTargetAndPayload {
|
|
4285
|
-
/** Source. */
|
|
4286
|
-
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
4287
|
-
'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTarget;
|
|
4288
|
-
'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayload;
|
|
4289
|
-
}
|
|
4290
|
-
interface CreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
4291
|
-
id: 'createCalendarEventEmitTargetAndPayload';
|
|
4292
|
-
version: 'v2021_05_19';
|
|
4293
|
-
namespace: 'Calendar';
|
|
4294
|
-
name: '';
|
|
4295
|
-
fields: {
|
|
4296
|
-
/** Source. */
|
|
4297
|
-
'source': {
|
|
4298
|
-
label: 'Source';
|
|
4299
|
-
type: 'schema';
|
|
4300
|
-
options: {
|
|
4301
|
-
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
4302
|
-
};
|
|
4303
|
-
};
|
|
4304
|
-
/** . */
|
|
4305
|
-
'target': {
|
|
4306
|
-
type: 'schema';
|
|
4307
|
-
isRequired: true;
|
|
4308
|
-
options: {
|
|
4309
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema;
|
|
4310
|
-
};
|
|
4311
|
-
};
|
|
4312
|
-
/** . */
|
|
4313
|
-
'payload': {
|
|
4314
|
-
type: 'schema';
|
|
4315
|
-
isRequired: true;
|
|
4316
|
-
options: {
|
|
4317
|
-
schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema;
|
|
4318
|
-
};
|
|
4319
|
-
};
|
|
4320
|
-
};
|
|
4321
|
-
}
|
|
4322
|
-
interface CreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetAndPayloadSchema> {
|
|
4323
|
-
}
|
|
4324
|
-
}
|
|
4325
4283
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4326
4284
|
interface CreateCalendarEventEmitPayload {
|
|
4327
4285
|
'eventTypeSlug'?: string | undefined | null;
|
|
@@ -4723,6 +4681,159 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
4723
4681
|
interface DidCreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.DidCreateCalendarEventEmitTargetAndPayloadSchema> {
|
|
4724
4682
|
}
|
|
4725
4683
|
}
|
|
4684
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4685
|
+
interface ListPeopleWithoutSchedulesEmitTarget {
|
|
4686
|
+
'locationId': string;
|
|
4687
|
+
}
|
|
4688
|
+
interface ListPeopleWithoutSchedulesEmitTargetSchema extends SpruceSchema.Schema {
|
|
4689
|
+
id: 'listPeopleWithoutSchedulesEmitTarget';
|
|
4690
|
+
version: 'v2021_05_19';
|
|
4691
|
+
namespace: 'Calendar';
|
|
4692
|
+
name: '';
|
|
4693
|
+
fields: {
|
|
4694
|
+
/** . */
|
|
4695
|
+
'locationId': {
|
|
4696
|
+
type: 'id';
|
|
4697
|
+
isRequired: true;
|
|
4698
|
+
options: undefined;
|
|
4699
|
+
};
|
|
4700
|
+
};
|
|
4701
|
+
}
|
|
4702
|
+
interface ListPeopleWithoutSchedulesEmitTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema> {
|
|
4703
|
+
}
|
|
4704
|
+
}
|
|
4705
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4706
|
+
interface ListPeopleWithoutSchedulesEmitPayload {
|
|
4707
|
+
'calendarIds': string[];
|
|
4708
|
+
}
|
|
4709
|
+
interface ListPeopleWithoutSchedulesEmitPayloadSchema extends SpruceSchema.Schema {
|
|
4710
|
+
id: 'listPeopleWithoutSchedulesEmitPayload';
|
|
4711
|
+
version: 'v2021_05_19';
|
|
4712
|
+
namespace: 'Calendar';
|
|
4713
|
+
name: '';
|
|
4714
|
+
fields: {
|
|
4715
|
+
/** . */
|
|
4716
|
+
'calendarIds': {
|
|
4717
|
+
type: 'id';
|
|
4718
|
+
isRequired: true;
|
|
4719
|
+
isArray: true;
|
|
4720
|
+
options: undefined;
|
|
4721
|
+
};
|
|
4722
|
+
};
|
|
4723
|
+
}
|
|
4724
|
+
interface ListPeopleWithoutSchedulesEmitPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema> {
|
|
4725
|
+
}
|
|
4726
|
+
}
|
|
4727
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4728
|
+
interface ListPeopleWithoutSchedulesEmitTargetAndPayload {
|
|
4729
|
+
/** Source. */
|
|
4730
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
4731
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTarget;
|
|
4732
|
+
'payload': SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayload;
|
|
4733
|
+
}
|
|
4734
|
+
interface ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
4735
|
+
id: 'listPeopleWithoutSchedulesEmitTargetAndPayload';
|
|
4736
|
+
version: 'v2021_05_19';
|
|
4737
|
+
namespace: 'Calendar';
|
|
4738
|
+
name: '';
|
|
4739
|
+
fields: {
|
|
4740
|
+
/** Source. */
|
|
4741
|
+
'source': {
|
|
4742
|
+
label: 'Source';
|
|
4743
|
+
type: 'schema';
|
|
4744
|
+
options: {
|
|
4745
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
4746
|
+
};
|
|
4747
|
+
};
|
|
4748
|
+
/** . */
|
|
4749
|
+
'target': {
|
|
4750
|
+
type: 'schema';
|
|
4751
|
+
isRequired: true;
|
|
4752
|
+
options: {
|
|
4753
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetSchema;
|
|
4754
|
+
};
|
|
4755
|
+
};
|
|
4756
|
+
/** . */
|
|
4757
|
+
'payload': {
|
|
4758
|
+
type: 'schema';
|
|
4759
|
+
isRequired: true;
|
|
4760
|
+
options: {
|
|
4761
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitPayloadSchema;
|
|
4762
|
+
};
|
|
4763
|
+
};
|
|
4764
|
+
};
|
|
4765
|
+
}
|
|
4766
|
+
interface ListPeopleWithoutSchedulesEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesEmitTargetAndPayloadSchema> {
|
|
4767
|
+
}
|
|
4768
|
+
}
|
|
4769
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4770
|
+
interface PersonWithoutSchedule {
|
|
4771
|
+
/** Id. */
|
|
4772
|
+
'id': string;
|
|
4773
|
+
/** Casual name. The name you can use when talking to this person. */
|
|
4774
|
+
'casualName': string;
|
|
4775
|
+
/** Avatar src. */
|
|
4776
|
+
'avatar'?: SpruceSchema.ImageFieldValue | undefined | null;
|
|
4777
|
+
}
|
|
4778
|
+
interface PersonWithoutScheduleSchema extends SpruceSchema.Schema {
|
|
4779
|
+
id: 'person-without-schedule';
|
|
4780
|
+
version: 'v2021_05_19';
|
|
4781
|
+
namespace: 'Calendar';
|
|
4782
|
+
name: '';
|
|
4783
|
+
fields: {
|
|
4784
|
+
/** Id. */
|
|
4785
|
+
'id': {
|
|
4786
|
+
label: 'Id';
|
|
4787
|
+
type: 'id';
|
|
4788
|
+
isRequired: true;
|
|
4789
|
+
options: undefined;
|
|
4790
|
+
};
|
|
4791
|
+
/** Casual name. The name you can use when talking to this person. */
|
|
4792
|
+
'casualName': {
|
|
4793
|
+
label: 'Casual name';
|
|
4794
|
+
type: 'text';
|
|
4795
|
+
isRequired: true;
|
|
4796
|
+
hint: 'The name you can use when talking to this person.';
|
|
4797
|
+
options: undefined;
|
|
4798
|
+
};
|
|
4799
|
+
/** Avatar src. */
|
|
4800
|
+
'avatar': {
|
|
4801
|
+
label: 'Avatar src';
|
|
4802
|
+
type: 'image';
|
|
4803
|
+
options: {
|
|
4804
|
+
requiredSizes: ["*"];
|
|
4805
|
+
};
|
|
4806
|
+
};
|
|
4807
|
+
};
|
|
4808
|
+
}
|
|
4809
|
+
interface PersonWithoutScheduleEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema> {
|
|
4810
|
+
}
|
|
4811
|
+
}
|
|
4812
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4813
|
+
interface ListPeopleWithoutSchedulesResponsePayload {
|
|
4814
|
+
'people': SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule[];
|
|
4815
|
+
}
|
|
4816
|
+
interface ListPeopleWithoutSchedulesResponsePayloadSchema extends SpruceSchema.Schema {
|
|
4817
|
+
id: 'listPeopleWithoutSchedulesResponsePayload';
|
|
4818
|
+
version: 'v2021_05_19';
|
|
4819
|
+
namespace: 'Calendar';
|
|
4820
|
+
name: '';
|
|
4821
|
+
fields: {
|
|
4822
|
+
/** . */
|
|
4823
|
+
'people': {
|
|
4824
|
+
type: 'schema';
|
|
4825
|
+
isRequired: true;
|
|
4826
|
+
isArray: true;
|
|
4827
|
+
minArrayLength: 0;
|
|
4828
|
+
options: {
|
|
4829
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.PersonWithoutScheduleSchema;
|
|
4830
|
+
};
|
|
4831
|
+
};
|
|
4832
|
+
};
|
|
4833
|
+
}
|
|
4834
|
+
interface ListPeopleWithoutSchedulesResponsePayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.ListPeopleWithoutSchedulesResponsePayloadSchema> {
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4726
4837
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4727
4838
|
interface CalendarTarget {
|
|
4728
4839
|
'organizationId'?: string | undefined | null;
|
|
@@ -4749,6 +4860,48 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
4749
4860
|
interface CalendarTargetEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CalendarTargetSchema> {
|
|
4750
4861
|
}
|
|
4751
4862
|
}
|
|
4863
|
+
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4864
|
+
interface CreateCalendarEventEmitTargetAndPayload {
|
|
4865
|
+
/** Source. */
|
|
4866
|
+
'source'?: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSource | undefined | null;
|
|
4867
|
+
'target': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTarget;
|
|
4868
|
+
'payload': SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayload;
|
|
4869
|
+
}
|
|
4870
|
+
interface CreateCalendarEventEmitTargetAndPayloadSchema extends SpruceSchema.Schema {
|
|
4871
|
+
id: 'createCalendarEventEmitTargetAndPayload';
|
|
4872
|
+
version: 'v2021_05_19';
|
|
4873
|
+
namespace: 'Calendar';
|
|
4874
|
+
name: '';
|
|
4875
|
+
fields: {
|
|
4876
|
+
/** Source. */
|
|
4877
|
+
'source': {
|
|
4878
|
+
label: 'Source';
|
|
4879
|
+
type: 'schema';
|
|
4880
|
+
options: {
|
|
4881
|
+
schema: SpruceSchemas.SpruceEventUtils.v2021_09_13.EventSourceSchema;
|
|
4882
|
+
};
|
|
4883
|
+
};
|
|
4884
|
+
/** . */
|
|
4885
|
+
'target': {
|
|
4886
|
+
type: 'schema';
|
|
4887
|
+
isRequired: true;
|
|
4888
|
+
options: {
|
|
4889
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetSchema;
|
|
4890
|
+
};
|
|
4891
|
+
};
|
|
4892
|
+
/** . */
|
|
4893
|
+
'payload': {
|
|
4894
|
+
type: 'schema';
|
|
4895
|
+
isRequired: true;
|
|
4896
|
+
options: {
|
|
4897
|
+
schema: SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitPayloadSchema;
|
|
4898
|
+
};
|
|
4899
|
+
};
|
|
4900
|
+
};
|
|
4901
|
+
}
|
|
4902
|
+
interface CreateCalendarEventEmitTargetAndPayloadEntity extends SchemaEntity<SpruceSchemas.Calendar.v2021_05_19.CreateCalendarEventEmitTargetAndPayloadSchema> {
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4752
4905
|
namespace SpruceSchemas.Calendar.v2021_05_19 {
|
|
4753
4906
|
interface CalendarEventType {
|
|
4754
4907
|
'id': string;
|
|
@@ -2,15 +2,19 @@ import { AbstractViewController, LineIcon, SkillViewControllerLoadOptions, ToolB
|
|
|
2
2
|
import { SpruceSchemas } from '@sprucelabs/mercury-types';
|
|
3
3
|
import { EventTarget } from '@sprucelabs/spruce-event-utils';
|
|
4
4
|
import { UpdateRepeatingStrategy } from '../constants';
|
|
5
|
+
import Scheduler from '../schedulers/Scheduler';
|
|
6
|
+
import CalendarEventsStore from '../stores/CalendarEvents.store';
|
|
7
|
+
import CalendarsStore from '../stores/Calendars.store';
|
|
5
8
|
import CalendarEventManager from '../utilities/CalendarEventManager';
|
|
6
9
|
import CalendarPeopleManager from '../utilities/CalendarPeopleManager';
|
|
7
10
|
import CalendarViewController from '../viewControllers/Calendar.vc';
|
|
8
11
|
export interface Schedule {
|
|
9
12
|
target: EventTarget;
|
|
10
|
-
events:
|
|
13
|
+
events: CalendarEventRecord[];
|
|
11
14
|
}
|
|
12
15
|
export declare type EventForShift = Pick<CalendarEvent, 'id' | 'timeBlocks' | 'startDateTimeMs' | 'target'>;
|
|
13
16
|
export declare type DraftEvent = Pick<CalendarEvent, 'id' | 'startDateTimeMs' | 'style' | 'calendarId' | 'target' | 'timeBlocks' | 'isBusy'>;
|
|
17
|
+
export declare type CalendarEventRecord = SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
|
|
14
18
|
export declare type CalendarEvent = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.CalendarEvent;
|
|
15
19
|
export declare type UpdateEvent = SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload & CalendarEvent;
|
|
16
20
|
export declare type Person = SpruceSchemas.Spruce.v2020_07_22.Person;
|
|
@@ -20,6 +24,7 @@ export declare type Calendar = SpruceSchemas.Calendar.v2021_05_19.Calendar;
|
|
|
20
24
|
export declare type CalendarEventType = SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
|
|
21
25
|
export declare type SimpleCalendar = Pick<Calendar, 'id' | 'availableTimeSlotBehavior'>;
|
|
22
26
|
declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
27
|
+
export declare type PersonWithoutSchedule = SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule;
|
|
23
28
|
declare type ICalendarToolBeltContext = SkillViewControllerLoadOptions & {
|
|
24
29
|
event: CalendarEvent;
|
|
25
30
|
/**
|
|
@@ -61,4 +66,11 @@ export interface CalendarToolOptions {
|
|
|
61
66
|
export interface EventWithToolBeltState {
|
|
62
67
|
getToolBeltState(): ToolBeltState;
|
|
63
68
|
}
|
|
69
|
+
declare module '@sprucelabs/spruce-skill-utils/build/types/skill.types' {
|
|
70
|
+
interface SkillContext {
|
|
71
|
+
events: CalendarEventsStore;
|
|
72
|
+
calendars: CalendarsStore;
|
|
73
|
+
scheduler: Scheduler;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
64
76
|
export {};
|
|
@@ -2,15 +2,19 @@ import { AbstractViewController, LineIcon, SkillViewControllerLoadOptions, ToolB
|
|
|
2
2
|
import { SpruceSchemas } from '@sprucelabs/mercury-types';
|
|
3
3
|
import { EventTarget } from '@sprucelabs/spruce-event-utils';
|
|
4
4
|
import { UpdateRepeatingStrategy } from '../constants';
|
|
5
|
+
import Scheduler from '../schedulers/Scheduler';
|
|
6
|
+
import CalendarEventsStore from '../stores/CalendarEvents.store';
|
|
7
|
+
import CalendarsStore from '../stores/Calendars.store';
|
|
5
8
|
import CalendarEventManager from '../utilities/CalendarEventManager';
|
|
6
9
|
import CalendarPeopleManager from '../utilities/CalendarPeopleManager';
|
|
7
10
|
import CalendarViewController from '../viewControllers/Calendar.vc';
|
|
8
11
|
export interface Schedule {
|
|
9
12
|
target: EventTarget;
|
|
10
|
-
events:
|
|
13
|
+
events: CalendarEventRecord[];
|
|
11
14
|
}
|
|
12
15
|
export declare type EventForShift = Pick<CalendarEvent, 'id' | 'timeBlocks' | 'startDateTimeMs' | 'target'>;
|
|
13
16
|
export declare type DraftEvent = Pick<CalendarEvent, 'id' | 'startDateTimeMs' | 'style' | 'calendarId' | 'target' | 'timeBlocks' | 'isBusy'>;
|
|
17
|
+
export declare type CalendarEventRecord = SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEvent;
|
|
14
18
|
export declare type CalendarEvent = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.CalendarEvent;
|
|
15
19
|
export declare type UpdateEvent = SpruceSchemas.Calendar.v2021_05_19.UpdateCalendarEventEmitPayload & CalendarEvent;
|
|
16
20
|
export declare type Person = SpruceSchemas.Spruce.v2020_07_22.Person;
|
|
@@ -20,6 +24,7 @@ export declare type Calendar = SpruceSchemas.Calendar.v2021_05_19.Calendar;
|
|
|
20
24
|
export declare type CalendarEventType = SpruceSchemas.Calendar.v2021_05_19.CalendarEventType;
|
|
21
25
|
export declare type SimpleCalendar = Pick<Calendar, 'id' | 'availableTimeSlotBehavior'>;
|
|
22
26
|
declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
|
|
27
|
+
export declare type PersonWithoutSchedule = SpruceSchemas.Calendar.v2021_05_19.PersonWithoutSchedule;
|
|
23
28
|
declare type ICalendarToolBeltContext = SkillViewControllerLoadOptions & {
|
|
24
29
|
event: CalendarEvent;
|
|
25
30
|
/**
|
|
@@ -61,4 +66,11 @@ export interface CalendarToolOptions {
|
|
|
61
66
|
export interface EventWithToolBeltState {
|
|
62
67
|
getToolBeltState(): ToolBeltState;
|
|
63
68
|
}
|
|
69
|
+
declare module '@sprucelabs/spruce-skill-utils/build/types/skill.types' {
|
|
70
|
+
interface SkillContext {
|
|
71
|
+
events: CalendarEventsStore;
|
|
72
|
+
calendars: CalendarsStore;
|
|
73
|
+
scheduler: Scheduler;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
64
76
|
export {};
|