@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 2.1 kB
Source Map (JSON)
{"version":3,"file":"client-integration-scopes.mjs","names":[],"sources":["../../../src/libs/repositories/client-integration-scopes.ts"],"sourcesContent":["import z from \"zod\";\nimport type DatabaseAdapter from \"../db/adapter-base.js\";\nimport type { KyselyDB } from \"../db/types.js\";\nimport StaticRepository from \"./parents/static-repository.js\";\n\nexport default class ClientIntegrationScopesRepository extends StaticRepository<\"lucid_client_integration_scopes\"> {\n\tconstructor(db: KyselyDB, dbAdapter: DatabaseAdapter) {\n\t\tsuper(db, dbAdapter, \"lucid_client_integration_scopes\");\n\t}\n\ttableSchema = z.object({\n\t\tid: z.number(),\n\t\tclient_integration_id: z.number(),\n\t\tscope: z.string(),\n\t\tcore: z.union([\n\t\t\tz.literal(this.dbAdapter.config.defaults.boolean.true),\n\t\t\tz.literal(this.dbAdapter.config.defaults.boolean.false),\n\t\t]),\n\t\tcreated_at: z.union([z.string(), z.date()]).nullable(),\n\t\tupdated_at: z.union([z.string(), z.date()]).nullable(),\n\t});\n\tcolumnFormats = {\n\t\tid: this.dbAdapter.getDataType(\"primary\"),\n\t\tclient_integration_id: this.dbAdapter.getDataType(\"integer\"),\n\t\tscope: this.dbAdapter.getDataType(\"text\"),\n\t\tcore: this.dbAdapter.getDataType(\"boolean\"),\n\t\tcreated_at: this.dbAdapter.getDataType(\"timestamp\"),\n\t\tupdated_at: this.dbAdapter.getDataType(\"timestamp\"),\n\t};\n\tqueryConfig = undefined;\n}\n"],"mappings":"kEAKA,IAAqB,EAArB,cAA+D,CAAoD,CAClH,YAAY,EAAc,EAA4B,CACrD,MAAM,EAAI,EAAW,iCAAiC,CACvD,CACA,YAAc,EAAE,OAAO,CACtB,GAAI,EAAE,OAAO,EACb,sBAAuB,EAAE,OAAO,EAChC,MAAO,EAAE,OAAO,EAChB,KAAM,EAAE,MAAM,CACb,EAAE,QAAQ,KAAK,UAAU,OAAO,SAAS,QAAQ,IAAI,EACrD,EAAE,QAAQ,KAAK,UAAU,OAAO,SAAS,QAAQ,KAAK,CACvD,CAAC,EACD,WAAY,EAAE,MAAM,CAAC,EAAE,OAAO,EAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EACrD,WAAY,EAAE,MAAM,CAAC,EAAE,OAAO,EAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CACtD,CAAC,EACD,cAAgB,CACf,GAAI,KAAK,UAAU,YAAY,SAAS,EACxC,sBAAuB,KAAK,UAAU,YAAY,SAAS,EAC3D,MAAO,KAAK,UAAU,YAAY,MAAM,EACxC,KAAM,KAAK,UAAU,YAAY,SAAS,EAC1C,WAAY,KAAK,UAAU,YAAY,WAAW,EAClD,WAAY,KAAK,UAAU,YAAY,WAAW,CACnD,EACA,YAAc,IAAA,EACf"}