@esb-market-contracts/backend 1.0.22 → 1.0.23

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 +0 -10
  2. package/package.json +1 -1
  3. package/types.d.ts +22 -26
package/api.d.ts CHANGED
@@ -429,16 +429,6 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
429
429
  updatedAt: Date | null;
430
430
  createdAt: Date;
431
431
  };
432
- productVariants: {
433
- id: number;
434
- productId: number;
435
- status: "active" | "archived" | "draft";
436
- sku: string | null;
437
- barcode: string | null;
438
- name: Partial<Record<"en" | "ka" | "ru", string>> | null;
439
- updatedAt: Date | null;
440
- createdAt: Date;
441
- }[];
442
432
  }>;
443
433
  outputFormat: "json";
444
434
  status: 200;
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.22",
4
+ "version": "1.0.23",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/types.d.ts CHANGED
@@ -473,27 +473,6 @@ type CurrencyListResult = {
473
473
  currencies: Currency[];
474
474
  };
475
475
  //#endregion
476
- //#region src/app/domain/(catalog)/product-variants/product-variants.schemas.d.ts
477
- declare const productVariantSchema: z.ZodObject<{
478
- id: z.ZodInt;
479
- productId: z.ZodInt;
480
- status: z.ZodEnum<{
481
- active: "active";
482
- archived: "archived";
483
- draft: "draft";
484
- }>;
485
- sku: z.ZodNullable<z.ZodString>;
486
- barcode: z.ZodNullable<z.ZodString>;
487
- name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
488
- en: "en";
489
- ka: "ka";
490
- ru: "ru";
491
- }> & z.core.$partial, z.ZodString>>;
492
- updatedAt: z.ZodNullable<z.ZodDate>;
493
- createdAt: z.ZodDate;
494
- }, z.core.$strip>;
495
- type ProductVariant = z.infer<typeof productVariantSchema>;
496
- //#endregion
497
476
  //#region src/app/domain/(catalog)/products/products.fields.d.ts
498
477
  declare const productImageSchema: z.ZodObject<{
499
478
  src: z.ZodURL;
@@ -628,16 +607,33 @@ type ProductSearchResult = {
628
607
  total: number;
629
608
  };
630
609
  type ProductSelectOneQuery = z.infer<typeof productSelectOneQuerySchema>;
631
- type ProductSelectOneResult = {
632
- product: Product;
633
- productVariants: ProductVariant[];
634
- };
635
610
  type ProductCreatePayload = z.infer<typeof productCreatePayloadSchema>;
636
611
  type ProductCreateResult = {
637
612
  product: Product;
638
613
  };
639
614
  type ProductUpdatePayload = z.infer<typeof productUpdatePayloadSchema>;
640
615
  //#endregion
616
+ //#region src/app/domain/(catalog)/product-variants/product-variants.schemas.d.ts
617
+ declare const productVariantSchema: z.ZodObject<{
618
+ id: z.ZodInt;
619
+ productId: z.ZodInt;
620
+ status: z.ZodEnum<{
621
+ active: "active";
622
+ archived: "archived";
623
+ draft: "draft";
624
+ }>;
625
+ sku: z.ZodNullable<z.ZodString>;
626
+ barcode: z.ZodNullable<z.ZodString>;
627
+ name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
628
+ en: "en";
629
+ ka: "ka";
630
+ ru: "ru";
631
+ }> & z.core.$partial, z.ZodString>>;
632
+ updatedAt: z.ZodNullable<z.ZodDate>;
633
+ createdAt: z.ZodDate;
634
+ }, z.core.$strip>;
635
+ type ProductVariant = z.infer<typeof productVariantSchema>;
636
+ //#endregion
641
637
  //#region src/app/flows/product-variant/product-variant.schemas.d.ts
642
638
  declare const productVariantSearchOptionsSchema: z.ZodObject<{
643
639
  where: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
@@ -699,4 +695,4 @@ type ProductVariantCreateResult = {
699
695
  };
700
696
  type ProductVariantUpdatePayload = z.infer<typeof productVariantUpdatePayloadSchema>;
701
697
  //#endregion
702
- 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, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateSearchOptions, ExchangeRateSearchResult, Product, ProductCreatePayload, ProductCreateResult, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductSelectOneResult, ProductUpdatePayload, ProductVariant, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantUpdatePayload };
698
+ 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, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateSearchOptions, ExchangeRateSearchResult, Product, ProductCreatePayload, ProductCreateResult, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductUpdatePayload, ProductVariant, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantUpdatePayload };