@merkaly/api 0.2.5-2 → 0.2.5-3
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.
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { AbstractEntity } from '../../../abstract/abstract.entity';
|
|
2
2
|
import { OrganizationMetadataAddress, OrganizationMetadataInformation, OrganizationMetadataLocalization, OrganizationMetadataSocial } from "./organization.types";
|
|
3
|
-
|
|
3
|
+
import { Organization } from 'auth0';
|
|
4
|
+
export interface OrganizationMetadata {
|
|
4
5
|
address?: OrganizationMetadataAddress;
|
|
5
|
-
domain:
|
|
6
|
+
domain: {
|
|
7
|
+
name: string;
|
|
8
|
+
forceRedirect?: boolean;
|
|
9
|
+
};
|
|
6
10
|
information?: OrganizationMetadataInformation;
|
|
7
11
|
localization?: OrganizationMetadataLocalization;
|
|
8
12
|
social?: OrganizationMetadataSocial[];
|
|
@@ -10,6 +14,8 @@ interface OrganizationMetadata {
|
|
|
10
14
|
}
|
|
11
15
|
export declare class OrganizationEntity extends AbstractEntity {
|
|
12
16
|
static readonly $index = "config_organization";
|
|
17
|
+
name: string;
|
|
18
|
+
display_name: string;
|
|
13
19
|
metadata: OrganizationMetadata;
|
|
20
|
+
branding: Organization['branding'];
|
|
14
21
|
}
|
|
15
|
-
export {};
|
|
@@ -18,6 +18,9 @@ export declare class CreateProductValidator extends AbstractValidator {
|
|
|
18
18
|
code: ProductCodeValidator;
|
|
19
19
|
stock: number | null;
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
declare const UpdateProductValidator_base: import("@nestjs/common").Type<Partial<CreateProductValidator>>;
|
|
22
|
+
export declare class UpdateProductValidator extends UpdateProductValidator_base {
|
|
23
|
+
name?: string;
|
|
24
|
+
price?: number;
|
|
23
25
|
}
|
|
26
|
+
export {};
|
|
@@ -32,6 +32,7 @@ var code_validator_1 = require("./validators/code.validator");
|
|
|
32
32
|
var dimension_validator_1 = require("./validators/dimension.validator");
|
|
33
33
|
var seo_validator_1 = require("./validators/seo.validator");
|
|
34
34
|
var abstract_validator_1 = require("../../../abstract/abstract.validator");
|
|
35
|
+
var swagger_1 = require("@nestjs/swagger");
|
|
35
36
|
var CreateProductValidator = (function (_super) {
|
|
36
37
|
__extends(CreateProductValidator, _super);
|
|
37
38
|
function CreateProductValidator() {
|
|
@@ -39,7 +40,6 @@ var CreateProductValidator = (function (_super) {
|
|
|
39
40
|
_this.name = String();
|
|
40
41
|
_this.description = String();
|
|
41
42
|
_this.measurement = String();
|
|
42
|
-
_this.active = Boolean(1);
|
|
43
43
|
_this.category = null;
|
|
44
44
|
_this.brand = null;
|
|
45
45
|
_this.files = [];
|
|
@@ -67,7 +67,7 @@ var CreateProductValidator = (function (_super) {
|
|
|
67
67
|
__decorate([
|
|
68
68
|
(0, class_validator_1.IsBoolean)(),
|
|
69
69
|
(0, class_validator_1.IsOptional)(),
|
|
70
|
-
__metadata("design:type",
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
71
|
], CreateProductValidator.prototype, "active", void 0);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -126,6 +126,11 @@ var UpdateProductValidator = (function (_super) {
|
|
|
126
126
|
(0, class_validator_1.IsOptional)(),
|
|
127
127
|
__metadata("design:type", String)
|
|
128
128
|
], UpdateProductValidator.prototype, "name", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_validator_1.IsNumber)(),
|
|
131
|
+
(0, class_validator_1.IsOptional)(),
|
|
132
|
+
__metadata("design:type", Number)
|
|
133
|
+
], UpdateProductValidator.prototype, "price", void 0);
|
|
129
134
|
return UpdateProductValidator;
|
|
130
|
-
}(CreateProductValidator));
|
|
135
|
+
}((0, swagger_1.PartialType)(CreateProductValidator)));
|
|
131
136
|
exports.UpdateProductValidator = UpdateProductValidator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.2.5-
|
|
3
|
+
"version": "0.2.5-3",
|
|
4
4
|
"description": "NestJS Backend ApiRest Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@nestjs/common": "^9.0.11",
|
|
39
|
+
"@nestjs/swagger": "^6.1.0",
|
|
39
40
|
"@types/auth0": "^3.3.1",
|
|
40
41
|
"class-transformer": "^0.5.1",
|
|
41
42
|
"class-validator": "^0.14.0",
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@commitlint/config-conventional": "^17.0.0",
|
|
47
|
-
"@faker-js/faker": "^
|
|
48
|
+
"@faker-js/faker": "^8.0.0",
|
|
48
49
|
"@google-cloud/storage": "^6.4.1",
|
|
49
50
|
"@nestjs/axios": "^2.0.0",
|
|
50
51
|
"@nestjs/cli": "^9.1.1",
|
|
@@ -57,7 +58,6 @@
|
|
|
57
58
|
"@nestjs/platform-express": "^9.0.11",
|
|
58
59
|
"@nestjs/platform-socket.io": "^9.4.0",
|
|
59
60
|
"@nestjs/schematics": "^9.0.1",
|
|
60
|
-
"@nestjs/swagger": "^6.1.0",
|
|
61
61
|
"@nestjs/testing": "^9.0.11",
|
|
62
62
|
"@nestjs/websockets": "^9.4.0",
|
|
63
63
|
"@types/cache-manager": "^4.0.1",
|