@web-ts-toolkit/access-router 0.48.0 → 0.50.0
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/README.md +507 -0
- package/advanced.d.mts +49 -13
- package/advanced.d.ts +49 -13
- package/advanced.js +394 -12
- package/advanced.mjs +396 -13
- package/index.d.mts +134 -45
- package/index.d.ts +134 -45
- package/index.js +8707 -4826
- package/index.mjs +8705 -4814
- package/llms.txt +136 -1
- package/package.json +3 -3
- package/{parsers-D6iK8khR.d.mts → parsers-DhUuvj9B.d.mts} +810 -54
- package/{parsers-D6iK8khR.d.ts → parsers-DhUuvj9B.d.ts} +810 -54
package/advanced.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AccessRouterBaseRequest, a as AccessRouterFieldKey, b as AccessRouterLogger, c as AccessRouterRequest, d as AccessRouterRequestExtensions, e as AdvancedCreateBody, f as AdvancedListBody, g as AdvancedReadBody, h as AdvancedReadFilterBody, i as AdvancedUpdateBody, j as AdvancedUpsertBody, k as AfterPersistAccess, l as AjvErrorObjectLike, m as AjvValidationErrorLike, n as AjvValidatorLike, o as ArkTypeErrorsLike, p as ArkTypeLike, q as ArkTypeProblemLike, B as BaseFilterAccess, C as Change, r as Codes, s as CorrelatedCountInclude, t as CorrelatedFilter, u as CorrelatedInclude, v as CorrelatedIncludeArgs, w as CorrelatedListInclude, x as CorrelatedReadByFilterInclude, y as CorrelatedReadByIdInclude, z as CountBody, D as CreateArgs, E as CreateOptions, F as CreateQueryInput, G as CustomHeaders, H as DATA_MIDDLEWARE, I as DataBaseFilterHook, J as DataFilter, K as DataFindArgs, L as DataFindOneArgs, M as DataFindOneOptions, N as DataFindOptions, O as DataHook, P as DataHookContext, Q as DataIdentifierHook, R as DataListHook, S as DataOverrideFilterHook, T as DataRequest, U as DataRequestSchemas, V as DataRouterOptions, W as DecorateAccess, X as DecorateAllAccess, Y as DeepFieldPath, Z as DefaultModelRouterOptions, _ as Defaults, $ as DistinctArgs, a0 as DistinctBody, a1 as DocPermissionsAccess, a2 as ErrorResult, a3 as ExistsOptions, a4 as ExtendedDataRouterOptions, a5 as ExtendedDefaultModelRouterOptions, a6 as ExtendedModelRouterOptions, a7 as
|
|
1
|
+
export { A as AccessRouterBaseRequest, a as AccessRouterFieldKey, b as AccessRouterLogger, c as AccessRouterRequest, d as AccessRouterRequestExtensions, e as AdvancedCreateBody, f as AdvancedListBody, g as AdvancedReadBody, h as AdvancedReadFilterBody, i as AdvancedUpdateBody, j as AdvancedUpsertBody, k as AfterPersistAccess, l as AjvErrorObjectLike, m as AjvValidationErrorLike, n as AjvValidatorLike, o as ArkTypeErrorsLike, p as ArkTypeLike, q as ArkTypeProblemLike, B as BaseFilterAccess, C as Change, r as Codes, s as CorrelatedCountInclude, t as CorrelatedFilter, u as CorrelatedInclude, v as CorrelatedIncludeArgs, w as CorrelatedListInclude, x as CorrelatedReadByFilterInclude, y as CorrelatedReadByIdInclude, z as CountBody, D as CreateArgs, E as CreateOptions, F as CreateQueryInput, G as CustomHeaders, H as DATA_MIDDLEWARE, I as DataBaseFilterHook, J as DataFilter, K as DataFindArgs, L as DataFindOneArgs, M as DataFindOneOptions, N as DataFindOptions, O as DataHook, P as DataHookContext, Q as DataIdentifierHook, R as DataListHook, S as DataOverrideFilterHook, T as DataRequest, U as DataRequestSchemas, V as DataRouterOptions, W as DecorateAccess, X as DecorateAllAccess, Y as DeepFieldPath, Z as DefaultModelRouterOptions, _ as Defaults, $ as DistinctArgs, a0 as DistinctBody, a1 as DocPermissionsAccess, a2 as ErrorResult, a3 as ExistsOptions, a4 as ExtendedDataRouterOptions, a5 as ExtendedDefaultModelRouterOptions, a6 as ExtendedModelRouterOptions, a7 as FieldOperationAccess, a8 as Filter, a9 as FilterOperator, aa as FindAccess, ab as FindArgs, ac as FindByIdArgs, ad as FindByIdOptions, ae as FindOneArgs, af as FindOneOptions, ag as FindOptions, ah as GlobalOptions, ai as GlobalPermissionValue, aj as GuardHook, ak as IdentifierHook, al as Include, am as IoTsContextEntryLike, an as IoTsDecodeErrorLike, ao as IoTsDecoderLike, ap as JoiSchemaLike, aq as JoiValidationErrorDetailLike, ar as KeyValueProjection, as as LegacyInclude, at as ListQueryInput, au as ListResult, av as MIDDLEWARE, aw as MaybePromise, ax as ModelBaseFilterHook, ay as ModelChangeHook, az as ModelDeleteHook, aA as ModelDocPermissionsHook, aB as ModelDocument, aC as ModelDocumentHook, aD as ModelHook, aE as ModelHookContext, aF as ModelIdentifierHook, aG as ModelListHook, aH as ModelOverrideFilterHook, aI as ModelRequest, aJ as ModelRouterOptions, aK as ModelValidateHook, aL as ModelVirtualAccess, aM as ModelVirtualAccessRecord, aN as ModelVirtualContext, aO as ModelVirtualDescriptor, aP as ModelVirtualDoc, aQ as ModelVirtualGetter, aR as ModelVirtualLeaf, aS as ModelVirtualRecordAccess, aT as ModelVirtuals, aU as OperationAccess, aV as PERMISSIONS, aW as PERMISSION_KEYS, aX as PairedRouteAccess, aY as ParentRef, aZ as PathValue, a_ as PermissionSchema, a$ as Populate, b0 as PopulateAccess, b1 as PrepareAccess, b2 as Projection, b3 as PublicCreateArgs, b4 as PublicCreateOptions, b5 as PublicErrorResult, b6 as PublicListArgs, b7 as PublicListOptions, b8 as PublicListResult, b9 as PublicOutput, ba as PublicReadArgs, bb as PublicReadOptions, bc as PublicServiceResult, bd as PublicSingleResult, be as PublicUpdateArgs, bf as PublicUpdateOptions, bg as PublicUpsertArgs, bh as PublicUpsertOptions, bi as ReadQueryInput, bj as Request, bk as RequestSchemaAdapter, bl as RequestSchemaFailure, bm as RequestSchemaIssue, bn as RequestSchemaLike, bo as RequestSchemaOptions, bp as RequestSchemaResult, bq as RequestSchemaSuccess, br as RequestSchemaValidator, bs as RequestSchemas, bt as RootDataListQueryEntry, bu as RootDataOperation, bv as RootDataReadByFilterQueryEntry, bw as RootDataReadByIdQueryEntry, bx as RootModelCountQueryEntry, by as RootModelCreateQueryEntry, bz as RootModelDeleteQueryEntry, bA as RootModelDistinctQueryEntry, bB as RootModelListQueryEntry, bC as RootModelNewQueryEntry, bD as RootModelOperation, bE as RootModelReadByFilterQueryEntry, bF as RootModelReadByIdQueryEntry, bG as RootModelSubBulkUpdateQueryEntry, bH as RootModelSubCreateQueryEntry, bI as RootModelSubDeleteQueryEntry, bJ as RootModelSubListQueryEntry, bK as RootModelSubReadQueryEntry, bL as RootModelSubUpdateQueryEntry, bM as RootModelUpdateQueryEntry, bN as RootModelUpsertQueryEntry, bO as RootOperationResult, bP as RootQueryEntry, bQ as RootRouterOptions, bR as RootSubOperation, bS as RootTarget, bT as RouteBaseAccess, bU as RouteGuardAccess, bV as RouteVariant, bW as RouteVariantAccess, bX as SelectAccess, bY as SelectedPopulatedPublicOutput, bZ as SelectedPublicOutput, b_ as ServiceResult, b$ as SingleResult, c0 as Sort, c1 as SortOrder, c2 as StandardSchemaFailure, c3 as StandardSchemaInferOutput, c4 as StandardSchemaIssue, c5 as StandardSchemaPathSegment, c6 as StandardSchemaResult, c7 as StandardSchemaSuccess, c8 as StandardSchemaV1, c9 as StatusCodes, ca as SubListBody, cb as SubOperationAccess, cc as SubPopulate, cd as SubQueryEntry, ce as SubReadBody, cf as SubRouteGuardOptions, cg as SubdocumentBulkRecord, ch as SubdocumentBulkUpdateInput, ci as SubdocumentCreateInput, cj as SubdocumentCreateOptions, ck as SubdocumentId, cl as SubdocumentListOptions, cm as SubdocumentName, cn as SubdocumentParentArgs, co as SubdocumentParentOptions, cp as SubdocumentReadOptions, cq as SubdocumentRecord, cr as SuperstructFailureLike, cs as SuperstructValidateLike, ct as Task, cu as TaskType, cv as TransformAccess, cw as TypedFilter, cx as UpdateByIdArgs, cy as UpdateByIdOptions, cz as UpdateOneArgs, cA as UpdateOneOptions, cB as UpdateQueryInput, cC as UpsertArgs, cD as UpsertOptions, cE as UpsertQueryInput, cF as ValibotIssueLike, cG as ValibotPathItemLike, cH as ValibotSafeParseLike, cI as ValibotSafeParseResult, cJ as ValidateAccess, cK as ValidateRule, cL as Validation, cM as ValidationError, cN as VineValidationErrorLike, cO as VineValidationMessageLike, cP as VineValidatorLike, cQ as VirtualSubModel, cR as WithVirtuals, cS as YupSchemaLike, cT as YupValidationErrorLike, cU as defineRequestSchema, cV as fromAjv, cW as fromArkType, cX as fromIoTs, cY as fromJoi, cZ as fromStandardSchema, c_ as fromSuperstruct, c$ as fromValibot, d0 as fromVine, d1 as fromYup, d2 as fromZod, d3 as parseBody, d4 as parseBodyWithSchema, d5 as parseNestedBodyWithSchema, d6 as parsePathParam, d7 as parseQuery } from './parsers-DhUuvj9B.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import 'mongoose';
|
|
4
4
|
import 'express';
|
|
@@ -258,7 +258,10 @@ declare const listBodySchema: z.ZodObject<{
|
|
|
258
258
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
259
259
|
includeCount: z.ZodOptional<z.ZodBoolean>;
|
|
260
260
|
includeExtraHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
-
populateAccess: z.ZodOptional<z.
|
|
261
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
262
|
+
list: "list";
|
|
263
|
+
read: "read";
|
|
264
|
+
}>>;
|
|
262
265
|
}, z.core.$loose>>;
|
|
263
266
|
}, z.core.$loose>;
|
|
264
267
|
declare const countBodySchema: z.ZodObject<{
|
|
@@ -432,7 +435,10 @@ declare const readFilterBodySchema: z.ZodObject<{
|
|
|
432
435
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
433
436
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
434
437
|
tryList: z.ZodOptional<z.ZodBoolean>;
|
|
435
|
-
populateAccess: z.ZodOptional<z.
|
|
438
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
439
|
+
list: "list";
|
|
440
|
+
read: "read";
|
|
441
|
+
}>>;
|
|
436
442
|
}, z.core.$loose>>;
|
|
437
443
|
}, z.core.$loose>;
|
|
438
444
|
declare const readByIdBodySchema: z.ZodObject<{
|
|
@@ -601,7 +607,10 @@ declare const readByIdBodySchema: z.ZodObject<{
|
|
|
601
607
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
602
608
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
603
609
|
tryList: z.ZodOptional<z.ZodBoolean>;
|
|
604
|
-
populateAccess: z.ZodOptional<z.
|
|
610
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
611
|
+
list: "list";
|
|
612
|
+
read: "read";
|
|
613
|
+
}>>;
|
|
605
614
|
}, z.core.$loose>>;
|
|
606
615
|
}, z.core.$loose>;
|
|
607
616
|
declare const advancedCreateBodySchema: z.ZodObject<{
|
|
@@ -636,7 +645,10 @@ declare const advancedCreateBodySchema: z.ZodObject<{
|
|
|
636
645
|
options: z.ZodOptional<z.ZodObject<{
|
|
637
646
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
638
647
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
639
|
-
populateAccess: z.ZodOptional<z.
|
|
648
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
649
|
+
list: "list";
|
|
650
|
+
read: "read";
|
|
651
|
+
}>>;
|
|
640
652
|
}, z.core.$loose>>;
|
|
641
653
|
}, z.core.$loose>;
|
|
642
654
|
declare const createBodySchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>;
|
|
@@ -674,7 +686,10 @@ declare const advancedUpdateBodySchema: z.ZodObject<{
|
|
|
674
686
|
returningAll: z.ZodOptional<z.ZodBoolean>;
|
|
675
687
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
676
688
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
-
populateAccess: z.ZodOptional<z.
|
|
689
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
690
|
+
list: "list";
|
|
691
|
+
read: "read";
|
|
692
|
+
}>>;
|
|
678
693
|
}, z.core.$loose>>;
|
|
679
694
|
}, z.core.$loose>;
|
|
680
695
|
declare const upsertBodySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -711,7 +726,10 @@ declare const advancedUpsertBodySchema: z.ZodObject<{
|
|
|
711
726
|
returningAll: z.ZodOptional<z.ZodBoolean>;
|
|
712
727
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
713
728
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
714
|
-
populateAccess: z.ZodOptional<z.
|
|
729
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
730
|
+
list: "list";
|
|
731
|
+
read: "read";
|
|
732
|
+
}>>;
|
|
715
733
|
}, z.core.$loose>>;
|
|
716
734
|
}, z.core.$loose>;
|
|
717
735
|
declare const distinctBodySchema: z.ZodObject<{
|
|
@@ -1027,7 +1045,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1027
1045
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1028
1046
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1029
1047
|
includeCount: z.ZodOptional<z.ZodBoolean>;
|
|
1030
|
-
populateAccess: z.ZodOptional<z.
|
|
1048
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1049
|
+
list: "list";
|
|
1050
|
+
read: "read";
|
|
1051
|
+
}>>;
|
|
1031
1052
|
lean: z.ZodOptional<z.ZodBoolean>;
|
|
1032
1053
|
}, z.core.$loose>>;
|
|
1033
1054
|
name: z.ZodString;
|
|
@@ -1203,7 +1224,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1203
1224
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1204
1225
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1205
1226
|
tryList: z.ZodOptional<z.ZodBoolean>;
|
|
1206
|
-
populateAccess: z.ZodOptional<z.
|
|
1227
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1228
|
+
list: "list";
|
|
1229
|
+
read: "read";
|
|
1230
|
+
}>>;
|
|
1207
1231
|
lean: z.ZodOptional<z.ZodBoolean>;
|
|
1208
1232
|
}, z.core.$loose>>;
|
|
1209
1233
|
name: z.ZodString;
|
|
@@ -1380,7 +1404,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1380
1404
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1381
1405
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1382
1406
|
tryList: z.ZodOptional<z.ZodBoolean>;
|
|
1383
|
-
populateAccess: z.ZodOptional<z.
|
|
1407
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1408
|
+
list: "list";
|
|
1409
|
+
read: "read";
|
|
1410
|
+
}>>;
|
|
1384
1411
|
lean: z.ZodOptional<z.ZodBoolean>;
|
|
1385
1412
|
}, z.core.$loose>>;
|
|
1386
1413
|
name: z.ZodString;
|
|
@@ -1422,7 +1449,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1422
1449
|
skim: z.ZodOptional<z.ZodBoolean>;
|
|
1423
1450
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1424
1451
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1425
|
-
populateAccess: z.ZodOptional<z.
|
|
1452
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1453
|
+
list: "list";
|
|
1454
|
+
read: "read";
|
|
1455
|
+
}>>;
|
|
1426
1456
|
}, z.core.$loose>>;
|
|
1427
1457
|
name: z.ZodString;
|
|
1428
1458
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1465,7 +1495,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1465
1495
|
returningAll: z.ZodOptional<z.ZodBoolean>;
|
|
1466
1496
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1467
1497
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1468
|
-
populateAccess: z.ZodOptional<z.
|
|
1498
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1499
|
+
list: "list";
|
|
1500
|
+
read: "read";
|
|
1501
|
+
}>>;
|
|
1469
1502
|
}, z.core.$loose>>;
|
|
1470
1503
|
name: z.ZodString;
|
|
1471
1504
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1507,7 +1540,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1507
1540
|
returningAll: z.ZodOptional<z.ZodBoolean>;
|
|
1508
1541
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1509
1542
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1510
|
-
populateAccess: z.ZodOptional<z.
|
|
1543
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1544
|
+
list: "list";
|
|
1545
|
+
read: "read";
|
|
1546
|
+
}>>;
|
|
1511
1547
|
}, z.core.$loose>>;
|
|
1512
1548
|
name: z.ZodString;
|
|
1513
1549
|
order: z.ZodOptional<z.ZodNumber>;
|
package/advanced.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AccessRouterBaseRequest, a as AccessRouterFieldKey, b as AccessRouterLogger, c as AccessRouterRequest, d as AccessRouterRequestExtensions, e as AdvancedCreateBody, f as AdvancedListBody, g as AdvancedReadBody, h as AdvancedReadFilterBody, i as AdvancedUpdateBody, j as AdvancedUpsertBody, k as AfterPersistAccess, l as AjvErrorObjectLike, m as AjvValidationErrorLike, n as AjvValidatorLike, o as ArkTypeErrorsLike, p as ArkTypeLike, q as ArkTypeProblemLike, B as BaseFilterAccess, C as Change, r as Codes, s as CorrelatedCountInclude, t as CorrelatedFilter, u as CorrelatedInclude, v as CorrelatedIncludeArgs, w as CorrelatedListInclude, x as CorrelatedReadByFilterInclude, y as CorrelatedReadByIdInclude, z as CountBody, D as CreateArgs, E as CreateOptions, F as CreateQueryInput, G as CustomHeaders, H as DATA_MIDDLEWARE, I as DataBaseFilterHook, J as DataFilter, K as DataFindArgs, L as DataFindOneArgs, M as DataFindOneOptions, N as DataFindOptions, O as DataHook, P as DataHookContext, Q as DataIdentifierHook, R as DataListHook, S as DataOverrideFilterHook, T as DataRequest, U as DataRequestSchemas, V as DataRouterOptions, W as DecorateAccess, X as DecorateAllAccess, Y as DeepFieldPath, Z as DefaultModelRouterOptions, _ as Defaults, $ as DistinctArgs, a0 as DistinctBody, a1 as DocPermissionsAccess, a2 as ErrorResult, a3 as ExistsOptions, a4 as ExtendedDataRouterOptions, a5 as ExtendedDefaultModelRouterOptions, a6 as ExtendedModelRouterOptions, a7 as
|
|
1
|
+
export { A as AccessRouterBaseRequest, a as AccessRouterFieldKey, b as AccessRouterLogger, c as AccessRouterRequest, d as AccessRouterRequestExtensions, e as AdvancedCreateBody, f as AdvancedListBody, g as AdvancedReadBody, h as AdvancedReadFilterBody, i as AdvancedUpdateBody, j as AdvancedUpsertBody, k as AfterPersistAccess, l as AjvErrorObjectLike, m as AjvValidationErrorLike, n as AjvValidatorLike, o as ArkTypeErrorsLike, p as ArkTypeLike, q as ArkTypeProblemLike, B as BaseFilterAccess, C as Change, r as Codes, s as CorrelatedCountInclude, t as CorrelatedFilter, u as CorrelatedInclude, v as CorrelatedIncludeArgs, w as CorrelatedListInclude, x as CorrelatedReadByFilterInclude, y as CorrelatedReadByIdInclude, z as CountBody, D as CreateArgs, E as CreateOptions, F as CreateQueryInput, G as CustomHeaders, H as DATA_MIDDLEWARE, I as DataBaseFilterHook, J as DataFilter, K as DataFindArgs, L as DataFindOneArgs, M as DataFindOneOptions, N as DataFindOptions, O as DataHook, P as DataHookContext, Q as DataIdentifierHook, R as DataListHook, S as DataOverrideFilterHook, T as DataRequest, U as DataRequestSchemas, V as DataRouterOptions, W as DecorateAccess, X as DecorateAllAccess, Y as DeepFieldPath, Z as DefaultModelRouterOptions, _ as Defaults, $ as DistinctArgs, a0 as DistinctBody, a1 as DocPermissionsAccess, a2 as ErrorResult, a3 as ExistsOptions, a4 as ExtendedDataRouterOptions, a5 as ExtendedDefaultModelRouterOptions, a6 as ExtendedModelRouterOptions, a7 as FieldOperationAccess, a8 as Filter, a9 as FilterOperator, aa as FindAccess, ab as FindArgs, ac as FindByIdArgs, ad as FindByIdOptions, ae as FindOneArgs, af as FindOneOptions, ag as FindOptions, ah as GlobalOptions, ai as GlobalPermissionValue, aj as GuardHook, ak as IdentifierHook, al as Include, am as IoTsContextEntryLike, an as IoTsDecodeErrorLike, ao as IoTsDecoderLike, ap as JoiSchemaLike, aq as JoiValidationErrorDetailLike, ar as KeyValueProjection, as as LegacyInclude, at as ListQueryInput, au as ListResult, av as MIDDLEWARE, aw as MaybePromise, ax as ModelBaseFilterHook, ay as ModelChangeHook, az as ModelDeleteHook, aA as ModelDocPermissionsHook, aB as ModelDocument, aC as ModelDocumentHook, aD as ModelHook, aE as ModelHookContext, aF as ModelIdentifierHook, aG as ModelListHook, aH as ModelOverrideFilterHook, aI as ModelRequest, aJ as ModelRouterOptions, aK as ModelValidateHook, aL as ModelVirtualAccess, aM as ModelVirtualAccessRecord, aN as ModelVirtualContext, aO as ModelVirtualDescriptor, aP as ModelVirtualDoc, aQ as ModelVirtualGetter, aR as ModelVirtualLeaf, aS as ModelVirtualRecordAccess, aT as ModelVirtuals, aU as OperationAccess, aV as PERMISSIONS, aW as PERMISSION_KEYS, aX as PairedRouteAccess, aY as ParentRef, aZ as PathValue, a_ as PermissionSchema, a$ as Populate, b0 as PopulateAccess, b1 as PrepareAccess, b2 as Projection, b3 as PublicCreateArgs, b4 as PublicCreateOptions, b5 as PublicErrorResult, b6 as PublicListArgs, b7 as PublicListOptions, b8 as PublicListResult, b9 as PublicOutput, ba as PublicReadArgs, bb as PublicReadOptions, bc as PublicServiceResult, bd as PublicSingleResult, be as PublicUpdateArgs, bf as PublicUpdateOptions, bg as PublicUpsertArgs, bh as PublicUpsertOptions, bi as ReadQueryInput, bj as Request, bk as RequestSchemaAdapter, bl as RequestSchemaFailure, bm as RequestSchemaIssue, bn as RequestSchemaLike, bo as RequestSchemaOptions, bp as RequestSchemaResult, bq as RequestSchemaSuccess, br as RequestSchemaValidator, bs as RequestSchemas, bt as RootDataListQueryEntry, bu as RootDataOperation, bv as RootDataReadByFilterQueryEntry, bw as RootDataReadByIdQueryEntry, bx as RootModelCountQueryEntry, by as RootModelCreateQueryEntry, bz as RootModelDeleteQueryEntry, bA as RootModelDistinctQueryEntry, bB as RootModelListQueryEntry, bC as RootModelNewQueryEntry, bD as RootModelOperation, bE as RootModelReadByFilterQueryEntry, bF as RootModelReadByIdQueryEntry, bG as RootModelSubBulkUpdateQueryEntry, bH as RootModelSubCreateQueryEntry, bI as RootModelSubDeleteQueryEntry, bJ as RootModelSubListQueryEntry, bK as RootModelSubReadQueryEntry, bL as RootModelSubUpdateQueryEntry, bM as RootModelUpdateQueryEntry, bN as RootModelUpsertQueryEntry, bO as RootOperationResult, bP as RootQueryEntry, bQ as RootRouterOptions, bR as RootSubOperation, bS as RootTarget, bT as RouteBaseAccess, bU as RouteGuardAccess, bV as RouteVariant, bW as RouteVariantAccess, bX as SelectAccess, bY as SelectedPopulatedPublicOutput, bZ as SelectedPublicOutput, b_ as ServiceResult, b$ as SingleResult, c0 as Sort, c1 as SortOrder, c2 as StandardSchemaFailure, c3 as StandardSchemaInferOutput, c4 as StandardSchemaIssue, c5 as StandardSchemaPathSegment, c6 as StandardSchemaResult, c7 as StandardSchemaSuccess, c8 as StandardSchemaV1, c9 as StatusCodes, ca as SubListBody, cb as SubOperationAccess, cc as SubPopulate, cd as SubQueryEntry, ce as SubReadBody, cf as SubRouteGuardOptions, cg as SubdocumentBulkRecord, ch as SubdocumentBulkUpdateInput, ci as SubdocumentCreateInput, cj as SubdocumentCreateOptions, ck as SubdocumentId, cl as SubdocumentListOptions, cm as SubdocumentName, cn as SubdocumentParentArgs, co as SubdocumentParentOptions, cp as SubdocumentReadOptions, cq as SubdocumentRecord, cr as SuperstructFailureLike, cs as SuperstructValidateLike, ct as Task, cu as TaskType, cv as TransformAccess, cw as TypedFilter, cx as UpdateByIdArgs, cy as UpdateByIdOptions, cz as UpdateOneArgs, cA as UpdateOneOptions, cB as UpdateQueryInput, cC as UpsertArgs, cD as UpsertOptions, cE as UpsertQueryInput, cF as ValibotIssueLike, cG as ValibotPathItemLike, cH as ValibotSafeParseLike, cI as ValibotSafeParseResult, cJ as ValidateAccess, cK as ValidateRule, cL as Validation, cM as ValidationError, cN as VineValidationErrorLike, cO as VineValidationMessageLike, cP as VineValidatorLike, cQ as VirtualSubModel, cR as WithVirtuals, cS as YupSchemaLike, cT as YupValidationErrorLike, cU as defineRequestSchema, cV as fromAjv, cW as fromArkType, cX as fromIoTs, cY as fromJoi, cZ as fromStandardSchema, c_ as fromSuperstruct, c$ as fromValibot, d0 as fromVine, d1 as fromYup, d2 as fromZod, d3 as parseBody, d4 as parseBodyWithSchema, d5 as parseNestedBodyWithSchema, d6 as parsePathParam, d7 as parseQuery } from './parsers-DhUuvj9B.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import 'mongoose';
|
|
4
4
|
import 'express';
|
|
@@ -258,7 +258,10 @@ declare const listBodySchema: z.ZodObject<{
|
|
|
258
258
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
259
259
|
includeCount: z.ZodOptional<z.ZodBoolean>;
|
|
260
260
|
includeExtraHeaders: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
-
populateAccess: z.ZodOptional<z.
|
|
261
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
262
|
+
list: "list";
|
|
263
|
+
read: "read";
|
|
264
|
+
}>>;
|
|
262
265
|
}, z.core.$loose>>;
|
|
263
266
|
}, z.core.$loose>;
|
|
264
267
|
declare const countBodySchema: z.ZodObject<{
|
|
@@ -432,7 +435,10 @@ declare const readFilterBodySchema: z.ZodObject<{
|
|
|
432
435
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
433
436
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
434
437
|
tryList: z.ZodOptional<z.ZodBoolean>;
|
|
435
|
-
populateAccess: z.ZodOptional<z.
|
|
438
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
439
|
+
list: "list";
|
|
440
|
+
read: "read";
|
|
441
|
+
}>>;
|
|
436
442
|
}, z.core.$loose>>;
|
|
437
443
|
}, z.core.$loose>;
|
|
438
444
|
declare const readByIdBodySchema: z.ZodObject<{
|
|
@@ -601,7 +607,10 @@ declare const readByIdBodySchema: z.ZodObject<{
|
|
|
601
607
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
602
608
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
603
609
|
tryList: z.ZodOptional<z.ZodBoolean>;
|
|
604
|
-
populateAccess: z.ZodOptional<z.
|
|
610
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
611
|
+
list: "list";
|
|
612
|
+
read: "read";
|
|
613
|
+
}>>;
|
|
605
614
|
}, z.core.$loose>>;
|
|
606
615
|
}, z.core.$loose>;
|
|
607
616
|
declare const advancedCreateBodySchema: z.ZodObject<{
|
|
@@ -636,7 +645,10 @@ declare const advancedCreateBodySchema: z.ZodObject<{
|
|
|
636
645
|
options: z.ZodOptional<z.ZodObject<{
|
|
637
646
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
638
647
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
639
|
-
populateAccess: z.ZodOptional<z.
|
|
648
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
649
|
+
list: "list";
|
|
650
|
+
read: "read";
|
|
651
|
+
}>>;
|
|
640
652
|
}, z.core.$loose>>;
|
|
641
653
|
}, z.core.$loose>;
|
|
642
654
|
declare const createBodySchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>;
|
|
@@ -674,7 +686,10 @@ declare const advancedUpdateBodySchema: z.ZodObject<{
|
|
|
674
686
|
returningAll: z.ZodOptional<z.ZodBoolean>;
|
|
675
687
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
676
688
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
677
|
-
populateAccess: z.ZodOptional<z.
|
|
689
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
690
|
+
list: "list";
|
|
691
|
+
read: "read";
|
|
692
|
+
}>>;
|
|
678
693
|
}, z.core.$loose>>;
|
|
679
694
|
}, z.core.$loose>;
|
|
680
695
|
declare const upsertBodySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -711,7 +726,10 @@ declare const advancedUpsertBodySchema: z.ZodObject<{
|
|
|
711
726
|
returningAll: z.ZodOptional<z.ZodBoolean>;
|
|
712
727
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
713
728
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
714
|
-
populateAccess: z.ZodOptional<z.
|
|
729
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
730
|
+
list: "list";
|
|
731
|
+
read: "read";
|
|
732
|
+
}>>;
|
|
715
733
|
}, z.core.$loose>>;
|
|
716
734
|
}, z.core.$loose>;
|
|
717
735
|
declare const distinctBodySchema: z.ZodObject<{
|
|
@@ -1027,7 +1045,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1027
1045
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1028
1046
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1029
1047
|
includeCount: z.ZodOptional<z.ZodBoolean>;
|
|
1030
|
-
populateAccess: z.ZodOptional<z.
|
|
1048
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1049
|
+
list: "list";
|
|
1050
|
+
read: "read";
|
|
1051
|
+
}>>;
|
|
1031
1052
|
lean: z.ZodOptional<z.ZodBoolean>;
|
|
1032
1053
|
}, z.core.$loose>>;
|
|
1033
1054
|
name: z.ZodString;
|
|
@@ -1203,7 +1224,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1203
1224
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1204
1225
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1205
1226
|
tryList: z.ZodOptional<z.ZodBoolean>;
|
|
1206
|
-
populateAccess: z.ZodOptional<z.
|
|
1227
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1228
|
+
list: "list";
|
|
1229
|
+
read: "read";
|
|
1230
|
+
}>>;
|
|
1207
1231
|
lean: z.ZodOptional<z.ZodBoolean>;
|
|
1208
1232
|
}, z.core.$loose>>;
|
|
1209
1233
|
name: z.ZodString;
|
|
@@ -1380,7 +1404,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1380
1404
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1381
1405
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1382
1406
|
tryList: z.ZodOptional<z.ZodBoolean>;
|
|
1383
|
-
populateAccess: z.ZodOptional<z.
|
|
1407
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1408
|
+
list: "list";
|
|
1409
|
+
read: "read";
|
|
1410
|
+
}>>;
|
|
1384
1411
|
lean: z.ZodOptional<z.ZodBoolean>;
|
|
1385
1412
|
}, z.core.$loose>>;
|
|
1386
1413
|
name: z.ZodString;
|
|
@@ -1422,7 +1449,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1422
1449
|
skim: z.ZodOptional<z.ZodBoolean>;
|
|
1423
1450
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1424
1451
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1425
|
-
populateAccess: z.ZodOptional<z.
|
|
1452
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1453
|
+
list: "list";
|
|
1454
|
+
read: "read";
|
|
1455
|
+
}>>;
|
|
1426
1456
|
}, z.core.$loose>>;
|
|
1427
1457
|
name: z.ZodString;
|
|
1428
1458
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1465,7 +1495,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1465
1495
|
returningAll: z.ZodOptional<z.ZodBoolean>;
|
|
1466
1496
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1467
1497
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1468
|
-
populateAccess: z.ZodOptional<z.
|
|
1498
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1499
|
+
list: "list";
|
|
1500
|
+
read: "read";
|
|
1501
|
+
}>>;
|
|
1469
1502
|
}, z.core.$loose>>;
|
|
1470
1503
|
name: z.ZodString;
|
|
1471
1504
|
order: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1507,7 +1540,10 @@ declare const rootQuerySchema: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readon
|
|
|
1507
1540
|
returningAll: z.ZodOptional<z.ZodBoolean>;
|
|
1508
1541
|
includePermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1509
1542
|
includeFieldPermissions: z.ZodOptional<z.ZodBoolean>;
|
|
1510
|
-
populateAccess: z.ZodOptional<z.
|
|
1543
|
+
populateAccess: z.ZodOptional<z.ZodEnum<{
|
|
1544
|
+
list: "list";
|
|
1545
|
+
read: "read";
|
|
1546
|
+
}>>;
|
|
1511
1547
|
}, z.core.$loose>>;
|
|
1512
1548
|
name: z.ZodString;
|
|
1513
1549
|
order: z.ZodOptional<z.ZodNumber>;
|