@esb-market-contracts/backend 1.0.35 → 1.0.36
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/api.d.ts +36 -81
- package/package.json +1 -1
- package/types.d.ts +27 -88
package/api.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import "hono";
|
|
|
3
3
|
import "ky";
|
|
4
4
|
import "hono/http-exception";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
+
import "postgres";
|
|
6
7
|
import "drizzle-orm";
|
|
7
8
|
//#region src/app/flows/global/authentication/authentication.middleware.d.ts
|
|
8
9
|
type VariablesWithActor = {
|
|
@@ -630,7 +631,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
630
631
|
"/finance/exchange-rates/dates/search": {
|
|
631
632
|
$post: {
|
|
632
633
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
633
|
-
dates:
|
|
634
|
+
dates: string[];
|
|
634
635
|
total: number;
|
|
635
636
|
}>;
|
|
636
637
|
outputFormat: "json";
|
|
@@ -639,7 +640,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
639
640
|
json: {
|
|
640
641
|
where?: {
|
|
641
642
|
currencyId?: number | undefined;
|
|
642
|
-
validFromDate?:
|
|
643
|
+
validFromDate?: string | undefined;
|
|
643
644
|
} | undefined;
|
|
644
645
|
pagination: {
|
|
645
646
|
offset?: unknown;
|
|
@@ -657,7 +658,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
657
658
|
id: number;
|
|
658
659
|
currencyId: number;
|
|
659
660
|
rate: string;
|
|
660
|
-
validFromDate:
|
|
661
|
+
validFromDate: string;
|
|
661
662
|
}[];
|
|
662
663
|
total: number;
|
|
663
664
|
}>;
|
|
@@ -667,7 +668,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
667
668
|
json: {
|
|
668
669
|
where?: {
|
|
669
670
|
currencyId?: number | undefined;
|
|
670
|
-
validFromDate?:
|
|
671
|
+
validFromDate?: string | undefined;
|
|
671
672
|
} | undefined;
|
|
672
673
|
pagination: {
|
|
673
674
|
offset?: unknown;
|
|
@@ -695,6 +696,9 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
695
696
|
currencyId: number;
|
|
696
697
|
status: "draft" | "posted" | "reversed";
|
|
697
698
|
notes: string | null;
|
|
699
|
+
exchangeRateId: number | null;
|
|
700
|
+
exchangeRate: string | null;
|
|
701
|
+
exchangeRateValidFromDate: string | null;
|
|
698
702
|
postedAt: Date | null;
|
|
699
703
|
updatedAt: Date | null;
|
|
700
704
|
createdAt: Date;
|
|
@@ -704,6 +708,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
704
708
|
productVariantId: number;
|
|
705
709
|
quantity: number;
|
|
706
710
|
unitCost: string | null;
|
|
711
|
+
unitCostBase: string | null;
|
|
707
712
|
updatedAt: Date | null;
|
|
708
713
|
createdAt: Date;
|
|
709
714
|
}[];
|
|
@@ -730,6 +735,9 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
730
735
|
currencyId: number;
|
|
731
736
|
status: "draft" | "posted" | "reversed";
|
|
732
737
|
notes: string | null;
|
|
738
|
+
exchangeRateId: number | null;
|
|
739
|
+
exchangeRate: string | null;
|
|
740
|
+
exchangeRateValidFromDate: string | null;
|
|
733
741
|
postedAt: Date | null;
|
|
734
742
|
updatedAt: Date | null;
|
|
735
743
|
createdAt: Date;
|
|
@@ -739,6 +747,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
739
747
|
productVariantId: number;
|
|
740
748
|
quantity: number;
|
|
741
749
|
unitCost: string | null;
|
|
750
|
+
unitCostBase: string | null;
|
|
742
751
|
updatedAt: Date | null;
|
|
743
752
|
createdAt: Date;
|
|
744
753
|
}[];
|
|
@@ -786,6 +795,19 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
786
795
|
};
|
|
787
796
|
};
|
|
788
797
|
};
|
|
798
|
+
} & {
|
|
799
|
+
"/operations/deliveries/post": {
|
|
800
|
+
$post: {
|
|
801
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
|
|
802
|
+
outputFormat: "json";
|
|
803
|
+
status: 200;
|
|
804
|
+
input: {
|
|
805
|
+
json: {
|
|
806
|
+
deliveryId: number;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
};
|
|
789
811
|
} & {
|
|
790
812
|
"/operations/deliveries/item/add": {
|
|
791
813
|
$post: {
|
|
@@ -796,6 +818,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
796
818
|
productVariantId: number;
|
|
797
819
|
quantity: number;
|
|
798
820
|
unitCost: string | null;
|
|
821
|
+
unitCostBase: string | null;
|
|
799
822
|
updatedAt: Date | null;
|
|
800
823
|
createdAt: Date;
|
|
801
824
|
};
|
|
@@ -822,6 +845,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
822
845
|
productVariantId: number;
|
|
823
846
|
quantity: number;
|
|
824
847
|
unitCost: string | null;
|
|
848
|
+
unitCostBase: string | null;
|
|
825
849
|
updatedAt: Date | null;
|
|
826
850
|
createdAt: Date;
|
|
827
851
|
};
|
|
@@ -847,6 +871,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
847
871
|
productVariantId: number;
|
|
848
872
|
quantity: number;
|
|
849
873
|
unitCost: string | null;
|
|
874
|
+
unitCostBase: string | null;
|
|
850
875
|
updatedAt: Date | null;
|
|
851
876
|
createdAt: Date;
|
|
852
877
|
};
|
|
@@ -868,83 +893,13 @@ declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
|
868
893
|
type AuditLogSource = (typeof auditLogSourcesArray)[number];
|
|
869
894
|
//#endregion
|
|
870
895
|
//#region src/app/domain/(audit)/audit-logs/audit-logs.schemas.d.ts
|
|
871
|
-
declare const auditLogSchema:
|
|
872
|
-
id:
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
notNull: true;
|
|
879
|
-
hasDefault: true;
|
|
880
|
-
isPrimaryKey: false;
|
|
881
|
-
isAutoincrement: false;
|
|
882
|
-
hasRuntimeDefault: false;
|
|
883
|
-
enumValues: undefined;
|
|
884
|
-
identity: undefined;
|
|
885
|
-
generated: undefined;
|
|
886
|
-
}>;
|
|
887
|
-
event: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, "brand.created" | "brand.updated" | "category.activated" | "category.archived" | "category.created" | "category.updated" | "country.created" | "country.updated" | "customer.created" | "customer.updated" | "delivery.created" | "delivery.deleted" | "delivery.itemAdded" | "delivery.itemDeleted" | "delivery.itemUpdated" | "delivery.updated" | "product.created" | "product.deleted" | "product.updated" | "productVariant.created" | "productVariant.deleted" | "productVariant.updated" | "supplier.activated" | "supplier.archived" | "supplier.created" | "supplier.updated" | "warehouse.activated" | "warehouse.archived" | "warehouse.created" | "warehouse.updated">, {
|
|
888
|
-
name: string;
|
|
889
|
-
tableName: "audit_logs";
|
|
890
|
-
dataType: "string";
|
|
891
|
-
data: "brand.created" | "brand.updated" | "category.activated" | "category.archived" | "category.created" | "category.updated" | "country.created" | "country.updated" | "customer.created" | "customer.updated" | "delivery.created" | "delivery.deleted" | "delivery.itemAdded" | "delivery.itemDeleted" | "delivery.itemUpdated" | "delivery.updated" | "product.created" | "product.deleted" | "product.updated" | "productVariant.created" | "productVariant.deleted" | "productVariant.updated" | "supplier.activated" | "supplier.archived" | "supplier.created" | "supplier.updated" | "warehouse.activated" | "warehouse.archived" | "warehouse.created" | "warehouse.updated";
|
|
892
|
-
driverParam: string;
|
|
893
|
-
notNull: true;
|
|
894
|
-
hasDefault: false;
|
|
895
|
-
isPrimaryKey: false;
|
|
896
|
-
isAutoincrement: false;
|
|
897
|
-
hasRuntimeDefault: false;
|
|
898
|
-
enumValues: undefined;
|
|
899
|
-
identity: undefined;
|
|
900
|
-
generated: undefined;
|
|
901
|
-
}>;
|
|
902
|
-
actorEmployeeId: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").PgIntegerBuilder, {
|
|
903
|
-
name: string;
|
|
904
|
-
tableName: "audit_logs";
|
|
905
|
-
dataType: "number int32";
|
|
906
|
-
data: number;
|
|
907
|
-
driverParam: string | number;
|
|
908
|
-
notNull: false;
|
|
909
|
-
hasDefault: false;
|
|
910
|
-
isPrimaryKey: false;
|
|
911
|
-
isAutoincrement: false;
|
|
912
|
-
hasRuntimeDefault: false;
|
|
913
|
-
enumValues: undefined;
|
|
914
|
-
identity: undefined;
|
|
915
|
-
generated: undefined;
|
|
916
|
-
}>;
|
|
917
|
-
payload: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>, {
|
|
918
|
-
name: string;
|
|
919
|
-
tableName: "audit_logs";
|
|
920
|
-
dataType: "object json";
|
|
921
|
-
data: unknown;
|
|
922
|
-
driverParam: unknown;
|
|
923
|
-
notNull: true;
|
|
924
|
-
hasDefault: false;
|
|
925
|
-
isPrimaryKey: false;
|
|
926
|
-
isAutoincrement: false;
|
|
927
|
-
hasRuntimeDefault: false;
|
|
928
|
-
enumValues: undefined;
|
|
929
|
-
identity: undefined;
|
|
930
|
-
generated: undefined;
|
|
931
|
-
}>;
|
|
932
|
-
createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
933
|
-
name: string;
|
|
934
|
-
tableName: "audit_logs";
|
|
935
|
-
dataType: "object date";
|
|
936
|
-
data: Date;
|
|
937
|
-
driverParam: string;
|
|
938
|
-
notNull: true;
|
|
939
|
-
hasDefault: true;
|
|
940
|
-
isPrimaryKey: false;
|
|
941
|
-
isAutoincrement: false;
|
|
942
|
-
hasRuntimeDefault: false;
|
|
943
|
-
enumValues: undefined;
|
|
944
|
-
identity: undefined;
|
|
945
|
-
generated: undefined;
|
|
946
|
-
}>;
|
|
947
|
-
}, undefined, undefined>;
|
|
896
|
+
declare const auditLogSchema: z.ZodObject<{
|
|
897
|
+
id: z.ZodInt;
|
|
898
|
+
event: z.ZodString;
|
|
899
|
+
actorEmployeeId: z.ZodNullable<z.ZodInt>;
|
|
900
|
+
payload: z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>;
|
|
901
|
+
createdAt: z.ZodDate;
|
|
902
|
+
}, z.core.$strip>;
|
|
948
903
|
//#endregion
|
|
949
904
|
//#region src/app/flows/(audit)/audit/audit.schemas.d.ts
|
|
950
905
|
type AuditLogResult = z.infer<typeof auditLogSchema> & {
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -264,83 +264,13 @@ type MeasurementUnitListResult = {
|
|
|
264
264
|
};
|
|
265
265
|
//#endregion
|
|
266
266
|
//#region src/app/domain/(audit)/audit-logs/audit-logs.schemas.d.ts
|
|
267
|
-
declare const auditLogSchema:
|
|
268
|
-
id:
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
notNull: true;
|
|
275
|
-
hasDefault: true;
|
|
276
|
-
isPrimaryKey: false;
|
|
277
|
-
isAutoincrement: false;
|
|
278
|
-
hasRuntimeDefault: false;
|
|
279
|
-
enumValues: undefined;
|
|
280
|
-
identity: undefined;
|
|
281
|
-
generated: undefined;
|
|
282
|
-
}>;
|
|
283
|
-
event: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, "brand.created" | "brand.updated" | "category.activated" | "category.archived" | "category.created" | "category.updated" | "country.created" | "country.updated" | "customer.created" | "customer.updated" | "delivery.created" | "delivery.deleted" | "delivery.itemAdded" | "delivery.itemDeleted" | "delivery.itemUpdated" | "delivery.updated" | "product.created" | "product.deleted" | "product.updated" | "productVariant.created" | "productVariant.deleted" | "productVariant.updated" | "supplier.activated" | "supplier.archived" | "supplier.created" | "supplier.updated" | "warehouse.activated" | "warehouse.archived" | "warehouse.created" | "warehouse.updated">, {
|
|
284
|
-
name: string;
|
|
285
|
-
tableName: "audit_logs";
|
|
286
|
-
dataType: "string";
|
|
287
|
-
data: "brand.created" | "brand.updated" | "category.activated" | "category.archived" | "category.created" | "category.updated" | "country.created" | "country.updated" | "customer.created" | "customer.updated" | "delivery.created" | "delivery.deleted" | "delivery.itemAdded" | "delivery.itemDeleted" | "delivery.itemUpdated" | "delivery.updated" | "product.created" | "product.deleted" | "product.updated" | "productVariant.created" | "productVariant.deleted" | "productVariant.updated" | "supplier.activated" | "supplier.archived" | "supplier.created" | "supplier.updated" | "warehouse.activated" | "warehouse.archived" | "warehouse.created" | "warehouse.updated";
|
|
288
|
-
driverParam: string;
|
|
289
|
-
notNull: true;
|
|
290
|
-
hasDefault: false;
|
|
291
|
-
isPrimaryKey: false;
|
|
292
|
-
isAutoincrement: false;
|
|
293
|
-
hasRuntimeDefault: false;
|
|
294
|
-
enumValues: undefined;
|
|
295
|
-
identity: undefined;
|
|
296
|
-
generated: undefined;
|
|
297
|
-
}>;
|
|
298
|
-
actorEmployeeId: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").PgIntegerBuilder, {
|
|
299
|
-
name: string;
|
|
300
|
-
tableName: "audit_logs";
|
|
301
|
-
dataType: "number int32";
|
|
302
|
-
data: number;
|
|
303
|
-
driverParam: string | number;
|
|
304
|
-
notNull: false;
|
|
305
|
-
hasDefault: false;
|
|
306
|
-
isPrimaryKey: false;
|
|
307
|
-
isAutoincrement: false;
|
|
308
|
-
hasRuntimeDefault: false;
|
|
309
|
-
enumValues: undefined;
|
|
310
|
-
identity: undefined;
|
|
311
|
-
generated: undefined;
|
|
312
|
-
}>;
|
|
313
|
-
payload: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>, {
|
|
314
|
-
name: string;
|
|
315
|
-
tableName: "audit_logs";
|
|
316
|
-
dataType: "object json";
|
|
317
|
-
data: unknown;
|
|
318
|
-
driverParam: unknown;
|
|
319
|
-
notNull: true;
|
|
320
|
-
hasDefault: false;
|
|
321
|
-
isPrimaryKey: false;
|
|
322
|
-
isAutoincrement: false;
|
|
323
|
-
hasRuntimeDefault: false;
|
|
324
|
-
enumValues: undefined;
|
|
325
|
-
identity: undefined;
|
|
326
|
-
generated: undefined;
|
|
327
|
-
}>;
|
|
328
|
-
createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
|
|
329
|
-
name: string;
|
|
330
|
-
tableName: "audit_logs";
|
|
331
|
-
dataType: "object date";
|
|
332
|
-
data: Date;
|
|
333
|
-
driverParam: string;
|
|
334
|
-
notNull: true;
|
|
335
|
-
hasDefault: true;
|
|
336
|
-
isPrimaryKey: false;
|
|
337
|
-
isAutoincrement: false;
|
|
338
|
-
hasRuntimeDefault: false;
|
|
339
|
-
enumValues: undefined;
|
|
340
|
-
identity: undefined;
|
|
341
|
-
generated: undefined;
|
|
342
|
-
}>;
|
|
343
|
-
}, undefined, undefined>;
|
|
267
|
+
declare const auditLogSchema: z.ZodObject<{
|
|
268
|
+
id: z.ZodInt;
|
|
269
|
+
event: z.ZodString;
|
|
270
|
+
actorEmployeeId: z.ZodNullable<z.ZodInt>;
|
|
271
|
+
payload: z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>;
|
|
272
|
+
createdAt: z.ZodDate;
|
|
273
|
+
}, z.core.$strip>;
|
|
344
274
|
//#endregion
|
|
345
275
|
//#region src/app/flows/(audit)/audit/audit.enums.d.ts
|
|
346
276
|
declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
@@ -373,10 +303,7 @@ declare const auditLogSelectOneQuerySchema: z.ZodObject<{
|
|
|
373
303
|
admin: "admin";
|
|
374
304
|
backend: "backend";
|
|
375
305
|
}>;
|
|
376
|
-
},
|
|
377
|
-
out: {};
|
|
378
|
-
in: {};
|
|
379
|
-
}>;
|
|
306
|
+
}, z.core.$strip>;
|
|
380
307
|
type AuditLogSearchPayload = z.infer<typeof auditLogSearchPayloadSchema>;
|
|
381
308
|
type AuditLogResult = z.infer<typeof auditLogSchema> & {
|
|
382
309
|
source: AuditLogSource;
|
|
@@ -469,6 +396,7 @@ declare const deliveryItemSchema: z.ZodObject<{
|
|
|
469
396
|
productVariantId: z.ZodInt;
|
|
470
397
|
quantity: z.ZodNumber;
|
|
471
398
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
399
|
+
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
472
400
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
473
401
|
createdAt: z.ZodDate;
|
|
474
402
|
}, z.core.$strip>;
|
|
@@ -481,6 +409,9 @@ declare const deliverySelectOneQuerySchema: z.ZodObject<{
|
|
|
481
409
|
declare const deliveryDeletePayloadSchema: z.ZodObject<{
|
|
482
410
|
deliveryId: z.ZodInt;
|
|
483
411
|
}, z.core.$strip>;
|
|
412
|
+
declare const deliveryPostPayloadSchema: z.ZodObject<{
|
|
413
|
+
deliveryId: z.ZodInt;
|
|
414
|
+
}, z.core.$strip>;
|
|
484
415
|
declare const deliveryCreatePayloadSchema: z.ZodObject<{
|
|
485
416
|
supplierId: z.ZodInt;
|
|
486
417
|
warehouseId: z.ZodInt;
|
|
@@ -532,6 +463,9 @@ declare const deliveryDetailsSchema: z.ZodObject<{
|
|
|
532
463
|
reversed: "reversed";
|
|
533
464
|
}>;
|
|
534
465
|
notes: z.ZodNullable<z.ZodString>;
|
|
466
|
+
exchangeRateId: z.ZodNullable<z.ZodInt>;
|
|
467
|
+
exchangeRate: z.ZodNullable<z.ZodString>;
|
|
468
|
+
exchangeRateValidFromDate: z.ZodNullable<z.ZodNullable<z.ZodISODate>>;
|
|
535
469
|
postedAt: z.ZodNullable<z.ZodDate>;
|
|
536
470
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
537
471
|
createdAt: z.ZodDate;
|
|
@@ -541,6 +475,7 @@ declare const deliveryDetailsSchema: z.ZodObject<{
|
|
|
541
475
|
productVariantId: z.ZodInt;
|
|
542
476
|
quantity: z.ZodNumber;
|
|
543
477
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
478
|
+
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
544
479
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
545
480
|
createdAt: z.ZodDate;
|
|
546
481
|
}, z.core.$strip>>;
|
|
@@ -549,6 +484,7 @@ type DeliverySelectOneQuery = z.infer<typeof deliverySelectOneQuerySchema>;
|
|
|
549
484
|
type DeliveryCreatePayload = z.infer<typeof deliveryCreatePayloadSchema>;
|
|
550
485
|
type DeliveryUpdatePayload = z.infer<typeof deliveryUpdatePayloadSchema>;
|
|
551
486
|
type DeliveryDeletePayload = z.infer<typeof deliveryDeletePayloadSchema>;
|
|
487
|
+
type DeliveryPostPayload = z.infer<typeof deliveryPostPayloadSchema>;
|
|
552
488
|
type DeliveryItemAddPayload = z.infer<typeof deliveryItemAddPayloadSchema>;
|
|
553
489
|
type DeliveryItemUpdatePayload = z.infer<typeof deliveryItemUpdatePayloadSchema>;
|
|
554
490
|
type DeliveryItemDeletePayload = z.infer<typeof deliveryItemDeletePayloadSchema>;
|
|
@@ -744,7 +680,7 @@ declare const exchangeRateSchema: z.ZodObject<{
|
|
|
744
680
|
id: z.ZodInt;
|
|
745
681
|
currencyId: z.ZodInt;
|
|
746
682
|
rate: z.ZodString;
|
|
747
|
-
validFromDate: z.
|
|
683
|
+
validFromDate: z.ZodISODate;
|
|
748
684
|
}, z.core.$strip>;
|
|
749
685
|
type ExchangeRate = z.infer<typeof exchangeRateSchema>;
|
|
750
686
|
//#endregion
|
|
@@ -752,16 +688,16 @@ type ExchangeRate = z.infer<typeof exchangeRateSchema>;
|
|
|
752
688
|
declare const exchangeRateSearchOptionsSchema: z.ZodObject<{
|
|
753
689
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
754
690
|
currencyId: z.ZodOptional<z.ZodInt>;
|
|
755
|
-
validFromDate: z.ZodOptional<z.
|
|
691
|
+
validFromDate: z.ZodOptional<z.ZodISODate>;
|
|
756
692
|
}, z.core.$strip>, z.ZodTransform<{
|
|
757
693
|
currencyId: number;
|
|
758
|
-
validFromDate?:
|
|
694
|
+
validFromDate?: string | undefined;
|
|
759
695
|
} | {
|
|
760
696
|
currencyId?: number | undefined;
|
|
761
|
-
validFromDate:
|
|
697
|
+
validFromDate: string;
|
|
762
698
|
}, {
|
|
763
699
|
currencyId?: number | undefined;
|
|
764
|
-
validFromDate?:
|
|
700
|
+
validFromDate?: string | undefined;
|
|
765
701
|
}>>>;
|
|
766
702
|
pagination: z.ZodObject<{
|
|
767
703
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -774,7 +710,7 @@ type ExchangeRateSearchResult = {
|
|
|
774
710
|
total: number;
|
|
775
711
|
};
|
|
776
712
|
type ExchangeRateDateSearchResult = {
|
|
777
|
-
dates:
|
|
713
|
+
dates: string[];
|
|
778
714
|
total: number;
|
|
779
715
|
};
|
|
780
716
|
type CurrencyListResult = {
|
|
@@ -1044,10 +980,13 @@ declare const deliverySchema: z.ZodObject<{
|
|
|
1044
980
|
reversed: "reversed";
|
|
1045
981
|
}>;
|
|
1046
982
|
notes: z.ZodNullable<z.ZodString>;
|
|
983
|
+
exchangeRateId: z.ZodNullable<z.ZodInt>;
|
|
984
|
+
exchangeRate: z.ZodNullable<z.ZodString>;
|
|
985
|
+
exchangeRateValidFromDate: z.ZodNullable<z.ZodNullable<z.ZodISODate>>;
|
|
1047
986
|
postedAt: z.ZodNullable<z.ZodDate>;
|
|
1048
987
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
1049
988
|
createdAt: z.ZodDate;
|
|
1050
989
|
}, z.core.$strip>;
|
|
1051
990
|
type Delivery = z.infer<typeof deliverySchema>;
|
|
1052
991
|
//#endregion
|
|
1053
|
-
export type { AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandUpdatePayload, Category, CategoryCreatePayload, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategoryUpdatePayload, Country, CountryCreatePayload, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Currency, CurrencyListResult, Customer, CustomerCreatePayload, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload, Delivery, DeliveryCreatePayload, DeliveryCreateResult, DeliveryDeletePayload, DeliveryDetails, DeliveryItem, DeliveryItemAddPayload, DeliveryItemDeletePayload, DeliveryItemResult, DeliveryItemUpdatePayload, DeliverySelectOneQuery, DeliverySelectOneResult, DeliveryUpdatePayload, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateSearchOptions, ExchangeRateSearchResult, MeasurementUnit, MeasurementUnitListResult, Product, ProductCreatePayload, ProductCreateResult, ProductDeletePayload, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductUpdatePayload, ProductVariant, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantUpdatePayload, Supplier, SupplierCreatePayload, SupplierSearchOptions, SupplierSearchResult, SupplierSelectOneQuery, SupplierSwitchStatusPayload, SupplierUpdatePayload, Warehouse, WarehouseCreatePayload, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
|
|
992
|
+
export type { AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandUpdatePayload, Category, CategoryCreatePayload, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategoryUpdatePayload, Country, CountryCreatePayload, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Currency, CurrencyListResult, Customer, CustomerCreatePayload, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload, Delivery, DeliveryCreatePayload, DeliveryCreateResult, DeliveryDeletePayload, DeliveryDetails, DeliveryItem, DeliveryItemAddPayload, DeliveryItemDeletePayload, DeliveryItemResult, DeliveryItemUpdatePayload, DeliveryPostPayload, DeliverySelectOneQuery, DeliverySelectOneResult, DeliveryUpdatePayload, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateSearchOptions, ExchangeRateSearchResult, MeasurementUnit, MeasurementUnitListResult, Product, ProductCreatePayload, ProductCreateResult, ProductDeletePayload, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductUpdatePayload, ProductVariant, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantUpdatePayload, Supplier, SupplierCreatePayload, SupplierSearchOptions, SupplierSearchResult, SupplierSelectOneQuery, SupplierSwitchStatusPayload, SupplierUpdatePayload, Warehouse, WarehouseCreatePayload, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
|