better-supabase 0.22.0 → 0.23.0
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/dist/{access-sql-CNIgUqWf.js → access-sql-bjWFUWlk.js} +11 -0
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-BGzdnQm5.d.ts → app-tables-CJO6pWwy.d.ts} +1 -1
- package/dist/{authorization-DhoA7dsD.d.ts → authorization-Dtwpjeuz.d.ts} +91 -13
- package/dist/{bind-CFsctoFJ.d.ts → bind-DaoTunvE.d.ts} +1 -1
- package/dist/{block-env-BrUNeuJ_.d.ts → block-env-DUyo2I5O.d.ts} +3 -3
- package/dist/blocks/ai-chat/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +3 -3
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/automations/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +1 -1
- package/dist/blocks/bookings/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +5 -1
- package/dist/blocks/calendar/index.js +6 -3
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/custom-fields/index.d.ts +43 -1
- package/dist/blocks/custom-fields/index.js +40 -1
- package/dist/blocks/drive/index.d.ts +1 -1
- package/dist/blocks/employees/index.d.ts +4 -0
- package/dist/blocks/employees/index.js +1 -1
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/forms/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +4 -4
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/messaging/index.d.ts +4 -4
- package/dist/blocks/mfa/index.d.ts +1 -1
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/onboarding/index.d.ts +1 -1
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/permissions/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.d.ts +1 -1
- package/dist/blocks/search/index.d.ts +4 -2
- package/dist/blocks/search/index.js +2 -0
- package/dist/blocks/sessions/index.d.ts +1 -1
- package/dist/blocks/settings/index.d.ts +1 -1
- package/dist/blocks/share-links/index.d.ts +28 -3
- package/dist/blocks/share-links/index.js +58 -22
- package/dist/blocks/subjects/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +18 -3
- package/dist/blocks/tags/index.js +15 -2
- package/dist/blocks/teams/index.d.ts +26 -4
- package/dist/blocks/teams/index.js +10 -3
- package/dist/blocks/time-tracking/index.d.ts +18 -0
- package/dist/blocks/time-tracking/index.js +12 -3
- package/dist/blocks/undo/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +3 -3
- package/dist/blocks/workflows/index.d.ts +3 -3
- package/dist/cli/{add-BXFzr0Wf.js → add-C7lKQNBL.js} +11 -11
- package/dist/cli/{add-B6CQOt3A.js → add-DVHniZOO.js} +2 -2
- package/dist/cli/add-vZRn-uH0.js +1 -0
- package/dist/cli/{backfill-Dflp6JZk.js → backfill-Lrn-Qp5X.js} +3 -3
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CBH3N7Fy.js → blocks-2Yw9t-_U.js} +1 -1
- package/dist/cli/{blocks-FtOIcUbu.js → blocks-BKNd886C.js} +1 -1
- package/dist/cli/{cache-61VwYKEv.js → cache-ByhPVMo-.js} +1 -1
- package/dist/cli/{codemod-CqPRa25J.js → codemod-C0eXpzFu.js} +1 -1
- package/dist/cli/{config-BH0goim0.js → config-BVfeG3A5.js} +37 -5
- package/dist/cli/{config-CTRzkX0H.js → config-CeaQMrvS.js} +1 -1
- package/dist/cli/{content-mapper-DGQQY5IA.js → content-mapper-qH-_YQ8H.js} +2 -2
- package/dist/cli/{db-DCeyHS1y.js → db-DwjyUbAh.js} +2 -2
- package/dist/cli/{doctor-BxxSO193.js → doctor-BnxkqXGA.js} +16 -16
- package/dist/cli/{gen-D2cqqqTH.js → gen-aERmP3Sw.js} +14 -14
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-BnG1IE1y.js → init-DWUqVSVW.js} +6 -6
- package/dist/cli/{live-D26OWOAb.js → live-KcdTBUij.js} +2 -2
- package/dist/cli/{mcp-1l3C_GdB.js → mcp-Dsjjo-LT.js} +2 -2
- package/dist/cli/{metadata-DDfPBHwI.js → metadata-DWQSIZ59.js} +3 -3
- package/dist/cli/{migration-safety-CQbrfZIx.js → migration-safety-Cy7xlU4G.js} +2 -2
- package/dist/cli/{migrations-Ch5Uuvyj.js → migrations-CUjNXokR.js} +1 -1
- package/dist/cli/{module-migration-Dul1uTYX.js → module-migration-C6NLY9iZ.js} +2 -2
- package/dist/cli/powersync-BOhjVQCb.js +1 -0
- package/dist/cli/{powersync-CfT-tRx1.js → powersync-CE_hQdgc.js} +2 -2
- package/dist/cli/{print-CbPT4PTL.js → print-Cy_ram9N.js} +2 -2
- package/dist/cli/{remove-kDH1yxKZ.js → remove-DmwjzqaW.js} +5 -5
- package/dist/cli/{render-0Vd7BaNA.js → render-CF09FCra.js} +7 -4
- package/dist/cli/{run-DxTd55Ug.js → run-BYpZ8FjF.js} +25 -25
- package/dist/cli/{run-Dafms0D2.js → run-lh-chAJW.js} +8 -8
- package/dist/cli/{seed-CdSxunFT.js → seed-BMynpMPy.js} +2 -2
- package/dist/cli/seed-CO3j_bly.js +1 -0
- package/dist/cli/{shared-BQAMXvwd.js → shared-D05A6t1e.js} +1 -1
- package/dist/cli/{snapshot-B8K6gYjA.js → snapshot-BITNbA5V.js} +3 -3
- package/dist/cli/{source-CXDyCWz5.js → source-GGJHuzpH.js} +1 -1
- package/dist/cli/{source-args-z-jkabmO.js → source-args-CDmmFmFG.js} +1 -1
- package/dist/cli/{spec-BGsnTkIl.js → spec-BGcRdlhN.js} +2 -2
- package/dist/cli/{spec-CaN7nOqI.js → spec-BjxXWaNQ.js} +1 -1
- package/dist/cli/{sql-layout-BGAlcp1U.js → sql-layout-BoD5ynN9.js} +2 -2
- package/dist/cli/{sync-CT_5VG0E.js → sync-_QlsTmqu.js} +3 -3
- package/dist/cli/{upgrade-frUtPDDb.js → upgrade-Cwhb1M7O.js} +4 -4
- package/dist/cli/{upgrade-DA7aO88E.js → upgrade-n9ar1kc4.js} +2 -2
- package/dist/cli/{version-CUdPyV6J.js → version-RSpJIWDd.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +4 -4
- package/dist/{config-CH-D2B-4.js → config-RwpFcPq8.js} +3 -3
- package/dist/{config-C9AOcQ9S.js → config-vHLJ8SKf.js} +1 -1
- package/dist/{context-DEisra3V.d.ts → context-CMf4OKpN.d.ts} +57 -13
- package/dist/{controller-B6vWdKSa.d.ts → controller-BGto_kYM.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +2 -2
- package/dist/{entitlements-BPaPd3MD.d.ts → entitlements-CIhVQ-0u.d.ts} +1 -1
- package/dist/{field-errors-DBgDCITw.d.ts → field-errors-BDhPaO0a.d.ts} +4 -4
- package/dist/{index-ByF22_C6.d.ts → index--OhYKouV.d.ts} +2 -2
- package/dist/{index-CM2aGNRo.d.ts → index-4MStWaeF.d.ts} +185 -7
- package/dist/{index-3p_oWttZ.d.ts → index-CFWlHuVY.d.ts} +1 -1
- package/dist/{index-CdMZQCYR.d.ts → index-lV43eM34.d.ts} +2 -2
- package/dist/{index-C4sjewrr.d.ts → index-ujNqgZ6B.d.ts} +6 -6
- package/dist/{instances-CK0jR3Pc.js → instances-BPJSESPx.js} +29 -8
- package/dist/mapper/bin.js +6 -6
- package/dist/mcp/index.d.ts +1 -1
- package/dist/next/index.d.ts +3 -3
- package/dist/{operations-DC3wU3Sy.d.ts → operations-qSBBV5vl.d.ts} +1 -1
- package/dist/{options-fMxhtuVR.js → options-BJtdsK7b.js} +4 -1
- package/dist/{options-DhdazgTZ.js → options-BPp2zzsz.js} +3 -1
- package/dist/options-BSsYXjhC.js +9 -0
- package/dist/{options-ChiL-4ZS.js → options-D4ADKTKo.js} +3 -1
- package/dist/{options-C1-pwEqm.js → options-DztCKw_f.js} +4 -1
- package/dist/{options-BfFC4iFE.js → options-jsOCvLUz.js} +3 -1
- package/dist/otel/index.js +4 -4
- package/dist/{ports-BbBJVyS0.d.ts → ports-DbHiNSAa.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-CS490mYJ.js → preset-B1xXOJ0T.js} +2 -2
- package/dist/{project-NmP1NdLi.js → project-BM6QMtzV.js} +5 -5
- package/dist/{push-token-CPJfPFa2.d.ts → push-token-BwF1fyjA.d.ts} +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/realtime/index.js +1 -1
- package/dist/records/index.d.ts +3 -3
- package/dist/{resolved-names-DdlJzoMK.js → resolved-names-WzRYhUez.js} +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +5 -5
- package/dist/{sql-BMXEHTvr.js → sql-CNH8kjLS.js} +2712 -954
- package/dist/ssr/index.d.ts +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/subjects-NomQg6Eg.d.ts +131 -0
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-BHvMFNXl.d.ts → tenant-D4BA7XQ-.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +2 -2
- package/dist/{topic-DClSoqY7.js → topic-F0FKzJyQ.js} +1 -1
- package/dist/{topic-gTVjLGTk.d.ts → topic-utZqhw96.d.ts} +1 -1
- package/dist/{types-BC1HLEVx.d.ts → types-DLnBJ3ST.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-C6HhbnVz.d.ts → watch-topic-B1UCoQfz.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-DELaQEp3.js → workflow-sdk-CE8sEK57.js} +38 -1
- package/dist/yjs/index.d.ts +1 -1
- package/dist/yjs/index.js +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +166 -2
- package/dist/cli/add-w_HumDPX.js +0 -1
- package/dist/cli/powersync-Vmhw5c1N.js +0 -1
- package/dist/cli/seed-CXJvTU5D.js +0 -1
- package/dist/options-CTv-xmbA.js +0 -5
- package/dist/subjects-DvmQeF_F.d.ts +0 -79
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
//#region src/config/types/subjects.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* One entity the app's blocks attach to (`subjects.<type>`): a task, a
|
|
4
|
-
* customer, a document. Every subject-bound SQL module reads these entries
|
|
5
|
-
* unless its own `on` says otherwise. ADR 0020.
|
|
6
|
-
*/
|
|
7
|
-
interface SubjectConfig {
|
|
8
|
-
/** `schema.table`, or a table in `public`. */
|
|
9
|
-
readonly table: string;
|
|
10
|
-
/** The id column. Defaults to `id`. */
|
|
11
|
-
readonly id?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The id column's type, such as `uuid` or `bigint`, so lookups compare on the
|
|
14
|
-
* primary key's own type. Without it the column is compared as text.
|
|
15
|
-
*/
|
|
16
|
-
readonly idType?: string;
|
|
17
|
-
/**
|
|
18
|
-
* The tenant column. Defaults to `organization_id`, or
|
|
19
|
-
* `<blocks.memberships.names.organization>_id` when the tenant is renamed.
|
|
20
|
-
* `false` for a subject without a tenant, which modules that keep a tenant on
|
|
21
|
-
* every row skip.
|
|
22
|
-
*/
|
|
23
|
-
readonly tenant?: string | false;
|
|
24
|
-
/** The column `subject_title` returns. */
|
|
25
|
-
readonly title?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The path `subject_url` returns, with `{column}` placeholders:
|
|
28
|
-
* `/tasks/{id}`.
|
|
29
|
-
*/
|
|
30
|
-
readonly url?: string;
|
|
31
|
-
/**
|
|
32
|
-
* A permission key per action (`read`, `write`, or an app action) that
|
|
33
|
-
* `can_subject` checks in the subject's tenant, on top of the row being
|
|
34
|
-
* visible to the caller. `read` is also the permission modules check before
|
|
35
|
-
* they attach rows to the subject.
|
|
36
|
-
*/
|
|
37
|
-
readonly permissions?: Readonly<Record<string, string>>;
|
|
38
|
-
/**
|
|
39
|
-
* A scope the authorization provider declares whose ids are this subject's
|
|
40
|
-
* ids, so a grant on the record counts as well as one on the tenant.
|
|
41
|
-
*/
|
|
42
|
-
readonly scope?: string;
|
|
43
|
-
/** Delete module rows for a subject when its row is deleted. */
|
|
44
|
-
readonly cascade?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* The column holding the soft-delete time. Blocks hide rows where it is set,
|
|
47
|
-
* metrics skip them, and `gen` makes it the table's `trashExtension()`
|
|
48
|
-
* column.
|
|
49
|
-
*/
|
|
50
|
-
readonly deletedAt?: string;
|
|
51
|
-
/** The columns a search index reads. */
|
|
52
|
-
readonly search?: {
|
|
53
|
-
readonly title?: string;
|
|
54
|
-
readonly body?: readonly string[];
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* The text column holding the subject's rank key, and the column it is
|
|
58
|
-
* grouped by (a board stage), for `move()`. ADR 0021.
|
|
59
|
-
*/
|
|
60
|
-
readonly rank?: {
|
|
61
|
-
readonly column: string;
|
|
62
|
-
readonly group?: string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* The columns the versions block snapshots and restores, and whether it
|
|
66
|
-
* snapshots on each change. An app table's `subject.versions` sets it.
|
|
67
|
-
*/
|
|
68
|
-
readonly versions?: {
|
|
69
|
-
readonly columns: readonly string[];
|
|
70
|
-
readonly auto: boolean;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* The app's subject types, keyed by type name (lowercase, digits and
|
|
75
|
-
* underscores).
|
|
76
|
-
*/
|
|
77
|
-
type SubjectsConfig = Readonly<Record<string, SubjectConfig>>;
|
|
78
|
-
//#endregion
|
|
79
|
-
export { SubjectsConfig as n, SubjectConfig as t };
|