@mrxsys/mrx-core 2.4.0 → 2.5.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/CHANGELOG.md +329 -31
- package/README.md +3 -3
- package/dist/chunk-1a3wj3m1.js +272 -0
- package/dist/chunk-370444pc.js +43 -0
- package/dist/chunk-5qtpggzv.js +38 -0
- package/dist/chunk-84mqvfsk.js +69 -0
- package/dist/chunk-cq973ydc.js +82 -0
- package/dist/chunk-f5z7x01b.js +352 -0
- package/dist/chunk-pc66jgqv.js +220 -0
- package/dist/chunk-s07amdhx.js +77 -0
- package/dist/chunk-v8v7982b.js +58 -0
- package/dist/chunk-vknq69e0.js +23 -0
- package/dist/chunk-yvyahr2h.js +40 -0
- package/dist/errors/baseError.d.ts +9 -0
- package/dist/errors/enums/httpErrorStatusCodes.d.ts +42 -0
- package/dist/errors/httpError.d.ts +14 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +11 -0
- package/dist/errors/types/baseErrorOptions.d.ts +15 -0
- package/dist/errors/types/httpErrorOptions.d.ts +13 -0
- package/dist/errors/types/index.d.ts +2 -0
- package/dist/modules/data/data.d.ts +115 -0
- package/dist/modules/data/enums/dataErrorKeys.d.ts +3 -0
- package/dist/modules/data/index.d.ts +1 -0
- package/dist/modules/data/index.js +16 -0
- package/dist/modules/data/transformers/camelCase.d.ts +25 -0
- package/dist/modules/data/transformers/index.d.ts +4 -0
- package/dist/modules/data/transformers/index.js +32 -0
- package/dist/modules/data/transformers/kebabCase.d.ts +25 -0
- package/dist/modules/data/transformers/pascalCase.d.ts +25 -0
- package/dist/modules/data/transformers/snakeCase.d.ts +25 -0
- package/dist/modules/data/types/camelCase.d.ts +1 -0
- package/dist/modules/data/types/caseTransformer.d.ts +13 -0
- package/dist/modules/data/types/index.d.ts +10 -0
- package/dist/modules/data/types/kebabCase.d.ts +1 -0
- package/dist/modules/data/types/pascalCase.d.ts +2 -0
- package/dist/modules/data/types/snakeCase.d.ts +1 -0
- package/dist/modules/data/types/transformKeysCamelCase.d.ts +4 -0
- package/dist/modules/data/types/transformKeysKebabCase.d.ts +4 -0
- package/dist/modules/data/types/transformKeysPascalCase.d.ts +4 -0
- package/dist/modules/data/types/transformKeysSnakeCase.d.ts +4 -0
- package/dist/modules/data/types/transformObjectKeys.d.ts +9 -0
- package/dist/modules/database/enums/databaseErrorKeys.d.ts +28 -0
- package/dist/modules/database/enums/mssqlErrorCode.d.ts +25 -0
- package/dist/modules/database/events/index.d.ts +2 -0
- package/dist/modules/database/events/mssqlEventMap.d.ts +6 -0
- package/dist/modules/database/events/tableEventMap.d.ts +7 -0
- package/dist/modules/database/index.d.ts +2 -0
- package/dist/modules/database/index.js +14 -0
- package/dist/{database → modules/database}/mssql.d.ts +21 -25
- package/dist/{database → modules/database}/table.d.ts +6 -6
- package/dist/modules/database/types/index.d.ts +3 -0
- package/dist/{database → modules/database}/types/mssqlDatabaseOption.d.ts +16 -37
- package/dist/modules/database/types/mssqlEventLog.d.ts +14 -0
- package/dist/modules/database/types/queryContext.d.ts +11 -0
- package/dist/modules/elysia/crud/crud.d.ts +46 -0
- package/dist/modules/elysia/crud/index.d.ts +1 -0
- package/dist/modules/elysia/crud/index.js +299 -0
- package/dist/modules/elysia/crud/types/crudOperationBaseOptions.d.ts +6 -0
- package/dist/modules/elysia/crud/types/crudOperationCountOptions.d.ts +2 -0
- package/dist/modules/elysia/crud/types/crudOperationDeleteOneOptions.d.ts +2 -0
- package/dist/modules/elysia/crud/types/crudOperationDeleteOptions.d.ts +2 -0
- package/dist/modules/elysia/crud/types/crudOperationFindOneOptions.d.ts +2 -0
- package/dist/modules/elysia/crud/types/crudOperationFindOptions.d.ts +2 -0
- package/dist/modules/elysia/crud/types/crudOperationInsertOptions.d.ts +2 -0
- package/dist/modules/elysia/crud/types/crudOperationUpdateOneOptions.d.ts +2 -0
- package/dist/modules/elysia/crud/types/crudOperationUpdateOptions.d.ts +2 -0
- package/dist/modules/elysia/crud/types/crudOperationsOptions.d.ts +18 -0
- package/dist/modules/elysia/crud/types/crudOptions.d.ts +23 -0
- package/dist/modules/elysia/crud/types/index.d.ts +11 -0
- package/dist/modules/elysia/crudSchema/crudSchema.d.ts +18 -0
- package/dist/modules/elysia/crudSchema/index.d.ts +1 -0
- package/dist/modules/elysia/crudSchema/index.js +10 -0
- package/dist/modules/elysia/crudSchema/types/adaptiveWhereClauseSchema.d.ts +31 -0
- package/dist/modules/elysia/crudSchema/types/crudModelsType.d.ts +14 -0
- package/dist/modules/elysia/crudSchema/types/crudSchemaOperations.d.ts +10 -0
- package/dist/modules/elysia/crudSchema/types/crudSchemaOptions.d.ts +13 -0
- package/dist/modules/elysia/crudSchema/types/index.d.ts +8 -0
- package/dist/modules/elysia/crudSchema/types/orderSchema.d.ts +11 -0
- package/dist/modules/elysia/crudSchema/types/qSchema.d.ts +15 -0
- package/dist/modules/elysia/crudSchema/types/queryOptionsBuilderOptions.d.ts +11 -0
- package/dist/modules/elysia/crudSchema/types/selectedFieldSchema.d.ts +6 -0
- package/dist/modules/elysia/crudSchema/utils/createAdaptiveWhereClauseSchema.d.ts +17 -0
- package/dist/modules/elysia/crudSchema/utils/createCountResponse200Schema.d.ts +11 -0
- package/dist/modules/elysia/crudSchema/utils/createCountSchema.d.ts +16 -0
- package/dist/modules/elysia/crudSchema/utils/createDeleteSchema.d.ts +18 -0
- package/dist/modules/elysia/crudSchema/utils/createFiltersSchema.d.ts +17 -0
- package/dist/modules/elysia/crudSchema/utils/createFindSchema.d.ts +22 -0
- package/dist/modules/elysia/crudSchema/utils/createIdParamSchema.d.ts +4 -0
- package/dist/modules/elysia/crudSchema/utils/createInsertSchema.d.ts +8 -0
- package/dist/modules/elysia/crudSchema/utils/createOrderSchema.d.ts +12 -0
- package/dist/modules/elysia/crudSchema/utils/createPropertiesSchema.d.ts +12 -0
- package/dist/modules/elysia/crudSchema/utils/createQSchema.d.ts +12 -0
- package/dist/modules/elysia/crudSchema/utils/createResponse200Schema.d.ts +5 -0
- package/dist/modules/elysia/crudSchema/utils/createSelectedFieldsSchema.d.ts +12 -0
- package/dist/modules/elysia/crudSchema/utils/createUpdateOneSchema.d.ts +4 -0
- package/dist/modules/elysia/crudSchema/utils/createUpdateSchema.d.ts +10 -0
- package/dist/modules/elysia/crudSchema/utils/index.d.ts +15 -0
- package/dist/modules/elysia/crudSchema/utils/index.js +37 -0
- package/dist/modules/elysia/crudSchema/utils/isDateFromElysiaTypeBox.d.ts +2 -0
- package/dist/modules/elysia/dbResolver/dbResolver.d.ts +17 -0
- package/dist/modules/elysia/dbResolver/enums/dbResolverErrorKeys.d.ts +3 -0
- package/dist/modules/elysia/dbResolver/index.d.ts +1 -0
- package/dist/modules/elysia/dbResolver/index.js +14 -0
- package/dist/modules/elysia/dbResolver/types/dynamicDbOptions.d.ts +7 -0
- package/dist/modules/elysia/dbResolver/types/index.d.ts +1 -0
- package/dist/modules/elysia/error/error.d.ts +34 -0
- package/dist/modules/elysia/error/index.d.ts +1 -0
- package/dist/modules/elysia/error/index.js +58 -0
- package/dist/modules/elysia/jwt/enums/jwtErrorKeys.d.ts +4 -0
- package/dist/modules/elysia/jwt/index.d.ts +1 -0
- package/dist/modules/elysia/jwt/index.js +81 -0
- package/dist/modules/elysia/jwt/jwt.d.ts +119 -0
- package/dist/modules/elysia/jwt/types/index.d.ts +1 -0
- package/dist/modules/elysia/jwt/types/jwtOptions.d.ts +98 -0
- package/dist/modules/elysia/microservice/index.d.ts +1 -0
- package/dist/modules/elysia/microservice/index.js +96 -0
- package/dist/{elysia → modules/elysia/microservice}/microservice.d.ts +1 -1
- package/dist/modules/elysia/ratelimit/enums/ratelimitErrorKeys.d.ts +3 -0
- package/dist/modules/elysia/ratelimit/index.d.ts +1 -0
- package/dist/modules/elysia/ratelimit/index.js +55 -0
- package/dist/{elysia → modules/elysia/ratelimit}/ratelimit.d.ts +3 -13
- package/dist/modules/elysia/ratelimit/types/index.d.ts +1 -0
- package/dist/{elysia → modules/elysia/ratelimit}/types/rateLimitOptions.d.ts +6 -16
- package/dist/modules/logger/enums/loggerErrorKeys.d.ts +6 -0
- package/dist/modules/logger/events/index.d.ts +1 -0
- package/dist/modules/logger/events/loggerEvents.d.ts +11 -0
- package/dist/modules/logger/index.d.ts +1 -0
- package/dist/modules/logger/index.js +139 -0
- package/dist/modules/logger/logger.d.ts +189 -0
- package/dist/{logger → modules/logger}/strategies/consoleLogger.d.ts +4 -4
- package/dist/{logger → modules/logger}/strategies/fileLogger.d.ts +4 -4
- package/dist/modules/logger/strategies/index.d.ts +2 -0
- package/dist/modules/logger/strategies/index.js +44 -0
- package/dist/modules/logger/types/index.d.ts +6 -0
- package/dist/modules/logger/types/index.js +1 -0
- package/dist/{logger → modules/logger}/types/logStreamChunk.d.ts +4 -4
- package/dist/{logger → modules/logger}/types/loggerStrategy.d.ts +1 -1
- package/dist/modules/mailer/enums/mailerErrorKeys.d.ts +5 -0
- package/dist/modules/mailer/index.d.ts +1 -0
- package/dist/modules/mailer/index.js +64 -0
- package/dist/{mailer → modules/mailer}/smtp.d.ts +6 -6
- package/dist/modules/mailer/types/index.d.ts +3 -0
- package/dist/modules/mailer/types/index.js +1 -0
- package/dist/{mailer → modules/mailer}/types/smtpCredentials.d.ts +2 -2
- package/dist/{mailer → modules/mailer}/types/smtpOptions.d.ts +5 -5
- package/dist/{mailer → modules/mailer}/types/smtpPoolOptions.d.ts +1 -1
- package/dist/modules/repository/index.d.ts +1 -0
- package/dist/modules/repository/index.js +10 -0
- package/dist/modules/repository/repository.d.ts +421 -0
- package/dist/modules/repository/types/adaptiveWhereClause.d.ts +30 -0
- package/dist/modules/repository/types/filter.d.ts +43 -0
- package/dist/modules/repository/types/index.d.ts +8 -0
- package/dist/modules/repository/types/index.js +1 -0
- package/dist/modules/repository/types/orderByItem.d.ts +42 -0
- package/dist/modules/repository/types/queryOptions.d.ts +36 -0
- package/dist/{repository → modules/repository}/types/queryOptionsExtendPagination.d.ts +2 -2
- package/dist/{repository → modules/repository}/types/queryOptionsExtendStream.d.ts +1 -1
- package/dist/modules/repository/types/selectedFields.d.ts +37 -0
- package/dist/modules/singletonManager/enums/singletonManagerErrorKeys.d.ts +4 -0
- package/dist/modules/singletonManager/index.d.ts +1 -0
- package/dist/modules/singletonManager/index.js +8 -0
- package/dist/modules/singletonManager/singletonManager.d.ts +75 -0
- package/dist/modules/typedEventEmitter/index.d.ts +1 -0
- package/dist/modules/typedEventEmitter/index.js +7 -0
- package/dist/{typedEventEmitter → modules/typedEventEmitter}/typedEventEmitter.d.ts +33 -11
- package/dist/modules/typedEventEmitter/types/index.d.ts +1 -0
- package/dist/modules/typedEventEmitter/types/index.js +1 -0
- package/dist/utils/enums/utilsErrorKeys.d.ts +3 -0
- package/dist/utils/env.d.ts +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +32 -1
- package/dist/utils/isDateString.d.ts +16 -0
- package/dist/utils/stream.d.ts +12 -1
- package/dist/utils/types/index.d.ts +1 -1
- package/dist/utils/types/streamWithAsyncIterable.d.ts +12 -5
- package/package.json +157 -128
- package/dist/chunk-1c7w5cx7.js +0 -3
- package/dist/chunk-40pg2cqx.js +0 -2
- package/dist/chunk-4v4tp5qj.js +0 -2
- package/dist/chunk-4w7nd4nw.js +0 -2
- package/dist/chunk-5nvsx7md.js +0 -2
- package/dist/chunk-89mnpfvy.js +0 -2
- package/dist/chunk-91srr77d.js +0 -2
- package/dist/chunk-9hj714bv.js +0 -2
- package/dist/chunk-9rss6865.js +0 -2
- package/dist/chunk-df9xr1f5.js +0 -2
- package/dist/chunk-dq00mfya.js +0 -2
- package/dist/chunk-fnb68m68.js +0 -2
- package/dist/chunk-g6a16nyh.js +0 -2
- package/dist/chunk-gtgpa8nc.js +0 -2
- package/dist/chunk-gxjax5n3.js +0 -2
- package/dist/chunk-h9er1sh5.js +0 -2
- package/dist/chunk-mwpajm9x.js +0 -2
- package/dist/chunk-n5w9cwwg.js +0 -2
- package/dist/chunk-pt7wrvtr.js +0 -2
- package/dist/chunk-qndyhwdn.js +0 -2
- package/dist/chunk-v5dfx8mh.js +0 -2
- package/dist/chunk-wgq0yyqw.js +0 -2
- package/dist/chunk-wtfcgg9s.js +0 -2
- package/dist/chunk-z00b1r18.js +0 -2
- package/dist/data/data.d.ts +0 -99
- package/dist/data/enums/dataErrorKeys.d.ts +0 -7
- package/dist/data/enums/index.d.ts +0 -1
- package/dist/data/enums/index.js +0 -2
- package/dist/data/index.d.ts +0 -1
- package/dist/data/index.js +0 -2
- package/dist/data/transformers/camelCase.d.ts +0 -25
- package/dist/data/transformers/index.d.ts +0 -4
- package/dist/data/transformers/index.js +0 -2
- package/dist/data/transformers/kebabCase.d.ts +0 -25
- package/dist/data/transformers/pascalCase.d.ts +0 -25
- package/dist/data/transformers/snakeCase.d.ts +0 -25
- package/dist/data/types/index.d.ts +0 -1
- package/dist/data/types/keyTransformer.d.ts +0 -11
- package/dist/database/enums/databaseErrorKeys.d.ts +0 -52
- package/dist/database/enums/index.d.ts +0 -2
- package/dist/database/enums/index.js +0 -2
- package/dist/database/enums/mssqlErrorCode.d.ts +0 -25
- package/dist/database/events/index.d.ts +0 -2
- package/dist/database/events/mssqlEventMap.d.ts +0 -6
- package/dist/database/events/tableEventMap.d.ts +0 -7
- package/dist/database/index.d.ts +0 -2
- package/dist/database/index.js +0 -2
- package/dist/database/types/index.d.ts +0 -3
- package/dist/database/types/mssqlEventLog.d.ts +0 -29
- package/dist/database/types/queryContext.d.ts +0 -11
- package/dist/elysia/advancedSearch.d.ts +0 -460
- package/dist/elysia/crud.d.ts +0 -609
- package/dist/elysia/dynamicDatabaseSelector.d.ts +0 -352
- package/dist/elysia/enums/elysiaErrorKeys.d.ts +0 -12
- package/dist/elysia/enums/httpStatusCode.d.ts +0 -241
- package/dist/elysia/enums/index.d.ts +0 -2
- package/dist/elysia/enums/index.js +0 -2
- package/dist/elysia/error.d.ts +0 -46
- package/dist/elysia/index.d.ts +0 -7
- package/dist/elysia/index.js +0 -2
- package/dist/elysia/jwt.d.ts +0 -46
- package/dist/elysia/schemas/index.d.ts +0 -2
- package/dist/elysia/schemas/index.js +0 -2
- package/dist/elysia/types/crudOptions.d.ts +0 -126
- package/dist/elysia/types/crudRoutes.d.ts +0 -2
- package/dist/elysia/types/dynamicDatabaseSelectorPluginOptions.d.ts +0 -30
- package/dist/elysia/types/index.d.ts +0 -5
- package/dist/elysia/types/jwtOptions.d.ts +0 -92
- package/dist/error/coreError.d.ts +0 -89
- package/dist/error/index.d.ts +0 -1
- package/dist/error/index.js +0 -2
- package/dist/error/types/coreErrorOptions.d.ts +0 -21
- package/dist/error/types/index.d.ts +0 -1
- package/dist/index.d.ts +0 -68
- package/dist/index.js +0 -2
- package/dist/logger/enums/index.d.ts +0 -1
- package/dist/logger/enums/index.js +0 -2
- package/dist/logger/enums/loggerErrorKeys.d.ts +0 -6
- package/dist/logger/events/index.d.ts +0 -1
- package/dist/logger/events/loggerEvents.d.ts +0 -4
- package/dist/logger/index.d.ts +0 -1
- package/dist/logger/index.js +0 -2
- package/dist/logger/logger.d.ts +0 -173
- package/dist/logger/strategies/index.d.ts +0 -2
- package/dist/logger/strategies/index.js +0 -2
- package/dist/logger/types/index.d.ts +0 -6
- package/dist/mailer/enums/index.d.ts +0 -1
- package/dist/mailer/enums/index.js +0 -2
- package/dist/mailer/enums/mailerErrorKeys.d.ts +0 -8
- package/dist/mailer/index.d.ts +0 -1
- package/dist/mailer/index.js +0 -2
- package/dist/mailer/types/index.d.ts +0 -3
- package/dist/repository/index.d.ts +0 -1
- package/dist/repository/index.js +0 -2
- package/dist/repository/repository.d.ts +0 -378
- package/dist/repository/types/advancedSearch.d.ts +0 -47
- package/dist/repository/types/index.d.ts +0 -8
- package/dist/repository/types/orderBy.d.ts +0 -21
- package/dist/repository/types/queryOptions.d.ts +0 -33
- package/dist/repository/types/selectedFields.d.ts +0 -16
- package/dist/repository/types/whereClause.d.ts +0 -15
- package/dist/singletonManager/enums/index.d.ts +0 -1
- package/dist/singletonManager/enums/index.js +0 -2
- package/dist/singletonManager/enums/singletonManagerErrorKeys.d.ts +0 -7
- package/dist/singletonManager/index.d.ts +0 -1
- package/dist/singletonManager/index.js +0 -2
- package/dist/singletonManager/singletonManager.d.ts +0 -112
- package/dist/store/index.d.ts +0 -1
- package/dist/store/index.js +0 -2
- package/dist/store/redis.d.ts +0 -6
- package/dist/typedEventEmitter/index.d.ts +0 -1
- package/dist/typedEventEmitter/index.js +0 -2
- package/dist/typedEventEmitter/types/index.d.ts +0 -1
- package/dist/utils/enums/index.d.ts +0 -1
- package/dist/utils/enums/index.js +0 -2
- package/dist/utils/enums/utilErrorKeys.d.ts +0 -4
- package/dist/utils/isIsoDateString.d.ts +0 -1
- /package/dist/{data → errors}/types/index.js +0 -0
- /package/dist/{database/events → modules/data/types}/index.js +0 -0
- /package/dist/{database/types → modules/database/events}/index.js +0 -0
- /package/dist/{elysia → modules/database}/types/index.js +0 -0
- /package/dist/{error → modules/elysia/crud}/types/index.js +0 -0
- /package/dist/{logger/events → modules/elysia/crudSchema/types}/index.js +0 -0
- /package/dist/{logger → modules/elysia/dbResolver}/types/index.js +0 -0
- /package/dist/{mailer → modules/elysia/jwt}/types/index.js +0 -0
- /package/dist/{elysia → modules/elysia/microservice}/schemas/info.d.ts +0 -0
- /package/dist/{elysia → modules/elysia/microservice}/schemas/ping.d.ts +0 -0
- /package/dist/{repository → modules/elysia/ratelimit}/types/index.js +0 -0
- /package/dist/{typedEventEmitter/types → modules/logger/events}/index.js +0 -0
- /package/dist/{logger → modules/logger}/types/bodiesIntersection.d.ts +0 -0
- /package/dist/{logger → modules/logger}/types/logLevels.d.ts +0 -0
- /package/dist/{logger → modules/logger}/types/strategyBody.d.ts +0 -0
- /package/dist/{logger → modules/logger}/types/strategyMap.d.ts +0 -0
- /package/dist/{repository → modules/repository}/types/transaction.d.ts +0 -0
- /package/dist/{typedEventEmitter → modules/typedEventEmitter}/types/eventMap.d.ts +0 -0
package/dist/chunk-pt7wrvtr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as k}from"./chunk-gxjax5n3.js";import{A as B,C as D,E as M,F as m,G as o,H as n,I as v,J as g,K as E,u as y,v as P,w as c,x as f,z as q}from"./chunk-df9xr1f5.js";import{Y as A,Z as p}from"./chunk-v5dfx8mh.js";import{$ as cG,_ as pG}from"./chunk-mwpajm9x.js";import{ca as gG}from"./chunk-9rss6865.js";import{ma as hG}from"./chunk-n5w9cwwg.js";import{ra as L}from"./chunk-z00b1r18.js";import{ua as iG}from"./chunk-4w7nd4nw.js";var O={};iG(O,{TypeGuardUnknownTypeError:()=>i,IsVoid:()=>SG,IsUnsafe:()=>OG,IsUnknown:()=>NG,IsUnionLiteral:()=>ZY,IsUnion:()=>h,IsUndefined:()=>xG,IsUint8Array:()=>fG,IsTuple:()=>KG,IsTransform:()=>RG,IsThis:()=>wG,IsTemplateLiteral:()=>EG,IsSymbol:()=>kG,IsString:()=>PG,IsSchema:()=>J,IsRegExp:()=>qG,IsRef:()=>CG,IsRecursive:()=>YY,IsRecord:()=>TG,IsReadonly:()=>lG,IsProperties:()=>N,IsPromise:()=>AG,IsOptional:()=>aG,IsObject:()=>MG,IsNumber:()=>LG,IsNull:()=>BG,IsNot:()=>jG,IsNever:()=>DG,IsMappedResult:()=>JG,IsMappedKey:()=>QG,IsLiteralValue:()=>FG,IsLiteralString:()=>WG,IsLiteralNumber:()=>_G,IsLiteralBoolean:()=>GY,IsLiteral:()=>K,IsKindOf:()=>$,IsKind:()=>yG,IsIterator:()=>UG,IsIntersect:()=>HG,IsInteger:()=>XG,IsImport:()=>eG,IsFunction:()=>$G,IsDate:()=>VG,IsConstructor:()=>zG,IsComputed:()=>ZG,IsBoolean:()=>YG,IsBigInt:()=>GG,IsAsyncIterator:()=>e,IsArray:()=>a,IsArgument:()=>l,IsAny:()=>u});class i extends m{}var sG=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function r(G){try{return new RegExp(G),!0}catch{return!1}}function b(G){if(!D(G))return!1;for(let Y=0;Y<G.length;Y++){let Z=G.charCodeAt(Y);if(Z>=7&&Z<=13||Z===27||Z===127)return!1}return!0}function s(G){return I(G)||J(G)}function R(G){return M(G)||c(G)}function W(G){return M(G)||q(G)}function I(G){return M(G)||f(G)}function U(G){return M(G)||D(G)}function tG(G){return M(G)||D(G)&&b(G)&&r(G)}function uG(G){return M(G)||D(G)&&b(G)}function t(G){return M(G)||J(G)}function lG(G){return B(G)&&G[n]==="Readonly"}function aG(G){return B(G)&&G[v]==="Optional"}function u(G){return $(G,"Any")&&U(G.$id)}function l(G){return $(G,"Argument")&&q(G.index)}function a(G){return $(G,"Array")&&G.type==="array"&&U(G.$id)&&J(G.items)&&W(G.minItems)&&W(G.maxItems)&&I(G.uniqueItems)&&t(G.contains)&&W(G.minContains)&&W(G.maxContains)}function e(G){return $(G,"AsyncIterator")&&G.type==="AsyncIterator"&&U(G.$id)&&J(G.items)}function GG(G){return $(G,"BigInt")&&G.type==="bigint"&&U(G.$id)&&R(G.exclusiveMaximum)&&R(G.exclusiveMinimum)&&R(G.maximum)&&R(G.minimum)&&R(G.multipleOf)}function YG(G){return $(G,"Boolean")&&G.type==="boolean"&&U(G.$id)}function ZG(G){return $(G,"Computed")&&D(G.target)&&P(G.parameters)&&G.parameters.every((Y)=>J(Y))}function zG(G){return $(G,"Constructor")&&G.type==="Constructor"&&U(G.$id)&&P(G.parameters)&&G.parameters.every((Y)=>J(Y))&&J(G.returns)}function VG(G){return $(G,"Date")&&G.type==="Date"&&U(G.$id)&&W(G.exclusiveMaximumTimestamp)&&W(G.exclusiveMinimumTimestamp)&&W(G.maximumTimestamp)&&W(G.minimumTimestamp)&&W(G.multipleOfTimestamp)}function $G(G){return $(G,"Function")&&G.type==="Function"&&U(G.$id)&&P(G.parameters)&&G.parameters.every((Y)=>J(Y))&&J(G.returns)}function eG(G){return $(G,"Import")&&y(G,"$defs")&&B(G.$defs)&&N(G.$defs)&&y(G,"$ref")&&D(G.$ref)&&G.$ref in G.$defs}function XG(G){return $(G,"Integer")&&G.type==="integer"&&U(G.$id)&&W(G.exclusiveMaximum)&&W(G.exclusiveMinimum)&&W(G.maximum)&&W(G.minimum)&&W(G.multipleOf)}function N(G){return B(G)&&Object.entries(G).every(([Y,Z])=>b(Y)&&J(Z))}function HG(G){return $(G,"Intersect")&&(D(G.type)&&G.type!=="object"?!1:!0)&&P(G.allOf)&&G.allOf.every((Y)=>J(Y)&&!RG(Y))&&U(G.type)&&(I(G.unevaluatedProperties)||t(G.unevaluatedProperties))&&U(G.$id)}function UG(G){return $(G,"Iterator")&&G.type==="Iterator"&&U(G.$id)&&J(G.items)}function $(G,Y){return B(G)&&E in G&&G[E]===Y}function WG(G){return K(G)&&D(G.const)}function _G(G){return K(G)&&q(G.const)}function GY(G){return K(G)&&f(G.const)}function K(G){return $(G,"Literal")&&U(G.$id)&&FG(G.const)}function FG(G){return f(G)||q(G)||D(G)}function QG(G){return $(G,"MappedKey")&&P(G.keys)&&G.keys.every((Y)=>q(Y)||D(Y))}function JG(G){return $(G,"MappedResult")&&N(G.properties)}function DG(G){return $(G,"Never")&&B(G.not)&&Object.getOwnPropertyNames(G.not).length===0}function jG(G){return $(G,"Not")&&J(G.not)}function BG(G){return $(G,"Null")&&G.type==="null"&&U(G.$id)}function LG(G){return $(G,"Number")&&G.type==="number"&&U(G.$id)&&W(G.exclusiveMaximum)&&W(G.exclusiveMinimum)&&W(G.maximum)&&W(G.minimum)&&W(G.multipleOf)}function MG(G){return $(G,"Object")&&G.type==="object"&&U(G.$id)&&N(G.properties)&&s(G.additionalProperties)&&W(G.minProperties)&&W(G.maxProperties)}function AG(G){return $(G,"Promise")&&G.type==="Promise"&&U(G.$id)&&J(G.item)}function TG(G){return $(G,"Record")&&G.type==="object"&&U(G.$id)&&s(G.additionalProperties)&&B(G.patternProperties)&&((Y)=>{let Z=Object.getOwnPropertyNames(Y.patternProperties);return Z.length===1&&r(Z[0])&&B(Y.patternProperties)&&J(Y.patternProperties[Z[0]])})(G)}function YY(G){return B(G)&&g in G&&G[g]==="Recursive"}function CG(G){return $(G,"Ref")&&U(G.$id)&&D(G.$ref)}function qG(G){return $(G,"RegExp")&&U(G.$id)&&D(G.source)&&D(G.flags)&&W(G.maxLength)&&W(G.minLength)}function PG(G){return $(G,"String")&&G.type==="string"&&U(G.$id)&&W(G.minLength)&&W(G.maxLength)&&tG(G.pattern)&&uG(G.format)}function kG(G){return $(G,"Symbol")&&G.type==="symbol"&&U(G.$id)}function EG(G){return $(G,"TemplateLiteral")&&G.type==="string"&&D(G.pattern)&&G.pattern[0]==="^"&&G.pattern[G.pattern.length-1]==="$"}function wG(G){return $(G,"This")&&U(G.$id)&&D(G.$ref)}function RG(G){return B(G)&&o in G}function KG(G){return $(G,"Tuple")&&G.type==="array"&&U(G.$id)&&q(G.minItems)&&q(G.maxItems)&&G.minItems===G.maxItems&&(M(G.items)&&M(G.additionalItems)&&G.minItems===0||P(G.items)&&G.items.every((Y)=>J(Y)))}function xG(G){return $(G,"Undefined")&&G.type==="undefined"&&U(G.$id)}function ZY(G){return h(G)&&G.anyOf.every((Y)=>WG(Y)||_G(Y))}function h(G){return $(G,"Union")&&U(G.$id)&&B(G)&&P(G.anyOf)&&G.anyOf.every((Y)=>J(Y))}function fG(G){return $(G,"Uint8Array")&&G.type==="Uint8Array"&&U(G.$id)&&W(G.minByteLength)&&W(G.maxByteLength)}function NG(G){return $(G,"Unknown")&&U(G.$id)}function OG(G){return $(G,"Unsafe")}function SG(G){return $(G,"Void")&&G.type==="void"&&U(G.$id)}function yG(G){return B(G)&&E in G&&D(G[E])&&!sG.includes(G[E])}function J(G){return B(G)&&(u(G)||l(G)||a(G)||YG(G)||GG(G)||e(G)||ZG(G)||zG(G)||VG(G)||$G(G)||XG(G)||HG(G)||UG(G)||K(G)||QG(G)||JG(G)||DG(G)||jG(G)||BG(G)||LG(G)||MG(G)||AG(G)||TG(G)||CG(G)||qG(G)||PG(G)||kG(G)||EG(G)||wG(G)||KG(G)||xG(G)||h(G)||fG(G)||NG(G)||OG(G)||SG(G)||yG(G))}import{Elysia as zY,t as H}from"elysia";var VY=(G)=>H.Object({$eq:G,$neq:G,...!O.IsBoolean(G)?{$lt:G,$lte:G,$gt:G,$gte:G,$in:H.Array(G),$nin:H.Array(G),$between:H.Tuple([G,G]),$nbetween:H.Tuple([G,G]),$like:H.String(),$nlike:H.String()}:{},$isNull:H.Boolean()}),$Y=(G)=>{let{properties:Y}=G,Z={};for(let[z,V]of Object.entries(Y)){let X=VY(V);Z[z]=H.Array(H.Union([H.Partial(X),V]))}return Z},XY=(G)=>H.Array(H.Union([H.Partial(H.Object({selectedFields:H.Union([H.Array(H.KeyOf(G)),H.KeyOf(G)]),value:H.String()})),H.String()])),HY=(G)=>H.Array(H.KeyOf(G)),x=(G)=>H.Composite([H.Object({$q:H.Optional(XY(G)),$selectedFields:H.Optional(HY(G))}),H.Partial(H.Object($Y(G)))]),UY=(G)=>H.Composite([x(G),H.Partial(H.Object({$limit:H.Number(),$offset:H.Number()}))]),bG=(G,Y,Z=[])=>new zY({name:`advancedSearchPlugin-${G}`,seed:Y}).model({[`advancedSearch${G}Query`]:x(Y),[`advancedSearch${G}QueryWithPagination`]:UY(Y)}).macro({hasAdvancedSearch:{resolve:({query:z})=>{let V=z,X={advancedSearch:[],selectedFields:V.$selectedFields||["*"],pagination:{limit:V.$limit||100,offset:V.$offset||0}};if(z.$q){let j=Array.isArray(z.$q)?z.$q:[z.$q];X.advancedSearch.push(...j.map((_)=>({$q:_})))}V=gG(V,["$selectedFields","$q","$limit","$offset",...Z],!0);for(let[j,_]of Object.entries(V))(Array.isArray(_)?_:[_]).forEach((F,C)=>{if(!X.advancedSearch[C])X.advancedSearch[C]={};X.advancedSearch[C][j]=F});return X}}}).as("scoped");import{Elysia as WY,t as IG}from"elysia";var dG=(G)=>new WY({name:"dynamicDatabaseSelectorPlugin"}).model({databaseUsingHeader:IG.Object({[G.headerKey||"database-using"]:IG.String()})}).macro({hasDynamicDatabaseSelector:{async resolve({headers:Y}){let Z=Y[G.headerKey||"database-using"];if(!Z)throw new L({key:A.dynamicDatabaseKeyNotFound,message:"Dynamic Database key not found in the request headers.",httpStatusCode:400});if(!k.has(`database:${Z}`))k.register(`database:${Z}`,hG,{...G.baseDatabaseConfig,databaseName:Z}),await k.get(`database:${Z}`).connect();return{dynamicDB:k.get(`database:${Z}`)}}}}).as("scoped");import{Elysia as d,t as Q}from"elysia";var _Y=(G)=>{let{properties:Y}=G,Z={};for(let z in Y)Z[z]=Q.Union([Y[z],Q.Undefined(),Q.Null(),Q.Literal("")]);return Q.Object({message:Q.String(),content:Q.Array(Q.Partial(Q.Object(Z)))})},FY=(G,Y)=>{let{properties:Z}=G,z={};for(let V in Z)z[V]=Y?.includes(V)?Z[V]:Q.Optional(Z[V]);return Q.Object(z)},QY=(G,Y)=>{let{baseSchema:Z,tableName:z,insertPropertiesSchemaRequired:V}=Y,X=new d().model({[`crud${z}Response200`]:_Y(Z)}),j={insert:()=>X.model({[`crud${z}InsertBody`]:FY(Z,V)}),update:()=>X.model({[`crud${z}UpdateBody`]:Q.Partial(Z)}),count:()=>X.model({[`crud${z}CountResponse200`]:Q.Object({message:Q.String(),content:Q.Number()})})};if(G.forEach((T)=>{if(T in j)j[T]?.()}),["findOne","deleteOne","updateOne"].some((T)=>G.includes(T)))X.model({[`crud${z}IdParam`]:Q.Object({id:Q.Union([Q.String(),Q.Number()])})});return X},JY=(G=[],Y=[])=>{let Z=["insert","find","findOne","update","updateOne","delete","deleteOne","count"],z=G.length>0?G:Z;return Y.length>0?z.filter((V)=>!Y.includes(V)):z},DY=(G)=>{let Y=new d;if(typeof G==="string")Y.resolve(()=>({dynamicDB:k.get(`database:${G}`)}));else Y.use(dG({baseDatabaseConfig:G.baseDatabaseConfig,headerKey:G.headerKey||"database-using"}));return Y.as("scoped")},jY={insertHandler:async(G,Y)=>{let z=G.dynamicDB.getRepository(Y),{body:V}=G,X=await z.insert(V);return{message:`Inserted record for ${Y}`,content:X}},findHandler:async(G,Y)=>{let V=await G.dynamicDB.getRepository(Y).find({advancedSearch:G.advancedSearch,selectedFields:G.selectedFields,limit:G.pagination.limit,offset:G.pagination.offset});return{message:`Found ${V.length} records for ${Y}`,content:V}},findOneHandler:async(G,Y)=>{let Z=G.dynamicDB,z=Z.getRepository(Y),X=Z.getTable(Y).primaryKey,{id:j}=G.params,_=await z.findOne({advancedSearch:{[X[0]]:j}});return{message:`Found record for ${Y}`,content:_}},countHandler:async(G,Y)=>{let V=await G.dynamicDB.getRepository(Y).count({advancedSearch:G.advancedSearch});return{message:`${V} records found for ${Y}`,content:V}},updateHandler:async(G,Y)=>{let z=G.dynamicDB.getRepository(Y);if(!G.advancedSearch||G.advancedSearch.length===0||!G.advancedSearch[0])throw new L({key:A.needAdvancedSearch,message:"You need to provide advanced search to update records. It's dangerous to update all records.",httpStatusCode:400});let V=await z.update(G.body,{advancedSearch:G.advancedSearch,selectedFields:G.selectedField});return{message:`Updated ${V.length} records for ${Y}`,content:V}},updateOneHandler:async(G,Y)=>{let Z=G.dynamicDB,z=Z.getRepository(Y),X=Z.getTable(Y).primaryKey,{id:j}=G.params,_=await z.update(G.body,{advancedSearch:{[X[0]]:j}});return{message:`Updated record for ${Y}`,content:_}},deleteHandler:async(G,Y)=>{let z=G.dynamicDB.getRepository(Y);if(!G.advancedSearch||G.advancedSearch.length===0||!G.advancedSearch[0])throw new L({key:A.needAdvancedSearch,message:"You need to provide advanced search to delete records. It's dangerous to delete all records.",httpStatusCode:400});let V=await z.delete({advancedSearch:G.advancedSearch,selectedFields:G.selectedFields});return{message:`Deleted ${V.length} records for ${Y}`,content:V}},deleteOneHandler:async(G,Y)=>{let Z=G.dynamicDB,z=Z.getRepository(Y),X=Z.getTable(Y).primaryKey,{id:j}=G.params,_=await z.delete({advancedSearch:{[X[0]]:j}});return{message:`Deleted record for ${Y}`,content:_}}},BY=(G,Y,Z,z,V)=>(X)=>{let j={insert:"post",find:"get",findOne:"get",count:"get",update:"patch",updateOne:"patch",delete:"delete",deleteOne:"delete"},_={insert:"/",find:"/",findOne:"/:id",count:"/count",update:"/",updateOne:"/:id",delete:"/",deleteOne:"/:id"};if(G.includes("find")||G.includes("count")||G.includes("update")||G.includes("delete"))X.use(bG(Y,Z));for(let F of G){let C=j[F],w=_[F];if(C&&w){let oG=jY[`${F}Handler`],nG={...F==="findOne"||F==="deleteOne"||F==="updateOne"?{params:`crud${Y}IdParam`}:{},...F==="count"||F==="update"||F==="delete"?{query:x(Z)}:F==="find"?{query:x(Z)}:{},...F==="insert"||F==="update"||F==="updateOne"?{body:`crud${Y}${F==="insert"?"Insert":"Update"}Body`}:{},response:`crud${Y}${F==="count"?"Count":""}Response200`,hasAdvancedSearch:!0,hasDynamicDatabaseSelector:z,needsOnePermission:V[F]||[]};X[C](w,(vG)=>oG(vG,Y),nG)}}return X},vY=(G)=>{let Y=JY(G.includedRoutes,G.excludedRoutes),Z=new d({name:`crudPlugin[${G.tableName}]`,tags:[G.tableName]}).use(QY(Y,G)).use(G.permissionConfig.permissionsPlugin);return Z.use(DY(G.database)).use(BY(Y,G.tableName,G.baseSchema,typeof G.database!=="string",G.permissionConfig.operationsPermissions)),Z};import{Elysia as LY}from"elysia";var tY=new LY({name:"errorPlugin"}).error({CoreError:L}).onError(({code:G,error:Y,set:Z})=>{switch(Z.headers["content-type"]="application/json; charset=utf-8",G){case"CoreError":return Z.status=Y.httpStatusCode,{key:Y.key,message:Y.message,cause:Y.cause};case"VALIDATION":return Z.status=400,{key:"core.error.validation",message:"Validation error",cause:{on:Y.type,found:Y.value,errors:Y.all}};case"NOT_FOUND":return Z.status=404,{key:"core.error.not_found",message:"Not found"};case"INTERNAL_SERVER_ERROR":case"UNKNOWN":default:return Z.status=500,{key:"core.error.internal_server_error",message:"Internal server error"}}}).as("global");import{Elysia as MY}from"elysia";import{SignJWT as AY,jwtVerify as TY}from"jose";var YZ=(G)=>{if(!G.secret)throw new L({key:A.jwtSecretNotFound,message:"Secret key is required for JWT signing and verification."});let Y=new TextEncoder().encode(G.secret),Z=G.name??"jwt";return new MY({name:"jwtPlugin",seed:G}).decorate(Z,{sign(z,V=G.exp??"15m"){let X={iss:"core",aud:"core client",jti:Bun.randomUUIDv7(),...G.payload,...z};try{return new AY(X).setProtectedHeader({alg:"HS256",b64:!0}).setIssuer(X.iss??"core").setAudience(X.aud??"client").setExpirationTime(V).sign(Y)}catch{throw new L({key:A.jwtSignError,message:"Error signing JWT."})}},async verify(z){if(!z)return!1;try{return(await TY(z,Y)).payload}catch{return!1}}}).as("scoped")};import{Elysia as CY}from"elysia";import{existsSync as qY}from"fs";import{platform as PY}from"os";var mG=(G)=>{let Y=PY()==="win32",Z=Y?"\\":"/";if(Y&&/^[A-Z]:\\$/i.test(G)||!Y&&G==="/")return"";let z=G+Z+"package.json";if(qY(z))return z;let V=G.split(Z);if(V.length<=1)return"";let X=V.slice(0,-1).join(Z);if(X==="")return"";return mG(X)},S=await import(mG(Bun.main)),UZ=new CY({name:"microservicePlugin",prefix:"/microservice",detail:{tags:["Microservice"],security:[]}}).model({infoResponse200:pG,pingResponse200:cG}).get("/ping",()=>({message:"pong"}),{detail:{summary:"Ping",description:"Ping the microservice to check if it is alive"},response:"pingResponse200"}).get("/info",()=>({message:"Microservice Information",content:{name:S.default.name,version:S.default.version,description:S.default.description,author:S.default.author}}),{detail:{summary:"Info",description:"Get information about the microservice"},response:"infoResponse200"}).as("scoped");import{Elysia as kY}from"elysia";var DZ=({redis:G,limit:Y,window:Z,message:z})=>new kY({name:"rateLimitPlugin",seed:{redis:G,limit:Y,window:Z,message:z}}).onRequest(async({set:V,request:X})=>{let _=`ratelimit:${X.headers.get("x-forwarded-for")||X.headers.get("x-real-ip")||"127.0.0.1"}`,T=await G.client.get(_);if((T?parseInt(T):0)===0)await G.client.setex(_,Z,"1");else await G.client.incr(_);let C=await G.client.get(_),w=C?parseInt(C):0;if(w>Y)throw V.status=p.tooManyRequests,new L({key:A.rateLimitExceeded,message:z||"Rate limit exceeded",httpStatusCode:p.tooManyRequests,cause:{limit:Y,window:Z,remaining:0,reset:await G.client.ttl(_)}});V.headers={"X-RateLimit-Limit":Y.toString(),"X-RateLimit-Remaining":Math.max(0,Y-w).toString(),"X-RateLimit-Reset":(await G.client.ttl(_)).toString()}}).as("scoped");
|
|
2
|
-
export{x as h,UY as i,bG as j,dG as k,_Y as l,FY as m,vY as n,tY as o,YZ as p,UZ as q,DZ as r};
|
package/dist/chunk-qndyhwdn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var f={mssqlConnectionError:"core.error.mssql.database.connection_error",mssqlDisconnectError:"core.error.mssql.database.disconnect_error",mssqlNotConnected:"core.error.mssql.database.not_connected",mssqlNoResult:"core.error.mssql.database.no_result",mssqlQueryError:"core.error.mssql.database.query_error",mssqlDatabaseAccessDenied:"core.error.mssql.database.access_denied",mssqlDatabaseAuthorizationFailed:"core.error.mssql.database.authorization_failed",mssqlDatabaseSyntaxError:"core.error.mssql.database.syntax_error",mssqlDatabaseColumnNotFound:"core.error.mssql.database.column_not_found",mssqlTableNotFound:"core.error.mssql.database.table_not_found",mssqlDatabaseAmbiguousColumn:"core.error.mssql.database.ambiguous_column",mssqlDatabaseDuplicateKey:"core.error.mssql.database.duplicate_key",mssqlDatabaseForeignKeyViolation:"core.error.mssql.database.foreign_key_violation",mssqlDatabaseUniqueConstraintViolation:"core.error.mssql.database.unique_constraint_violation",mssqlDatabaseDeadlockDetected:"core.error.mssql.database.deadlock_detected",mssqlDatabaseResourceLocked:"core.error.mssql.database.resource_locked",mssqlDatabaseTransactionAborted:"core.error.mssql.database.transaction_aborted",mssqlDatabaseInsufficientMemory:"core.error.mssql.database.insufficient_memory",mssqlDatabaseInsufficientStorage:"core.error.mssql.database.insufficient_storage",mssqlDatabaseQueryTimeout:"core.error.mssql.database.query_timeout",mssqlDatabaseTransactionLogFull:"core.error.mssql.database.transaction_log_full",mssqlDatabaseDataTooLarge:"core.error.mssql.database.data_too_large",mssqlDatabasePermissionDenied:"core.error.mssql.database.permission_denied",mssqlDatabaseIdentityInsertNotAllowed:"core.error.mssql.database.identity_insert_not_allowed",mssqlDatabaseCannotUpdateIdentityColumn:"core.error.mssql.database.cannot_update_identity_column"};var v={0:f.mssqlQueryError,4060:f.mssqlDatabaseAccessDenied,18452:f.mssqlDatabaseAuthorizationFailed,18456:f.mssqlDatabaseAuthorizationFailed,102:f.mssqlDatabaseSyntaxError,207:f.mssqlDatabaseColumnNotFound,208:f.mssqlTableNotFound,209:f.mssqlDatabaseAmbiguousColumn,2627:f.mssqlDatabaseDuplicateKey,547:f.mssqlDatabaseForeignKeyViolation,2601:f.mssqlDatabaseUniqueConstraintViolation,1205:f.mssqlDatabaseDeadlockDetected,1222:f.mssqlDatabaseResourceLocked,3928:f.mssqlDatabaseTransactionAborted,701:f.mssqlDatabaseInsufficientMemory,1105:f.mssqlDatabaseInsufficientStorage,8645:f.mssqlDatabaseQueryTimeout,9002:f.mssqlDatabaseTransactionLogFull,8152:f.mssqlDatabaseDataTooLarge,229:f.mssqlDatabasePermissionDenied,544:f.mssqlDatabaseIdentityInsertNotAllowed,8102:f.mssqlDatabaseCannotUpdateIdentityColumn};
|
|
2
|
-
export{f as sa,v as ta};
|
package/dist/chunk-v5dfx8mh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var f={jwtSignError:"core.error.elysia.jwt_sign_error",jwtSecretNotFound:"core.error.elysia.jwt_secret_not_found",rateLimitExceeded:"core.error.elysia.rate_limit_exceeded",dynamicDatabaseKeyNotFound:"core.error.elysia.dynamic_database_key_not_found",needAdvancedSearch:"core.error.elysia.need_advanced_search"};var m={ok:200,created:201,accepted:202,nonAuthoritativeInformation:203,noContent:204,resetContent:205,partialContent:206,multiStatus:207,alreadyReported:208,imUsed:226,multipleChoices:300,movedPermanently:301,found:302,seeOther:303,notModified:304,useProxy:305,temporaryRedirect:307,permanentRedirect:308,badRequest:400,unauthorized:401,paymentRequired:402,forbidden:403,notFound:404,methodNotAllowed:405,notAcceptable:406,proxyAuthenticationRequired:407,requestTimeout:408,conflict:409,gone:410,lengthRequired:411,preconditionFailed:412,payloadTooLarge:413,uriTooLong:414,unsupportedMediaType:415,rangeNotSatisfiable:416,expectationFailed:417,imATeapot:418,misdirectedRequest:421,unprocessableEntity:422,locked:423,failedDependency:424,tooEarly:425,upgradeRequired:426,preconditionRequired:428,tooManyRequests:429,requestHeaderFieldsTooLarge:431,unavailableForLegalReasons:451,internalServerError:500,notImplemented:501,badGateway:502,serviceUnavailable:503,gatewayTimeout:504,httpVersionNotSupported:505,variantAlsoNegotiates:506,insufficientStorage:507,loopDetected:508,notExtended:510,networkAuthenticationRequired:511};
|
|
2
|
-
export{f as Y,m as Z};
|
package/dist/chunk-wgq0yyqw.js
DELETED
package/dist/chunk-wtfcgg9s.js
DELETED
package/dist/chunk-z00b1r18.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var{randomUUIDv7:g}=globalThis.Bun;class j extends Error{cause;_uuid=g();_date=new Date;_key;_httpStatusCode;constructor(f){super(f?.message);super.name="CoreError",this.cause=f?.cause,this._key=f?.key||"",this._httpStatusCode=f?.httpStatusCode||500}get uuid(){return this._uuid}get date(){return this._date}get key(){return this._key}get httpStatusCode(){return this._httpStatusCode}}
|
|
2
|
-
export{j as ra};
|
package/dist/data/data.d.ts
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { KeyTransformer } from './types/keyTransformer';
|
|
2
|
-
/**
|
|
3
|
-
* Filters the provided data by excluding the specified keys, with an option to exclude null or undefined values.
|
|
4
|
-
* Uses a generic type parameter to control the return type based on the excludeNullUndefined flag.
|
|
5
|
-
*
|
|
6
|
-
* @template TObject - The type of the data object to filter, must be an object.
|
|
7
|
-
* @template TExcludedKeys - The keys to exclude from the data object.
|
|
8
|
-
* @template TExcludeNullUndefined - Boolean flag type to determine if properties with null or undefined values should be excluded.
|
|
9
|
-
*
|
|
10
|
-
* @param data - The data object to be filtered.
|
|
11
|
-
* @param keys - The array of keys to exclude from the data object. (Can be empty)
|
|
12
|
-
* @param excludeNullUndefined - Flag to determine if properties with null or undefined values should be excluded.
|
|
13
|
-
*
|
|
14
|
-
* @throws ({@link CoreError}) - Throws an error if the data is null or undefined. ({@link dataErrorKeys.dataIsNull})
|
|
15
|
-
* @throws ({@link CoreError}) - Throws an error if the data is not a plain object. ({@link dataErrorKeys.dataMustBeObject})
|
|
16
|
-
*
|
|
17
|
-
* @returns The filtered data object with the specified keys excluded. ({@link TObject})
|
|
18
|
-
*/
|
|
19
|
-
export declare const filterByKeyExclusion: <TObject extends Readonly<object>, TExcludedKeys extends keyof TObject = never, TExcludeNullUndefined extends boolean = false>(data: Readonly<TObject>, keys: readonly TExcludedKeys[], excludeNullUndefined?: TExcludeNullUndefined) => TExcludeNullUndefined extends true ? Partial<Omit<TObject, TExcludedKeys>> : Omit<TObject, TExcludedKeys>;
|
|
20
|
-
/**
|
|
21
|
-
* Filters the provided data by including only the specified keys, with an option to exclude null or undefined values.
|
|
22
|
-
* Uses a generic type parameter to control the return type based on the excludeNullUndefined flag.
|
|
23
|
-
*
|
|
24
|
-
* @template TObject - The type of the data object to filter, must be an object.
|
|
25
|
-
* @template TIncludedKeys - The keys to include from the data object.
|
|
26
|
-
* @template TExcludeNullUndefined - Boolean flag type to determine if properties with null or undefined values should be excluded.
|
|
27
|
-
*
|
|
28
|
-
* @param data - The data object to be filtered.
|
|
29
|
-
* @param keys - The array of keys to include in the resulting data object. (Can be empty)
|
|
30
|
-
* @param excludeNullUndefined - Flag to determine if properties with null or undefined values should be excluded.
|
|
31
|
-
*
|
|
32
|
-
* @throws ({@link CoreError}) - Throws an error if the data is null or undefined. ({@link dataErrorKeys.dataIsNull})
|
|
33
|
-
* @throws ({@link CoreError}) - Throws an error if the data is not a plain object. ({@link dataErrorKeys.dataMustBeObject})
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```typescript
|
|
37
|
-
* const object = { test: 'test', exclude: 'exclude' };
|
|
38
|
-
* const filtered = filterByKeyInclusion(object, ['test']);
|
|
39
|
-
* console.log(filtered); // { test: 'test' }
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```typescript
|
|
44
|
-
* const object = { test: 'test', exclude: null };
|
|
45
|
-
* const filtered = filterByKeyInclusion(object, ['test'], true);
|
|
46
|
-
* console.log(filtered); // { test: 'test' }
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @returns The filtered data object with only the specified keys included. ({@link TObject})
|
|
50
|
-
*/
|
|
51
|
-
export declare const filterByKeyInclusion: <TObject extends Readonly<object>, TIncludedKeys extends keyof TObject = never, TExcludeNullUndefined extends boolean = false>(data: Readonly<TObject>, keys: readonly TIncludedKeys[], excludeNullUndefined?: TExcludeNullUndefined) => TExcludeNullUndefined extends true ? Partial<Pick<TObject, TIncludedKeys>> : Pick<TObject, TIncludedKeys>;
|
|
52
|
-
/**
|
|
53
|
-
* Filters the provided data based on a predicate applied to its values. The resulting object
|
|
54
|
-
* will only include properties whose values satisfy the predicate function. Properties with
|
|
55
|
-
* null or undefined values can be optionally excluded based on the 'excludeNullUndefined' flag.
|
|
56
|
-
* @template TObject - The type of the data to be filtered, constrained to an object type.
|
|
57
|
-
*
|
|
58
|
-
* @param data - The data object to be filtered.
|
|
59
|
-
* @param predicate - The predicate function to apply to the values.
|
|
60
|
-
* @param excludeNullUndefined - Flag to determine if properties with null or undefined values should be excluded. Default is false.
|
|
61
|
-
*
|
|
62
|
-
* @throws ({@link CoreError}) - Throws an error if the data is null or undefined. ({@link dataErrorKeys.dataIsNull})
|
|
63
|
-
* @throws ({@link CoreError}) - Throws an error if the data is not a plain object. ({@link dataErrorKeys.dataMustBeObject})
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```typescript
|
|
67
|
-
* const object = { test: 'test', exclude: 'exclude' };
|
|
68
|
-
* const filtered = filterByValue(object, (value: unknown): boolean => value === 'test');
|
|
69
|
-
* console.log(filtered); // { test: 'test' }
|
|
70
|
-
* ```
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```typescript
|
|
74
|
-
* const object = { test: 'test', exclude: null };
|
|
75
|
-
* const filtered = filterByValue(object, (value: unknown): boolean => value === 'test', true);
|
|
76
|
-
* console.log(filtered); // { test: 'test' }
|
|
77
|
-
* ```
|
|
78
|
-
*
|
|
79
|
-
* @returns The filtered data object with properties satisfying the predicate. ({@link TObject})
|
|
80
|
-
*/
|
|
81
|
-
export declare const filterByValue: <TObject extends Readonly<object>>(data: Readonly<TObject>, predicate: (value: TObject[keyof TObject]) => boolean, excludeNullUndefined?: boolean) => TObject;
|
|
82
|
-
/**
|
|
83
|
-
* Transforms the keys of the given object using the current transformation strategy.
|
|
84
|
-
* @template TObject - The type of the object.
|
|
85
|
-
* @param data - The object whose keys are to be transformed.
|
|
86
|
-
* @param transformer - The key transformation strategy to use.
|
|
87
|
-
*
|
|
88
|
-
* @throws ({@link CoreError}) - If the provided data object is null or undefined. ({@link dataErrorKeys.dataIsNull})
|
|
89
|
-
* @throws ({@link CoreError}) - If the provided data object is not a plain object. ({@link dataErrorKeys.dataMustBeObject})
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```typescript
|
|
93
|
-
* // Return { myKey: "value" }
|
|
94
|
-
* transformKeys(\{ "my-key": "value" \}, new BasaltCamelCaseTransformer());
|
|
95
|
-
* ```
|
|
96
|
-
*
|
|
97
|
-
* @returns A new object with transformed keys. ({@link TObject})
|
|
98
|
-
*/
|
|
99
|
-
export declare const transformKeys: <TObject extends Readonly<object>>(data: Readonly<TObject>, transformer: Readonly<KeyTransformer>) => TObject;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dataErrorKeys';
|
package/dist/data/enums/index.js
DELETED
package/dist/data/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './data';
|
package/dist/data/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { KeyTransformer } from '../../data/types/keyTransformer';
|
|
2
|
-
/**
|
|
3
|
-
* Transforms string keys into camelCase format.
|
|
4
|
-
* Implements ({@link KeyTransformer}).
|
|
5
|
-
*/
|
|
6
|
-
export declare class CamelCaseTransformer implements KeyTransformer {
|
|
7
|
-
/**
|
|
8
|
-
* Transforms a single key from any case to camelCase.
|
|
9
|
-
*
|
|
10
|
-
* @param key - The key string to transform into camelCase.
|
|
11
|
-
*
|
|
12
|
-
* @returns The key string transformed into camelCase.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* transformKey('MyKeyName');
|
|
16
|
-
* Returns "myKeyName"
|
|
17
|
-
* @example
|
|
18
|
-
* transformKey('my-key-name');
|
|
19
|
-
* Returns "myKeyName"
|
|
20
|
-
* @example
|
|
21
|
-
* transformKey('my_key_name');
|
|
22
|
-
* Returns "myKeyName"
|
|
23
|
-
*/
|
|
24
|
-
transformKey(key: string): string;
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { KeyTransformer } from '../../data/types/keyTransformer';
|
|
2
|
-
/**
|
|
3
|
-
* Transforms string keys into kebab-case format.
|
|
4
|
-
* Implements ({@link KeyTransformer}).
|
|
5
|
-
*/
|
|
6
|
-
export declare class KebabCaseTransformer implements KeyTransformer {
|
|
7
|
-
/**
|
|
8
|
-
* Transforms a single key from any case to kebab-case.
|
|
9
|
-
*
|
|
10
|
-
* @param key - The key string to transform into kebab-case.
|
|
11
|
-
*
|
|
12
|
-
* @returns The key string transformed into kebab-case, with all letters in lower case and words separated by hyphens.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* transformKey('myKeyName');
|
|
16
|
-
* Returns "my-key-name"
|
|
17
|
-
* @example
|
|
18
|
-
* transformKey('MyKeyName');
|
|
19
|
-
* Returns "my-key-name"
|
|
20
|
-
* @example
|
|
21
|
-
* transformKey('my_long_key_name');
|
|
22
|
-
* Returns "my-long-key-name"
|
|
23
|
-
*/
|
|
24
|
-
transformKey(key: string): string;
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { KeyTransformer } from '../../data/types/keyTransformer';
|
|
2
|
-
/**
|
|
3
|
-
* Transforms string keys into PascalCase format.
|
|
4
|
-
* Implements ({@link KeyTransformer}).
|
|
5
|
-
*/
|
|
6
|
-
export declare class PascalCaseTransformer implements KeyTransformer {
|
|
7
|
-
/**
|
|
8
|
-
* Transforms a single key from any case to PascalCase.
|
|
9
|
-
*
|
|
10
|
-
* @param key - The key string to transform into PascalCase.
|
|
11
|
-
*
|
|
12
|
-
* @returns The key string transformed into PascalCase, with the first letter of each word capitalized.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* transformKey('my_key_name');
|
|
16
|
-
* Returns "MyKeyName"
|
|
17
|
-
* @example
|
|
18
|
-
* transformKey('my-key-name');
|
|
19
|
-
* Returns "MyKeyName"
|
|
20
|
-
* @example
|
|
21
|
-
* transformKey('myLongKeyName');
|
|
22
|
-
* Returns "MyLongKeyName"
|
|
23
|
-
*/
|
|
24
|
-
transformKey(key: string): string;
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { KeyTransformer } from '../../data/types/keyTransformer';
|
|
2
|
-
/**
|
|
3
|
-
* Transforms string keys into snake_case format.
|
|
4
|
-
* Implements ({@link KeyTransformer}).
|
|
5
|
-
*/
|
|
6
|
-
export declare class SnakeCaseTransformer implements KeyTransformer {
|
|
7
|
-
/**
|
|
8
|
-
* Transforms a single key from any case to snake_case.
|
|
9
|
-
*
|
|
10
|
-
* @param key - The key string to transform into snake_case.
|
|
11
|
-
*
|
|
12
|
-
* @returns The key string transformed into snake_case, with underscores between words.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* transformKey('myKeyName');
|
|
16
|
-
* Returns "my_key_name"
|
|
17
|
-
* @example
|
|
18
|
-
* transformKey('MyKeyName');
|
|
19
|
-
* Returns "my_key_name"
|
|
20
|
-
* @example
|
|
21
|
-
* transformKey('My-Key-Name');
|
|
22
|
-
* Returns "my_key_name"
|
|
23
|
-
*/
|
|
24
|
-
transformKey(key: string): string;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type * from './keyTransformer';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for Key transformer.
|
|
3
|
-
*/
|
|
4
|
-
export interface KeyTransformer {
|
|
5
|
-
/**
|
|
6
|
-
* Transforms a single key from any case to another case.
|
|
7
|
-
* @param key - The key string to transform.
|
|
8
|
-
* @returns The key string transformed into the desired case.
|
|
9
|
-
*/
|
|
10
|
-
transformKey(key: string): string;
|
|
11
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export declare const databaseErrorKeys: {
|
|
2
|
-
/** Error when failing to connect to MSSQL database. */
|
|
3
|
-
readonly mssqlConnectionError: "core.error.mssql.database.connection_error";
|
|
4
|
-
/** Error when disconnecting from MSSQL database. */
|
|
5
|
-
readonly mssqlDisconnectError: "core.error.mssql.database.disconnect_error";
|
|
6
|
-
/** Error when MSSQL database is not connected. */
|
|
7
|
-
readonly mssqlNotConnected: "core.error.mssql.database.not_connected";
|
|
8
|
-
/** Error when no result is returned from MSSQL query. */
|
|
9
|
-
readonly mssqlNoResult: "core.error.mssql.database.no_result";
|
|
10
|
-
/** Error when a query fails in MSSQL database. */
|
|
11
|
-
readonly mssqlQueryError: "core.error.mssql.database.query_error";
|
|
12
|
-
/** Error when access to MSSQL database is denied. */
|
|
13
|
-
readonly mssqlDatabaseAccessDenied: "core.error.mssql.database.access_denied";
|
|
14
|
-
/** Error when MSSQL database authorization fails. */
|
|
15
|
-
readonly mssqlDatabaseAuthorizationFailed: "core.error.mssql.database.authorization_failed";
|
|
16
|
-
/** Error when there is a syntax error in MSSQL database. */
|
|
17
|
-
readonly mssqlDatabaseSyntaxError: "core.error.mssql.database.syntax_error";
|
|
18
|
-
/** Error when a column is not found in MSSQL database. */
|
|
19
|
-
readonly mssqlDatabaseColumnNotFound: "core.error.mssql.database.column_not_found";
|
|
20
|
-
/** Error when a table is not found in MSSQL database. */
|
|
21
|
-
readonly mssqlTableNotFound: "core.error.mssql.database.table_not_found";
|
|
22
|
-
/** Error when there is an ambiguous column in MSSQL database. */
|
|
23
|
-
readonly mssqlDatabaseAmbiguousColumn: "core.error.mssql.database.ambiguous_column";
|
|
24
|
-
/** Error when there is a duplicate key in MSSQL database. */
|
|
25
|
-
readonly mssqlDatabaseDuplicateKey: "core.error.mssql.database.duplicate_key";
|
|
26
|
-
/** Error when there is a foreign key violation in MSSQL database. */
|
|
27
|
-
readonly mssqlDatabaseForeignKeyViolation: "core.error.mssql.database.foreign_key_violation";
|
|
28
|
-
/** Error when a unique constraint is violated in MSSQL database. */
|
|
29
|
-
readonly mssqlDatabaseUniqueConstraintViolation: "core.error.mssql.database.unique_constraint_violation";
|
|
30
|
-
/** Error when a deadlock is detected in MSSQL database. */
|
|
31
|
-
readonly mssqlDatabaseDeadlockDetected: "core.error.mssql.database.deadlock_detected";
|
|
32
|
-
/** Error when a resource is locked in MSSQL database. */
|
|
33
|
-
readonly mssqlDatabaseResourceLocked: "core.error.mssql.database.resource_locked";
|
|
34
|
-
/** Error when a transaction is aborted in MSSQL database. */
|
|
35
|
-
readonly mssqlDatabaseTransactionAborted: "core.error.mssql.database.transaction_aborted";
|
|
36
|
-
/** Error when there is insufficient memory in MSSQL database. */
|
|
37
|
-
readonly mssqlDatabaseInsufficientMemory: "core.error.mssql.database.insufficient_memory";
|
|
38
|
-
/** Error when there is insufficient storage in MSSQL database. */
|
|
39
|
-
readonly mssqlDatabaseInsufficientStorage: "core.error.mssql.database.insufficient_storage";
|
|
40
|
-
/** Error when a query times out in MSSQL database. */
|
|
41
|
-
readonly mssqlDatabaseQueryTimeout: "core.error.mssql.database.query_timeout";
|
|
42
|
-
/** Error when the transaction log is full in MSSQL database. */
|
|
43
|
-
readonly mssqlDatabaseTransactionLogFull: "core.error.mssql.database.transaction_log_full";
|
|
44
|
-
/** Error when data is too large for MSSQL database. */
|
|
45
|
-
readonly mssqlDatabaseDataTooLarge: "core.error.mssql.database.data_too_large";
|
|
46
|
-
/** Error when permission is denied in MSSQL database. */
|
|
47
|
-
readonly mssqlDatabasePermissionDenied: "core.error.mssql.database.permission_denied";
|
|
48
|
-
/** Error when identity insert is not allowed in MSSQL database. */
|
|
49
|
-
readonly mssqlDatabaseIdentityInsertNotAllowed: "core.error.mssql.database.identity_insert_not_allowed";
|
|
50
|
-
/** Error when updating identity column is not allowed in MSSQL database. */
|
|
51
|
-
readonly mssqlDatabaseCannotUpdateIdentityColumn: "core.error.mssql.database.cannot_update_identity_column";
|
|
52
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/** MSSQL error codes with their corresponding error key. */
|
|
2
|
-
export declare const mssqlErrorCode: {
|
|
3
|
-
readonly 0: "core.error.mssql.database.query_error";
|
|
4
|
-
readonly 4060: "core.error.mssql.database.access_denied";
|
|
5
|
-
readonly 18452: "core.error.mssql.database.authorization_failed";
|
|
6
|
-
readonly 18456: "core.error.mssql.database.authorization_failed";
|
|
7
|
-
readonly 102: "core.error.mssql.database.syntax_error";
|
|
8
|
-
readonly 207: "core.error.mssql.database.column_not_found";
|
|
9
|
-
readonly 208: "core.error.mssql.database.table_not_found";
|
|
10
|
-
readonly 209: "core.error.mssql.database.ambiguous_column";
|
|
11
|
-
readonly 2627: "core.error.mssql.database.duplicate_key";
|
|
12
|
-
readonly 547: "core.error.mssql.database.foreign_key_violation";
|
|
13
|
-
readonly 2601: "core.error.mssql.database.unique_constraint_violation";
|
|
14
|
-
readonly 1205: "core.error.mssql.database.deadlock_detected";
|
|
15
|
-
readonly 1222: "core.error.mssql.database.resource_locked";
|
|
16
|
-
readonly 3928: "core.error.mssql.database.transaction_aborted";
|
|
17
|
-
readonly 701: "core.error.mssql.database.insufficient_memory";
|
|
18
|
-
readonly 1105: "core.error.mssql.database.insufficient_storage";
|
|
19
|
-
readonly 8645: "core.error.mssql.database.query_timeout";
|
|
20
|
-
readonly 9002: "core.error.mssql.database.transaction_log_full";
|
|
21
|
-
readonly 8152: "core.error.mssql.database.data_too_large";
|
|
22
|
-
readonly 229: "core.error.mssql.database.permission_denied";
|
|
23
|
-
readonly 544: "core.error.mssql.database.identity_insert_not_allowed";
|
|
24
|
-
readonly 8102: "core.error.mssql.database.cannot_update_identity_column";
|
|
25
|
-
};
|
package/dist/database/index.d.ts
DELETED
package/dist/database/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for log events emitted by the `MSSQL` class.
|
|
3
|
-
* Used to capture detailed information about database queries.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* const mssql = new MSSQL(options);
|
|
8
|
-
* mssql.on(EVENT_MSSQL.LOG, (log: MssqlEventLog) => {
|
|
9
|
-
* console.log(log);
|
|
10
|
-
* });
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* This interface is intended for internal logging and debugging of MSSQL queries.
|
|
15
|
-
*/
|
|
16
|
-
export interface MssqlEventLog {
|
|
17
|
-
/** The name of the database where the query was executed. */
|
|
18
|
-
database: string;
|
|
19
|
-
/** A list of tables affected by the query. */
|
|
20
|
-
tables: string[];
|
|
21
|
-
/** A unique identifier for the executed query. */
|
|
22
|
-
queryUuid: string;
|
|
23
|
-
/** The method used in the query (e.g., `SELECT`, `INSERT`, `UPDATE`, `DELETE`). */
|
|
24
|
-
method: string;
|
|
25
|
-
/** The raw SQL query string. */
|
|
26
|
-
sql: string;
|
|
27
|
-
/** The parameters or bindings used in the query. */
|
|
28
|
-
bindings: unknown[];
|
|
29
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface QueryContext {
|
|
2
|
-
method: string;
|
|
3
|
-
options: Record<string, unknown>;
|
|
4
|
-
timeout: number;
|
|
5
|
-
cancelOnTimeout: boolean;
|
|
6
|
-
bindings: unknown[];
|
|
7
|
-
sql: string;
|
|
8
|
-
queryContext: Record<string, unknown>;
|
|
9
|
-
__knexUid: string;
|
|
10
|
-
__knexQueryUid: string;
|
|
11
|
-
}
|