@esposter/shared 2.14.0 → 2.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +223 -77
  2. package/dist/index.js +4248 -32
  3. package/package.json +13 -5
package/dist/index.d.ts CHANGED
@@ -1,23 +1,10 @@
1
- //#region src/models/azure/BinaryOperator.d.ts
2
- declare enum BinaryOperator {
3
- eq = "eq",
4
- ge = "ge",
5
- gt = "gt",
6
- le = "le",
7
- lt = "lt",
8
- ne = "ne",
9
- }
10
- //#endregion
11
- //#region src/models/azure/Literal.d.ts
12
- declare enum Literal {
13
- NaN = "NaN",
14
- }
15
- //#endregion
16
- //#region src/models/azure/UnaryOperator.d.ts
17
- declare enum UnaryOperator {
18
- and = "and",
19
- not = "not",
20
- or = "or",
1
+ import { z } from "zod";
2
+
3
+ //#region src/models/environment/Environment.d.ts
4
+ declare enum Environment {
5
+ development = "development",
6
+ production = "production",
7
+ test = "test",
21
8
  }
22
9
  //#endregion
23
10
  //#region src/models/shared/Operation.d.ts
@@ -45,52 +32,26 @@ declare class NotInitializedError<T extends string = string> extends Error {
45
32
  constructor(name: T);
46
33
  }
47
34
  //#endregion
48
- //#region src/services/azure/isNull.d.ts
49
- declare const isNull: (key: string) => string;
50
- //#endregion
51
- //#region src/services/azure/isPartitionKey.d.ts
52
- declare const isPartitionKey: (partitionKey: string, operator?: BinaryOperator) => string;
53
- //#endregion
54
- //#region src/services/azure/isRowKey.d.ts
55
- declare const isRowKey: (rowKey: string) => string;
56
- //#endregion
57
- //#region src/services/prettier/css.d.ts
58
- declare const css: typeof String.raw;
59
- //#endregion
60
- //#region src/services/prettier/html.d.ts
61
- declare const html: typeof String.raw;
62
- //#endregion
63
- //#region src/util/id/constants.d.ts
64
- declare const ID_SEPARATOR = "|";
65
- //#endregion
66
- //#region src/util/object/isPlainObject.d.ts
67
- declare const isPlainObject: (data: unknown) => data is object;
68
- //#endregion
69
- //#region src/util/types/MergeObjectsStrict.d.ts
70
- type MergeObjectsStrict<T extends object[]> = T extends [infer TFirst, infer TSecond, ...infer TRemaining] ? TSecond extends { [K in keyof TSecond]: K extends keyof TFirst ? never : TSecond[K] } ? TRemaining extends object[] ? MergeObjectsStrict<[TSecond, ...TRemaining]> & TFirst : TFirst & TSecond : never : T extends [infer TFirst] ? TFirst : never;
71
- //#endregion
72
- //#region src/util/object/mergeObjectsStrict.d.ts
73
- declare const mergeObjectsStrict: <T extends object[]>(...objects: T) => MergeObjectsStrict<T>;
74
- //#endregion
75
- //#region src/util/text/capitalize.d.ts
76
- declare const capitalize: (string: string) => string;
77
- //#endregion
78
- //#region src/util/text/streamToText.d.ts
79
- declare const streamToText: (readable: NodeJS.ReadableStream) => Promise<string>;
80
- //#endregion
81
- //#region src/util/types/CamelToKebab.d.ts
82
- type CamelToKebab<S extends string> = S extends `${infer T}${infer U}` ? U extends Uncapitalize<U> ? `${Uncapitalize<T>}${CamelToKebab<U>}` : `${Uncapitalize<T>}-${CamelToKebab<U>}` : S;
83
- //#endregion
84
- //#region src/util/text/toKebabCase.d.ts
85
- declare const toKebabCase: <T extends string>(string: T) => CamelToKebab<T>;
86
- //#endregion
87
- //#region src/util/text/uncapitalize.d.ts
88
- declare const uncapitalize: <T extends string>(string: T) => Uncapitalize<T>;
35
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/primitive.d.ts
36
+ /**
37
+ Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
38
+
39
+ @category Type
40
+ */
41
+ type Primitive = null | undefined | string | number | boolean | symbol | bigint;
89
42
  //#endregion
90
- //#region src/util/types/FunctionProperties.d.ts
91
- type FunctionProperties<T> = { [K in keyof T]: T[K] extends Function ? K : never };
43
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/basic.d.ts
44
+ /**
45
+ Matches a [`class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
46
+
47
+ @category Class
48
+ */
49
+ type Class<T, Arguments extends unknown[] = any[]> = {
50
+ prototype: Pick<T, keyof T>;
51
+ new (...arguments_: Arguments): T;
52
+ };
92
53
  //#endregion
93
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/is-any.d.ts
54
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/is-any.d.ts
94
55
  /**
95
56
  Returns a boolean for whether the given type is `any`.
96
57
 
@@ -121,7 +82,7 @@ const anyA = get(anyObject, 'a');
121
82
  */
122
83
  type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
123
84
  //#endregion
124
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/is-optional-key-of.d.ts
85
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/is-optional-key-of.d.ts
125
86
  /**
126
87
  Returns a boolean for whether the given key is an optional key of type.
127
88
 
@@ -164,7 +125,7 @@ type T5 = IsOptionalKeyOf<User | Admin, 'surname'>;
164
125
  */
165
126
  type IsOptionalKeyOf<Type extends object, Key extends keyof Type> = IsAny<Type | Key> extends true ? never : Key extends keyof Type ? Type extends Record<Key, Type[Key]> ? false : true : false;
166
127
  //#endregion
167
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/optional-keys-of.d.ts
128
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/optional-keys-of.d.ts
168
129
  /**
169
130
  Extract all optional keys from the given type.
170
131
 
@@ -202,7 +163,7 @@ type OptionalKeysOf<Type extends object> = Type extends unknown // For distribut
202
163
  ? (keyof { [Key in keyof Type as IsOptionalKeyOf<Type, Key> extends false ? never : Key]: never }) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`
203
164
  : never;
204
165
  //#endregion
205
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/required-keys-of.d.ts
166
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/required-keys-of.d.ts
206
167
  /**
207
168
  Extract all required keys from the given type.
208
169
 
@@ -230,7 +191,7 @@ const validator2 = createValidation<User>('surname', value => value.length < 25)
230
191
  type RequiredKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
231
192
  ? Exclude<keyof Type, OptionalKeysOf<Type>> : never;
232
193
  //#endregion
233
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/is-never.d.ts
194
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/is-never.d.ts
234
195
  /**
235
196
  Returns a boolean for whether the given type is `never`.
236
197
 
@@ -274,7 +235,7 @@ endIfEqual('abc', '123');
274
235
  */
275
236
  type IsNever<T> = [T] extends [never] ? true : false;
276
237
  //#endregion
277
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/if.d.ts
238
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/if.d.ts
278
239
  /**
279
240
  An if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.
280
241
 
@@ -334,7 +295,25 @@ type B = IfEqual<string, number, 'equal', 'not equal'>;
334
295
  */
335
296
  type If<Type extends boolean, IfBranch, ElseBranch> = IsNever<Type> extends true ? ElseBranch : Type extends true ? IfBranch : ElseBranch;
336
297
  //#endregion
337
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/is-equal.d.ts
298
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/internal/type.d.ts
299
+ /**
300
+ Matches any primitive, `void`, `Date`, or `RegExp` value.
301
+ */
302
+ type BuiltIns = Primitive | void | Date | RegExp;
303
+ /**
304
+ Test if the given function has multiple call signatures.
305
+
306
+ Needed to handle the case of a single call signature with properties.
307
+
308
+ Multiple call signatures cannot currently be supported due to a TypeScript limitation.
309
+ @see https://github.com/microsoft/TypeScript/issues/29732
310
+ */
311
+ type HasMultipleCallSignatures<T extends (...arguments_: any[]) => unknown> = T extends {
312
+ (...arguments_: infer A): unknown;
313
+ (...arguments_: infer B): unknown;
314
+ } ? B extends A ? A extends B ? false : true : true : false;
315
+ //#endregion
316
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/is-equal.d.ts
338
317
  /**
339
318
  Returns a boolean for whether the two given types are equal.
340
319
 
@@ -363,7 +342,7 @@ type Includes<Value extends readonly any[], Item> =
363
342
  */
364
343
  type IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
365
344
  //#endregion
366
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/simplify.d.ts
345
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/simplify.d.ts
367
346
  /**
368
347
  Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
369
348
 
@@ -423,7 +402,7 @@ fn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface`
423
402
  */
424
403
  type Simplify<T> = { [KeyType in keyof T]: T[KeyType] } & {};
425
404
  //#endregion
426
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/omit-index-signature.d.ts
405
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/omit-index-signature.d.ts
427
406
  /**
428
407
  Omit any index signatures from the given object type, leaving only explicitly defined properties.
429
408
 
@@ -516,7 +495,7 @@ type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
516
495
  */
517
496
  type OmitIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType] };
