@sprucelabs/spruce-calendar-components 22.10.0 → 22.10.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.
|
@@ -32,7 +32,7 @@ export default class RemoteEventStoreImpl implements RemoteEventStore {
|
|
|
32
32
|
clearCalendarId(): void;
|
|
33
33
|
getCalendarId(): string | undefined;
|
|
34
34
|
waitForPendingSaves(): Promise<void>;
|
|
35
|
-
cancelEvent(id: string): Promise<void>;
|
|
35
|
+
cancelEvent(id: string, options: CancelEventRecurringOptions): Promise<void>;
|
|
36
36
|
getSchedules(options: GetScheduleOptions): Promise<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema>, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema, false>>[]>;
|
|
37
37
|
getEventTypes(): Promise<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema>, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema, false>>[]>;
|
|
38
38
|
getCalendars(): Promise<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.Calendar.v2021_05_19.CalendarSchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<SpruceSchemas.Calendar.v2021_05_19.CalendarSchema>, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.Calendar.v2021_05_19.CalendarSchema, false>>[]>;
|
|
@@ -211,7 +211,7 @@ export default class RemoteEventStoreImpl {
|
|
|
211
211
|
yield Promise.all(this.promises);
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
cancelEvent(id) {
|
|
214
|
+
cancelEvent(id, options) {
|
|
215
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
216
|
if (this.pendingEvents[id]) {
|
|
217
217
|
delete this.pendingEvents[id];
|
|
@@ -222,6 +222,7 @@ export default class RemoteEventStoreImpl {
|
|
|
222
222
|
locationId: this.locationId,
|
|
223
223
|
calendarEventId: id,
|
|
224
224
|
},
|
|
225
|
+
payload: Object.assign({}, options),
|
|
225
226
|
});
|
|
226
227
|
}
|
|
227
228
|
});
|
|
@@ -32,7 +32,7 @@ export default class RemoteEventStoreImpl implements RemoteEventStore {
|
|
|
32
32
|
clearCalendarId(): void;
|
|
33
33
|
getCalendarId(): string | undefined;
|
|
34
34
|
waitForPendingSaves(): Promise<void>;
|
|
35
|
-
cancelEvent(id: string): Promise<void>;
|
|
35
|
+
cancelEvent(id: string, options: CancelEventRecurringOptions): Promise<void>;
|
|
36
36
|
getSchedules(options: GetScheduleOptions): Promise<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema>, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.CalendarUtils.v2021_05_19.CalendarEventSchema, false>>[]>;
|
|
37
37
|
getEventTypes(): Promise<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema>, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.Calendar.v2021_05_19.CalendarEventTypeSchema, false>>[]>;
|
|
38
38
|
getCalendars(): Promise<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.Calendar.v2021_05_19.CalendarSchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<SpruceSchemas.Calendar.v2021_05_19.CalendarSchema>, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.Calendar.v2021_05_19.CalendarSchema, false>>[]>;
|
|
@@ -193,7 +193,7 @@ class RemoteEventStoreImpl {
|
|
|
193
193
|
async waitForPendingSaves() {
|
|
194
194
|
await Promise.all(this.promises);
|
|
195
195
|
}
|
|
196
|
-
async cancelEvent(id) {
|
|
196
|
+
async cancelEvent(id, options) {
|
|
197
197
|
if (this.pendingEvents[id]) {
|
|
198
198
|
delete this.pendingEvents[id];
|
|
199
199
|
}
|
|
@@ -203,6 +203,7 @@ class RemoteEventStoreImpl {
|
|
|
203
203
|
locationId: this.locationId,
|
|
204
204
|
calendarEventId: id,
|
|
205
205
|
},
|
|
206
|
+
payload: Object.assign({}, options),
|
|
206
207
|
});
|
|
207
208
|
}
|
|
208
209
|
}
|