buckyos 0.7.180 → 0.7.183
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/LICENSE +202 -21
- package/NOTICE +35 -0
- package/README.md +4 -0
- package/cli/deno.json +3 -2
- package/cli/dist/cli.mjs +1534 -216
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/aiws.ts +761 -58
- package/cli/modules/aiws_place.ts +383 -0
- package/cli/modules/aiws_schedule.ts +256 -0
- package/cli/runtime/host.ts +18 -0
- package/cli/runtime/host_deno.ts +34 -0
- package/cli/runtime/host_node.ts +32 -1
- package/cli/runtime/node_entry.ts +1 -0
- package/cli/system_bootstrap.ts +1 -0
- package/cli/system_launcher.ts +1 -0
- package/cli/version.ts +1 -1
- package/dist/aicc_client.d.ts +1 -1
- package/dist/aicc_client.d.ts.map +1 -1
- package/dist/aiworkspace_client.d.ts +253 -2
- package/dist/aiworkspace_client.d.ts.map +1 -1
- package/dist/aiws_bind-3b874f77.mjs +2235 -0
- package/dist/aiws_bind-3b874f77.mjs.map +1 -0
- package/dist/aiws_bind-82bace11.js +2 -0
- package/dist/aiws_bind-82bace11.js.map +1 -0
- package/dist/aiws_bind.d.ts +233 -0
- package/dist/aiws_bind.d.ts.map +1 -0
- package/dist/aiws_ext.cjs +1 -1
- package/dist/aiws_ext.cjs.map +1 -1
- package/dist/aiws_ext.d.ts +9 -5
- package/dist/aiws_ext.d.ts.map +1 -1
- package/dist/aiws_ext.mjs +146 -11
- package/dist/aiws_ext.mjs.map +1 -1
- package/dist/aiws_rrule.d.ts +121 -0
- package/dist/aiws_rrule.d.ts.map +1 -0
- package/dist/aiws_schedule.d.ts +324 -0
- package/dist/aiws_schedule.d.ts.map +1 -0
- package/dist/aiws_write-89b5cc2a.js +13 -0
- package/dist/aiws_write-89b5cc2a.js.map +1 -0
- package/dist/{executor_client-bfc8a1e1.mjs → aiws_write-c2de498e.mjs} +724 -285
- package/dist/aiws_write-c2de498e.mjs.map +1 -0
- package/dist/aiws_write.d.ts +178 -0
- package/dist/aiws_write.d.ts.map +1 -0
- package/dist/browser.cjs +1 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +4 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.mjs +112 -21
- package/dist/browser.mjs.map +1 -1
- package/dist/{content_objid-9232bcaf.mjs → content_objid-a2cafba9.mjs} +2 -2
- package/dist/{content_objid-9232bcaf.mjs.map → content_objid-a2cafba9.mjs.map} +1 -1
- package/dist/content_objid-dff803ff.js +2 -0
- package/dist/{content_objid-1aff74b6.js.map → content_objid-dff803ff.js.map} +1 -1
- package/dist/{did_object_client-7fa36f90.mjs → did_object_client-cb2f9aba.mjs} +2 -2
- package/dist/{did_object_client-7fa36f90.mjs.map → did_object_client-cb2f9aba.mjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +113 -22
- package/dist/index.mjs.map +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +5 -0
- package/dist/node.d.ts.map +1 -1
- package/dist/node.mjs +99 -6
- package/dist/node.mjs.map +1 -1
- package/dist/{object_url-f72c1704.mjs → object_url-376c5222.mjs} +4 -4
- package/dist/{object_url-f72c1704.mjs.map → object_url-376c5222.mjs.map} +1 -1
- package/dist/xllm.mjs +2 -2
- package/package.json +5 -4
- package/dist/content_objid-1aff74b6.js +0 -2
- package/dist/executor_client-7ce0ddc7.js +0 -13
- package/dist/executor_client-7ce0ddc7.js.map +0 -1
- package/dist/executor_client-bfc8a1e1.mjs.map +0 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
export type Freq = 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
|
|
2
|
+
/** Weekdays as RRULE writes them; index 0 is Monday. */
|
|
3
|
+
export declare const WEEKDAYS: readonly ["MO", "TU", "WE", "TH", "FR", "SA", "SU"];
|
|
4
|
+
export type Weekday = (typeof WEEKDAYS)[number];
|
|
5
|
+
export interface ByDay {
|
|
6
|
+
weekday: number;
|
|
7
|
+
ordinal?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface RRule {
|
|
10
|
+
freq: Freq;
|
|
11
|
+
interval: number;
|
|
12
|
+
count?: number;
|
|
13
|
+
/** `YYYY-MM-DD` (a date) or an ISO UTC instant. */
|
|
14
|
+
until?: string;
|
|
15
|
+
byDay?: ByDay[];
|
|
16
|
+
byMonthDay?: number[];
|
|
17
|
+
byMonth?: number[];
|
|
18
|
+
bySetPos?: number;
|
|
19
|
+
/** Week start, 0 = Monday (the default). */
|
|
20
|
+
wkst: number;
|
|
21
|
+
}
|
|
22
|
+
export declare class RRuleError extends Error {
|
|
23
|
+
constructor(message: string);
|
|
24
|
+
}
|
|
25
|
+
/** Parse a rule of the subset (an optional `RRULE:` prefix is accepted). Throws `RRuleError` naming the part. */
|
|
26
|
+
export declare function parseRRule(text: string): RRule;
|
|
27
|
+
/** The rule as RRULE text, parts in a fixed order. */
|
|
28
|
+
export declare function formatRRule(rule: RRule): string;
|
|
29
|
+
export declare function isDate(s: string): boolean;
|
|
30
|
+
export declare const isLeap: (y: number) => boolean;
|
|
31
|
+
export declare function daysInMonth(y: number, m: number): number;
|
|
32
|
+
export declare const dayNumber: (y: number, m: number, d: number) => number;
|
|
33
|
+
export declare function dayOf(date: string): number;
|
|
34
|
+
export declare function dateOf(day: number): string;
|
|
35
|
+
export declare function ymdOf(day: number): {
|
|
36
|
+
y: number;
|
|
37
|
+
m: number;
|
|
38
|
+
d: number;
|
|
39
|
+
};
|
|
40
|
+
/** Weekday of a day number, 0 = Monday. */
|
|
41
|
+
export declare const weekdayOf: (day: number) => number;
|
|
42
|
+
/** Is `tz` a time zone this runtime knows? */
|
|
43
|
+
export declare function isTimeZone(tz: string): boolean;
|
|
44
|
+
/** The wall clock of `ms` in `tz`. */
|
|
45
|
+
export declare function zonedParts(ms: number, tz: string): {
|
|
46
|
+
y: number;
|
|
47
|
+
m: number;
|
|
48
|
+
d: number;
|
|
49
|
+
h: number;
|
|
50
|
+
mi: number;
|
|
51
|
+
s: number;
|
|
52
|
+
};
|
|
53
|
+
/** The instant of a wall clock in `tz` (a time skipped by a clock change moves forward by the change). */
|
|
54
|
+
export declare function zonedToUtc(day: number, minuteOfDay: number, secondOfMinute: number, tz: string): number;
|
|
55
|
+
/** The local date (day number) of an instant in `tz`. */
|
|
56
|
+
export declare function localDay(ms: number, tz: string): number;
|
|
57
|
+
/** Where a series starts: an all-day date, or an instant with the zone it repeats in. */
|
|
58
|
+
export type SeriesStart = {
|
|
59
|
+
kind: 'date';
|
|
60
|
+
date: string;
|
|
61
|
+
} | {
|
|
62
|
+
kind: 'datetime';
|
|
63
|
+
utc: string;
|
|
64
|
+
tz: string;
|
|
65
|
+
};
|
|
66
|
+
export interface Occurrence {
|
|
67
|
+
/** The occurrence's identity within its series: its original start as the event writes it (a date, or an ISO UTC instant). */
|
|
68
|
+
original: string;
|
|
69
|
+
/** All-day: the date. */
|
|
70
|
+
date?: string;
|
|
71
|
+
/** Timed: the instant (ms). */
|
|
72
|
+
startMs?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface ExpandOptions {
|
|
75
|
+
/** Originals excluded from the series (`ext.exdate`). */
|
|
76
|
+
exdate?: readonly string[];
|
|
77
|
+
/** Length of one occurrence (timed: ms, all-day: days − 1), so one that started before the window but overlaps it is kept. */
|
|
78
|
+
durationMs?: number;
|
|
79
|
+
durationDays?: number;
|
|
80
|
+
/** The viewer's zone: all-day occurrences are dates on the viewer's calendar. Default UTC. */
|
|
81
|
+
viewerTz?: string;
|
|
82
|
+
/** At most this many occurrences (default 2000). */
|
|
83
|
+
limit?: number;
|
|
84
|
+
}
|
|
85
|
+
/** The occurrences of a series overlapping the window `[fromMs, toMs)`, in order. DTSTART is always the first
|
|
86
|
+
* occurrence (as mainstream calendars show it), counted by COUNT. Excluded originals (EXDATE) are left out but still
|
|
87
|
+
* counted, as RFC 5545 says. */
|
|
88
|
+
export declare function expandSeries(rule: RRule, start: SeriesStart, window: {
|
|
89
|
+
fromMs: number;
|
|
90
|
+
toMs: number;
|
|
91
|
+
}, opts?: ExpandOptions): Occurrence[];
|
|
92
|
+
/** The series of an event record's values (`start` / `start_date`, `ext.tz`), or null when it does not repeat. */
|
|
93
|
+
export declare function seriesStartOf(values: {
|
|
94
|
+
all_day?: unknown;
|
|
95
|
+
start?: unknown;
|
|
96
|
+
start_date?: unknown;
|
|
97
|
+
}, tz: string | undefined, fallbackTz?: string): SeriesStart | null;
|
|
98
|
+
/** The original of the occurrence that starts at `ms` (timed) or on `date` (all-day): its identity in `ext.exdate` /
|
|
99
|
+
* `ext.recurrence_id.original`. */
|
|
100
|
+
export declare function originalOf(occ: {
|
|
101
|
+
date?: string;
|
|
102
|
+
startMs?: number;
|
|
103
|
+
}): string;
|
|
104
|
+
/** `<record_id>@<original>`: an occurrence's id, apart from where it is planned (D4 §5.5). */
|
|
105
|
+
export declare function occurrenceId(recordId: string, original: string): string;
|
|
106
|
+
export declare function parseOccurrenceId(id: string): {
|
|
107
|
+
recordId: string;
|
|
108
|
+
original: string | null;
|
|
109
|
+
};
|
|
110
|
+
export type RecurrenceLocale = 'zh' | 'en';
|
|
111
|
+
/** A sentence for a rule ("每个工作日", "每月最后一个周五", "every 2 weeks on Monday, Wednesday, 10 times"). */
|
|
112
|
+
export declare function describeRRule(rule: RRule, locale?: RecurrenceLocale): string;
|
|
113
|
+
export interface RecurrencePreset {
|
|
114
|
+
id: 'none' | 'daily' | 'weekdays' | 'weekly' | 'monthly_day' | 'monthly_nth' | 'monthly_last' | 'yearly';
|
|
115
|
+
label: string;
|
|
116
|
+
/** null: does not repeat. */
|
|
117
|
+
rrule: string | null;
|
|
118
|
+
}
|
|
119
|
+
/** The choices of a mainstream calendar's "repeat" menu for an event starting on `date` (`YYYY-MM-DD`, local). */
|
|
120
|
+
export declare function recurrencePresets(date: string, locale?: RecurrenceLocale): RecurrencePreset[];
|
|
121
|
+
//# sourceMappingURL=aiws_rrule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiws_rrule.d.ts","sourceRoot":"","sources":["../src/aiws_rrule.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAA;AAC5D,wDAAwD;AACxD,eAAO,MAAM,QAAQ,qDAAsD,CAAA;AAC3E,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;AAE/C,MAAM,WAAW,KAAK;IAAG,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AAE5D,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,KAAK,EAAE,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAA;CACb;AAED,qBAAa,UAAW,SAAQ,KAAK;gBACvB,OAAO,EAAE,MAAM;CAI5B;AAmCD,iHAAiH;AACjH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CA8D9C;AAED,sDAAsD;AACtD,wBAAgB,WAAW,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAW/C;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAKzC;AACD,eAAO,MAAM,MAAM,MAAO,MAAM,YAAoD,CAAA;AACpF,wBAAgB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AM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvE;AACD,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAG3F;AAID,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAA;AAU1C,mGAAmG;AACnG,wBAAgB,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,GAAE,gBAAuB,GAAG,MAAM,CA2ClF;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,aAAa,GAAG,aAAa,GAAG,cAAc,GAAG,QAAQ,CAAA;IACxG,KAAK,EAAE,MAAM,CAAA;IACb,6BAA6B;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,kHAAkH;AAClH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,gBAAuB,GAAG,gBAAgB,EAAE,CAmBnG"}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
export declare const TODO_SCHEMA_ID = "buckyos.todo@1";
|
|
2
|
+
export declare const CALENDAR_SCHEMA_ID = "buckyos.calendar@1";
|
|
3
|
+
export declare const SCHEDULE_WORKSPACE_NAME = "schedule";
|
|
4
|
+
export declare const SCHEDULE_TODO_ID = "todo";
|
|
5
|
+
export declare const SCHEDULE_CALENDAR_ID = "calendar";
|
|
6
|
+
export declare const SCHEDULE_SURFACE_ID = "schedule-board";
|
|
7
|
+
export declare const TODO_DONE = "done";
|
|
8
|
+
export declare const AIWS_PROTOCOL_VERSION = "1.2";
|
|
9
|
+
export type Json = null | boolean | number | string | Json[] | {
|
|
10
|
+
[key: string]: Json;
|
|
11
|
+
};
|
|
12
|
+
export type Op = Record<string, Json>;
|
|
13
|
+
export type ScheduleLocale = 'zh' | 'en';
|
|
14
|
+
export interface FieldDef {
|
|
15
|
+
field_id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
nullable?: boolean;
|
|
20
|
+
options?: {
|
|
21
|
+
option_id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
}
|
|
25
|
+
export declare function scheduleLabel(locale: ScheduleLocale, key: string): string;
|
|
26
|
+
/** The standard fields of a to-do table (`buckyos.todo@1`). */
|
|
27
|
+
export declare function todoFields(locale?: ScheduleLocale): FieldDef[];
|
|
28
|
+
/** The standard fields of a calendar table (`buckyos.calendar@1`). */
|
|
29
|
+
export declare function calendarFields(locale?: ScheduleLocale): FieldDef[];
|
|
30
|
+
/** `entity.create` of a standard table. */
|
|
31
|
+
export declare function standardTableOp(kind: 'todo' | 'calendar', args: {
|
|
32
|
+
entity_id: string;
|
|
33
|
+
parent_id: string;
|
|
34
|
+
order_key: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
locale?: ScheduleLocale;
|
|
37
|
+
}): Op;
|
|
38
|
+
export declare function isOrderKey(k: unknown): k is string;
|
|
39
|
+
/** A key strictly between `a` and `b` (null: open end), as the core computes it. */
|
|
40
|
+
export declare function orderKeyBetween(a?: string | null, b?: string | null): string;
|
|
41
|
+
/** `count` keys spread between `a` and `b`, in order. */
|
|
42
|
+
export declare function orderKeysBetween(a: string | null, b: string | null, count: number): string[];
|
|
43
|
+
/** A record as `doc.read` (`table_record`) and the SQL `_record` column answer it. */
|
|
44
|
+
export interface RowLike {
|
|
45
|
+
record_id: string;
|
|
46
|
+
rev?: number;
|
|
47
|
+
revs?: Record<string, number>;
|
|
48
|
+
values: Record<string, Json | undefined>;
|
|
49
|
+
/** The record's rich-text body (notes), when it has one. */
|
|
50
|
+
body_ref?: {
|
|
51
|
+
entity_id: string;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/** A record id: `r` + time + a counter + randomness (lower case, ≤ 64). */
|
|
55
|
+
export declare function newRecordId(prefix?: string): string;
|
|
56
|
+
/** `table.set_values` / `table.unset_values` of `changes` (null or undefined unsets), each cell expected at the rev the
|
|
57
|
+
* row was read with — the core requires it: concurrent writers of other cells merge, the same cell conflicts. */
|
|
58
|
+
export declare function setValuesOps(sourceId: string, row: RowLike, changes: Record<string, Json | undefined>): Op[];
|
|
59
|
+
export declare function insertRecordOp(sourceId: string, records: {
|
|
60
|
+
record_id: string;
|
|
61
|
+
values: Record<string, Json | undefined>;
|
|
62
|
+
}[]): Op;
|
|
63
|
+
/** `table.delete_records` of rows as read (each expected at its record rev, as the core requires). */
|
|
64
|
+
export declare function deleteRecordsOp(sourceId: string, rows: RowLike[]): Op;
|
|
65
|
+
/** An original start as the series writes it: a date as it is, an instant as canonical UTC (`ext` keeps what was
|
|
66
|
+
* written, any RFC 3339 offset). */
|
|
67
|
+
export declare function canonicalOriginal(x: string): string;
|
|
68
|
+
export interface TodoValues {
|
|
69
|
+
title?: string;
|
|
70
|
+
status?: string;
|
|
71
|
+
due?: string | null;
|
|
72
|
+
order?: string | null;
|
|
73
|
+
done_at?: string | null;
|
|
74
|
+
ext?: Record<string, Json> | null;
|
|
75
|
+
}
|
|
76
|
+
/** A to-do as the controls read it; still the record it came from (`values`, `revs`), so the operations take it. */
|
|
77
|
+
export interface TodoItem extends RowLike {
|
|
78
|
+
title: string;
|
|
79
|
+
status: string;
|
|
80
|
+
due: string | null;
|
|
81
|
+
order: string | null;
|
|
82
|
+
done: boolean;
|
|
83
|
+
done_at: string | null;
|
|
84
|
+
ext: Record<string, Json>;
|
|
85
|
+
}
|
|
86
|
+
export declare function todoItem(row: RowLike): TodoItem;
|
|
87
|
+
/** To-do items in list order: by `order`, items without one last (by id, stable). */
|
|
88
|
+
export declare function sortTodos<T extends {
|
|
89
|
+
order: string | null;
|
|
90
|
+
record_id: string;
|
|
91
|
+
}>(items: T[]): T[];
|
|
92
|
+
/** Add a to-do: `order` between its neighbours (`after` / `before` keys, default: at the end of `items`). */
|
|
93
|
+
export declare function todoAddOps(sourceId: string, input: TodoValues & {
|
|
94
|
+
title: string;
|
|
95
|
+
record_id?: string;
|
|
96
|
+
}, place?: {
|
|
97
|
+
after?: string | null;
|
|
98
|
+
before?: string | null;
|
|
99
|
+
items?: {
|
|
100
|
+
order: string | null;
|
|
101
|
+
}[];
|
|
102
|
+
}): {
|
|
103
|
+
record_id: string;
|
|
104
|
+
ops: Op[];
|
|
105
|
+
order: string;
|
|
106
|
+
};
|
|
107
|
+
/** Complete (or reopen) a to-do: status `done` and `done_at`, or back to `reopenStatus` (default `todo`). */
|
|
108
|
+
export declare function todoCompleteOps(sourceId: string, row: RowLike, done: boolean, opts?: {
|
|
109
|
+
now?: string;
|
|
110
|
+
reopenStatus?: string;
|
|
111
|
+
}): Op[];
|
|
112
|
+
/** Move a to-do: to another status (column) and / or a new place (`order`). Completing by moving to `done` stamps
|
|
113
|
+
* `done_at`, leaving it clears it. */
|
|
114
|
+
export declare function todoMoveOps(sourceId: string, row: RowLike, to: {
|
|
115
|
+
status?: string;
|
|
116
|
+
order?: string | null;
|
|
117
|
+
}, opts?: {
|
|
118
|
+
now?: string;
|
|
119
|
+
}): Op[];
|
|
120
|
+
/** Change fields of a to-do (title, due, ext …). `ext` is merged into the stored one (null removes a key). */
|
|
121
|
+
export declare function todoUpdateOps(sourceId: string, row: RowLike, changes: TodoValues & {
|
|
122
|
+
ext_merge?: Record<string, Json | null>;
|
|
123
|
+
}): Op[];
|
|
124
|
+
/** The order key for placing an item at `index` among `items` (sorted, the moved one excluded). */
|
|
125
|
+
export declare function orderAt(items: {
|
|
126
|
+
order: string | null;
|
|
127
|
+
}[], index: number): string;
|
|
128
|
+
export interface EventValues {
|
|
129
|
+
title?: string;
|
|
130
|
+
all_day?: boolean;
|
|
131
|
+
start?: string | null;
|
|
132
|
+
end?: string | null;
|
|
133
|
+
start_date?: string | null;
|
|
134
|
+
end_date?: string | null;
|
|
135
|
+
status?: string | null;
|
|
136
|
+
ext?: Record<string, Json> | null;
|
|
137
|
+
}
|
|
138
|
+
/** One shown occurrence of an event: a single event, an occurrence of a series, or the record overriding one. */
|
|
139
|
+
export interface EventOccurrence {
|
|
140
|
+
/** `record_id`, or `<master>@<original>` for an occurrence of a series. */
|
|
141
|
+
id: string;
|
|
142
|
+
/** The record holding what is shown (the master, or the override). */
|
|
143
|
+
row: RowLike;
|
|
144
|
+
/** The series' master when this is an occurrence of a series. */
|
|
145
|
+
master?: RowLike;
|
|
146
|
+
/** The occurrence's original start (its identity in the series). */
|
|
147
|
+
original?: string;
|
|
148
|
+
title: string;
|
|
149
|
+
allDay: boolean;
|
|
150
|
+
/** Timed: instants (ms). */
|
|
151
|
+
startMs?: number;
|
|
152
|
+
endMs?: number;
|
|
153
|
+
/** All-day: dates, end inclusive. */
|
|
154
|
+
startDate?: string;
|
|
155
|
+
endDate?: string;
|
|
156
|
+
status: string | null;
|
|
157
|
+
ext: Record<string, Json>;
|
|
158
|
+
/** The record repeats (a master or an occurrence of one). */
|
|
159
|
+
recurring: boolean;
|
|
160
|
+
/** The record overrides one occurrence of a series (`ext.recurrence_id`). */
|
|
161
|
+
override: boolean;
|
|
162
|
+
/** Shown from `ext.occurrences` an Agent wrote (a rule the subset cannot express). */
|
|
163
|
+
agentWritten: boolean;
|
|
164
|
+
}
|
|
165
|
+
/** The date of an instant on a zone's calendar. */
|
|
166
|
+
export declare function localDate(ms: number, tz: string): string;
|
|
167
|
+
export declare function viewerTimeZone(): string;
|
|
168
|
+
/** Every occurrence of the calendar's records overlapping `[fromMs, toMs)`: single events, expanded series (EXDATE
|
|
169
|
+
* removed, overridden occurrences replaced by their override records), and the occurrences an Agent wrote for rules
|
|
170
|
+
* outside the subset. Sorted by start. A series whose rule cannot be read shows its first occurrence only. */
|
|
171
|
+
export declare function calendarOccurrences(rows: RowLike[], window: {
|
|
172
|
+
fromMs: number;
|
|
173
|
+
toMs: number;
|
|
174
|
+
}, opts?: {
|
|
175
|
+
viewerTz?: string;
|
|
176
|
+
limit?: number;
|
|
177
|
+
}): EventOccurrence[];
|
|
178
|
+
/** A new event: timed (`start` / `end` ISO) or all-day (`start_date` / `end_date`). */
|
|
179
|
+
export declare function eventAddOps(sourceId: string, input: EventValues & {
|
|
180
|
+
title: string;
|
|
181
|
+
record_id?: string;
|
|
182
|
+
}): {
|
|
183
|
+
record_id: string;
|
|
184
|
+
ops: Op[];
|
|
185
|
+
};
|
|
186
|
+
/** When an event happens: timed or all-day. */
|
|
187
|
+
export type EventTimes = {
|
|
188
|
+
allDay: false;
|
|
189
|
+
start: string;
|
|
190
|
+
end: string;
|
|
191
|
+
} | {
|
|
192
|
+
allDay: true;
|
|
193
|
+
startDate: string;
|
|
194
|
+
endDate: string;
|
|
195
|
+
};
|
|
196
|
+
/** What an edit of one occurrence changes: its times and / or other fields. */
|
|
197
|
+
export interface EventChange {
|
|
198
|
+
times?: EventTimes;
|
|
199
|
+
values?: Omit<EventValues, 'all_day' | 'start' | 'end' | 'start_date' | 'end_date'>;
|
|
200
|
+
/** Keys merged into `ext` (null removes). */
|
|
201
|
+
ext_merge?: Record<string, Json | null>;
|
|
202
|
+
/** A new rule (`null`: stop repeating); only for `all` / `following`. */
|
|
203
|
+
rrule?: string | null;
|
|
204
|
+
}
|
|
205
|
+
export type RecurrenceScope = 'one' | 'following' | 'all';
|
|
206
|
+
export interface CalendarContext {
|
|
207
|
+
/** Every record of the calendar (or at least the series' master and its overrides). */
|
|
208
|
+
rows: RowLike[];
|
|
209
|
+
newRecordId?: () => string;
|
|
210
|
+
}
|
|
211
|
+
/** The ops of a change of one occurrence of an event (or of a single event): `one` overrides just that occurrence
|
|
212
|
+
* (“仅此一次”), `following` splits the series there (“此后全部”), `all` changes the series (“全部”), shifting its
|
|
213
|
+
* start, its exclusions and its overrides by the same amount. */
|
|
214
|
+
export declare function eventEditOps(sourceId: string, occ: Pick<EventOccurrence, 'row' | 'master' | 'original' | 'allDay' | 'startMs' | 'startDate'>, change: EventChange, scope: RecurrenceScope, ctx: CalendarContext): {
|
|
215
|
+
ops: Op[];
|
|
216
|
+
record_id: string;
|
|
217
|
+
};
|
|
218
|
+
/** Remove one occurrence (“今天不用了”: an exclusion, and its override goes), this and the following ones (the series
|
|
219
|
+
* ends before it), or the whole series with its overrides. A single event is deleted. */
|
|
220
|
+
export declare function eventDeleteOps(sourceId: string, occ: Pick<EventOccurrence, 'row' | 'master' | 'original'>, scope: RecurrenceScope, ctx: CalendarContext): Op[];
|
|
221
|
+
/** Skip one occurrence (D4: the notification's “skip”). */
|
|
222
|
+
export declare const eventSkipOps: (sourceId: string, occ: Pick<EventOccurrence, 'row' | 'master' | 'original'>, ctx: CalendarContext) => Op[];
|
|
223
|
+
/** Postpone one occurrence by `minutes` (D4: the notification's “snooze”): an override of that occurrence. */
|
|
224
|
+
export declare function eventPostponeOps(sourceId: string, occ: Pick<EventOccurrence, 'row' | 'master' | 'original' | 'allDay' | 'startMs' | 'endMs' | 'startDate' | 'endDate'>, minutes: number, ctx: CalendarContext): {
|
|
225
|
+
ops: Op[];
|
|
226
|
+
record_id: string;
|
|
227
|
+
};
|
|
228
|
+
export interface ScheduleHandle {
|
|
229
|
+
workspace_id: string;
|
|
230
|
+
epoch: string;
|
|
231
|
+
created: boolean;
|
|
232
|
+
todo: string;
|
|
233
|
+
calendar: string;
|
|
234
|
+
}
|
|
235
|
+
/** How the schedule talks to the service: one kRPC call whose business failure (`ok: false`) throws — an
|
|
236
|
+
* `AiWorkspaceClient`, or the CLI's service call. */
|
|
237
|
+
export interface ScheduleTransport {
|
|
238
|
+
call<T = Record<string, unknown>>(method: string, params: Record<string, unknown>): Promise<T>;
|
|
239
|
+
}
|
|
240
|
+
/** The person's private schedule (Q5): one Workspace named `schedule`, its to-do table `todo` and calendar table
|
|
241
|
+
* `calendar` (fixed ids), and a page showing both, created the first time. Agents and commands use it by name. */
|
|
242
|
+
export declare class ScheduleClient {
|
|
243
|
+
readonly aiws: ScheduleTransport;
|
|
244
|
+
private handle;
|
|
245
|
+
private readonly locale;
|
|
246
|
+
constructor(aiws: ScheduleTransport, opts?: {
|
|
247
|
+
locale?: ScheduleLocale;
|
|
248
|
+
});
|
|
249
|
+
/** The schedule Workspace with its two tables (created when missing; concurrent first uses converge). */
|
|
250
|
+
ensure(): Promise<ScheduleHandle>;
|
|
251
|
+
private commitTo;
|
|
252
|
+
/** Commit operations into the schedule; a refusal or conflict throws with the service's reason. */
|
|
253
|
+
commit(operations: Op[], message: string): Promise<CommitResult>;
|
|
254
|
+
/** Every live record of a table, as `doc.read` answers one (the SQL `_record` column), by record id. */
|
|
255
|
+
rows(sourceId: string): Promise<RowLike[]>;
|
|
256
|
+
row(sourceId: string, recordId: string): Promise<RowLike>;
|
|
257
|
+
todos(opts?: {
|
|
258
|
+
includeDone?: boolean;
|
|
259
|
+
}): Promise<TodoItem[]>;
|
|
260
|
+
addTodo(input: TodoValues & {
|
|
261
|
+
title: string;
|
|
262
|
+
}, place?: {
|
|
263
|
+
after?: string;
|
|
264
|
+
before?: string;
|
|
265
|
+
}): Promise<TodoItem>;
|
|
266
|
+
completeTodo(recordId: string, done?: boolean): Promise<void>;
|
|
267
|
+
updateTodo(recordId: string, changes: TodoValues & {
|
|
268
|
+
ext_merge?: Record<string, Json | null>;
|
|
269
|
+
}): Promise<void>;
|
|
270
|
+
/** Move a to-do before / after another one, and / or into another status. */
|
|
271
|
+
moveTodo(recordId: string, to: {
|
|
272
|
+
status?: string;
|
|
273
|
+
before?: string;
|
|
274
|
+
after?: string;
|
|
275
|
+
}): Promise<void>;
|
|
276
|
+
removeTodos(recordIds: string[]): Promise<void>;
|
|
277
|
+
events(window: {
|
|
278
|
+
fromMs: number;
|
|
279
|
+
toMs: number;
|
|
280
|
+
}, opts?: {
|
|
281
|
+
viewerTz?: string;
|
|
282
|
+
}): Promise<EventOccurrence[]>;
|
|
283
|
+
addEvent(input: EventValues & {
|
|
284
|
+
title: string;
|
|
285
|
+
}): Promise<string>;
|
|
286
|
+
/** The occurrence an id names (`record_id` or `<master>@<original>`), from all rows. */
|
|
287
|
+
occurrence(id: string): Promise<{
|
|
288
|
+
occ: EventOccurrence;
|
|
289
|
+
rows: RowLike[];
|
|
290
|
+
}>;
|
|
291
|
+
editEvent(id: string, change: EventChange, scope?: RecurrenceScope): Promise<string>;
|
|
292
|
+
deleteEvent(id: string, scope?: RecurrenceScope): Promise<void>;
|
|
293
|
+
}
|
|
294
|
+
export interface CommitResult {
|
|
295
|
+
status: 'accepted' | 'conflict' | 'rejected' | 'saved_locally';
|
|
296
|
+
seq?: number;
|
|
297
|
+
commit_id?: string;
|
|
298
|
+
code?: string;
|
|
299
|
+
sub_code?: string;
|
|
300
|
+
detail?: string;
|
|
301
|
+
errors?: {
|
|
302
|
+
code: string;
|
|
303
|
+
sub_code?: string;
|
|
304
|
+
detail?: string;
|
|
305
|
+
}[];
|
|
306
|
+
error?: {
|
|
307
|
+
code: string;
|
|
308
|
+
sub_code?: string;
|
|
309
|
+
detail: string;
|
|
310
|
+
retryable: boolean;
|
|
311
|
+
};
|
|
312
|
+
conflicts?: {
|
|
313
|
+
selector?: unknown;
|
|
314
|
+
entity_id?: string;
|
|
315
|
+
code?: string;
|
|
316
|
+
}[];
|
|
317
|
+
}
|
|
318
|
+
/** The occurrence an id names among a calendar's rows: a record id, or `<master>@<original>` (an occurrence of a
|
|
319
|
+
* series, overridden or not). */
|
|
320
|
+
export declare function findOccurrence(rows: RowLike[], id: string): EventOccurrence;
|
|
321
|
+
/** The schedule page of the private Workspace: a Surface with the calendar and the to-do list side by side. */
|
|
322
|
+
export declare function scheduleBoardOps(locale?: ScheduleLocale): Op[];
|
|
323
|
+
export { isDate } from './aiws_rrule';
|
|
324
|
+
//# sourceMappingURL=aiws_schedule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiws_schedule.d.ts","sourceRoot":"","sources":["../src/aiws_schedule.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAC9C,eAAO,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