@nhtio/lucid-resourceful 0.1.0-master-29dd5a13 → 0.1.0-master-9b5b956c
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/bundled_liqe.d.ts +6 -5
- package/bundled_xml_js.d.ts +5 -4
- package/definitions.d.ts +1 -1
- package/encoding.d.ts +6 -6
- package/errors.d.ts +23 -8
- package/{index-Bsyx9Sty.js → index-BrX3MdY9.js} +76 -221
- package/index-BrX3MdY9.js.map +1 -0
- package/index-C9zyi90j.js.map +1 -1
- package/{index-CpyTnwZV.cjs → index-CQApAM0M.cjs} +298 -353
- package/index-CQApAM0M.cjs.map +1 -0
- package/index-CxRBayw6.cjs.map +1 -1
- package/{index-C8mGEf4P.js → index-DLVvkVxI.js} +295 -350
- package/index-DLVvkVxI.js.map +1 -0
- package/{index-B6dIMDux.cjs → index-Drtzxl1B.cjs} +76 -221
- package/index-Drtzxl1B.cjs.map +1 -0
- package/index-DsojAcQ4.js.map +1 -1
- package/index-DuzIXu31.cjs.map +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +7 -7
- package/index.mjs +1 -1
- package/integration/middlewares/odata_error.cjs +1 -1
- package/integration/middlewares/odata_error.d.ts +1 -1
- package/integration/middlewares/odata_error.mjs +1 -1
- package/integration/middlewares/resourceful_encoded_request.cjs +100 -12
- package/integration/middlewares/resourceful_encoded_request.cjs.map +1 -1
- package/integration/middlewares/resourceful_encoded_request.d.ts +1 -1
- package/integration/middlewares/resourceful_encoded_request.mjs +98 -10
- package/integration/middlewares/resourceful_encoded_request.mjs.map +1 -1
- package/integration/middlewares/resourceful_error.cjs +1 -1
- package/integration/middlewares/resourceful_error.d.ts +1 -1
- package/integration/middlewares/resourceful_error.mjs +1 -1
- package/integration/provider.cjs +1 -1
- package/integration/provider.cjs.map +1 -1
- package/integration/provider.d.ts +17 -0
- package/integration/provider.mjs +1 -1
- package/integration/provider.mjs.map +1 -1
- package/joi.d.ts +1 -1
- package/{manager-OLS5T3G7-C-NS6lhx.js → manager-OLS5T3G7-CQrDQz6n.js} +2 -2
- package/{manager-OLS5T3G7-C-NS6lhx.js.map → manager-OLS5T3G7-CQrDQz6n.js.map} +1 -1
- package/{manager-OLS5T3G7-CJHhMwR7.cjs → manager-OLS5T3G7-DWCVMtbE.cjs} +2 -2
- package/{manager-OLS5T3G7-CJHhMwR7.cjs.map → manager-OLS5T3G7-DWCVMtbE.cjs.map} +1 -1
- package/odata/context.d.ts +1 -1
- package/odata/macro.d.ts +1 -1
- package/{odata_error_middleware-BWfOpQZV.cjs → odata_error_middleware-DhLzccN7.cjs} +4 -4
- package/{odata_error_middleware-BWfOpQZV.cjs.map → odata_error_middleware-DhLzccN7.cjs.map} +1 -1
- package/{odata_error_middleware-CWYqZMez.js → odata_error_middleware-Dspi8bct.js} +4 -4
- package/{odata_error_middleware-CWYqZMez.js.map → odata_error_middleware-Dspi8bct.js.map} +1 -1
- package/package.json +1 -1
- package/private/data_type_schemas.d.ts +12 -12
- package/private/data_types.d.ts +1 -1
- package/private/decorator_schemas.d.ts +1 -1
- package/private/decorator_utils.d.ts +1 -1
- package/private/decorators.d.ts +14 -11
- package/private/encoding.d.ts +3 -3
- package/private/joi/index.d.ts +3 -3
- package/private/lucene_to_lucid_translator.d.ts +1 -1
- package/private/mixin.d.ts +25 -8
- package/private/odata_macro/controllers/resourceful_model_controller.d.ts +4 -4
- package/private/odata_macro/index.d.ts +1 -1
- package/private/odata_macro/middlewares/odata_error_middleware.d.ts +22 -10
- package/private/odata_macro/services/odata_context_service.d.ts +1 -1
- package/private/odata_macro/services/odata_metadata_service.d.ts +3 -3
- package/private/odata_macro/utils/odata.d.ts +2 -2
- package/private/odata_to_lucid_translator.d.ts +1 -1
- package/private/open_api_schema_service.d.ts +3 -3
- package/private/router_macro/controllers/resourceful_model_controller.d.ts +5 -5
- package/private/router_macro/index.d.ts +3 -3
- package/private/router_macro/middlewares/resourceful_error_middleware.d.ts +22 -10
- package/private/router_macro/services/resourceful_router_choices_service.d.ts +3 -3
- package/private/router_macro/services/resourceful_router_context_service.d.ts +1 -1
- package/private/router_macro/services/resourceful_router_model_options_service.d.ts +1 -1
- package/private/router_macro/services/resourceful_router_model_resolver_service.d.ts +3 -3
- package/private/router_macro/services/resourceful_router_openapi_document_service.d.ts +4 -4
- package/private/router_macro/services/resourceful_router_options_service.d.ts +3 -3
- package/private/router_macro/types.d.ts +15 -8
- package/private/router_macro/utils/errors.d.ts +1 -1
- package/private/router_macro/utils/http.d.ts +1 -1
- package/private/router_macro/utils/openapi_validation_schemas.d.ts +2 -2
- package/private/router_macro/utils/relationships.d.ts +1 -1
- package/private/router_macro/utils/type_guards.d.ts +1 -1
- package/private/schema_types.d.ts +1 -1
- package/private/type_guards.d.ts +5 -5
- package/private/types.d.ts +5 -5
- package/private/utils/casters.d.ts +1 -1
- package/private/utils/consumers.d.ts +1 -1
- package/private/utils/preparers.d.ts +1 -1
- package/private/utils.d.ts +1 -1
- package/{resourceful_error_middleware-CMSZGdoG.js → resourceful_error_middleware-Cb_eTzST.js} +4 -4
- package/{resourceful_error_middleware-CMSZGdoG.js.map → resourceful_error_middleware-Cb_eTzST.js.map} +1 -1
- package/{resourceful_error_middleware-lXgefPIC.cjs → resourceful_error_middleware-CnjbNoev.cjs} +4 -4
- package/{resourceful_error_middleware-lXgefPIC.cjs.map → resourceful_error_middleware-CnjbNoev.cjs.map} +1 -1
- package/router/context.d.ts +1 -1
- package/router/utils.cjs +1 -1
- package/router/utils.d.ts +1 -1
- package/router/utils.mjs +1 -1
- package/router.cjs +1 -1
- package/router.d.ts +2 -2
- package/router.mjs +1 -1
- package/types.d.ts +13 -13
- package/utils.d.ts +4 -4
- package/vite-env.d.ts +3 -0
- package/index-B6dIMDux.cjs.map +0 -1
- package/index-Bsyx9Sty.js.map +0 -1
- package/index-C8mGEf4P.js.map +0 -1
- package/index-CpIq4gOr.js +0 -93
- package/index-CpIq4gOr.js.map +0 -1
- package/index-CpyTnwZV.cjs.map +0 -1
- package/index-DqbJXpcT.cjs +0 -92
- package/index-DqbJXpcT.cjs.map +0 -1
- package/private/controller_factory.d.ts +0 -1
- package/private/utils/function_serializer.d.ts +0 -32
package/router/context.d.ts
CHANGED
|
@@ -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
|
|
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-
|
|
3
|
+
const index = require("../index-Drtzxl1B.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
|
|
5
|
+
export { getResourcefulModelCreatePayloadValidationSchema } from "../private/router_macro/index";
|
package/router/utils.mjs
CHANGED
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-
|
|
3
|
+
const index = require("./index-Drtzxl1B.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
|
|
6
|
-
export { odataRouterMacro } from
|
|
5
|
+
export { resourcefulRouterMacro } from "./private/router_macro/index";
|
|
6
|
+
export { odataRouterMacro } from "./private/odata_macro/index";
|
package/router.mjs
CHANGED
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
|
|
6
|
-
export type * from
|
|
7
|
-
export type { CallableNewable } from
|
|
8
|
-
export type { BaseInterface, BaseClass, ResourcefulStringTypeOptions, ResourcefulDateTypeOptions, ResourcefulDateTimeTypeOptions, ResourcefulBinaryTypeOptions, ResourcefulNumberTypeOptions, ResourcefulIntegerTypeOptions, ResourcefulBigintTypeOptions, ResourcefulUnsignedIntegerTypeOptions, ResourcefulBooleanTypeOptions, ResourcefulObjectTypeOptions, ResourcefulArrayTypeOptions, ResourcefulDataType, } from
|
|
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
|
|
11
|
-
import type { AnySchema, StringSchema, BinarySchema, NumberSchema, BooleanSchema, ObjectSchema, ArraySchema, DateSchema } from
|
|
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
|
|
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
|
|
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
|
|
26
|
+
export type { OpenAPIV3 } from "./bundled_openapi_types";
|
|
27
27
|
export type { DatabaseQueryBuilderContract } from '@adonisjs/lucid/types/querybuilder';
|
|
28
|
-
export type * from
|
|
29
|
-
export type * from
|
|
30
|
-
export type { ResolvedResourcefulHttpContext } from
|
|
31
|
-
export type { VineValidationError, ResourcefulErrorMiddlewareEvents, ResourcefulErrorMiddlewareHeaders, ResourcefulErrorMiddlewareOptions, ResourcefulFormattedErrorDetails, ResourcefulFormattedError, } from
|
|
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
|
|
9
|
-
import * as casters from
|
|
10
|
-
import * as preparers from
|
|
11
|
-
import * as consumers from
|
|
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