@merkaly/api 0.6.7 → 0.6.9
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.
|
@@ -32,7 +32,6 @@ export declare class CatalogProductEntity extends AbstractEntity {
|
|
|
32
32
|
readonly picture: AssetEntity;
|
|
33
33
|
readonly pictures: AssetEntity[];
|
|
34
34
|
readonly variants: CatalogVariantEntity[];
|
|
35
|
-
readonly stock: number;
|
|
36
35
|
readonly status: StockBalanceStatusEnum;
|
|
37
36
|
readonly balance: StockBalanceEntity;
|
|
38
37
|
readonly balances: StockBalanceEntity[];
|
|
@@ -19,7 +19,6 @@ export declare class CatalogVariantEntity extends AbstractEntity {
|
|
|
19
19
|
pictures: AssetEntity[];
|
|
20
20
|
readonly picture: AssetEntity;
|
|
21
21
|
readonly total: number;
|
|
22
|
-
readonly stock: number;
|
|
23
22
|
readonly status: StockBalanceStatusEnum;
|
|
24
23
|
readonly balance: StockBalanceEntity;
|
|
25
24
|
readonly balances: StockBalanceEntity[];
|
|
@@ -3,7 +3,6 @@ import { SaveEntityArgs } from '../../..';
|
|
|
3
3
|
import { AddressEntity } from '../../../address.entity.js';
|
|
4
4
|
export declare class StockWarehouseEntity extends AbstractEntity {
|
|
5
5
|
name: string;
|
|
6
|
-
code: string;
|
|
7
6
|
description: string;
|
|
8
7
|
address: SaveEntityArgs<AddressEntity>;
|
|
9
8
|
isDefault: boolean;
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
import * as class_transformer_1 from "class-transformer";
|
|
11
12
|
import * as class_validator_1 from "class-validator";
|
|
12
13
|
import * as abstract_validator_1 from '../../../abstract.validator.js';
|
|
14
|
+
const emptyToUndefined = ({ value }) => (value === '' ? undefined : value);
|
|
13
15
|
export class CreatePurchaseVendorRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
14
16
|
name;
|
|
15
17
|
description;
|
|
@@ -47,12 +49,14 @@ __decorate([
|
|
|
47
49
|
__metadata("design:type", String)
|
|
48
50
|
], CreatePurchaseVendorRequestValidator.prototype, "description", void 0);
|
|
49
51
|
__decorate([
|
|
52
|
+
(0, class_transformer_1.Transform)(emptyToUndefined),
|
|
50
53
|
(0, class_validator_1.IsEmail)(),
|
|
51
54
|
(0, class_validator_1.Length)(0, 254),
|
|
52
55
|
(0, class_validator_1.IsOptional)(),
|
|
53
56
|
__metadata("design:type", String)
|
|
54
57
|
], CreatePurchaseVendorRequestValidator.prototype, "email", void 0);
|
|
55
58
|
__decorate([
|
|
59
|
+
(0, class_transformer_1.Transform)(emptyToUndefined),
|
|
56
60
|
(0, class_validator_1.IsUrl)(),
|
|
57
61
|
(0, class_validator_1.Length)(0, 2048),
|
|
58
62
|
(0, class_validator_1.IsOptional)(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared TypeScript interfaces and enums for Merkaly API",
|
|
6
6
|
"repository": {
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"class-transformer": "^0.5.1",
|
|
26
|
-
"class-validator": "^0.
|
|
26
|
+
"class-validator": "^0.15.1",
|
|
27
27
|
"reflect-metadata": "^0.2.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^25.9.1",
|
|
31
31
|
"changelogen": "^0.6.2",
|
|
32
|
-
"oxlint": "^1.
|
|
33
|
-
"tsx": "^4.
|
|
34
|
-
"typescript": "^
|
|
32
|
+
"oxlint": "^1.69.0",
|
|
33
|
+
"tsx": "^4.22.4",
|
|
34
|
+
"typescript": "^6.0.3"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|