@escapenavigator/types 1.10.61 → 1.10.63
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/dist/player/player.ro.d.ts +2 -0
- package/dist/player/player.ro.js +6 -0
- package/dist/player/update-current.dto.d.ts +1 -0
- package/dist/player/update-current.dto.js +5 -0
- package/dist/product/add-product-to-order.dto.d.ts +1 -0
- package/dist/product/add-product-to-order.dto.js +5 -0
- package/dist/product/create-product.dto.d.ts +0 -1
- package/dist/product/create-product.dto.js +0 -5
- package/dist/product/product.ro.d.ts +7 -1
- package/dist/product/product.ro.js +24 -5
- package/dist/stock-arrival/create-stock-arrival.dto.d.ts +1 -0
- package/dist/stock-arrival/create-stock-arrival.dto.js +5 -0
- package/dist/stock-arrival/stock-arrival.ro.d.ts +3 -0
- package/dist/stock-arrival/stock-arrival.ro.js +10 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OrderRO } from '../order/order.ro';
|
|
1
2
|
import { EmotionRO } from '../review/emotions/emotion.ro';
|
|
2
3
|
declare class Review {
|
|
3
4
|
rating: number;
|
|
@@ -14,6 +15,7 @@ export declare class PlayerRO {
|
|
|
14
15
|
dislikes: number[];
|
|
15
16
|
emotions: EmotionRO[];
|
|
16
17
|
reviews?: Review[];
|
|
18
|
+
orders?: OrderRO[];
|
|
17
19
|
reviewsCount?: number;
|
|
18
20
|
ordersCount?: number;
|
|
19
21
|
}
|
package/dist/player/player.ro.js
CHANGED
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PlayerRO = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const order_ro_1 = require("../order/order.ro");
|
|
15
16
|
const emotion_ro_1 = require("../review/emotions/emotion.ro");
|
|
16
17
|
class Review {
|
|
17
18
|
}
|
|
@@ -67,6 +68,11 @@ __decorate([
|
|
|
67
68
|
(0, class_transformer_1.Type)(() => Review),
|
|
68
69
|
__metadata("design:type", Array)
|
|
69
70
|
], PlayerRO.prototype, "reviews", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
(0, class_transformer_1.Type)(() => order_ro_1.OrderRO),
|
|
74
|
+
__metadata("design:type", Array)
|
|
75
|
+
], PlayerRO.prototype, "orders", void 0);
|
|
70
76
|
__decorate([
|
|
71
77
|
(0, class_transformer_1.Expose)(),
|
|
72
78
|
__metadata("design:type", Number)
|
|
@@ -30,6 +30,11 @@ __decorate([
|
|
|
30
30
|
(0, class_validator_1.IsOptional)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], UpadteCurrentPlayerDto.prototype, "photo", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpadteCurrentPlayerDto.prototype, "nickname", void 0);
|
|
33
38
|
__decorate([
|
|
34
39
|
(0, class_transformer_1.Expose)(),
|
|
35
40
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
@@ -24,4 +24,9 @@ __decorate([
|
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], AddProductToOrderDto.prototype, "quantity", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], AddProductToOrderDto.prototype, "locationId", void 0);
|
|
27
32
|
exports.AddProductToOrderDto = AddProductToOrderDto;
|
|
@@ -24,11 +24,6 @@ __decorate([
|
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], CreateProductDto.prototype, "price", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsNumber)(),
|
|
29
|
-
(0, class_transformer_1.Expose)(),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], CreateProductDto.prototype, "stock", void 0);
|
|
32
27
|
__decorate([
|
|
33
28
|
(0, class_validator_1.IsOptional)(),
|
|
34
29
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { LocationRO } from '../location/location.ro';
|
|
1
2
|
import { RO } from '../shared/ro-class';
|
|
3
|
+
export declare class ProductLocationStockRO {
|
|
4
|
+
locationId: number;
|
|
5
|
+
stock: number;
|
|
6
|
+
location: LocationRO;
|
|
7
|
+
}
|
|
2
8
|
export declare class ProductRO extends RO {
|
|
3
9
|
title: string;
|
|
4
10
|
price: number;
|
|
5
|
-
stock: number;
|
|
6
11
|
trackQuantity: boolean;
|
|
12
|
+
locationStocks: ProductLocationStockRO[];
|
|
7
13
|
}
|
|
@@ -9,9 +9,27 @@ 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
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ProductRO = void 0;
|
|
12
|
+
exports.ProductRO = exports.ProductLocationStockRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const location_ro_1 = require("../location/location.ro");
|
|
14
16
|
const ro_class_1 = require("../shared/ro-class");
|
|
17
|
+
class ProductLocationStockRO {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], ProductLocationStockRO.prototype, "locationId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], ProductLocationStockRO.prototype, "stock", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_transformer_1.Type)(() => location_ro_1.LocationRO),
|
|
30
|
+
__metadata("design:type", location_ro_1.LocationRO)
|
|
31
|
+
], ProductLocationStockRO.prototype, "location", void 0);
|
|
32
|
+
exports.ProductLocationStockRO = ProductLocationStockRO;
|
|
15
33
|
class ProductRO extends ro_class_1.RO {
|
|
16
34
|
}
|
|
17
35
|
__decorate([
|
|
@@ -22,12 +40,13 @@ __decorate([
|
|
|
22
40
|
(0, class_transformer_1.Expose)(),
|
|
23
41
|
__metadata("design:type", Number)
|
|
24
42
|
], ProductRO.prototype, "price", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], ProductRO.prototype, "stock", void 0);
|
|
29
43
|
__decorate([
|
|
30
44
|
(0, class_transformer_1.Expose)(),
|
|
31
45
|
__metadata("design:type", Boolean)
|
|
32
46
|
], ProductRO.prototype, "trackQuantity", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
(0, class_transformer_1.Type)(() => ProductLocationStockRO),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], ProductRO.prototype, "locationStocks", void 0);
|
|
33
52
|
exports.ProductRO = ProductRO;
|
|
@@ -28,6 +28,11 @@ __decorate([
|
|
|
28
28
|
exports.CreateStockArrivalItemDto = CreateStockArrivalItemDto;
|
|
29
29
|
class CreateStockArrivalDto {
|
|
30
30
|
}
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsNumber)(),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], CreateStockArrivalDto.prototype, "locationId", void 0);
|
|
31
36
|
__decorate([
|
|
32
37
|
(0, class_validator_1.IsOptional)(),
|
|
33
38
|
(0, class_validator_1.IsString)(),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LocationRO } from '../location/location.ro';
|
|
1
2
|
import { ProductRO } from '../product/product.ro';
|
|
2
3
|
import { RO } from '../shared/ro-class';
|
|
3
4
|
export declare class StockArrivalItemRO {
|
|
@@ -7,6 +8,8 @@ export declare class StockArrivalItemRO {
|
|
|
7
8
|
quantity: number;
|
|
8
9
|
}
|
|
9
10
|
export declare class StockArrivalRO extends RO {
|
|
11
|
+
locationId: number;
|
|
12
|
+
location: LocationRO;
|
|
10
13
|
comment: string;
|
|
11
14
|
items: StockArrivalItemRO[];
|
|
12
15
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.StockArrivalRO = exports.StockArrivalItemRO = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const location_ro_1 = require("../location/location.ro");
|
|
15
16
|
const product_ro_1 = require("../product/product.ro");
|
|
16
17
|
const ro_class_1 = require("../shared/ro-class");
|
|
17
18
|
class StockArrivalItemRO {
|
|
@@ -36,6 +37,15 @@ __decorate([
|
|
|
36
37
|
exports.StockArrivalItemRO = StockArrivalItemRO;
|
|
37
38
|
class StockArrivalRO extends ro_class_1.RO {
|
|
38
39
|
}
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], StockArrivalRO.prototype, "locationId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
(0, class_transformer_1.Type)(() => location_ro_1.LocationRO),
|
|
47
|
+
__metadata("design:type", location_ro_1.LocationRO)
|
|
48
|
+
], StockArrivalRO.prototype, "location", void 0);
|
|
39
49
|
__decorate([
|
|
40
50
|
(0, class_transformer_1.Expose)(),
|
|
41
51
|
__metadata("design:type", String)
|