@mrxsys/mrx-core 2.8.0 → 2.9.0-1-and-259-20250918
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/chunk-00s6t4tw.js +26 -0
- package/dist/{chunk-sepwfqdh.js → chunk-0601exyg.js} +2 -1
- package/dist/chunk-4mvsje21.js +7 -0
- package/dist/chunk-547mr88s.js +10 -0
- package/dist/chunk-5pwb7peq.js +9 -0
- package/dist/{chunk-syhskygx.js → chunk-6g29g0tk.js} +15 -24
- package/dist/{chunk-z1skzn1j.js → chunk-6tqh339a.js} +4 -3
- package/dist/{chunk-m18th1g5.js → chunk-75hgws2d.js} +18 -39
- package/dist/chunk-8y9b2m5a.js +53 -0
- package/dist/chunk-9cgzhc50.js +15 -0
- package/dist/chunk-9dzsj7f2.js +23 -0
- package/dist/{chunk-kv9hms2z.js → chunk-b23dvm2d.js} +2 -1
- package/dist/chunk-b6f6ez2w.js +8 -0
- package/dist/{chunk-zaje5tv4.js → chunk-c9vjf06h.js} +31 -30
- package/dist/chunk-d0p9787v.js +272 -0
- package/dist/{chunk-5qtpggzv.js → chunk-grfyngq0.js} +3 -2
- package/dist/{chunk-4n72ks5x.js → chunk-h4dyeeqg.js} +4 -5
- package/dist/{chunk-9nw6qekv.js → chunk-h9t48r9q.js} +2 -1
- package/dist/{chunk-7g8k2epn.js → chunk-k9dtqf1p.js} +6 -9
- package/dist/{chunk-26brdrbz.js → chunk-kje1qysg.js} +59 -46
- package/dist/{chunk-4mt568fz.js → chunk-m3grz32t.js} +4 -3
- package/dist/{chunk-yvyahr2h.js → chunk-mvrxngm7.js} +2 -1
- package/dist/{chunk-j28jpfv2.js → chunk-n6d9ncnv.js} +2 -1
- package/dist/chunk-ngrxhdkb.js +32 -0
- package/dist/{chunk-79mw7w0g.js → chunk-nvt16s80.js} +2 -1
- package/dist/{chunk-yd82hdxv.js → chunk-w1547qd4.js} +2 -1
- package/dist/chunk-yagxbm1r.js +9 -0
- package/dist/{chunk-snqdnkk7.js → chunk-z9a175mk.js} +4 -3
- package/dist/{chunk-r1kcf1q6.js → chunk-zwrygafm.js} +5 -6
- package/dist/errors/base-error.d.ts +5 -0
- package/dist/errors/enums/index.d.ts +1 -1
- package/dist/errors/enums/index.js +1 -1
- package/dist/errors/http-error.d.ts +11 -0
- package/dist/errors/index.d.ts +2 -2
- package/dist/errors/index.js +3 -3
- package/dist/errors/utils/index.d.ts +1 -0
- package/dist/errors/utils/index.js +16 -0
- package/dist/errors/utils/is-nowarajs-error.ts.d.ts +4 -0
- package/dist/modules/data/data.d.ts +2 -2
- package/dist/modules/data/enums/index.d.ts +1 -1
- package/dist/modules/data/enums/index.js +1 -1
- package/dist/modules/data/index.js +3 -3
- package/dist/modules/data/transformers/{camelCase.d.ts → camel-case.d.ts} +2 -2
- package/dist/modules/data/transformers/index.d.ts +4 -4
- package/dist/modules/data/transformers/index.js +4 -4
- package/dist/modules/data/transformers/{kebabCase.d.ts → kebab-case.d.ts} +2 -2
- package/dist/modules/data/transformers/{pascalCase.d.ts → pascal-case.d.ts} +2 -2
- package/dist/modules/data/transformers/{snakeCase.d.ts → snake-case.d.ts} +2 -2
- package/dist/modules/data/types/index.d.ts +10 -10
- package/dist/modules/data/types/{pascalCase.d.ts → pascal-case.d.ts} +1 -1
- package/dist/modules/data/types/{transformKeysCamelCase.d.ts → transform-keys-camel-case.d.ts} +1 -1
- package/dist/modules/data/types/{transformKeysKebabCase.d.ts → transform-keys-kebab-case.d.ts} +1 -1
- package/dist/modules/data/types/{transformKeysPascalCase.d.ts → transform-keys-pascal-case.d.ts} +1 -1
- package/dist/modules/data/types/{transformKeysSnakeCase.d.ts → transform-keys-snake-case.d.ts} +1 -1
- package/dist/modules/data/types/{transformObjectKeys.d.ts → transform-object-keys.d.ts} +8 -8
- package/dist/modules/database/enums/index.d.ts +2 -2
- package/dist/modules/database/enums/index.js +1 -1
- package/dist/modules/database/events/index.d.ts +2 -2
- package/dist/modules/database/events/{mssqlEventMap.d.ts → mssql-event-map.d.ts} +1 -1
- package/dist/modules/database/events/{tableEventMap.d.ts → table-event-map.d.ts} +1 -1
- package/dist/modules/database/index.js +8 -8
- package/dist/modules/database/mssql.d.ts +3 -3
- package/dist/modules/database/table.d.ts +2 -2
- package/dist/modules/database/types/index.d.ts +3 -3
- package/dist/modules/elysia/cache/cache.d.ts +15 -132
- package/dist/modules/elysia/cache/index.js +8 -6
- package/dist/modules/elysia/cache/types/{cacheOptions.d.ts → cache-options.d.ts} +1 -1
- package/dist/modules/elysia/cache/types/index.d.ts +1 -1
- package/dist/modules/elysia/cache/utils/index.d.ts +1 -1
- package/dist/modules/elysia/cache/utils/index.js +1 -1
- package/dist/modules/elysia/{crudSchema/crudSchema.d.ts → crud/crud-schema.d.ts} +4 -4
- package/dist/modules/elysia/crud/crud.d.ts +34 -42
- package/dist/modules/elysia/crud/index.d.ts +1 -0
- package/dist/modules/elysia/crud/index.js +125 -280
- package/dist/modules/elysia/crud/operations/count.d.ts +258 -0
- package/dist/modules/elysia/crud/operations/delete.d.ts +258 -0
- package/dist/modules/elysia/crud/operations/deleteOne.d.ts +258 -0
- package/dist/modules/elysia/crud/operations/find.d.ts +258 -0
- package/dist/modules/elysia/crud/operations/findOne.d.ts +258 -0
- package/dist/modules/elysia/crud/operations/index.d.ts +8 -0
- package/dist/modules/elysia/crud/operations/index.js +33 -0
- package/dist/modules/elysia/crud/operations/insert.d.ts +258 -0
- package/dist/modules/elysia/crud/operations/update.d.ts +268 -0
- package/dist/modules/elysia/crud/operations/updateOne.d.ts +268 -0
- package/dist/modules/elysia/{crudSchema/types/adaptiveWhereClauseSchema.d.ts → crud/types/adaptive-where-clause-schema.d.ts} +1 -1
- package/dist/modules/elysia/crud/types/count-response-200-schema.d.ts +5 -0
- package/dist/modules/elysia/crud/types/count-schema.d.ts +10 -0
- package/dist/modules/elysia/crud/types/crud-operation-base.d.ts +4 -0
- package/dist/modules/elysia/crud/types/crud-operation-count.d.ts +14 -0
- package/dist/modules/elysia/crud/types/crud-operation-delete-one.d.ts +14 -0
- package/dist/modules/elysia/crud/types/crud-operation-delete.d.ts +14 -0
- package/dist/modules/elysia/crud/types/crud-operation-find-one.d.ts +14 -0
- package/dist/modules/elysia/crud/types/crud-operation-find.d.ts +14 -0
- package/dist/modules/elysia/crud/types/crud-operation-insert.d.ts +14 -0
- package/dist/modules/elysia/crud/types/crud-operation-update-one.d.ts +16 -0
- package/dist/modules/elysia/crud/types/crud-operation-update.d.ts +14 -0
- package/dist/modules/elysia/crud/types/crud-operations.d.ts +19 -0
- package/dist/modules/elysia/crud/types/crud-options.d.ts +44 -0
- package/dist/modules/elysia/crud/types/crud-schema-models-type.d.ts +12 -0
- package/dist/modules/elysia/{crudSchema/types/crudSchemaOptions.d.ts → crud/types/crud-schema-options.d.ts} +1 -1
- package/dist/modules/elysia/crud/types/delete-schema.d.ts +12 -0
- package/dist/modules/elysia/crud/types/filter-schema.d.ts +9 -0
- package/dist/modules/elysia/crud/types/find-schema.d.ts +16 -0
- package/dist/modules/elysia/{crudSchema/utils/createIdParamSchema.d.ts → crud/types/id-param-schema.d.ts} +1 -1
- package/dist/modules/elysia/crud/types/index.d.ts +29 -11
- package/dist/modules/elysia/crud/types/insert-schema.d.ts +11 -0
- package/dist/modules/elysia/{crudSchema/types/orderSchema.d.ts → crud/types/order-schema.d.ts} +1 -1
- package/dist/modules/elysia/crud/types/properties-schema.d.ts +9 -0
- package/dist/modules/elysia/{crudSchema/types/qSchema.d.ts → crud/types/q-schema.d.ts} +1 -1
- package/dist/modules/elysia/crud/types/response-200-schema.d.ts +11 -0
- package/dist/modules/elysia/{crudSchema/types/selectedFieldSchema.d.ts → crud/types/selected-field-schema.d.ts} +1 -1
- package/dist/modules/elysia/crud/types/update-one-schema.d.ts +4 -0
- package/dist/modules/elysia/crud/types/update-schema.d.ts +13 -0
- package/dist/modules/elysia/{crudSchema/utils/createAdaptiveWhereClauseSchema.d.ts → crud/utils/create-adaptive-where-clause-schema.d.ts} +2 -2
- package/dist/modules/elysia/crud/utils/create-count-response-200-schema.d.ts +8 -0
- package/dist/modules/elysia/crud/utils/create-count-schema.d.ts +12 -0
- package/dist/modules/elysia/crud/utils/create-delete-schema.d.ts +12 -0
- package/dist/modules/elysia/{crudSchema/utils/createFiltersSchema.d.ts → crud/utils/create-filters-schema.d.ts} +3 -6
- package/dist/modules/elysia/crud/utils/create-find-schema.d.ts +12 -0
- package/dist/modules/elysia/crud/utils/create-id-param-schema.d.ts +2 -0
- package/dist/modules/elysia/crud/utils/create-insert-schema.d.ts +8 -0
- package/dist/modules/elysia/{crudSchema/utils/createOrderSchema.d.ts → crud/utils/create-order-schema.d.ts} +2 -2
- package/dist/modules/elysia/crud/utils/create-properties-schema.d.ts +12 -0
- package/dist/modules/elysia/{crudSchema/utils/createQSchema.d.ts → crud/utils/create-q-schema.d.ts} +2 -2
- package/dist/modules/elysia/crud/utils/create-response-200-schema.d.ts +3 -0
- package/dist/modules/elysia/{crudSchema/utils/createSelectedFieldsSchema.d.ts → crud/utils/create-selected-fields-schema.d.ts} +2 -2
- package/dist/modules/elysia/crud/utils/create-update-one-schema.d.ts +3 -0
- package/dist/modules/elysia/crud/utils/create-update-schema.d.ts +3 -0
- package/dist/modules/elysia/crud/utils/index.d.ts +16 -0
- package/dist/modules/elysia/{crudSchema → crud}/utils/index.js +7 -4
- package/dist/modules/elysia/{crudSchema/utils/isDateFromElysiaTypeBox.d.ts → crud/utils/is-date-from-elysia-typebox.d.ts} +1 -1
- package/dist/modules/elysia/db-resolver/db-resolver.d.ts +193 -0
- package/dist/modules/elysia/db-resolver/enums/db-resolver-error-keys.d.ts +3 -0
- package/dist/modules/elysia/db-resolver/enums/index.d.ts +1 -0
- package/dist/modules/elysia/{dbResolver → db-resolver}/enums/index.js +1 -1
- package/dist/modules/elysia/db-resolver/index.d.ts +1 -0
- package/dist/modules/elysia/db-resolver/index.js +18 -0
- package/dist/modules/elysia/error/error.d.ts +14 -3
- package/dist/modules/elysia/error/index.js +5 -5
- package/dist/modules/elysia/microservice/microservice.d.ts +17 -14
- package/dist/modules/elysia/rate-limit/enums/index.d.ts +1 -0
- package/dist/modules/elysia/{rateLimit → rate-limit}/enums/index.js +1 -1
- package/dist/modules/elysia/rate-limit/index.d.ts +1 -0
- package/dist/modules/elysia/{rateLimit → rate-limit}/index.js +12 -16
- package/dist/modules/elysia/{rateLimit/rateLimit.d.ts → rate-limit/rate-limit.d.ts} +5 -2
- package/dist/modules/elysia/rate-limit/types/index.d.ts +1 -0
- package/dist/modules/elysia/{rateLimit/types/rateLimitOptions.d.ts → rate-limit/types/rate-limit-options.d.ts} +1 -1
- package/dist/modules/jwt/enums/index.d.ts +2 -2
- package/dist/modules/jwt/enums/index.js +2 -2
- package/dist/modules/jwt/index.js +8 -15
- package/dist/modules/jwt/utils/index.d.ts +1 -1
- package/dist/modules/jwt/utils/index.js +3 -3
- package/dist/modules/kv-store/enums/index.d.ts +1 -0
- package/dist/modules/{kvStore → kv-store}/enums/index.js +1 -1
- package/dist/modules/kv-store/ioredis/index.d.ts +1 -0
- package/dist/modules/{kvStore → kv-store}/ioredis/index.js +7 -17
- package/dist/modules/{kvStore/ioredis/ioredisStore.d.ts → kv-store/ioredis/ioredis-store.d.ts} +1 -1
- package/dist/modules/kv-store/memory/index.d.ts +1 -0
- package/dist/modules/kv-store/memory/index.js +9 -0
- package/dist/modules/{kvStore/memory/memoryStore.d.ts → kv-store/memory/memory-store.d.ts} +1 -1
- package/dist/modules/kv-store/types/index.d.ts +1 -0
- package/dist/modules/logger/enums/index.d.ts +1 -1
- package/dist/modules/logger/enums/index.js +1 -1
- package/dist/modules/logger/enums/logger-error-keys.d.ts +6 -0
- package/dist/modules/logger/events/index.d.ts +1 -1
- package/dist/modules/logger/events/logger-events.d.ts +11 -0
- package/dist/modules/logger/index.js +40 -52
- package/dist/modules/logger/logger.d.ts +172 -172
- package/dist/modules/logger/sinks/console-logger.d.ts +22 -0
- package/dist/modules/logger/sinks/file-logger.d.ts +25 -0
- package/dist/modules/logger/sinks/index.d.ts +2 -0
- package/dist/modules/logger/{strategies → sinks}/index.js +6 -6
- package/dist/modules/logger/types/bodies-intersection.d.ts +2 -0
- package/dist/modules/logger/types/index.d.ts +6 -6
- package/dist/modules/logger/types/log-stream-chunk.d.ts +15 -0
- package/dist/modules/logger/types/{loggerStrategy.d.ts → logger-sink.d.ts} +3 -3
- package/dist/modules/logger/types/sink-body.d.ts +2 -0
- package/dist/modules/logger/types/sink-map.d.ts +2 -0
- package/dist/modules/mailer/enums/index.d.ts +1 -1
- package/dist/modules/mailer/enums/index.js +1 -1
- package/dist/modules/mailer/index.js +5 -8
- package/dist/modules/mailer/smtp.d.ts +1 -1
- package/dist/modules/mailer/types/index.d.ts +3 -3
- package/dist/modules/mailer/types/{smtpOptions.d.ts → smtp-options.d.ts} +2 -2
- package/dist/modules/repository/index.js +6 -6
- package/dist/modules/repository/repository.d.ts +5 -5
- package/dist/modules/repository/types/filter.d.ts +2 -2
- package/dist/modules/repository/types/index.d.ts +6 -6
- package/dist/modules/repository/types/{queryOptionsExtendPagination.d.ts → query-options-extend-pagination.d.ts} +1 -1
- package/dist/modules/repository/types/{queryOptionsExtendStream.d.ts → query-options-extend-stream.d.ts} +1 -1
- package/dist/modules/repository/types/{queryOptions.d.ts → query-options.d.ts} +4 -4
- package/dist/modules/singleton-manager/enums/index.d.ts +1 -0
- package/dist/modules/{singletonManager → singleton-manager}/enums/index.js +1 -1
- package/dist/modules/singleton-manager/enums/singleton-manager-error-keys.d.ts +4 -0
- package/dist/modules/singleton-manager/index.d.ts +1 -0
- package/dist/modules/singleton-manager/index.js +9 -0
- package/dist/modules/{singletonManager/singletonManager.d.ts → singleton-manager/singleton-manager.d.ts} +9 -11
- package/dist/modules/totp/enums/index.d.ts +1 -1
- package/dist/modules/totp/enums/index.js +1 -1
- package/dist/modules/totp/hotp.d.ts +1 -1
- package/dist/modules/totp/index.d.ts +1 -1
- package/dist/modules/totp/index.js +7 -13
- package/dist/modules/totp/{otpAuthUri.d.ts → otp-auth-uri.d.ts} +1 -1
- package/dist/modules/totp/totp.d.ts +2 -2
- package/dist/modules/totp/types/index.d.ts +3 -3
- package/dist/modules/totp/types/{verifyOptions.d.ts → verify-options.d.ts} +1 -1
- package/dist/modules/totp/utils/index.d.ts +5 -5
- package/dist/modules/totp/utils/index.js +7 -12
- package/dist/modules/typed-event-emitter/index.d.ts +1 -0
- package/dist/modules/{typedEventEmitter → typed-event-emitter}/index.js +1 -1
- package/dist/modules/typed-event-emitter/typed-event-emitter.d.ts +221 -0
- package/dist/modules/typed-event-emitter/types/index.d.ts +1 -0
- package/dist/shared/enums/index.d.ts +1 -0
- package/dist/{utils → shared}/enums/index.js +1 -1
- package/dist/shared/types/index.d.ts +3 -0
- package/dist/shared/types/tflatten.d.ts +5 -0
- package/dist/shared/utils/flatten.d.ts +3 -0
- package/dist/{utils → shared/utils}/index.d.ts +2 -1
- package/dist/{utils → shared/utils}/index.js +10 -9
- package/package.json +39 -40
- package/CHANGELOG.md +0 -98
- package/dist/chunk-45gt9273.js +0 -8
- package/dist/chunk-4xs0e8cm.js +0 -9
- package/dist/chunk-683sda6e.js +0 -28
- package/dist/chunk-7jsxw1ts.js +0 -40
- package/dist/chunk-dwfyt1m6.js +0 -6
- package/dist/chunk-g821m8gq.js +0 -77
- package/dist/chunk-hcc6g1fd.js +0 -7
- package/dist/chunk-ncc0m208.js +0 -8
- package/dist/chunk-vknq69e0.js +0 -23
- package/dist/chunk-y78xrx17.js +0 -54
- package/dist/errors/baseError.d.ts +0 -9
- package/dist/errors/httpError.d.ts +0 -14
- package/dist/errors/types/baseErrorOptions.d.ts +0 -15
- package/dist/errors/types/httpErrorOptions.d.ts +0 -13
- package/dist/errors/types/index.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationBaseOptions.d.ts +0 -6
- package/dist/modules/elysia/crud/types/crudOperationCountOptions.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationDeleteOneOptions.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationDeleteOptions.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationFindOneOptions.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationFindOptions.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationInsertOptions.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationUpdateOneOptions.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationUpdateOptions.d.ts +0 -2
- package/dist/modules/elysia/crud/types/crudOperationsOptions.d.ts +0 -18
- package/dist/modules/elysia/crud/types/crudOptions.d.ts +0 -25
- package/dist/modules/elysia/crudSchema/index.d.ts +0 -1
- package/dist/modules/elysia/crudSchema/index.js +0 -11
- package/dist/modules/elysia/crudSchema/types/crudModelsType.d.ts +0 -14
- package/dist/modules/elysia/crudSchema/types/index.d.ts +0 -8
- package/dist/modules/elysia/crudSchema/types/queryOptionsBuilderOptions.d.ts +0 -11
- package/dist/modules/elysia/crudSchema/utils/createCountResponse200Schema.d.ts +0 -11
- package/dist/modules/elysia/crudSchema/utils/createCountSchema.d.ts +0 -16
- package/dist/modules/elysia/crudSchema/utils/createDeleteSchema.d.ts +0 -18
- package/dist/modules/elysia/crudSchema/utils/createFindSchema.d.ts +0 -22
- package/dist/modules/elysia/crudSchema/utils/createInsertSchema.d.ts +0 -8
- package/dist/modules/elysia/crudSchema/utils/createPropertiesSchema.d.ts +0 -12
- package/dist/modules/elysia/crudSchema/utils/createResponse200Schema.d.ts +0 -5
- package/dist/modules/elysia/crudSchema/utils/createUpdateOneSchema.d.ts +0 -4
- package/dist/modules/elysia/crudSchema/utils/createUpdateSchema.d.ts +0 -10
- package/dist/modules/elysia/crudSchema/utils/index.d.ts +0 -15
- package/dist/modules/elysia/dbResolver/dbResolver.d.ts +0 -17
- package/dist/modules/elysia/dbResolver/enums/dbResolverErrorKeys.d.ts +0 -3
- package/dist/modules/elysia/dbResolver/enums/index.d.ts +0 -1
- package/dist/modules/elysia/dbResolver/index.d.ts +0 -1
- package/dist/modules/elysia/dbResolver/index.js +0 -18
- package/dist/modules/elysia/dbResolver/types/dynamicDbOptions.d.ts +0 -7
- package/dist/modules/elysia/dbResolver/types/index.d.ts +0 -1
- package/dist/modules/elysia/rateLimit/enums/index.d.ts +0 -1
- package/dist/modules/elysia/rateLimit/index.d.ts +0 -1
- package/dist/modules/elysia/rateLimit/types/index.d.ts +0 -1
- package/dist/modules/kvStore/enums/index.d.ts +0 -1
- package/dist/modules/kvStore/ioredis/index.d.ts +0 -1
- package/dist/modules/kvStore/memory/index.d.ts +0 -1
- package/dist/modules/kvStore/memory/index.js +0 -9
- package/dist/modules/kvStore/types/index.d.ts +0 -1
- package/dist/modules/kvStore/types/index.js +0 -1
- package/dist/modules/logger/enums/loggerErrorKeys.d.ts +0 -6
- package/dist/modules/logger/events/loggerEvents.d.ts +0 -11
- package/dist/modules/logger/strategies/consoleLogger.d.ts +0 -22
- package/dist/modules/logger/strategies/fileLogger.d.ts +0 -25
- package/dist/modules/logger/strategies/index.d.ts +0 -2
- package/dist/modules/logger/types/bodiesIntersection.d.ts +0 -2
- package/dist/modules/logger/types/logStreamChunk.d.ts +0 -15
- package/dist/modules/logger/types/strategyBody.d.ts +0 -2
- package/dist/modules/logger/types/strategyMap.d.ts +0 -2
- package/dist/modules/singletonManager/enums/index.d.ts +0 -1
- package/dist/modules/singletonManager/enums/singletonManagerErrorKeys.d.ts +0 -4
- package/dist/modules/singletonManager/index.d.ts +0 -1
- package/dist/modules/singletonManager/index.js +0 -9
- package/dist/modules/typedEventEmitter/index.d.ts +0 -1
- package/dist/modules/typedEventEmitter/typedEventEmitter.d.ts +0 -221
- package/dist/modules/typedEventEmitter/types/index.d.ts +0 -1
- package/dist/modules/typedEventEmitter/types/index.js +0 -1
- package/dist/utils/enums/index.d.ts +0 -1
- package/dist/utils/types/index.d.ts +0 -2
- package/dist/utils/types/index.js +0 -1
- package/dist/errors/enums/{httpErrorStatusCodes.d.ts → http-status-codes.d.ts} +0 -0
- package/dist/modules/data/enums/{dataErrorKeys.d.ts → data-error-keys.d.ts} +0 -0
- package/dist/modules/data/types/{camelCase.d.ts → camel-case.d.ts} +0 -0
- package/dist/modules/data/types/{caseTransformer.d.ts → case-transformer.d.ts} +0 -0
- package/dist/modules/data/types/{kebabCase.d.ts → kebab-case.d.ts} +0 -0
- package/dist/modules/data/types/{snakeCase.d.ts → snake-case.d.ts} +0 -0
- package/dist/modules/database/enums/{databaseErrorKeys.d.ts → database-error-keys.d.ts} +15 -15
- package/dist/modules/database/enums/{mssqlErrorCode.d.ts → mssql-error-code.d.ts} +12 -12
- package/dist/modules/database/types/{mssqlDatabaseOption.d.ts → mssql-database-option.d.ts} +0 -0
- package/dist/modules/database/types/{mssqlEventLog.d.ts → mssql-event-log.d.ts} +0 -0
- package/dist/modules/database/types/{queryContext.d.ts → query-context.d.ts} +0 -0
- package/dist/modules/elysia/cache/types/{cacheItem.d.ts → cache-item.d.ts} +0 -0
- package/dist/modules/elysia/cache/utils/{generateCacheKey.d.ts → generate-cache-key.d.ts} +0 -0
- package/dist/modules/elysia/{crudSchema/types/crudSchemaOperations.d.ts → crud/types/crud-schema-operations.d.ts} +0 -0
- package/dist/modules/elysia/{rateLimit/enums/rateLimitErrorKeys.d.ts → rate-limit/enums/rate-limit-error-keys.d.ts} +0 -0
- package/dist/{errors → modules/elysia/rate-limit}/types/index.js +0 -0
- package/dist/modules/jwt/enums/{jwtErrorKeys.d.ts → jwt-error-keys.d.ts} +2 -2
- package/dist/modules/jwt/enums/{parseHumanTimeToSecondsErrorKeys.d.ts → parse-human-time-to-seconds-error-keys.d.ts} +0 -0
- package/dist/modules/jwt/utils/{parseHumanTimeToSeconds.d.ts → parse-human-time-to-seconds.d.ts} +0 -0
- package/dist/modules/{kvStore/enums/kvStoreErrorKeys.d.ts → kv-store/enums/kv-store-error-keys.d.ts} +2 -2
- package/dist/modules/{kvStore/memory/types/memoryStoreEntry.d.ts → kv-store/memory/types/memory-store-entry.d.ts} +0 -0
- package/dist/modules/{elysia/crudSchema → kv-store}/types/index.js +0 -0
- package/dist/modules/{kvStore/types/kvStore.d.ts → kv-store/types/kv-store.d.ts} +0 -0
- package/dist/modules/logger/types/{logLevels.d.ts → log-levels.d.ts} +0 -0
- package/dist/modules/mailer/enums/{mailerErrorKeys.d.ts → mailer-error-keys.d.ts} +1 -1
- package/dist/modules/mailer/types/{smtpCredentials.d.ts → smtp-credentials.d.ts} +0 -0
- package/dist/modules/mailer/types/{smtpPoolOptions.d.ts → smtp-pool-options.d.ts} +0 -0
- package/dist/modules/repository/types/{adaptiveWhereClause.d.ts → adaptive-where-clause.d.ts} +0 -0
- package/dist/modules/repository/types/{orderByItem.d.ts → order-by-item.d.ts} +0 -0
- package/dist/modules/repository/types/{selectedFields.d.ts → selected-fields.d.ts} +0 -0
- package/dist/modules/totp/enums/{totpErrorKeys.d.ts → totp-error-keys.d.ts} +2 -2
- /package/dist/modules/totp/types/{otpAuthUri.d.ts → otp-auth-uri.d.ts} +0 -0
- /package/dist/modules/totp/types/{totpOptions.d.ts → totp-options.d.ts} +0 -0
- /package/dist/modules/totp/utils/{createCounterBuffer.d.ts → create-counter-buffer.d.ts} +0 -0
- /package/dist/modules/totp/utils/{dynamicTruncation.d.ts → dynamic-truncation.d.ts} +0 -0
- /package/dist/modules/totp/utils/{generateHmac.d.ts → generate-hmac.d.ts} +0 -0
- /package/dist/modules/totp/utils/{generateSecretBytes.d.ts → generate-secret-bytes.d.ts} +0 -0
- /package/dist/modules/totp/utils/{timeRemaining.d.ts → time-remaining.d.ts} +0 -0
- /package/dist/modules/{typedEventEmitter/types/eventMap.d.ts → typed-event-emitter/types/event-map.d.ts} +0 -0
- /package/dist/modules/{elysia/dbResolver → typed-event-emitter}/types/index.js +0 -0
- /package/dist/{utils/enums/utilsErrorKeys.d.ts → shared/enums/utils-error-keys.d.ts} +0 -0
- /package/dist/{modules/elysia/rateLimit → shared}/types/index.js +0 -0
- /package/dist/{utils/types/renameKey.d.ts → shared/types/rename-key.d.ts} +0 -0
- /package/dist/{utils/types/streamWithAsyncIterable.d.ts → shared/types/stream-with-async-iterable.d.ts} +0 -0
- /package/dist/{utils → shared/utils}/env.d.ts +0 -0
- /package/dist/{utils/isDateString.d.ts → shared/utils/is-date-string.d.ts} +0 -0
- /package/dist/{utils → shared/utils}/stream.d.ts +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Static, TObject, TUnion } from '@sinclair/typebox/type';
|
|
2
|
+
import type { TFlatten } from '../../../../shared/types/tflatten';
|
|
3
|
+
import type { AdaptiveWhereClauseSchema } from './adaptive-where-clause-schema';
|
|
4
|
+
export type PropertiesSchema<TSourceSchema extends TObject> = TObject<{
|
|
5
|
+
[K in keyof Static<TSourceSchema>]: TFlatten<TUnion<[
|
|
6
|
+
AdaptiveWhereClauseSchema<TSourceSchema['properties'][K]>,
|
|
7
|
+
TSourceSchema['properties'][K]
|
|
8
|
+
]>>;
|
|
9
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TArray, TKeyOf, TNumber, TObject, TString, TUnion } from '@sinclair/typebox';
|
|
1
|
+
import type { TArray, TKeyOf, TNumber, TObject, TString, TUnion } from '@sinclair/typebox/type';
|
|
2
2
|
export type QSchema<TSourceSchema extends TObject> = TUnion<[
|
|
3
3
|
TObject<{
|
|
4
4
|
selectedFields: TUnion<[
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Static, TArray, TNull, TObject, TPartial, TString, TUnion } from '@sinclair/typebox/type';
|
|
2
|
+
import type { TFlatten } from '../../../../shared/types/tflatten';
|
|
3
|
+
export type Response200Schema<TSourceResponseSchema extends TObject> = TObject<{
|
|
4
|
+
message: TString;
|
|
5
|
+
content: TArray<TPartial<TObject<{
|
|
6
|
+
[K in keyof Static<TSourceResponseSchema>]: TFlatten<TUnion<[
|
|
7
|
+
TSourceResponseSchema['properties'][K],
|
|
8
|
+
TNull
|
|
9
|
+
]>>;
|
|
10
|
+
}>>>;
|
|
11
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TArray, TKeyOf, TLiteral, TObject, TUnion } from '@sinclair/typebox';
|
|
1
|
+
import type { TArray, TKeyOf, TLiteral, TObject, TUnion } from '@sinclair/typebox/type';
|
|
2
2
|
export type SelectedFieldsSchema<TSourceSchema extends TObject> = TUnion<[
|
|
3
3
|
TKeyOf<TSourceSchema>,
|
|
4
4
|
TLiteral<'*'>,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TArray, TObject, TOptional, TPartial, TUnion } from '@sinclair/typebox/type';
|
|
2
|
+
import type { FiltersSchema } from '../../../../modules/elysia/crud/types/filter-schema';
|
|
3
|
+
import type { SelectedFieldsSchema } from '../../../../modules/elysia/crud/types/selected-field-schema';
|
|
4
|
+
export type UpdateSchema<TSourceUpdateSchema extends TObject> = TObject<{
|
|
5
|
+
queryOptions: TObject<{
|
|
6
|
+
selectedFields: TOptional<SelectedFieldsSchema<TSourceUpdateSchema>>;
|
|
7
|
+
filters: TUnion<[
|
|
8
|
+
TPartial<FiltersSchema<TSourceUpdateSchema>>,
|
|
9
|
+
TArray<TPartial<FiltersSchema<TSourceUpdateSchema>>>
|
|
10
|
+
]>;
|
|
11
|
+
}>;
|
|
12
|
+
data: TPartial<TSourceUpdateSchema>;
|
|
13
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TSchema } from '@sinclair/typebox';
|
|
2
|
-
import type { AdaptiveWhereClauseSchema } from '../../../../modules/elysia/
|
|
1
|
+
import { type TSchema } from '@sinclair/typebox/type';
|
|
2
|
+
import type { AdaptiveWhereClauseSchema } from '../../../../modules/elysia/crud/types/adaptive-where-clause-schema';
|
|
3
3
|
/**
|
|
4
4
|
* Creates an adaptive where clause schema with appropriate operators based on the field type.
|
|
5
5
|
*
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CountResponse200Schema } from '../../../../modules/elysia/crud/types/count-response-200-schema';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a schema for the response of a count operation.
|
|
4
|
+
* The response will contain a message and the count as content.
|
|
5
|
+
*
|
|
6
|
+
* @returns The schema for the count response.
|
|
7
|
+
*/
|
|
8
|
+
export declare const createCountResponse200Schema: () => CountResponse200Schema;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { CountSchema } from '../../../../modules/elysia/crud/types/count-schema';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a count schema for counting records with optional filtering.
|
|
5
|
+
*
|
|
6
|
+
* @template TSourceSchema - The TypeBox object schema to create count capabilities for
|
|
7
|
+
*
|
|
8
|
+
* @param schema - The base object schema to create count schema for.
|
|
9
|
+
*
|
|
10
|
+
* @returns A TypeBox partial object schema containing queryOptions with filters for counting operations
|
|
11
|
+
*/
|
|
12
|
+
export declare const createCountSchema: <const TSourceCountSchema extends TObject>(schema: TSourceCountSchema) => CountSchema<TSourceCountSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { DeleteSchema } from '../../../../modules/elysia/crud/types/delete-schema';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a delete schema for deleting records with optional selected fields and required filtering.
|
|
5
|
+
*
|
|
6
|
+
* @template TSourceSchema - The TypeBox object schema to create delete capabilities for
|
|
7
|
+
*
|
|
8
|
+
* @param schema - The base object schema to create delete schema for.
|
|
9
|
+
*
|
|
10
|
+
* @returns A TypeBox object schema containing queryOptions with selected fields and filters for delete operations
|
|
11
|
+
*/
|
|
12
|
+
export declare const createDeleteSchema: <TSourceDeleteSchema extends TObject>(schema: TSourceDeleteSchema) => DeleteSchema<TSourceDeleteSchema>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import { createPropertiesSchema } from './createPropertiesSchema';
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { FiltersSchema } from '../../../../modules/elysia/crud/types/filter-schema';
|
|
4
3
|
/**
|
|
5
4
|
* Creates a filters schema that combines search queries and property filters.
|
|
6
5
|
* The resulting schema includes a $q property for query operations and properties
|
|
@@ -12,6 +11,4 @@ import { createPropertiesSchema } from './createPropertiesSchema';
|
|
|
12
11
|
*
|
|
13
12
|
* @returns A composite TypeBox schema containing query and property filter capabilities
|
|
14
13
|
*/
|
|
15
|
-
export declare const createFiltersSchema: <TSourceSchema extends TObject>(schema: TSourceSchema) =>
|
|
16
|
-
$q: QSchema<TSourceSchema>;
|
|
17
|
-
}>, ReturnType<typeof createPropertiesSchema<TSourceSchema>>]>;
|
|
14
|
+
export declare const createFiltersSchema: <TSourceSchema extends TObject>(schema: TSourceSchema) => FiltersSchema<TSourceSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { FindSchema } from '../../../../modules/elysia/crud/types/find-schema';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a find schema.
|
|
5
|
+
*
|
|
6
|
+
* @template TSourceSchema - The TypeBox object schema to create search capabilities for.
|
|
7
|
+
*
|
|
8
|
+
* @param schema - The base object schema to create search schemas for.
|
|
9
|
+
*
|
|
10
|
+
* @returns A TypeBox object schema for search with selected fields, order by, filters, limit, and offset
|
|
11
|
+
*/
|
|
12
|
+
export declare const createFindSchema: <TSourceFindSchema extends TObject>(schema: TSourceFindSchema) => FindSchema<TSourceFindSchema>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TArray, TObject, TOptional, TUnion } from '@sinclair/typebox/type';
|
|
2
|
+
import type { SelectedFieldsSchema } from '../../../../modules/elysia/crud/types/selected-field-schema';
|
|
3
|
+
export declare const createInsertSchema: <TSourceInsertSchema extends TObject>(schema: TSourceInsertSchema) => TObject<{
|
|
4
|
+
queryOptions: TOptional<TObject<{
|
|
5
|
+
selectedFields: SelectedFieldsSchema<TSourceInsertSchema>;
|
|
6
|
+
}>>;
|
|
7
|
+
data: TUnion<[TSourceInsertSchema, TArray<TSourceInsertSchema>]>;
|
|
8
|
+
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TObject } from '@sinclair/typebox';
|
|
2
|
-
import type { OrderSchema } from '../../../../modules/elysia/
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { OrderSchema } from '../../../../modules/elysia/crud/types/order-schema';
|
|
3
3
|
/**
|
|
4
4
|
* Creates order schema for query options.
|
|
5
5
|
*
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { PropertiesSchema } from '../../../../modules/elysia/crud/types/properties-schema';
|
|
3
|
+
/**
|
|
4
|
+
* Creates property schemas.
|
|
5
|
+
*
|
|
6
|
+
* @template TSourceSchema - The TypeBox object schema to create property schemas for
|
|
7
|
+
*
|
|
8
|
+
* @param schema - The base object schema to create property schemas for.
|
|
9
|
+
*
|
|
10
|
+
* @returns Record of property schemas with union types
|
|
11
|
+
*/
|
|
12
|
+
export declare const createPropertiesSchema: <TSourceSchema extends TObject>(schema: TSourceSchema) => PropertiesSchema<TSourceSchema>;
|
package/dist/modules/elysia/{crudSchema/utils/createQSchema.d.ts → crud/utils/create-q-schema.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TObject } from '@sinclair/typebox';
|
|
2
|
-
import type { QSchema } from '../../../../modules/elysia/
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { QSchema } from '../../../../modules/elysia/crud/types/q-schema';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a search query schema
|
|
5
5
|
*
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { Response200Schema } from '../../../../modules/elysia/crud/types/response-200-schema';
|
|
3
|
+
export declare const createResponse200Schema: <TSourceResponseSchema extends TObject>(schema: TSourceResponseSchema) => Response200Schema<TSourceResponseSchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TObject } from '@sinclair/typebox';
|
|
2
|
-
import type { SelectedFieldsSchema } from '../../../../modules/elysia/
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { SelectedFieldsSchema } from '../../../../modules/elysia/crud/types/selected-field-schema';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a schema for field selection in search results.
|
|
5
5
|
*
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { UpdateOneSchema } from '../../../../modules/elysia/crud/types/update-one-schema';
|
|
3
|
+
export declare const createUpdateOneSchema: <TSourceUpdateSchema extends TObject>(schema: TSourceUpdateSchema) => UpdateOneSchema<TSourceUpdateSchema>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TObject } from '@sinclair/typebox/type';
|
|
2
|
+
import type { UpdateSchema } from '../../../../modules/elysia/crud/types/update-schema';
|
|
3
|
+
export declare const createUpdateSchema: <TSourceUpdateSchema extends TObject>(schema: TSourceUpdateSchema) => UpdateSchema<TSourceUpdateSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { createAdaptiveWhereClauseSchema } from './create-adaptive-where-clause-schema';
|
|
2
|
+
export { createCountResponse200Schema } from './create-count-response-200-schema';
|
|
3
|
+
export { createCountSchema } from './create-count-schema';
|
|
4
|
+
export { createDeleteSchema } from './create-delete-schema';
|
|
5
|
+
export { createFiltersSchema } from './create-filters-schema';
|
|
6
|
+
export { createFindSchema } from './create-find-schema';
|
|
7
|
+
export { createIdParamSchema } from './create-id-param-schema';
|
|
8
|
+
export { createInsertSchema } from './create-insert-schema';
|
|
9
|
+
export { createOrderSchema } from './create-order-schema';
|
|
10
|
+
export { createPropertiesSchema } from './create-properties-schema';
|
|
11
|
+
export { createQSchema } from './create-q-schema';
|
|
12
|
+
export { createResponse200Schema } from './create-response-200-schema';
|
|
13
|
+
export { createSelectedFieldsSchema } from './create-selected-fields-schema';
|
|
14
|
+
export { createUpdateOneSchema } from './create-update-one-schema';
|
|
15
|
+
export { createUpdateSchema } from './create-update-schema';
|
|
16
|
+
export { isDateFromElysiaTypeBox } from './is-date-from-elysia-typebox';
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
createFiltersSchema,
|
|
8
8
|
createFindSchema,
|
|
9
9
|
createIdParamSchema,
|
|
10
|
+
createInsertSchema,
|
|
10
11
|
createOrderSchema,
|
|
11
12
|
createPropertiesSchema,
|
|
12
13
|
createQSchema,
|
|
@@ -15,10 +16,11 @@ import {
|
|
|
15
16
|
createUpdateOneSchema,
|
|
16
17
|
createUpdateSchema,
|
|
17
18
|
isDateFromElysiaTypeBox
|
|
18
|
-
} from "../../../../chunk-
|
|
19
|
-
import"../../../../chunk-
|
|
20
|
-
import"../../../../chunk-
|
|
21
|
-
import"../../../../chunk-
|
|
19
|
+
} from "../../../../chunk-kje1qysg.js";
|
|
20
|
+
import"../../../../chunk-9dzsj7f2.js";
|
|
21
|
+
import"../../../../chunk-h4dyeeqg.js";
|
|
22
|
+
import"../../../../chunk-n6d9ncnv.js";
|
|
23
|
+
import"../../../../chunk-9cgzhc50.js";
|
|
22
24
|
export {
|
|
23
25
|
isDateFromElysiaTypeBox,
|
|
24
26
|
createUpdateSchema,
|
|
@@ -28,6 +30,7 @@ export {
|
|
|
28
30
|
createQSchema,
|
|
29
31
|
createPropertiesSchema,
|
|
30
32
|
createOrderSchema,
|
|
33
|
+
createInsertSchema,
|
|
31
34
|
createIdParamSchema,
|
|
32
35
|
createFindSchema,
|
|
33
36
|
createFiltersSchema,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TSchema } from '@sinclair/typebox/type';
|
|
2
2
|
export declare const isDateFromElysiaTypeBox: <TFieldSchema extends TSchema>(schema: TFieldSchema) => boolean;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { MSSQL } from '../../../modules/database/mssql';
|
|
3
|
+
import type { MSSQLDatabaseOptions } from '../../../modules/database/types/mssql-database-option';
|
|
4
|
+
export declare const dbResolver: (prefixDatabaseName?: string) => Elysia<"", {
|
|
5
|
+
decorator: {};
|
|
6
|
+
store: {};
|
|
7
|
+
derive: {};
|
|
8
|
+
resolve: {};
|
|
9
|
+
}, {
|
|
10
|
+
typebox: {
|
|
11
|
+
readonly dbResolverHeader: import("@sinclair/typebox").TObject<{
|
|
12
|
+
'database-using': import("@sinclair/typebox").TString;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
error: {};
|
|
16
|
+
}, {
|
|
17
|
+
schema: {};
|
|
18
|
+
standaloneSchema: {};
|
|
19
|
+
macro: Partial<{
|
|
20
|
+
readonly injectDynamicDB: Omit<MSSQLDatabaseOptions, "databaseName">;
|
|
21
|
+
readonly injectStaticDB: string;
|
|
22
|
+
}>;
|
|
23
|
+
macroFn: {
|
|
24
|
+
readonly injectDynamicDB: (config: Omit<MSSQLDatabaseOptions, "databaseName">) => {
|
|
25
|
+
readonly headers: "dbResolverHeader";
|
|
26
|
+
readonly resolve: ({ headers }: {
|
|
27
|
+
body: unknown;
|
|
28
|
+
query: Record<string, string>;
|
|
29
|
+
params: Record<string, string>;
|
|
30
|
+
headers: Record<string, string | undefined>;
|
|
31
|
+
cookie: Record<string, import("elysia").Cookie<unknown>>;
|
|
32
|
+
server: import("elysia/universal/server").Server | null;
|
|
33
|
+
redirect: import("elysia").redirect;
|
|
34
|
+
set: {
|
|
35
|
+
headers: import("elysia").HTTPHeaders;
|
|
36
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
37
|
+
redirect?: string;
|
|
38
|
+
cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
|
|
39
|
+
};
|
|
40
|
+
path: string;
|
|
41
|
+
route: string;
|
|
42
|
+
request: Request;
|
|
43
|
+
store: {};
|
|
44
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 100 | 102 | 207 | 208 | 101 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 420 ? {
|
|
45
|
+
readonly 100: "Continue";
|
|
46
|
+
readonly 101: "Switching Protocols";
|
|
47
|
+
readonly 102: "Processing";
|
|
48
|
+
readonly 103: "Early Hints";
|
|
49
|
+
readonly 200: "OK";
|
|
50
|
+
readonly 201: "Created";
|
|
51
|
+
readonly 202: "Accepted";
|
|
52
|
+
readonly 203: "Non-Authoritative Information";
|
|
53
|
+
readonly 204: "No Content";
|
|
54
|
+
readonly 205: "Reset Content";
|
|
55
|
+
readonly 206: "Partial Content";
|
|
56
|
+
readonly 207: "Multi-Status";
|
|
57
|
+
readonly 208: "Already Reported";
|
|
58
|
+
readonly 300: "Multiple Choices";
|
|
59
|
+
readonly 301: "Moved Permanently";
|
|
60
|
+
readonly 302: "Found";
|
|
61
|
+
readonly 303: "See Other";
|
|
62
|
+
readonly 304: "Not Modified";
|
|
63
|
+
readonly 307: "Temporary Redirect";
|
|
64
|
+
readonly 308: "Permanent Redirect";
|
|
65
|
+
readonly 400: "Bad Request";
|
|
66
|
+
readonly 401: "Unauthorized";
|
|
67
|
+
readonly 402: "Payment Required";
|
|
68
|
+
readonly 403: "Forbidden";
|
|
69
|
+
readonly 404: "Not Found";
|
|
70
|
+
readonly 405: "Method Not Allowed";
|
|
71
|
+
readonly 406: "Not Acceptable";
|
|
72
|
+
readonly 407: "Proxy Authentication Required";
|
|
73
|
+
readonly 408: "Request Timeout";
|
|
74
|
+
readonly 409: "Conflict";
|
|
75
|
+
readonly 410: "Gone";
|
|
76
|
+
readonly 411: "Length Required";
|
|
77
|
+
readonly 412: "Precondition Failed";
|
|
78
|
+
readonly 413: "Payload Too Large";
|
|
79
|
+
readonly 414: "URI Too Long";
|
|
80
|
+
readonly 415: "Unsupported Media Type";
|
|
81
|
+
readonly 416: "Range Not Satisfiable";
|
|
82
|
+
readonly 417: "Expectation Failed";
|
|
83
|
+
readonly 418: "I'm a teapot";
|
|
84
|
+
readonly 420: "Enhance Your Calm";
|
|
85
|
+
readonly 421: "Misdirected Request";
|
|
86
|
+
readonly 422: "Unprocessable Content";
|
|
87
|
+
readonly 423: "Locked";
|
|
88
|
+
readonly 424: "Failed Dependency";
|
|
89
|
+
readonly 425: "Too Early";
|
|
90
|
+
readonly 426: "Upgrade Required";
|
|
91
|
+
readonly 428: "Precondition Required";
|
|
92
|
+
readonly 429: "Too Many Requests";
|
|
93
|
+
readonly 431: "Request Header Fields Too Large";
|
|
94
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
95
|
+
readonly 500: "Internal Server Error";
|
|
96
|
+
readonly 501: "Not Implemented";
|
|
97
|
+
readonly 502: "Bad Gateway";
|
|
98
|
+
readonly 503: "Service Unavailable";
|
|
99
|
+
readonly 504: "Gateway Timeout";
|
|
100
|
+
readonly 505: "HTTP Version Not Supported";
|
|
101
|
+
readonly 506: "Variant Also Negotiates";
|
|
102
|
+
readonly 507: "Insufficient Storage";
|
|
103
|
+
readonly 508: "Loop Detected";
|
|
104
|
+
readonly 510: "Not Extended";
|
|
105
|
+
readonly 511: "Network Authentication Required";
|
|
106
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
107
|
+
readonly Continue: 100;
|
|
108
|
+
readonly "Switching Protocols": 101;
|
|
109
|
+
readonly Processing: 102;
|
|
110
|
+
readonly "Early Hints": 103;
|
|
111
|
+
readonly OK: 200;
|
|
112
|
+
readonly Created: 201;
|
|
113
|
+
readonly Accepted: 202;
|
|
114
|
+
readonly "Non-Authoritative Information": 203;
|
|
115
|
+
readonly "No Content": 204;
|
|
116
|
+
readonly "Reset Content": 205;
|
|
117
|
+
readonly "Partial Content": 206;
|
|
118
|
+
readonly "Multi-Status": 207;
|
|
119
|
+
readonly "Already Reported": 208;
|
|
120
|
+
readonly "Multiple Choices": 300;
|
|
121
|
+
readonly "Moved Permanently": 301;
|
|
122
|
+
readonly Found: 302;
|
|
123
|
+
readonly "See Other": 303;
|
|
124
|
+
readonly "Not Modified": 304;
|
|
125
|
+
readonly "Temporary Redirect": 307;
|
|
126
|
+
readonly "Permanent Redirect": 308;
|
|
127
|
+
readonly "Bad Request": 400;
|
|
128
|
+
readonly Unauthorized: 401;
|
|
129
|
+
readonly "Payment Required": 402;
|
|
130
|
+
readonly Forbidden: 403;
|
|
131
|
+
readonly "Not Found": 404;
|
|
132
|
+
readonly "Method Not Allowed": 405;
|
|
133
|
+
readonly "Not Acceptable": 406;
|
|
134
|
+
readonly "Proxy Authentication Required": 407;
|
|
135
|
+
readonly "Request Timeout": 408;
|
|
136
|
+
readonly Conflict: 409;
|
|
137
|
+
readonly Gone: 410;
|
|
138
|
+
readonly "Length Required": 411;
|
|
139
|
+
readonly "Precondition Failed": 412;
|
|
140
|
+
readonly "Payload Too Large": 413;
|
|
141
|
+
readonly "URI Too Long": 414;
|
|
142
|
+
readonly "Unsupported Media Type": 415;
|
|
143
|
+
readonly "Range Not Satisfiable": 416;
|
|
144
|
+
readonly "Expectation Failed": 417;
|
|
145
|
+
readonly "I'm a teapot": 418;
|
|
146
|
+
readonly "Enhance Your Calm": 420;
|
|
147
|
+
readonly "Misdirected Request": 421;
|
|
148
|
+
readonly "Unprocessable Content": 422;
|
|
149
|
+
readonly Locked: 423;
|
|
150
|
+
readonly "Failed Dependency": 424;
|
|
151
|
+
readonly "Too Early": 425;
|
|
152
|
+
readonly "Upgrade Required": 426;
|
|
153
|
+
readonly "Precondition Required": 428;
|
|
154
|
+
readonly "Too Many Requests": 429;
|
|
155
|
+
readonly "Request Header Fields Too Large": 431;
|
|
156
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
157
|
+
readonly "Internal Server Error": 500;
|
|
158
|
+
readonly "Not Implemented": 501;
|
|
159
|
+
readonly "Bad Gateway": 502;
|
|
160
|
+
readonly "Service Unavailable": 503;
|
|
161
|
+
readonly "Gateway Timeout": 504;
|
|
162
|
+
readonly "HTTP Version Not Supported": 505;
|
|
163
|
+
readonly "Variant Also Negotiates": 506;
|
|
164
|
+
readonly "Insufficient Storage": 507;
|
|
165
|
+
readonly "Loop Detected": 508;
|
|
166
|
+
readonly "Not Extended": 510;
|
|
167
|
+
readonly "Network Authentication Required": 511;
|
|
168
|
+
}[Code] : Code>;
|
|
169
|
+
}) => Promise<{
|
|
170
|
+
dynamicDB: MSSQL;
|
|
171
|
+
}>;
|
|
172
|
+
};
|
|
173
|
+
readonly injectStaticDB: (databaseName: string) => {
|
|
174
|
+
readonly resolve: () => {
|
|
175
|
+
staticDB: MSSQL;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
parser: {};
|
|
180
|
+
response: {};
|
|
181
|
+
}, {}, {
|
|
182
|
+
derive: {};
|
|
183
|
+
resolve: {};
|
|
184
|
+
schema: {};
|
|
185
|
+
standaloneSchema: {};
|
|
186
|
+
response: {};
|
|
187
|
+
}, {
|
|
188
|
+
derive: {};
|
|
189
|
+
resolve: {};
|
|
190
|
+
schema: {};
|
|
191
|
+
standaloneSchema: {};
|
|
192
|
+
response: {};
|
|
193
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DB_RESOLVER_ERROR_KEYS } from './db-resolver-error-keys';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { dbResolver } from './db-resolver';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
dbResolver
|
|
4
|
+
} from "../../../chunk-8y9b2m5a.js";
|
|
5
|
+
import"../../../chunk-ngrxhdkb.js";
|
|
6
|
+
import"../../../chunk-b6f6ez2w.js";
|
|
7
|
+
import"../../../chunk-4mvsje21.js";
|
|
8
|
+
import"../../../chunk-75hgws2d.js";
|
|
9
|
+
import"../../../chunk-6g29g0tk.js";
|
|
10
|
+
import"../../../chunk-grfyngq0.js";
|
|
11
|
+
import"../../../chunk-mvrxngm7.js";
|
|
12
|
+
import"../../../chunk-c9vjf06h.js";
|
|
13
|
+
import"../../../chunk-00s6t4tw.js";
|
|
14
|
+
import"../../../chunk-h9t48r9q.js";
|
|
15
|
+
import"../../../chunk-9cgzhc50.js";
|
|
16
|
+
export {
|
|
17
|
+
dbResolver
|
|
18
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Elysia } from 'elysia';
|
|
2
|
-
import { BaseError } from '../../../errors/
|
|
3
|
-
import { HttpError } from '../../../errors/
|
|
2
|
+
import { BaseError } from '../../../errors/base-error';
|
|
3
|
+
import { HttpError } from '../../../errors/http-error';
|
|
4
4
|
/**
|
|
5
5
|
* The `errorPlugin` provides an error handling system for Elysia applications.
|
|
6
6
|
*/
|
|
@@ -16,19 +16,30 @@ export declare const error: Elysia<"", {
|
|
|
16
16
|
readonly HttpError: HttpError<any>;
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
|
-
schema:
|
|
19
|
+
schema: {};
|
|
20
20
|
standaloneSchema: {};
|
|
21
21
|
macro: {};
|
|
22
22
|
macroFn: {};
|
|
23
23
|
parser: {};
|
|
24
|
+
response: {
|
|
25
|
+
200: {
|
|
26
|
+
message: string;
|
|
27
|
+
cause: any;
|
|
28
|
+
} | {
|
|
29
|
+
message: string;
|
|
30
|
+
cause?: never;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
24
33
|
}, {}, {
|
|
25
34
|
derive: {};
|
|
26
35
|
resolve: {};
|
|
27
36
|
schema: {};
|
|
28
37
|
standaloneSchema: {};
|
|
38
|
+
response: {};
|
|
29
39
|
}, {
|
|
30
40
|
derive: {};
|
|
31
41
|
resolve: {};
|
|
32
42
|
schema: {};
|
|
33
43
|
standaloneSchema: {};
|
|
44
|
+
response: {};
|
|
34
45
|
}>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
filterByKeyExclusion
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import"../../../chunk-
|
|
4
|
+
} from "../../../chunk-h4dyeeqg.js";
|
|
5
|
+
import"../../../chunk-n6d9ncnv.js";
|
|
6
6
|
import {
|
|
7
7
|
HttpError
|
|
8
|
-
} from "../../../chunk-
|
|
9
|
-
import"../../../chunk-
|
|
8
|
+
} from "../../../chunk-00s6t4tw.js";
|
|
9
|
+
import"../../../chunk-h9t48r9q.js";
|
|
10
10
|
import {
|
|
11
11
|
BaseError
|
|
12
|
-
} from "../../../chunk-
|
|
12
|
+
} from "../../../chunk-9cgzhc50.js";
|
|
13
13
|
|
|
14
14
|
// source/modules/elysia/error/error.ts
|
|
15
15
|
import { Elysia } from "elysia";
|
|
@@ -33,6 +33,7 @@ export declare const microservice: Elysia<"/microservice", {
|
|
|
33
33
|
macro: {};
|
|
34
34
|
macroFn: {};
|
|
35
35
|
parser: {};
|
|
36
|
+
response: {};
|
|
36
37
|
}, {
|
|
37
38
|
microservice: {
|
|
38
39
|
ping: {
|
|
@@ -42,9 +43,6 @@ export declare const microservice: Elysia<"/microservice", {
|
|
|
42
43
|
query: unknown;
|
|
43
44
|
headers: unknown;
|
|
44
45
|
response: {
|
|
45
|
-
200: {
|
|
46
|
-
message: string;
|
|
47
|
-
};
|
|
48
46
|
422: {
|
|
49
47
|
type: "validation";
|
|
50
48
|
on: string;
|
|
@@ -54,6 +52,9 @@ export declare const microservice: Elysia<"/microservice", {
|
|
|
54
52
|
property?: string;
|
|
55
53
|
expected?: string;
|
|
56
54
|
};
|
|
55
|
+
200: {
|
|
56
|
+
message: string;
|
|
57
|
+
};
|
|
57
58
|
};
|
|
58
59
|
};
|
|
59
60
|
};
|
|
@@ -67,15 +68,6 @@ export declare const microservice: Elysia<"/microservice", {
|
|
|
67
68
|
query: unknown;
|
|
68
69
|
headers: unknown;
|
|
69
70
|
response: {
|
|
70
|
-
200: {
|
|
71
|
-
message: string;
|
|
72
|
-
content: {
|
|
73
|
-
description: string;
|
|
74
|
-
version: string;
|
|
75
|
-
name: string;
|
|
76
|
-
author: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
71
|
422: {
|
|
80
72
|
type: "validation";
|
|
81
73
|
on: string;
|
|
@@ -85,6 +77,15 @@ export declare const microservice: Elysia<"/microservice", {
|
|
|
85
77
|
property?: string;
|
|
86
78
|
expected?: string;
|
|
87
79
|
};
|
|
80
|
+
200: {
|
|
81
|
+
message: string;
|
|
82
|
+
content: {
|
|
83
|
+
description: string;
|
|
84
|
+
version: string;
|
|
85
|
+
name: string;
|
|
86
|
+
author: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
88
89
|
};
|
|
89
90
|
};
|
|
90
91
|
};
|
|
@@ -92,11 +93,13 @@ export declare const microservice: Elysia<"/microservice", {
|
|
|
92
93
|
}, {
|
|
93
94
|
derive: {};
|
|
94
95
|
resolve: {};
|
|
95
|
-
schema:
|
|
96
|
-
standaloneSchema:
|
|
96
|
+
schema: {};
|
|
97
|
+
standaloneSchema: {};
|
|
98
|
+
response: {};
|
|
97
99
|
}, {
|
|
98
100
|
derive: {};
|
|
99
101
|
resolve: {};
|
|
100
102
|
schema: {};
|
|
101
103
|
standaloneSchema: {};
|
|
104
|
+
response: {};
|
|
102
105
|
}>;
|