@esb-market-contracts/backend 1.0.24 → 1.0.26
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 +6 -0
- package/enums.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +4 -0
package/api.d.ts
CHANGED
|
@@ -430,6 +430,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
430
430
|
product: {
|
|
431
431
|
id: number;
|
|
432
432
|
slug: string | null;
|
|
433
|
+
model: string | null;
|
|
433
434
|
status: "active" | "archived" | "draft";
|
|
434
435
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
435
436
|
description: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
@@ -463,6 +464,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
463
464
|
product: {
|
|
464
465
|
id: number;
|
|
465
466
|
slug: string | null;
|
|
467
|
+
model: string | null;
|
|
466
468
|
status: "active" | "archived" | "draft";
|
|
467
469
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
468
470
|
description: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
@@ -481,6 +483,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
481
483
|
input: {
|
|
482
484
|
form: {
|
|
483
485
|
slug?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
486
|
+
model: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue;
|
|
484
487
|
name?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
485
488
|
description?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
486
489
|
categoryId?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
@@ -498,6 +501,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
498
501
|
products: {
|
|
499
502
|
id: number;
|
|
500
503
|
slug: string | null;
|
|
504
|
+
model: string | null;
|
|
501
505
|
status: "active" | "archived" | "draft";
|
|
502
506
|
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
503
507
|
description: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
@@ -540,6 +544,7 @@ declare const productsRouter: import("hono/hono-base").HonoBase<{
|
|
|
540
544
|
form: {
|
|
541
545
|
status?: "active" | "archived" | "draft" | undefined;
|
|
542
546
|
slug?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
547
|
+
model?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
543
548
|
name?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
544
549
|
description?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
545
550
|
categoryId?: import("hono/types").ParsedFormValue[] | import("hono/types").ParsedFormValue | undefined;
|
|
@@ -578,6 +583,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
578
583
|
id: number;
|
|
579
584
|
code: string;
|
|
580
585
|
name: string;
|
|
586
|
+
sortOrder: number;
|
|
581
587
|
}[];
|
|
582
588
|
}>;
|
|
583
589
|
outputFormat: "json";
|
package/enums.js
CHANGED
|
@@ -6,7 +6,7 @@ var locale = localesRecord;
|
|
|
6
6
|
|
|
7
7
|
// src/internal/localization/localization.schemas.ts
|
|
8
8
|
import { z } from "zod";
|
|
9
|
-
var AT_LEAST_ONE_LOCALIZED_VALUE_ERROR = "
|
|
9
|
+
var AT_LEAST_ONE_LOCALIZED_VALUE_ERROR = "\u10E8\u10D4\u10D0\u10D5\u10E1\u10D4\u10D7 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 \u10DB\u10D8\u10DC\u10D8\u10DB\u10E3\u10DB \u10D4\u10E0\u10D7 \u10D4\u10DC\u10D0\u10D6\u10D4.";
|
|
10
10
|
var localizedStringSchema = z.partialRecord(z.enum(localesArray), z.string()).refine((value) => Object.values(value).some((localizedValue) => localizedValue.trim().length > 0), {
|
|
11
11
|
message: AT_LEAST_ONE_LOCALIZED_VALUE_ERROR
|
|
12
12
|
});
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -429,6 +429,7 @@ declare const currencySchema: z.ZodObject<{
|
|
|
429
429
|
id: z.ZodInt;
|
|
430
430
|
code: z.ZodString;
|
|
431
431
|
name: z.ZodString;
|
|
432
|
+
sortOrder: z.ZodInt;
|
|
432
433
|
}, z.core.$strip>;
|
|
433
434
|
type Currency = z.infer<typeof currencySchema>;
|
|
434
435
|
//#endregion
|
|
@@ -511,6 +512,7 @@ type ProductVariant = z.infer<typeof productVariantSchema>;
|
|
|
511
512
|
declare const productSchema: z.ZodObject<{
|
|
512
513
|
id: z.ZodInt;
|
|
513
514
|
slug: z.ZodNullable<z.ZodString>;
|
|
515
|
+
model: z.ZodNullable<z.ZodString>;
|
|
514
516
|
status: z.ZodEnum<{
|
|
515
517
|
active: "active";
|
|
516
518
|
archived: "archived";
|
|
@@ -588,6 +590,7 @@ declare const productDeletePayloadSchema: z.ZodObject<{
|
|
|
588
590
|
}, z.core.$strip>;
|
|
589
591
|
declare const productCreatePayloadSchema: z.ZodObject<{
|
|
590
592
|
slug: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
593
|
+
model: z.ZodPreprocess<z.ZodNullable<z.ZodString>>;
|
|
591
594
|
name: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
592
595
|
en: "en";
|
|
593
596
|
ka: "ka";
|
|
@@ -610,6 +613,7 @@ declare const productUpdatePayloadSchema: z.ZodObject<{
|
|
|
610
613
|
draft: "draft";
|
|
611
614
|
}>>;
|
|
612
615
|
slug: z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
616
|
+
model: z.ZodOptional<z.ZodPreprocess<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
|
|
613
617
|
name: z.ZodOptional<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
614
618
|
en: "en";
|
|
615
619
|
ka: "ka";
|