@merkaly/api 0.2.2-26 → 0.2.2-28
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/.output/abstract/abstract.document.js +4 -6
- package/.output/abstract/abstract.entity.js +41 -21
- package/.output/abstract/abstract.validator.js +60 -43
- package/.output/modules/assets/asset.entity.js +56 -39
- package/.output/modules/insight/validators/order.validator.js +14 -13
- package/.output/modules/inventory/brands/brand.document.js +26 -5
- package/.output/modules/inventory/brands/brand.entity.js +37 -19
- package/.output/modules/inventory/brands/brand.validator.js +31 -29
- package/.output/modules/inventory/categories/category.document.js +27 -6
- package/.output/modules/inventory/categories/category.entity.js +48 -30
- package/.output/modules/inventory/categories/category.validator.js +43 -41
- package/.output/modules/inventory/products/entities/code.entity.d.ts +1 -1
- package/.output/modules/inventory/products/entities/code.entity.js +40 -23
- package/.output/modules/inventory/products/entities/dimension.entity.d.ts +1 -1
- package/.output/modules/inventory/products/entities/dimension.entity.js +44 -28
- package/.output/modules/inventory/products/entities/price.entity.d.ts +1 -1
- package/.output/modules/inventory/products/entities/price.entity.js +36 -18
- package/.output/modules/inventory/products/entities/seo.entity.d.ts +1 -1
- package/.output/modules/inventory/products/entities/seo.entity.js +40 -23
- package/.output/modules/inventory/products/product.document.js +28 -9
- package/.output/modules/inventory/products/product.entity.d.ts +4 -3
- package/.output/modules/inventory/products/product.entity.js +84 -66
- package/.output/modules/inventory/products/product.validator.d.ts +7 -6
- package/.output/modules/inventory/products/product.validator.js +99 -69
- package/.output/modules/inventory/products/validators/code.validator.js +24 -21
- package/.output/modules/inventory/products/validators/dimension.validator.js +30 -27
- package/.output/modules/inventory/products/validators/price.validator.d.ts +1 -1
- package/.output/modules/inventory/products/validators/price.validator.js +17 -14
- package/.output/modules/inventory/products/validators/seo.validator.js +24 -21
- package/.output/modules/inventory/properties/property.entity.js +42 -25
- package/.output/modules/inventory/properties/property.validator.js +33 -32
- package/.output/modules/search/search.validator.js +36 -26
- package/.output/modules/setting/connections/connection.validator.d.ts +0 -1
- package/.output/modules/setting/connections/connection.validator.js +23 -21
- package/.output/modules/setting/members/member.validator.d.ts +0 -1
- package/.output/modules/setting/members/member.validator.js +0 -1
- package/.output/modules/setting/organization/organization.types.js +86 -86
- package/.output/modules/setting/organization/organization.validator.js +68 -68
- package/.output/modules/setting/social/social.validator.js +15 -14
- package/.output/modules/store/clients/client.entity.js +60 -44
- package/.output/modules/store/clients/client.validator.js +53 -52
- package/.output/modules/store/orders/billing/billing.document.js +5 -7
- package/.output/modules/store/orders/billing/billing.entity.js +31 -33
- package/.output/modules/store/orders/billing/billing.validator.js +27 -28
- package/.output/modules/store/orders/item/item.document.js +5 -5
- package/.output/modules/store/orders/item/item.entity.js +41 -24
- package/.output/modules/store/orders/item/item.schema.js +2 -2
- package/.output/modules/store/orders/item/item.validator.js +16 -14
- package/.output/modules/store/orders/order.entity.js +76 -57
- package/.output/modules/store/orders/order.validator.js +60 -57
- package/.output/modules/store/orders/payment/payment.entity.js +15 -13
- package/.output/modules/store/orders/payment/payment.schema.js +2 -2
- package/.output/modules/store/orders/shipping/shipping.document.js +5 -7
- package/.output/modules/store/orders/shipping/shipping.entity.js +31 -33
- package/.output/modules/store/orders/shipping/shipping.validator.js +27 -28
- package/.output/modules/store/orders/status/status.document.js +5 -5
- package/.output/modules/store/orders/status/status.entity.js +24 -24
- package/.output/modules/users/user.validator.js +37 -41
- package/package.json +3 -3
|
@@ -10,63 +10,66 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ChangeOrderStatusValidator = exports.UpdateOrderValidator = exports.CreateOrderValidator = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
], CreateOrderValidator.prototype, "
|
|
53
|
-
__decorate([
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
], CreateOrderValidator.prototype, "
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], CreateOrderValidator.prototype, "notes", void 0);
|
|
13
|
+
var class_transformer_1 = require("class-transformer");
|
|
14
|
+
var class_validator_1 = require("class-validator");
|
|
15
|
+
var billing_validator_1 = require("./billing/billing.validator");
|
|
16
|
+
var item_validator_1 = require("./item/item.validator");
|
|
17
|
+
var payment_validator_1 = require("./payment/payment.validator");
|
|
18
|
+
var shipping_validator_1 = require("./shipping/shipping.validator");
|
|
19
|
+
var status_validator_1 = require("./status/status.validator");
|
|
20
|
+
var CreateOrderValidator = (function () {
|
|
21
|
+
function CreateOrderValidator() {
|
|
22
|
+
this.items = [];
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsMongoId)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateOrderValidator.prototype, "client", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
31
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
32
|
+
(0, class_transformer_1.Type)(function () { return item_validator_1.CreateItemValidator; }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], CreateOrderValidator.prototype, "items", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.ValidateNested)(),
|
|
37
|
+
(0, class_transformer_1.Type)(function () { return billing_validator_1.CreateBillingValidator; }),
|
|
38
|
+
(0, class_validator_1.IsNotEmptyObject)(),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
__metadata("design:type", billing_validator_1.CreateBillingValidator)
|
|
41
|
+
], CreateOrderValidator.prototype, "billing", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.ValidateNested)(),
|
|
44
|
+
(0, class_transformer_1.Type)(function () { return shipping_validator_1.CreateShippingValidator; }),
|
|
45
|
+
(0, class_validator_1.IsNotEmptyObject)(),
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
__metadata("design:type", shipping_validator_1.CreateShippingValidator)
|
|
48
|
+
], CreateOrderValidator.prototype, "shipping", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsEnum)(payment_validator_1.PaymentMethods),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateOrderValidator.prototype, "payment", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CreateOrderValidator.prototype, "notes", void 0);
|
|
57
|
+
return CreateOrderValidator;
|
|
58
|
+
}());
|
|
61
59
|
exports.CreateOrderValidator = CreateOrderValidator;
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
var UpdateOrderValidator = (function () {
|
|
61
|
+
function UpdateOrderValidator() {
|
|
62
|
+
}
|
|
63
|
+
return UpdateOrderValidator;
|
|
64
|
+
}());
|
|
64
65
|
exports.UpdateOrderValidator = UpdateOrderValidator;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
__decorate([
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
], ChangeOrderStatusValidator.prototype, "status", void 0);
|
|
66
|
+
var ChangeOrderStatusValidator = (function () {
|
|
67
|
+
function ChangeOrderStatusValidator() {
|
|
68
|
+
}
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsEnum)(status_validator_1.StatusType),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], ChangeOrderStatusValidator.prototype, "status", void 0);
|
|
73
|
+
return ChangeOrderStatusValidator;
|
|
74
|
+
}());
|
|
72
75
|
exports.ChangeOrderStatusValidator = ChangeOrderStatusValidator;
|
|
@@ -10,17 +10,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PaymentEntity = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
], PaymentEntity.prototype, "type", void 0);
|
|
23
|
-
PaymentEntity = __decorate([
|
|
24
|
-
|
|
25
|
-
], PaymentEntity);
|
|
13
|
+
var mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
var mongoose_2 = require("mongoose");
|
|
15
|
+
var payment_validator_1 = require("./payment.validator");
|
|
16
|
+
var PaymentEntity = (function () {
|
|
17
|
+
function PaymentEntity() {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, enum: payment_validator_1.PaymentMethods, required: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PaymentEntity.prototype, "type", void 0);
|
|
23
|
+
PaymentEntity = __decorate([
|
|
24
|
+
(0, mongoose_1.Schema)()
|
|
25
|
+
], PaymentEntity);
|
|
26
|
+
return PaymentEntity;
|
|
27
|
+
}());
|
|
26
28
|
exports.PaymentEntity = PaymentEntity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PaymentSchema = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var mongoose_1 = require("@nestjs/mongoose");
|
|
5
|
+
var payment_entity_1 = require("./payment.entity");
|
|
6
6
|
exports.PaymentSchema = mongoose_1.SchemaFactory.createForClass(payment_entity_1.PaymentEntity);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ShippingDocument = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
phone;
|
|
10
|
-
}
|
|
4
|
+
var ShippingDocument = (function () {
|
|
5
|
+
function ShippingDocument() {
|
|
6
|
+
}
|
|
7
|
+
return ShippingDocument;
|
|
8
|
+
}());
|
|
11
9
|
exports.ShippingDocument = ShippingDocument;
|
|
@@ -10,37 +10,35 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ShippingEntity = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
__decorate([
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
], ShippingEntity.prototype, "
|
|
27
|
-
__decorate([
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
], ShippingEntity.prototype, "
|
|
31
|
-
__decorate([
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
], ShippingEntity.prototype, "
|
|
35
|
-
__decorate([
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
], ShippingEntity.prototype, "
|
|
39
|
-
__decorate([
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
(0, schema_decorator_1.Schema)({ timestamps: true })
|
|
45
|
-
], ShippingEntity);
|
|
13
|
+
var mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
var schema_decorator_1 = require("@nestjs/mongoose/dist/decorators/schema.decorator");
|
|
15
|
+
var mongoose_2 = require("mongoose");
|
|
16
|
+
var ShippingEntity = (function () {
|
|
17
|
+
function ShippingEntity() {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], ShippingEntity.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ShippingEntity.prototype, "email", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ShippingEntity.prototype, "phone", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], ShippingEntity.prototype, "address", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], ShippingEntity.prototype, "code", void 0);
|
|
39
|
+
ShippingEntity = __decorate([
|
|
40
|
+
(0, schema_decorator_1.Schema)({ timestamps: true })
|
|
41
|
+
], ShippingEntity);
|
|
42
|
+
return ShippingEntity;
|
|
43
|
+
}());
|
|
46
44
|
exports.ShippingEntity = ShippingEntity;
|
|
@@ -10,32 +10,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateShippingValidator = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
], CreateShippingValidator.prototype, "address", void 0);
|
|
13
|
+
var class_transformer_1 = require("class-transformer");
|
|
14
|
+
var class_validator_1 = require("class-validator");
|
|
15
|
+
var user_validator_1 = require("../../../users/user.validator");
|
|
16
|
+
var CreateShippingValidator = (function () {
|
|
17
|
+
function CreateShippingValidator() {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateShippingValidator.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsEmail)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateShippingValidator.prototype, "email", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CreateShippingValidator.prototype, "phone", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.ValidateNested)(),
|
|
34
|
+
(0, class_transformer_1.Type)(function () { return user_validator_1.AddressValidator; }),
|
|
35
|
+
(0, class_validator_1.IsNotEmptyObject)(),
|
|
36
|
+
__metadata("design:type", user_validator_1.AddressValidator)
|
|
37
|
+
], CreateShippingValidator.prototype, "address", void 0);
|
|
38
|
+
return CreateShippingValidator;
|
|
39
|
+
}());
|
|
41
40
|
exports.CreateShippingValidator = CreateShippingValidator;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StatusDocument = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
4
|
+
var StatusDocument = (function () {
|
|
5
|
+
function StatusDocument() {
|
|
6
|
+
}
|
|
7
|
+
return StatusDocument;
|
|
8
|
+
}());
|
|
9
9
|
exports.StatusDocument = StatusDocument;
|
|
@@ -10,28 +10,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.StatusEntity = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
StatusEntity
|
|
35
|
-
|
|
36
|
-
|
|
13
|
+
var mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
var schema_decorator_1 = require("@nestjs/mongoose/dist/decorators/schema.decorator");
|
|
15
|
+
var mongoose_2 = require("mongoose");
|
|
16
|
+
var status_validator_1 = require("./status.validator");
|
|
17
|
+
var StatusEntity = (function () {
|
|
18
|
+
function StatusEntity() {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, enum: status_validator_1.StatusType, required: true }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], StatusEntity.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], StatusEntity.prototype, "user", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Date }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], StatusEntity.prototype, "date", void 0);
|
|
32
|
+
StatusEntity = __decorate([
|
|
33
|
+
(0, schema_decorator_1.Schema)({ timestamps: true })
|
|
34
|
+
], StatusEntity);
|
|
35
|
+
return StatusEntity;
|
|
36
|
+
}());
|
|
37
37
|
exports.StatusEntity = StatusEntity;
|
|
@@ -10,45 +10,41 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AddressValidator = void 0;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(0, class_validator_1.IsString)(),
|
|
51
|
-
(0, class_validator_1.IsOptional)(),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], AddressValidator.prototype, "state", void 0);
|
|
13
|
+
var class_validator_1 = require("class-validator");
|
|
14
|
+
var AddressValidator = (function () {
|
|
15
|
+
function AddressValidator() {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], AddressValidator.prototype, "name", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsISO31661Alpha3)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], AddressValidator.prototype, "country", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AddressValidator.prototype, "code", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AddressValidator.prototype, "line1", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AddressValidator.prototype, "line2", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], AddressValidator.prototype, "city", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], AddressValidator.prototype, "state", void 0);
|
|
48
|
+
return AddressValidator;
|
|
49
|
+
}());
|
|
54
50
|
exports.AddressValidator = AddressValidator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.2.2-
|
|
3
|
+
"version": "0.2.2-28",
|
|
4
4
|
"description": "NestJS Backend ApiRest Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"@types/auth0": "^2.35.2",
|
|
40
40
|
"class-transformer": "^0.5.1",
|
|
41
41
|
"class-validator": "^0.13.1",
|
|
42
|
-
"mongoose": "^6"
|
|
42
|
+
"mongoose": "^6",
|
|
43
|
+
"reflect-metadata": "^0.1.13"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@commitlint/config-conventional": "^17.0.0",
|
|
@@ -85,7 +86,6 @@
|
|
|
85
86
|
"nestjs-console": "^8.0.0",
|
|
86
87
|
"passport": "^0.6.0",
|
|
87
88
|
"passport-jwt": "^4.0.0",
|
|
88
|
-
"reflect-metadata": "^0.1.13",
|
|
89
89
|
"rimraf": "^3.0.2",
|
|
90
90
|
"rxjs": "^7.2.0",
|
|
91
91
|
"short-unique-id": "^4.4.4",
|