@nhtio/lucid-resourceful 0.1.0-master-29dd5a13 → 0.1.0-master-641df8fc

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.
Files changed (109) hide show
  1. package/adonis-env.d.ts +17 -0
  2. package/bundled_liqe.d.ts +6 -5
  3. package/bundled_xml_js.d.ts +5 -4
  4. package/definitions.d.ts +1 -1
  5. package/encoding.d.ts +6 -6
  6. package/errors.d.ts +23 -8
  7. package/{index-Bsyx9Sty.js → index-B-5JiNqG.js} +76 -221
  8. package/index-B-5JiNqG.js.map +1 -0
  9. package/{index-B6dIMDux.cjs → index-BrGbuAtt.cjs} +76 -221
  10. package/index-BrGbuAtt.cjs.map +1 -0
  11. package/index-C9zyi90j.js.map +1 -1
  12. package/{index-CpyTnwZV.cjs → index-CQApAM0M.cjs} +298 -353
  13. package/index-CQApAM0M.cjs.map +1 -0
  14. package/index-CxRBayw6.cjs.map +1 -1
  15. package/{index-C8mGEf4P.js → index-DLVvkVxI.js} +295 -350
  16. package/index-DLVvkVxI.js.map +1 -0
  17. package/index-DsojAcQ4.js.map +1 -1
  18. package/index-DuzIXu31.cjs.map +1 -1
  19. package/index.cjs +1 -1
  20. package/index.d.ts +7 -7
  21. package/index.mjs +1 -1
  22. package/integration/middlewares/odata_error.cjs +1 -1
  23. package/integration/middlewares/odata_error.d.ts +1 -1
  24. package/integration/middlewares/odata_error.mjs +1 -1
  25. package/integration/middlewares/resourceful_encoded_request.cjs +100 -12
  26. package/integration/middlewares/resourceful_encoded_request.cjs.map +1 -1
  27. package/integration/middlewares/resourceful_encoded_request.d.ts +1 -1
  28. package/integration/middlewares/resourceful_encoded_request.mjs +98 -10
  29. package/integration/middlewares/resourceful_encoded_request.mjs.map +1 -1
  30. package/integration/middlewares/resourceful_error.cjs +1 -1
  31. package/integration/middlewares/resourceful_error.d.ts +1 -1
  32. package/integration/middlewares/resourceful_error.mjs +1 -1
  33. package/integration/provider.cjs +1 -1
  34. package/integration/provider.mjs +1 -1
  35. package/joi.d.ts +1 -1
  36. package/{manager-OLS5T3G7-CJHhMwR7.cjs → manager-OLS5T3G7-BPVI59Zw.cjs} +2 -2
  37. package/{manager-OLS5T3G7-CJHhMwR7.cjs.map → manager-OLS5T3G7-BPVI59Zw.cjs.map} +1 -1
  38. package/{manager-OLS5T3G7-C-NS6lhx.js → manager-OLS5T3G7-DzVckqOB.js} +2 -2
  39. package/{manager-OLS5T3G7-C-NS6lhx.js.map → manager-OLS5T3G7-DzVckqOB.js.map} +1 -1
  40. package/odata/context.d.ts +1 -1
  41. package/odata/macro.d.ts +1 -1
  42. package/{odata_error_middleware-BWfOpQZV.cjs → odata_error_middleware-DhLzccN7.cjs} +4 -4
  43. package/{odata_error_middleware-BWfOpQZV.cjs.map → odata_error_middleware-DhLzccN7.cjs.map} +1 -1
  44. package/{odata_error_middleware-CWYqZMez.js → odata_error_middleware-Dspi8bct.js} +4 -4
  45. package/{odata_error_middleware-CWYqZMez.js.map → odata_error_middleware-Dspi8bct.js.map} +1 -1
  46. package/package.json +1 -1
  47. package/private/data_type_schemas.d.ts +12 -12
  48. package/private/data_types.d.ts +1 -1
  49. package/private/decorator_schemas.d.ts +1 -1
  50. package/private/decorator_utils.d.ts +1 -1
  51. package/private/decorators.d.ts +14 -11
  52. package/private/encoding.d.ts +3 -3
  53. package/private/joi/index.d.ts +3 -3
  54. package/private/lucene_to_lucid_translator.d.ts +1 -1
  55. package/private/mixin.d.ts +25 -8
  56. package/private/odata_macro/controllers/resourceful_model_controller.d.ts +4 -4
  57. package/private/odata_macro/index.d.ts +1 -1
  58. package/private/odata_macro/middlewares/odata_error_middleware.d.ts +22 -10
  59. package/private/odata_macro/services/odata_context_service.d.ts +1 -1
  60. package/private/odata_macro/services/odata_metadata_service.d.ts +3 -3
  61. package/private/odata_macro/utils/odata.d.ts +2 -2
  62. package/private/odata_to_lucid_translator.d.ts +1 -1
  63. package/private/open_api_schema_service.d.ts +3 -3
  64. package/private/router_macro/controllers/resourceful_model_controller.d.ts +5 -5
  65. package/private/router_macro/index.d.ts +3 -3
  66. package/private/router_macro/middlewares/resourceful_error_middleware.d.ts +22 -10
  67. package/private/router_macro/services/resourceful_router_choices_service.d.ts +3 -3
  68. package/private/router_macro/services/resourceful_router_context_service.d.ts +1 -1
  69. package/private/router_macro/services/resourceful_router_model_options_service.d.ts +1 -1
  70. package/private/router_macro/services/resourceful_router_model_resolver_service.d.ts +3 -3
  71. package/private/router_macro/services/resourceful_router_openapi_document_service.d.ts +4 -4
  72. package/private/router_macro/services/resourceful_router_options_service.d.ts +3 -3
  73. package/private/router_macro/types.d.ts +15 -8
  74. package/private/router_macro/utils/errors.d.ts +1 -1
  75. package/private/router_macro/utils/http.d.ts +1 -1
  76. package/private/router_macro/utils/openapi_validation_schemas.d.ts +2 -2
  77. package/private/router_macro/utils/relationships.d.ts +1 -1
  78. package/private/router_macro/utils/type_guards.d.ts +1 -1
  79. package/private/schema_types.d.ts +1 -1
  80. package/private/type_guards.d.ts +5 -5
  81. package/private/types.d.ts +5 -5
  82. package/private/utils/casters.d.ts +1 -1
  83. package/private/utils/consumers.d.ts +1 -1
  84. package/private/utils/preparers.d.ts +1 -1
  85. package/private/utils.d.ts +1 -1
  86. package/{resourceful_error_middleware-CMSZGdoG.js → resourceful_error_middleware-Cb_eTzST.js} +4 -4
  87. package/{resourceful_error_middleware-CMSZGdoG.js.map → resourceful_error_middleware-Cb_eTzST.js.map} +1 -1
  88. package/{resourceful_error_middleware-lXgefPIC.cjs → resourceful_error_middleware-CnjbNoev.cjs} +4 -4
  89. package/{resourceful_error_middleware-lXgefPIC.cjs.map → resourceful_error_middleware-CnjbNoev.cjs.map} +1 -1
  90. package/router/context.d.ts +1 -1
  91. package/router/utils.cjs +1 -1
  92. package/router/utils.d.ts +1 -1
  93. package/router/utils.mjs +1 -1
  94. package/router.cjs +1 -1
  95. package/router.d.ts +2 -2
  96. package/router.mjs +1 -1
  97. package/types.d.ts +13 -13
  98. package/utils.d.ts +4 -4
  99. package/vite-env.d.ts +3 -0
  100. package/index-B6dIMDux.cjs.map +0 -1
  101. package/index-Bsyx9Sty.js.map +0 -1
  102. package/index-C8mGEf4P.js.map +0 -1
  103. package/index-CpIq4gOr.js +0 -93
  104. package/index-CpIq4gOr.js.map +0 -1
  105. package/index-CpyTnwZV.cjs.map +0 -1
  106. package/index-DqbJXpcT.cjs +0 -92
  107. package/index-DqbJXpcT.cjs.map +0 -1
  108. package/private/controller_factory.d.ts +0 -1
  109. package/private/utils/function_serializer.d.ts +0 -32
