@prisma/orm-extension-supabase 8.0.0-rc.5-dev.2 → 8.0.0-rc.5-dev.3
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/{contract-DMfLbJHA-cAPnZpB0.mjs → contract-BtkFI1FE-DxMTuQhc.mjs} +169 -169
- package/dist/contract-BtkFI1FE-DxMTuQhc.mjs.map +1 -0
- package/dist/contract.d.mts +8 -8
- package/dist/contract.mjs +1 -1
- package/dist/contract.mjs.map +1 -1
- package/dist/pack.mjs +1 -1
- package/dist/pack.mjs.map +1 -1
- package/dist/runtime.d.mts +552 -520
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/runtime.mjs.map +1 -1
- package/package.json +10 -10
- package/dist/contract-DMfLbJHA-cAPnZpB0.mjs.map +0 -1
package/dist/contract.d.mts
CHANGED
|
@@ -43,7 +43,7 @@ declare const AuthUser: import("@prisma/orm-family-sql/contract-ts/contract-buil
|
|
|
43
43
|
created_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
|
|
44
44
|
readonly kind: "scalar";
|
|
45
45
|
readonly descriptor?: {
|
|
46
|
-
readonly codecId: "pg/timestamptz@1";
|
|
46
|
+
readonly codecId: "pg/timestamptz-temporal@1";
|
|
47
47
|
readonly nativeType: "timestamptz";
|
|
48
48
|
} | undefined;
|
|
49
49
|
readonly typeRef?: undefined;
|
|
@@ -61,7 +61,7 @@ declare const AuthUser: import("@prisma/orm-family-sql/contract-ts/contract-buil
|
|
|
61
61
|
updated_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
|
|
62
62
|
readonly kind: "scalar";
|
|
63
63
|
readonly descriptor?: {
|
|
64
|
-
readonly codecId: "pg/timestamptz@1";
|
|
64
|
+
readonly codecId: "pg/timestamptz-temporal@1";
|
|
65
65
|
readonly nativeType: "timestamptz";
|
|
66
66
|
} | undefined;
|
|
67
67
|
readonly typeRef?: undefined;
|
|
@@ -137,7 +137,7 @@ declare const AuthIdentity: import("@prisma/orm-family-sql/contract-ts/contract-
|
|
|
137
137
|
created_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
|
|
138
138
|
readonly kind: "scalar";
|
|
139
139
|
readonly descriptor?: {
|
|
140
|
-
readonly codecId: "pg/timestamptz@1";
|
|
140
|
+
readonly codecId: "pg/timestamptz-temporal@1";
|
|
141
141
|
readonly nativeType: "timestamptz";
|
|
142
142
|
} | undefined;
|
|
143
143
|
readonly typeRef?: undefined;
|
|
@@ -155,7 +155,7 @@ declare const AuthIdentity: import("@prisma/orm-family-sql/contract-ts/contract-
|
|
|
155
155
|
updated_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
|
|
156
156
|
readonly kind: "scalar";
|
|
157
157
|
readonly descriptor?: {
|
|
158
|
-
readonly codecId: "pg/timestamptz@1";
|
|
158
|
+
readonly codecId: "pg/timestamptz-temporal@1";
|
|
159
159
|
readonly nativeType: "timestamptz";
|
|
160
160
|
} | undefined;
|
|
161
161
|
readonly typeRef?: undefined;
|
|
@@ -213,7 +213,7 @@ declare const StorageBucket: import("@prisma/orm-family-sql/contract-ts/contract
|
|
|
213
213
|
created_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
|
|
214
214
|
readonly kind: "scalar";
|
|
215
215
|
readonly descriptor?: {
|
|
216
|
-
readonly codecId: "pg/timestamptz@1";
|
|
216
|
+
readonly codecId: "pg/timestamptz-temporal@1";
|
|
217
217
|
readonly nativeType: "timestamptz";
|
|
218
218
|
} | undefined;
|
|
219
219
|
readonly typeRef?: undefined;
|
|
@@ -231,7 +231,7 @@ declare const StorageBucket: import("@prisma/orm-family-sql/contract-ts/contract
|
|
|
231
231
|
updated_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
|
|
232
232
|
readonly kind: "scalar";
|
|
233
233
|
readonly descriptor?: {
|
|
234
|
-
readonly codecId: "pg/timestamptz@1";
|
|
234
|
+
readonly codecId: "pg/timestamptz-temporal@1";
|
|
235
235
|
readonly nativeType: "timestamptz";
|
|
236
236
|
} | undefined;
|
|
237
237
|
readonly typeRef?: undefined;
|
|
@@ -307,7 +307,7 @@ declare const StorageObject: import("@prisma/orm-family-sql/contract-ts/contract
|
|
|
307
307
|
created_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
|
|
308
308
|
readonly kind: "scalar";
|
|
309
309
|
readonly descriptor?: {
|
|
310
|
-
readonly codecId: "pg/timestamptz@1";
|
|
310
|
+
readonly codecId: "pg/timestamptz-temporal@1";
|
|
311
311
|
readonly nativeType: "timestamptz";
|
|
312
312
|
} | undefined;
|
|
313
313
|
readonly typeRef?: undefined;
|
|
@@ -325,7 +325,7 @@ declare const StorageObject: import("@prisma/orm-family-sql/contract-ts/contract
|
|
|
325
325
|
updated_at: import("@prisma/orm-family-sql/contract-ts/contract-builder").ScalarFieldBuilder<{
|
|
326
326
|
readonly kind: "scalar";
|
|
327
327
|
readonly descriptor?: {
|
|
328
|
-
readonly codecId: "pg/timestamptz@1";
|
|
328
|
+
readonly codecId: "pg/timestamptz-temporal@1";
|
|
329
329
|
readonly nativeType: "timestamptz";
|
|
330
330
|
} | undefined;
|
|
331
331
|
readonly typeRef?: undefined;
|
package/dist/contract.mjs
CHANGED
package/dist/contract.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/contract.mjs"],"sourcesContent":["import { i as authenticated, r as anon } from \"./roles-D5vC3rNp.mjs\";\nimport { extensionModel, field } from \"@internal/sql-contract-ts/contract-builder\";\n//#region src/contract/handles.ts\n/**\n* Branded model handles for the Supabase contract space.\n*\n* Each handle is built via `extensionModel` branded `spaceId: 'supabase'` with\n* its real domain model name, namespace, table name, and columns — so\n* `AuthUser.refs.id` is a cross-space `TargetFieldRef` carrying\n* `spaceId:'supabase'`, `namespaceId:'auth'`, `tableName:'users'`.\n*\n* Columns mirror the shipped contract (`src/contract/contract.json`); the\n* handle↔contract consistency test (`test/contract-handles.test.ts`) asserts\n* they agree so any drift is caught at test time.\n*/\nconst pgText = {\n\tcodecId: \"pg/text@1\",\n\tnativeType: \"text\"\n};\nconst pgTimestamptz = {\n\tcodecId: \"pg/timestamptz@1\",\n\tnativeType: \"timestamptz\"\n};\nconst AuthUser = extensionModel(\"AuthUser\", {\n\tnamespace: \"auth\",\n\tfields: {\n\t\tid: field.column(pgText).id(),\n\t\temail: field.column(pgText),\n\t\tcreated_at: field.column(pgTimestamptz),\n\t\tupdated_at: field.column(pgTimestamptz)\n\t},\n\ttable: \"users\"\n}, \"supabase\");\nconst AuthIdentity = extensionModel(\"AuthIdentity\", {\n\tnamespace: \"auth\",\n\tfields: {\n\t\tid: field.column(pgText).id(),\n\t\tuser_id: field.column(pgText),\n\t\tprovider: field.column(pgText),\n\t\tcreated_at: field.column(pgTimestamptz),\n\t\tupdated_at: field.column(pgTimestamptz)\n\t},\n\ttable: \"identities\"\n}, \"supabase\");\nconst StorageBucket = extensionModel(\"StorageBucket\", {\n\tnamespace: \"storage\",\n\tfields: {\n\t\tid: field.column(pgText).id(),\n\t\tname: field.column(pgText),\n\t\tcreated_at: field.column(pgTimestamptz),\n\t\tupdated_at: field.column(pgTimestamptz)\n\t},\n\ttable: \"buckets\"\n}, \"supabase\");\nconst StorageObject = extensionModel(\"StorageObject\", {\n\tnamespace: \"storage\",\n\tfields: {\n\t\tid: field.column(pgText).id(),\n\t\tbucket_id: field.column(pgText),\n\t\tname: field.column(pgText),\n\t\tcreated_at: field.column(pgTimestamptz),\n\t\tupdated_at: field.column(pgTimestamptz)\n\t},\n\ttable: \"objects\"\n}, \"supabase\");\n//#endregion\nexport { AuthIdentity, AuthUser, StorageBucket, StorageObject, anon, authenticated };\n\n//# sourceMappingURL=contract.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAM,SAAS;CACd,SAAS;CACT,YAAY;AACb;AACA,MAAM,gBAAgB;CACrB,SAAS;CACT,YAAY;AACb;AACA,MAAM,WAAW,eAAe,YAAY;CAC3C,WAAW;CACX,QAAQ;EACP,IAAI,MAAM,OAAO,MAAM,CAAC,CAAC,GAAG;EAC5B,OAAO,MAAM,OAAO,MAAM;EAC1B,YAAY,MAAM,OAAO,aAAa;EACtC,YAAY,MAAM,OAAO,aAAa;CACvC;CACA,OAAO;AACR,GAAG,UAAU;AACb,MAAM,eAAe,eAAe,gBAAgB;CACnD,WAAW;CACX,QAAQ;EACP,IAAI,MAAM,OAAO,MAAM,CAAC,CAAC,GAAG;EAC5B,SAAS,MAAM,OAAO,MAAM;EAC5B,UAAU,MAAM,OAAO,MAAM;EAC7B,YAAY,MAAM,OAAO,aAAa;EACtC,YAAY,MAAM,OAAO,aAAa;CACvC;CACA,OAAO;AACR,GAAG,UAAU;AACb,MAAM,gBAAgB,eAAe,iBAAiB;CACrD,WAAW;CACX,QAAQ;EACP,IAAI,MAAM,OAAO,MAAM,CAAC,CAAC,GAAG;EAC5B,MAAM,MAAM,OAAO,MAAM;EACzB,YAAY,MAAM,OAAO,aAAa;EACtC,YAAY,MAAM,OAAO,aAAa;CACvC;CACA,OAAO;AACR,GAAG,UAAU;AACb,MAAM,gBAAgB,eAAe,iBAAiB;CACrD,WAAW;CACX,QAAQ;EACP,IAAI,MAAM,OAAO,MAAM,CAAC,CAAC,GAAG;EAC5B,WAAW,MAAM,OAAO,MAAM;EAC9B,MAAM,MAAM,OAAO,MAAM;EACzB,YAAY,MAAM,OAAO,aAAa;EACtC,YAAY,MAAM,OAAO,aAAa;CACvC;CACA,OAAO;AACR,GAAG,UAAU"}
|
|
1
|
+
{"version":3,"file":"contract.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/contract.mjs"],"sourcesContent":["import { i as authenticated, r as anon } from \"./roles-D5vC3rNp.mjs\";\nimport { extensionModel, field } from \"@internal/sql-contract-ts/contract-builder\";\n//#region src/contract/handles.ts\n/**\n* Branded model handles for the Supabase contract space.\n*\n* Each handle is built via `extensionModel` branded `spaceId: 'supabase'` with\n* its real domain model name, namespace, table name, and columns — so\n* `AuthUser.refs.id` is a cross-space `TargetFieldRef` carrying\n* `spaceId:'supabase'`, `namespaceId:'auth'`, `tableName:'users'`.\n*\n* Columns mirror the shipped contract (`src/contract/contract.json`); the\n* handle↔contract consistency test (`test/contract-handles.test.ts`) asserts\n* they agree so any drift is caught at test time.\n*/\nconst pgText = {\n\tcodecId: \"pg/text@1\",\n\tnativeType: \"text\"\n};\nconst pgTimestamptz = {\n\tcodecId: \"pg/timestamptz-temporal@1\",\n\tnativeType: \"timestamptz\"\n};\nconst AuthUser = extensionModel(\"AuthUser\", {\n\tnamespace: \"auth\",\n\tfields: {\n\t\tid: field.column(pgText).id(),\n\t\temail: field.column(pgText),\n\t\tcreated_at: field.column(pgTimestamptz),\n\t\tupdated_at: field.column(pgTimestamptz)\n\t},\n\ttable: \"users\"\n}, \"supabase\");\nconst AuthIdentity = extensionModel(\"AuthIdentity\", {\n\tnamespace: \"auth\",\n\tfields: {\n\t\tid: field.column(pgText).id(),\n\t\tuser_id: field.column(pgText),\n\t\tprovider: field.column(pgText),\n\t\tcreated_at: field.column(pgTimestamptz),\n\t\tupdated_at: field.column(pgTimestamptz)\n\t},\n\ttable: \"identities\"\n}, \"supabase\");\nconst StorageBucket = extensionModel(\"StorageBucket\", {\n\tnamespace: \"storage\",\n\tfields: {\n\t\tid: field.column(pgText).id(),\n\t\tname: field.column(pgText),\n\t\tcreated_at: field.column(pgTimestamptz),\n\t\tupdated_at: field.column(pgTimestamptz)\n\t},\n\ttable: \"buckets\"\n}, \"supabase\");\nconst StorageObject = extensionModel(\"StorageObject\", {\n\tnamespace: \"storage\",\n\tfields: {\n\t\tid: field.column(pgText).id(),\n\t\tbucket_id: field.column(pgText),\n\t\tname: field.column(pgText),\n\t\tcreated_at: field.column(pgTimestamptz),\n\t\tupdated_at: field.column(pgTimestamptz)\n\t},\n\ttable: \"objects\"\n}, \"supabase\");\n//#endregion\nexport { AuthIdentity, AuthUser, StorageBucket, StorageObject, anon, authenticated };\n\n//# sourceMappingURL=contract.mjs.map"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAM,SAAS;CACd,SAAS;CACT,YAAY;AACb;AACA,MAAM,gBAAgB;CACrB,SAAS;CACT,YAAY;AACb;AACA,MAAM,WAAW,eAAe,YAAY;CAC3C,WAAW;CACX,QAAQ;EACP,IAAI,MAAM,OAAO,MAAM,CAAC,CAAC,GAAG;EAC5B,OAAO,MAAM,OAAO,MAAM;EAC1B,YAAY,MAAM,OAAO,aAAa;EACtC,YAAY,MAAM,OAAO,aAAa;CACvC;CACA,OAAO;AACR,GAAG,UAAU;AACb,MAAM,eAAe,eAAe,gBAAgB;CACnD,WAAW;CACX,QAAQ;EACP,IAAI,MAAM,OAAO,MAAM,CAAC,CAAC,GAAG;EAC5B,SAAS,MAAM,OAAO,MAAM;EAC5B,UAAU,MAAM,OAAO,MAAM;EAC7B,YAAY,MAAM,OAAO,aAAa;EACtC,YAAY,MAAM,OAAO,aAAa;CACvC;CACA,OAAO;AACR,GAAG,UAAU;AACb,MAAM,gBAAgB,eAAe,iBAAiB;CACrD,WAAW;CACX,QAAQ;EACP,IAAI,MAAM,OAAO,MAAM,CAAC,CAAC,GAAG;EAC5B,MAAM,MAAM,OAAO,MAAM;EACzB,YAAY,MAAM,OAAO,aAAa;EACtC,YAAY,MAAM,OAAO,aAAa;CACvC;CACA,OAAO;AACR,GAAG,UAAU;AACb,MAAM,gBAAgB,eAAe,iBAAiB;CACrD,WAAW;CACX,QAAQ;EACP,IAAI,MAAM,OAAO,MAAM,CAAC,CAAC,GAAG;EAC5B,WAAW,MAAM,OAAO,MAAM;EAC9B,MAAM,MAAM,OAAO,MAAM;EACzB,YAAY,MAAM,OAAO,aAAa;EACtC,YAAY,MAAM,OAAO,aAAa;CACvC;CACA,OAAO;AACR,GAAG,UAAU"}
|
package/dist/pack.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as version, t as contract_default } from "./contract-
|
|
1
|
+
import { n as version, t as contract_default } from "./contract-BtkFI1FE-DxMTuQhc.mjs";
|
|
2
2
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
3
3
|
//#region ../../../3-extensions/supabase/dist/pack.mjs
|
|
4
4
|
const SUPABASE_SPACE_ID = "supabase";
|
package/dist/pack.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pack.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/pack.mjs"],"sourcesContent":["import { n as version, t as contract_default } from \"./contract-
|
|
1
|
+
{"version":3,"file":"pack.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/pack.mjs"],"sourcesContent":["import { n as version, t as contract_default } from \"./contract-BtkFI1FE.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/pack/index.ts\nconst SUPABASE_SPACE_ID = \"supabase\";\nfunction buildContractSpace(contractOverride) {\n\tconst contract = blindCast(contractOverride ?? contract_default);\n\treturn {\n\t\tcontractJson: contract,\n\t\tmigrations: [],\n\t\theadRef: {\n\t\t\thash: contract.storage.storageHash,\n\t\t\tinvariants: []\n\t\t}\n\t};\n}\nconst supabasePackBase = {\n\tkind: \"extension\",\n\tid: SUPABASE_SPACE_ID,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion,\n\tcontractSpace: buildContractSpace(),\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\nconst supabasePack = supabasePackBase;\n/**\n* Returns a pack using `contractOverride` in place of the shipped\n* `contract.json` when provided, otherwise returns the default pack.\n*\n* Intended for tests that need to drive the framework with a synthetic\n* contract while still exercising the full descriptor wiring.\n*/\nfunction supabasePackWith(options) {\n\tif (options?.contractOverride === void 0) return supabasePack;\n\treturn {\n\t\t...supabasePackBase,\n\t\tcontractSpace: buildContractSpace(options.contractOverride)\n\t};\n}\n//#endregion\nexport { supabasePack as default, supabasePackWith };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;AAGA,MAAM,oBAAoB;AAC1B,SAAS,mBAAmB,kBAAkB;CAC7C,MAAM,WAAW,UAAU,oBAAoB,gBAAgB;CAC/D,OAAO;EACN,cAAc;EACd,YAAY,CAAC;EACb,SAAS;GACR,MAAM,SAAS,QAAQ;GACvB,YAAY,CAAC;EACd;CACD;AACD;AACA,MAAM,mBAAmB;CACxB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV;CACA,eAAe,mBAAmB;CAClC,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD;AACA,MAAM,eAAe;;;;;;;;AAQrB,SAAS,iBAAiB,SAAS;CAClC,IAAI,SAAS,qBAAqB,KAAK,GAAG,OAAO;CACjD,OAAO;EACN,GAAG;EACH,eAAe,mBAAmB,QAAQ,gBAAgB;CAC3D;AACD"}
|