@graphoria/server 0.1.5 → 0.2.1
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/src/analyzeQuery/resolveVariables.d.ts.map +1 -1
- package/dist/src/authentication/jwt.d.ts.map +1 -1
- package/dist/src/authentication/paseto.d.ts.map +1 -1
- package/dist/src/authentication/tokenRepository.d.ts +2 -1
- package/dist/src/authentication/tokenRepository.d.ts.map +1 -1
- package/dist/src/config/helpers/operationHelper.d.ts +60 -6
- package/dist/src/config/helpers/operationHelper.d.ts.map +1 -1
- package/dist/src/config/helpers/operationHelper.test.d.ts +2 -0
- package/dist/src/config/helpers/operationHelper.test.d.ts.map +1 -0
- package/dist/src/config/index.d.ts +65 -60
- package/dist/src/config/index.d.ts.map +1 -1
- package/dist/src/config/types/ai.d.ts +9 -3
- package/dist/src/config/types/ai.d.ts.map +1 -1
- package/dist/src/config/types/auth.d.ts +55 -15
- package/dist/src/config/types/auth.d.ts.map +1 -1
- package/dist/src/config/types/cron.d.ts +96 -2
- package/dist/src/config/types/cron.d.ts.map +1 -1
- package/dist/src/config/types/db.d.ts +102 -29
- package/dist/src/config/types/db.d.ts.map +1 -1
- package/dist/src/config/types/index.d.ts +1 -1
- package/dist/src/config/types/index.d.ts.map +1 -1
- package/dist/src/config/types/operation.d.ts +49 -17
- package/dist/src/config/types/operation.d.ts.map +1 -1
- package/dist/src/config/types/queue.d.ts +61 -14
- package/dist/src/config/types/queue.d.ts.map +1 -1
- package/dist/src/config/types/remote-rest.d.ts +10 -1
- package/dist/src/config/types/remote-rest.d.ts.map +1 -1
- package/dist/src/config/types/remote-schema.d.ts +13 -3
- package/dist/src/config/types/remote-schema.d.ts.map +1 -1
- package/dist/src/config/types/virtual-columns.d.ts +1 -1
- package/dist/src/config/types/virtual-columns.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/index.d.ts +6 -4
- package/dist/src/configuration/getSchemas/index.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts +9 -2
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/mergeEntities/index.test.d.ts +2 -0
- package/dist/src/configuration/getSchemas/mergeEntities/index.test.d.ts.map +1 -0
- package/dist/src/configuration/getSchemas/type-definition-generator/index.d.ts.map +1 -1
- package/dist/src/configuration/index.d.ts +5 -4
- package/dist/src/configuration/index.d.ts.map +1 -1
- package/dist/src/configuration/rest/generateOpenAPI.d.ts.map +1 -1
- package/dist/src/configuration/rest/handleRESTRequestFactory.d.ts.map +1 -1
- package/dist/src/configuration/rest/parseStringParams.d.ts +15 -0
- package/dist/src/configuration/rest/parseStringParams.d.ts.map +1 -0
- package/dist/src/configuration/rest/parseStringParams.test.d.ts +2 -0
- package/dist/src/configuration/rest/parseStringParams.test.d.ts.map +1 -0
- package/dist/src/databases/common.d.ts +9 -1
- package/dist/src/databases/common.d.ts.map +1 -1
- package/dist/src/databases/directives.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/connection.d.ts +1 -1
- package/dist/src/databases/engines/mssql/connection.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/getStructure.d.ts +1 -0
- package/dist/src/databases/engines/mssql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/query/index.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/connection.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/getStructure.d.ts +1 -0
- package/dist/src/databases/engines/mysql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/placeholders.d.ts +22 -0
- package/dist/src/databases/engines/mysql/placeholders.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/placeholders.test.d.ts +2 -0
- package/dist/src/databases/engines/mysql/placeholders.test.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/query/index.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/getStructure.d.ts +1 -0
- package/dist/src/databases/engines/postgresql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/query/index.d.ts.map +1 -1
- package/dist/src/databases/high-level-operations.d.ts +1 -0
- package/dist/src/databases/high-level-operations.d.ts.map +1 -1
- package/dist/src/databases/identifierMapping.test.d.ts +2 -0
- package/dist/src/databases/identifierMapping.test.d.ts.map +1 -0
- package/dist/src/databases/metadata/structure.d.ts +1 -0
- package/dist/src/databases/metadata/structure.d.ts.map +1 -1
- package/dist/src/databases/sqlTypeUtils.d.ts.map +1 -1
- package/dist/src/databases/transformers/data-transformers.d.ts +1 -0
- package/dist/src/databases/transformers/data-transformers.d.ts.map +1 -1
- package/dist/src/databases/transformers/genResolverName.d.ts.map +1 -1
- package/dist/src/databases/transformers/graphqlName.d.ts +23 -0
- package/dist/src/databases/transformers/graphqlName.d.ts.map +1 -0
- package/dist/src/databases/transformers/graphqlName.test.d.ts +2 -0
- package/dist/src/databases/transformers/graphqlName.test.d.ts.map +1 -0
- package/dist/src/singletons/env.d.ts +2 -2
- package/dist/src/types/env.d.ts +56 -56
- package/dist/src/types/resolver.d.ts +12 -2
- package/dist/src/types/resolver.d.ts.map +1 -1
- package/dist/src/types/zod/auth.d.ts +6 -6
- package/dist/src/types/zod/configuration.d.ts +52 -52
- package/dist/src/types/zod/configuration.d.ts.map +1 -1
- package/dist/src/types/zod/cron.d.ts +1 -1
- package/dist/src/types/zod/cron.d.ts.map +1 -1
- package/dist/src/types/zod/db.d.ts +21 -12
- package/dist/src/types/zod/db.d.ts.map +1 -1
- package/dist/src/types/zod/queue.d.ts +38 -38
- package/dist/src/types/zod/strict-keys.test.d.ts +2 -0
- package/dist/src/types/zod/strict-keys.test.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/analyzeQuery/resolveVariables.ts +37 -7
- package/src/authentication/jwt.ts +3 -1
- package/src/authentication/paseto.ts +3 -1
- package/src/authentication/tokenRepository.ts +12 -4
- package/src/config/helpers/operationHelper.ts +146 -5
- package/src/config/index.ts +139 -62
- package/src/config/types/ai.ts +2 -2
- package/src/config/types/auth.ts +37 -6
- package/src/config/types/cron.ts +1 -1
- package/src/config/types/db.ts +10 -10
- package/src/config/types/index.ts +2 -0
- package/src/config/types/operation.ts +49 -9
- package/src/config/types/queue.ts +8 -8
- package/src/config/types/remote-rest.ts +1 -1
- package/src/config/types/remote-schema.ts +2 -2
- package/src/config/types/virtual-columns.ts +1 -1
- package/src/configuration/getSchemas/mergeEntities/index.ts +32 -1
- package/src/configuration/getSchemas/type-definition-generator/index.ts +23 -9
- package/src/configuration/rest/generateOpenAPI.ts +5 -9
- package/src/configuration/rest/handleRESTRequestFactory.ts +38 -14
- package/src/configuration/rest/parseStringParams.ts +92 -0
- package/src/databases/common.ts +163 -66
- package/src/databases/directives.ts +26 -8
- package/src/databases/engines/mssql/connection.ts +1 -1
- package/src/databases/engines/mssql/query/index.ts +47 -16
- package/src/databases/engines/mysql/auth.ts +2 -2
- package/src/databases/engines/mysql/connection.ts +5 -4
- package/src/databases/engines/mysql/getStructure.ts +61 -30
- package/src/databases/engines/mysql/placeholders.ts +84 -0
- package/src/databases/engines/mysql/query/index.ts +68 -10
- package/src/databases/engines/postgresql/query/index.ts +59 -7
- package/src/databases/high-level-operations.ts +2 -2
- package/src/databases/sqlTypeUtils.ts +3 -1
- package/src/databases/transformers/genResolverName.ts +3 -3
- package/src/databases/transformers/graphqlName.ts +28 -0
- package/src/subscriptions/strategies/index.ts +1 -1
- package/src/subscriptions/strategies/queue.ts +1 -1
- package/src/types/resolver.ts +17 -1
- package/src/types/zod/configuration.ts +1 -1
- package/src/types/zod/db.ts +4 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStructure.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/mssql/getStructure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAK7D,eAAO,MAAM,oBAAoB,GAAU,IAAI,QAAQ
|
|
1
|
+
{"version":3,"file":"getStructure.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/mssql/getStructure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAK7D,eAAO,MAAM,oBAAoB,GAAU,IAAI,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2GtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/databases/engines/mssql/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/databases/engines/mssql/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AA4JzF,eAAO,MAAM,WAAW,GACtB,UAAU,cAAc,EACxB,WAAW,iBAAiB,EAC5B,YAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACvC,gBAAe,OAAe,KAC7B,MAsFF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,UAAU,cAAc,EACxB,qBAAqB,kBAAkB,EAAE,EACzC,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAK,EACvC,OAAO,iBAAiB,EACxB,iBAAiB,MAAM,GAAG,IAAI,EAC9B,kBAAkB,MAAM,GAAG,IAAI,EAC/B,OAAO,MAAM,EACb,UAAU;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,KACpC,MAsFF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/mysql/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/mysql/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAK3D,eAAO,MAAM,OAAO,GAAU,IAAI,QAAQ,iBAqBzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAU,IAAI,QAAQ,iBAAyC,CAAC;AAE7F,eAAO,MAAM,mBAAmB,GAC7B,qBAAmB,MACb,CAAC,EACN,OAAO,MAAM,EACb,IAAI,QAAQ,EACZ,sBAAqB,kBAAkB,EAAO,EAC9C,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,eAcrC,CAAC;AAEJ,eAAO,MAAM,YAAY,GApBhB,CAAC,SACC,MAAM,MACT,QAAQ,wBACS,kBAAkB,EAAE,WACjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAgBc,CAAC;AAClD,eAAO,MAAM,kBAAkB,GArBtB,CAAC,SACC,MAAM,MACT,QAAQ,wBACS,kBAAkB,EAAE,WACjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAiBwB,CAAC;AAE5D,eAAO,MAAM,uBAAuB,GACjC,qBAAmB,MACb,CAAC,EACN,OAAO,MAAM,EACb,IAAI,QAAQ,EACZ,sBAAqB,kBAAkB,EAAO,EAC9C,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,eAUrC,CAAC;AAEJ,eAAO,MAAM,gBAAgB,GAhBpB,CAAC,SACC,MAAM,MACT,QAAQ,wBACS,kBAAkB,EAAE,WACjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAYsB,CAAC;AAC1D,eAAO,MAAM,sBAAsB,GAjB1B,CAAC,SACC,MAAM,MACT,QAAQ,wBACS,kBAAkB,EAAE,WACjC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,eAagC,CAAC;AAEpE,eAAO,MAAM,mBAAmB,GAC9B,IAAI,iBAAiB,EACrB,qBAAqB,kBAAkB,EAAE,EACzC,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,qBAgBnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStructure.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/mysql/getStructure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"getStructure.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/mysql/getStructure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAoB7D,eAAO,MAAM,oBAAoB,GAAU,IAAI,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+HtD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { VariableDefinition } from "../../../analyzeQuery/types";
|
|
2
|
+
/**
|
|
3
|
+
* Rewrites the builder's PostgreSQL-style `$n` placeholders to MySQL's `?`.
|
|
4
|
+
*
|
|
5
|
+
* The query builders are shared across engines and number placeholders by index
|
|
6
|
+
* into `variablesDefinition`. Bun's MySQL adapter binds `?` by position of
|
|
7
|
+
* occurrence in the statement text, and the two orders do not match: the WHERE
|
|
8
|
+
* string is interpolated into more than one sub-statement on the aggregate path,
|
|
9
|
+
* nested subqueries are built before the outer WHERE is appended, and a single
|
|
10
|
+
* directive can emit `$2` before `$1` and `$1` twice. Rewriting here — the one
|
|
11
|
+
* point where the finished statement and its values meet — makes text order the
|
|
12
|
+
* binding order by construction.
|
|
13
|
+
*
|
|
14
|
+
* The scan skips quoted runs because generated SQL does carry `$n` inside string
|
|
15
|
+
* literals: a config-supplied relationship condition value is interpolated as a
|
|
16
|
+
* literal, and introspected identifiers may contain `$`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const toMySQLPlaceholders: (query: string, variablesDefinition?: VariableDefinition[], values?: Record<string, unknown>) => {
|
|
19
|
+
query: string;
|
|
20
|
+
params: unknown[];
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=placeholders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholders.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/mysql/placeholders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,EACb,sBAAqB,kBAAkB,EAAO,EAC9C,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,KACnC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,EAAE,CAAA;CA6DpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholders.test.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/mysql/placeholders.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/databases/engines/mysql/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/databases/engines/mysql/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAqJzF,eAAO,MAAM,WAAW,GACtB,UAAU,cAAc,EACxB,WAAW,iBAAiB,EAC5B,YAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACvC,gBAAe,OAAe,KAC7B,MA0EF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,UAAU,cAAc,EACxB,qBAAqB,kBAAkB,EAAE,EACzC,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAK,EACvC,OAAO,iBAAiB,EACxB,iBAAiB,MAAM,GAAG,IAAI,EAC9B,kBAAkB,MAAM,GAAG,IAAI,EAC/B,OAAO,MAAM,EACb,UAAU;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,KACpC,MAyGF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getStructure.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/postgresql/getStructure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAK7D,eAAO,MAAM,oBAAoB,GAAU,IAAI,QAAQ
|
|
1
|
+
{"version":3,"file":"getStructure.d.ts","sourceRoot":"","sources":["../../../../../src/databases/engines/postgresql/getStructure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAK7D,eAAO,MAAM,oBAAoB,GAAU,IAAI,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgJtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/databases/engines/postgresql/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/databases/engines/postgresql/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AAkJzF,eAAO,MAAM,WAAW,GACtB,UAAU,cAAc,EACxB,WAAW,iBAAiB,EAC5B,YAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACvC,gBAAe,OAAe,KAC7B,MA0EF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,UAAU,cAAc,EACxB,qBAAqB,kBAAkB,EAAE,EACzC,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAK,EACvC,OAAO,iBAAiB,EACxB,iBAAiB,MAAM,GAAG,IAAI,EAC9B,kBAAkB,MAAM,GAAG,IAAI,EAC/B,OAAO,MAAM,EACb,UAAU;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,KACpC,MAkGF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"high-level-operations.d.ts","sourceRoot":"","sources":["../../../src/databases/high-level-operations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EACV,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,WAAW,EAGZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"high-level-operations.d.ts","sourceRoot":"","sources":["../../../src/databases/high-level-operations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EACV,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,WAAW,EAGZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,iBAAiB,EAAe,aAAa,EAAU,MAAM,aAAa,CAAC;AAMzF;;GAEG;AAEH,eAAO,MAAM,qBAAqB,GAChC,WAAW,QAAQ,EAAE,EACrB,OAAO,IAAI,EACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+HtC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;IACtC,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,oBAAoB,EAAE,CAAC;IACtC,UAAU,EAAE,kBAAkB,EAAE,CAAC;CAClC,CAAC;AAmCF,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,aAAa,EAAE,EACvB,kBAAkB,iBAAiB,EAAE,EACrC,QAAQ,YAAY,EAAE,EACtB,YAAY,UAAU,EACtB,qBAAoB,WAAgB,EACpC,gBAAe,oBAAoB,EAAO,EAC1C,aAAY,kBAAkB,EAAO,mCA4FpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identifierMapping.test.d.ts","sourceRoot":"","sources":["../../../src/databases/identifierMapping.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../../../src/databases/metadata/structure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAI1D;;GAEG;AAEH,eAAO,MAAM,oBAAoB,GAAU,IAAI,QAAQ
|
|
1
|
+
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../../../src/databases/metadata/structure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAI1D;;GAEG;AAEH,eAAO,MAAM,oBAAoB,GAAU,IAAI,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EACH,CAAC;AAErD,eAAO,MAAM,cAAc,GAAU,IAAI,QAAQ;;;;IAA2C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqlTypeUtils.d.ts","sourceRoot":"","sources":["../../../src/databases/sqlTypeUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"sqlTypeUtils.d.ts","sourceRoot":"","sources":["../../../src/databases/sqlTypeUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,KAAG,eAgEpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,KAAG,OAGhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-transformers.d.ts","sourceRoot":"","sources":["../../../../src/databases/transformers/data-transformers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAwB,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAK3F;;GAEG;AAEH,eAAO,MAAM,yBAAyB,GACpC,OAAO,KAAK,EACZ,YAAY,aAAa,CAAC,MAAM,CAAC,EACjC,IAAI,QAAQ,EACZ,kBAAgB;;;;;;;;;;;;;;;;;;CAgEjB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,OAAO,KAAK,EAAE,IAAI,QAAQ
|
|
1
|
+
{"version":3,"file":"data-transformers.d.ts","sourceRoot":"","sources":["../../../../src/databases/transformers/data-transformers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAwB,eAAe,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAK3F;;GAEG;AAEH,eAAO,MAAM,yBAAyB,GACpC,OAAO,KAAK,EACZ,YAAY,aAAa,CAAC,MAAM,CAAC,EACjC,IAAI,QAAQ,EACZ,kBAAgB;;;;;;;;;;;;;;;;;;CAgEjB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,OAAO,KAAK,EAAE,IAAI,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC5E,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,IAAI,eAAe,EAAE,IAAI,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genResolverName.d.ts","sourceRoot":"","sources":["../../../../src/databases/transformers/genResolverName.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"genResolverName.d.ts","sourceRoot":"","sources":["../../../../src/databases/transformers/genResolverName.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAC1B,QAAQ,MAAM,EACd,MAAM,MAAM,EACZ,MAAM,OAAO,GAAG,MAAM,GAAG,IAAI,EAC7B,cAAa,MAA0B,EACvC,SAAQ,MAAW,EACnB,SAAS,MAAM,WAShB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps a SQL identifier onto a legal GraphQL name (`/^[_A-Za-z][_0-9A-Za-z]*$/`).
|
|
3
|
+
*
|
|
4
|
+
* PostgreSQL, MySQL and SQL Server all accept identifiers GraphQL cannot spell —
|
|
5
|
+
* spaces, accents, punctuation — and an unmapped one produces an SDL document
|
|
6
|
+
* that fails to parse, taking the whole server down at boot.
|
|
7
|
+
*
|
|
8
|
+
* A name that is already legal is returned unchanged, so this cannot rename a
|
|
9
|
+
* field in any schema that boots today. Runs of illegal characters are not
|
|
10
|
+
* collapsed, and diacritics fold to their base letter rather than being dropped,
|
|
11
|
+
* both so that distinct identifiers stay distinct as often as possible.
|
|
12
|
+
*/
|
|
13
|
+
export declare const sanitizeGraphQLName: (name: string) => string;
|
|
14
|
+
/**
|
|
15
|
+
* The GraphQL field a column is exposed as. Introspected columns carry a
|
|
16
|
+
* `fieldName` computed once at parse time; virtual columns come from
|
|
17
|
+
* configuration and carry only a name, so they are sanitised on the spot.
|
|
18
|
+
*/
|
|
19
|
+
export declare const columnFieldName: (column: {
|
|
20
|
+
name: string;
|
|
21
|
+
fieldName?: string;
|
|
22
|
+
}) => string;
|
|
23
|
+
//# sourceMappingURL=graphqlName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphqlName.d.ts","sourceRoot":"","sources":["../../../../src/databases/transformers/graphqlName.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,MAOlD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,KAAG,MACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphqlName.test.d.ts","sourceRoot":"","sources":["../../../../src/databases/transformers/graphqlName.test.ts"],"names":[],"mappings":""}
|
|
@@ -247,7 +247,7 @@ export declare const env: {
|
|
|
247
247
|
handler?: import("../config").SubscriberHandler | undefined;
|
|
248
248
|
}>;
|
|
249
249
|
topics: Record<string, {
|
|
250
|
-
type: "
|
|
250
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
251
251
|
durable: boolean;
|
|
252
252
|
autoDelete: boolean;
|
|
253
253
|
}>;
|
|
@@ -317,7 +317,7 @@ export declare const env: {
|
|
|
317
317
|
handler?: import("../config").SubscriberHandler | undefined;
|
|
318
318
|
}>;
|
|
319
319
|
topics: Record<string, {
|
|
320
|
-
type: "
|
|
320
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
321
321
|
durable: boolean;
|
|
322
322
|
autoDelete: boolean;
|
|
323
323
|
}>;
|
package/dist/src/types/env.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
21
21
|
user: z.ZodString;
|
|
22
22
|
password: z.ZodString;
|
|
23
23
|
database: z.ZodString;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strict>;
|
|
25
25
|
fieldNaming: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
26
26
|
repository: z.ZodOptional<z.ZodCustom<import("../config").CustomRepositoryFactory<import("./zod/db").DatabaseType>, import("../config").CustomRepositoryFactory<import("./zod/db").DatabaseType>>>;
|
|
27
27
|
onConnect: z.ZodOptional<z.ZodCustom<import("../config").OnConnectHandler<import("./zod/db").DatabaseType>, import("../config").OnConnectHandler<import("./zod/db").DatabaseType>>>;
|
|
@@ -36,14 +36,14 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
36
36
|
function: z.ZodOptional<z.ZodString>;
|
|
37
37
|
params: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
38
|
expression: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$strict>>>>;
|
|
40
40
|
relationships: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
41
|
schema: z.ZodString;
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
columns: z.ZodArray<z.ZodObject<{
|
|
44
44
|
source: z.ZodString;
|
|
45
45
|
target: z.ZodString;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$strict>>;
|
|
47
47
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
48
|
source: z.ZodOptional<z.ZodString>;
|
|
49
49
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -59,13 +59,13 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
59
59
|
is_not_null: "is_not_null";
|
|
60
60
|
}>>>;
|
|
61
61
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
62
|
-
}, z.core.$
|
|
63
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strict>>>;
|
|
63
|
+
}, z.core.$strict>>>>;
|
|
64
64
|
description: z.ZodOptional<z.ZodString>;
|
|
65
65
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
66
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$strict>>>>>>>;
|
|
67
67
|
excludedTables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
68
|
-
}, z.core.$
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
69
|
connectionOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
70
70
|
max: z.ZodDefault<z.ZodNumber>;
|
|
71
71
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
@@ -74,20 +74,20 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
74
74
|
tls: z.ZodDefault<z.ZodBoolean>;
|
|
75
75
|
prepare: z.ZodDefault<z.ZodBoolean>;
|
|
76
76
|
bigint: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
78
|
pool: z.ZodDefault<z.ZodObject<{
|
|
79
79
|
max: z.ZodDefault<z.ZodNumber>;
|
|
80
80
|
min: z.ZodDefault<z.ZodNumber>;
|
|
81
81
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
82
|
-
}, z.core.$
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
83
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
84
84
|
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
85
85
|
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
86
86
|
trustServerCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
87
87
|
trustedConnection: z.ZodDefault<z.ZodBoolean>;
|
|
88
88
|
parseJSON: z.ZodDefault<z.ZodBoolean>;
|
|
89
|
-
}, z.core.$
|
|
90
|
-
}, z.core.$
|
|
89
|
+
}, z.core.$strict>]>>;
|
|
90
|
+
}, z.core.$strict>>>;
|
|
91
91
|
queues: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
92
92
|
name: z.ZodString;
|
|
93
93
|
autoSetup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -97,13 +97,13 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
97
97
|
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
98
98
|
multiplier: z.ZodDefault<z.ZodNumber>;
|
|
99
99
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
100
|
-
}, z.core.$
|
|
100
|
+
}, z.core.$strict>>;
|
|
101
101
|
publishers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
102
102
|
topic: z.ZodString;
|
|
103
103
|
routingKey: z.ZodOptional<z.ZodString>;
|
|
104
104
|
persistent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
105
105
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
106
|
-
}, z.core.$
|
|
106
|
+
}, z.core.$strict>>>>;
|
|
107
107
|
subscribers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
108
108
|
topic: z.ZodString;
|
|
109
109
|
pattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -112,17 +112,17 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
112
112
|
durable: z.ZodOptional<z.ZodBoolean>;
|
|
113
113
|
autoDelete: z.ZodOptional<z.ZodBoolean>;
|
|
114
114
|
handler: z.ZodOptional<z.ZodCustom<import("./zod/queue").SubscriberHandler, import("./zod/queue").SubscriberHandler>>;
|
|
115
|
-
}, z.core.$
|
|
115
|
+
}, z.core.$strict>>>>;
|
|
116
116
|
topics: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
117
117
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
118
|
-
headers: "headers";
|
|
119
118
|
topic: "topic";
|
|
119
|
+
headers: "headers";
|
|
120
120
|
direct: "direct";
|
|
121
121
|
fanout: "fanout";
|
|
122
122
|
}>>>;
|
|
123
123
|
durable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
124
124
|
autoDelete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
125
|
-
}, z.core.$
|
|
125
|
+
}, z.core.$strict>>>>;
|
|
126
126
|
type: z.ZodLiteral<"rabbitmq">;
|
|
127
127
|
connection: z.ZodUnion<readonly [z.ZodURL, z.ZodObject<{
|
|
128
128
|
hostname: z.ZodDefault<z.ZodString>;
|
|
@@ -130,8 +130,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
130
130
|
username: z.ZodOptional<z.ZodString>;
|
|
131
131
|
password: z.ZodOptional<z.ZodString>;
|
|
132
132
|
vhost: z.ZodDefault<z.ZodString>;
|
|
133
|
-
}, z.core.$
|
|
134
|
-
}, z.core.$
|
|
133
|
+
}, z.core.$strict>]>;
|
|
134
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
135
135
|
name: string;
|
|
136
136
|
autoSetup: boolean;
|
|
137
137
|
enabled: boolean;
|
|
@@ -151,7 +151,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
151
151
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
152
152
|
}>;
|
|
153
153
|
topics: Record<string, {
|
|
154
|
-
type: "
|
|
154
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
155
155
|
durable: boolean;
|
|
156
156
|
autoDelete: boolean;
|
|
157
157
|
}>;
|
|
@@ -221,7 +221,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
221
221
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
222
222
|
}>;
|
|
223
223
|
topics: Record<string, {
|
|
224
|
-
type: "
|
|
224
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
225
225
|
durable: boolean;
|
|
226
226
|
autoDelete: boolean;
|
|
227
227
|
}>;
|
|
@@ -248,13 +248,13 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
248
248
|
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
249
249
|
multiplier: z.ZodDefault<z.ZodNumber>;
|
|
250
250
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
251
|
-
}, z.core.$
|
|
251
|
+
}, z.core.$strict>>;
|
|
252
252
|
publishers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
253
253
|
topic: z.ZodString;
|
|
254
254
|
routingKey: z.ZodOptional<z.ZodString>;
|
|
255
255
|
persistent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
256
256
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
257
|
-
}, z.core.$
|
|
257
|
+
}, z.core.$strict>>>>;
|
|
258
258
|
subscribers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
259
259
|
topic: z.ZodString;
|
|
260
260
|
pattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -263,17 +263,17 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
263
263
|
durable: z.ZodOptional<z.ZodBoolean>;
|
|
264
264
|
autoDelete: z.ZodOptional<z.ZodBoolean>;
|
|
265
265
|
handler: z.ZodOptional<z.ZodCustom<import("./zod/queue").SubscriberHandler, import("./zod/queue").SubscriberHandler>>;
|
|
266
|
-
}, z.core.$
|
|
266
|
+
}, z.core.$strict>>>>;
|
|
267
267
|
topics: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
268
268
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
269
|
-
headers: "headers";
|
|
270
269
|
topic: "topic";
|
|
270
|
+
headers: "headers";
|
|
271
271
|
direct: "direct";
|
|
272
272
|
fanout: "fanout";
|
|
273
273
|
}>>>;
|
|
274
274
|
durable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
275
275
|
autoDelete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
276
|
-
}, z.core.$
|
|
276
|
+
}, z.core.$strict>>>>;
|
|
277
277
|
type: z.ZodLiteral<"kafka">;
|
|
278
278
|
connection: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
279
279
|
brokers: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
@@ -287,9 +287,9 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
287
287
|
}>>>;
|
|
288
288
|
username: z.ZodString;
|
|
289
289
|
password: z.ZodString;
|
|
290
|
-
}, z.core.$
|
|
291
|
-
}, z.core.$
|
|
292
|
-
}, z.core.$
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
}, z.core.$strict>]>;
|
|
292
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
293
293
|
name: string;
|
|
294
294
|
autoSetup: boolean;
|
|
295
295
|
enabled: boolean;
|
|
@@ -309,7 +309,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
309
309
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
310
310
|
}>;
|
|
311
311
|
topics: Record<string, {
|
|
312
|
-
type: "
|
|
312
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
313
313
|
durable: boolean;
|
|
314
314
|
autoDelete: boolean;
|
|
315
315
|
}>;
|
|
@@ -382,7 +382,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
382
382
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
383
383
|
}>;
|
|
384
384
|
topics: Record<string, {
|
|
385
|
-
type: "
|
|
385
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
386
386
|
durable: boolean;
|
|
387
387
|
autoDelete: boolean;
|
|
388
388
|
}>;
|
|
@@ -419,7 +419,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
419
419
|
catchErrors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
420
420
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
421
421
|
onTick: z.ZodOptional<z.ZodCustom<import("./zod/cron").TickCallback<Record<string, unknown>>, import("./zod/cron").TickCallback<Record<string, unknown>>>>;
|
|
422
|
-
}, z.core.$
|
|
422
|
+
}, z.core.$strict>>>>;
|
|
423
423
|
operations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
424
424
|
description: z.ZodOptional<z.ZodString>;
|
|
425
425
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -430,7 +430,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
430
430
|
init: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationInitHook<any>, import("./zod/operation").OperationInitHook<any>>>;
|
|
431
431
|
beforeRequest: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationBeforeRequestHook<any, any, any>, import("./zod/operation").OperationBeforeRequestHook<any, any, any>>>;
|
|
432
432
|
afterRequest: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationAfterRequestHook<any>, import("./zod/operation").OperationAfterRequestHook<any>>>;
|
|
433
|
-
}, z.core.$
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
434
|
rest: z.ZodOptional<z.ZodObject<{
|
|
435
435
|
path: z.ZodString;
|
|
436
436
|
method: z.ZodDefault<z.ZodEnum<{
|
|
@@ -443,11 +443,11 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
443
443
|
pathParams: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
444
444
|
queryParams: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
445
445
|
body: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
446
|
-
}, z.core.$
|
|
446
|
+
}, z.core.$strict>>;
|
|
447
447
|
graphql: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
448
448
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
449
449
|
name: z.ZodOptional<z.ZodString>;
|
|
450
|
-
}, z.core.$
|
|
450
|
+
}, z.core.$strict>>>;
|
|
451
451
|
cache: z.ZodOptional<z.ZodObject<{
|
|
452
452
|
max: z.ZodOptional<z.ZodNumber>;
|
|
453
453
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -456,8 +456,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
456
456
|
updateAgeOnGet: z.ZodOptional<z.ZodBoolean>;
|
|
457
457
|
updateAgeOnHas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
458
458
|
ttlAutopurge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
459
|
-
}, z.core.$
|
|
460
|
-
}, z.core.$
|
|
459
|
+
}, z.core.$strict>>;
|
|
460
|
+
}, z.core.$strict>>>>;
|
|
461
461
|
auth: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
462
462
|
enabled: z.ZodBoolean;
|
|
463
463
|
database: z.ZodString;
|
|
@@ -466,7 +466,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
466
466
|
permissions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodObject<{
|
|
467
467
|
tables: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodObject<{
|
|
468
468
|
columns: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>;
|
|
469
|
-
filter: z.ZodOptional<z.
|
|
469
|
+
filter: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
470
470
|
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
471
471
|
column: z.ZodString;
|
|
472
472
|
direction: z.ZodEnum<{
|
|
@@ -477,15 +477,15 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
477
477
|
DESC_NULLS_FIRST: "DESC_NULLS_FIRST";
|
|
478
478
|
DESC_NULLS_LAST: "DESC_NULLS_LAST";
|
|
479
479
|
}>;
|
|
480
|
-
}, z.core.$
|
|
481
|
-
}, z.core.$
|
|
480
|
+
}, z.core.$strict>>>;
|
|
481
|
+
}, z.core.$strict>]>>]>>>;
|
|
482
482
|
storedProcedures: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
483
483
|
queues: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
484
484
|
operations: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
485
485
|
remoteSchemas: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
486
486
|
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
487
|
-
}, z.core.$
|
|
488
|
-
}, z.core.$
|
|
487
|
+
}, z.core.$strict>>>>>;
|
|
488
|
+
}, z.core.$strict>>>, z.ZodTransform<{
|
|
489
489
|
permissions: {
|
|
490
490
|
[k: string]: {
|
|
491
491
|
tables: "ALL" | {
|
|
@@ -512,7 +512,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
512
512
|
permissions: Record<string, {
|
|
513
513
|
tables: string[] | "ALL" | Record<string, "ALL" | {
|
|
514
514
|
columns: string[] | "ALL";
|
|
515
|
-
filter?: Record<string,
|
|
515
|
+
filter?: Record<string, unknown> | undefined;
|
|
516
516
|
orderBy?: {
|
|
517
517
|
column: string;
|
|
518
518
|
direction: "ASC" | "DESC" | "ASC_NULLS_FIRST" | "ASC_NULLS_LAST" | "DESC_NULLS_FIRST" | "DESC_NULLS_LAST";
|
|
@@ -535,8 +535,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
535
535
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
536
536
|
introspection: z.ZodOptional<z.ZodObject<{
|
|
537
537
|
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
538
|
-
}, z.core.$
|
|
539
|
-
}, z.core.$
|
|
538
|
+
}, z.core.$strict>>;
|
|
539
|
+
}, z.core.$strict>>>>;
|
|
540
540
|
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
541
541
|
name: z.ZodString;
|
|
542
542
|
url: z.ZodOptional<z.ZodURL>;
|
|
@@ -547,16 +547,16 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
547
547
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
548
548
|
forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
549
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
550
|
-
}, z.core.$
|
|
550
|
+
}, z.core.$strict>>>>;
|
|
551
551
|
ai: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
552
552
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
553
553
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
554
554
|
endpoint: z.ZodDefault<z.ZodString>;
|
|
555
555
|
mcp: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
556
556
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
557
|
-
}, z.core.$
|
|
558
|
-
}, z.core.$
|
|
559
|
-
}, z.core.$
|
|
557
|
+
}, z.core.$strict>>>;
|
|
558
|
+
}, z.core.$strict>>>;
|
|
559
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
560
560
|
enabledDatabases: {
|
|
561
561
|
name: string;
|
|
562
562
|
enabled: boolean;
|
|
@@ -801,7 +801,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
801
801
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
802
802
|
}>;
|
|
803
803
|
topics: Record<string, {
|
|
804
|
-
type: "
|
|
804
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
805
805
|
durable: boolean;
|
|
806
806
|
autoDelete: boolean;
|
|
807
807
|
}>;
|
|
@@ -871,7 +871,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
871
871
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
872
872
|
}>;
|
|
873
873
|
topics: Record<string, {
|
|
874
|
-
type: "
|
|
874
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
875
875
|
durable: boolean;
|
|
876
876
|
autoDelete: boolean;
|
|
877
877
|
}>;
|
|
@@ -1095,7 +1095,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1095
1095
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
1096
1096
|
}>;
|
|
1097
1097
|
topics: Record<string, {
|
|
1098
|
-
type: "
|
|
1098
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
1099
1099
|
durable: boolean;
|
|
1100
1100
|
autoDelete: boolean;
|
|
1101
1101
|
}>;
|
|
@@ -1165,7 +1165,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1165
1165
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
1166
1166
|
}>;
|
|
1167
1167
|
topics: Record<string, {
|
|
1168
|
-
type: "
|
|
1168
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
1169
1169
|
durable: boolean;
|
|
1170
1170
|
autoDelete: boolean;
|
|
1171
1171
|
}>;
|
|
@@ -1613,7 +1613,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1613
1613
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
1614
1614
|
}>;
|
|
1615
1615
|
topics: Record<string, {
|
|
1616
|
-
type: "
|
|
1616
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
1617
1617
|
durable: boolean;
|
|
1618
1618
|
autoDelete: boolean;
|
|
1619
1619
|
}>;
|
|
@@ -1683,7 +1683,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1683
1683
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
1684
1684
|
}>;
|
|
1685
1685
|
topics: Record<string, {
|
|
1686
|
-
type: "
|
|
1686
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
1687
1687
|
durable: boolean;
|
|
1688
1688
|
autoDelete: boolean;
|
|
1689
1689
|
}>;
|
|
@@ -2155,7 +2155,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
2155
2155
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
2156
2156
|
}>;
|
|
2157
2157
|
topics: Record<string, {
|
|
2158
|
-
type: "
|
|
2158
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
2159
2159
|
durable: boolean;
|
|
2160
2160
|
autoDelete: boolean;
|
|
2161
2161
|
}>;
|
|
@@ -2225,7 +2225,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
2225
2225
|
handler?: import("./zod/queue").SubscriberHandler | undefined;
|
|
2226
2226
|
}>;
|
|
2227
2227
|
topics: Record<string, {
|
|
2228
|
-
type: "
|
|
2228
|
+
type: "topic" | "headers" | "direct" | "fanout";
|
|
2229
2229
|
durable: boolean;
|
|
2230
2230
|
autoDelete: boolean;
|
|
2231
2231
|
}>;
|