@@ -2,6 +2,6 @@
2
2
  * Utility which allows resolution of resourceful model context.
3
3
  * @module @nhtio/lucid-resourceful/router/context
4
4
  */
5
- import type { ResolvedResourcefulHttpContext } from '../private/router_macro/services/resourceful_router_context_service'
5
+ import type { ResolvedResourcefulHttpContext } from "../private/router_macro/services/resourceful_router_context_service";
6
6
  export declare const useResourcefulModelContext: () => Promise<ResolvedResourcefulHttpContext>;
7
7
  export type { ResolvedResourcefulHttpContext };
package/router/utils.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-B6dIMDux.cjs");
3
+ const index = require("../index-BrGbuAtt.cjs");
4
4
  exports.getResourcefulModelCreatePayloadValidationSchema = index.getResourcefulModelCreatePayloadValidationSchema;
5
5
  //# sourceMappingURL=utils.cjs.map
package/router/utils.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Resourceful Router Macro for use with Lucid Resourceful Library
3
3
  * @module @nhtio/lucid-resourceful/router/utils
4
4
  */
5
- export { getResourcefulModelCreatePayloadValidationSchema } from '../private/router_macro'
5
+ export { getResourcefulModelCreatePayloadValidationSchema } from "../private/router_macro/index";
package/router/utils.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { g } from "../index-Bsyx9Sty.js";
1
+ import { g } from "../index-B-5JiNqG.js";
2
2
  export {
3
3
  g as getResourcefulModelCreatePayloadValidationSchema
4
4
  };
