@esb-market-contracts/backend 1.0.44 → 1.0.45

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/api.d.ts +28 -0
  2. package/package.json +1 -1
  3. package/types.d.ts +20 -0
package/api.d.ts CHANGED
@@ -334,6 +334,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
334
334
  id: number;
335
335
  productId: number;
336
336
  measurementUnitId: number | null;
337
+ taxCategoryId: number | null;
337
338
  status: "active" | "archived" | "draft";
338
339
  sku: string | null;
339
340
  barcode: string | null;
@@ -359,6 +360,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
359
360
  id: number;
360
361
  productId: number;
361
362
  measurementUnitId: number | null;
363
+ taxCategoryId: number | null;
362
364
  status: "active" | "archived" | "draft";
363
365
  sku: string | null;
364
366
  barcode: string | null;
@@ -373,6 +375,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
373
375
  json: {
374
376
  productId: number;
375
377
  measurementUnitId?: number | null | undefined;
378
+ taxCategoryId?: number | null | undefined;
376
379
  status?: "active" | "archived" | "draft" | undefined;
377
380
  sku?: string | null | undefined;
378
381
  barcode?: string | null | undefined;
@@ -389,6 +392,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
389
392
  id: number;
390
393
  productId: number;
391
394
  measurementUnitId: number | null;
395
+ taxCategoryId: number | null;
392
396
  status: "active" | "archived" | "draft";
393
397
  sku: string | null;
394
398
  barcode: string | null;
@@ -425,6 +429,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
425
429
  input: {
426
430
  json: {
427
431
  measurementUnitId?: number | null | undefined;
432
+ taxCategoryId?: number | null | undefined;
428
433
  status?: "active" | "archived" | "draft" | undefined;
429
434
  sku?: string | null | undefined;
430
435
  barcode?: string | null | undefined;
@@ -470,6 +475,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
470
475
  }[];
471
476
  categoryId: number | null;
472
477
  brandId: number | null;
478
+ taxCategoryId: number | null;
473
479
  updatedAt: Date | null;
474
480
  createdAt: Date;
475
481
  };
@@ -504,6 +510,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
504
510
  }[];
505
511
  categoryId: number | null;
506
512
  brandId: number | null;
513
+ taxCategoryId: number | null;
507
514
  updatedAt: Date | null;
508
515
  createdAt: Date;
509
516
  };
@@ -518,6 +525,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
518
525
  description?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
519
526
  categoryId?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
520
527
  brandId?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
528
+ taxCategoryId?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
521
529
  images?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
522
530
  bannerImageIndex?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
523
531
  };
@@ -541,6 +549,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
541
549
  }[];
542
550
  categoryId: number | null;
543
551
  brandId: number | null;
552
+ taxCategoryId: number | null;
544
553
  updatedAt: Date | null;
545
554
  createdAt: Date;
546
555
  }[];
@@ -579,6 +588,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
579
588
  description?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
580
589
  categoryId?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
581
590
  brandId?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
591
+ taxCategoryId?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
582
592
  images?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
583
593
  bannerImageIndex?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
584
594
  productId: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue;
@@ -709,6 +719,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
709
719
  quantity: number | null;
710
720
  unitCost: string | null;
711
721
  unitCostBase: string | null;
722
+ supplierLotNumber: string | null;
723
+ expiresOn: string | null;
712
724
  updatedAt: Date | null;
713
725
  createdAt: Date;