518
497
  //#endregion
519
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/pick-index-signature.d.ts
498
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/pick-index-signature.d.ts
520
499
  /**
521
500
  Pick only index signatures from the given object type, leaving out all explicitly defined properties.
522
501
 
@@ -564,7 +543,7 @@ type ExampleIndexSignature = PickIndexSignature<Example>;
564
543
  */
565
544
  type PickIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? KeyType : never]: ObjectType[KeyType] };
566
545
  //#endregion
567
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/merge.d.ts
546
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/merge.d.ts
568
547
  // Merges two objects without worrying about index signatures.
569
548
  type SimpleMerge<Destination, Source> = { [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key] } & Source;
570
549
 
@@ -604,7 +583,7 @@ export type FooBar = Merge<Foo, Bar>;
604
583
  */
605
584
  type Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
606
585
  //#endregion
607
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/internal/object.d.ts
586
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/internal/object.d.ts
608
587
  /**
609
588
  Merges user specified options with default options.
610
589
 
@@ -659,7 +638,7 @@ type Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOp
659
638
  */
660
639
  type ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<Required<Options>, RequiredKeysOf<Options>> & Partial<Record<RequiredKeysOf<Options>, never>>>, SpecifiedOptions extends Options> = If<IsAny<SpecifiedOptions>, Defaults, If<IsNever<SpecifiedOptions>, Defaults, Simplify<Merge<Defaults, { [Key in keyof SpecifiedOptions as Key extends OptionalKeysOf<Options> ? undefined extends SpecifiedOptions[Key] ? never : Key : Key]: SpecifiedOptions[Key] }> & Required<Options>>>>;