package/router.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-B6dIMDux.cjs");
3
+ const index = require("./index-BrGbuAtt.cjs");
4
4
  exports.odataRouterMacro = index.odataRouterMacro;
5
5
  exports.resourcefulRouterMacro = index.resourcefulRouterMacro;
6
6
  //# sourceMappingURL=router.cjs.map
package/router.d.ts CHANGED
@@ -2,5 +2,5 @@
2
2
  * Resourceful Router Macro for use with Lucid Resourceful Library
3
3
  * @module @nhtio/lucid-resourceful/router
4
4
  */
5
- export { resourcefulRouterMacro } from './private/router_macro'
6
- export { odataRouterMacro } from './private/odata_macro'
5
+ export { resourcefulRouterMacro } from "./private/router_macro/index";
6
+ export { odataRouterMacro } from "./private/odata_macro/index";
package/router.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { o, r } from "./index-Bsyx9Sty.js";
1
+ import { o, r } from "./index-B-5JiNqG.js";
2
2
  export {
3
3
  o as odataRouterMacro,
4
4
  r as resourcefulRouterMacro
package/types.d.ts CHANGED
@@ -2,13 +2,13 @@
2
2
  * Types utilized by @nhtio/lucid-resourceful
3
3
  * @module @nhtio/lucid-resourceful/types
4
4
  */
5
- export type { ResourcefulIndexResult, ResourcefulPayloadValidatorGetter, ResourcefulPayloadSchemaGetter, ResourcefulQueryScopeCallback, ResourcefulHooks, ResourcefulModel, AdvancedResourcefulMixinOptions, ResourcefulMixinOptions, ResourcefulScopeHooks, ResourcefulValidationHooks, ResourcefulMixinEventMap, ResourcefulErrorHandlerMethod, ResourcefulACLOperationType, ServableResourcefulIndexResult, } from './private/mixin'
6
- export type * from './private/types'
7
- export type { CallableNewable } from './private/data_types'
8
- export type { BaseInterface, BaseClass, ResourcefulStringTypeOptions, ResourcefulDateTypeOptions, ResourcefulDateTimeTypeOptions, ResourcefulBinaryTypeOptions, ResourcefulNumberTypeOptions, ResourcefulIntegerTypeOptions, ResourcefulBigintTypeOptions, ResourcefulUnsignedIntegerTypeOptions, ResourcefulBooleanTypeOptions, ResourcefulObjectTypeOptions, ResourcefulArrayTypeOptions, ResourcefulDataType, } from './private/data_types'
5
+ export type { ResourcefulIndexResult, ResourcefulPayloadValidatorGetter, ResourcefulPayloadSchemaGetter, ResourcefulQueryScopeCallback, ResourcefulHooks, ResourcefulModel, AdvancedResourcefulMixinOptions, ResourcefulMixinOptions, ResourcefulScopeHooks, ResourcefulValidationHooks, ResourcefulMixinEventMap, ResourcefulErrorHandlerMethod, ResourcefulACLOperationType, ServableResourcefulIndexResult, } from "./private/mixin";
6
+ export type * from "./private/types";
7
+ export type { CallableNewable } from "./private/data_types";
8
+ export type { BaseInterface, BaseClass, ResourcefulStringTypeOptions, ResourcefulDateTypeOptions, ResourcefulDateTimeTypeOptions, ResourcefulBinaryTypeOptions, ResourcefulNumberTypeOptions, ResourcefulIntegerTypeOptions, ResourcefulBigintTypeOptions, ResourcefulUnsignedIntegerTypeOptions, ResourcefulBooleanTypeOptions, ResourcefulObjectTypeOptions, ResourcefulArrayTypeOptions, ResourcefulDataType, } from "./private/data_types";
9
9
  export type { DateTime } from 'luxon';
10
- export type { RelatedModelRelationOptions, HasManyThroughRelationOptions, DataTypeColumnOptions, DataTypeComputedOptions, DateColumnOptions, } from './private/decorators'
11
- import type { AnySchema, StringSchema, BinarySchema, NumberSchema, BooleanSchema, ObjectSchema, ArraySchema, DateSchema } from './private/schema_types'
10
+ export type { RelatedModelRelationOptions, HasManyThroughRelationOptions, DataTypeColumnOptions, DataTypeComputedOptions, DateColumnOptions, } from "./private/decorators";
11
+ import type { AnySchema, StringSchema, BinarySchema, NumberSchema, BooleanSchema, ObjectSchema, ArraySchema, DateSchema } from "./private/schema_types";
12
12
  export type { AnySchema, StringSchema, BinarySchema, NumberSchema, BooleanSchema, ObjectSchema, ArraySchema, DateSchema, };
13
13
  /**
14
14
  * Union type of all available Joi schema types
@@ -16,16 +16,16 @@ export type { AnySchema, StringSchema, BinarySchema, NumberSchema, BooleanSchema
16
16
  */
17
17
  export type Schema = AnySchema | StringSchema | BinarySchema | NumberSchema | BooleanSchema | ObjectSchema | ArraySchema | DateSchema;
18
18
  export type { LucidModel, ModelColumnOptions, ComputedOptions } from '@adonisjs/lucid/types/model';
19
- export type { ValidationError } from './bundled_nhtio_validation';
19
+ export type { ValidationError } from "./bundled_nhtio_validation";
20
20
  export type { BaseModel } from '@adonisjs/lucid/orm';
21
21
  export type { HttpContext } from '@adonisjs/core/http';
22
22
  export type { ApplicationService } from '@adonisjs/core/types';
23
- export type { EventMap, Key, Listener } from './bundled_nhtio_tiny_typed_emitter';
23
+ export type { EventMap, Key, Listener } from "./bundled_nhtio_tiny_typed_emitter";
24
24
  export type { NormalizeConstructor } from '@adonisjs/core/types/helpers';
25
25
  export type { ModelQueryBuilderContract } from '@adonisjs/lucid/types/model';
26
- export type { OpenAPIV3 } from './bundled_openapi_types';
26
+ export type { OpenAPIV3 } from "./bundled_openapi_types";
27
27
  export type { DatabaseQueryBuilderContract } from '@adonisjs/lucid/types/querybuilder';
28
- export type * from './private/router_macro/types'
29
- export type * from './private/odata_macro'
30
- export type { ResolvedResourcefulHttpContext } from './private/router_macro/services/resourceful_router_context_service'
31
- export type { VineValidationError, ResourcefulErrorMiddlewareEvents, ResourcefulErrorMiddlewareHeaders, ResourcefulErrorMiddlewareOptions, ResourcefulFormattedErrorDetails, ResourcefulFormattedError, } from './private/router_macro/middlewares/resourceful_error_middleware'
28
+ export type * from "./private/router_macro/types";
29
+ export type * from "./private/odata_macro/index";
30
+ export type { ResolvedResourcefulHttpContext } from "./private/router_macro/services/resourceful_router_context_service";
31
+ export type { VineValidationError, ResourcefulErrorMiddlewareEvents, ResourcefulErrorMiddlewareHeaders, ResourcefulErrorMiddlewareOptions, ResourcefulFormattedErrorDetails, ResourcefulFormattedError, } from "./private/router_macro/middlewares/resourceful_error_middleware";
package/utils.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * Utilities used to cast values to specific data types
7
7
  */
8
- import * as guards from './private/type_guards'
9
- import * as casters from './private/utils/casters'
10
- import * as preparers from './private/utils/preparers'
11
- import * as consumers from './private/utils/consumers'
8
+ import * as guards from "./private/type_guards";
9
+ import * as casters from "./private/utils/casters";
10
+ import * as preparers from "./private/utils/preparers";
11
+ import * as consumers from "./private/utils/consumers";
12
12
  export { casters, guards, preparers, consumers };
package/vite-env.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ // eslint-disable-next-line @typescript-eslint/naming-convention
2
+ declare const __VERSION__: string;
3
+ declare const __SRC_DIR__: string | undefined;