better-supabase 0.37.0 → 0.38.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/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-BlhdqqHf.d.ts → app-tables-D2c0i05-.d.ts} +1 -1
- package/dist/{authorization-C7yjZttV.d.ts → authorization-D8CaAdqU.d.ts} +7 -5
- package/dist/{bind-BspFMDdW.d.ts → bind-5vOwNouG.d.ts} +1 -1
- package/dist/{block-env-CLco8YUl.d.ts → block-env-hco8BLjC.d.ts} +3 -3
- package/dist/block-subjects-CINiJW1R.js +253 -0
- package/dist/{block-tables-DfomofFv.d.ts → block-tables-BsgdB6VG.d.ts} +1 -1
- 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 +1 -1
- package/dist/blocks/catalog/index.d.ts +4 -0
- package/dist/blocks/catalog/index.js +10 -0
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/expenses/index.d.ts +2 -0
- package/dist/blocks/expenses/index.js +10 -3
- 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/invoices/index.d.ts +15 -1
- package/dist/blocks/invoices/index.js +13 -0
- package/dist/blocks/leave/index.js +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 +2 -2
- package/dist/blocks/sessions/index.d.ts +1 -1
- package/dist/blocks/settings/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +1 -1
- 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/claims/index.d.ts +3 -3
- package/dist/cli/{add-DqfJVb1F.js → add-7nCSDmpt.js} +10 -10
- package/dist/cli/{add-Buuy7BSU.js → add-B4tQpnXP.js} +2 -2
- package/dist/cli/add-CdDneXMN.js +1 -0
- package/dist/cli/{app-table-files-Ku-4tPUu.js → app-table-files-CtO-zxpO.js} +2 -2
- package/dist/cli/{app-tables-Dg0sh4dH.js → app-tables-B7UzcJ_g.js} +2 -2
- package/dist/cli/{backfill-Dspz6kVJ.js → backfill-B2nFDXaS.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-CqVBlc4L.js → blocks-BX_6HUQT.js} +1 -1
- package/dist/cli/{blocks-B8LAph-w.js → blocks-DU4iDrYS.js} +1 -1
- package/dist/cli/{cache-BbuuCIRU.js → cache-bS5bAoF-.js} +1 -1
- package/dist/cli/{codemod-DIAy8uXt.js → codemod-B1sSIE2p.js} +1 -1
- package/dist/cli/{content-mapper-NXfJ5VkP.js → content-mapper-CW6V6VRq.js} +2 -2
- package/dist/cli/{doctor-CUOyLE0c.js → doctor-Dw2pAf1b.js} +15 -15
- package/dist/cli/{gen-s9canfdC.js → gen-BtoSx3go.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-Zs0Ca5on.js → init-DZXbrKuJ.js} +8 -8
- package/dist/cli/{live-BaLsNove.js → live-CDFfJcdR.js} +2 -2
- package/dist/cli/{mcp-ST7bVpJD.js → mcp-BukxvITV.js} +2 -2
- package/dist/cli/{metadata-aOvlCOOg.js → metadata-iZizGVuY.js} +3 -3
- package/dist/cli/{migrate-ClBx3Ggx.js → migrate-DPnnGLzw.js} +1 -1
- package/dist/cli/{migration-safety-mjm1pghO.js → migration-safety-COcnZbMO.js} +1 -1
- package/dist/cli/{migrations-tzItvwxT.js → migrations-BBt9fmiV.js} +2 -2
- package/dist/cli/{module-migration-D0Rjdvdx.js → module-migration-tCmPLhQp.js} +2 -2
- package/dist/cli/{powersync-DryX_DMG.js → powersync-BRmUJ-uR.js} +3 -3
- package/dist/cli/powersync-CYLPcJ9G.js +1 -0
- package/dist/cli/{print-fOUnKwA9.js → print-DdwQNG_e.js} +2 -2
- package/dist/cli/{providers-BR1d_5jA.js → providers-CaNg6Ayz.js} +1 -1
- package/dist/cli/{prune-workflows-CCjzNrxl.js → prune-workflows-BQQrI3tU.js} +1 -1
- package/dist/cli/{remove-B_0OIusa.js → remove-BEj9YEON.js} +5 -5
- package/dist/cli/{render-BCJKDX3c.js → render-UBqU9r44.js} +3 -3
- package/dist/cli/{run-4VUQTR-R.js → run-3E_IuJzS.js} +9 -9
- package/dist/cli/{run-BctvQX_g.js → run-BXlX9YdD.js} +27 -27
- package/dist/cli/{shared-oY7PGamd.js → shared-agrqD28l.js} +1 -1
- package/dist/cli/{snapshot-CWtER9-4.js → snapshot-DOXmozSq.js} +2 -2
- package/dist/cli/{source-D4uav_v9.js → source-BfJprU-6.js} +1 -1
- package/dist/cli/{spec-BPsyEzqH.js → spec-CgtIHFsl.js} +1 -1
- package/dist/cli/{spec-DTnBeaCD.js → spec-DRpSQGOW.js} +2 -2
- package/dist/cli/{sql-layout-DbhEQqq0.js → sql-layout-Cs3FMWcY.js} +2 -2
- package/dist/cli/{sync-CazH5FX4.js → sync-C_YGIDjk.js} +4 -4
- package/dist/cli/{upgrade-Cyx6ESpc.js → upgrade-ByQeJRGU.js} +5 -5
- package/dist/cli/{upgrade-Dyb4-f0Q.js → upgrade-OG9vaBeX.js} +2 -2
- package/dist/cli/{version-D1ZKUFng.js → version-CF6Yzah0.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 +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-Dx3bEPlX.js → config-1-UmQczM.js} +1 -1
- package/dist/{config-uSliwPS6.js → config-AEB5iNEO.js} +4 -123
- package/dist/{context-D6OZQdcT.d.ts → context-CH5FYnVk.d.ts} +1 -1
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-DhcSXkAC.d.ts → controller-CJ6rLnpS.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-Bi4y8w8e.d.ts → entitlements-6gODwBSz.d.ts} +1 -1
- package/dist/{field-errors-CJ_i6HFg.d.ts → field-errors-CdSjV9Zo.d.ts} +4 -4
- package/dist/{index-C71uHfVj.d.ts → index-B5awu2SP.d.ts} +2 -2
- package/dist/{index-Cbwvf4yE.d.ts → index-BgRl484n.d.ts} +1 -1
- package/dist/{index-Bm1ftdBA.d.ts → index-CgKieWlO.d.ts} +2 -2
- package/dist/{index-ChvuVimY.d.ts → index-CrOeAgSh.d.ts} +2 -2
- package/dist/{index-Bc5t2QRU.d.ts → index-DnEJVKQ2.d.ts} +6 -6
- package/dist/{index-DrDCN45q.d.ts → index-DzLLMmUB.d.ts} +1 -1
- package/dist/{index-CRwpDGxd.d.ts → index-vkd2LTt2.d.ts} +1 -1
- package/dist/{instances-DKULdpWB.js → instances-Bycf_aus.js} +13 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +1 -1
- package/dist/next/index.d.ts +4 -4
- package/dist/{operations-BDjgCmT9.d.ts → operations-knMnfzgm.d.ts} +1 -1
- package/dist/{options-RYbyaVhv.js → options-CS1DA8q9.js} +1 -0
- package/dist/{options-ScQ6Hnxo.js → options-zsLpIqBA.js} +2 -1
- package/dist/otel/index.js +4 -4
- package/dist/{permissions-BGx22GP3.d.ts → permissions-Ed8WvLgQ.d.ts} +1 -1
- package/dist/{ports-D63bA3p4.d.ts → ports-Bnwy2mlR.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-oc_liUHz.js → preset-DkeXFh7e.js} +2 -2
- package/dist/{project-Cs0kz5OP.js → project-By0R8ioI.js} +5 -5
- package/dist/{push-token-BsyX0KlT.d.ts → push-token-CJbEvwjI.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/records/index.d.ts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +3 -3
- package/dist/{sql-CWYbu_6y.js → sql-B2cMvGnZ.js} +359 -47
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-DqnE50Ju.d.ts → tenant-eZNRWTRJ.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +1 -1
- package/dist/{topic-Dp7VGPd-.d.ts → topic-D7F2FBNp.d.ts} +1 -1
- package/dist/{types-DLXTmZtm.d.ts → types-bqvFoBhf.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-CtJAkWT4.d.ts → watch-topic-BIEaSN0Y.d.ts} +1 -1
- package/dist/workflow-sdk/world/index.js +1 -1
- package/dist/{workflow-sdk-pB1jCLIL.js → workflow-sdk-6psRpDIo.js} +1 -69
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +10 -0
- package/dist/cli/add-8zKWiO0X.js +0 -1
- package/dist/cli/powersync-vvu2-72V.js +0 -1
- package/dist/resolved-names-sd6RuTju.js +0 -130
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-
|
|
1
|
+
import { a as withBlockSubjects, c as CONFIG_DEFAULTS } from "./block-subjects-CINiJW1R.js";
|
|
2
|
+
import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-1-UmQczM.js";
|
|
3
3
|
import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
|
|
4
4
|
import { o as tenantNames } from "./entity-naming-BES3pkQI.js";
|
|
5
|
-
import {
|
|
5
|
+
import { L as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-Bycf_aus.js";
|
|
6
6
|
import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-D9eVL_xi.js";
|
|
7
7
|
// src/config/authorization.ts
|
|
8
8
|
/**
|
|
@@ -14,125 +14,6 @@ function providerApiProblem(provider) {
|
|
|
14
14
|
if (version === 1) return;
|
|
15
15
|
return `authorization "${typeof provider.name === "string" ? provider.name : "provider"}" targets authorization provider API ${String(version)}; this better-supabase supports 1. Upgrade better-supabase or use a release of the provider for API 1.`;
|
|
16
16
|
}
|
|
17
|
-
// src/config/block-subjects.ts
|
|
18
|
-
const CATALOG = new Map(PRESET_CATALOG.blocks.map((block) => [block.name, block]));
|
|
19
|
-
/** `names` and every block they require, from the catalog, in order. */
|
|
20
|
-
function withRequired(names) {
|
|
21
|
-
const found = /* @__PURE__ */ new Set();
|
|
22
|
-
const add = (name) => {
|
|
23
|
-
if (found.has(name)) return;
|
|
24
|
-
found.add(name);
|
|
25
|
-
for (const required of CATALOG.get(name)?.requires ?? []) add(required);
|
|
26
|
-
};
|
|
27
|
-
for (const name of names) add(name);
|
|
28
|
-
return [...found];
|
|
29
|
-
}
|
|
30
|
-
const PLACEHOLDER = /\{([^{}]*)\}/g;
|
|
31
|
-
/** One installed module's names under `blocks`, from the catalog. */
|
|
32
|
-
function catalogNames(module) {
|
|
33
|
-
const entities = CATALOG.get(module)?.entities;
|
|
34
|
-
return entities === void 0 ? void 0 : {
|
|
35
|
-
tables: entities.tables,
|
|
36
|
-
entities: entities.specs
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The entities `blocks.<module>.names` gives a new name, such as `work_item` to
|
|
41
|
-
* `task`, for the block's TypeScript client (`blocks.generated.ts`). Empty when
|
|
42
|
-
* the module renames none.
|
|
43
|
-
*/
|
|
44
|
-
function blockEntityRenames(module, blocks) {
|
|
45
|
-
const names = catalogNames(module);
|
|
46
|
-
if (names === void 0) return [];
|
|
47
|
-
return Object.values(resolveNames(module, names, blocks).entities).filter((entity) => !entity.global && (entity.to.singular !== entity.from.singular || entity.to.plural !== entity.from.plural)).map((entity) => ({
|
|
48
|
-
from: entity.from,
|
|
49
|
-
to: entity.to
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
/** The entities one installed block declares, with their final names. */
|
|
53
|
-
function blockEntities(module, blocks) {
|
|
54
|
-
const names = catalogNames(module);
|
|
55
|
-
if (names === void 0) return [];
|
|
56
|
-
const resolved = resolveNames(module, names, blocks);
|
|
57
|
-
const mapped = resolveBlock(blocks[module]).tables;
|
|
58
|
-
return Object.values(resolved.entities).map((entity) => {
|
|
59
|
-
const logical = entity.table;
|
|
60
|
-
const spec = logical === void 0 ? void 0 : names.tables[logical];
|
|
61
|
-
const target = logical === void 0 ? void 0 : mapped[logical];
|
|
62
|
-
const table = spec === void 0 || target === null ? void 0 : target ?? resolved.naming.rename(spec.name);
|
|
63
|
-
return {
|
|
64
|
-
key: entity.key,
|
|
65
|
-
from: entity.from,
|
|
66
|
-
to: entity.to,
|
|
67
|
-
primary: entity.primary,
|
|
68
|
-
table,
|
|
69
|
-
url: entity.url
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
/** The subjects one installed block registers, keyed by renamed entity. */
|
|
74
|
-
function subjectsOf(module, blocks) {
|
|
75
|
-
const entities = CATALOG.get(module)?.entities;
|
|
76
|
-
const names = catalogNames(module);
|
|
77
|
-
const config = resolveBlock(blocks[module]);
|
|
78
|
-
if (entities === void 0 || names === void 0 || config.mode === "custom") return {};
|
|
79
|
-
const resolved = resolveNames(module, names, blocks);
|
|
80
|
-
const key = (action) => config.permissions[action] ?? resolved.entityNaming.rename(entities.keys[action] ?? `${module}.${action}`);
|
|
81
|
-
return Object.fromEntries(Object.values(resolved.entities).flatMap((entity) => {
|
|
82
|
-
const subject = entity.subject;
|
|
83
|
-
const table = entity.table === void 0 ? void 0 : names.tables[entity.table];
|
|
84
|
-
const mapped = entity.table === void 0 ? void 0 : config.tables[entity.table];
|
|
85
|
-
if (subject === void 0 || entity.table === void 0 || table === void 0 || mapped === null) return [];
|
|
86
|
-
const logical = entity.table;
|
|
87
|
-
const column = (name) => config.columns[logical]?.[name] ?? resolved.naming.rename(table.columns[name] ?? name);
|
|
88
|
-
const titled = (key) => config.columns[logical]?.[key] === null && subject.fallbackTitle !== void 0 ? column(subject.fallbackTitle) : column(key);
|
|
89
|
-
const name = mapped ?? resolved.naming.rename(table.name);
|
|
90
|
-
const url = entity.url ?? subject.url;
|
|
91
|
-
const entry = {
|
|
92
|
-
table: name.includes(".") ? name : `${config.schema}.${name}`,
|
|
93
|
-
idType: "uuid",
|
|
94
|
-
tenant: column("tenant"),
|
|
95
|
-
title: titled(subject.title),
|
|
96
|
-
permissions: {
|
|
97
|
-
read: key(subject.permissions.read),
|
|
98
|
-
write: key(subject.permissions.write),
|
|
99
|
-
...subject.permissions.upload === void 0 ? {} : { upload: key(subject.permissions.upload) }
|
|
100
|
-
},
|
|
101
|
-
...subject.deletedAt === void 0 ? {} : { deletedAt: column(subject.deletedAt) },
|
|
102
|
-
...subject.rank === void 0 ? {} : { rank: {
|
|
103
|
-
column: column(subject.rank.column),
|
|
104
|
-
group: column(subject.rank.group)
|
|
105
|
-
} },
|
|
106
|
-
...subject.search === void 0 ? {} : { search: {
|
|
107
|
-
title: titled(subject.search.title),
|
|
108
|
-
body: subject.search.body.filter((name) => config.columns[logical]?.[name] !== null).map(column)
|
|
109
|
-
} },
|
|
110
|
-
...url === void 0 ? {} : { url: url.replaceAll(PLACEHOLDER, (_, placeholder) => `{${column(placeholder)}}`) },
|
|
111
|
-
...subject.cascade === true ? { cascade: true } : {}
|
|
112
|
-
};
|
|
113
|
-
return [[entity.to.singular, entry]];
|
|
114
|
-
}));
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* The entities of every installed block that registers one (work items, deals,
|
|
118
|
-
* companies and people, products, employees), under their renamed type, then
|
|
119
|
-
* `subjects`. Throws when `subjects` already has a block's type.
|
|
120
|
-
*/
|
|
121
|
-
/** The subject types one installed block registers, by renamed entity. */
|
|
122
|
-
function blockSubjectTypes(module, blocks) {
|
|
123
|
-
return Object.keys(subjectsOf(module, blocks));
|
|
124
|
-
}
|
|
125
|
-
function withBlockSubjects(subjects, blockNames, blocks) {
|
|
126
|
-
const merged = {};
|
|
127
|
-
for (const module of withRequired(blockNames)) for (const [type, entry] of Object.entries(subjectsOf(module, blocks))) {
|
|
128
|
-
if (Object.hasOwn(subjects, type)) throw new TypeError(`records.${type}: the ${module} block registers "${type}" itself; remove records.${type}, or set blocks.${module}.names.<entity>.subject to false to keep your own`);
|
|
129
|
-
merged[type] = entry;
|
|
130
|
-
}
|
|
131
|
-
return {
|
|
132
|
-
...merged,
|
|
133
|
-
...subjects
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
17
|
// src/config/expose.ts
|
|
137
18
|
const ALL_PRIVILEGES = [
|
|
138
19
|
"select",
|
|
@@ -1099,4 +980,4 @@ function zod(options = {}) {
|
|
|
1099
980
|
}
|
|
1100
981
|
};
|
|
1101
982
|
}
|
|
1102
|
-
export { factories as a, resolveConfig as c,
|
|
983
|
+
export { factories as a, resolveConfig as c, nuqs as i, providerApiProblem as l, valibot as n, CONFIG_SCHEMA_URL as o, standardSchema as r, defineConfig as s, zod as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-BzIYSSWK.js";
|
|
3
|
-
import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-
|
|
3
|
+
import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-D8CaAdqU.js";
|
|
4
4
|
import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-CDw9YGVh.js";
|
|
5
5
|
import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
|
|
6
6
|
import { i as SubjectsConfig } from "./subjects-BGwLJ3IB.js";
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $t as AuthorizationSubject, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationChange, Jt as AuthorizationOutcome, Kt as AuthorizationContext, Qt as AuthorizationResourceSource, T as AccessBucketPolicy, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, en as Authorizer, in as RequestMemo, nn as AuthzVersionCache, qt as AuthorizationIntent, rn as PermissionRef, tn as AuthorizerRuntime } from "../types-BzIYSSWK.js";
|
|
2
2
|
import { m as SessionSnapshot } from "../resolve-XlMQRUeG.js";
|
|
3
3
|
import { r as CredentialProvider } from "../provider-CVlXXbda.js";
|
|
4
|
-
import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-
|
|
4
|
+
import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-D8CaAdqU.js";
|
|
5
5
|
import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-CR8TVvqo.js";
|
|
6
6
|
import { n as ApprovalOptions } from "../server-types-DpI82uNq.js";
|
|
7
7
|
import { s as ApiKeyResolverOptions } from "../api-keys-BncNDlWG.js";
|
|
8
|
-
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-
|
|
9
|
-
import { n as BlockTables, t as BlockTable } from "../block-tables-
|
|
8
|
+
import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-DzLLMmUB.js";
|
|
9
|
+
import { n as BlockTables, t as BlockTable } from "../block-tables-BsgdB6VG.js";
|
|
10
10
|
/**
|
|
11
11
|
* The types an authorization library implements or reads, in one entry with no
|
|
12
12
|
* runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ClientAuth } from "./bind-
|
|
1
|
+
import { a as ClientAuth } from "./bind-5vOwNouG.js";
|
|
2
2
|
/**
|
|
3
3
|
* A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
|
|
4
4
|
* follow the external-store contract, so React's `useSyncExternalStore`, a Vue
|
package/dist/create/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
|
-
import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-
|
|
3
|
-
import { E as CreateDesign, b as DesignChange } from "../index-
|
|
4
|
-
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-
|
|
2
|
+
import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-CH5FYnVk.js";
|
|
3
|
+
import { E as CreateDesign, b as DesignChange } from "../index-vkd2LTt2.js";
|
|
4
|
+
import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-bqvFoBhf.js";
|
|
5
5
|
import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
|
|
6
6
|
/** What `checkDesign` returns. */
|
|
7
7
|
export type DesignCheck = {
|
package/dist/create/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as APP_ON_DELETE_ACTIONS } from "../instances-
|
|
2
|
-
import { m as diffDesigns } from "../preset-
|
|
3
|
-
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-
|
|
1
|
+
import { k as APP_ON_DELETE_ACTIONS } from "../instances-Bycf_aus.js";
|
|
2
|
+
import { m as diffDesigns } from "../preset-DkeXFh7e.js";
|
|
3
|
+
import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-By0R8ioI.js";
|
|
4
4
|
// src/create/column-kinds.ts
|
|
5
5
|
/** The groups of the column type picker, in the order it shows them. */
|
|
6
6
|
const KIND_GROUPS = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { st as SchemaMeta } from "../../types-BzIYSSWK.js";
|
|
2
|
-
import { Tt as PresetInput } from "../../context-
|
|
3
|
-
import { E as CreateDesign } from "../../index-
|
|
4
|
-
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-
|
|
2
|
+
import { Tt as PresetInput } from "../../context-CH5FYnVk.js";
|
|
3
|
+
import { E as CreateDesign } from "../../index-vkd2LTt2.js";
|
|
4
|
+
import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-bqvFoBhf.js";
|
|
5
5
|
import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
|
|
6
6
|
/**
|
|
7
7
|
* The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { y as appDefaultError } from "../../instances-
|
|
2
|
-
import { n as loadProject } from "../../project-
|
|
1
|
+
import { y as appDefaultError } from "../../instances-Bycf_aus.js";
|
|
2
|
+
import { n as loadProject } from "../../project-By0R8ioI.js";
|
|
3
3
|
import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
|
|
4
4
|
import { t as defineApi } from "../../api-wwix_K5c.js";
|
|
5
5
|
// src/create/lite/apply.ts
|
|
@@ -5,10 +5,10 @@ import { mt as QuerySpec } from "./define-C_He1bQO.js";
|
|
|
5
5
|
import { tt as TemplateValues } from "./bucket-CrsJNHzi.js";
|
|
6
6
|
import { n as DataEngine } from "./data-engine-CX1oYDZl.js";
|
|
7
7
|
import { Dn as GeneratedBlocks } from "./define-block-CDw9YGVh.js";
|
|
8
|
-
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-
|
|
9
|
-
import { t as ClientPorts } from "./ports-
|
|
10
|
-
import { a as ClientAuth } from "./bind-
|
|
11
|
-
import { a as LiveSource, r as LiveCountSeed } from "./index-
|
|
8
|
+
import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-D7F2FBNp.js";
|
|
9
|
+
import { t as ClientPorts } from "./ports-Bnwy2mlR.js";
|
|
10
|
+
import { a as ClientAuth } from "./bind-5vOwNouG.js";
|
|
11
|
+
import { a as LiveSource, r as LiveCountSeed } from "./index-B5awu2SP.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
14
14
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
@@ -2,8 +2,8 @@ import { b as DbError, f as Result } from "./result-DTOQRyGY.js";
|
|
|
2
2
|
import { et as RecordRef, st as SchemaMeta } from "./types-BzIYSSWK.js";
|
|
3
3
|
import { mt as QuerySpec } from "./define-C_He1bQO.js";
|
|
4
4
|
import { t as DataChanges } from "./data-engine-CX1oYDZl.js";
|
|
5
|
-
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-
|
|
6
|
-
import { n as TopicPort } from "./watch-topic-
|
|
5
|
+
import { c as RealtimeClient, m as Topic, p as SubscriptionStatus } from "./topic-D7F2FBNp.js";
|
|
6
|
+
import { n as TopicPort } from "./watch-topic-BIEaSN0Y.js";
|
|
7
7
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
8
|
/** The `EventSource` the relay client reads with; the browser's fits. */
|
|
9
9
|
interface RelayEventSource {
|
|
@@ -3,7 +3,7 @@ import { Ct as Events, v as ApiKeyEventData } from "./events-DddDlibJ.js";
|
|
|
3
3
|
import { r as AuthState } from "./resolve-XlMQRUeG.js";
|
|
4
4
|
import { t as BlockProblemOptions } from "./problem-NGBjN-TO.js";
|
|
5
5
|
import { c as BlockOf } from "./define-block-CDw9YGVh.js";
|
|
6
|
-
import { n as Controller, t as AuthPort } from "./controller-
|
|
6
|
+
import { n as Controller, t as AuthPort } from "./controller-CJ6rLnpS.js";
|
|
7
7
|
import { _ as createApiKeys, d as CreateApiKeyInput, f as CreatedApiKey, l as ApiKeys, s as ApiKeyResolverOptions, t as ApiKey } from "./api-keys-BncNDlWG.js";
|
|
8
8
|
import { Entry } from "@supabase/middleware";
|
|
9
9
|
import { AuthMode, JWTClaims, UserClaims } from "@supabase/server";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as AccessPolicySql } from "./types-BzIYSSWK.js";
|
|
2
|
-
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-
|
|
2
|
+
import { p as AnyBlocksConfig, t as AuthorizationFunctions } from "./authorization-D8CaAdqU.js";
|
|
3
3
|
import { nt as ReadSet } from "./define-C_He1bQO.js";
|
|
4
|
-
import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-
|
|
4
|
+
import { R as TableGrant, Tr as AppTableConfig, Vr as CatalogPolicy, _ as BlockSqlDeprecation, b as BlockSqlLayout, c as BlockSqlIdType, cn as ResolvedConfig, g as BlockSqlAccessProvider, h as BlockSql, o as BlockSqlContractFunction, v as BlockSqlEntitlementsProvider, y as BlockSqlFile } from "./context-CH5FYnVk.js";
|
|
5
5
|
import { t as SubjectConfig } from "./subjects-BGwLJ3IB.js";
|
|
6
6
|
/** A module's SQL for `layout`, without header; `undefined` in custom mode. */
|
|
7
7
|
declare function moduleBody(name: string, layout?: BlockSqlLayout): string | undefined;
|
|
@@ -3,8 +3,8 @@ import { O as AnyFunctions, k as AnyModels } from "./types-BzIYSSWK.js";
|
|
|
3
3
|
import { l as PublicEnv } from "./index-F6lsRlsr.js";
|
|
4
4
|
import { T as SessionEncoding } from "./resolve-XlMQRUeG.js";
|
|
5
5
|
import { t as BetterSupabase } from "./define-C_He1bQO.js";
|
|
6
|
-
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-
|
|
7
|
-
import { i as BindClientOptions, r as BetterClient } from "./bind-
|
|
6
|
+
import { i as KeyboardPort, l as StoragePort, n as DeepLinkPort, r as FilePickerPort, s as PushTokenPort, t as ClientPorts } from "./ports-Bnwy2mlR.js";
|
|
7
|
+
import { i as BindClientOptions, r as BetterClient } from "./bind-5vOwNouG.js";
|
|
8
8
|
import { n as FunctionContract } from "./function-contract-DgDBYbXu.js";
|
|
9
9
|
import { FunctionInvokeOptions, SupabaseClient, SupabaseClientOptions } from "@supabase/supabase-js";
|
|
10
10
|
/**
|
|
@@ -5,13 +5,13 @@ import { mt as QuerySpec } from "./define-C_He1bQO.js";
|
|
|
5
5
|
import { A as TtlPreset, C as TransformOptions, E as UrlOptions, T as UploadOptions, l as ImageTransform, tt as TemplateValues, w as UploadBody } from "./bucket-CrsJNHzi.js";
|
|
6
6
|
import { m as RejectedChange, o as DataSyncState } from "./data-engine-CX1oYDZl.js";
|
|
7
7
|
import { M as BindingName, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "./index-DAS_5OfK.js";
|
|
8
|
-
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-
|
|
9
|
-
import { t as AuthSnapshot } from "./bind-
|
|
8
|
+
import { c as RealtimeClient, d as SubscribeOptions, g as TopicHandlers, i as PresenceOptions, m as Topic, p as SubscriptionStatus, r as PresenceMember, s as PresenceSubscription, t as EventSchemas } from "./topic-D7F2FBNp.js";
|
|
9
|
+
import { t as AuthSnapshot } from "./bind-5vOwNouG.js";
|
|
10
10
|
import { n as AuthSession } from "./view-eHgOOyRS.js";
|
|
11
|
-
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-
|
|
12
|
-
import { n as Controller } from "./controller-
|
|
13
|
-
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-
|
|
14
|
-
import { t as BlockEnv } from "./block-env-
|
|
11
|
+
import { r as LiveCountSeed, v as RelayClientOptions } from "./index-B5awu2SP.js";
|
|
12
|
+
import { n as Controller } from "./controller-CJ6rLnpS.js";
|
|
13
|
+
import { D as ProfileOf, O as UseActionOptions, S as LiveCountHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, u as BlockMutationActions, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "./field-errors-CdSjV9Zo.js";
|
|
14
|
+
import { t as BlockEnv } from "./block-env-hco8BLjC.js";
|
|
15
15
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "./block-method-QSaPsL2P.js";
|
|
16
16
|
import { s as RecordFormValues, t as RecordForm } from "./record-form-C-gIxGXe.js";
|
|
17
17
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { O as AnyFunctions, Ut as AnyAuthorizer, dt as TableKey, k as AnyModels, nn as AuthzVersionCache, rn as PermissionRef } from "./types-BzIYSSWK.js";
|
|
2
|
-
import { t as OperationTable } from "./operations-
|
|
2
|
+
import { t as OperationTable } from "./operations-knMnfzgm.js";
|
|
3
3
|
import { t as BetterSupabase } from "./define-C_He1bQO.js";
|
|
4
4
|
import { l as ServerOptions, o as ServerContext, r as BetterServer } from "./server-types-DpI82uNq.js";
|
|
5
5
|
import { r as GuardOptions } from "./respond-D7kUatjc.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-
|
|
1
|
+
import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-CH5FYnVk.js";
|
|
2
2
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
3
|
declare const PRESET_CATALOG: PresetCatalog;
|
|
4
4
|
/**
|
|
@@ -8837,6 +8837,11 @@ const PRESET_CATALOG = {
|
|
|
8837
8837
|
"receiptOver": {
|
|
8838
8838
|
"kind": "custom",
|
|
8839
8839
|
"optional": true
|
|
8840
|
+
},
|
|
8841
|
+
"fields": {
|
|
8842
|
+
"kind": "json",
|
|
8843
|
+
"optional": true,
|
|
8844
|
+
"description": "The extra columns to set."
|
|
8840
8845
|
}
|
|
8841
8846
|
},
|
|
8842
8847
|
"jsonSchema": {
|
|
@@ -8890,7 +8895,8 @@ const PRESET_CATALOG = {
|
|
|
8890
8895
|
},
|
|
8891
8896
|
"required": ["amount", "currency"],
|
|
8892
8897
|
"additionalProperties": false
|
|
8893
|
-
}
|
|
8898
|
+
},
|
|
8899
|
+
"fields": { "description": "The extra columns to set." }
|
|
8894
8900
|
},
|
|
8895
8901
|
"required": ["key", "name"],
|
|
8896
8902
|
"additionalProperties": false
|
|
@@ -12375,6 +12381,10 @@ const PRESET_CATALOG = {
|
|
|
12375
12381
|
"name": "InvoiceInput",
|
|
12376
12382
|
"fields": true
|
|
12377
12383
|
},
|
|
12384
|
+
{
|
|
12385
|
+
"name": "InvoicePatch",
|
|
12386
|
+
"fields": true
|
|
12387
|
+
},
|
|
12378
12388
|
{ "name": "InvoicePayment" },
|
|
12379
12389
|
{
|
|
12380
12390
|
"name": "Invoices",
|
|
@@ -12388,6 +12398,8 @@ const PRESET_CATALOG = {
|
|
|
12388
12398
|
"type": "InvoicesEvents",
|
|
12389
12399
|
"types": [
|
|
12390
12400
|
"invoice.created",
|
|
12401
|
+
"invoice.updated",
|
|
12402
|
+
"invoice.deleted",
|
|
12391
12403
|
"invoice.issued",
|
|
12392
12404
|
"invoice.payment_recorded",
|
|
12393
12405
|
"invoice.paid",
|
package/dist/mapper/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as VERSION } from "../cli/version-
|
|
2
|
-
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-
|
|
3
|
-
import { t as loadSnapshot } from "../cli/snapshot-
|
|
4
|
-
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-
|
|
1
|
+
import { t as VERSION } from "../cli/version-CF6Yzah0.js";
|
|
2
|
+
import { a as lastTypesModule, c as writeAtomic, s as typesModuleKey } from "../cli/cache-bS5bAoF-.js";
|
|
3
|
+
import { t as loadSnapshot } from "../cli/snapshot-DOXmozSq.js";
|
|
4
|
+
import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-UBqU9r44.js";
|
|
5
5
|
import { i as discoverConfig, s as loadConfig } from "../cli/config-DrrkMihk.js";
|
|
6
6
|
import { i as parseEnv, n as configEnvironment } from "../cli/env-BCuUsWOh.js";
|
|
7
|
-
import { s as schemaStampPath } from "../cli/content-mapper-
|
|
7
|
+
import { s as schemaStampPath } from "../cli/content-mapper-CW6V6VRq.js";
|
|
8
8
|
import { existsSync, realpathSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, join, resolve } from "node:path";
|
|
10
10
|
import { createHash } from "node:crypto";
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as GuardOptions } from "../respond-D7kUatjc.js";
|
|
2
2
|
import { l as ResourceRouteOptions } from "../resource-types-CF3Uc6OW.js";
|
|
3
|
-
import { _ as ToolResult, a as ToolDecision, c as ToolResourceOptions, d as defineTool, f as MCP_PROTOCOL_VERSION, g as ToolInfo, h as ToolAnnotations, i as ToolContext, l as ToolResources, m as ServerDescription, n as McpOptions, o as ToolDefinition, p as ProtocolServer, r as McpTool, s as ToolRef, t as BetterMcp, u as createMcp, v as answerLine, y as answerMessage } from "../index-
|
|
3
|
+
import { _ as ToolResult, a as ToolDecision, c as ToolResourceOptions, d as defineTool, f as MCP_PROTOCOL_VERSION, g as ToolInfo, h as ToolAnnotations, i as ToolContext, l as ToolResources, m as ServerDescription, n as McpOptions, o as ToolDefinition, p as ProtocolServer, r as McpTool, s as ToolRef, t as BetterMcp, u as createMcp, v as answerLine, y as answerMessage } from "../index-DzLLMmUB.js";
|
|
4
4
|
export { type BetterMcp, type GuardOptions, MCP_PROTOCOL_VERSION, type McpOptions, type McpTool, type ProtocolServer, type ResourceRouteOptions, type ServerDescription, type ToolAnnotations, type ToolContext, type ToolDecision, type ToolDefinition, type ToolInfo, type ToolRef, type ToolResourceOptions, type ToolResources, type ToolResult, answerLine, answerMessage, createMcp, defineTool };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { n as Impersonator } from "../impersonation-BOCJcsmS.js";
|
|
|
6
6
|
import { n as AmrEntry, t as Aal } from "../mfa-CM5r904M.js";
|
|
7
7
|
import { S as BlockClientSource, on as RecordBindingOptions } from "../define-block-CDw9YGVh.js";
|
|
8
8
|
import { M as BindingName, N as BindingOf, S as RecordWriteInput, _ as RecordTypeBlocks, b as RecordTypeWriteInput, d as BindingWritesOf, f as Plain, g as RecordType, h as RecordCan, m as PlainBindings, x as RecordTypeWriteOutput } from "../index-DAS_5OfK.js";
|
|
9
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
10
|
-
import { t as tenantOf } from "../tenant-
|
|
11
|
-
import { r as permissionsOf, t as PermissionsOfOptions } from "../permissions-
|
|
9
|
+
import { r as MembershipClaim } from "../entitlements-6gODwBSz.js";
|
|
10
|
+
import { t as tenantOf } from "../tenant-eZNRWTRJ.js";
|
|
11
|
+
import { r as permissionsOf, t as PermissionsOfOptions } from "../permissions-Ed8WvLgQ.js";
|
|
12
12
|
import { n as AuthSession, o as toSession } from "../view-eHgOOyRS.js";
|
|
13
13
|
import { i as ContextOptions, l as ServerOptions, o as ServerContext, r as BetterServer, u as SharedServer } from "../server-types-DpI82uNq.js";
|
|
14
14
|
import { a as SupportPolicy, c as supportSessions, i as SupportOptions, o as SupportSessions, s as SupportStartRequest, t as ActiveSupport } from "../support-Dj5V2WTs.js";
|
|
@@ -16,7 +16,7 @@ import { t as AuthOutageHook } from "../session-s-mUZ8RQ.js";
|
|
|
16
16
|
import { n as AuthKind, r as GuardOptions } from "../respond-D7kUatjc.js";
|
|
17
17
|
import { a as AuthorizedContext, c as ResourceLoaderContext, i as AuthorizeOptions, l as Unwrapped, n as ActionParsed, r as ActionResult, t as ActionInput } from "../kit-lHFpu2_1.js";
|
|
18
18
|
import { c as ListParseOptions, m as ListSearchParams } from "../list-query-BkbLV-Yc.js";
|
|
19
|
-
import { r as LiveCountSeed, t as CountRunner } from "../index-
|
|
19
|
+
import { r as LiveCountSeed, t as CountRunner } from "../index-B5awu2SP.js";
|
|
20
20
|
import { i as ResourceContext, l as ResourceRouteOptions, o as ResourceHooks, r as ResourceAction, t as ActionArgs } from "../resource-types-CF3Uc6OW.js";
|
|
21
21
|
import { t as Validated } from "../shared-DsBcvj6q.js";
|
|
22
22
|
import { t as ResourceMap } from "../resources-DnHSmJIM.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as AuthorizationOperation } from "./authorization-
|
|
1
|
+
import { r as AuthorizationOperation } from "./authorization-D8CaAdqU.js";
|
|
2
2
|
/** Operations by name, as `authorization.operations` or a module's own defaults. */
|
|
3
3
|
type OperationTable = Readonly<Record<string, AuthorizationOperation>>;
|
|
4
4
|
export { OperationTable as t };
|
|
@@ -2,6 +2,7 @@ import { n as blockOptions, r as option } from "./options-Z-bd_H1E.js";
|
|
|
2
2
|
// src/blocks/expenses/options.ts
|
|
3
3
|
const expensesSqlOptions = blockOptions({
|
|
4
4
|
extraColumns: option.extraColumns(),
|
|
5
|
+
categoryExtraColumns: option.extraColumns(),
|
|
5
6
|
approvals: option.boolean({ default: true }),
|
|
6
7
|
owner: option.string({ default: "user" }),
|
|
7
8
|
companyExpenses: option.boolean({ default: false })
|
|
@@ -13,6 +13,7 @@ const leaveSqlOptions = blockOptions({
|
|
|
13
13
|
extraColumns: option.extraColumns(),
|
|
14
14
|
feed: option.unknown(),
|
|
15
15
|
approvals: option.boolean({ default: true }),
|
|
16
|
-
owner: option.string({ default: "user" })
|
|
16
|
+
owner: option.string({ default: "user" }),
|
|
17
|
+
reapprove: option.boolean({ default: false })
|
|
17
18
|
});
|
|
18
19
|
export { leaveSqlOptions as t };
|
package/dist/otel/index.js
CHANGED
|
@@ -39,9 +39,9 @@ function systemOf(executor) {
|
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
41
|
function otel(options = {}) {
|
|
42
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
42
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.38.0");
|
|
43
43
|
let histogram;
|
|
44
|
-
if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.
|
|
44
|
+
if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.38.0")).createHistogram("db.client.operation.duration", {
|
|
45
45
|
unit: "s",
|
|
46
46
|
description: "Duration of database client operations.",
|
|
47
47
|
advice: { explicitBucketBoundaries: [
|
|
@@ -218,7 +218,7 @@ function otel(options = {}) {
|
|
|
218
218
|
* `betterSupabase.events`. Returns a function that stops listening.
|
|
219
219
|
*/
|
|
220
220
|
function traceAuth(betterSupabase, options = {}) {
|
|
221
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
221
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.38.0");
|
|
222
222
|
const offAuth = betterSupabase.events.on("auth", (event) => {
|
|
223
223
|
const span = tracer.startSpan("auth.resolve", {
|
|
224
224
|
kind: SpanKind.INTERNAL,
|
|
@@ -256,7 +256,7 @@ function traceAuth(betterSupabase, options = {}) {
|
|
|
256
256
|
* an error status. Returns a function that stops listening.
|
|
257
257
|
*/
|
|
258
258
|
function traceBlockEvents(betterSupabase, options = {}) {
|
|
259
|
-
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.
|
|
259
|
+
const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.38.0");
|
|
260
260
|
return betterSupabase.events.on("block", (event) => {
|
|
261
261
|
const attributes = {
|
|
262
262
|
...options.attributes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-BIEaSN0Y.js";
|
|
3
3
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
4
4
|
/**
|
|
5
5
|
* A string store: `localStorage` on the web (`webStorage()`), AsyncStorage,
|
|
@@ -2,8 +2,8 @@ import { f as Result } from "../result-DTOQRyGY.js";
|
|
|
2
2
|
import { Vt as Executor } from "../types-BzIYSSWK.js";
|
|
3
3
|
import { t as BlockTransport } from "../block-transport-CDmOUuLZ.js";
|
|
4
4
|
import { C as UploadRouteOptions, E as uploadRoute, S as UploadRoute, T as uploadOutcome, _ as UploadConnectorOptions, b as UploadOutcome, c as LocalTablesOption, d as CreateUploadRepository, f as CrudEntryLike, g as UploadConnector, h as RejectedStore, m as RejectedChange, n as DataEngine, p as CrudQueueLike, s as LiveEngineOptions, v as UploadErrorContext, w as createUploadConnector, x as UploadRepository, y as UploadFunction } from "../data-engine-CX1oYDZl.js";
|
|
5
|
-
import { n as TopicPort } from "../watch-topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
5
|
+
import { n as TopicPort } from "../watch-topic-BIEaSN0Y.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-5vOwNouG.js";
|
|
7
7
|
import { C as quoteSqliteIdent, S as likeToGlob, _ as SqliteQuery, a as postgrestTimestamp, b as SqliteValue, c as sqliteCompiler, d as SqliteDecode, f as SqliteInsertPlan, g as SqlitePlan, h as SqliteNested, i as fromSqliteError, l as SqliteColumn, m as SqliteKeys, n as SqliteDatabaseLike, o as CheckSqliteOptions, p as SqliteKeyedPlan, r as SqliteExecutorOptions, s as checkSqlite, t as SqliteContextLike, u as SqliteCompilerOptions, v as SqliteReturning, w as sqliteValue, x as compileSqlite, y as SqliteSelectPlan } from "../executor-CxMHiDp_.js";
|
|
8
8
|
/** The part of PowerSync's `SyncStatus` the engine reads. */
|
|
9
9
|
interface SyncStatusLike {
|
package/dist/preset/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as PresetGroup, Ai as PresetValueInfo, At as PresetConflict, Ci as PresetConventions, Ct as ConfigConventions, Di as PresetFramework, Dt as expandPreset, Ei as PresetFieldValue, Et as conventionConfig, Ft as presetBlockConflict, Gn as presetFromSpec, It as resolvePreset, Jn as DEFAULT_PRESET_NAME, Kn as presetOfSpec, Mi as presetField, Mt as ResolvedPreset, Ni as presetValueLabel, Nt as ResolvedPresetBlock, Oi as PresetPlatforms, Ot as presetConfig, Pt as listNames, Qn as PRESET_NAMES, Si as PresetAccess, Ti as PresetFieldKey, Tt as PresetInput, Wn as PresetSpec, Xn as PRESETS, Yn as NamedPreset, Zn as PRESET_GROUPS, _i as CONVENTION_FIELDS, _r as AppColumnFormat, bi as PRESET_TENANT_NAMES, di as INSTANCE_NAME, er as PresetName, fi as instancePrefix, gi as PresetGlueItem, hi as PresetCatalogManifest, ji as integrationsForFramework, jt as PresetIntegration, ki as PresetScope, kt as presetOf, mi as PresetCatalogBlock, nr as isPresetName, pi as PresetCatalog, qn as presetSpec, rr as namedPreset, tr as defaultPreset, ui as CORE_BLOCKS, ur as APP_COLUMN_FORMATS, vi as DEFAULT_CONVENTIONS, wi as PresetField, wt as ExpandedConfig, xi as Preset, yi as PRESET_FRAMEWORKS } from "../context-
|
|
2
|
-
import { $ as readDesignFile, A as DesignFile, B as designFileSource, C as diffAppTables, D as DESIGN_FILE, E as CreateDesign, F as MAX_DESIGN_CODE_LENGTH, G as isDesignCode, H as designOf, I as createQuery, J as presetApplyCommand, K as parseDesign, L as createUrl, M as DesignParseIssue, N as DesignParseResult, O as DESIGN_FORMAT, P as DesignTooLongError, Q as presetKey, R as decodeDesign, S as DiffOptions, T as CREATE_URL, U as designSchema, V as designFormat, W as encodeDesign, X as presetConfigSource, Y as presetArgumentOf, Z as presetInstallCommand, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, et as safeDesignFileSource, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, it as PRESET_CATALOG, j as DesignParseError, k as DesignErrorCode, l as instanceBlock, m as withInstance, n as BlockInstance, nt as appDefaultError, o as canAddInstance, p as withEntityName, q as presetAndDesignOf, r as PresetInstance, rt as isAppDefault, s as entityName, t as BlockEntity, tt as safeParseDesign, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue, z as designConfig } from "../index-
|
|
3
|
-
import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-
|
|
1
|
+
import { $n as PresetGroup, Ai as PresetValueInfo, At as PresetConflict, Ci as PresetConventions, Ct as ConfigConventions, Di as PresetFramework, Dt as expandPreset, Ei as PresetFieldValue, Et as conventionConfig, Ft as presetBlockConflict, Gn as presetFromSpec, It as resolvePreset, Jn as DEFAULT_PRESET_NAME, Kn as presetOfSpec, Mi as presetField, Mt as ResolvedPreset, Ni as presetValueLabel, Nt as ResolvedPresetBlock, Oi as PresetPlatforms, Ot as presetConfig, Pt as listNames, Qn as PRESET_NAMES, Si as PresetAccess, Ti as PresetFieldKey, Tt as PresetInput, Wn as PresetSpec, Xn as PRESETS, Yn as NamedPreset, Zn as PRESET_GROUPS, _i as CONVENTION_FIELDS, _r as AppColumnFormat, bi as PRESET_TENANT_NAMES, di as INSTANCE_NAME, er as PresetName, fi as instancePrefix, gi as PresetGlueItem, hi as PresetCatalogManifest, ji as integrationsForFramework, jt as PresetIntegration, ki as PresetScope, kt as presetOf, mi as PresetCatalogBlock, nr as isPresetName, pi as PresetCatalog, qn as presetSpec, rr as namedPreset, tr as defaultPreset, ui as CORE_BLOCKS, ur as APP_COLUMN_FORMATS, vi as DEFAULT_CONVENTIONS, wi as PresetField, wt as ExpandedConfig, xi as Preset, yi as PRESET_FRAMEWORKS } from "../context-CH5FYnVk.js";
|
|
2
|
+
import { $ as readDesignFile, A as DesignFile, B as designFileSource, C as diffAppTables, D as DESIGN_FILE, E as CreateDesign, F as MAX_DESIGN_CODE_LENGTH, G as isDesignCode, H as designOf, I as createQuery, J as presetApplyCommand, K as parseDesign, L as createUrl, M as DesignParseIssue, N as DesignParseResult, O as DESIGN_FORMAT, P as DesignTooLongError, Q as presetKey, R as decodeDesign, S as DiffOptions, T as CREATE_URL, U as designSchema, V as designFormat, W as encodeDesign, X as presetConfigSource, Y as presetArgumentOf, Z as presetInstallCommand, _ as glueCommand, a as blockRequires, b as DesignChange, c as installedBlocks, d as instancesOf, et as safeDesignFileSource, f as presetInstances, g as PROVIDER_COMMENT, h as withoutInstance, i as blockEntities, it as PRESET_CATALOG, j as DesignParseError, k as DesignErrorCode, l as instanceBlock, m as withInstance, n as BlockInstance, nt as appDefaultError, o as canAddInstance, p as withEntityName, q as presetAndDesignOf, r as PresetInstance, rt as isAppDefault, s as entityName, t as BlockEntity, tt as safeParseDesign, u as instanceNameProblem, v as presetBlocksSource, w as diffDesigns, x as DesignChangeKind, y as presetGlue, z as designConfig } from "../index-vkd2LTt2.js";
|
|
3
|
+
import { i as appReservedColumns, n as appIdentifierError, r as appNameLengthError, t as APP_NAME_MAX } from "../app-tables-D2c0i05-.js";
|
|
4
4
|
export { APP_COLUMN_FORMATS, APP_NAME_MAX, type AppColumnFormat, type BlockEntity, type BlockInstance, CONVENTION_FIELDS, CREATE_URL, type ConfigConventions, type CreateDesign, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, type DesignChange, type DesignChangeKind, type DesignErrorCode, type DesignFile, DesignParseError, type DesignParseIssue, type DesignParseResult, DesignTooLongError, type DiffOptions, type ExpandedConfig, INSTANCE_NAME, MAX_DESIGN_CODE_LENGTH, type NamedPreset, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, type Preset, type PresetAccess, type PresetCatalog, type PresetCatalogBlock, type PresetCatalogManifest, type PresetConflict, type PresetConventions, type PresetField, type PresetFieldKey, type PresetFieldValue, type PresetFramework, type PresetGlueItem, type PresetGroup, type PresetInput, type PresetInstance, type PresetIntegration, type PresetName, type PresetPlatforms, type PresetScope, type PresetSpec, type PresetValueInfo, type ResolvedPreset, type ResolvedPresetBlock, CORE_BLOCKS as SINGLE_INSTANCE_BLOCKS, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, blockEntities, blockRequires, canAddInstance, conventionConfig, createQuery, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, entityName, expandPreset, glueCommand, installedBlocks, instanceBlock, instanceNameProblem, instancePrefix, instancesOf, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetArgumentOf, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetInstances, presetKey, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, resolvePreset, safeDesignFileSource, safeParseDesign, withEntityName, withInstance, withoutInstance };
|
package/dist/preset/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as integrationsForFramework, S as PRESET_TENANT_NAMES, T as presetValueLabel, _ as isPresetName, a as presetOf, b as DEFAULT_CONVENTIONS, c as presetSpec, d as resolvePreset, f as DEFAULT_PRESET_NAME, g as defaultPreset, h as PRESET_NAMES, i as presetConfig, l as listNames, m as PRESET_GROUPS, o as presetFromSpec, p as PRESETS, r as expandPreset, s as presetOfSpec, t as conventionConfig, u as presetBlockConflict, v as namedPreset, w as presetField, x as PRESET_FRAMEWORKS, y as CONVENTION_FIELDS } from "../config-
|
|
2
|
-
import { D as APP_COLUMN_FORMATS, M as PRESET_CATALOG, b as isAppDefault, c as APP_NAME_MAX, d as appIdentifierError, f as appNameLengthError, i as instancePrefix, n as INSTANCE_NAME, p as appReservedColumns, t as CORE_BLOCKS, y as appDefaultError } from "../instances-
|
|
3
|
-
import { A as isDesignCode, B as safeDesignFileSource, C as decodeDesign, D as designOf, E as designFormat, F as presetArgumentOf, G as presetGlue, H as PROVIDER_COMMENT, I as presetConfigSource, L as presetInstallCommand, M as parseDesign, N as presetAndDesignOf, O as designSchema, P as presetApplyCommand, R as presetKey, S as createUrl, T as designFileSource, U as glueCommand, V as safeParseDesign, W as presetBlocksSource, _ as DESIGN_FORMAT, a as installedBlocks, b as MAX_DESIGN_CODE_LENGTH, c as instancesOf, d as withInstance, f as withoutInstance, g as DESIGN_FILE, h as CREATE_URL, i as entityName, k as encodeDesign, l as presetInstances, m as diffDesigns, n as blockRequires, o as instanceBlock, p as diffAppTables, r as canAddInstance, s as instanceNameProblem, t as blockEntities, u as withEntityName, v as DesignParseError, w as designConfig, x as createQuery, y as DesignTooLongError, z as readDesignFile } from "../preset-
|
|
1
|
+
import { C as integrationsForFramework, S as PRESET_TENANT_NAMES, T as presetValueLabel, _ as isPresetName, a as presetOf, b as DEFAULT_CONVENTIONS, c as presetSpec, d as resolvePreset, f as DEFAULT_PRESET_NAME, g as defaultPreset, h as PRESET_NAMES, i as presetConfig, l as listNames, m as PRESET_GROUPS, o as presetFromSpec, p as PRESETS, r as expandPreset, s as presetOfSpec, t as conventionConfig, u as presetBlockConflict, v as namedPreset, w as presetField, x as PRESET_FRAMEWORKS, y as CONVENTION_FIELDS } from "../config-1-UmQczM.js";
|
|
2
|
+
import { D as APP_COLUMN_FORMATS, M as PRESET_CATALOG, b as isAppDefault, c as APP_NAME_MAX, d as appIdentifierError, f as appNameLengthError, i as instancePrefix, n as INSTANCE_NAME, p as appReservedColumns, t as CORE_BLOCKS, y as appDefaultError } from "../instances-Bycf_aus.js";
|
|
3
|
+
import { A as isDesignCode, B as safeDesignFileSource, C as decodeDesign, D as designOf, E as designFormat, F as presetArgumentOf, G as presetGlue, H as PROVIDER_COMMENT, I as presetConfigSource, L as presetInstallCommand, M as parseDesign, N as presetAndDesignOf, O as designSchema, P as presetApplyCommand, R as presetKey, S as createUrl, T as designFileSource, U as glueCommand, V as safeParseDesign, W as presetBlocksSource, _ as DESIGN_FORMAT, a as installedBlocks, b as MAX_DESIGN_CODE_LENGTH, c as instancesOf, d as withInstance, f as withoutInstance, g as DESIGN_FILE, h as CREATE_URL, i as entityName, k as encodeDesign, l as presetInstances, m as diffDesigns, n as blockRequires, o as instanceBlock, p as diffAppTables, r as canAddInstance, s as instanceNameProblem, t as blockEntities, u as withEntityName, v as DesignParseError, w as designConfig, x as createQuery, y as DesignTooLongError, z as readDesignFile } from "../preset-DkeXFh7e.js";
|
|
4
4
|
export { APP_COLUMN_FORMATS, APP_NAME_MAX, CONVENTION_FIELDS, CREATE_URL, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, DesignParseError, DesignTooLongError, INSTANCE_NAME, MAX_DESIGN_CODE_LENGTH, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, CORE_BLOCKS as SINGLE_INSTANCE_BLOCKS, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, blockEntities, blockRequires, canAddInstance, conventionConfig, createQuery, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, entityName, expandPreset, glueCommand, installedBlocks, instanceBlock, instanceNameProblem, instancePrefix, instancesOf, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetArgumentOf, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetInstances, presetKey, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, resolvePreset, safeDesignFileSource, safeParseDesign, withEntityName, withInstance, withoutInstance };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as groupEntries, a as presetOf, c as presetSpec, d as resolvePreset, g as defaultPreset, i as presetConfig, s as presetOfSpec } from "./config-
|
|
2
|
-
import { F as asBlocksConfig, M as PRESET_CATALOG, _ as appTablesOf, n as INSTANCE_NAME, t as CORE_BLOCKS } from "./instances-
|
|
1
|
+
import { M as groupEntries, a as presetOf, c as presetSpec, d as resolvePreset, g as defaultPreset, i as presetConfig, s as presetOfSpec } from "./config-1-UmQczM.js";
|
|
2
|
+
import { F as asBlocksConfig, M as PRESET_CATALOG, _ as appTablesOf, n as INSTANCE_NAME, t as CORE_BLOCKS } from "./instances-Bycf_aus.js";
|
|
3
3
|
import { r as FIELD_FORMATS } from "./field-formats-Cap-V7UP.js";
|
|
4
4
|
import { t as isSqlType } from "./sql-type-XWMeZRAl.js";
|
|
5
5
|
// src/preset/render.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as presetOf, d as resolvePreset } from "./config-
|
|
2
|
-
import { M as PRESET_CATALOG, b as isAppDefault, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, y as appDefaultError } from "./instances-
|
|
3
|
-
import { c as resolveConfig } from "./config-
|
|
4
|
-
import { D as designOf, M as parseDesign, j as jsonPointer, k as encodeDesign, v as DesignParseError, w as designConfig, y as DesignTooLongError } from "./preset-
|
|
5
|
-
import { I as renderBlocks, j as moduleLayout, rt as SQL_MODULES } from "./sql-
|
|
1
|
+
import { a as presetOf, d as resolvePreset } from "./config-1-UmQczM.js";
|
|
2
|
+
import { M as PRESET_CATALOG, b as isAppDefault, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, y as appDefaultError } from "./instances-Bycf_aus.js";
|
|
3
|
+
import { c as resolveConfig } from "./config-AEB5iNEO.js";
|
|
4
|
+
import { D as designOf, M as parseDesign, j as jsonPointer, k as encodeDesign, v as DesignParseError, w as designConfig, y as DesignTooLongError } from "./preset-DkeXFh7e.js";
|
|
5
|
+
import { I as renderBlocks, j as moduleLayout, rt as SQL_MODULES } from "./sql-B2cMvGnZ.js";
|
|
6
6
|
// src/create/column-keys.ts
|
|
7
7
|
/** The most options a select takes, and the longest option. */
|
|
8
8
|
const MAX_OPTIONS = 100;
|