661
640
  //#endregion
662
- //#region ../../node_modules/.pnpm/type-fest@5.0.0/node_modules/type-fest/source/except.d.ts
641
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/except.d.ts
663
642
  /**
664
643
  Filter out keys from an object.
665
644
 
@@ -756,6 +735,173 @@ type PostPayload = Except<UserData, 'email'>;
756
735
  type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {}> = _Except<ObjectType, KeysType, ApplyDefaultOptions<ExceptOptions, DefaultExceptOptions, Options>>;
757
736
  type _Except<ObjectType, KeysType extends keyof ObjectType, Options extends Required<ExceptOptions>> = { [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType] } & (Options['requireExactProps'] extends true ? Partial<Record<KeysType, never>> : {});
758
737
  //#endregion
738
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/required-deep.d.ts
739
+ /**
740
+ Create a type from another type with all keys and nested keys set to required.
741
+
742
+ Use-cases:
743
+ - Creating optional configuration interfaces where the underlying implementation still requires all options to be fully specified.
744
+ - Modeling the resulting type after a deep merge with a set of defaults.
745
+
746
+ @example
747
+ ```
748
+ import type {RequiredDeep} from 'type-fest';
749
+
750
+ type Settings = {
751
+ textEditor?: {
752
+ fontSize?: number;
753
+ fontColor?: string;
754
+ fontWeight?: number | undefined;
755
+ };
756
+ autocomplete?: boolean;
757
+ autosave?: boolean | undefined;
758
+ };
759
+
760
+ type RequiredSettings = RequiredDeep<Settings>;
761
+ //=> {
762
+ // textEditor: {
763
+ // fontSize: number;
764
+ // fontColor: string;
765
+ // fontWeight: number | undefined;
766
+ // };
767
+ // autocomplete: boolean;
768
+ // autosave: boolean | undefined;
769
+ // }
770
+ ```
771
+
772
+ Note that types containing overloaded functions are not made deeply required due to a [TypeScript limitation](https://github.com/microsoft/TypeScript/issues/29732).
773
+
774
+ @category Utilities
775
+ @category Object
776
+ @category Array
777
+ @category Set
778
+ @category Map
779
+ */
780
+ type RequiredDeep<T> = T extends BuiltIns ? T : T extends Map<infer KeyType, infer ValueType> ? Map<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends Set<infer ItemType> ? Set<RequiredDeep<ItemType>> : T extends ReadonlyMap<infer KeyType, infer ValueType> ? ReadonlyMap<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends ReadonlySet<infer ItemType> ? ReadonlySet<RequiredDeep<ItemType>> : T extends WeakMap<infer KeyType, infer ValueType> ? WeakMap<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends WeakSet<infer ItemType> ? WeakSet<RequiredDeep<ItemType>> : T extends Promise<infer ValueType> ? Promise<RequiredDeep<ValueType>> : T extends ((...arguments_: any[]) => unknown) ? {} extends RequiredObjectDeep<T> ? T : HasMultipleCallSignatures<T> extends true ? T : ((...arguments_: Parameters<T>) => ReturnType<T>) & RequiredObjectDeep<T> : T extends object ? RequiredObjectDeep<T> : unknown;
781
+ type RequiredObjectDeep<ObjectType extends object> = { [KeyType in keyof ObjectType]-?: RequiredDeep<ObjectType[KeyType]> };
782
+ //#endregion
783
+ //#region src/util/types/PropertyNames.d.ts
784
+ type PropertyNames<T> = RequiredDeep<{ [P in keyof T]: P }>;
785
+ //#endregion
786
+ //#region src/models/shared/ItemEntityType.d.ts
787
+ interface ItemEntityType<T extends string> {
788
+ type: T;
789
+ }
790
+ declare const ItemEntityTypePropertyNames: PropertyNames<ItemEntityType<string>>;
791
+ declare const createItemEntityTypeSchema: <T extends z.ZodType<string>>(schema: T) => z.ZodObject<{
792
+ type: T;
793
+ }>;
794
+ //#endregion
795
+ //#region src/models/shared/ItemMetadata.d.ts
796
+ declare class ItemMetadata {
797
+ createdAt: Date;
798
+ deletedAt: Date | null;
799
+ updatedAt: Date;
800
+ }
801
+ declare const ItemMetadataPropertyNames: PropertyNames<ItemMetadata>;
802
+ declare const itemMetadataSchema: z.ZodObject<{
803
+ createdAt: z.ZodDate;
804
+ deletedAt: z.ZodNullable<z.ZodDate>;
805
+ updatedAt: z.ZodDate;
806
+ }>;
807
+ //#endregion
808
+ //#region src/models/shared/Serializable.d.ts
809
+ declare abstract class Serializable {
810
+ toJSON(): string;
811
+ }
812
+ //#endregion
813
+ //#region src/util/types/DeepOmitArray.d.ts
814
+ type DeepOmitArray<TArray extends unknown[], TKey> = { [P in keyof TArray]: DeepOmit<TArray[P], TKey> };
815
+ //#endregion
816
+ //#region src/util/types/DeepOmit.d.ts
817
+ type DeepOmit<T, TKey> = T extends Primitive ? T : { [P in Exclude<keyof T, TKey>]: T[P] extends infer TP ? TP extends Date | Function | Primitive ? TP : TP extends unknown[] ? DeepOmitArray<TP, TKey> : Record<string, unknown> extends TP ? TP : DeepOmit<TP, TKey> : never };
818
+ //#endregion
819
+ //#region src/util/types/DeepOptionalProperties.d.ts
820
+ type DeepOptionalProperties<T> = { [K in keyof T as undefined extends T[K] ? K : never]?: DeepOptionalProperties<T[K]> };
821
+ //#endregion
822
+ //#region src/util/types/DeepRequiredProperties.d.ts
823
+ type DeepRequiredProperties<T> = { [K in keyof T as undefined extends T[K] ? never : K]: DeepRequiredProperties<T[K]> };
824
+ //#endregion
825
+ //#region src/util/types/DeepOptionalUndefined.d.ts
826
+ type DeepOptionalUndefined<T> = T extends ((...args: unknown[]) => unknown) ? T : T extends (infer U)[] ? DeepOptionalUndefined<U>[] : T extends readonly (infer U)[] ? readonly DeepOptionalUndefined<U>[] : T extends Date ? T : T extends object ? keyof T extends never ? never : DeepOptionalProperties<T> extends Record<never, unknown> ? DeepRequiredProperties<T> : DeepRequiredProperties<T> extends Record<never, unknown> ? DeepOptionalProperties<T> : DeepOptionalProperties<T> & DeepRequiredProperties<T> : T;
827
+ //#endregion
828
+ //#region src/models/shared/ToData.d.ts
829
+ type ToData<T extends Serializable> = DeepOptionalUndefined<DeepOmit<T, "toJSON">>;
830
+ //#endregion
831
+ //#region src/models/shared/WithMetadata.d.ts
832
+ interface WithMetadata<TBase extends Class<NonNullable<unknown>>> {
833
+ new (...args: ConstructorParameters<TBase>): InstanceType<TBase> & ItemMetadata;
834
+ prototype: InstanceType<TBase> & ItemMetadata;
835
+ }
836
+ //#endregion
837
+ //#region src/services/prettier/css.d.ts
838
+ declare const css: typeof String.raw;
839
+ //#endregion
840
+ //#region src/services/prettier/html.d.ts
841
+ declare const html: typeof String.raw;
842
+ //#endregion
843
+ //#region src/services/shared/applyItemMetadataMixin.d.ts
844
+ declare const applyItemMetadataMixin: <TBase extends Class<NonNullable<unknown>>>(Base: TBase) => WithMetadata<TBase>;
845
+ //#endregion
846
+ //#region src/util/environment/constants.d.ts
847
+ declare const IS_PRODUCTION: boolean;
848
+ declare const IS_TEST: boolean;
849
+ declare const IS_DEVELOPMENT: boolean;
850
+ //#endregion
851
+ //#region src/util/environment/getIsServer.d.ts
852
+ declare const getIsServer: () => boolean;
853
+ //#endregion
854
+ //#region src/util/id/constants.d.ts
855
+ declare const ID_SEPARATOR = "|";
856
+ //#endregion
857
+ //#region src/util/object/getPropertyNames.d.ts
858
+ declare const getPropertyNames: <T>() => PropertyNames<T>;
859
+ //#endregion
860
+ //#region src/util/object/isPlainObject.d.ts
861
+ declare const isPlainObject: (data: unknown) => data is object;
862
+ //#endregion
863
+ //#region src/util/object/jsonDateParse.d.ts
864
+ declare const jsonDateParse: (text: string) => any;
865
+ //#endregion
866
+ //#region src/util/types/MergeObjectsStrict.d.ts
867
+ type MergeObjectsStrict<T extends object[]> = T extends [infer TFirst, infer TSecond, ...infer TRemaining] ? TSecond extends { [K in keyof TSecond]: K extends keyof TFirst ? never : TSecond[K] } ? TRemaining extends object[] ? MergeObjectsStrict<[TSecond, ...TRemaining]> & TFirst : TFirst & TSecond : never : T extends [infer TFirst] ? TFirst : never;
868
+ //#endregion
869
+ //#region src/util/object/mergeObjectsStrict.d.ts
870
+ declare const mergeObjectsStrict: <T extends object[]>(...objects: T) => MergeObjectsStrict<T>;
871
+ //#endregion
872
+ //#region src/util/reactivity/getRawData.d.ts
873
+ declare const getRawData: <T>(data: T) => T;
874
+ //#endregion
875
+ //#region src/util/reactivity/toRawDeep.d.ts
876
+ declare const toRawDeep: <T extends object>(data: T) => T;
877
+ //#endregion
878
+ //#region src/util/regex/escapeRegExp.d.ts
879
+ declare const escapeRegExp: (string: string) => string;
880
+ //#endregion
881
+ //#region src/util/text/capitalize.d.ts
882
+ declare const capitalize: (string: string) => string;
883
+ //#endregion
884
+ //#region src/util/text/streamToText.d.ts
885
+ declare const streamToText: (readable: NodeJS.ReadableStream) => Promise<string>;
886
+ //#endregion
887
+ //#region src/util/types/CamelToKebab.d.ts
888
+ type CamelToKebab<S extends string> = S extends `${infer T}${infer U}` ? U extends Uncapitalize<U> ? `${Uncapitalize<T>}${CamelToKebab<U>}` : `${Uncapitalize<T>}-${CamelToKebab<U>}` : S;
889
+ //#endregion
890
+ //#region src/util/text/toKebabCase.d.ts
891
+ declare const toKebabCase: <T extends string>(string: T) => CamelToKebab<T>;
892
+ //#endregion
893
+ //#region src/util/text/uncapitalize.d.ts
894
+ declare const uncapitalize: <T extends string>(string: T) => Uncapitalize<T>;
895
+ //#endregion
896
+ //#region src/util/time/hrtime.d.ts
897
+ declare const hrtime: (previousHrTime?: [number, number]) => [number, number];
898
+ //#endregion
899
+ //#region src/util/time/now.d.ts
900
+ declare const now: () => string;
901
+ //#endregion
902
+ //#region src/util/types/FunctionProperties.d.ts
903
+ type FunctionProperties<T> = { [K in keyof T]: T[K] extends Function ? K : never };
904
+ //#endregion
759
905
  //#region src/util/types/ExcludeFunctionProperties.d.ts
