@merkaly/api 0.2.5-4 → 0.2.5-6
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/.bin/deploy.sh +9 -0
- package/.bin/package.sh +12 -0
- package/.docker/Dockerfile +21 -0
- package/.dockerignore +12 -0
- package/.github/dependabot.yml +17 -0
- package/.github/semantic.yml +5 -0
- package/.github/workflows/pull_request.yml +35 -0
- package/.prettierrc +5 -0
- package/app.ts +11 -0
- package/authCertificate.pem +19 -0
- package/nest-cli.json +8 -0
- package/package.json +66 -78
- package/src/abstracts/abstarct.repository.ts +62 -0
- package/src/abstracts/abstract.controller.ts +18 -0
- package/src/abstracts/abstract.entity.ts +22 -0
- package/src/abstracts/abstract.router.ts +7 -0
- package/src/abstracts/abstract.validator.ts +61 -0
- package/src/app.config.ts +59 -0
- package/src/app.console.ts +24 -0
- package/src/app.guard.ts +39 -0
- package/src/app.module.ts +54 -0
- package/src/app.strategy.ts +21 -0
- package/src/commands/seed.command.ts +263 -0
- package/src/decorators/public.decorator.ts +5 -0
- package/src/decorators/user.decorator.ts +30 -0
- package/src/exceptions/missing-identity.exception.ts +11 -0
- package/src/interceptors/mongoose.interceptor.ts +63 -0
- package/src/main.ts +27 -0
- package/src/middlewares/router.middleware.ts +14 -0
- package/src/modules/asset/asset.module.ts +19 -0
- package/src/modules/asset/files/file.controller.ts +22 -0
- package/src/modules/asset/files/file.entity.ts +24 -0
- package/src/modules/asset/files/file.module.ts +21 -0
- package/src/modules/asset/files/file.repository.ts +44 -0
- package/src/modules/asset/files/file.schema.ts +8 -0
- package/src/modules/asset/files/file.service.ts +4 -0
- package/src/modules/auth/auth.controller.ts +57 -0
- package/src/modules/auth/auth.module.ts +20 -0
- package/src/modules/auth/organizations/organization.controller.ts +20 -0
- package/src/modules/auth/organizations/organization.entity.ts +22 -0
- package/src/modules/auth/organizations/organization.module.ts +21 -0
- package/src/modules/auth/organizations/organization.repository.ts +16 -0
- package/src/modules/auth/organizations/organization.schema.ts +8 -0
- package/src/modules/auth/users/user.controller.ts +23 -0
- package/src/modules/auth/users/user.entity.ts +25 -0
- package/src/modules/auth/users/user.module.ts +20 -0
- package/src/modules/auth/users/user.repository.ts +79 -0
- package/src/modules/auth/users/user.schema.ts +8 -0
- package/src/modules/auth/users/user.validator.ts +32 -0
- package/src/modules/command.module.ts +15 -0
- package/src/modules/global.module.ts +46 -0
- package/src/modules/inventory/brands/brand.controller.ts +44 -0
- package/src/modules/inventory/brands/brand.entity.ts +20 -0
- package/src/modules/inventory/brands/brand.module.ts +20 -0
- package/src/modules/inventory/brands/brand.repository.ts +40 -0
- package/src/modules/inventory/brands/brand.schema.ts +8 -0
- package/src/modules/inventory/brands/brand.validator.ts +31 -0
- package/src/modules/inventory/categories/category.controller.ts +42 -0
- package/src/modules/inventory/categories/category.entity.ts +15 -0
- package/src/modules/inventory/categories/category.module.ts +19 -0
- package/src/modules/inventory/categories/category.repository.ts +34 -0
- package/src/modules/inventory/categories/category.schema.ts +8 -0
- package/src/modules/inventory/categories/category.validator.ts +20 -0
- package/src/modules/inventory/complements/complement.controller.ts +41 -0
- package/src/modules/inventory/complements/complement.entity.ts +15 -0
- package/src/modules/inventory/complements/complement.module.ts +19 -0
- package/src/modules/inventory/complements/complement.repository.ts +37 -0
- package/src/modules/inventory/complements/complement.schema.ts +8 -0
- package/src/modules/inventory/complements/complement.validator.ts +28 -0
- package/src/modules/inventory/inventory.module.ts +23 -0
- package/src/modules/inventory/products/documents/attribute.document.ts +14 -0
- package/src/modules/inventory/products/documents/dimension.document.ts +16 -0
- package/src/modules/inventory/products/product.controller.ts +62 -0
- package/src/modules/inventory/products/product.entity.ts +46 -0
- package/src/modules/inventory/products/product.module.ts +19 -0
- package/src/modules/inventory/products/product.repository.ts +64 -0
- package/src/modules/inventory/products/product.schema.ts +19 -0
- package/src/modules/inventory/products/product.validator.ts +132 -0
- package/src/modules/inventory/products/validators/attributes.validator.ts +15 -0
- package/src/modules/inventory/products/validators/dimension.validator.ts +19 -0
- package/src/modules/sale/customers/customer.controller.ts +41 -0
- package/src/modules/sale/customers/customer.entity.ts +19 -0
- package/src/modules/sale/customers/customer.module.ts +18 -0
- package/src/modules/sale/customers/customer.repository.ts +30 -0
- package/src/modules/sale/customers/customer.schema.ts +8 -0
- package/src/modules/sale/customers/customer.validator.ts +43 -0
- package/src/modules/sale/orders/documents/address.document.ts +22 -0
- package/src/modules/sale/orders/documents/status.document.ts +17 -0
- package/src/modules/sale/orders/entities/item.entity.ts +24 -0
- package/src/modules/sale/orders/enums/order.status.ts +6 -0
- package/src/modules/sale/orders/order.controller.ts +65 -0
- package/src/modules/sale/orders/order.entity.ts +46 -0
- package/src/modules/sale/orders/order.module.ts +22 -0
- package/src/modules/sale/orders/order.repository.ts +122 -0
- package/src/modules/sale/orders/order.schema.ts +36 -0
- package/src/modules/sale/orders/order.validator.ts +44 -0
- package/src/modules/sale/orders/validators/address.validator.ts +50 -0
- package/src/modules/sale/orders/validators/billing.validator.ts +11 -0
- package/src/modules/sale/orders/validators/item.validator.ts +14 -0
- package/src/modules/sale/orders/validators/payment.validator.ts +44 -0
- package/src/modules/sale/orders/validators/shipping.validator.ts +14 -0
- package/src/modules/sale/payments/entities/status.entity.ts +17 -0
- package/src/modules/sale/payments/enums/billing.type.ts +6 -0
- package/src/modules/sale/payments/enums/payment.status.ts +7 -0
- package/src/modules/sale/payments/enums/shipping.type.ts +4 -0
- package/src/modules/sale/payments/payment.controller.ts +45 -0
- package/src/modules/sale/payments/payment.entity.ts +25 -0
- package/src/modules/sale/payments/payment.module.ts +20 -0
- package/src/modules/sale/payments/payment.repository.ts +57 -0
- package/src/modules/sale/payments/payment.schema.ts +14 -0
- package/src/modules/sale/payments/payment.validator.ts +32 -0
- package/src/modules/sale/sale.module.ts +20 -0
- package/src/services/auth0.service.ts +49 -0
- package/src/services/mongo.service.ts +52 -0
- package/test/auth/auth.spec.ts +20 -0
- package/test/main.ts +12 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +21 -0
- package/tsconfig.package.json +22 -0
- package/.output/abstract/abstract.entity.d.ts +0 -9
- package/.output/abstract/abstract.exception.d.ts +0 -11
- package/.output/abstract/abstract.exception.js +0 -53
- package/.output/abstract/abstract.fixture.d.ts +0 -4
- package/.output/abstract/abstract.fixture.js +0 -11
- package/.output/abstract/abstract.validator.d.ts +0 -20
- package/.output/abstract/abstract.validator.js +0 -105
- package/.output/exceptions/missing-identity.exception.d.ts +0 -5
- package/.output/exceptions/missing-identity.exception.js +0 -30
- package/.output/exceptions/store-not-implemented.exception.d.ts +0 -5
- package/.output/exceptions/store-not-implemented.exception.js +0 -31
- package/.output/exceptions/store-not-recognized.exception.d.ts +0 -5
- package/.output/exceptions/store-not-recognized.exception.js +0 -30
- package/.output/modules/asset/files/file.entity.d.ts +0 -10
- package/.output/modules/auth/auth.types.d.ts +0 -3
- package/.output/modules/auth/auth.types.js +0 -7
- package/.output/modules/auth/users/user.validator.d.ts +0 -10
- package/.output/modules/auth/users/user.validator.js +0 -50
- package/.output/modules/config/organization/organization.entity.d.ts +0 -21
- package/.output/modules/config/organization/organization.types.d.ts +0 -23
- package/.output/modules/config/organization/organization.types.js +0 -107
- package/.output/modules/config/organization/organization.validator.d.ts +0 -18
- package/.output/modules/config/organization/organization.validator.js +0 -88
- package/.output/modules/insight/validators/order.validator.d.ts +0 -4
- package/.output/modules/insight/validators/order.validator.js +0 -27
- package/.output/modules/inventory/brands/brand.entity.d.ts +0 -9
- package/.output/modules/inventory/brands/brand.exception.d.ts +0 -5
- package/.output/modules/inventory/brands/brand.exception.js +0 -40
- package/.output/modules/inventory/brands/brand.validator.d.ts +0 -11
- package/.output/modules/inventory/brands/brand.validator.js +0 -75
- package/.output/modules/inventory/categories/category.entity.d.ts +0 -12
- package/.output/modules/inventory/categories/category.exception.d.ts +0 -5
- package/.output/modules/inventory/categories/category.exception.js +0 -40
- package/.output/modules/inventory/categories/category.fixture.d.ts +0 -5
- package/.output/modules/inventory/categories/category.fixture.js +0 -38
- package/.output/modules/inventory/categories/category.validator.d.ts +0 -13
- package/.output/modules/inventory/categories/category.validator.js +0 -88
- package/.output/modules/inventory/products/entities/code.entity.d.ts +0 -5
- package/.output/modules/inventory/products/entities/dimension.entity.d.ts +0 -6
- package/.output/modules/inventory/products/entities/seo.entity.d.ts +0 -5
- package/.output/modules/inventory/products/entities/variant.entity.d.ts +0 -10
- package/.output/modules/inventory/products/product.entity.d.ts +0 -26
- package/.output/modules/inventory/products/product.exception.d.ts +0 -5
- package/.output/modules/inventory/products/product.exception.js +0 -40
- package/.output/modules/inventory/products/product.fixture.d.ts +0 -5
- package/.output/modules/inventory/products/product.fixture.js +0 -39
- package/.output/modules/inventory/products/product.validator.d.ts +0 -38
- package/.output/modules/inventory/products/product.validator.js +0 -235
- package/.output/modules/inventory/products/schemas/variant.schema.d.ts +0 -27
- package/.output/modules/inventory/products/schemas/variant.schema.js +0 -6
- package/.output/modules/inventory/products/validators/code.validator.d.ts +0 -5
- package/.output/modules/inventory/products/validators/code.validator.js +0 -37
- package/.output/modules/inventory/products/validators/dimension.validator.d.ts +0 -6
- package/.output/modules/inventory/products/validators/dimension.validator.js +0 -43
- package/.output/modules/inventory/products/validators/seo.validator.d.ts +0 -5
- package/.output/modules/inventory/products/validators/seo.validator.js +0 -34
- package/.output/modules/inventory/products/validators/variant.validator.d.ts +0 -9
- package/.output/modules/inventory/products/validators/variant.validator.js +0 -39
- package/.output/modules/inventory/properties/property.entity.d.ts +0 -8
- package/.output/modules/inventory/properties/property.exception.d.ts +0 -5
- package/.output/modules/inventory/properties/property.exception.js +0 -40
- package/.output/modules/inventory/properties/property.types.d.ts +0 -6
- package/.output/modules/inventory/properties/property.types.js +0 -10
- package/.output/modules/inventory/properties/property.validator.d.ts +0 -12
- package/.output/modules/inventory/properties/property.validator.js +0 -79
- package/.output/modules/layout/pages/page.entity.d.ts +0 -8
- package/.output/modules/layout/pages/page.fixture.d.ts +0 -5
- package/.output/modules/layout/pages/page.fixture.js +0 -36
- package/.output/modules/layout/pages/page.types.d.ts +0 -20
- package/.output/modules/layout/pages/page.types.js +0 -2
- package/.output/modules/layout/pages/page.validator.d.ts +0 -8
- package/.output/modules/layout/pages/page.validator.js +0 -61
- package/.output/modules/sale/customers/customer.entity.d.ts +0 -12
- package/.output/modules/sale/customers/customer.exception.d.ts +0 -5
- package/.output/modules/sale/customers/customer.exception.js +0 -40
- package/.output/modules/sale/customers/customer.validator.d.ts +0 -18
- package/.output/modules/sale/customers/customer.validator.js +0 -107
- package/.output/modules/sale/orders/billing/billing.entity.d.ts +0 -10
- package/.output/modules/sale/orders/billing/billing.types.d.ts +0 -9
- package/.output/modules/sale/orders/billing/billing.types.js +0 -14
- package/.output/modules/sale/orders/billing/billing.validator.d.ts +0 -9
- package/.output/modules/sale/orders/billing/billing.validator.js +0 -42
- package/.output/modules/sale/orders/billing/entities/address.entity.d.ts +0 -10
- package/.output/modules/sale/orders/billing/entities/customer.entity.d.ts +0 -5
- package/.output/modules/sale/orders/billing/entities/status.entity.d.ts +0 -6
- package/.output/modules/sale/orders/billing/validators/address.validator.d.ts +0 -10
- package/.output/modules/sale/orders/billing/validators/address.validator.js +0 -56
- package/.output/modules/sale/orders/billing/validators/customer.validator.d.ts +0 -5
- package/.output/modules/sale/orders/billing/validators/customer.validator.js +0 -36
- package/.output/modules/sale/orders/customer/customer.entity.d.ts +0 -5
- package/.output/modules/sale/orders/customer/customer.validator.d.ts +0 -5
- package/.output/modules/sale/orders/customer/customer.validator.js +0 -36
- package/.output/modules/sale/orders/item/item.entity.d.ts +0 -9
- package/.output/modules/sale/orders/item/item.schema.d.ts +0 -27
- package/.output/modules/sale/orders/item/item.schema.js +0 -9
- package/.output/modules/sale/orders/item/item.validator.d.ts +0 -4
- package/.output/modules/sale/orders/item/item.validator.js +0 -29
- package/.output/modules/sale/orders/order.entity.d.ts +0 -21
- package/.output/modules/sale/orders/order.exception.d.ts +0 -13
- package/.output/modules/sale/orders/order.exception.js +0 -46
- package/.output/modules/sale/orders/order.validator.d.ts +0 -28
- package/.output/modules/sale/orders/order.validator.js +0 -140
- package/.output/modules/sale/orders/shipping/entities/address.entity.d.ts +0 -10
- package/.output/modules/sale/orders/shipping/entities/customer.entity.d.ts +0 -5
- package/.output/modules/sale/orders/shipping/entities/status.entity.d.ts +0 -6
- package/.output/modules/sale/orders/shipping/shipping.entity.d.ts +0 -11
- package/.output/modules/sale/orders/shipping/shipping.types.d.ts +0 -11
- package/.output/modules/sale/orders/shipping/shipping.types.js +0 -16
- package/.output/modules/sale/orders/shipping/shipping.validator.d.ts +0 -10
- package/.output/modules/sale/orders/shipping/shipping.validator.js +0 -48
- package/.output/modules/sale/orders/shipping/validators/address.validator.d.ts +0 -10
- package/.output/modules/sale/orders/shipping/validators/address.validator.js +0 -56
- package/.output/modules/sale/orders/shipping/validators/customer.validator.d.ts +0 -5
- package/.output/modules/sale/orders/shipping/validators/customer.validator.js +0 -36
- package/.output/modules/sale/orders/status/status.entity.d.ts +0 -6
- package/.output/modules/sale/orders/status/status.validator.d.ts +0 -8
- package/.output/modules/sale/orders/status/status.validator.js +0 -12
- package/.output/services/logger.service.d.ts +0 -11
- package/.output/services/logger.service.js +0 -50
- package/.output/types.d.ts +0 -18
- package/.output/types.js +0 -2
- package/LICENSE +0 -674
|
@@ -1,105 +0,0 @@
|
|
|
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.FindValidator = exports.AbstractValidator = void 0;
|
|
28
|
-
var class_transformer_1 = require("class-transformer");
|
|
29
|
-
var class_validator_1 = require("class-validator");
|
|
30
|
-
require("reflect-metadata");
|
|
31
|
-
var AbstractValidator = (function () {
|
|
32
|
-
function AbstractValidator() {
|
|
33
|
-
}
|
|
34
|
-
return AbstractValidator;
|
|
35
|
-
}());
|
|
36
|
-
exports.AbstractValidator = AbstractValidator;
|
|
37
|
-
var FindValidator = (function (_super) {
|
|
38
|
-
__extends(FindValidator, _super);
|
|
39
|
-
function FindValidator() {
|
|
40
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
41
|
-
_this.limit = 10;
|
|
42
|
-
_this.page = 1;
|
|
43
|
-
_this.sort = {};
|
|
44
|
-
_this.filters = {};
|
|
45
|
-
_this.join = [];
|
|
46
|
-
return _this;
|
|
47
|
-
}
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
50
|
-
var value = _a.value;
|
|
51
|
-
return value ? Number(value) : 10;
|
|
52
|
-
}),
|
|
53
|
-
(0, class_validator_1.IsInt)(),
|
|
54
|
-
(0, class_validator_1.IsOptional)(),
|
|
55
|
-
__metadata("design:type", Object)
|
|
56
|
-
], FindValidator.prototype, "limit", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
59
|
-
var value = _a.value;
|
|
60
|
-
return value ? Number(value) : 1;
|
|
61
|
-
}),
|
|
62
|
-
(0, class_validator_1.IsInt)(),
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
__metadata("design:type", Object)
|
|
65
|
-
], FindValidator.prototype, "page", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
68
|
-
var value = _a.value;
|
|
69
|
-
if ((0, class_validator_1.isObject)(value)) {
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
return value && JSON.parse(value);
|
|
73
|
-
}),
|
|
74
|
-
(0, class_validator_1.IsOptional)(),
|
|
75
|
-
__metadata("design:type", Object)
|
|
76
|
-
], FindValidator.prototype, "sort", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
79
|
-
var value = _a.value;
|
|
80
|
-
if ((0, class_validator_1.isObject)(value)) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
return value && JSON.parse(value);
|
|
84
|
-
}),
|
|
85
|
-
(0, class_validator_1.IsOptional)(),
|
|
86
|
-
__metadata("design:type", Object)
|
|
87
|
-
], FindValidator.prototype, "filters", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
90
|
-
var value = _a.value;
|
|
91
|
-
return value.map(function (path) {
|
|
92
|
-
try {
|
|
93
|
-
return JSON.parse(path);
|
|
94
|
-
}
|
|
95
|
-
catch (e) {
|
|
96
|
-
return path;
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}),
|
|
100
|
-
(0, class_validator_1.IsOptional)(),
|
|
101
|
-
__metadata("design:type", Array)
|
|
102
|
-
], FindValidator.prototype, "join", void 0);
|
|
103
|
-
return FindValidator;
|
|
104
|
-
}(AbstractValidator));
|
|
105
|
-
exports.FindValidator = FindValidator;
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MissingIdentityException = void 0;
|
|
19
|
-
var common_1 = require("@nestjs/common");
|
|
20
|
-
var MissingIdentityException = (function (_super) {
|
|
21
|
-
__extends(MissingIdentityException, _super);
|
|
22
|
-
function MissingIdentityException() {
|
|
23
|
-
return _super.call(this, 'Missing identity parameter on your request') || this;
|
|
24
|
-
}
|
|
25
|
-
MissingIdentityException.throw = function () {
|
|
26
|
-
throw new MissingIdentityException;
|
|
27
|
-
};
|
|
28
|
-
return MissingIdentityException;
|
|
29
|
-
}(common_1.PreconditionFailedException));
|
|
30
|
-
exports.MissingIdentityException = MissingIdentityException;
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.StoreNotImplementedException = void 0;
|
|
19
|
-
var common_1 = require("@nestjs/common");
|
|
20
|
-
var StoreNotImplementedException = (function (_super) {
|
|
21
|
-
__extends(StoreNotImplementedException, _super);
|
|
22
|
-
function StoreNotImplementedException(identity) {
|
|
23
|
-
return _super.call(this, "No store found by that id or name: [" + identity + "]") || this;
|
|
24
|
-
}
|
|
25
|
-
StoreNotImplementedException.throw = function (identity) {
|
|
26
|
-
common_1.Logger.warn('Store not found or implemented', identity);
|
|
27
|
-
throw new StoreNotImplementedException(identity);
|
|
28
|
-
};
|
|
29
|
-
return StoreNotImplementedException;
|
|
30
|
-
}(common_1.NotFoundException));
|
|
31
|
-
exports.StoreNotImplementedException = StoreNotImplementedException;
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.StoreNotRecognizedException = void 0;
|
|
19
|
-
var not_acceptable_exception_1 = require("@nestjs/common/exceptions/not-acceptable.exception");
|
|
20
|
-
var StoreNotRecognizedException = (function (_super) {
|
|
21
|
-
__extends(StoreNotRecognizedException, _super);
|
|
22
|
-
function StoreNotRecognizedException() {
|
|
23
|
-
return _super.call(this, "The store could not be accepted") || this;
|
|
24
|
-
}
|
|
25
|
-
StoreNotRecognizedException.throw = function () {
|
|
26
|
-
throw new StoreNotRecognizedException();
|
|
27
|
-
};
|
|
28
|
-
return StoreNotRecognizedException;
|
|
29
|
-
}(not_acceptable_exception_1.NotAcceptableException));
|
|
30
|
-
exports.StoreNotRecognizedException = StoreNotRecognizedException;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstract/abstract.entity';
|
|
2
|
-
export declare class FileEntity extends AbstractEntity {
|
|
3
|
-
static readonly $index = "asset_files";
|
|
4
|
-
name: string;
|
|
5
|
-
url: string;
|
|
6
|
-
weak: boolean;
|
|
7
|
-
description: string;
|
|
8
|
-
type: string;
|
|
9
|
-
size: number;
|
|
10
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
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.AddressValidator = 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.IsISO31661Alpha2)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], AddressValidator.prototype, "country", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], AddressValidator.prototype, "code", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], AddressValidator.prototype, "street", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], AddressValidator.prototype, "number", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsString)(),
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], AddressValidator.prototype, "complement", 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
|
-
}());
|
|
50
|
-
exports.AddressValidator = AddressValidator;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstract/abstract.entity';
|
|
2
|
-
import { OrganizationMetadataAddress, OrganizationMetadataInformation, OrganizationMetadataLocalization, OrganizationMetadataSocial } from "./organization.types";
|
|
3
|
-
import { Organization } from 'auth0';
|
|
4
|
-
export interface OrganizationMetadata {
|
|
5
|
-
address?: OrganizationMetadataAddress;
|
|
6
|
-
domain: {
|
|
7
|
-
name: string;
|
|
8
|
-
forceRedirect?: boolean;
|
|
9
|
-
};
|
|
10
|
-
information?: OrganizationMetadataInformation;
|
|
11
|
-
localization?: OrganizationMetadataLocalization;
|
|
12
|
-
social?: OrganizationMetadataSocial[];
|
|
13
|
-
theme: string;
|
|
14
|
-
}
|
|
15
|
-
export declare class OrganizationEntity extends AbstractEntity {
|
|
16
|
-
static readonly $index = "config_organization";
|
|
17
|
-
name: string;
|
|
18
|
-
display_name: string;
|
|
19
|
-
metadata: OrganizationMetadata;
|
|
20
|
-
branding: Organization['branding'];
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { MetaAddress } from '../../../types';
|
|
2
|
-
export declare class OrganizationMetadataInformation {
|
|
3
|
-
title: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
keywords: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare class OrganizationMetadataLocalization {
|
|
8
|
-
language: string;
|
|
9
|
-
currency: string;
|
|
10
|
-
}
|
|
11
|
-
export declare class OrganizationMetadataSocial {
|
|
12
|
-
name: string;
|
|
13
|
-
url: string;
|
|
14
|
-
}
|
|
15
|
-
export declare class OrganizationMetadataAddress implements MetaAddress {
|
|
16
|
-
country: string;
|
|
17
|
-
code: string;
|
|
18
|
-
street: string;
|
|
19
|
-
number: string;
|
|
20
|
-
complement?: string;
|
|
21
|
-
city: string;
|
|
22
|
-
state: string;
|
|
23
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
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.OrganizationMetadataAddress = exports.OrganizationMetadataSocial = exports.OrganizationMetadataLocalization = exports.OrganizationMetadataInformation = void 0;
|
|
13
|
-
var class_validator_1 = require("class-validator");
|
|
14
|
-
var OrganizationMetadataInformation = (function () {
|
|
15
|
-
function OrganizationMetadataInformation() {
|
|
16
|
-
this.keywords = [];
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsOptional)(),
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], OrganizationMetadataInformation.prototype, "title", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsOptional)(),
|
|
25
|
-
(0, class_validator_1.IsString)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], OrganizationMetadataInformation.prototype, "description", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsOptional)(),
|
|
30
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
31
|
-
__metadata("design:type", Array)
|
|
32
|
-
], OrganizationMetadataInformation.prototype, "keywords", void 0);
|
|
33
|
-
return OrganizationMetadataInformation;
|
|
34
|
-
}());
|
|
35
|
-
exports.OrganizationMetadataInformation = OrganizationMetadataInformation;
|
|
36
|
-
var OrganizationMetadataLocalization = (function () {
|
|
37
|
-
function OrganizationMetadataLocalization() {
|
|
38
|
-
}
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], OrganizationMetadataLocalization.prototype, "language", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.IsOptional)(),
|
|
46
|
-
(0, class_validator_1.IsString)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], OrganizationMetadataLocalization.prototype, "currency", void 0);
|
|
49
|
-
return OrganizationMetadataLocalization;
|
|
50
|
-
}());
|
|
51
|
-
exports.OrganizationMetadataLocalization = OrganizationMetadataLocalization;
|
|
52
|
-
var OrganizationMetadataSocial = (function () {
|
|
53
|
-
function OrganizationMetadataSocial() {
|
|
54
|
-
}
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_validator_1.IsOptional)(),
|
|
57
|
-
(0, class_validator_1.IsString)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], OrganizationMetadataSocial.prototype, "name", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
(0, class_validator_1.IsUrl)(),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], OrganizationMetadataSocial.prototype, "url", void 0);
|
|
65
|
-
return OrganizationMetadataSocial;
|
|
66
|
-
}());
|
|
67
|
-
exports.OrganizationMetadataSocial = OrganizationMetadataSocial;
|
|
68
|
-
var OrganizationMetadataAddress = (function () {
|
|
69
|
-
function OrganizationMetadataAddress() {
|
|
70
|
-
}
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_validator_1.IsOptional)(),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], OrganizationMetadataAddress.prototype, "country", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsString)(),
|
|
77
|
-
(0, class_validator_1.IsOptional)(),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], OrganizationMetadataAddress.prototype, "code", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, class_validator_1.IsString)(),
|
|
82
|
-
(0, class_validator_1.IsOptional)(),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], OrganizationMetadataAddress.prototype, "street", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsString)(),
|
|
87
|
-
(0, class_validator_1.IsOptional)(),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], OrganizationMetadataAddress.prototype, "number", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, class_validator_1.IsString)(),
|
|
92
|
-
(0, class_validator_1.IsOptional)(),
|
|
93
|
-
__metadata("design:type", String)
|
|
94
|
-
], OrganizationMetadataAddress.prototype, "complement", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, class_validator_1.IsOptional)(),
|
|
97
|
-
(0, class_validator_1.IsString)(),
|
|
98
|
-
__metadata("design:type", String)
|
|
99
|
-
], OrganizationMetadataAddress.prototype, "city", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, class_validator_1.IsString)(),
|
|
102
|
-
(0, class_validator_1.IsOptional)(),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], OrganizationMetadataAddress.prototype, "state", void 0);
|
|
105
|
-
return OrganizationMetadataAddress;
|
|
106
|
-
}());
|
|
107
|
-
exports.OrganizationMetadataAddress = OrganizationMetadataAddress;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CreateOrganization, UpdateOrganization } from 'auth0';
|
|
2
|
-
import { OrganizationMetadataAddress, OrganizationMetadataInformation, OrganizationMetadataLocalization, OrganizationMetadataSocial } from './organization.types';
|
|
3
|
-
export declare class OrganizationMetadataValidator {
|
|
4
|
-
information?: OrganizationMetadataInformation;
|
|
5
|
-
localization?: OrganizationMetadataLocalization;
|
|
6
|
-
address?: OrganizationMetadataAddress;
|
|
7
|
-
social?: OrganizationMetadataSocial[];
|
|
8
|
-
}
|
|
9
|
-
export declare class CreateOrganizationValidator implements CreateOrganization {
|
|
10
|
-
name: string;
|
|
11
|
-
email: string;
|
|
12
|
-
password?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class UpdateOrganizationValidator implements UpdateOrganization {
|
|
15
|
-
display_name?: string;
|
|
16
|
-
branding?: UpdateOrganization['branding'];
|
|
17
|
-
metadata: OrganizationMetadataValidator;
|
|
18
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
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.UpdateOrganizationValidator = exports.CreateOrganizationValidator = exports.OrganizationMetadataValidator = void 0;
|
|
13
|
-
var class_transformer_1 = require("class-transformer");
|
|
14
|
-
var class_validator_1 = require("class-validator");
|
|
15
|
-
var organization_types_1 = require("./organization.types");
|
|
16
|
-
var OrganizationMetadataValidator = (function () {
|
|
17
|
-
function OrganizationMetadataValidator() {
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsOptional)(),
|
|
21
|
-
(0, class_validator_1.ValidateNested)(),
|
|
22
|
-
(0, class_transformer_1.Type)(function () { return organization_types_1.OrganizationMetadataInformation; }),
|
|
23
|
-
__metadata("design:type", organization_types_1.OrganizationMetadataInformation)
|
|
24
|
-
], OrganizationMetadataValidator.prototype, "information", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
(0, class_validator_1.ValidateNested)(),
|
|
28
|
-
(0, class_transformer_1.Type)(function () { return organization_types_1.OrganizationMetadataLocalization; }),
|
|
29
|
-
__metadata("design:type", organization_types_1.OrganizationMetadataLocalization)
|
|
30
|
-
], OrganizationMetadataValidator.prototype, "localization", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, class_validator_1.IsOptional)(),
|
|
33
|
-
(0, class_validator_1.ValidateNested)(),
|
|
34
|
-
(0, class_transformer_1.Type)(function () { return organization_types_1.OrganizationMetadataAddress; }),
|
|
35
|
-
__metadata("design:type", organization_types_1.OrganizationMetadataAddress)
|
|
36
|
-
], OrganizationMetadataValidator.prototype, "address", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
|
39
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
40
|
-
(0, class_transformer_1.Type)(function () { return organization_types_1.OrganizationMetadataSocial; }),
|
|
41
|
-
__metadata("design:type", Array)
|
|
42
|
-
], OrganizationMetadataValidator.prototype, "social", void 0);
|
|
43
|
-
return OrganizationMetadataValidator;
|
|
44
|
-
}());
|
|
45
|
-
exports.OrganizationMetadataValidator = OrganizationMetadataValidator;
|
|
46
|
-
var CreateOrganizationValidator = (function () {
|
|
47
|
-
function CreateOrganizationValidator() {
|
|
48
|
-
}
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, class_validator_1.IsString)(),
|
|
51
|
-
(0, class_validator_1.Length)(3, 255),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], CreateOrganizationValidator.prototype, "name", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_validator_1.IsString)(),
|
|
56
|
-
(0, class_validator_1.IsEmail)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], CreateOrganizationValidator.prototype, "email", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_validator_1.IsString)(),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], CreateOrganizationValidator.prototype, "password", void 0);
|
|
63
|
-
return CreateOrganizationValidator;
|
|
64
|
-
}());
|
|
65
|
-
exports.CreateOrganizationValidator = CreateOrganizationValidator;
|
|
66
|
-
var UpdateOrganizationValidator = (function () {
|
|
67
|
-
function UpdateOrganizationValidator() {
|
|
68
|
-
}
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsString)(),
|
|
71
|
-
(0, class_validator_1.IsOptional)(),
|
|
72
|
-
(0, class_validator_1.Length)(3, 255),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], UpdateOrganizationValidator.prototype, "display_name", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
|
77
|
-
(0, class_validator_1.IsObject)(),
|
|
78
|
-
__metadata("design:type", Object)
|
|
79
|
-
], UpdateOrganizationValidator.prototype, "branding", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, class_validator_1.IsOptional)(),
|
|
82
|
-
(0, class_validator_1.ValidateNested)(),
|
|
83
|
-
(0, class_transformer_1.Type)(function () { return OrganizationMetadataValidator; }),
|
|
84
|
-
__metadata("design:type", OrganizationMetadataValidator)
|
|
85
|
-
], UpdateOrganizationValidator.prototype, "metadata", void 0);
|
|
86
|
-
return UpdateOrganizationValidator;
|
|
87
|
-
}());
|
|
88
|
-
exports.UpdateOrganizationValidator = UpdateOrganizationValidator;
|
|
@@ -1,27 +0,0 @@
|
|
|
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.SalesByRangeValdiator = void 0;
|
|
13
|
-
var class_validator_1 = require("class-validator");
|
|
14
|
-
var SalesByRangeValdiator = (function () {
|
|
15
|
-
function SalesByRangeValdiator() {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsDateString)(),
|
|
19
|
-
__metadata("design:type", Date)
|
|
20
|
-
], SalesByRangeValdiator.prototype, "from", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsDateString)(),
|
|
23
|
-
__metadata("design:type", Date)
|
|
24
|
-
], SalesByRangeValdiator.prototype, "to", void 0);
|
|
25
|
-
return SalesByRangeValdiator;
|
|
26
|
-
}());
|
|
27
|
-
exports.SalesByRangeValdiator = SalesByRangeValdiator;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AbstractEntity } from '../../../abstract/abstract.entity';
|
|
2
|
-
import { FileEntity } from '../../asset/files/file.entity';
|
|
3
|
-
export declare class BrandEntity extends AbstractEntity {
|
|
4
|
-
static readonly $index = "inventory_brands";
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
image: FileEntity;
|
|
8
|
-
readonly picture: string;
|
|
9
|
-
}
|