714
726
  product: {
@@ -765,6 +777,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
765
777
  quantity: number | null;
766
778
  unitCost: string | null;
767
779
  unitCostBase: string | null;
780
+ supplierLotNumber: string | null;
781
+ expiresOn: string | null;
768
782
  updatedAt: Date | null;
769
783
  createdAt: Date;
770
784
  product: {
@@ -898,6 +912,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
898
912
  quantity: number | null;
899
913
  unitCost: string | null;
900
914
  unitCostBase: string | null;
915
+ supplierLotNumber: string | null;
916
+ expiresOn: string | null;
901
917
  updatedAt: Date | null;
902
918
  createdAt: Date;
903
919
  product: {
@@ -926,6 +942,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
926
942
  deliveryId: number;
927
943
  productVariantId: number;
928
944
  unitCost: string | null;
945
+ supplierLotNumber?: string | null | undefined;
946
+ expiresOn?: string | null | undefined;
929
947
  quantity?: number | undefined;
930
948
  };
931
949
  };
@@ -943,6 +961,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
943
961
  quantity: number | null;
944
962
  unitCost: string | null;
945
963
  unitCostBase: string | null;
964
+ supplierLotNumber: string | null;
965
+ expiresOn: string | null;
946
966
  updatedAt: Date | null;
947
967
  createdAt: Date;
948
968
  product: {
@@ -972,6 +992,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
972
992
  quantity: number | null;
973
993
  unitCost: string | null;
974
994
  unitCostBase: string | null;
995
+ supplierLotNumber: string | null;
996
+ expiresOn: string | null;
975
997
  updatedAt: Date | null;
976
998
  createdAt: Date;
977
999
  product: {
@@ -1017,6 +1039,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
1017
1039
  quantity: number | null;
1018
1040
  unitCost: string | null;
1019
1041
  unitCostBase: string | null;
1042
+ supplierLotNumber: string | null;
1043
+ expiresOn: string | null;
1020
1044
  updatedAt: Date | null;
1021
1045
  createdAt: Date;
1022
1046
  product: {
@@ -1044,6 +1068,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
1044
1068
  json: {
1045
1069
  quantity?: number | null | undefined;
1046
1070
  unitCost?: string | null | undefined;
1071
+ supplierLotNumber?: string | null | undefined;
1072
+ expiresOn?: string | null | undefined;
1047
1073
  deliveryItemId: number;
1048
1074
  };
1049
1075
  };
@@ -1060,6 +1086,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
1060
1086
  quantity: number | null;
1061
1087
  unitCost: string | null;
1062
1088
  unitCostBase: string | null;
1089
+ supplierLotNumber: string | null;
1090
+ expiresOn: string | null;
1063
1091
  updatedAt: Date | null;
1064
1092
  createdAt: Date;
1065
1093
  product: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esb-market-contracts/backend",
3
3
  "description": "Shared TypeScript contract definitions for backend.",
4
- "version": "1.0.44",
4
+ "version": "1.0.45",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/types.d.ts CHANGED
@@ -521,6 +521,8 @@ declare const deliveryItemAddPayloadSchema: z.ZodObject<{
521
521
  deliveryId: z.ZodInt;
522
522
  productVariantId: z.ZodInt;
523
523
  unitCost: z.ZodNullable<z.ZodString>;
524
+ supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
+ expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
524
526
  quantity: z.ZodOptional<z.ZodNumber>;
525
527
  }, {
526
528
  out: {};
@@ -529,6 +531,8 @@ declare const deliveryItemAddPayloadSchema: z.ZodObject<{
529
531
  declare const deliveryItemUpdatePayloadSchema: z.ZodObject<{
530
532
  quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
531
533
  unitCost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
534
+ supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
532
536
  deliveryItemId: z.ZodInt;
533
537
  }, {
534
538
  out: {};
@@ -571,6 +575,8 @@ declare const deliveryItemDetailsSchema: z.ZodObject<{
571
575
  quantity: z.ZodNullable<z.ZodNumber>;
572
576
  unitCost: z.ZodNullable<z.ZodString>;
573
577
  unitCostBase: z.ZodNullable<z.ZodString>;
578
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
579
+ expiresOn: z.ZodNullable<z.ZodISODate>;
574
580
  updatedAt: z.ZodNullable<z.ZodDate>;
575
581
  createdAt: z.ZodDate;
576
582
  product: z.ZodObject<{
@@ -612,6 +618,8 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
612
618
  quantity: z.ZodNullable<z.ZodNumber>;
613
619
  unitCost: z.ZodNullable<z.ZodString>;
614
620
  unitCostBase: z.ZodNullable<z.ZodString>;
621
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
622
+ expiresOn: z.ZodNullable<z.ZodISODate>;
615
623
  updatedAt: z.ZodNullable<z.ZodDate>;
616
624
  createdAt: z.ZodDate;
617
625
  product: z.ZodObject<{
@@ -649,6 +657,8 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
649
657
  quantity: z.ZodNullable<z.ZodNumber>;
650
658
  unitCost: z.ZodNullable<z.ZodString>;
651
659
  unitCostBase: z.ZodNullable<z.ZodString>;
660
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
661
+ expiresOn: z.ZodNullable<z.ZodISODate>;
652
662
  updatedAt: z.ZodNullable<z.ZodDate>;
653
663
  createdAt: z.ZodDate;
654
664
  product: z.ZodObject<{
@@ -706,6 +716,8 @@ declare const deliveryDetailsSchema: z.ZodObject<{
706
716
  quantity: z.ZodNullable<z.ZodNumber>;
707
717
  unitCost: z.ZodNullable<z.ZodString>;
708
718
  unitCostBase: z.ZodNullable<z.ZodString>;
719
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
720
+ expiresOn: z.ZodNullable<z.ZodISODate>;
709
721
  updatedAt: z.ZodNullable<z.ZodDate>;
710
722
  createdAt: z.ZodDate;
711
723
  product: z.ZodObject<{
@@ -991,6 +1003,7 @@ declare const productVariantSchema: z.ZodObject<{
991
1003
  id: z.ZodInt;
992
1004
  productId: z.ZodInt;
993
1005
  measurementUnitId: z.ZodNullable<z.ZodInt>;
1006
+ taxCategoryId: z.ZodNullable<z.ZodInt>;
994
1007
  status: z.ZodEnum<{
995
1008
  active: "active";
996
1009
  archived: "archived";
@@ -1034,6 +1047,7 @@ declare const productSchema: z.ZodObject<{
1034
1047
  }, z.core.$strip>>;
1035
1048
  categoryId: z.ZodNullable<z.ZodInt>;
1036
1049
  brandId: z.ZodNullable<z.ZodInt>;
1050
+ taxCategoryId: z.ZodNullable<z.ZodInt>;
1037
1051
  updatedAt: z.ZodNullable<z.ZodDate>;
1038
1052
  createdAt: z.ZodDate;
1039
1053
  }, z.core.$strip>;
@@ -1103,6 +1117,7 @@ declare const productCreatePayloadSchema: z.ZodObject<{
1103
1117
  }> & z.core.$partial, z.ZodString>>, unknown>>;
1104
1118
  categoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1105
1119
  brandId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1120
+ taxCategoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1106
1121
  images: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodFile>, unknown>>;
1107
1122
  bannerImageIndex: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1108
1123
  }, {
@@ -1129,6 +1144,7 @@ declare const productUpdatePayloadSchema: z.ZodObject<{
1129
1144
  }> & z.core.$partial, z.ZodString>>, unknown>>;
1130
1145
  categoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1131
1146
  brandId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1147
+ taxCategoryId: z.ZodOptional<z.ZodPreprocess<z.ZodUnion<readonly [z.ZodNull, z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>]>, unknown>>;
1132
1148
  images: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodFile>, unknown>>;
1133
1149
  bannerImageIndex: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1134
1150
  productId: z.ZodPipe<z.ZodCoercedNumber<unknown>, z.ZodInt>;
@@ -1175,6 +1191,7 @@ declare const productVariantDeletePayloadSchema: z.ZodObject<{
1175
1191
  declare const productVariantCreatePayloadSchema: z.ZodObject<{
1176
1192
  productId: z.ZodInt;
1177
1193
  measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1194
+ taxCategoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1178
1195
  status: z.ZodOptional<z.ZodEnum<{
1179
1196
  active: "active";
1180
1197
  archived: "archived";
@@ -1193,6 +1210,7 @@ declare const productVariantCreatePayloadSchema: z.ZodObject<{
1193
1210
  }>;
1194
1211
  declare const productVariantUpdatePayloadSchema: z.ZodObject<{
1195
1212
  measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1213
+ taxCategoryId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1196
1214
  status: z.ZodOptional<z.ZodEnum<{
1197
1215
  active: "active";
1198
1216
  archived: "archived";
@@ -1231,6 +1249,8 @@ declare const deliveryItemSchema: z.ZodObject<{
1231
1249
  quantity: z.ZodNullable<z.ZodNumber>;
1232
1250
  unitCost: z.ZodNullable<z.ZodString>;
1233
1251
  unitCostBase: z.ZodNullable<z.ZodString>;
1252
+ supplierLotNumber: z.ZodNullable<z.ZodString>;
1253
+ expiresOn: z.ZodNullable<z.ZodISODate>;
1234
1254
  updatedAt: z.ZodNullable<z.ZodDate>;
1235
1255
  createdAt: z.ZodDate;
1236
1256
  }, z.core.$strip>;