@esb-market-contracts/backend 1.0.55 → 1.0.57

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 +13 -13
  2. package/package.json +1 -1
  3. package/types.d.ts +41 -34
package/api.d.ts CHANGED
@@ -337,10 +337,10 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
337
337
  taxCategoryId: number | null;
338
338
  status: "active" | "archived" | "draft";
339
339
  sku: string | null;
340
- barcode: string | null;
341
340
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
342
341
  updatedAt: Date | null;
343
342
  createdAt: Date;
343
+ barcodes: string[];
344
344
  };
345
345
  }>;
346
346
  outputFormat: "json";
@@ -363,10 +363,10 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
363
363
  taxCategoryId: number | null;
364
364
  status: "active" | "archived" | "draft";
365
365
  sku: string | null;
366
- barcode: string | null;
367
366
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
368
367
  updatedAt: Date | null;
369
368
  createdAt: Date;
369
+ barcodes: string[];
370
370
  };
371
371
  }>;
372
372
  outputFormat: "json";
@@ -378,8 +378,8 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
378
378
  taxCategoryId?: number | null | undefined;
379
379
  status?: "active" | "archived" | "draft" | undefined;
380
380
  sku?: string | null | undefined;
381
- barcode?: string | null | undefined;
382
381
  name?: Partial<Record<"en" | "ka" | "ru", string>> | null | undefined;
382
+ barcodes: string[];
383
383
  };
384
384
  };
385
385
  };
@@ -395,10 +395,10 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
395
395
  taxCategoryId: number | null;
396
396
  status: "active" | "archived" | "draft";
397
397
  sku: string | null;
398
- barcode: string | null;
399
398
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
400
399
  updatedAt: Date | null;
401
400
  createdAt: Date;
401
+ barcodes: string[];
402
402
  }[];
403
403
  total: number;
404
404
  }>;
@@ -432,9 +432,9 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
432
432
  taxCategoryId?: number | null | undefined;
433
433
  status?: "active" | "archived" | "draft" | undefined;
434
434
  sku?: string | null | undefined;
435
- barcode?: string | null | undefined;
436
435
  name?: Partial<Record<"en" | "ka" | "ru", string>> | null | undefined;
437
436
  productVariantId: number;
437
+ barcodes?: string[] | undefined;
438
438
  };
439
439
  };
440
440
  };
@@ -735,8 +735,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
735
735
  productVariant: {
736
736
  id: number;
737
737
  sku: string | null;
738
- barcode: string | null;
739
738
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
739
+ barcodes: string[];
740
740
  };
