@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
|
@@ -4,13 +4,13 @@ import { joi as validator, encode as encode$1 } from "./joi.mjs";
|
|
|
4
4
|
import Macroable from "@poppinss/macroable";
|
|
5
5
|
import { createError, Exception, RuntimeException, safeEqual, base64 as base64$2, MessageBuilder, fsImportAll, importDefault, slash, ObjectBuilder, defineStaticProperty } from "@poppinss/utils";
|
|
6
6
|
import "slash";
|
|
7
|
-
import require$$2$3 from "node:path";
|
|
7
|
+
import require$$2$3, { extname as extname$1 } from "node:path";
|
|
8
8
|
import "node:url";
|
|
9
9
|
import equal from "fast-deep-equal";
|
|
10
10
|
import Hooks from "@poppinss/hooks";
|
|
11
11
|
import require$$0$9 from "node:events";
|
|
12
12
|
import qs, { stringify as stringify$1, parse as parse$2 } from "qs";
|
|
13
|
-
import {
|
|
13
|
+
import { s as string_default, c as commonjsRequire, l } from "./index-DLVvkVxI.js";
|
|
14
14
|
import { p as process$1 } from "./index-C9zyi90j.js";
|
|
15
15
|
import igniculus from "igniculus";
|
|
16
16
|
import "kleur";
|
|
@@ -48,10 +48,10 @@ import { d as deepmerge } from "./index-B2cQuM3q.js";
|
|
|
48
48
|
import { encode, decode } from "./encoding.mjs";
|
|
49
49
|
import { i as isObject$1$1, a as isArray$1, e as isInstanceOf } from "./type_guards-BbzVmysZ-CqT6G85d.js";
|
|
50
50
|
import { R as ResourcefulStringType, a as ResourcefulDateType, b as ResourcefulDateTimeType, c as ResourcefulBinaryType, d as ResourcefulNumberType, e as ResourcefulIntegerType, f as ResourcefulBigintType, g as ResourcefulUnsignedIntegerType, h as ResourcefulBooleanType, i as ResourcefulObjectType, j as ResourcefulArrayType } from "./definitions-CKHQyT0I.js";
|
|
51
|
-
import { n as negotiateContent, Y as YAML, a as ResourcefulRouterVerb, b as ResourcefulRouterOperation, R as ResourcefulErrorMiddleware, c as ResourcefulHttpVerb, g as getPossibleHttpErrorCodes, d as describeHttpError } from "./resourceful_error_middleware-
|
|
51
|
+
import { n as negotiateContent, Y as YAML, a as ResourcefulRouterVerb, b as ResourcefulRouterOperation, R as ResourcefulErrorMiddleware, c as ResourcefulHttpVerb, g as getPossibleHttpErrorCodes, d as describeHttpError } from "./resourceful_error_middleware-Cb_eTzST.js";
|
|
52
52
|
import { R as ResourcefulHttpContext } from "./resourceful_router_context_service-NZQXcWAU.js";
|
|
53
53
|
import { u as useODataContext, O as ODataContext } from "./context-DS2fVmWT.js";
|
|
54
|
-
import { n as negotiateContent$1, a as negotiateMetadata, b as negotiatePreference, O as ODataErrorMiddleware } from "./odata_error_middleware-
|
|
54
|
+
import { n as negotiateContent$1, a as negotiateMetadata, b as negotiatePreference, O as ODataErrorMiddleware } from "./odata_error_middleware-Dspi8bct.js";
|
|
55
55
|
import { l as libExports$1 } from "./index-C54FDYOJ.js";
|
|
56
56
|
async function pMap(iterable, mapper, {
|
|
57
57
|
concurrency = Number.POSITIVE_INFINITY,
|
|
@@ -437,7 +437,12 @@ class Preloader {
|
|
|
437
437
|
}));
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
|
|
440
|
+
const __viteBrowserExternal = {};
|
|
441
|
+
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
442
|
+
__proto__: null,
|
|
443
|
+
default: __viteBrowserExternal
|
|
444
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
445
|
+
var main_default$1 = string_default;
|
|
441
446
|
class CamelCaseNamingStrategy {
|
|
442
447
|
/**
|
|
443
448
|
* The default table name for the given model
|
|
@@ -27388,12 +27393,10 @@ function predicateOnArray(method, predicate, values) {
|
|
|
27388
27393
|
}
|
|
27389
27394
|
return method.call(values, predicate);
|
|
27390
27395
|
}
|
|
27391
|
-
|
|
27396
|
+
const debug = utilExports.debuglog("poppinss:middleware");
|
|
27392
27397
|
function once$1(scope, callback) {
|
|
27393
27398
|
function next() {
|
|
27394
|
-
if (next.called)
|
|
27395
|
-
return;
|
|
27396
|
-
}
|
|
27399
|
+
if (next.called) return;
|
|
27397
27400
|
next.called = true;
|
|
27398
27401
|
debug("next invoked");
|
|
27399
27402
|
return callback(scope);
|
|
@@ -27401,83 +27404,40 @@ function once$1(scope, callback) {
|
|
|
27401
27404
|
next.called = false;
|
|
27402
27405
|
return next;
|
|
27403
27406
|
}
|
|
27404
|
-
|
|
27407
|
+
const DEFAULT_FINAL_HANDLER$1 = () => Promise.resolve();
|
|
27405
27408
|
var Runner$1 = class Runner {
|
|
27406
|
-
/**
|
|
27407
|
-
* An array of middleware to execute
|
|
27408
|
-
*/
|
|
27409
27409
|
#middleware;
|
|
27410
|
-
/**
|
|
27411
|
-
* The active index for the middleware handler
|
|
27412
|
-
*/
|
|
27413
27410
|
#currentIndex = 0;
|
|
27414
|
-
/**
|
|
27415
|
-
* Executor is responsible for executing a middleware
|
|
27416
|
-
*/
|
|
27417
27411
|
#executor;
|
|
27418
|
-
/**
|
|
27419
|
-
* Final handler to execute
|
|
27420
|
-
*/
|
|
27421
27412
|
#finalHandler = DEFAULT_FINAL_HANDLER$1;
|
|
27422
|
-
/**
|
|
27423
|
-
* Error handler to self handle errors
|
|
27424
|
-
*/
|
|
27425
27413
|
#errorHandler;
|
|
27426
27414
|
constructor(middleware) {
|
|
27427
27415
|
this.#middleware = middleware;
|
|
27428
27416
|
}
|
|
27429
|
-
/**
|
|
27430
|
-
* Invoke one middleware at a time. Middleware fns will be executed
|
|
27431
|
-
* recursively until `next` is invoked.
|
|
27432
|
-
*
|
|
27433
|
-
* If one method doesn't call `next`, then the chain will be finished
|
|
27434
|
-
* automatically.
|
|
27435
|
-
*/
|
|
27436
27417
|
#invoke(self2) {
|
|
27437
27418
|
const middleware = self2.#middleware[self2.#currentIndex++];
|
|
27438
27419
|
debug("running middleware at index", self2.#currentIndex);
|
|
27439
|
-
if (!middleware)
|
|
27440
|
-
return self2.#finalHandler();
|
|
27441
|
-
}
|
|
27420
|
+
if (!middleware) return self2.#finalHandler();
|
|
27442
27421
|
return self2.#executor(middleware, once$1(self2, self2.#invoke));
|
|
27443
27422
|
}
|
|
27444
|
-
/**
|
|
27445
|
-
* Same as invoke, but captures errors
|
|
27446
|
-
*/
|
|
27447
27423
|
#invokeWithErrorManagement(self2) {
|
|
27448
27424
|
const middleware = self2.#middleware[self2.#currentIndex++];
|
|
27449
27425
|
debug("running middleware at index", self2.#currentIndex);
|
|
27450
|
-
if (!middleware)
|
|
27451
|
-
return self2.#finalHandler().catch(self2.#errorHandler);
|
|
27452
|
-
}
|
|
27426
|
+
if (!middleware) return self2.#finalHandler().catch(self2.#errorHandler);
|
|
27453
27427
|
return self2.#executor(middleware, once$1(self2, self2.#invokeWithErrorManagement)).catch(self2.#errorHandler);
|
|
27454
27428
|
}
|
|
27455
|
-
/**
|
|
27456
|
-
* Final handler to be executed, when the chain ends successfully.
|
|
27457
|
-
*/
|
|
27458
27429
|
finalHandler(finalHandler) {
|
|
27459
27430
|
this.#finalHandler = finalHandler;
|
|
27460
27431
|
return this;
|
|
27461
27432
|
}
|
|
27462
|
-
/**
|
|
27463
|
-
* Specify a custom error handler to use. Defining an error handler
|
|
27464
|
-
* turns will make run method not throw an exception and instead
|
|
27465
|
-
* run the upstream middleware logic
|
|
27466
|
-
*/
|
|
27467
27433
|
errorHandler(errorHandler) {
|
|
27468
27434
|
this.#errorHandler = errorHandler;
|
|
27469
27435
|
return this;
|
|
27470
27436
|
}
|
|
27471
|
-
/**
|
|
27472
|
-
* Start the middleware queue and pass params to it. The `params`
|
|
27473
|
-
* array will be passed as spread arguments.
|
|
27474
|
-
*/
|
|
27475
27437
|
async run(cb) {
|
|
27476
27438
|
this.#executor = cb;
|
|
27477
27439
|
debug("starting middleware chain with %d middleware", this.#middleware.length);
|
|
27478
|
-
if (this.#errorHandler)
|
|
27479
|
-
return this.#invokeWithErrorManagement(this);
|
|
27480
|
-
}
|
|
27440
|
+
if (this.#errorHandler) return this.#invokeWithErrorManagement(this);
|
|
27481
27441
|
return this.#invoke(this);
|
|
27482
27442
|
}
|
|
27483
27443
|
};
|
|
@@ -27485,75 +27445,36 @@ var Middleware$1 = class Middleware {
|
|
|
27485
27445
|
#middleware = /* @__PURE__ */ new Set();
|
|
27486
27446
|
#middlewareArray;
|
|
27487
27447
|
#isFrozen = false;
|
|
27488
|
-
/**
|
|
27489
|
-
* Get access to all the registered middleware. The return value is
|
|
27490
|
-
* a set of handlers.
|
|
27491
|
-
*/
|
|
27492
27448
|
all() {
|
|
27493
27449
|
return this.#middleware;
|
|
27494
27450
|
}
|
|
27495
|
-
/**
|
|
27496
|
-
* Find if a handler has been registered as a middleware
|
|
27497
|
-
* already.
|
|
27498
|
-
*/
|
|
27499
27451
|
has(handler) {
|
|
27500
27452
|
return this.#middleware.has(handler);
|
|
27501
27453
|
}
|
|
27502
|
-
/**
|
|
27503
|
-
* Add a middleware. Adding the same middleware
|
|
27504
|
-
* twice will result in a noop.
|
|
27505
|
-
*/
|
|
27506
27454
|
add(handler) {
|
|
27507
|
-
if (this.#isFrozen)
|
|
27508
|
-
throw new Error("Middleware stack is frozen. Cannot add new middleware");
|
|
27509
|
-
}
|
|
27455
|
+
if (this.#isFrozen) throw new Error("Middleware stack is frozen. Cannot add new middleware");
|
|
27510
27456
|
this.#middleware.add(handler);
|
|
27511
27457
|
return this;
|
|
27512
27458
|
}
|
|
27513
|
-
/**
|
|
27514
|
-
* Remove a specific middleware
|
|
27515
|
-
*/
|
|
27516
27459
|
remove(handler) {
|
|
27517
|
-
if (this.#isFrozen)
|
|
27518
|
-
throw new Error("Middleware stack is frozen. Cannot remove middleware");
|
|
27519
|
-
}
|
|
27460
|
+
if (this.#isFrozen) throw new Error("Middleware stack is frozen. Cannot remove middleware");
|
|
27520
27461
|
return this.#middleware.delete(handler);
|
|
27521
27462
|
}
|
|
27522
|
-
/**
|
|
27523
|
-
* Remove all middleware
|
|
27524
|
-
*/
|
|
27525
27463
|
clear() {
|
|
27526
|
-
if (this.#isFrozen)
|
|
27527
|
-
throw new Error("Middleware stack is frozen. Cannot clear middleware");
|
|
27528
|
-
}
|
|
27464
|
+
if (this.#isFrozen) throw new Error("Middleware stack is frozen. Cannot clear middleware");
|
|
27529
27465
|
this.#middleware.clear();
|
|
27530
27466
|
}
|
|
27531
|
-
/**
|
|
27532
|
-
* Merge middleware from a existing middleware
|
|
27533
|
-
* instance. The merged middleware are
|
|
27534
|
-
* appended
|
|
27535
|
-
*/
|
|
27536
27467
|
merge(hooks) {
|
|
27537
|
-
if (this.#isFrozen)
|
|
27538
|
-
throw new Error("Middleware stack is frozen. Cannot merge middleware");
|
|
27539
|
-
}
|
|
27468
|
+
if (this.#isFrozen) throw new Error("Middleware stack is frozen. Cannot merge middleware");
|
|
27540
27469
|
hooks.all().forEach((handler) => {
|
|
27541
27470
|
this.add(handler);
|
|
27542
27471
|
});
|
|
27543
27472
|
}
|
|
27544
|
-
/**
|
|
27545
|
-
* Freezes the middleware stack for further modifications
|
|
27546
|
-
*/
|
|
27547
27473
|
freeze() {
|
|
27548
|
-
if (this.#isFrozen)
|
|
27549
|
-
return;
|
|
27550
|
-
}
|
|
27474
|
+
if (this.#isFrozen) return;
|
|
27551
27475
|
this.#isFrozen = true;
|
|
27552
27476
|
this.#middlewareArray = [...this.all()];
|
|
27553
27477
|
}
|
|
27554
|
-
/**
|
|
27555
|
-
* Returns an instance of the runner to run hooks
|
|
27556
|
-
*/
|
|
27557
27478
|
runner() {
|
|
27558
27479
|
this.freeze();
|
|
27559
27480
|
return new Runner$1(this.#middlewareArray);
|
|
@@ -43284,11 +43205,6 @@ function requireOnExitLeakFree() {
|
|
|
43284
43205
|
};
|
|
43285
43206
|
return onExitLeakFree;
|
|
43286
43207
|
}
|
|
43287
|
-
const __viteBrowserExternal = {};
|
|
43288
|
-
const __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43289
|
-
__proto__: null,
|
|
43290
|
-
default: __viteBrowserExternal
|
|
43291
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
43292
43208
|
const require$$5 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
|
|
43293
43209
|
const version$1 = "3.1.0";
|
|
43294
43210
|
const require$$0 = {
|
|
@@ -45491,146 +45407,85 @@ var StringBuilder = class {
|
|
|
45491
45407
|
constructor(value2) {
|
|
45492
45408
|
this.#value = typeof value2 === "string" ? value2 : value2.toString();
|
|
45493
45409
|
}
|
|
45494
|
-
/**
|
|
45495
|
-
* Applies dash case transformation
|
|
45496
|
-
*/
|
|
45497
45410
|
dashCase() {
|
|
45498
|
-
this.#value =
|
|
45411
|
+
this.#value = string_default.dashCase(this.#value);
|
|
45499
45412
|
return this;
|
|
45500
45413
|
}
|
|
45501
|
-
/**
|
|
45502
|
-
* Applies dot case transformation
|
|
45503
|
-
*/
|
|
45504
45414
|
dotCase() {
|
|
45505
|
-
this.#value =
|
|
45415
|
+
this.#value = string_default.dotCase(this.#value);
|
|
45506
45416
|
return this;
|
|
45507
45417
|
}
|
|
45508
|
-
/**
|
|
45509
|
-
* Applies snake case transformation
|
|
45510
|
-
*/
|
|
45511
45418
|
snakeCase() {
|
|
45512
|
-
this.#value =
|
|
45419
|
+
this.#value = string_default.snakeCase(this.#value);
|
|
45513
45420
|
return this;
|
|
45514
45421
|
}
|
|
45515
|
-
/**
|
|
45516
|
-
* Applies pascal case transformation
|
|
45517
|
-
*/
|
|
45518
45422
|
pascalCase() {
|
|
45519
|
-
this.#value =
|
|
45423
|
+
this.#value = string_default.pascalCase(this.#value);
|
|
45520
45424
|
return this;
|
|
45521
45425
|
}
|
|
45522
|
-
/**
|
|
45523
|
-
* Applies camelcase case transformation
|
|
45524
|
-
*/
|
|
45525
45426
|
camelCase() {
|
|
45526
|
-
this.#value =
|
|
45427
|
+
this.#value = string_default.camelCase(this.#value);
|
|
45527
45428
|
return this;
|
|
45528
45429
|
}
|
|
45529
|
-
/**
|
|
45530
|
-
* Applies capital case transformation
|
|
45531
|
-
*/
|
|
45532
45430
|
capitalCase() {
|
|
45533
|
-
this.#value =
|
|
45431
|
+
this.#value = string_default.capitalCase(this.#value);
|
|
45534
45432
|
return this;
|
|
45535
45433
|
}
|
|
45536
|
-
/**
|
|
45537
|
-
* Applies title case transformation
|
|
45538
|
-
*/
|
|
45539
45434
|
titleCase() {
|
|
45540
|
-
this.#value =
|
|
45435
|
+
this.#value = string_default.titleCase(this.#value);
|
|
45541
45436
|
return this;
|
|
45542
45437
|
}
|
|
45543
|
-
/**
|
|
45544
|
-
* Applies sentence case transformation
|
|
45545
|
-
*/
|
|
45546
45438
|
sentenceCase() {
|
|
45547
|
-
this.#value =
|
|
45439
|
+
this.#value = string_default.sentenceCase(this.#value);
|
|
45548
45440
|
return this;
|
|
45549
45441
|
}
|
|
45550
|
-
/**
|
|
45551
|
-
* Removes all sorts of casing from the string
|
|
45552
|
-
*/
|
|
45553
45442
|
noCase() {
|
|
45554
|
-
this.#value =
|
|
45443
|
+
this.#value = string_default.noCase(this.#value);
|
|
45555
45444
|
return this;
|
|
45556
45445
|
}
|
|
45557
|
-
/**
|
|
45558
|
-
* Converts value to its plural form
|
|
45559
|
-
*/
|
|
45560
45446
|
plural() {
|
|
45561
|
-
this.#value =
|
|
45447
|
+
this.#value = string_default.pluralize(this.#value);
|
|
45562
45448
|
return this;
|
|
45563
45449
|
}
|
|
45564
|
-
/**
|
|
45565
|
-
* Converts value to its singular form
|
|
45566
|
-
*/
|
|
45567
45450
|
singular() {
|
|
45568
|
-
this.#value =
|
|
45451
|
+
this.#value = string_default.singular(this.#value);
|
|
45569
45452
|
return this;
|
|
45570
45453
|
}
|
|
45571
|
-
/**
|
|
45572
|
-
* Converts value to a URL friendly slug
|
|
45573
|
-
*/
|
|
45574
45454
|
slugify() {
|
|
45575
|
-
this.#value =
|
|
45455
|
+
this.#value = string_default.slug(this.#value);
|
|
45576
45456
|
return this;
|
|
45577
45457
|
}
|
|
45578
|
-
/**
|
|
45579
|
-
* Removes a given suffix from the string
|
|
45580
|
-
*/
|
|
45581
45458
|
removeSuffix(suffix, options) {
|
|
45582
|
-
if (options?.similarWords && options.similarWords.some((word) => new RegExp(`[-_]?${word}$`, "i").test(this.#value)))
|
|
45583
|
-
return this;
|
|
45584
|
-
}
|
|
45459
|
+
if (options?.similarWords && options.similarWords.some((word) => new RegExp(`[-_]?${word}$`, "i").test(this.#value))) return this;
|
|
45585
45460
|
this.#value = this.#value.replace(new RegExp(`[-_]?${suffix}$`, "i"), "");
|
|
45586
45461
|
return this;
|
|
45587
45462
|
}
|
|
45588
|
-
/**
|
|
45589
|
-
* Adds suffix to the string
|
|
45590
|
-
*/
|
|
45591
45463
|
suffix(suffix, options) {
|
|
45592
45464
|
this.removeSuffix(suffix, options);
|
|
45593
45465
|
this.#value = `${this.#value}${suffix}`;
|
|
45594
45466
|
return this;
|
|
45595
45467
|
}
|
|
45596
|
-
/**
|
|
45597
|
-
* Removes a given prefix from the string
|
|
45598
|
-
*/
|
|
45599
45468
|
removePrefix(prefix, options) {
|
|
45600
|
-
if (options?.similarWords && options.similarWords.some((word) => new RegExp(`^${word}[-_]?`, "i").test(this.#value)))
|
|
45601
|
-
return this;
|
|
45602
|
-
}
|
|
45469
|
+
if (options?.similarWords && options.similarWords.some((word) => new RegExp(`^${word}[-_]?`, "i").test(this.#value))) return this;
|
|
45603
45470
|
this.#value = this.#value.replace(new RegExp(`^${prefix}[-_]?`, "i"), "");
|
|
45604
45471
|
return this;
|
|
45605
45472
|
}
|
|
45606
|
-
/**
|
|
45607
|
-
* Adds prefix to the string
|
|
45608
|
-
*/
|
|
45609
45473
|
prefix(prefix) {
|
|
45610
45474
|
this.removePrefix(prefix);
|
|
45611
45475
|
this.#value = `${prefix}${this.#value}`;
|
|
45612
45476
|
return this;
|
|
45613
45477
|
}
|
|
45614
|
-
/**
|
|
45615
|
-
* Removes extension from the value
|
|
45616
|
-
*/
|
|
45617
45478
|
removeExtension() {
|
|
45618
|
-
this.#value = this.#value.replace(new RegExp(`${extname(this.#value)}$`), "");
|
|
45479
|
+
this.#value = this.#value.replace(/* @__PURE__ */ new RegExp(`${extname$1(this.#value)}$`), "");
|
|
45619
45480
|
return this;
|
|
45620
45481
|
}
|
|
45621
|
-
/**
|
|
45622
|
-
* Adds extension to the value
|
|
45623
|
-
*/
|
|
45624
45482
|
ext(extension) {
|
|
45625
45483
|
this.removeExtension();
|
|
45626
45484
|
this.#value = `${this.#value}.${extension.replace(/^\./, "")}`;
|
|
45627
45485
|
return this;
|
|
45628
45486
|
}
|
|
45629
|
-
/**
|
|
45630
|
-
* Convert slashes to unix slash
|
|
45631
|
-
*/
|
|
45632
45487
|
toUnixSlash() {
|
|
45633
|
-
this.#value =
|
|
45488
|
+
this.#value = string_default.toUnixSlash(this.#value);
|
|
45634
45489
|
return this;
|
|
45635
45490
|
}
|
|
45636
45491
|
toString() {
|
|
@@ -46962,7 +46817,7 @@ var Application = class extends Macroable {
|
|
|
46962
46817
|
*/
|
|
46963
46818
|
stubs = {
|
|
46964
46819
|
create: async () => {
|
|
46965
|
-
const { StubsManager } = await import("./manager-OLS5T3G7-
|
|
46820
|
+
const { StubsManager } = await import("./manager-OLS5T3G7-DzVckqOB.js");
|
|
46966
46821
|
return new StubsManager(this, this.makePath(this.rcFile.directories.stubs));
|
|
46967
46822
|
}
|
|
46968
46823
|
};
|
|
@@ -52200,9 +52055,9 @@ const resolveModelDisplayColumn = (model) => {
|
|
|
52200
52055
|
const potentials = /* @__PURE__ */ new Map();
|
|
52201
52056
|
model.$columnsDefinitions.forEach((columnOptions, attribute) => {
|
|
52202
52057
|
potentials.set(attribute, columnOptions);
|
|
52203
|
-
potentials.set(
|
|
52058
|
+
potentials.set(string_default.camelCase(attribute), columnOptions);
|
|
52204
52059
|
potentials.set(columnOptions.columnName, columnOptions);
|
|
52205
|
-
potentials.set(
|
|
52060
|
+
potentials.set(string_default.camelCase(columnOptions.columnName), columnOptions);
|
|
52206
52061
|
});
|
|
52207
52062
|
for (const candidate of candidates) {
|
|
52208
52063
|
let found = potentials.get(candidate);
|
|
@@ -52213,7 +52068,7 @@ const resolveModelDisplayColumn = (model) => {
|
|
|
52213
52068
|
if (found) {
|
|
52214
52069
|
return found.columnName;
|
|
52215
52070
|
}
|
|
52216
|
-
found = potentials.get(
|
|
52071
|
+
found = potentials.get(string_default.snakeCase(candidate));
|
|
52217
52072
|
if (found) {
|
|
52218
52073
|
return found.columnName;
|
|
52219
52074
|
}
|
|
@@ -56444,7 +56299,7 @@ const isSimpleValue = (value2) => {
|
|
|
56444
56299
|
};
|
|
56445
56300
|
const toXmlValue = (value2, parent) => {
|
|
56446
56301
|
if (Array.isArray(value2)) {
|
|
56447
|
-
return value2.map((v) => parent ? { [
|
|
56302
|
+
return value2.map((v) => parent ? { [string_default.singular(parent)]: toXmlValue(v) } : toXmlValue(v));
|
|
56448
56303
|
}
|
|
56449
56304
|
if (isObject$1$1(value2)) {
|
|
56450
56305
|
const out = {};
|
|
@@ -58806,7 +58661,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
58806
58661
|
};
|
|
58807
58662
|
}
|
|
58808
58663
|
#makeSchemaForAdditionalRoute(method, path, callbackOrRouteDetails) {
|
|
58809
|
-
const operationId =
|
|
58664
|
+
const operationId = string_default.camelCase(`${method}_${path.replace(/^\//, "_")}`);
|
|
58810
58665
|
if (isAdditionalResourcefulRouteDetails(callbackOrRouteDetails)) {
|
|
58811
58666
|
const operation = {
|
|
58812
58667
|
tags: Array.isArray(callbackOrRouteDetails.tags) ? callbackOrRouteDetails.tags : "string" === typeof callbackOrRouteDetails.tags ? [callbackOrRouteDetails.tags] : [],
|
|
@@ -59068,7 +58923,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59068
58923
|
get: {
|
|
59069
58924
|
summary: `Filterable Index of ${resourcefulModelName} Model`,
|
|
59070
58925
|
tags: [`${resourcefulModelName} Model`],
|
|
59071
|
-
operationId:
|
|
58926
|
+
operationId: string_default.camelCase(["serve", resourcefulModelName, "index"].join("_")),
|
|
59072
58927
|
parameters: [
|
|
59073
58928
|
{
|
|
59074
58929
|
name: "filter",
|
|
@@ -59259,7 +59114,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59259
59114
|
post: {
|
|
59260
59115
|
summary: `Create a new ${resourcefulModelName} Model instance`,
|
|
59261
59116
|
tags: [`${resourcefulModelName} Model`],
|
|
59262
|
-
operationId:
|
|
59117
|
+
operationId: string_default.camelCase(["serve", resourcefulModelName, "create"].join("_")),
|
|
59263
59118
|
requestBody: {
|
|
59264
59119
|
content: {
|
|
59265
59120
|
"application/json": {
|
|
@@ -59300,7 +59155,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59300
59155
|
put: {
|
|
59301
59156
|
summary: `Update an existing ${resourcefulModelName} Model instance with ID in payload`,
|
|
59302
59157
|
tags: [`${resourcefulModelName} Model`],
|
|
59303
|
-
operationId:
|
|
59158
|
+
operationId: string_default.camelCase(
|
|
59304
59159
|
["serve", resourcefulModelName, "putUpdateWithIdInPayload"].join("_")
|
|
59305
59160
|
),
|
|
59306
59161
|
requestBody: {
|
|
@@ -59391,7 +59246,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59391
59246
|
get: {
|
|
59392
59247
|
summary: `${resourcefulModelName} index operation metadata`,
|
|
59393
59248
|
tags: [`${resourcefulModelName} Model`],
|
|
59394
|
-
operationId:
|
|
59249
|
+
operationId: string_default.camelCase(
|
|
59395
59250
|
["serve", resourcefulModelName, "meta", "for", "index"].join("_")
|
|
59396
59251
|
),
|
|
59397
59252
|
responses: {
|
|
@@ -59413,7 +59268,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59413
59268
|
get: {
|
|
59414
59269
|
summary: `${resourcefulModelName} create operation metadata`,
|
|
59415
59270
|
tags: [`${resourcefulModelName} Model`],
|
|
59416
|
-
operationId:
|
|
59271
|
+
operationId: string_default.camelCase(
|
|
59417
59272
|
["serve", resourcefulModelName, "meta", "for", "create"].join("_")
|
|
59418
59273
|
),
|
|
59419
59274
|
responses: {
|
|
@@ -59435,7 +59290,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59435
59290
|
get: {
|
|
59436
59291
|
summary: `${resourcefulModelName} update operation metadata`,
|
|
59437
59292
|
tags: [`${resourcefulModelName} Model`],
|
|
59438
|
-
operationId:
|
|
59293
|
+
operationId: string_default.camelCase(
|
|
59439
59294
|
["serve", resourcefulModelName, "meta", "for", "update"].join("_")
|
|
59440
59295
|
),
|
|
59441
59296
|
responses: {
|
|
@@ -59457,7 +59312,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59457
59312
|
get: {
|
|
59458
59313
|
summary: `${resourcefulModelName} bulk.update operation metadata`,
|
|
59459
59314
|
tags: [`${resourcefulModelName} Model`],
|
|
59460
|
-
operationId:
|
|
59315
|
+
operationId: string_default.camelCase(
|
|
59461
59316
|
["serve", resourcefulModelName, "meta", "for", "bulkUpdate"].join("_")
|
|
59462
59317
|
),
|
|
59463
59318
|
responses: {
|
|
@@ -59511,7 +59366,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59511
59366
|
put: {
|
|
59512
59367
|
summary: `Bulk update existing ${resourcefulModelName} Model instances by filter`,
|
|
59513
59368
|
tags: [`${resourcefulModelName} Model`],
|
|
59514
|
-
operationId:
|
|
59369
|
+
operationId: string_default.camelCase(
|
|
59515
59370
|
["serve", resourcefulModelName, "putBulkUpdateWithFilter"].join("_")
|
|
59516
59371
|
),
|
|
59517
59372
|
parameters: [
|
|
@@ -59556,7 +59411,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59556
59411
|
patch: {
|
|
59557
59412
|
summary: `Bulk update existing ${resourcefulModelName} Model instances by filter`,
|
|
59558
59413
|
tags: [`${resourcefulModelName} Model`],
|
|
59559
|
-
operationId:
|
|
59414
|
+
operationId: string_default.camelCase(
|
|
59560
59415
|
["serve", resourcefulModelName, "patchBulkUpdateWithFilter"].join("_")
|
|
59561
59416
|
),
|
|
59562
59417
|
parameters: [
|
|
@@ -59603,7 +59458,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59603
59458
|
put: {
|
|
59604
59459
|
summary: `Bulk update existing ${resourcefulModelName} Model instances by unique ids`,
|
|
59605
59460
|
tags: [`${resourcefulModelName} Model`],
|
|
59606
|
-
operationId:
|
|
59461
|
+
operationId: string_default.camelCase(
|
|
59607
59462
|
["serve", resourcefulModelName, "putBulkUpdateWithUniqueIds"].join("_")
|
|
59608
59463
|
),
|
|
59609
59464
|
parameters: [
|
|
@@ -59639,7 +59494,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59639
59494
|
patch: {
|
|
59640
59495
|
summary: `Bulk update existing ${resourcefulModelName} Model instances by unique ids`,
|
|
59641
59496
|
tags: [`${resourcefulModelName} Model`],
|
|
59642
|
-
operationId:
|
|
59497
|
+
operationId: string_default.camelCase(
|
|
59643
59498
|
["serve", resourcefulModelName, "patchBulkUpdateWithUniqueIds"].join("_")
|
|
59644
59499
|
),
|
|
59645
59500
|
parameters: [
|
|
@@ -59677,7 +59532,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59677
59532
|
get: {
|
|
59678
59533
|
summary: `Filterable Index Shortcut of ${resourcefulModelName} Model`,
|
|
59679
59534
|
tags: [`${resourcefulModelName} Model`],
|
|
59680
|
-
operationId:
|
|
59535
|
+
operationId: string_default.camelCase(
|
|
59681
59536
|
["serve", resourcefulModelName, "index", "shortcut"].join("_")
|
|
59682
59537
|
),
|
|
59683
59538
|
parameters: [
|
|
@@ -59759,7 +59614,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59759
59614
|
get: {
|
|
59760
59615
|
summary: `Retrieve a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59761
59616
|
tags: [`${resourcefulModelName} Model`],
|
|
59762
|
-
operationId:
|
|
59617
|
+
operationId: string_default.camelCase(["serve", resourcefulModelName, "read"].join("_")),
|
|
59763
59618
|
parameters: [
|
|
59764
59619
|
{
|
|
59765
59620
|
name: "uid",
|
|
@@ -59793,7 +59648,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59793
59648
|
put: {
|
|
59794
59649
|
summary: `Update a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59795
59650
|
tags: [`${resourcefulModelName} Model`],
|
|
59796
|
-
operationId:
|
|
59651
|
+
operationId: string_default.camelCase(
|
|
59797
59652
|
["serve", resourcefulModelName, "put", "update"].join("_")
|
|
59798
59653
|
),
|
|
59799
59654
|
parameters: [
|
|
@@ -59860,7 +59715,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59860
59715
|
patch: {
|
|
59861
59716
|
summary: `Partially update a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59862
59717
|
tags: [`${resourcefulModelName} Model`],
|
|
59863
|
-
operationId:
|
|
59718
|
+
operationId: string_default.camelCase(
|
|
59864
59719
|
["serve", resourcefulModelName, "patch", "update"].join("_")
|
|
59865
59720
|
),
|
|
59866
59721
|
parameters: [
|
|
@@ -59927,7 +59782,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59927
59782
|
delete: {
|
|
59928
59783
|
summary: `Delete a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59929
59784
|
tags: [`${resourcefulModelName} Model`],
|
|
59930
|
-
operationId:
|
|
59785
|
+
operationId: string_default.camelCase(
|
|
59931
59786
|
["serve", resourcefulModelName, "delete", "remove"].join("_")
|
|
59932
59787
|
),
|
|
59933
59788
|
parameters: [
|
|
@@ -59987,7 +59842,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
59987
59842
|
get: {
|
|
59988
59843
|
summary: `Retrieve the related ${name} ${relatedResourcefulModelName} Model instances for a specific ${resourcefulModelName} Model instance by its ID`,
|
|
59989
59844
|
tags: [`${resourcefulModelName} Model`],
|
|
59990
|
-
operationId:
|
|
59845
|
+
operationId: string_default.camelCase(
|
|
59991
59846
|
["serve", resourcefulModelName, "read", "related", name].join("_")
|
|
59992
59847
|
),
|
|
59993
59848
|
parameters: [
|
|
@@ -60193,7 +60048,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60193
60048
|
put: {
|
|
60194
60049
|
summary: `Sync the related ${name} ${relatedResourcefulModelName} Model instances for a specific ${resourcefulModelName} Model instance by its ID`,
|
|
60195
60050
|
tags: [`${resourcefulModelName} Model`],
|
|
60196
|
-
operationId:
|
|
60051
|
+
operationId: string_default.camelCase(
|
|
60197
60052
|
["serve", resourcefulModelName, "update", "related", name, "put"].join("_")
|
|
60198
60053
|
),
|
|
60199
60054
|
parameters: [
|
|
@@ -60224,7 +60079,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60224
60079
|
patch: {
|
|
60225
60080
|
summary: `Sync the related ${name} ${relatedResourcefulModelName} Model instances for a specific ${resourcefulModelName} Model instance by its ID`,
|
|
60226
60081
|
tags: [`${resourcefulModelName} Model`],
|
|
60227
|
-
operationId:
|
|
60082
|
+
operationId: string_default.camelCase(
|
|
60228
60083
|
["serve", resourcefulModelName, "update", "related", name, "patch"].join("_")
|
|
60229
60084
|
),
|
|
60230
60085
|
parameters: [
|
|
@@ -60257,7 +60112,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60257
60112
|
get: {
|
|
60258
60113
|
summary: `Shortcut to Retrieve the related ${name} ${relatedResourcefulModelName} Model instances for a specific ${resourcefulModelName} Model instance by its ID`,
|
|
60259
60114
|
tags: [`${resourcefulModelName} Model`],
|
|
60260
|
-
operationId:
|
|
60115
|
+
operationId: string_default.camelCase(
|
|
60261
60116
|
["serve", resourcefulModelName, "read", "related", name, "shortcut"].join("_")
|
|
60262
60117
|
),
|
|
60263
60118
|
parameters: [
|
|
@@ -60345,7 +60200,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60345
60200
|
get: {
|
|
60346
60201
|
summary: `Related ${relatedResourcefulModelName} index operation metadata`,
|
|
60347
60202
|
tags: [`${resourcefulModelName} Model`],
|
|
60348
|
-
operationId:
|
|
60203
|
+
operationId: string_default.camelCase(
|
|
60349
60204
|
["serve", resourcefulModelName, "read", "related", name, "metadata"].join("_")
|
|
60350
60205
|
),
|
|
60351
60206
|
responses: {
|
|
@@ -60582,7 +60437,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60582
60437
|
);
|
|
60583
60438
|
const errorResponseReferences = getPossibleHttpErrorCodes().map((c) => ({
|
|
60584
60439
|
[c.toString()]: {
|
|
60585
|
-
$ref: `#/components/responses/${
|
|
60440
|
+
$ref: `#/components/responses/${string_default.camelCase(["error", c].join("_"))}`
|
|
60586
60441
|
}
|
|
60587
60442
|
}));
|
|
60588
60443
|
Object.entries(ret).forEach(([path, operations]) => {
|
|
@@ -60679,7 +60534,7 @@ class ResourcefulRouterOpenApiDocumentService {
|
|
|
60679
60534
|
const errorResponses = {};
|
|
60680
60535
|
const errorCodes = getPossibleHttpErrorCodes();
|
|
60681
60536
|
errorCodes.forEach((code) => {
|
|
60682
|
-
const key =
|
|
60537
|
+
const key = string_default.camelCase(["error", code].join("_"));
|
|
60683
60538
|
const errorCodeSchema = {
|
|
60684
60539
|
schema: {
|
|
60685
60540
|
type: "object",
|
|
@@ -61573,7 +61428,7 @@ const makeOpName = (...parts) => {
|
|
|
61573
61428
|
}
|
|
61574
61429
|
});
|
|
61575
61430
|
});
|
|
61576
|
-
return
|
|
61431
|
+
return string_default.pascalCase(combinable.join(" "));
|
|
61577
61432
|
};
|
|
61578
61433
|
class ODataMetadataService {
|
|
61579
61434
|
#opts;
|
|
@@ -61975,7 +61830,7 @@ class ODataMetadataService {
|
|
|
61975
61830
|
};
|
|
61976
61831
|
const entityTypeName = model.$resourcefulName;
|
|
61977
61832
|
const rawEntitySetName = this.#modelPathByModelCtor.get(model);
|
|
61978
|
-
const entitySetName =
|
|
61833
|
+
const entitySetName = string_default.camelCase(rawEntitySetName || modelName);
|
|
61979
61834
|
const resourcefulColumns = Array.from(model.$resourcefulColumns.entries());
|
|
61980
61835
|
const resourcefulComputedAccessors = Array.from(model.$resourcefulComputedAccessors.entries());
|
|
61981
61836
|
const resourcefulRelationships = Array.from(model.$resourcefulRelationships.entries());
|
|
@@ -62205,7 +62060,7 @@ class ODataMetadataService {
|
|
|
62205
62060
|
if (!modelPath) {
|
|
62206
62061
|
return;
|
|
62207
62062
|
}
|
|
62208
|
-
const fixedModelPath =
|
|
62063
|
+
const fixedModelPath = string_default.camelCase(modelPath);
|
|
62209
62064
|
modelEntitySetNavigationPropertyBindings.push({
|
|
62210
62065
|
Path: propName,
|
|
62211
62066
|
Target: fixedModelPath
|
|
@@ -62273,7 +62128,7 @@ class ODataMetadataService {
|
|
|
62273
62128
|
}
|
|
62274
62129
|
nonExpandableProperties.add(propName);
|
|
62275
62130
|
if (modelPolicy.syncRelated) {
|
|
62276
|
-
const opName =
|
|
62131
|
+
const opName = string_default.pascalCase(
|
|
62277
62132
|
["sync", model.$resourcefulName, "related", propName].join(" ")
|
|
62278
62133
|
);
|
|
62279
62134
|
if (!modelOperationSpecMap.has(opName)) {
|
|
@@ -64230,7 +64085,7 @@ class ResourcefulModelController2 {
|
|
|
64230
64085
|
return void 0;
|
|
64231
64086
|
}
|
|
64232
64087
|
const resourceAction = resource.slice(startOfActionName + 1);
|
|
64233
|
-
const toStrip = `Default.Sync${
|
|
64088
|
+
const toStrip = `Default.Sync${string_default.pascalCase([this.#subpath, "related"].join(" "))}`;
|
|
64234
64089
|
let relationshipName = resourceAction.replace(toStrip, "");
|
|
64235
64090
|
if (relationshipName.startsWith("/")) {
|
|
64236
64091
|
relationshipName = relationshipName.slice(1);
|
|
@@ -64244,7 +64099,7 @@ class ResourcefulModelController2 {
|
|
|
64244
64099
|
if (!relationshipName) {
|
|
64245
64100
|
return void 0;
|
|
64246
64101
|
}
|
|
64247
|
-
const candidates = [relationshipName,
|
|
64102
|
+
const candidates = [relationshipName, string_default.camelCase(relationshipName)];
|
|
64248
64103
|
for (const candidate of candidates) {
|
|
64249
64104
|
const resourcefulRelationshipDefinition = model.$resourcefulRelationships.get(candidate);
|
|
64250
64105
|
if (!resourcefulRelationshipDefinition) {
|
|
@@ -65035,9 +64890,9 @@ class ODataRouterService {
|
|
|
65035
64890
|
const payload = {
|
|
65036
64891
|
"@odata.context": `$metadata`,
|
|
65037
64892
|
"value": Array.from(this.#controllers.keys()).map((name) => ({
|
|
65038
|
-
name:
|
|
64893
|
+
name: string_default.camelCase(name),
|
|
65039
64894
|
kind: "EntitySet",
|
|
65040
|
-
url:
|
|
64895
|
+
url: string_default.camelCase(name)
|
|
65041
64896
|
}))
|
|
65042
64897
|
};
|
|
65043
64898
|
return ctx.response.json(payload);
|
|
@@ -65116,7 +64971,7 @@ async function configure(command) {
|
|
|
65116
64971
|
}
|
|
65117
64972
|
]);
|
|
65118
64973
|
}
|
|
65119
|
-
const version = "0.1.0-master-
|
|
64974
|
+
const version = "0.1.0-master-641df8fc";
|
|
65120
64975
|
export {
|
|
65121
64976
|
resourcefulColumn as a,
|
|
65122
64977
|
resourcefulComputed as b,
|
|
@@ -65135,4 +64990,4 @@ export {
|
|
|
65135
64990
|
version as v,
|
|
65136
64991
|
withResourceful as w
|
|
65137
64992
|
};
|
|
65138
|
-
//# sourceMappingURL=index-
|
|
64993
|
+
//# sourceMappingURL=index-B-5JiNqG.js.map
|