@merkaly/api 0.2.2-30 → 0.2.2-31
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 +2 -2
- package/.output/modules/content/banners/banner.document.js +1 -1
- 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/package.json +1 -1
- package/.output/modules/setting/social/social.validator.d.ts +0 -11
- package/.output/modules/setting/social/social.validator.js +0 -36
|
@@ -4,8 +4,8 @@ exports.AbstractDocument = void 0;
|
|
|
4
4
|
var AbstractDocument = (function () {
|
|
5
5
|
function AbstractDocument(entity) {
|
|
6
6
|
this.id = entity._id;
|
|
7
|
-
this.createdAt = entity.createdAt;
|
|
8
|
-
this.updatedAt = entity.updatedAt;
|
|
7
|
+
this.createdAt = entity.createdAt || new Date();
|
|
8
|
+
this.updatedAt = entity.updatedAt || new Date();
|
|
9
9
|
}
|
|
10
10
|
return AbstractDocument;
|
|
11
11
|
}());
|
|
@@ -0,0 +1,29 @@
|
|
|
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.LayoutDocument = void 0;
|
|
19
|
+
var abstract_document_1 = require("../../../abstract/abstract.document");
|
|
20
|
+
var LayoutDocument = (function (_super) {
|
|
21
|
+
__extends(LayoutDocument, _super);
|
|
22
|
+
function LayoutDocument() {
|
|
23
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
_this.content = {};
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
return LayoutDocument;
|
|
28
|
+
}(abstract_document_1.AbstractDocument));
|
|
29
|
+
exports.LayoutDocument = LayoutDocument;
|
|
@@ -0,0 +1,46 @@
|
|
|
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.LayoutEntity = 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 LayoutEntity = (function (_super) {
|
|
32
|
+
__extends(LayoutEntity, _super);
|
|
33
|
+
function LayoutEntity() {
|
|
34
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
+
}
|
|
36
|
+
LayoutEntity.$index = 'settings_layout';
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true, unique: true, length: 128 }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LayoutEntity.prototype, "path", void 0);
|
|
41
|
+
LayoutEntity = __decorate([
|
|
42
|
+
(0, mongoose_1.Schema)({ timestamps: true })
|
|
43
|
+
], LayoutEntity);
|
|
44
|
+
return LayoutEntity;
|
|
45
|
+
}(abstract_entity_1.AbstractEntity));
|
|
46
|
+
exports.LayoutEntity = LayoutEntity;
|
package/package.json
CHANGED
|
@@ -1,36 +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.CreateSocialValidator = exports.SocialType = void 0;
|
|
13
|
-
var class_validator_1 = require("class-validator");
|
|
14
|
-
var SocialType;
|
|
15
|
-
(function (SocialType) {
|
|
16
|
-
SocialType["FACEBOOK"] = "facebook";
|
|
17
|
-
SocialType["TWITTER"] = "twitter";
|
|
18
|
-
SocialType["INSTAGRAM"] = "instagram";
|
|
19
|
-
SocialType["TIKTOK"] = "tiktok";
|
|
20
|
-
SocialType["LINKEDIN"] = "linkedin";
|
|
21
|
-
})(SocialType = exports.SocialType || (exports.SocialType = {}));
|
|
22
|
-
var CreateSocialValidator = (function () {
|
|
23
|
-
function CreateSocialValidator() {
|
|
24
|
-
}
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_validator_1.IsEnum)(SocialType),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CreateSocialValidator.prototype, "name", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsUrl)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], CreateSocialValidator.prototype, "url", void 0);
|
|
34
|
-
return CreateSocialValidator;
|
|
35
|
-
}());
|
|
36
|
-
exports.CreateSocialValidator = CreateSocialValidator;
|