760
906
  type ExcludeFunctionProperties<T> = Except<T, FunctionProperties<T>[keyof T]>;
761
907
  //#endregion
@@ -793,4 +939,4 @@ declare const UUIDV4_REGEX: RegExp;
793
939
  //#region src/util/id/uuid/uuidValidateV4.d.ts
794
940
  declare const uuidValidateV4: (uuid: string) => boolean;
795
941
  //#endregion
796
- export { BinaryOperator, CamelToKebab, ExcludeFunctionProperties, FunctionProperties, ID_SEPARATOR, InvalidOperationError, KebabToCamel, Literal, MapValue, MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, SkipFirst, TakeFirst, TupleSlice, TupleSplit, TupleSplitHead, TupleSplitTail, UUIDV4_REGEX, UnaryOperator, capitalize, css, exhaustiveGuard, html, isNull, isPartitionKey, isPlainObject, isRowKey, mergeObjectsStrict, streamToText, toKebabCase, uncapitalize, uuidValidateV4 };
942
+ export { CamelToKebab, DeepOmit, DeepOmitArray, DeepOptionalProperties, DeepOptionalUndefined, DeepRequiredProperties, Environment, ExcludeFunctionProperties, FunctionProperties, ID_SEPARATOR, IS_DEVELOPMENT, IS_PRODUCTION, IS_TEST, InvalidOperationError, ItemEntityType, ItemEntityTypePropertyNames, ItemMetadata, ItemMetadataPropertyNames, KebabToCamel, MapValue, MergeObjectsStrict, NIL, NotFoundError, NotInitializedError, Operation, PropertyNames, Serializable, SkipFirst, TakeFirst, ToData, TupleSlice, TupleSplit, TupleSplitHead, TupleSplitTail, UUIDV4_REGEX, WithMetadata, applyItemMetadataMixin, capitalize, createItemEntityTypeSchema, css, escapeRegExp, exhaustiveGuard, getIsServer, getPropertyNames, getRawData, hrtime, html, isPlainObject, itemMetadataSchema, jsonDateParse, mergeObjectsStrict, now, streamToText, toKebabCase, toRawDeep, uncapitalize, uuidValidateV4 };