@esb-market-contracts/backend 1.0.37 → 1.0.38

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 +3 -0
  2. package/package.json +1 -1
  3. package/types.d.ts +57 -34
package/api.d.ts CHANGED
@@ -783,6 +783,9 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
783
783
  postedAt: Date | null;
784
784
  updatedAt: Date | null;
785
785
  createdAt: Date;
786
+ supplierName: string;
787
+ warehouseName: string;
788
+ currencyCode: string;
786
789
  }[];
787
790
  total: number;
788
791
  }>;
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.37",
4
+ "version": "1.0.38",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/types.d.ts CHANGED
@@ -402,28 +402,6 @@ declare const deliveryItemSchema: z.ZodObject<{
402
402
  }, z.core.$strip>;
403
403
  type DeliveryItem = z.infer<typeof deliveryItemSchema>;
404
404
  //#endregion
405
- //#region src/app/domain/(procurement)/deliveries/deliveries.schemas.d.ts
406
- declare const deliverySchema: z.ZodObject<{
407
- id: z.ZodInt;
408
- code: z.ZodString;
409
- supplierId: z.ZodInt;
410
- warehouseId: z.ZodInt;
411
- currencyId: z.ZodInt;
412
- status: z.ZodEnum<{
413
- draft: "draft";
414
- posted: "posted";
415
- reversed: "reversed";
416
- }>;
417
- notes: z.ZodNullable<z.ZodString>;
418
- exchangeRateId: z.ZodNullable<z.ZodInt>;
419
- exchangeRate: z.ZodNullable<z.ZodString>;
420
- exchangeRateValidFromDate: z.ZodNullable<z.ZodNullable<z.ZodISODate>>;
421
- postedAt: z.ZodNullable<z.ZodDate>;
422
- updatedAt: z.ZodNullable<z.ZodDate>;
423
- createdAt: z.ZodDate;
424
- }, z.core.$strip>;
425
- type Delivery = z.infer<typeof deliverySchema>;
426
- //#endregion
427
405
  //#region src/app/flows/(procurement)/delivery/delivery.schemas.d.ts
428
406
  declare const deliveryCreatePayloadSchema: z.ZodObject<{
429
407
  supplierId: z.ZodInt;
@@ -437,6 +415,16 @@ declare const deliveryCreatePayloadSchema: z.ZodObject<{
437
415
  declare const deliverySelectOneQuerySchema: z.ZodObject<{
438
416
  id: z.ZodInt;
439
417
  }, z.core.$strip>;
418
+ declare const deliveryUpdatePayloadSchema: z.ZodObject<{
419
+ supplierId: z.ZodOptional<z.ZodInt>;
420
+ warehouseId: z.ZodOptional<z.ZodInt>;
421
+ currencyId: z.ZodOptional<z.ZodInt>;
422
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ deliveryId: z.ZodInt;
424
+ }, {
425
+ out: {};
426
+ in: {};
427
+ }>;
440
428
  declare const deliverySearchOptionsSchema: z.ZodObject<{
441
429
  where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
442
430
  supplierId: z.ZodOptional<z.ZodInt>;
@@ -505,24 +493,37 @@ declare const deliverySearchOptionsSchema: z.ZodObject<{
505
493
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
506
494
  }, z.core.$strip>;
507
495
  }, z.core.$strict>;
508
- declare const deliveryUpdatePayloadSchema: z.ZodObject<{
509
- supplierId: z.ZodOptional<z.ZodInt>;
510
- warehouseId: z.ZodOptional<z.ZodInt>;
511
- currencyId: z.ZodOptional<z.ZodInt>;
512
- notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
- deliveryId: z.ZodInt;
514
- }, {
515
- out: {};
516
- in: {};
517
- }>;
496
+ declare const deliverySearchItemSchema: z.ZodObject<{
497
+ id: z.ZodInt;
498
+ code: z.ZodString;
499
+ supplierId: z.ZodInt;
500
+ warehouseId: z.ZodInt;
501
+ currencyId: z.ZodInt;
502
+ status: z.ZodEnum<{
503
+ draft: "draft";
504
+ posted: "posted";
505
+ reversed: "reversed";
506
+ }>;
507
+ notes: z.ZodNullable<z.ZodString>;
508
+ exchangeRateId: z.ZodNullable<z.ZodInt>;
509
+ exchangeRate: z.ZodNullable<z.ZodString>;
510
+ exchangeRateValidFromDate: z.ZodNullable<z.ZodNullable<z.ZodISODate>>;
511
+ postedAt: z.ZodNullable<z.ZodDate>;
512
+ updatedAt: z.ZodNullable<z.ZodDate>;
513
+ createdAt: z.ZodDate;
514
+ supplierName: z.ZodString;
515
+ warehouseName: z.ZodString;
516
+ currencyCode: z.ZodString;
517
+ }, z.core.$strip>;
518
518
  type DeliveryCreatePayload = z.infer<typeof deliveryCreatePayloadSchema>;
519
519
  type DeliverySelectOneQuery = z.infer<typeof deliverySelectOneQuerySchema>;
520
520
  type DeliverySearchOptions = z.infer<typeof deliverySearchOptionsSchema>;
521
521
  type DeliverySearchResult = {
522
- deliveries: Delivery[];
522
+ deliveries: DeliverySearchItem[];
523
523
  total: number;
524
524
  };
525
525
  type DeliveryUpdatePayload = z.infer<typeof deliveryUpdatePayloadSchema>;
526
+ type DeliverySearchItem = z.infer<typeof deliverySearchItemSchema>;
526
527
  declare const deliveryDeletePayloadSchema: z.ZodObject<{
527
528
  deliveryId: z.ZodInt;
528
529
  }, z.core.$strip>;
@@ -1062,4 +1063,26 @@ type ProductVariantCreateResult = {
1062
1063
  };
1063
1064
  type ProductVariantUpdatePayload = z.infer<typeof productVariantUpdatePayloadSchema>;
1064
1065
  //#endregion
1065
- 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, DeliverySearchOptions, DeliverySearchResult, 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 };
1066
+ //#region src/app/domain/(procurement)/deliveries/deliveries.schemas.d.ts
1067
+ declare const deliverySchema: z.ZodObject<{
1068
+ id: z.ZodInt;
1069
+ code: z.ZodString;
1070
+ supplierId: z.ZodInt;
1071
+ warehouseId: z.ZodInt;
1072
+ currencyId: z.ZodInt;
1073
+ status: z.ZodEnum<{
1074
+ draft: "draft";
1075
+ posted: "posted";
1076
+ reversed: "reversed";
1077
+ }>;
1078
+ notes: z.ZodNullable<z.ZodString>;
1079
+ exchangeRateId: z.ZodNullable<z.ZodInt>;
1080
+ exchangeRate: z.ZodNullable<z.ZodString>;
1081
+ exchangeRateValidFromDate: z.ZodNullable<z.ZodNullable<z.ZodISODate>>;
1082
+ postedAt: z.ZodNullable<z.ZodDate>;
1083
+ updatedAt: z.ZodNullable<z.ZodDate>;
1084
+ createdAt: z.ZodDate;
1085
+ }, z.core.$strip>;
1086
+ type Delivery = z.infer<typeof deliverySchema>;
1087
+ //#endregion
1088
+ 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, DeliverySearchItem, DeliverySearchOptions, DeliverySearchResult, 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 };