@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.
- package/adonis-env.d.ts +17 -0
- 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-B-5JiNqG.js} +76 -221
- package/index-B-5JiNqG.js.map +1 -0
- package/{index-B6dIMDux.cjs → index-BrGbuAtt.cjs} +76 -221
- package/index-BrGbuAtt.cjs.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-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.mjs +1 -1
- package/joi.d.ts +1 -1
- package/{manager-OLS5T3G7-CJHhMwR7.cjs → manager-OLS5T3G7-BPVI59Zw.cjs} +2 -2
- package/{manager-OLS5T3G7-CJHhMwR7.cjs.map → manager-OLS5T3G7-BPVI59Zw.cjs.map} +1 -1
- package/{manager-OLS5T3G7-C-NS6lhx.js → manager-OLS5T3G7-DzVckqOB.js} +2 -2
- package/{manager-OLS5T3G7-C-NS6lhx.js.map → manager-OLS5T3G7-DzVckqOB.js.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
|
@@ -33,7 +33,7 @@ const equal = require("fast-deep-equal");
|
|
|
33
33
|
const Hooks = require("@poppinss/hooks");
|
|
34
34
|
const require$$0$9 = require("node:events");
|
|
35
35
|
const qs = require("qs");
|
|
36
|
-
const index = require("./index-
|
|
36
|
+
const index = require("./index-CQApAM0M.cjs");
|
|
37
37
|
const index$1 = require("./index-DuzIXu31.cjs");
|
|
38
38
|
const igniculus = require("igniculus");
|
|
39
39
|
require("kleur");
|
|
@@ -71,10 +71,10 @@ const index$3 = require("./index-xEuZiHEt.cjs");
|
|
|
71
71
|
const encoding$1 = require("./encoding.cjs");
|
|
72
72
|
const type_guardsBbzVmysZ = require("./type_guards-BbzVmysZ-DjbFgcBZ.cjs");
|
|
73
73
|
const definitions = require("./definitions-C6zRWP4X.cjs");
|
|
74
|
-
const resourceful_error_middleware = require("./resourceful_error_middleware-
|
|
74
|
+
const resourceful_error_middleware = require("./resourceful_error_middleware-CnjbNoev.cjs");
|
|
75
75
|
const resourceful_router_context_service = require("./resourceful_router_context_service-Crl_ZluR.cjs");
|
|
76
76
|
const odata_context = require("./context-B5qZi6eq.cjs");
|
|
77
|
-
const odata_error_middleware = require("./odata_error_middleware-
|
|
77
|
+
const odata_error_middleware = require("./odata_error_middleware-DhLzccN7.cjs");
|
|
78
78
|
const index$4 = require("./index-ClMDgRfH.cjs");
|
|
79
79
|
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
80
80
|
async function pMap(iterable, mapper, {
|
|
@@ -461,7 +461,12 @@ class Preloader {
|
|
|
461
461
|
}));
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
|
|
464
|
+
const __viteBrowserExternal = {};
|
|
465
|
+
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
466
|
+
__proto__: null,
|
|
467
|
+
default: __viteBrowserExternal
|
|
468
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
469
|
+
var main_default$1 = index.string_default;
|
|
465
470
|
class CamelCaseNamingStrategy {
|
|
466
471
|
/**
|
|
467
472
|
* The default table name for the given model
|
|
@@ -27412,12 +27417,10 @@ function predicateOnArray(method, predicate, values) {
|
|
|
27412
27417
|
}
|
|
27413
27418
|
return method.call(values, predicate);
|
|
27414
27419
|
}
|
|
27415
|
-
|
|
27420
|
+
const debug = errors$2.utilExports.debuglog("poppinss:middleware");
|
|
27416
27421
|
function once$1(scope, callback) {
|
|
27417
27422
|
function next() {
|
|
27418
|
-
if (next.called)
|
|
27419
|
-
return;
|
|
27420
|
-
}
|
|
27423
|
+
if (next.called) return;
|
|
27421
27424
|
next.called = true;
|
|
27422
27425
|
debug("next invoked");
|
|
27423
27426
|
return callback(scope);
|
|
@@ -27425,83 +27428,40 @@ function once$1(scope, callback) {
|
|
|
27425
27428
|
next.called = false;
|
|
27426
27429
|
return next;
|
|
27427
27430
|
}
|
|
27428
|
-
|
|
27431
|
+
const DEFAULT_FINAL_HANDLER$1 = () => Promise.resolve();
|
|
27429
27432
|
var Runner$1 = class Runner {
|
|
27430
|
-
/**
|
|
27431
|
-
* An array of middleware to execute
|
|
27432
|
-
*/
|
|
27433
27433
|
#middleware;
|
|
27434
|
-
/**
|
|
27435
|
-
* The active index for the middleware handler
|
|
27436
|
-
*/
|
|
27437
27434
|
#currentIndex = 0;
|
|
27438
|
-
/**
|
|
27439
|
-
* Executor is responsible for executing a middleware
|
|
27440
|
-
*/
|
|
27441
27435
|
#executor;
|
|
27442
|
-
/**
|
|
27443
|
-
* Final handler to execute
|
|
27444
|
-
*/
|
|
27445
27436
|
#finalHandler = DEFAULT_FINAL_HANDLER$1;
|
|
27446
|
-
/**
|
|
27447
|
-
* Error handler to self handle errors
|
|
27448
|
-
*/
|
|
27449
27437
|
#errorHandler;
|
|
27450
27438
|
constructor(middleware) {
|
|
27451
27439
|
this.#middleware = middleware;
|
|
27452
27440
|
}
|
|
27453
|
-
/**
|
|
27454
|
-
* Invoke one middleware at a time. Middleware fns will be executed
|
|
27455
|
-
* recursively until `next` is invoked.
|
|
27456
|
-
*
|
|
27457
|
-
* If one method doesn't call `next`, then the chain will be finished
|
|
27458
|
-
* automatically.
|
|
27459
|
-
*/
|
|
27460
27441
|
#invoke(self2) {
|
|
27461
27442
|
const middleware = self2.#middleware[self2.#currentIndex++];
|
|
27462
27443
|
debug("running middleware at index", self2.#currentIndex);
|
|
27463
|
-
if (!middleware)
|
|
27464
|
-
return self2.#finalHandler();
|
|
27465
|
-
}
|
|
27444
|
+
if (!middleware) return self2.#finalHandler();
|
|
27466
27445
|
return self2.#executor(middleware, once$1(self2, self2.#invoke));
|
|
27467
27446
|
}
|
|
27468
|
-
/**
|
|
27469
|
-
* Same as invoke, but captures errors
|
|
27470
|
-
*/
|
|
27471
27447
|
#invokeWithErrorManagement(self2) {
|
|
27472
27448
|
const middleware = self2.#middleware[self2.#currentIndex++];
|
|
27473
27449
|
debug("running middleware at index", self2.#currentIndex);
|
|
27474
|
-
if (!middleware)
|
|
27475
|
-
return self2.#finalHandler().catch(self2.#errorHandler);
|
|
27476
|
-
}
|
|
27450
|
+
if (!middleware) return self2.#finalHandler().catch(self2.#errorHandler);
|
|
27477
27451
|
return self2.#executor(middleware, once$1(self2, self2.#invokeWithErrorManagement)).catch(self2.#errorHandler);
|
|
27478
27452
|
}
|
|
27479
|
-
/**
|
|
27480
|
-
* Final handler to be executed, when the chain ends successfully.
|
|
27481
|
-
*/
|
|
27482
27453
|
finalHandler(finalHandler) {
|
|
27483
27454
|
this.#finalHandler = finalHandler;
|
|
27484
27455
|
return this;
|
|
27485
27456
|
}
|
|
27486
|
-
/**
|
|
27487
|
-
* Specify a custom error handler to use. Defining an error handler
|
|
27488
|
-
* turns will make run method not throw an exception and instead
|
|
27489
|
-
* run the upstream middleware logic
|
|
27490
|
-
*/
|
|
27491
27457
|
errorHandler(errorHandler) {
|
|
27492
27458
|
this.#errorHandler = errorHandler;
|
|
27493
27459
|
return this;
|
|
27494
27460
|
}
|
|
27495
|
-
/**
|
|
27496
|
-
* Start the middleware queue and pass params to it. The `params`
|
|
27497
|
-
* array will be passed as spread arguments.
|
|
27498
|
-
*/
|
|
27499
27461
|
async run(cb) {
|
|
27500
27462
|
this.#executor = cb;
|
|
27501
27463
|
debug("starting middleware chain with %d middleware", this.#middleware.length);
|
|
27502
|
-
if (this.#errorHandler)
|
|
27503
|
-
return this.#invokeWithErrorManagement(this);
|
|
27504
|
-
}
|
|
27464
|
+
if (this.#errorHandler) return this.#invokeWithErrorManagement(this);
|
|
27505
27465
|
return this.#invoke(this);
|
|
27506
27466
|
}
|
|
27507
27467
|
};
|
|
@@ -27509,75 +27469,36 @@ var Middleware$1 = class Middleware {
|
|
|
27509
27469
|
#middleware = /* @__PURE__ */ new Set();
|
|
27510
27470
|
#middlewareArray;
|
|
27511
27471
|
#isFrozen = false;
|
|
27512
|
-
/**
|
|
27513
|
-
* Get access to all the registered middleware. The return value is
|
|
27514
|
-
* a set of handlers.
|
|
27515
|
-
*/
|
|
27516
27472
|
all() {
|
|
27517
27473
|
return this.#middleware;
|
|
27518
27474
|
}
|
|
27519
|
-
/**
|
|
27520
|
-
* Find if a handler has been registered as a middleware
|
|
27521
|
-
* already.
|
|
27522
|
-
*/
|
|
27523
27475
|
has(handler) {
|
|
27524
27476
|
return this.#middleware.has(handler);
|
|
27525
27477
|
}
|
|
27526
|
-
/**
|
|
27527
|
-
* Add a middleware. Adding the same middleware
|
|
27528
|
-
* twice will result in a noop.
|
|
27529
|
-
*/
|
|
27530
27478
|
add(handler) {
|
|
27531
|
-
if (this.#isFrozen)
|
|
27532
|
-
throw new Error("Middleware stack is frozen. Cannot add new middleware");
|
|
27533
|
-
}
|
|
27479
|
+
if (this.#isFrozen) throw new Error("Middleware stack is frozen. Cannot add new middleware");
|
|
27534
27480
|
this.#middleware.add(handler);
|
|
27535
27481
|
return this;
|
|
27536
27482
|
}
|
|
27537
|
-
/**
|
|
27538
|
-
* Remove a specific middleware
|
|
27539
|
-
*/
|
|
27540
27483
|
remove(handler) {
|
|
27541
|
-
if (this.#isFrozen)
|
|
27542
|
-
throw new Error("Middleware stack is frozen. Cannot remove middleware");
|
|
27543
|
-
}
|
|
27484
|
+
if (this.#isFrozen) throw new Error("Middleware stack is frozen. Cannot remove middleware");
|
|
27544
27485
|
return this.#middleware.delete(handler);
|
|
27545
27486
|
}
|
|
27546
|
-
/**
|
|
27547
|
-
* Remove all middleware
|
|
27548
|
-
*/
|
|
27549
27487
|
clear() {
|
|
27550
|
-
if (this.#isFrozen)
|
|
27551
|
-
throw new Error("Middleware stack is frozen. Cannot clear middleware");
|
|
27552
|
-
}
|
|
27488
|
+
if (this.#isFrozen) throw new Error("Middleware stack is frozen. Cannot clear middleware");
|
|
27553
27489
|
this.#middleware.clear();
|
|
27554
27490
|
}
|
|
27555
|
-
/**
|
|
27556
|
-
* Merge middleware from a existing middleware
|
|
27557
|
-
* instance. The merged middleware are
|
|
27558
|
-
* appended
|
|
27559
|
-
*/
|
|
27560
27491
|
merge(hooks) {
|
|
27561
|
-
if (this.#isFrozen)
|
|
27562
|
-
throw new Error("Middleware stack is frozen. Cannot merge middleware");
|
|
27563
|
-
}
|
|
27492
|
+
if (this.#isFrozen) throw new Error("Middleware stack is frozen. Cannot merge middleware");
|
|
27564
27493
|
hooks.all().forEach((handler) => {
|
|
27565
27494
|
this.add(handler);
|
|
27566
27495
|
});
|
|
27567
27496
|
}
|
|
27568
|
-
/**
|
|
27569
|
-
* Freezes the middleware stack for further modifications
|
|
27570
|
-
*/
|
|
27571
27497
|
freeze() {
|
|
27572
|
-
if (this.#isFrozen)
|
|
27573
|
-
return;
|
|
27574
|
-
}
|
|
27498
|
+
if (this.#isFrozen) return;
|
|
27575
27499
|
this.#isFrozen = true;
|
|
27576
27500
|
this.#middlewareArray = [...this.all()];
|
|
27577
27501
|
}
|
|
27578
|
-
/**
|
|
27579
|
-
* Returns an instance of the runner to run hooks
|
|
27580
|
-
*/
|
|
27581
27502
|
runner() {
|
|
27582
27503
|
this.freeze();
|
|
27583
27504
|
return new Runner$1(this.#middlewareArray);
|
|
@@ -43308,11 +43229,6 @@ function requireOnExitLeakFree() {
|
|
|
43308
43229
|
};
|
|
43309
43230
|
return onExitLeakFree;
|
|
43310
43231
|
}
|
|
43311
|
-
const __viteBrowserExternal = {};
|
|
43312
|
-
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43313
|
-
__proto__: null,
|
|
43314
|
-
default: __viteBrowserExternal
|
|
43315
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
43316
43232
|
const require$$5 = /* @__PURE__ */ errors$2.getAugmentedNamespace(__viteBrowserExternal$1);
|
|
43317
43233
|
const version$1 = "3.1.0";
|
|
43318
43234
|
const require$$0 = {
|
|
@@ -45515,146 +45431,85 @@ var StringBuilder = class {
|
|
|
45515
45431
|
constructor(value2) {
|
|
45516
45432
|
this.#value = typeof value2 === "string" ? value2 : value2.toString();
|
|
45517
45433
|
}
|
|
45518
|
-
/**
|
|
45519
|
-
* Applies dash case transformation
|
|
45520
|
-
*/
|
|
45521
45434
|
dashCase() {
|
|
45522
|
-
this.#value = index.
|
|
45435
|
+
this.#value = index.string_default.dashCase(this.#value);
|
|
45523
45436
|
return this;
|
|
45524
45437
|
}
|
|
45525
|
-
/**
|
|
45526
|
-
* Applies dot case transformation
|
|
45527
|
-
*/
|
|
45528
45438
|
dotCase() {
|
|
45529
|
-
this.#value = index.
|
|
45439
|
+
this.#value = index.string_default.dotCase(this.#value);
|
|
45530
45440
|
return this;
|
|
45531
45441
|
}
|
|
45532
|
-
/**
|
|
45533
|
-
* Applies snake case transformation
|
|
45534
|
-
*/
|
|
45535
45442
|
snakeCase() {
|
|
45536
|
-
this.#value = index.
|
|
45443
|
+
this.#value = index.string_default.snakeCase(this.#value);
|
|
45537
45444
|
return this;
|
|
45538
45445
|
}
|
|
45539
|
-
/**
|
|
45540
|
-
* Applies pascal case transformation
|
|
45541
|
-
*/
|
|
45542
45446
|
pascalCase() {
|
|
45543
|
-
this.#value = index.
|
|
45447
|
+
this.#value = index.string_default.pascalCase(this.#value);
|
|
45544
45448
|
return this;
|
|
45545
45449
|
}
|
|
45546
|
-
/**
|
|
45547
|
-
* Applies camelcase case transformation
|
|
45548
|
-
*/
|
|
45549
45450
|
camelCase() {
|
|
45550
|
-
this.#value = index.
|
|
45451
|
+
this.#value = index.string_default.camelCase(this.#value);
|
|
45551
45452
|
return this;
|
|
45552
45453
|
}
|
|
45553
|
-
/**
|
|
45554
|
-
* Applies capital case transformation
|
|
45555
|
-
*/
|
|
45556
45454
|
capitalCase() {
|
|
45557
|
-
this.#value = index.
|
|
45455
|
+
this.#value = index.string_default.capitalCase(this.#value);
|
|
45558
45456
|
return this;
|
|
45559
45457
|
}
|
|
45560
|
-
/**
|
|
45561
|
-
* Applies title case transformation
|
|
45562
|
-
*/
|
|
45563
45458
|
titleCase() {
|
|
45564
|
-
this.#value = index.
|
|
45459
|
+
this.#value = index.string_default.titleCase(this.#value);
|
|
45565
45460
|
return this;
|
|
45566
45461
|
}
|
|
45567
|
-
/**
|
|
45568
|
-
* Applies sentence case transformation
|
|
45569
|
-
*/
|
|
45570
45462
|
sentenceCase() {
|
|
45571
|
-
this.#value = index.
|
|
45463
|
+
this.#value = index.string_default.sentenceCase(this.#value);
|
|
45572
45464
|
return this;
|
|
45573
45465
|
}
|
|
45574
|
-
/**
|
|
45575
|
-
* Removes all sorts of casing from the string
|
|
45576
|
-
*/
|
|
45577
45466
|
noCase() {
|
|
45578
|
-
this.#value = index.
|
|
45467
|
+
this.#value = index.string_default.noCase(this.#value);
|
|
45579
45468
|
return this;
|
|
45580
45469
|
}
|
|
45581
|
-
/**
|
|
45582
|
-
* Converts value to its plural form
|
|
45583
|
-
*/
|
|
45584
45470
|
plural() {
|
|
45585
|
-
this.#value = index.
|
|
45471
|
+
this.#value = index.string_default.pluralize(this.#value);
|
|
45586
45472
|
return this;
|
|
45587
45473
|
}
|
|
45588
|
-
/**
|
|
45589
|
-
* Converts value to its singular form
|
|
45590
|
-
*/
|
|
45591
45474
|
singular() {
|
|
45592
|
-
this.#value = index.
|
|
45475
|
+
this.#value = index.string_default.singular(this.#value);
|
|
45593
45476
|
return this;
|
|
45594
45477
|
}
|
|
45595
|
-
/**
|
|
45596
|
-
* Converts value to a URL friendly slug
|
|
45597
|
-
*/
|
|
45598
45478
|
slugify() {
|
|
45599
|
-
this.#value = index.
|
|
45479
|
+
this.#value = index.string_default.slug(this.#value);
|
|
45600
45480
|
return this;
|
|
45601
45481
|
}
|
|
45602
|
-
/**
|
|
45603
|
-
* Removes a given suffix from the string
|
|
45604
|
-
*/
|
|
45605
45482
|
removeSuffix(suffix, options) {
|
|
45606
|
-
if (options?.similarWords && options.similarWords.some((word) => new RegExp(`[-_]?${word}$`, "i").test(this.#value)))
|
|
45607
|
-
return this;
|
|
45608
|
-
}
|
|
45483
|
+
if (options?.similarWords && options.similarWords.some((word) => new RegExp(`[-_]?${word}$`, "i").test(this.#value))) return this;
|
|
45609
45484
|
this.#value = this.#value.replace(new RegExp(`[-_]?${suffix}$`, "i"), "");
|
|
45610
45485
|
return this;
|
|
45611
45486
|
}
|
|
45612
|
-
/**
|
|
45613
|
-
* Adds suffix to the string
|
|
45614
|
-
*/
|
|
45615
45487
|
suffix(suffix, options) {
|
|
45616
45488
|
this.removeSuffix(suffix, options);
|
|
45617
45489
|
this.#value = `${this.#value}${suffix}`;
|
|
45618
45490
|
return this;
|
|
45619
45491
|
}
|
|
45620
|
-
/**
|
|
45621
|
-
* Removes a given prefix from the string
|
|
45622
|
-
*/
|
|
45623
45492
|
removePrefix(prefix, options) {
|
|
45624
|
-
if (options?.similarWords && options.similarWords.some((word) => new RegExp(`^${word}[-_]?`, "i").test(this.#value)))
|
|
45625
|
-
return this;
|
|
45626
|
-
}
|
|
45493
|
+
if (options?.similarWords && options.similarWords.some((word) => new RegExp(`^${word}[-_]?`, "i").test(this.#value))) return this;
|
|
45627
45494
|
this.#value = this.#value.replace(new RegExp(`^${prefix}[-_]?`, "i"), "");
|
|
45628
45495
|
return this;
|
|
45629
45496
|
}
|
|
45630
|
-
/**
|
|
45631
|
-
* Adds prefix to the string
|
|
45632
|
-
*/
|
|
45633
45497
|
prefix(prefix) {
|
|
45634
45498
|
this.removePrefix(prefix);
|
|
45635
45499
|
this.#value = `${prefix}${this.#value}`;
|
|
45636
45500
|
return this;
|
|
45637
45501
|
}
|
|
45638
|
-
/**
|
|
45639
|
-
* Removes extension from the value
|
|
45640
|
-
*/
|
|
45641
45502
|
removeExtension() {
|
|
45642
|
-
this.#value = this.#value.replace(new RegExp(`${require$$
|
|
45503
|
+
this.#value = this.#value.replace(/* @__PURE__ */ new RegExp(`${require$$2$3.extname(this.#value)}$`), "");
|
|
45643
45504
|
return this;
|
|
45644
45505
|
}
|
|
45645
|
-
/**
|
|
45646
|
-
* Adds extension to the value
|
|
45647
|
-
*/
|
|
45648
45506
|
ext(extension) {
|
|
45649
45507
|
this.removeExtension();
|
|
45650
45508
|
this.#value = `${this.#value}.${extension.replace(/^\./, "")}`;
|
|
45651
45509
|
return this;
|
|
45652
45510
|
}
|
|
45653
|
-
/**
|
|
45654
|
-
* Convert slashes to unix slash
|
|
45655
|
-
*/
|
|
45656
45511
|
toUnixSlash() {
|
|
45657
|
-
this.#value = index.
|
|
45512
|
+
this.#value = index.string_default.toUnixSlash(this.#value);
|
|
45658
45513
|
return this;
|
|
45659
45514
|
}
|
|
45660
45515
|
toString() {
|
|
@@ -46986,7 +46841,7 @@ var Application = class extends Macroable {
|
|
|
46986
46841
|
*/
|
|
46987
46842
|
stubs = {
|
|
46988
46843
|
create: async () => {
|
|
46989
|
-
const { StubsManager } = await Promise.resolve().then(() => require("./manager-OLS5T3G7-
|
|
46844
|
+
const { StubsManager } = await Promise.resolve().then(() => require("./manager-OLS5T3G7-BPVI59Zw.cjs"));
|
|
46990
46845
|
return new StubsManager(this, this.makePath(this.rcFile.directories.stubs));
|
|
46991
46846
|
}
|
|
46992
46847
|
};
|
|
@@ -47600,7 +47455,7 @@ var RouterFactory = class {
|
|
|
47600
47455
|
* Returns an instance of the application class
|
|
47601
47456
|
*/
|
|
47602
47457
|
#getApp() {
|
|
47603
|
-
return this.#parameters.app || new AppFactory().create(new URL("./app/", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-
|
|
47458
|
+
return this.#parameters.app || new AppFactory().create(new URL("./app/", typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-BrGbuAtt.cjs", document.baseURI).href));
|
|
47604
47459
|
}
|
|
47605
47460
|
/**
|
|
47606
47461
|
* Returns an instance of the encryptor to encrypt
|
|
@@ -52224,9 +52079,9 @@ const resolveModelDisplayColumn = (model) => {
|
|
|
52224
52079
|
const potentials = /* @__PURE__ */ new Map();
|
|
52225
52080
|
model.$columnsDefinitions.forEach((columnOptions, attribute) => {
|
|
52226
52081
|
potentials.set(attribute, columnOptions);
|
|
52227
|
-
potentials.set(index.
|
|
52082
|
+
potentials.set(index.string_default.camelCase(attribute), columnOptions);
|
|
52228
52083
|
potentials.set(columnOptions.columnName, columnOptions);
|
|
52229
|
-
potentials.set(index.
|
|
52084
|
+
potentials.set(index.string_default.camelCase(columnOptions.columnName), columnOptions);
|
|
52230
52085
|
});
|
|
52231
52086
|
for (const candidate of candidates) {
|
|
52232
52087
|
let found = potentials.get(candidate);
|
|
@@ -52237,7 +52092,7 @@ const resolveModelDisplayColumn = (model) => {
|
|
|
52237
52092
|
if (found) {
|
|
52238
52093
|
return found.columnName;
|
|
52239
52094
|
}
|
|
52240
|
-
found = potentials.get(index.
|
|
52095
|
+
found = potentials.get(index.string_default.snakeCase(candidate));
|
|
52241
52096
|
if (found) {
|
|
52242
52097
|
return found.columnName;
|
|
52243
52098
|
}
|
|
@@ -56468,7 +56323,7 @@ const isSimpleValue = (value2) => {
|
|
|
56468
56323
|
};
|
|
56469
56324
|
const toXmlValue = (value2, parent) => {
|
|
56470
56325
|
if (Array.isArray(value2)) {
|
|
56471
|
-
return value2.map((v) => parent ? { [index.
|
|
56326
|
+
return value2.map((v) => parent ? { [index.string_default.singular(parent)]: toXmlValue(v) } : toXmlValue(v));
|
|
56472
56327
|
}
|
|
56473
56328
|
if (type_guardsBbzVmysZ.isObject$1(value2)) {
|
|
56474
56329
|
const out = {};
|
|
@@ -58830,7 +58685,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
58830
58685
|
};
|
|
58831
58686
|
}
|
|
58832
58687
|
#makeSchemaForAdditionalRoute(method, path, callbackOrRouteDetails) {
|
|
58833
|
-
const operationId = index.
|
|
58688
|
+
const operationId = index.string_default.camelCase(`${method}_${path.replace(/^\//, "_")}`);
|
|
58834
58689
|
if (isAdditionalResourcefulRouteDetails(callbackOrRouteDetails)) {
|
|
58835
58690
|
const operation = {
|
|
58836
58691
|
tags: Array.isArray(callbackOrRouteDetails.tags) ? callbackOrRouteDetails.tags : "string" === typeof callbackOrRouteDetails.tags ? [callbackOrRouteDetails.tags] : [],
|
|
@@ -59092,7 +58947,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59092
58947
|
get: {
|
|
59093
58948
|
summary: `Filterable Index of ${resourcefulModelName} Model`,
|
|
59094
58949
|
tags: [`${resourcefulModelName} Model`],
|
|
59095
|
-
operationId: index.
|
|
58950
|
+
operationId: index.string_default.camelCase(["serve", resourcefulModelName, "index"].join("_")),
|
|
59096
58951
|
parameters: [
|
|
59097
58952
|
{
|
|
59098
58953
|
name: "filter",
|
|
@@ -59283,7 +59138,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59283
59138
|
post: {
|
|
59284
59139
|
summary: `Create a new ${resourcefulModelName} Model instance`,
|
|
59285
59140
|
tags: [`${resourcefulModelName} Model`],
|
|
59286
|
-
operationId: index.
|
|
59141
|
+
operationId: index.string_default.camelCase(["serve", resourcefulModelName, "create"].join("_")),
|
|
59287
59142
|
requestBody: {
|
|
59288
59143
|
content: {
|
|
59289
59144
|
"application/json": {
|
|
@@ -59324,7 +59179,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59324
59179
|
put: {
|
|
59325
59180
|
summary: `Update an existing ${resourcefulModelName} Model instance with ID in payload`,
|
|
59326
59181
|
tags: [`${resourcefulModelName} Model`],
|
|
59327
|
-
operationId: index.
|
|
59182
|
+
operationId: index.string_default.camelCase(
|
|
59328
59183
|
["serve", resourcefulModelName, "putUpdateWithIdInPayload"].join("_")
|
|
59329
59184
|
),
|
|
59330
59185
|
requestBody: {
|
|
@@ -59415,7 +59270,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59415
59270
|
get: {
|
|
59416
59271
|
summary: `${resourcefulModelName} index operation metadata`,
|
|
59417
59272
|
tags: [`${resourcefulModelName} Model`],
|
|
59418
|
-
operationId: index.
|
|
59273
|
+
operationId: index.string_default.camelCase(
|
|
59419
59274
|
["serve", resourcefulModelName, "meta", "for", "index"].join("_")
|
|
59420
59275
|
),
|
|
59421
59276
|
responses: {
|
|
@@ -59437,7 +59292,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59437
59292
|
get: {
|
|
59438
59293
|
summary: `${resourcefulModelName} create operation metadata`,
|
|
59439
59294
|
tags: [`${resourcefulModelName} Model`],
|
|
59440
|
-
operationId: index.
|
|
59295
|
+
operationId: index.string_default.camelCase(
|
|
59441
59296
|
["serve", resourcefulModelName, "meta", "for", "create"].join("_")
|
|
59442
59297
|
),
|
|
59443
59298
|
responses: {
|
|
@@ -59459,7 +59314,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59459
59314
|
get: {
|
|
59460
59315
|
summary: `${resourcefulModelName} update operation metadata`,
|
|
59461
59316
|
tags: [`${resourcefulModelName} Model`],
|
|
59462
|
-
operationId: index.
|
|
59317
|
+
operationId: index.string_default.camelCase(
|
|
59463
59318
|
["serve", resourcefulModelName, "meta", "for", "update"].join("_")
|
|
59464
59319
|
),
|
|
59465
59320
|
responses: {
|
|
@@ -59481,7 +59336,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59481
59336
|
get: {
|
|
59482
59337
|
summary: `${resourcefulModelName} bulk.update operation metadata`,
|
|
59483
59338
|
tags: [`${resourcefulModelName} Model`],
|
|
59484
|
-
operationId: index.
|
|
59339
|
+
operationId: index.string_default.camelCase(
|
|
59485
59340
|
["serve", resourcefulModelName, "meta", "for", "bulkUpdate"].join("_")
|
|
59486
59341
|
),
|
|
59487
59342
|
responses: {
|
|
@@ -59535,7 +59390,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59535
59390
|
put: {
|
|
59536
59391
|
summary: `Bulk update existing ${resourcefulModelName} Model instances by filter`,
|
|
59537
59392
|
tags: [`${resourcefulModelName} Model`],
|
|
59538
|
-
operationId: index.
|
|
59393
|
+
operationId: index.string_default.camelCase(
|
|
59539
59394
|
["serve", resourcefulModelName, "putBulkUpdateWithFilter"].join("_")
|
|
59540
59395
|
),
|
|
59541
59396
|
parameters: [
|
|
@@ -59580,7 +59435,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59580
59435
|
patch: {
|
|
59581
59436
|
summary: `Bulk update existing ${resourcefulModelName} Model instances by filter`,
|
|
59582
59437
|
tags: [`${resourcefulModelName} Model`],
|
|
59583
|
-
operationId: index.
|
|
59438
|
+
operationId: index.string_default.camelCase(
|
|
59584
59439
|
["serve", resourcefulModelName, "patchBulkUpdateWithFilter"].join("_")
|
|
59585
59440
|
),
|
|
59586
59441
|
parameters: [
|
|
@@ -59627,7 +59482,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59627
59482
|
put: {
|
|
59628
59483
|
summary: `Bulk update existing ${resourcefulModelName} Model instances by unique ids`,
|
|
59629
59484
|
tags: [`${resourcefulModelName} Model`],
|
|
59630
|
-
operationId: index.
|
|
59485
|
+
operationId: index.string_default.camelCase(
|
|
59631
59486
|
["serve", resourcefulModelName, "putBulkUpdateWithUniqueIds"].join("_")
|
|
59632
59487
|
),
|
|
59633
59488
|
parameters: [
|
|
@@ -59663,7 +59518,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59663
59518
|
patch: {
|
|
59664
59519
|
summary: `Bulk update existing ${resourcefulModelName} Model instances by unique ids`,
|
|
59665
59520
|
tags: [`${resourcefulModelName} Model`],
|
|
59666
|
-
operationId: index.
|
|
59521
|
+
operationId: index.string_default.camelCase(
|
|
59667
59522
|
["serve", resourcefulModelName, "patchBulkUpdateWithUniqueIds"].join("_")
|
|
59668
59523
|
),
|
|
59669
59524
|
parameters: [
|
|
@@ -59701,7 +59556,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59701
59556
|
get: {
|
|
59702
59557
|
summary: `Filterable Index Shortcut of ${resourcefulModelName} Model`,
|
|
59703
59558
|
tags: [`${resourcefulModelName} Model`],
|
|
59704
|
-
operationId: index.
|
|
59559
|
+
operationId: index.string_default.camelCase(
|
|
59705
59560
|
["serve", resourcefulModelName, "index", "shortcut"].join("_")
|
|
59706
59561
|
),
|
|
59707
59562
|
parameters: [
|
|
@@ -59783,7 +59638,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59783
59638
|
get: {
|
|
59784
59639
|
summary: `Retrieve a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59785
59640
|
tags: [`${resourcefulModelName} Model`],
|
|
59786
|
-
operationId: index.
|
|
59641
|
+
operationId: index.string_default.camelCase(["serve", resourcefulModelName, "read"].join("_")),
|
|
59787
59642
|
parameters: [
|
|
59788
59643
|
{
|
|
59789
59644
|
name: "uid",
|
|
@@ -59817,7 +59672,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59817
59672
|
put: {
|
|
59818
59673
|
summary: `Update a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59819
59674
|
tags: [`${resourcefulModelName} Model`],
|
|
59820
|
-
operationId: index.
|
|
59675
|
+
operationId: index.string_default.camelCase(
|
|
59821
59676
|
["serve", resourcefulModelName, "put", "update"].join("_")
|
|
59822
59677
|
),
|
|
59823
59678
|
parameters: [
|
|
@@ -59884,7 +59739,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59884
59739
|
patch: {
|
|
59885
59740
|
summary: `Partially update a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59886
59741
|
tags: [`${resourcefulModelName} Model`],
|
|
59887
|
-
operationId: index.
|
|
59742
|
+
operationId: index.string_default.camelCase(
|
|
59888
59743
|
["serve", resourcefulModelName, "patch", "update"].join("_")
|
|
59889
59744
|
),
|
|
59890
59745
|
parameters: [
|
|
@@ -59951,7 +59806,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59951
59806
|
delete: {
|
|
59952
59807
|
summary: `Delete a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59953
59808
|
tags: [`${resourcefulModelName} Model`],
|
|
59954
|
-
operationId: index.
|
|
59809
|
+
operationId: index.string_default.camelCase(
|
|
59955
59810
|
["serve", resourcefulModelName, "delete", "remove"].join("_")
|
|
59956
59811
|
),
|
|
59957
59812
|
parameters: [
|
|
@@ -60011,7 +59866,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60011
59866
|
get: {
|
|
60012
59867
|
summary: `Retrieve the related ${name} ${relatedResourcefulModelName} Model instances for a specific ${resourcefulModelName} Model instance by its ID`,
|
|
60013
59868
|
tags: [`${resourcefulModelName} Model`],
|
|
60014
|
-
operationId: index.
|
|
59869
|
+
operationId: index.string_default.camelCase(
|
|
60015
59870
|
["serve", resourcefulModelName, "read", "related", name].join("_")
|
|
60016
59871
|
),
|
|
60017
59872
|
parameters: [
|
|
@@ -60217,7 +60072,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60217
60072
|
put: {
|
|
60218
60073
|
summary: `Sync the related ${name} ${relatedResourcefulModelName} Model instances for a specific ${resourcefulModelName} Model instance by its ID`,
|
|
60219
60074
|
tags: [`${resourcefulModelName} Model`],
|
|
60220
|
-
operationId: index.
|
|
60075
|
+
operationId: index.string_default.camelCase(
|
|
60221
60076
|
["serve", resourcefulModelName, "update", "related", name, "put"].join("_")
|
|
60222
60077
|
),
|
|
60223
60078
|
parameters: [
|
|
@@ -60248,7 +60103,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60248
60103
|
patch: {
|
|
60249
60104
|
summary: `Sync the related ${name} ${relatedResourcefulModelName} Model instances for a specific ${resourcefulModelName} Model instance by its ID`,
|
|
60250
60105
|
tags: [`${resourcefulModelName} Model`],
|
|
60251
|
-
operationId: index.
|
|
60106
|
+
operationId: index.string_default.camelCase(
|
|
60252
60107
|
["serve", resourcefulModelName, "update", "related", name, "patch"].join("_")
|
|
60253
60108
|
),
|
|
60254
60109
|
parameters: [
|
|
@@ -60281,7 +60136,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60281
60136
|
get: {
|
|
60282
60137
|
summary: `Shortcut to Retrieve the related ${name} ${relatedResourcefulModelName} Model instances for a specific ${resourcefulModelName} Model instance by its ID`,
|
|
60283
60138
|
tags: [`${resourcefulModelName} Model`],
|
|
60284
|
-
operationId: index.
|
|
60139
|
+
operationId: index.string_default.camelCase(
|
|
60285
60140
|
["serve", resourcefulModelName, "read", "related", name, "shortcut"].join("_")
|
|
60286
60141
|
),
|
|
60287
60142
|
parameters: [
|
|
@@ -60369,7 +60224,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60369
60224
|
get: {
|
|
60370
60225
|
summary: `Related ${relatedResourcefulModelName} index operation metadata`,
|
|
60371
60226
|
tags: [`${resourcefulModelName} Model`],
|
|
60372
|
-
operationId: index.
|
|
60227
|
+
operationId: index.string_default.camelCase(
|
|
60373
60228
|
["serve", resourcefulModelName, "read", "related", name, "metadata"].join("_")
|
|
60374
60229
|
),
|
|
60375
60230
|
responses: {
|
|
@@ -60606,7 +60461,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60606
60461
|
);
|
|
60607
60462
|
const errorResponseReferences = resourceful_error_middleware.getPossibleHttpErrorCodes().map((c) => ({
|
|
60608
60463
|
[c.toString()]: {
|
|
60609
|
-
$ref: `#/components/responses/${index.
|
|
60464
|
+
$ref: `#/components/responses/${index.string_default.camelCase(["error", c].join("_"))}`
|
|
60610
60465
|
}
|
|
60611
60466
|
}));
|
|
60612
60467
|
Object.entries(ret).forEach(([path, operations]) => {
|
|
@@ -60703,7 +60558,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60703
60558
|
const errorResponses = {};
|
|
60704
60559
|
const errorCodes = resourceful_error_middleware.getPossibleHttpErrorCodes();
|
|
60705
60560
|
errorCodes.forEach((code) => {
|
|
60706
|
-
const key = index.
|
|
60561
|
+
const key = index.string_default.camelCase(["error", code].join("_"));
|
|
60707
60562
|
const errorCodeSchema = {
|
|
60708
60563
|
schema: {
|
|
60709
60564
|
type: "object",
|
|
@@ -61597,7 +61452,7 @@ const makeOpName = (...parts) => {
|
|
|
61597
61452
|
}
|
|
61598
61453
|
});
|
|
61599
61454
|
});
|
|
61600
|
-
return index.
|
|
61455
|
+
return index.string_default.pascalCase(combinable.join(" "));
|
|
61601
61456
|
};
|
|
61602
61457
|
class ODataMetadataService {
|
|
61603
61458
|
#opts;
|
|
@@ -61999,7 +61854,7 @@ class ODataMetadataService {
|
|
|
61999
61854
|
};
|
|
62000
61855
|
const entityTypeName = model.$resourcefulName;
|
|
62001
61856
|
const rawEntitySetName = this.#modelPathByModelCtor.get(model);
|
|
62002
|
-
const entitySetName = index.
|
|
61857
|
+
const entitySetName = index.string_default.camelCase(rawEntitySetName || modelName);
|
|
62003
61858
|
const resourcefulColumns = Array.from(model.$resourcefulColumns.entries());
|
|
62004
61859
|
const resourcefulComputedAccessors = Array.from(model.$resourcefulComputedAccessors.entries());
|
|
62005
61860
|
const resourcefulRelationships = Array.from(model.$resourcefulRelationships.entries());
|
|
@@ -62229,7 +62084,7 @@ class ODataMetadataService {
|
|
|
62229
62084
|
if (!modelPath) {
|
|
62230
62085
|
return;
|
|
62231
62086
|
}
|
|
62232
|
-
const fixedModelPath = index.
|
|
62087
|
+
const fixedModelPath = index.string_default.camelCase(modelPath);
|
|
62233
62088
|
modelEntitySetNavigationPropertyBindings.push({
|
|
62234
62089
|
Path: propName,
|
|
62235
62090
|
Target: fixedModelPath
|
|
@@ -62297,7 +62152,7 @@ class ODataMetadataService {
|
|
|
62297
62152
|
}
|
|
62298
62153
|
nonExpandableProperties.add(propName);
|
|
62299
62154
|
if (modelPolicy.syncRelated) {
|
|
62300
|
-
const opName = index.
|
|
62155
|
+
const opName = index.string_default.pascalCase(
|
|
62301
62156
|
["sync", model.$resourcefulName, "related", propName].join(" ")
|
|
62302
62157
|
);
|
|
62303
62158
|
if (!modelOperationSpecMap.has(opName)) {
|
|
@@ -64254,7 +64109,7 @@ class ResourcefulModelController2 {
|
|
|
64254
64109
|
return void 0;
|
|
64255
64110
|
}
|
|
64256
64111
|
const resourceAction = resource.slice(startOfActionName + 1);
|
|
64257
|
-
const toStrip = `Default.Sync${index.
|
|
64112
|
+
const toStrip = `Default.Sync${index.string_default.pascalCase([this.#subpath, "related"].join(" "))}`;
|
|
64258
64113
|
let relationshipName = resourceAction.replace(toStrip, "");
|
|
64259
64114
|
if (relationshipName.startsWith("/")) {
|
|
64260
64115
|
relationshipName = relationshipName.slice(1);
|
|
@@ -64268,7 +64123,7 @@ class ResourcefulModelController2 {
|
|
|
64268
64123
|
if (!relationshipName) {
|
|
64269
64124
|
return void 0;
|
|
64270
64125
|
}
|
|
64271
|
-
const candidates = [relationshipName, index.
|
|
64126
|
+
const candidates = [relationshipName, index.string_default.camelCase(relationshipName)];
|
|
64272
64127
|
for (const candidate of candidates) {
|
|
64273
64128
|
const resourcefulRelationshipDefinition = model.$resourcefulRelationships.get(candidate);
|
|
64274
64129
|
if (!resourcefulRelationshipDefinition) {
|
|
@@ -65059,9 +64914,9 @@ class ODataRouterService {
|
|
|
65059
64914
|
const payload = {
|
|
65060
64915
|
"@odata.context": `$metadata`,
|
|
65061
64916
|
"value": Array.from(this.#controllers.keys()).map((name) => ({
|
|
65062
|
-
name: index.
|
|
64917
|
+
name: index.string_default.camelCase(name),
|
|
65063
64918
|
kind: "EntitySet",
|
|
65064
|
-
url: index.
|
|
64919
|
+
url: index.string_default.camelCase(name)
|
|
65065
64920
|
}))
|
|
65066
64921
|
};
|
|
65067
64922
|
return ctx.response.json(payload);
|
|
@@ -65140,7 +64995,7 @@ async function configure(command) {
|
|
|
65140
64995
|
}
|
|
65141
64996
|
]);
|
|
65142
64997
|
}
|
|
65143
|
-
const version = "0.1.0-master-
|
|
64998
|
+
const version = "0.1.0-master-641df8fc";
|
|
65144
64999
|
exports.configure = configure;
|
|
65145
65000
|
exports.debug_default = debug_default;
|
|
65146
65001
|
exports.getResourcefulModelCreatePayloadValidationSchema = getResourcefulModelCreatePayloadValidationSchema;
|
|
@@ -65157,4 +65012,4 @@ exports.resourcefulRouterMacro = resourcefulRouterMacro;
|
|
|
65157
65012
|
exports.string_builder_default = string_builder_default;
|
|
65158
65013
|
exports.version = version;
|
|
65159
65014
|
exports.withResourceful = withResourceful;
|
|
65160
|
-
//# sourceMappingURL=index-
|
|
65015
|
+
//# sourceMappingURL=index-BrGbuAtt.cjs.map
|