@merkaly/api 0.2.2-8 → 0.2.2
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.d.ts +10 -0
- package/.output/abstract/abstract.document.js +13 -0
- package/.output/{configs/app.entity.d.ts → abstract/abstract.entity.d.ts} +3 -3
- package/.output/abstract/abstract.entity.js +54 -0
- package/.output/abstract/abstract.fixture.d.ts +4 -0
- package/.output/abstract/abstract.fixture.js +11 -0
- package/.output/abstract/abstract.validator.d.ts +18 -0
- package/.output/abstract/abstract.validator.js +73 -0
- package/.output/modules/assets/asset.entity.d.ts +2 -2
- package/.output/modules/assets/asset.entity.js +69 -0
- package/.output/modules/content/banners/banner.document.d.ts +6 -0
- package/.output/modules/content/banners/banner.document.js +30 -0
- package/.output/modules/content/banners/banner.entity.d.ts +7 -0
- package/.output/modules/content/banners/banner.entity.js +54 -0
- package/.output/modules/content/banners/banner.fixture.d.ts +5 -0
- package/.output/modules/content/banners/banner.fixture.js +39 -0
- package/.output/modules/content/banners/banner.validator.d.ts +8 -0
- package/.output/modules/content/banners/banner.validator.js +63 -0
- package/.output/modules/content/pages/page.document.d.ts +10 -0
- package/.output/modules/content/pages/page.document.js +32 -0
- package/.output/modules/content/pages/page.entity.d.ts +11 -0
- package/.output/modules/content/pages/page.entity.js +69 -0
- package/.output/modules/content/pages/page.fixture.d.ts +5 -0
- package/.output/modules/content/pages/page.fixture.js +39 -0
- package/.output/modules/content/pages/page.types.d.ts +8 -0
- package/.output/modules/content/pages/page.types.js +13 -0
- package/.output/modules/content/pages/page.validator.d.ts +11 -0
- package/.output/modules/content/pages/page.validator.js +73 -0
- package/.output/modules/insight/validators/order.validator.d.ts +4 -0
- package/.output/modules/insight/validators/order.validator.js +27 -0
- package/.output/modules/inventory/brands/brand.document.d.ts +5 -0
- package/.output/modules/inventory/brands/brand.document.js +30 -0
- package/.output/modules/inventory/brands/brand.entity.d.ts +2 -2
- package/.output/modules/inventory/brands/brand.entity.js +50 -0
- package/.output/modules/inventory/brands/brand.validator.js +45 -0
- package/.output/modules/inventory/categories/category.document.d.ts +6 -0
- package/.output/modules/inventory/categories/category.document.js +31 -0
- package/.output/modules/inventory/categories/category.entity.d.ts +5 -2
- package/.output/modules/inventory/categories/category.entity.js +61 -0
- package/.output/modules/inventory/categories/category.fixture.d.ts +5 -0
- package/.output/modules/inventory/categories/category.fixture.js +38 -0
- package/.output/modules/inventory/categories/category.validator.d.ts +2 -0
- package/.output/modules/inventory/categories/category.validator.js +57 -0
- package/.output/modules/inventory/products/entities/code.entity.d.ts +5 -0
- package/.output/modules/inventory/products/entities/code.entity.js +53 -0
- package/.output/modules/inventory/products/entities/dimension.entity.d.ts +6 -0
- package/.output/modules/inventory/products/entities/dimension.entity.js +57 -0
- package/.output/modules/inventory/products/entities/price.entity.d.ts +4 -0
- package/.output/modules/inventory/products/entities/price.entity.js +49 -0
- package/.output/modules/inventory/products/entities/seo.entity.d.ts +5 -0
- package/.output/modules/inventory/products/entities/seo.entity.js +53 -0
- package/.output/modules/inventory/products/product.document.d.ts +24 -0
- package/.output/modules/inventory/products/product.document.js +33 -0
- package/.output/modules/inventory/products/product.entity.d.ts +13 -3
- package/.output/modules/inventory/products/product.entity.js +101 -0
- package/.output/modules/inventory/products/product.fixture.d.ts +5 -0
- package/.output/modules/inventory/products/product.fixture.js +54 -0
- package/.output/modules/inventory/products/product.validator.d.ts +15 -11
- package/.output/modules/inventory/products/product.validator.js +118 -0
- package/.output/modules/inventory/products/validators/code.validator.d.ts +5 -0
- package/.output/modules/inventory/products/validators/code.validator.js +37 -0
- package/.output/modules/inventory/products/validators/dimension.validator.d.ts +6 -0
- package/.output/modules/inventory/products/validators/dimension.validator.js +43 -0
- package/.output/modules/inventory/products/validators/price.validator.d.ts +4 -0
- package/.output/modules/inventory/products/validators/price.validator.js +30 -0
- package/.output/modules/inventory/products/validators/seo.validator.d.ts +5 -0
- package/.output/modules/inventory/products/validators/seo.validator.js +37 -0
- package/.output/modules/inventory/properties/property.entity.d.ts +7 -0
- package/.output/modules/inventory/properties/property.entity.js +55 -0
- package/.output/modules/inventory/properties/property.validator.d.ts +12 -0
- package/.output/modules/inventory/properties/property.validator.js +51 -0
- package/.output/modules/sales/clients/client.entity.d.ts +12 -0
- package/.output/modules/sales/clients/client.entity.js +73 -0
- package/.output/modules/sales/clients/client.validator.d.ts +12 -0
- package/.output/modules/sales/clients/client.validator.js +67 -0
- package/.output/modules/{store/orders/billing/billing.validator.d.ts → sales/orders/billing/billing.document.d.ts} +4 -4
- package/.output/modules/sales/orders/billing/billing.document.js +9 -0
- package/.output/modules/{store → sales}/orders/billing/billing.entity.d.ts +0 -0
- package/.output/modules/sales/orders/billing/billing.entity.js +44 -0
- package/.output/modules/sales/orders/billing/billing.validator.d.ts +7 -0
- package/.output/modules/sales/orders/billing/billing.validator.js +40 -0
- package/.output/modules/sales/orders/item/item.document.d.ts +6 -0
- package/.output/modules/sales/orders/item/item.document.js +9 -0
- package/.output/modules/sales/orders/item/item.entity.d.ts +7 -0
- package/.output/modules/sales/orders/item/item.entity.js +54 -0
- package/.output/modules/{store/orders/item/item.entity.d.ts → sales/orders/item/item.schema.d.ts} +3 -8
- package/.output/modules/sales/orders/item/item.schema.js +6 -0
- package/.output/modules/{store → sales}/orders/item/item.validator.d.ts +0 -0
- package/.output/modules/sales/orders/item/item.validator.js +29 -0
- package/.output/modules/sales/orders/order.entity.d.ts +19 -0
- package/.output/modules/sales/orders/order.entity.js +82 -0
- package/.output/modules/sales/orders/order.validator.d.ts +18 -0
- package/.output/modules/sales/orders/order.validator.js +75 -0
- package/.output/modules/sales/orders/payment/payment.entity.d.ts +4 -0
- package/.output/modules/sales/orders/payment/payment.entity.js +28 -0
- package/.output/modules/sales/orders/payment/payment.schema.d.ts +27 -0
- package/.output/modules/sales/orders/payment/payment.schema.js +6 -0
- package/.output/modules/sales/orders/payment/payment.validator.d.ts +6 -0
- package/.output/modules/sales/orders/payment/payment.validator.js +10 -0
- package/.output/modules/{store/orders/shipping/shipping.validator.d.ts → sales/orders/shipping/shipping.document.d.ts} +4 -4
- package/.output/modules/sales/orders/shipping/shipping.document.js +9 -0
- package/.output/modules/{store → sales}/orders/shipping/shipping.entity.d.ts +0 -0
- package/.output/modules/sales/orders/shipping/shipping.entity.js +44 -0
- package/.output/modules/sales/orders/shipping/shipping.validator.d.ts +7 -0
- package/.output/modules/sales/orders/shipping/shipping.validator.js +40 -0
- package/.output/modules/sales/orders/status/status.document.d.ts +5 -0
- package/.output/modules/sales/orders/status/status.document.js +9 -0
- package/.output/modules/sales/orders/status/status.entity.d.ts +6 -0
- package/.output/modules/sales/orders/status/status.entity.js +37 -0
- package/.output/modules/sales/orders/status/status.validator.d.ts +8 -0
- package/.output/modules/sales/orders/status/status.validator.js +12 -0
- package/.output/modules/search/search.validator.d.ts +6 -0
- package/.output/modules/search/search.validator.js +49 -0
- package/.output/modules/{auth → setting}/connections/connection.validator.d.ts +0 -1
- package/.output/modules/setting/connections/connection.validator.js +37 -0
- package/.output/modules/setting/layout/layout.document.d.ts +5 -0
- package/.output/modules/setting/layout/layout.document.js +29 -0
- package/.output/modules/setting/layout/layout.entity.d.ts +6 -0
- package/.output/modules/setting/layout/layout.entity.js +46 -0
- package/.output/modules/{auth → setting}/members/member.validator.d.ts +0 -1
- package/.output/modules/setting/members/member.validator.js +2 -0
- package/.output/modules/setting/organization/organization.document.d.ts +15 -0
- package/.output/modules/setting/organization/organization.document.js +31 -0
- package/.output/modules/setting/organization/organization.entity.d.ts +4 -0
- package/.output/modules/setting/organization/organization.entity.js +28 -0
- package/.output/modules/setting/organization/organization.types.d.ts +22 -0
- package/.output/modules/setting/organization/organization.types.js +102 -0
- package/.output/modules/setting/organization/organization.validator.d.ts +17 -0
- package/.output/modules/setting/organization/organization.validator.js +83 -0
- package/.output/modules/setting/theme/theme.entity.d.ts +6 -0
- package/.output/modules/setting/theme/theme.entity.js +46 -0
- package/.output/modules/users/user.validator.d.ts +10 -0
- package/.output/modules/users/user.validator.js +50 -0
- package/.output/types.d.ts +23 -0
- package/.output/types.js +2 -0
- package/package.json +22 -11
- package/.output/main.d.ts +0 -0
- package/.output/modules/auth/organizations/organization.validator.d.ts +0 -6
- package/.output/modules/store/cart/cart.entity.d.ts +0 -14
- package/.output/modules/store/cart/cart.validator.d.ts +0 -11
- package/.output/modules/store/orders/order.entity.d.ts +0 -14
- package/.output/modules/store/orders/order.validator.d.ts +0 -10
- package/.output/modules/store/orders/status/status.entity.d.ts +0 -13
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("@nestjs/mongoose");
|
|
5
|
+
var item_entity_1 = require("./item.entity");
|
|
6
|
+
exports.ItemSchema = mongoose_1.SchemaFactory.createForClass(item_entity_1.ItemEntity);
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateItemValidator = void 0;
|
|
13
|
+
var class_validator_1 = require("class-validator");
|
|
14
|
+
var CreateItemValidator = (function () {
|
|
15
|
+
function CreateItemValidator() {
|
|
16
|
+
this.quantity = 1;
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", Object)
|
|
22
|
+
], CreateItemValidator.prototype, "quantity", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsMongoId)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateItemValidator.prototype, "product", void 0);
|
|
27
|
+
return CreateItemValidator;
|
|
28
|
+
}());
|
|
29
|
+
exports.CreateItemValidator = CreateItemValidator;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { AbstractEntity } from '../../../abstract/abstract.entity';
|
|
3
|
+
import { ItemEntity } from './item/item.entity';
|
|
4
|
+
import { PaymentEntity } from './payment/payment.entity';
|
|
5
|
+
import { StatusEntity } from './status/status.entity';
|
|
6
|
+
export declare class OrderEntity extends AbstractEntity {
|
|
7
|
+
static readonly $index = "store_orders";
|
|
8
|
+
number: number;
|
|
9
|
+
status: StatusEntity[];
|
|
10
|
+
items: ItemEntity[];
|
|
11
|
+
billing?: Types.Map<any>;
|
|
12
|
+
shipping?: Types.Map<any>;
|
|
13
|
+
payment: PaymentEntity;
|
|
14
|
+
user: string;
|
|
15
|
+
notes: string;
|
|
16
|
+
readonly fullNumber: string;
|
|
17
|
+
readonly total: number;
|
|
18
|
+
readonly client: any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.OrderEntity = void 0;
|
|
28
|
+
var mongoose_1 = require("@nestjs/mongoose");
|
|
29
|
+
var mongoose_2 = require("mongoose");
|
|
30
|
+
var abstract_entity_1 = require("../../../abstract/abstract.entity");
|
|
31
|
+
var billing_entity_1 = require("./billing/billing.entity");
|
|
32
|
+
var item_schema_1 = require("./item/item.schema");
|
|
33
|
+
var payment_entity_1 = require("./payment/payment.entity");
|
|
34
|
+
var payment_schema_1 = require("./payment/payment.schema");
|
|
35
|
+
var shipping_entity_1 = require("./shipping/shipping.entity");
|
|
36
|
+
var OrderEntity = (function (_super) {
|
|
37
|
+
__extends(OrderEntity, _super);
|
|
38
|
+
function OrderEntity() {
|
|
39
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
+
_this.status = [];
|
|
41
|
+
_this.items = [];
|
|
42
|
+
return _this;
|
|
43
|
+
}
|
|
44
|
+
OrderEntity.$index = 'store_orders';
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Number, required: true, unique: true }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], OrderEntity.prototype, "number", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Array, default: [] }),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], OrderEntity.prototype, "status", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)({ type: [item_schema_1.ItemSchema], default: [] }),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], OrderEntity.prototype, "items", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return billing_entity_1.BillingEntity; } }),
|
|
59
|
+
__metadata("design:type", mongoose_2.Types.Map)
|
|
60
|
+
], OrderEntity.prototype, "billing", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return shipping_entity_1.ShippingEntity; } }),
|
|
63
|
+
__metadata("design:type", mongoose_2.Types.Map)
|
|
64
|
+
], OrderEntity.prototype, "shipping", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, mongoose_1.Prop)({ type: payment_schema_1.PaymentSchema, required: true }),
|
|
67
|
+
__metadata("design:type", payment_entity_1.PaymentEntity)
|
|
68
|
+
], OrderEntity.prototype, "payment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], OrderEntity.prototype, "user", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], OrderEntity.prototype, "notes", void 0);
|
|
77
|
+
OrderEntity = __decorate([
|
|
78
|
+
(0, mongoose_1.Schema)({ timestamps: true, toJSON: { virtuals: true } })
|
|
79
|
+
], OrderEntity);
|
|
80
|
+
return OrderEntity;
|
|
81
|
+
}(abstract_entity_1.AbstractEntity));
|
|
82
|
+
exports.OrderEntity = OrderEntity;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CreateBillingValidator } from './billing/billing.validator';
|
|
2
|
+
import { CreateItemValidator } from './item/item.validator';
|
|
3
|
+
import { PaymentMethods } from './payment/payment.validator';
|
|
4
|
+
import { CreateShippingValidator } from './shipping/shipping.validator';
|
|
5
|
+
import { StatusType } from './status/status.validator';
|
|
6
|
+
export declare class CreateOrderValidator {
|
|
7
|
+
client?: string;
|
|
8
|
+
items: CreateItemValidator[];
|
|
9
|
+
billing?: CreateBillingValidator;
|
|
10
|
+
shipping?: CreateShippingValidator;
|
|
11
|
+
payment: PaymentMethods;
|
|
12
|
+
notes?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class UpdateOrderValidator {
|
|
15
|
+
}
|
|
16
|
+
export declare class ChangeOrderStatusValidator {
|
|
17
|
+
status: StatusType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ChangeOrderStatusValidator = exports.UpdateOrderValidator = exports.CreateOrderValidator = 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
|
+
}());
|
|
59
|
+
exports.CreateOrderValidator = CreateOrderValidator;
|
|
60
|
+
var UpdateOrderValidator = (function () {
|
|
61
|
+
function UpdateOrderValidator() {
|
|
62
|
+
}
|
|
63
|
+
return UpdateOrderValidator;
|
|
64
|
+
}());
|
|
65
|
+
exports.UpdateOrderValidator = UpdateOrderValidator;
|
|
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
|
+
}());
|
|
75
|
+
exports.ChangeOrderStatusValidator = ChangeOrderStatusValidator;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PaymentEntity = void 0;
|
|
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
|
+
}());
|
|
28
|
+
exports.PaymentEntity = PaymentEntity;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose" />
|
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
+
import { PaymentEntity } from './payment.entity';
|
|
27
|
+
export declare const PaymentSchema: import("mongoose").Schema<PaymentEntity, import("mongoose").Model<PaymentEntity, any, any, any, any>, {}, {}, {}, {}, "type", PaymentEntity>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentSchema = void 0;
|
|
4
|
+
var mongoose_1 = require("@nestjs/mongoose");
|
|
5
|
+
var payment_entity_1 = require("./payment.entity");
|
|
6
|
+
exports.PaymentSchema = mongoose_1.SchemaFactory.createForClass(payment_entity_1.PaymentEntity);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethods = void 0;
|
|
4
|
+
var PaymentMethods;
|
|
5
|
+
(function (PaymentMethods) {
|
|
6
|
+
PaymentMethods["COD"] = "CASH_ON_DELIVERY";
|
|
7
|
+
PaymentMethods["CARD"] = "CARD";
|
|
8
|
+
PaymentMethods["TRANSFER"] = "TRANSFER";
|
|
9
|
+
PaymentMethods["CRYPTO"] = "CRYPTO";
|
|
10
|
+
})(PaymentMethods = exports.PaymentMethods || (exports.PaymentMethods = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShippingDocument = void 0;
|
|
4
|
+
var ShippingDocument = (function () {
|
|
5
|
+
function ShippingDocument() {
|
|
6
|
+
}
|
|
7
|
+
return ShippingDocument;
|
|
8
|
+
}());
|
|
9
|
+
exports.ShippingDocument = ShippingDocument;
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ShippingEntity = void 0;
|
|
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
|
+
}());
|
|
44
|
+
exports.ShippingEntity = ShippingEntity;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateShippingValidator = 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
|
+
}());
|
|
40
|
+
exports.CreateShippingValidator = CreateShippingValidator;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StatusEntity = void 0;
|
|
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
|
+
exports.StatusEntity = StatusEntity;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatusType = void 0;
|
|
4
|
+
var StatusType;
|
|
5
|
+
(function (StatusType) {
|
|
6
|
+
StatusType["CREATED"] = "CREATED";
|
|
7
|
+
StatusType["ACCEPTED"] = "ACCEPTED";
|
|
8
|
+
StatusType["IN_PREPARATION"] = "IN_PREPARATION";
|
|
9
|
+
StatusType["SENDED"] = "SENDED";
|
|
10
|
+
StatusType["COMPLETED"] = "COMPLETED";
|
|
11
|
+
StatusType["CANCELED"] = "CANCELED";
|
|
12
|
+
})(StatusType = exports.StatusType || (exports.StatusType = {}));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SearchValidator = void 0;
|
|
13
|
+
var class_transformer_1 = require("class-transformer");
|
|
14
|
+
var class_validator_1 = require("class-validator");
|
|
15
|
+
var SearchValidator = (function () {
|
|
16
|
+
function SearchValidator() {
|
|
17
|
+
this.from = 0;
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
22
|
+
var value = _a.value;
|
|
23
|
+
return JSON.parse(value || 'null');
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], SearchValidator.prototype, "query", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
30
|
+
var value = _a.value;
|
|
31
|
+
return Number(value);
|
|
32
|
+
}),
|
|
33
|
+
(0, class_validator_1.IsInt)(),
|
|
34
|
+
(0, class_validator_1.Min)(1),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], SearchValidator.prototype, "size", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
40
|
+
var value = _a.value;
|
|
41
|
+
return Number(value);
|
|
42
|
+
}),
|
|
43
|
+
(0, class_validator_1.IsInt)(),
|
|
44
|
+
(0, class_validator_1.Min)(0),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], SearchValidator.prototype, "from", void 0);
|
|
47
|
+
return SearchValidator;
|
|
48
|
+
}());
|
|
49
|
+
exports.SearchValidator = SearchValidator;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AddOrganizationEnabledConnection, UpdateOrganizationEnabledConnection } from 'auth0';
|
|
2
|
-
import 'reflect-metadata';
|
|
3
2
|
export declare class CreateConnectionValidator implements AddOrganizationEnabledConnection {
|
|
4
3
|
connection_id: AddOrganizationEnabledConnection['connection_id'];
|
|
5
4
|
assign_membership_on_login: AddOrganizationEnabledConnection['assign_membership_on_login'];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateConnectionValidator = exports.CreateConnectionValidator = void 0;
|
|
13
|
+
var class_validator_1 = require("class-validator");
|
|
14
|
+
var CreateConnectionValidator = (function () {
|
|
15
|
+
function CreateConnectionValidator() {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", Object)
|
|
20
|
+
], CreateConnectionValidator.prototype, "connection_id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsBoolean)(),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], CreateConnectionValidator.prototype, "assign_membership_on_login", void 0);
|
|
25
|
+
return CreateConnectionValidator;
|
|
26
|
+
}());
|
|
27
|
+
exports.CreateConnectionValidator = CreateConnectionValidator;
|
|
28
|
+
var UpdateConnectionValidator = (function () {
|
|
29
|
+
function UpdateConnectionValidator() {
|
|
30
|
+
}
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsBoolean)(),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], UpdateConnectionValidator.prototype, "assign_membership_on_login", void 0);
|
|
35
|
+
return UpdateConnectionValidator;
|
|
36
|
+
}());
|
|
37
|
+
exports.UpdateConnectionValidator = UpdateConnectionValidator;
|