@globalart/ddd 1.0.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.
@@ -0,0 +1,767 @@
1
+ import { z } from "zod";
2
+ import { Option, Result } from "oxide.ts";
3
+
4
+ //#region src/event.d.ts
5
+ declare const eventSchema: <TName extends string, TPayload extends z.ZodTypeAny, TMeta extends z.ZodTypeAny>(name: TName, payload: TPayload, meta: TMeta) => z.ZodObject<{
6
+ id: z.ZodString;
7
+ name: z.ZodLiteral<TName>;
8
+ operatorId: z.ZodOptional<z.ZodString>;
9
+ payload: TPayload;
10
+ timestamp: z.ZodCoercedDate<unknown>;
11
+ meta: TMeta;
12
+ }, z.core.$strip>;
13
+ interface IEvent<TPayload extends object = object, TMeta = any> {
14
+ id: string;
15
+ name: string;
16
+ operatorId: string;
17
+ payload: TPayload;
18
+ timestamp: Date;
19
+ meta: TMeta;
20
+ }
21
+ interface IEventJSON<TPayload extends object = object, TMeta = any> {
22
+ id: string;
23
+ name: string;
24
+ operatorId: string;
25
+ payload: TPayload;
26
+ timestamp: string;
27
+ meta: TMeta;
28
+ }
29
+ declare abstract class BaseEvent<TPayload extends object = object, TName extends string = string, TMeta extends any = {
30
+ key?: string;
31
+ headers?: Record<string, string>;
32
+ }> implements IEvent<TPayload> {
33
+ readonly payload: TPayload;
34
+ readonly operatorId: string;
35
+ readonly meta: TMeta;
36
+ readonly id: string;
37
+ readonly timestamp: Date;
38
+ abstract name: TName;
39
+ constructor(payload: TPayload, operatorId: string, meta: TMeta, id?: string, timestamp?: Date);
40
+ toJSON(): IEventJSON<TPayload, TMeta>;
41
+ }
42
+ //#endregion
43
+ //#region src/aggregate-root.d.ts
44
+ declare abstract class AggregateRoot<E extends BaseEvent> {
45
+ #private;
46
+ get domainEvents(): E[];
47
+ set domainEvents(events: E[]);
48
+ addDomainEvent(event: E): void;
49
+ removeEvents(events: E[]): void;
50
+ }
51
+ //#endregion
52
+ //#region src/command.d.ts
53
+ type CommandProps<T> = Omit<T, 'correlationId' | 'commandId'> & Partial<Command>;
54
+ declare abstract class Command {
55
+ readonly commandId: string;
56
+ readonly correlationId: string;
57
+ readonly causationId?: string;
58
+ constructor(props: CommandProps<unknown>);
59
+ }
60
+ //#endregion
61
+ //#region src/command-bus.d.ts
62
+ interface ICommandBus<TCommand extends Command = Command> {
63
+ execute<TResult>(command: TCommand): Promise<TResult>;
64
+ }
65
+ //#endregion
66
+ //#region src/command-handler.d.ts
67
+ interface ICommandHandler<TCommand extends Command, TResult> {
68
+ execute(command: TCommand): Promise<TResult>;
69
+ }
70
+ //#endregion
71
+ //#region src/event-handler.d.ts
72
+ interface IEventHandler<TEvent extends IEvent, TResult = void> {
73
+ handle(event: TEvent): Promise<TResult> | TResult;
74
+ }
75
+ //#endregion
76
+ //#region src/exception.base.d.ts
77
+ interface SerializedException {
78
+ message: string;
79
+ code: string;
80
+ correlationId?: string;
81
+ stack?: string;
82
+ cause?: string;
83
+ metadata?: unknown;
84
+ }
85
+ declare abstract class ExceptionBase extends Error {
86
+ readonly message: string;
87
+ readonly cause?: Error | undefined;
88
+ readonly metadata?: unknown | undefined;
89
+ abstract code: string;
90
+ readonly correlationId?: string;
91
+ /**
92
+ *
93
+ * @param message
94
+ * @param correlationId
95
+ * @param cause
96
+ * @param metadata
97
+ */
98
+ constructor(message: string, correlationId?: string, cause?: Error | undefined, metadata?: unknown | undefined);
99
+ toJSON(): SerializedException;
100
+ }
101
+ //#endregion
102
+ //#region src/filter/base.filter.d.ts
103
+ declare const baseFilter: z.ZodObject<{
104
+ field: z.ZodString;
105
+ relation: z.ZodOptional<z.ZodString>;
106
+ }, z.core.$strip>;
107
+ //#endregion
108
+ //#region src/filter/conjunction.d.ts
109
+ declare const conjunctions: z.ZodUnion<readonly [z.ZodLiteral<"$and">, z.ZodLiteral<"$or">, z.ZodLiteral<"$not">]>;
110
+ type IConjunction = z.infer<typeof conjunctions>;
111
+ //#endregion
112
+ //#region src/specification.d.ts
113
+ interface ISpecVisitor {
114
+ or(left: ISpecification, right: ISpecification): this;
115
+ not(): this;
116
+ }
117
+ interface ISpecification<T = any, V extends ISpecVisitor = ISpecVisitor> {
118
+ isSatisfiedBy(t: T): boolean;
119
+ mutate(t: T): Result<T, string>;
120
+ accept(v: V): Result<void, string>;
121
+ }
122
+ declare abstract class CompositeSpecification<T = any, V extends ISpecVisitor = ISpecVisitor> implements ISpecification<T, V> {
123
+ abstract isSatisfiedBy(t: T): boolean;
124
+ abstract mutate(t: T): Result<T, string>;
125
+ abstract accept(v: V): Result<void, string>;
126
+ and(s: ISpecification<T, V>): CompositeSpecification<T, V>;
127
+ or(s: ISpecification<T, V>): CompositeSpecification<T, V>;
128
+ not(): Not<T, V>;
129
+ }
130
+ declare class Not<T, V extends ISpecVisitor> extends CompositeSpecification<T, V> {
131
+ readonly spec: ISpecification<T, V>;
132
+ constructor(spec: ISpecification<T, V>);
133
+ isSatisfiedBy(t: T): boolean;
134
+ mutate(): Result<T, string>;
135
+ accept(v: V): Result<void, string>;
136
+ }
137
+ declare const and: <T, V extends ISpecVisitor>(...specs: CompositeSpecification<T, V>[]) => Option<CompositeSpecification<T, V>>;
138
+ declare const andOptions: <T, V extends ISpecVisitor>(...specs: Option<CompositeSpecification<T, V>>[]) => Option<CompositeSpecification<T, V>>;
139
+ declare const or: <T, V extends ISpecVisitor>(...specs: CompositeSpecification<T, V>[]) => Option<CompositeSpecification<T, V>>;
140
+ //#endregion
141
+ //#region src/value-objects/value-object.d.ts
142
+ type Primitives = string | number | boolean | null;
143
+ interface DomainPrimitive<T extends Primitives | Date> {
144
+ value: T;
145
+ }
146
+ type ValueObjectProps<T> = T extends Primitives | Date ? DomainPrimitive<T> : T;
147
+ declare abstract class ValueObject<T = any> {
148
+ protected readonly props: ValueObjectProps<T>;
149
+ constructor(props: ValueObjectProps<T>);
150
+ equals(vo?: ValueObject<T>): boolean;
151
+ static isValueObject(obj: unknown): obj is ValueObject<unknown>;
152
+ unpack(): T;
153
+ private isDomainPrimitive;
154
+ }
155
+ //#endregion
156
+ //#region src/filter/fields/number/number-field.type.d.ts
157
+ declare const numberFieldValue: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
158
+ type INumberFieldValue = z.infer<typeof numberFieldValue>;
159
+ //#endregion
160
+ //#region src/filter/fields/number/number-field-value.d.ts
161
+ declare class NumberFieldValue extends FieldValueBase<INumberFieldValue> {
162
+ constructor(value: INumberFieldValue);
163
+ accept(visitor: IFieldValueVisitor): void;
164
+ }
165
+ //#endregion
166
+ //#region src/filter/fields/string/string-field.type.d.ts
167
+ declare const stringFieldValue: z.ZodNullable<z.ZodString>;
168
+ type IStringFieldValue = z.infer<typeof stringFieldValue>;
169
+ //#endregion
170
+ //#region src/filter/fields/string/string-field-value.d.ts
171
+ declare class StringFieldValue extends FieldValueBase<IStringFieldValue> {
172
+ constructor(value: IStringFieldValue);
173
+ accept(visitor: IFieldValueVisitor): void;
174
+ }
175
+ //#endregion
176
+ //#region src/filter/fields/field-value.visitor.d.ts
177
+ interface IFieldValueVisitor {
178
+ number(value: NumberFieldValue): void;
179
+ string(value: StringFieldValue): void;
180
+ date(value: DateFieldValue): void;
181
+ }
182
+ //#endregion
183
+ //#region src/filter/fields/date/date-field.type.d.ts
184
+ declare const dateFieldValue: z.ZodNullable<z.ZodDate>;
185
+ type IDateFieldValue = z.infer<typeof dateFieldValue>;
186
+ //#endregion
187
+ //#region src/filter/fields/field.type.d.ts
188
+ type UnpackedFieldValue = IStringFieldValue | INumberFieldValue | IDateFieldValue;
189
+ //#endregion
190
+ //#region src/filter/fields/field-value.base.d.ts
191
+ declare abstract class FieldValueBase<V extends UnpackedFieldValue> extends ValueObject<V> {
192
+ abstract accept(visitor: IFieldValueVisitor): void;
193
+ }
194
+ //#endregion
195
+ //#region src/filter/fields/date/date-field-value.d.ts
196
+ declare class DateFieldValue extends FieldValueBase<IDateFieldValue> {
197
+ constructor(value: IDateFieldValue);
198
+ accept(visitor: IFieldValueVisitor): void;
199
+ static fromNullableString(str: string | null): DateFieldValue;
200
+ }
201
+ //#endregion
202
+ //#region src/filter/specifications/date.specification.d.ts
203
+ declare class DateEqual extends BaseFilterSpecification<unknown, DateFieldValue> {
204
+ isSatisfiedBy(value: unknown): boolean;
205
+ accept(v: IFilterBaseVisitor): Result<void, string>;
206
+ }
207
+ declare class DateGreaterThan extends BaseFilterSpecification<unknown, DateFieldValue> {
208
+ isSatisfiedBy(value: unknown): boolean;
209
+ accept(v: IFilterBaseVisitor): Result<void, string>;
210
+ }
211
+ declare class DateLessThan extends BaseFilterSpecification<unknown, DateFieldValue> {
212
+ isSatisfiedBy(value: unknown): boolean;
213
+ accept(v: IFilterBaseVisitor): Result<void, string>;
214
+ }
215
+ declare class DateGreaterThanOrEqual extends BaseFilterSpecification<unknown, DateFieldValue> {
216
+ isSatisfiedBy(value: unknown): boolean;
217
+ accept(v: IFilterBaseVisitor): Result<void, string>;
218
+ }
219
+ declare class DateLessThanOrEqual extends BaseFilterSpecification<unknown, DateFieldValue> {
220
+ isSatisfiedBy(value: unknown): boolean;
221
+ accept(v: IFilterBaseVisitor): Result<void, string>;
222
+ }
223
+ declare class DateIsToday extends BaseFilterSpecification<unknown, DateFieldValue> {
224
+ isSatisfiedBy(value: unknown): boolean;
225
+ accept(v: IFilterBaseVisitor): Result<void, string>;
226
+ }
227
+ declare class DateIsTomorrow extends BaseFilterSpecification<unknown, DateFieldValue> {
228
+ isSatisfiedBy(value: unknown): boolean;
229
+ accept(v: IFilterBaseVisitor): Result<void, string>;
230
+ }
231
+ declare class DateIsYesterday extends BaseFilterSpecification<unknown, DateFieldValue> {
232
+ isSatisfiedBy(value: unknown): boolean;
233
+ accept(v: IFilterBaseVisitor): Result<void, string>;
234
+ }
235
+ declare class DateBetween extends BaseFilterSpecification<unknown, DateFieldValue> {
236
+ field: string;
237
+ dateStart: Date;
238
+ dateEnd: Date;
239
+ relation?: string | undefined;
240
+ constructor(field: string, dateStart: Date, dateEnd: Date, relation?: string | undefined);
241
+ isSatisfiedBy(value: unknown): boolean;
242
+ accept(v: IFilterBaseVisitor): Result<void, string>;
243
+ }
244
+ //#endregion
245
+ //#region src/filter/specifications/number.specification.d.ts
246
+ declare class NumberEqual extends BaseFilterSpecification<unknown, NumberFieldValue> {
247
+ isSatisfiedBy(value: unknown): boolean;
248
+ accept(v: IFilterBaseVisitor): Result<void, string>;
249
+ }
250
+ declare class NumberGreaterThan extends BaseFilterSpecification<unknown, NumberFieldValue> {
251
+ isSatisfiedBy(value: unknown): boolean;
252
+ accept(v: IFilterBaseVisitor): Result<void, string>;
253
+ }
254
+ declare class NumberLessThan extends BaseFilterSpecification<unknown, NumberFieldValue> {
255
+ isSatisfiedBy(value: unknown): boolean;
256
+ accept(v: IFilterBaseVisitor): Result<void, string>;
257
+ }
258
+ declare class NumberGreaterThanOrEqual extends BaseFilterSpecification<unknown, NumberFieldValue> {
259
+ isSatisfiedBy(value: unknown): boolean;
260
+ accept(v: IFilterBaseVisitor): Result<void, string>;
261
+ }
262
+ declare class NumberLessThanOrEqual extends BaseFilterSpecification<unknown, NumberFieldValue> {
263
+ isSatisfiedBy(value: unknown): boolean;
264
+ accept(v: IFilterBaseVisitor): Result<void, string>;
265
+ }
266
+ declare class NumberEmpty extends BaseFilterSpecification<unknown, NumberFieldValue> {
267
+ readonly field: string;
268
+ constructor(field: string);
269
+ isSatisfiedBy(value: unknown): boolean;
270
+ accept(v: IFilterBaseVisitor): Result<void, string>;
271
+ }
272
+ //#endregion
273
+ //#region src/filter/specifications/string.specification.d.ts
274
+ declare class StringEqual extends BaseFilterSpecification<unknown, StringFieldValue> {
275
+ isSatisfiedBy(value: unknown): boolean;
276
+ accept(v: IFilterBaseVisitor): Result<void, string>;
277
+ }
278
+ declare class StringNotEqual extends BaseFilterSpecification<unknown, StringFieldValue> {
279
+ isSatisfiedBy(value: unknown): boolean;
280
+ accept(v: IFilterBaseVisitor): Result<void, string>;
281
+ }
282
+ declare class StringContain extends BaseFilterSpecification<unknown, StringFieldValue> {
283
+ isSatisfiedBy(value: unknown): boolean;
284
+ accept(v: IFilterBaseVisitor): Result<void, string>;
285
+ }
286
+ declare class StringStartsWith extends BaseFilterSpecification<unknown, StringFieldValue> {
287
+ isSatisfiedBy(value: unknown): boolean;
288
+ accept(v: IFilterBaseVisitor): Result<void, string>;
289
+ }
290
+ declare class StringEndsWith extends BaseFilterSpecification<unknown, StringFieldValue> {
291
+ isSatisfiedBy(value: unknown): boolean;
292
+ accept(v: IFilterBaseVisitor): Result<void, string>;
293
+ }
294
+ declare class StringRegex extends BaseFilterSpecification<unknown, StringFieldValue> {
295
+ isSatisfiedBy(value: unknown): boolean;
296
+ accept(v: IFilterBaseVisitor): Result<void, string>;
297
+ }
298
+ declare class StringEmpty extends BaseFilterSpecification<unknown, StringFieldValue> {
299
+ constructor(field: string);
300
+ isSatisfiedBy(value: unknown): boolean;
301
+ accept(v: IFilterBaseVisitor): Result<void, string>;
302
+ }
303
+ //#endregion
304
+ //#region src/filter/filter-specification-visitor.base.d.ts
305
+ interface IFilterSpecBaseVisitor {
306
+ idEqual(): void;
307
+ idsIn(): void;
308
+ }
309
+ interface IFilterValueBaseVisitor {
310
+ stringEqual(s: StringEqual): void;
311
+ stringNotEqual(s: StringNotEqual): void;
312
+ stringContain(s: StringContain): void;
313
+ stringStartsWith(s: StringStartsWith): void;
314
+ stringEndsWith(s: StringEndsWith): void;
315
+ stringRegex(s: StringRegex): void;
316
+ stringEmpty(s: StringEmpty): void;
317
+ like(): void;
318
+ numberEqual(s: NumberEqual): void;
319
+ numberGreaterThan(s: NumberGreaterThan): void;
320
+ numberLessThan(s: NumberLessThan): void;
321
+ numberGreaterThanOrEqual(s: NumberGreaterThanOrEqual): void;
322
+ numberLessThanOrEqual(s: NumberLessThanOrEqual): void;
323
+ numberEmpty(s: NumberEmpty): void;
324
+ dateEqual(s: DateEqual): void;
325
+ dateGreaterThan(s: DateGreaterThan): void;
326
+ dateLessThan(s: DateLessThan): void;
327
+ dateGreaterThanOrEqual(s: DateGreaterThanOrEqual): void;
328
+ dateLessThanOrEqual(s: DateLessThanOrEqual): void;
329
+ dateIsToday(s: DateIsToday): void;
330
+ dateIsTomorrow(s: DateIsTomorrow): void;
331
+ dateIsYesterday(s: DateIsYesterday): void;
332
+ dateBetween(s: DateBetween): void;
333
+ dateRangeEqual(): void;
334
+ dateRangeEmpty(): void;
335
+ dateRangeDateEqual(): void;
336
+ dateRangeDateGreaterThan(): void;
337
+ dateRangeDateLessThan(): void;
338
+ dateRangeDateGreaterThanOrEqual(): void;
339
+ dateRangeDateLessThanOrEqual(): void;
340
+ boolIsTrue(): void;
341
+ boolIsFalse(): void;
342
+ jsonEmpty(): void;
343
+ }
344
+ type IFilterBaseVisitor = IFilterSpecBaseVisitor & IFilterValueBaseVisitor & ISpecVisitor;
345
+ //#endregion
346
+ //#region src/filter/filter-specification.base.d.ts
347
+ declare abstract class BaseFilterSpecification<E = unknown, V = unknown> extends CompositeSpecification<E, IFilterBaseVisitor> {
348
+ readonly field: string;
349
+ readonly value: V;
350
+ readonly relation?: string | undefined;
351
+ constructor(field: string, value: V, relation?: string | undefined);
352
+ mutate(t: E): Result<E, string>;
353
+ }
354
+ //#endregion
355
+ //#region src/filter/filter.d.ts
356
+ declare const filterRoorFilter: <T extends z.ZodType>(filters: [T, ...T[]]) => z.ZodUnion<[z.ZodType<{
357
+ conjunction?: IConjunction;
358
+ children?: (z.infer<z.ZodType< /*elided*/any, unknown, z.core.$ZodTypeInternals< /*elided*/any, unknown>>> | z.infer<z.ZodUnion<[T, T, ...T[]]>>)[];
359
+ }, unknown, z.core.$ZodTypeInternals<{
360
+ conjunction?: IConjunction;
361
+ children?: (z.infer<z.ZodType< /*elided*/any, unknown, z.core.$ZodTypeInternals< /*elided*/any, unknown>>> | z.infer<z.ZodUnion<[T, T, ...T[]]>>)[];
362
+ }, unknown>>, z.ZodArray<z.ZodUnion<[z.ZodUnion<[T, T, ...T[]]>, z.ZodType<{
363
+ conjunction?: IConjunction;
364
+ children?: (z.infer<z.ZodType< /*elided*/any, unknown, z.core.$ZodTypeInternals< /*elided*/any, unknown>>> | z.infer<z.ZodUnion<[T, T, ...T[]]>>)[];
365
+ }, unknown, z.core.$ZodTypeInternals<{
366
+ conjunction?: IConjunction;
367
+ children?: (z.infer<z.ZodType< /*elided*/any, unknown, z.core.$ZodTypeInternals< /*elided*/any, unknown>>> | z.infer<z.ZodUnion<[T, T, ...T[]]>>)[];
368
+ }, unknown>>]>>]>;
369
+ declare const filter: z.ZodDiscriminatedUnion<[z.ZodObject<{
370
+ type: z.ZodLiteral<"number">;
371
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
372
+ value: z.ZodNullable<z.ZodNumber>;
373
+ field: z.ZodString;
374
+ relation: z.ZodOptional<z.ZodString>;
375
+ }, z.core.$strip>, z.ZodObject<{
376
+ type: z.ZodLiteral<"string">;
377
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$contains">, z.ZodLiteral<"$not_contains">, z.ZodLiteral<"$starts_with">, z.ZodLiteral<"$ends_with">, z.ZodLiteral<"$regex">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
378
+ value: z.ZodNullable<z.ZodString>;
379
+ field: z.ZodString;
380
+ relation: z.ZodOptional<z.ZodString>;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ type: z.ZodLiteral<"date">;
383
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$between">, z.ZodLiteral<"$is_today">, z.ZodLiteral<"$is_tomorrow">, z.ZodLiteral<"$is_yesterday">, z.ZodLiteral<"$is_not_today">]>;
384
+ value: z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
385
+ field: z.ZodString;
386
+ relation: z.ZodOptional<z.ZodString>;
387
+ }, z.core.$strip>], "type">;
388
+ type IFilter = z.infer<typeof filter>;
389
+ type IFilters = IFilter[];
390
+ interface IGroup<Filter extends IFilter = IFilter> {
391
+ conjunction?: IConjunction;
392
+ children?: IFilterOrGroupList<Filter>;
393
+ }
394
+ type IFilterOrGroup<Filter extends IFilter = IFilter> = Filter | IGroup<Filter>;
395
+ declare const filterOrGroupList: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
396
+ type: z.ZodLiteral<"number">;
397
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
398
+ value: z.ZodNullable<z.ZodNumber>;
399
+ field: z.ZodString;
400
+ relation: z.ZodOptional<z.ZodString>;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ type: z.ZodLiteral<"string">;
403
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$contains">, z.ZodLiteral<"$not_contains">, z.ZodLiteral<"$starts_with">, z.ZodLiteral<"$ends_with">, z.ZodLiteral<"$regex">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
404
+ value: z.ZodNullable<z.ZodString>;
405
+ field: z.ZodString;
406
+ relation: z.ZodOptional<z.ZodString>;
407
+ }, z.core.$strip>, z.ZodObject<{
408
+ type: z.ZodLiteral<"date">;
409
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$between">, z.ZodLiteral<"$is_today">, z.ZodLiteral<"$is_tomorrow">, z.ZodLiteral<"$is_yesterday">, z.ZodLiteral<"$is_not_today">]>;
410
+ value: z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
411
+ field: z.ZodString;
412
+ relation: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strip>], "type">, z.ZodType<IGroup<{
414
+ type: "number";
415
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$is_empty" | "$is_not_empty";
416
+ value: number | null;
417
+ field: string;
418
+ relation?: string | undefined;
419
+ } | {
420
+ type: "string";
421
+ operator: "$eq" | "$neq" | "$is_empty" | "$is_not_empty" | "$contains" | "$not_contains" | "$starts_with" | "$ends_with" | "$regex";
422
+ value: string | null;
423
+ field: string;
424
+ relation?: string | undefined;
425
+ } | {
426
+ type: "date";
427
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$between" | "$is_today" | "$is_tomorrow" | "$is_yesterday" | "$is_not_today";
428
+ value: string | [string, string] | null;
429
+ field: string;
430
+ relation?: string | undefined;
431
+ }>, unknown, z.core.$ZodTypeInternals<IGroup<{
432
+ type: "number";
433
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$is_empty" | "$is_not_empty";
434
+ value: number | null;
435
+ field: string;
436
+ relation?: string | undefined;
437
+ } | {
438
+ type: "string";
439
+ operator: "$eq" | "$neq" | "$is_empty" | "$is_not_empty" | "$contains" | "$not_contains" | "$starts_with" | "$ends_with" | "$regex";
440
+ value: string | null;
441
+ field: string;
442
+ relation?: string | undefined;
443
+ } | {
444
+ type: "date";
445
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$between" | "$is_today" | "$is_tomorrow" | "$is_yesterday" | "$is_not_today";
446
+ value: string | [string, string] | null;
447
+ field: string;
448
+ relation?: string | undefined;
449
+ }>, unknown>>]>>;
450
+ type IFilterOrGroupList<Filter extends IFilter = IFilter> = IFilterOrGroup<Filter>[];
451
+ declare const rootFilter: z.ZodUnion<[z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
452
+ type: z.ZodLiteral<"number">;
453
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
454
+ value: z.ZodNullable<z.ZodNumber>;
455
+ field: z.ZodString;
456
+ relation: z.ZodOptional<z.ZodString>;
457
+ }, z.core.$strip>, z.ZodObject<{
458
+ type: z.ZodLiteral<"string">;
459
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$contains">, z.ZodLiteral<"$not_contains">, z.ZodLiteral<"$starts_with">, z.ZodLiteral<"$ends_with">, z.ZodLiteral<"$regex">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
460
+ value: z.ZodNullable<z.ZodString>;
461
+ field: z.ZodString;
462
+ relation: z.ZodOptional<z.ZodString>;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ type: z.ZodLiteral<"date">;
465
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$between">, z.ZodLiteral<"$is_today">, z.ZodLiteral<"$is_tomorrow">, z.ZodLiteral<"$is_yesterday">, z.ZodLiteral<"$is_not_today">]>;
466
+ value: z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
467
+ field: z.ZodString;
468
+ relation: z.ZodOptional<z.ZodString>;
469
+ }, z.core.$strip>], "type">, z.ZodType<IGroup<{
470
+ type: "number";
471
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$is_empty" | "$is_not_empty";
472
+ value: number | null;
473
+ field: string;
474
+ relation?: string | undefined;
475
+ } | {
476
+ type: "string";
477
+ operator: "$eq" | "$neq" | "$is_empty" | "$is_not_empty" | "$contains" | "$not_contains" | "$starts_with" | "$ends_with" | "$regex";
478
+ value: string | null;
479
+ field: string;
480
+ relation?: string | undefined;
481
+ } | {
482
+ type: "date";
483
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$between" | "$is_today" | "$is_tomorrow" | "$is_yesterday" | "$is_not_today";
484
+ value: string | [string, string] | null;
485
+ field: string;
486
+ relation?: string | undefined;
487
+ }>, unknown, z.core.$ZodTypeInternals<IGroup<{
488
+ type: "number";
489
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$is_empty" | "$is_not_empty";
490
+ value: number | null;
491
+ field: string;
492
+ relation?: string | undefined;
493
+ } | {
494
+ type: "string";
495
+ operator: "$eq" | "$neq" | "$is_empty" | "$is_not_empty" | "$contains" | "$not_contains" | "$starts_with" | "$ends_with" | "$regex";
496
+ value: string | null;
497
+ field: string;
498
+ relation?: string | undefined;
499
+ } | {
500
+ type: "date";
501
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$between" | "$is_today" | "$is_tomorrow" | "$is_yesterday" | "$is_not_today";
502
+ value: string | [string, string] | null;
503
+ field: string;
504
+ relation?: string | undefined;
505
+ }>, unknown>>]>, z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
506
+ type: z.ZodLiteral<"number">;
507
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
508
+ value: z.ZodNullable<z.ZodNumber>;
509
+ field: z.ZodString;
510
+ relation: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$strip>, z.ZodObject<{
512
+ type: z.ZodLiteral<"string">;
513
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$contains">, z.ZodLiteral<"$not_contains">, z.ZodLiteral<"$starts_with">, z.ZodLiteral<"$ends_with">, z.ZodLiteral<"$regex">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
514
+ value: z.ZodNullable<z.ZodString>;
515
+ field: z.ZodString;
516
+ relation: z.ZodOptional<z.ZodString>;
517
+ }, z.core.$strip>, z.ZodObject<{
518
+ type: z.ZodLiteral<"date">;
519
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$between">, z.ZodLiteral<"$is_today">, z.ZodLiteral<"$is_tomorrow">, z.ZodLiteral<"$is_yesterday">, z.ZodLiteral<"$is_not_today">]>;
520
+ value: z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
521
+ field: z.ZodString;
522
+ relation: z.ZodOptional<z.ZodString>;
523
+ }, z.core.$strip>], "type">, z.ZodType<IGroup<{
524
+ type: "number";
525
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$is_empty" | "$is_not_empty";
526
+ value: number | null;
527
+ field: string;
528
+ relation?: string | undefined;
529
+ } | {
530
+ type: "string";
531
+ operator: "$eq" | "$neq" | "$is_empty" | "$is_not_empty" | "$contains" | "$not_contains" | "$starts_with" | "$ends_with" | "$regex";
532
+ value: string | null;
533
+ field: string;
534
+ relation?: string | undefined;
535
+ } | {
536
+ type: "date";
537
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$between" | "$is_today" | "$is_tomorrow" | "$is_yesterday" | "$is_not_today";
538
+ value: string | [string, string] | null;
539
+ field: string;
540
+ relation?: string | undefined;
541
+ }>, unknown, z.core.$ZodTypeInternals<IGroup<{
542
+ type: "number";
543
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$is_empty" | "$is_not_empty";
544
+ value: number | null;
545
+ field: string;
546
+ relation?: string | undefined;
547
+ } | {
548
+ type: "string";
549
+ operator: "$eq" | "$neq" | "$is_empty" | "$is_not_empty" | "$contains" | "$not_contains" | "$starts_with" | "$ends_with" | "$regex";
550
+ value: string | null;
551
+ field: string;
552
+ relation?: string | undefined;
553
+ } | {
554
+ type: "date";
555
+ operator: "$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$between" | "$is_today" | "$is_tomorrow" | "$is_yesterday" | "$is_not_today";
556
+ value: string | [string, string] | null;
557
+ field: string;
558
+ relation?: string | undefined;
559
+ }>, unknown>>]>>]>;
560
+ type IRootFilter<Filter extends IFilter = IFilter> = IFilterOrGroup<Filter> | IFilterOrGroupList<Filter>;
561
+ declare const isGroup: (filterOrGroup: IFilterOrGroup) => filterOrGroup is IGroup;
562
+ declare const isFilter: (filterOrGroup: IFilterOrGroup) => filterOrGroup is IFilter;
563
+ declare const operators: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>, z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$contains">, z.ZodLiteral<"$not_contains">, z.ZodLiteral<"$starts_with">, z.ZodLiteral<"$ends_with">, z.ZodLiteral<"$regex">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>]>;
564
+ type IOperator = z.infer<typeof operators>;
565
+ type IFieldType = 'number';
566
+ declare const operatorsMap: Record<IFieldType, IOperator[]>;
567
+ declare const convertFilterSpec: (filter: IRootFilter) => Option<BaseFilterSpecification>;
568
+ declare const isEmptyFilter: (filter: IRootFilter) => any;
569
+ //#endregion
570
+ //#region src/filter/fields/date/date.filter.d.ts
571
+ declare const dateFilterOperators: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$between">, z.ZodLiteral<"$is_today">, z.ZodLiteral<"$is_tomorrow">, z.ZodLiteral<"$is_yesterday">, z.ZodLiteral<"$is_not_today">]>;
572
+ declare const dateFilterValue: z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
573
+ declare const dateFilter: z.ZodObject<{
574
+ type: z.ZodLiteral<"date">;
575
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$between">, z.ZodLiteral<"$is_today">, z.ZodLiteral<"$is_tomorrow">, z.ZodLiteral<"$is_yesterday">, z.ZodLiteral<"$is_not_today">]>;
576
+ value: z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
577
+ field: z.ZodString;
578
+ relation: z.ZodOptional<z.ZodString>;
579
+ }, z.core.$strip>;
580
+ type IDateFilter = z.infer<typeof dateFilter>;
581
+ type IDateFilterValue = z.infer<typeof dateFilterValue>;
582
+ type IDateFilterOperator = z.infer<typeof dateFilterOperators>;
583
+ //#endregion
584
+ //#region src/filter/fields/number/number.filter.d.ts
585
+ declare const numberFilterOperators: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
586
+ type INumberFilterOperators = z.infer<typeof numberFilterOperators>;
587
+ declare const numberFilterValue: z.ZodNullable<z.ZodNumber>;
588
+ declare const numberFilter: z.ZodObject<{
589
+ type: z.ZodLiteral<"number">;
590
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$gt">, z.ZodLiteral<"$gte">, z.ZodLiteral<"$lt">, z.ZodLiteral<"$lte">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
591
+ value: z.ZodNullable<z.ZodNumber>;
592
+ field: z.ZodString;
593
+ relation: z.ZodOptional<z.ZodString>;
594
+ }, z.core.$strip>;
595
+ type INumberFilter = z.infer<typeof numberFilter>;
596
+ type INumberFilterValue = z.infer<typeof numberFilterValue>;
597
+ //#endregion
598
+ //#region src/filter/fields/string/string.filter.d.ts
599
+ declare const stringFilterOperators: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$contains">, z.ZodLiteral<"$not_contains">, z.ZodLiteral<"$starts_with">, z.ZodLiteral<"$ends_with">, z.ZodLiteral<"$regex">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
600
+ declare const stringFilterValue: z.ZodNullable<z.ZodString>;
601
+ declare const stringFilter: z.ZodObject<{
602
+ type: z.ZodLiteral<"string">;
603
+ operator: z.ZodUnion<readonly [z.ZodLiteral<"$eq">, z.ZodLiteral<"$neq">, z.ZodLiteral<"$contains">, z.ZodLiteral<"$not_contains">, z.ZodLiteral<"$starts_with">, z.ZodLiteral<"$ends_with">, z.ZodLiteral<"$regex">, z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">]>;
604
+ value: z.ZodNullable<z.ZodString>;
605
+ field: z.ZodString;
606
+ relation: z.ZodOptional<z.ZodString>;
607
+ }, z.core.$strip>;
608
+ type IStringFilter = z.infer<typeof stringFilter>;
609
+ type IStringFilterOperator = z.infer<typeof stringFilterOperators>;
610
+ //#endregion
611
+ //#region src/filter/operators.d.ts
612
+ declare const $eq: z.ZodLiteral<"$eq">;
613
+ declare const $neq: z.ZodLiteral<"$neq">;
614
+ declare const $contains: z.ZodLiteral<"$contains">;
615
+ declare const $not_contains: z.ZodLiteral<"$not_contains">;
616
+ declare const $starts_with: z.ZodLiteral<"$starts_with">;
617
+ declare const $ends_with: z.ZodLiteral<"$ends_with">;
618
+ declare const $regex: z.ZodLiteral<"$regex">;
619
+ declare const $is_true: z.ZodLiteral<"$is_true">;
620
+ declare const $is_false: z.ZodLiteral<"$is_false">;
621
+ declare const $in: z.ZodLiteral<"$in">;
622
+ declare const $nin: z.ZodLiteral<"$nin">;
623
+ declare const $gt: z.ZodLiteral<"$gt">;
624
+ declare const $lt: z.ZodLiteral<"$lt">;
625
+ declare const $gte: z.ZodLiteral<"$gte">;
626
+ declare const $lte: z.ZodLiteral<"$lte">;
627
+ declare const $start_eq: z.ZodLiteral<"$start_eq">;
628
+ declare const $start_neq: z.ZodLiteral<"$start_neq">;
629
+ declare const $start_gt: z.ZodLiteral<"$start_gt">;
630
+ declare const $start_lt: z.ZodLiteral<"$start_lt">;
631
+ declare const $start_gte: z.ZodLiteral<"$start_gte">;
632
+ declare const $start_lte: z.ZodLiteral<"$start_lte">;
633
+ declare const $end_eq: z.ZodLiteral<"$end_eq">;
634
+ declare const $end_neq: z.ZodLiteral<"$end_neq">;
635
+ declare const $end_gt: z.ZodLiteral<"$end_gt">;
636
+ declare const $end_lt: z.ZodLiteral<"$end_lt">;
637
+ declare const $end_gte: z.ZodLiteral<"$end_gte">;
638
+ declare const $end_lte: z.ZodLiteral<"$end_lte">;
639
+ declare const $is_empty: z.ZodLiteral<"$is_empty">;
640
+ declare const $is_not_empty: z.ZodLiteral<"$is_not_empty">;
641
+ declare const $is_today: z.ZodLiteral<"$is_today">;
642
+ declare const $is_not_today: z.ZodLiteral<"$is_not_today">;
643
+ declare const $is_tomorrow: z.ZodLiteral<"$is_tomorrow">;
644
+ declare const $is_yesterday: z.ZodLiteral<"$is_yesterday">;
645
+ declare const $between: z.ZodLiteral<"$between">;
646
+ declare const $has_file_type: z.ZodLiteral<"$has_file_type">;
647
+ declare const $has_file_extension: z.ZodLiteral<"$has_file_extension">;
648
+ declare const $is_root: z.ZodLiteral<"$is_root">;
649
+ declare const $is_me: z.ZodLiteral<"$is_me">;
650
+ declare const $is_not_me: z.ZodLiteral<"$is_not_me">;
651
+ declare const operatorsWihtoutValue: z.ZodUnion<readonly [z.ZodLiteral<"$is_empty">, z.ZodLiteral<"$is_not_empty">, z.ZodLiteral<"$is_today">, z.ZodLiteral<"$is_not_today">, z.ZodLiteral<"$is_tomorrow">, z.ZodLiteral<"$is_yesterday">, z.ZodLiteral<"$is_root">, z.ZodLiteral<"$is_me">, z.ZodLiteral<"$is_not_me">]>;
652
+ declare const isOperatorWithoutValue: (value: string) => boolean;
653
+ //#endregion
654
+ //#region src/filter/root-filter.d.ts
655
+ declare class RootFilter<T extends IFilter = IFilter> extends ValueObject<IRootFilter<T>> {
656
+ get value(): IGroup<T> | IFilterOrGroupList<T> | (T extends Date | Primitives ? DomainPrimitive<T> : T);
657
+ get group(): IGroup<T> | {
658
+ conjunction: string;
659
+ children: IFilterOrGroupList<T>;
660
+ } | {
661
+ conjunction: string;
662
+ children: (T extends Date | Primitives ? DomainPrimitive<T> : T)[];
663
+ };
664
+ getSpec(): Option<BaseFilterSpecification>;
665
+ toJSON(): IGroup<T> | IFilterOrGroupList<T> | (T extends Date | Primitives ? DomainPrimitive<T> : T);
666
+ }
667
+ //#endregion
668
+ //#region src/outbox.d.ts
669
+ interface IOutboxService<DO extends AggregateRoot<any>> {
670
+ save(d: DO): Promise<void>;
671
+ saveMany(d: DO[]): Promise<void>;
672
+ sendToKafka(d: DO): Promise<void>;
673
+ sendToKafkaMany(d: DO[]): Promise<void>;
674
+ }
675
+ //#endregion
676
+ //#region src/pagination.d.ts
677
+ declare const paginationSchema: z.ZodObject<{
678
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
679
+ offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
680
+ }, z.core.$strip>;
681
+ type IPagination = z.infer<typeof paginationSchema>;
682
+ declare const paginatedResponseSchema: z.ZodObject<{
683
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
684
+ offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
685
+ total: z.ZodNumber;
686
+ }, z.core.$strip>;
687
+ //#endregion
688
+ //#region src/query.d.ts
689
+ declare abstract class Query {}
690
+ //#endregion
691
+ //#region src/query-bus.d.ts
692
+ interface IQueryBus<TQuery extends Query = Query> {
693
+ execute<TResult>(command: TQuery): Promise<TResult>;
694
+ }
695
+ //#endregion
696
+ //#region src/query-handler.d.ts
697
+ interface IQueryHandler<TQuery extends Query, TResult> {
698
+ execute(query: TQuery): Promise<TResult>;
699
+ }
700
+ //#endregion
701
+ //#region src/sort.d.ts
702
+ declare const sortingSchema: z.ZodRecord<z.ZodString, z.ZodEnum<{
703
+ ASC: "ASC";
704
+ DESC: "DESC";
705
+ }>>;
706
+ type ISorting = z.infer<typeof sortingSchema>;
707
+ //#endregion
708
+ //#region src/repository.d.ts
709
+ interface IRepositoryOption {
710
+ pagination?: IPagination;
711
+ sorting?: ISorting;
712
+ }
713
+ interface PaginatedRepositoryMethodResult<T extends unknown> {
714
+ data: T[];
715
+ total: number;
716
+ limit: number;
717
+ offset: number;
718
+ }
719
+ //#endregion
720
+ //#region src/uow.d.ts
721
+ interface IUnitOfWork<T = any> {
722
+ begin(): Promise<void>;
723
+ commit(): Promise<void>;
724
+ rollback(): Promise<void>;
725
+ conn(): T;
726
+ }
727
+ //#endregion
728
+ //#region src/utils.d.ts
729
+ declare function convertPropsToObject(props: any): any;
730
+ //#endregion
731
+ //#region src/value-objects/boolean.vo.d.ts
732
+ declare class BoolVO extends ValueObject<boolean> {
733
+ constructor(value: boolean);
734
+ get value(): boolean;
735
+ static True(): BoolVO;
736
+ static False(): BoolVO;
737
+ }
738
+ //#endregion
739
+ //#region src/value-objects/date.vo.d.ts
740
+ declare class DateVO extends ValueObject<Date> {
741
+ constructor(value: Date | string | number);
742
+ get value(): Date;
743
+ static now(): DateVO;
744
+ }
745
+ //#endregion
746
+ //#region src/value-objects/id.vo.d.ts
747
+ declare abstract class ID extends ValueObject<number> {
748
+ constructor(value: number);
749
+ get value(): number;
750
+ }
751
+ //#endregion
752
+ //#region src/value-objects/nanoid.vo.d.ts
753
+ declare abstract class NanoID extends ID {
754
+ private static ALPHABETS;
755
+ static createId(prefix?: string, size?: number): string;
756
+ get value(): number;
757
+ }
758
+ //#endregion
759
+ //#region src/value-objects/string.vo.d.ts
760
+ declare class StringVO extends ValueObject<string> {
761
+ constructor(value: string);
762
+ get value(): string;
763
+ static empty(): StringVO;
764
+ }
765
+ //#endregion
766
+ export { $between, $contains, $end_eq, $end_gt, $end_gte, $end_lt, $end_lte, $end_neq, $ends_with, $eq, $gt, $gte, $has_file_extension, $has_file_type, $in, $is_empty, $is_false, $is_me, $is_not_empty, $is_not_me, $is_not_today, $is_root, $is_today, $is_tomorrow, $is_true, $is_yesterday, $lt, $lte, $neq, $nin, $not_contains, $regex, $start_eq, $start_gt, $start_gte, $start_lt, $start_lte, $start_neq, $starts_with, AggregateRoot, BaseEvent, BaseFilterSpecification, BoolVO, Command, CommandProps, CompositeSpecification, DateBetween, DateEqual, DateFieldValue, DateGreaterThan, DateGreaterThanOrEqual, DateIsToday, DateIsTomorrow, DateIsYesterday, DateLessThan, DateLessThanOrEqual, DateVO, DomainPrimitive, ExceptionBase, FieldValueBase, ICommandBus, ICommandHandler, IConjunction, ID, IDateFieldValue, IDateFilter, IDateFilterOperator, IDateFilterValue, IEvent, IEventHandler, IEventJSON, IFieldValueVisitor, IFilter, IFilterBaseVisitor, IFilterOrGroup, IFilterOrGroupList, IFilters, IGroup, INumberFieldValue, INumberFilter, INumberFilterOperators, INumberFilterValue, IOperator, IOutboxService, IPagination, IQueryBus, IQueryHandler, IRepositoryOption, IRootFilter, ISorting, ISpecVisitor, ISpecification, IStringFieldValue, IStringFilter, IStringFilterOperator, IUnitOfWork, NanoID, NumberEmpty, NumberEqual, NumberFieldValue, NumberGreaterThan, NumberGreaterThanOrEqual, NumberLessThan, NumberLessThanOrEqual, PaginatedRepositoryMethodResult, Primitives, Query, RootFilter, SerializedException, StringContain, StringEmpty, StringEndsWith, StringEqual, StringFieldValue, StringNotEqual, StringRegex, StringStartsWith, StringVO, UnpackedFieldValue, ValueObject, and, andOptions, baseFilter, conjunctions, convertFilterSpec, convertPropsToObject, dateFieldValue, dateFilter, dateFilterOperators, dateFilterValue, eventSchema, filterOrGroupList, filterRoorFilter, isEmptyFilter, isFilter, isGroup, isOperatorWithoutValue, numberFieldValue, numberFilter, numberFilterOperators, numberFilterValue, operators, operatorsMap, operatorsWihtoutValue, or, paginatedResponseSchema, paginationSchema, rootFilter, sortingSchema, stringFieldValue, stringFilter, stringFilterOperators, stringFilterValue };
767
+ //# sourceMappingURL=index.d.mts.map