@esb-market-contracts/backend 1.0.29 → 1.0.30
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 +29 -1
- package/package.json +1 -1
- package/types.d.ts +19 -1
package/api.d.ts
CHANGED
|
@@ -299,6 +299,28 @@ declare const countriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
299
299
|
}, "/catalog/countries", "/catalog/countries/update">;
|
|
300
300
|
type CountriesRouter = typeof countriesRouter;
|
|
301
301
|
//#endregion
|
|
302
|
+
//#region src/app/routes/(catalog)/measurement-units.routes.d.ts
|
|
303
|
+
declare const measurementUnitsRouter: import("hono/hono-base").HonoBase<{
|
|
304
|
+
Variables: VariablesWithActor;
|
|
305
|
+
}, {
|
|
306
|
+
"/catalog/measurement-units/list": {
|
|
307
|
+
$get: {
|
|
308
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
309
|
+
measurementUnits: {
|
|
310
|
+
id: number;
|
|
311
|
+
code: string;
|
|
312
|
+
name: string;
|
|
313
|
+
decimalPlaces: number;
|
|
314
|
+
}[];
|
|
315
|
+
}>;
|
|
316
|
+
outputFormat: "json";
|
|
317
|
+
status: 200;
|
|
318
|
+
input: {};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
}, "/catalog/measurement-units", "/catalog/measurement-units/list">;
|
|
322
|
+
type MeasurementUnitsRouter = typeof measurementUnitsRouter;
|
|
323
|
+
//#endregion
|
|
302
324
|
//#region src/app/routes/(catalog)/product-variants.routes.d.ts
|
|
303
325
|
declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
304
326
|
Variables: VariablesWithActor;
|
|
@@ -309,6 +331,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
309
331
|
productVariant: {
|
|
310
332
|
id: number;
|
|
311
333
|
productId: number;
|
|
334
|
+
measurementUnitId: number | null;
|
|
312
335
|
status: "active" | "archived" | "draft";
|
|
313
336
|
sku: string | null;
|
|
314
337
|
barcode: string | null;
|
|
@@ -333,6 +356,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
333
356
|
productVariant: {
|
|
334
357
|
id: number;
|
|
335
358
|
productId: number;
|
|
359
|
+
measurementUnitId: number | null;
|
|
336
360
|
status: "active" | "archived" | "draft";
|
|
337
361
|
sku: string | null;
|
|
338
362
|
barcode: string | null;
|
|
@@ -346,6 +370,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
346
370
|
input: {
|
|
347
371
|
json: {
|
|
348
372
|
productId: number;
|
|
373
|
+
measurementUnitId?: number | null | undefined;
|
|
349
374
|
status?: "active" | "archived" | "draft" | undefined;
|
|
350
375
|
sku?: string | null | undefined;
|
|
351
376
|
barcode?: string | null | undefined;
|
|
@@ -361,6 +386,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
361
386
|
productVariants: {
|
|
362
387
|
id: number;
|
|
363
388
|
productId: number;
|
|
389
|
+
measurementUnitId: number | null;
|
|
364
390
|
status: "active" | "archived" | "draft";
|
|
365
391
|
sku: string | null;
|
|
366
392
|
barcode: string | null;
|
|
@@ -376,6 +402,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
376
402
|
json: {
|
|
377
403
|
where: {
|
|
378
404
|
productId: number;
|
|
405
|
+
measurementUnitId?: number | null | undefined;
|
|
379
406
|
status?: "active" | "archived" | "draft" | undefined;
|
|
380
407
|
};
|
|
381
408
|
query?: string | undefined;
|
|
@@ -395,6 +422,7 @@ declare const productVariantsRouter: import("hono/hono-base").HonoBase<{
|
|
|
395
422
|
status: 200;
|
|
396
423
|
input: {
|
|
397
424
|
json: {
|
|
425
|
+
measurementUnitId?: number | null | undefined;
|
|
398
426
|
status?: "active" | "archived" | "draft" | undefined;
|
|
399
427
|
sku?: string | null | undefined;
|
|
400
428
|
barcode?: string | null | undefined;
|
|
@@ -1000,4 +1028,4 @@ declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1000
1028
|
}, "/operations/warehouses", "/operations/warehouses/switch-status">;
|
|
1001
1029
|
type WarehousesRouter = typeof warehousesRouter;
|
|
1002
1030
|
//#endregion
|
|
1003
|
-
export type { AuditLogsRouter, BrandsRouter, CategoriesRouter, CountriesRouter, CustomersRouter, ExchangeRatesRouter, ProductVariantsRouter, ProductsRouter, WarehousesRouter };
|
|
1031
|
+
export type { AuditLogsRouter, BrandsRouter, CategoriesRouter, CountriesRouter, CustomersRouter, ExchangeRatesRouter, MeasurementUnitsRouter, ProductVariantsRouter, ProductsRouter, WarehousesRouter };
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -231,6 +231,20 @@ type CountrySelectOneQuery = z.infer<typeof countrySelectOneQuerySchema>;
|
|
|
231
231
|
type CountryCreatePayload = z.infer<typeof countryCreatePayloadSchema>;
|
|
232
232
|
type CountryUpdatePayload = z.infer<typeof countryUpdatePayloadSchema>;
|
|
233
233
|
//#endregion
|
|
234
|
+
//#region src/app/domain/(catalog)/measurement-units/measurement-units.schemas.d.ts
|
|
235
|
+
declare const measurementUnitSchema: z.ZodObject<{
|
|
236
|
+
id: z.ZodInt;
|
|
237
|
+
code: z.ZodString;
|
|
238
|
+
name: z.ZodString;
|
|
239
|
+
decimalPlaces: z.ZodInt;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
type MeasurementUnit = z.infer<typeof measurementUnitSchema>;
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/app/flows/measurement-unit/measurement-unit.schemas.d.ts
|
|
244
|
+
type MeasurementUnitListResult = {
|
|
245
|
+
measurementUnits: MeasurementUnit[];
|
|
246
|
+
};
|
|
247
|
+
//#endregion
|
|
234
248
|
//#region src/app/domain/(operations)/audit-logs/audit-logs.schemas.d.ts
|
|
235
249
|
declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
236
250
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgSerialBuilder>, {
|
|
@@ -564,6 +578,7 @@ type ProductImages = z.infer<typeof productImagesSchema>;
|
|
|
564
578
|
declare const productVariantSchema: z.ZodObject<{
|
|
565
579
|
id: z.ZodInt;
|
|
566
580
|
productId: z.ZodInt;
|
|
581
|
+
measurementUnitId: z.ZodNullable<z.ZodInt>;
|
|
567
582
|
status: z.ZodEnum<{
|
|
568
583
|
active: "active";
|
|
569
584
|
archived: "archived";
|
|
@@ -720,6 +735,7 @@ type ProductUpdatePayload = z.infer<typeof productUpdatePayloadSchema>;
|
|
|
720
735
|
declare const productVariantSearchOptionsSchema: z.ZodObject<{
|
|
721
736
|
where: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
722
737
|
productId: z.ZodInt;
|
|
738
|
+
measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
723
739
|
status: z.ZodOptional<z.ZodEnum<{
|
|
724
740
|
active: "active";
|
|
725
741
|
archived: "archived";
|
|
@@ -740,6 +756,7 @@ declare const productVariantDeletePayloadSchema: z.ZodObject<{
|
|
|
740
756
|
}, z.core.$strip>;
|
|
741
757
|
declare const productVariantCreatePayloadSchema: z.ZodObject<{
|
|
742
758
|
productId: z.ZodInt;
|
|
759
|
+
measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
743
760
|
status: z.ZodOptional<z.ZodEnum<{
|
|
744
761
|
active: "active";
|
|
745
762
|
archived: "archived";
|
|
@@ -754,6 +771,7 @@ declare const productVariantCreatePayloadSchema: z.ZodObject<{
|
|
|
754
771
|
}> & z.core.$partial, z.ZodString>>>;
|
|
755
772
|
}, z.core.$strip>;
|
|
756
773
|
declare const productVariantUpdatePayloadSchema: z.ZodObject<{
|
|
774
|
+
measurementUnitId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
757
775
|
status: z.ZodOptional<z.ZodEnum<{
|
|
758
776
|
active: "active";
|
|
759
777
|
archived: "archived";
|
|
@@ -781,4 +799,4 @@ type ProductVariantCreateResult = {
|
|
|
781
799
|
};
|
|
782
800
|
type ProductVariantUpdatePayload = z.infer<typeof productVariantUpdatePayloadSchema>;
|
|
783
801
|
//#endregion
|
|
784
|
-
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, ProductDeletePayload, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductUpdatePayload, ProductVariant, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantUpdatePayload, Warehouse, WarehouseCreatePayload, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
|
|
802
|
+
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, MeasurementUnit, MeasurementUnitListResult, Product, ProductCreatePayload, ProductCreateResult, ProductDeletePayload, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductUpdatePayload, ProductVariant, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantUpdatePayload, Warehouse, WarehouseCreatePayload, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
|