741
741
  measurementUnit: {
742
742
  id: number;
@@ -801,8 +801,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
801
801
  productVariant: {
802
802
  id: number;
803
803
  sku: string | null;
804
- barcode: string | null;
805
804
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
805
+ barcodes: string[];
806
806
  };
807
807
  measurementUnit: {
808
808
  id: number;
@@ -944,8 +944,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
944
944
  productVariant: {
945
945
  id: number;
946
946
  sku: string | null;
947
- barcode: string | null;
948
947
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
948
+ barcodes: string[];
949
949
  };
950
950
  measurementUnit: {
951
951
  id: number;
@@ -1002,8 +1002,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
1002
1002
  productVariant: {
1003
1003
  id: number;
1004
1004
  sku: string | null;
1005
- barcode: string | null;
1006
1005
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
1006
+ barcodes: string[];
1007
1007
  };
1008
1008
  measurementUnit: {
1009
1009
  id: number;
@@ -1042,8 +1042,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
1042
1042
  productVariant: {
1043
1043
  id: number;
1044
1044
  sku: string | null;
1045
- barcode: string | null;
1046
1045
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
1046
+ barcodes: string[];
1047
1047
  };
1048
1048
  measurementUnit: {
1049
1049
  id: number;
@@ -1098,8 +1098,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
1098
1098
  productVariant: {
1099
1099
  id: number;
1100
1100
  sku: string | null;
1101
- barcode: string | null;
1102
1101
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
1102
+ barcodes: string[];
1103
1103
  };
1104
1104
  measurementUnit: {
1105
1105
  id: number;
@@ -1155,8 +1155,8 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
1155
1155
  productVariant: {
1156
1156
  id: number;
1157
1157
  sku: string | null;
1158
- barcode: string | null;
1159
1158
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
1159
+ barcodes: string[];
1160
1160
  };
1161
1161
  measurementUnit: {
1162
1162
  id: number;
@@ -1514,8 +1514,8 @@ declare const stockBalancesRouter: import("hono/hono-base").HonoBase<{
1514
1514
  productVariant: {
1515
1515
  id: number;
1516
1516
  sku: string | null;
1517
- barcode: string | null;
1518
1517
  name: Partial<Record<"en" | "ka" | "ru", string>> | null;
1518
+ barcodes: string[];
1519
1519
  };
1520
1520
  measurementUnit: {
1521
1521
  id: number;
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.55",
4
+ "version": "1.0.57",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/types.d.ts CHANGED
@@ -571,12 +571,12 @@ declare const deliveryItemCatalogDetailsSchema: z.ZodObject<{
571
571
  productVariant: z.ZodObject<{
572
572
  id: z.ZodInt;
573
573
  sku: z.ZodNullable<z.ZodString>;
574
- barcode: z.ZodNullable<z.ZodString>;
575
574
  name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
576
575
  en: "en";
577
576
  ka: "ka";
578
577
  ru: "ru";
579
578
  }> & z.core.$partial, z.ZodString>>;
579
+ barcodes: z.ZodArray<z.ZodString>;
580
580
  }, z.core.$strip>;
581
581
  measurementUnit: z.ZodObject<{
582
582
  id: z.ZodInt;
@@ -613,12 +613,12 @@ declare const deliveryItemDetailsSchema: z.ZodObject<{
613
613
  productVariant: z.ZodObject<{
614
614
  id: z.ZodInt;
615
615
  sku: z.ZodNullable<z.ZodString>;
616
- barcode: z.ZodNullable<z.ZodString>;
617
616
  name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
618
617
  en: "en";
619
618
  ka: "ka";
620
619
  ru: "ru";
621
620
  }> & z.core.$partial, z.ZodString>>;
621
+ barcodes: z.ZodArray<z.ZodString>;
622
622
  }, z.core.$strip>;
623
623
  measurementUnit: z.ZodObject<{
624
624
  id: z.ZodInt;
@@ -665,12 +665,12 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
665
665
  productVariant: z.ZodObject<{
666
666
  id: z.ZodInt;
667
667
  sku: z.ZodNullable<z.ZodString>;
668
- barcode: z.ZodNullable<z.ZodString>;
669
668
  name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
670
669
  en: "en";
671
670
  ka: "ka";
672
671
  ru: "ru";
673
672
  }> & z.core.$partial, z.ZodString>>;
673
+ barcodes: z.ZodArray<z.ZodString>;
674
674
  }, z.core.$strip>;
675
675
  measurementUnit: z.ZodObject<{
676
676
  id: z.ZodInt;
@@ -713,12 +713,12 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
713
713
  productVariant: z.ZodObject<{
714
714
  id: z.ZodInt;
715
715
  sku: z.ZodNullable<z.ZodString>;
716
- barcode: z.ZodNullable<z.ZodString>;
717
716
  name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
718
717
  en: "en";
719
718
  ka: "ka";
720
719
  ru: "ru";
721
720
  }> & z.core.$partial, z.ZodString>>;
721
+ barcodes: z.ZodArray<z.ZodString>;
722
722
  }, z.core.$strip>;
723
723
  measurementUnit: z.ZodObject<{
724
724
  id: z.ZodInt;
@@ -779,12 +779,12 @@ declare const deliveryDetailsSchema: z.ZodObject<{
779
779
  productVariant: z.ZodObject<{
780
780
  id: z.ZodInt;
781
781
  sku: z.ZodNullable<z.ZodString>;
782
- barcode: z.ZodNullable<z.ZodString>;
783
782
  name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
784
783
  en: "en";
785
784
  ka: "ka";
786
785
  ru: "ru";
787
786
  }> & z.core.$partial, z.ZodString>>;
787
+ barcodes: z.ZodArray<z.ZodString>;
788
788
  }, z.core.$strip>;
789
789
  measurementUnit: z.ZodObject<{
790
790
  id: z.ZodInt;
@@ -960,12 +960,12 @@ declare const stockBalanceSearchItemSchema: z.ZodObject<{
960
960
  productVariant: z.ZodObject<{
961
961
  id: z.ZodInt;
962
962
  sku: z.ZodNullable<z.ZodString>;
963
- barcode: z.ZodNullable<z.ZodString>;
964
963
  name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
965
964
  en: "en";
966
965
  ka: "ka";
967
966
  ru: "ru";
968
967
  }> & z.core.$partial, z.ZodString>>;
968
+ barcodes: z.ZodArray<z.ZodString>;
969
969
  }, z.core.$strip>;
970
970
  measurementUnit: z.ZodObject<{
971
971
  id: z.ZodInt;
@@ -1131,31 +1131,8 @@ type ProductImage = z.infer<typeof productImageSchema>;
1131
1131
  type ProductImages = z.infer<typeof productImagesSchema>;
1132
1132
  //#endregion
1133
1133
  //#region src/app/domain/(catalog)/product-variants/product-variants.schemas.d.ts
1134
- declare const productVariantSchema: z.ZodObject<{
1135
- id: z.ZodInt;
1136
- productId: z.ZodInt;
1137
- measurementUnitId: z.ZodNullable<z.ZodInt>;
1138
- taxCategoryId: z.ZodNullable<z.ZodInt>;
1139
- status: z.ZodEnum<{
1140
- active: "active";
1141
- archived: "archived";
1142
- draft: "draft";
1143
- }>;
1144
- sku: z.ZodNullable<z.ZodString>;
1145
- barcode: z.ZodNullable<z.ZodString>;
1146
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1147
- en: "en";
1148
- ka: "ka";
1149
- ru: "ru";
1150
- }> & z.core.$partial, z.ZodString>>;
1151
- updatedAt: z.ZodNullable<z.ZodDate>;
1152
- createdAt: z.ZodDate;
1153
- }, z.core.$strip>;
1154
- type ProductVariant = z.infer<typeof productVariantSchema>;
1155
1134
  declare const productVariantIdShape: z.ZodInt;
1156
- declare const productVariantBarcodeShape: z.ZodString;
1157
1135
  type ProductVariantId = z.infer<typeof productVariantIdShape>;
1158
- type ProductVariantBarcode = z.infer<typeof productVariantBarcodeShape>;
1159
1136
  //#endregion
1160
1137
  //#region src/app/domain/(catalog)/products/products.schemas.d.ts
1161
1138
  declare const productSchema: z.ZodObject<{
@@ -1328,6 +1305,26 @@ declare const productVariantSelectOneQuerySchema: z.ZodObject<{
1328
1305
  declare const productVariantDeletePayloadSchema: z.ZodObject<{
1329
1306
  productVariantId: z.ZodInt;
1330
1307
  }, z.core.$strip>;
1308
+ declare const productVariantResultSchema: z.ZodObject<{
1309
+ id: z.ZodInt;
1310
+ productId: z.ZodInt;
1311
+ measurementUnitId: z.ZodNullable<z.ZodInt>;
1312
+ taxCategoryId: z.ZodNullable<z.ZodInt>;
1313
+ status: z.ZodEnum<{
1314
+ active: "active";
1315
+ archived: "archived";
1316
+ draft: "draft";
1317
+ }>;
1318
+ sku: z.ZodNullable<z.ZodString>;
1319
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1320
+ en: "en";
1321
+ ka: "ka";
1322
+ ru: "ru";
1323
+ }> & z.core.$partial, z.ZodString>>;
1324
+ updatedAt: z.ZodNullable<z.ZodDate>;
1325
+ createdAt: z.ZodDate;
1326
+ barcodes: z.ZodArray<z.ZodString>;
1327
+ }, z.core.$strip>;
1331
1328
  declare const productVariantCreatePayloadSchema: z.ZodObject<{
1332
1329
  productId: z.ZodInt;
1333
1330
  measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1338,12 +1335,12 @@ declare const productVariantCreatePayloadSchema: z.ZodObject<{
1338
1335
  draft: "draft";
1339
1336
  }>>;
1340
1337
  sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1341
- barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1342
1338
  name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1343
1339
  en: "en";
1344
1340
  ka: "ka";
1345
1341
  ru: "ru";
1346
1342
  }> & z.core.$partial, z.ZodString>>>;
1343
+ barcodes: z.ZodArray<z.ZodString>;
1347
1344
  }, {
1348
1345
  out: {};
1349
1346
  in: {};
@@ -1357,27 +1354,31 @@ declare const productVariantUpdatePayloadSchema: z.ZodObject<{
1357
1354
  draft: "draft";
1358
1355
  }>>;
1359
1356
  sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1360
- barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1361
1357
  name: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
1362
1358
  en: "en";
1363
1359
  ka: "ka";
1364
1360
  ru: "ru";
1365
1361
  }> & z.core.$partial, z.ZodString>>>;
1366
1362
  productVariantId: z.ZodInt;
1363
+ barcodes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1367
1364
  }, {
1368
1365
  out: {};
1369
1366
  in: {};
1370
1367
  }>;
1368
+ type ProductVariantResult = z.infer<typeof productVariantResultSchema>;
1371
1369
  type ProductVariantSearchOptions = z.infer<typeof productVariantSearchOptionsSchema>;
1372
1370
  type ProductVariantSearchResult = {
1373
- productVariants: ProductVariant[];
1371
+ productVariants: ProductVariantResult[];
1374
1372
  total: number;
1375
1373
  };
1376
1374
  type ProductVariantSelectOneQuery = z.infer<typeof productVariantSelectOneQuerySchema>;
1377
1375
  type ProductVariantDeletePayload = z.infer<typeof productVariantDeletePayloadSchema>;
1378
1376
  type ProductVariantCreatePayload = z.infer<typeof productVariantCreatePayloadSchema>;
1379
1377
  type ProductVariantCreateResult = {
1380
- productVariant: ProductVariant;
1378
+ productVariant: ProductVariantResult;
1379
+ };
1380
+ type ProductVariantSelectOneResult = {
1381
+ productVariant: ProductVariantResult;
1381
1382
  };
1382
1383
  type ProductVariantUpdatePayload = z.infer<typeof productVariantUpdatePayloadSchema>;
1383
1384
  //#endregion
@@ -1453,4 +1454,10 @@ type TaxCategoryId = z.infer<typeof taxCategoryIdShape>;
1453
1454
  declare const taxRateIdShape: z.ZodInt;
1454
1455
  type TaxRateId = z.infer<typeof taxRateIdShape>;
1455
1456
  //#endregion
1456
- export type { AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandId, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandSlug, BrandUpdatePayload, Category, CategoryCreatePayload, CategoryId, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategorySlug, CategoryUpdatePayload, Country, CountryCreatePayload, CountryId, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Currency, CurrencyId, CurrencyListResult, Customer, CustomerCreatePayload, CustomerId, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload, Delivery, DeliveryCreatePayload, DeliveryCreateResult, DeliveryDeletePayload, DeliveryDetails, DeliveryId, DeliveryItem, DeliveryItemAddPayload, DeliveryItemCatalogDetails, DeliveryItemDeletePayload, DeliveryItemDetails, DeliveryItemId, DeliveryItemQuantity, DeliveryItemResult, DeliveryItemRevision, DeliveryItemScanPayload, DeliveryItemScanResult, DeliveryItemUpdatePayload, DeliveryItemUpdatedByEmployee, DeliveryPostPayload, DeliverySearchItem, DeliverySearchOptions, DeliverySearchResult, DeliverySelectOneQuery, DeliverySelectOneResult, DeliveryUpdatePayload, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateId, ExchangeRateSearchOptions, ExchangeRateSearchResult, MeasurementUnit, MeasurementUnitId, MeasurementUnitListResult, Product, ProductCreatePayload, ProductCreateResult, ProductDeletePayload, ProductId, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductSlug, ProductUpdatePayload, ProductVariant, ProductVariantBarcode, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantId, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantUpdatePayload, StockBalance, StockBalanceSearchItem, StockBalanceSearchOptions, StockBalanceSearchResult, Supplier, SupplierCreatePayload, SupplierId, SupplierSearchOptions, SupplierSearchResult, SupplierSelectOneQuery, SupplierSwitchStatusPayload, SupplierUpdatePayload, TaxCategoryId, TaxRateId, Warehouse, WarehouseCreatePayload, WarehouseId, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
1457
+ //#region src/app/domain/(catalog)/product-variant-barcodes/product-variant-barcodes.schemas.d.ts
1458
+ declare const productVariantBarcodeShape: z.ZodString;
1459
+ declare const productVariantBarcodesShape: z.ZodArray<z.ZodString>;
1460
+ type ProductVariantBarcode = z.infer<typeof productVariantBarcodeShape>;
1461
+ type ProductVariantBarcodes = z.infer<typeof productVariantBarcodesShape>;
1462
+ //#endregion
1463
+ export type { AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandId, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandSlug, BrandUpdatePayload, Category, CategoryCreatePayload, CategoryId, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategorySlug, CategoryUpdatePayload, Country, CountryCreatePayload, CountryId, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Currency, CurrencyId, CurrencyListResult, Customer, CustomerCreatePayload, CustomerId, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload, Delivery, DeliveryCreatePayload, DeliveryCreateResult, DeliveryDeletePayload, DeliveryDetails, DeliveryId, DeliveryItem, DeliveryItemAddPayload, DeliveryItemCatalogDetails, DeliveryItemDeletePayload, DeliveryItemDetails, DeliveryItemId, DeliveryItemQuantity, DeliveryItemResult, DeliveryItemRevision, DeliveryItemScanPayload, DeliveryItemScanResult, DeliveryItemUpdatePayload, DeliveryItemUpdatedByEmployee, DeliveryPostPayload, DeliverySearchItem, DeliverySearchOptions, DeliverySearchResult, DeliverySelectOneQuery, DeliverySelectOneResult, DeliveryUpdatePayload, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateId, ExchangeRateSearchOptions, ExchangeRateSearchResult, MeasurementUnit, MeasurementUnitId, MeasurementUnitListResult, Product, ProductCreatePayload, ProductCreateResult, ProductDeletePayload, ProductId, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductSlug, ProductUpdatePayload, ProductVariantResult as ProductVariant, ProductVariantResult, ProductVariantBarcode, ProductVariantBarcodes, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantId, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantSelectOneResult, ProductVariantUpdatePayload, StockBalance, StockBalanceSearchItem, StockBalanceSearchOptions, StockBalanceSearchResult, Supplier, SupplierCreatePayload, SupplierId, SupplierSearchOptions, SupplierSearchResult, SupplierSelectOneQuery, SupplierSwitchStatusPayload, SupplierUpdatePayload, TaxCategoryId, TaxRateId, Warehouse, WarehouseCreatePayload, WarehouseId, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };