@knovator/pagecreator-node 0.0.1

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.
Files changed (89) hide show
  1. package/README.md +11 -0
  2. package/package.json +40 -0
  3. package/src/constants/index.d.ts +16 -0
  4. package/src/constants/index.js +30 -0
  5. package/src/constants/index.js.map +1 -0
  6. package/src/controllers/PageController.d.ts +4 -0
  7. package/src/controllers/PageController.js +61 -0
  8. package/src/controllers/PageController.js.map +1 -0
  9. package/src/controllers/TileController.d.ts +4 -0
  10. package/src/controllers/TileController.js +45 -0
  11. package/src/controllers/TileController.js.map +1 -0
  12. package/src/controllers/UserController.d.ts +2 -0
  13. package/src/controllers/UserController.js +174 -0
  14. package/src/controllers/UserController.js.map +1 -0
  15. package/src/controllers/WidgetController.d.ts +8 -0
  16. package/src/controllers/WidgetController.js +130 -0
  17. package/src/controllers/WidgetController.js.map +1 -0
  18. package/src/index.d.ts +8 -0
  19. package/src/index.js +29 -0
  20. package/src/index.js.map +1 -0
  21. package/src/models/Page.d.ts +3 -0
  22. package/src/models/Page.js +16 -0
  23. package/src/models/Page.js.map +1 -0
  24. package/src/models/Tile.d.ts +3 -0
  25. package/src/models/Tile.js +29 -0
  26. package/src/models/Tile.js.map +1 -0
  27. package/src/models/Widget.d.ts +3 -0
  28. package/src/models/Widget.js +41 -0
  29. package/src/models/Widget.js.map +1 -0
  30. package/src/models/index.d.ts +4 -0
  31. package/src/models/index.js +11 -0
  32. package/src/models/index.js.map +1 -0
  33. package/src/plugins/softDelete.d.ts +7 -0
  34. package/src/plugins/softDelete.js +64 -0
  35. package/src/plugins/softDelete.js.map +1 -0
  36. package/src/routes/PageRoute.d.ts +3 -0
  37. package/src/routes/PageRoute.js +27 -0
  38. package/src/routes/PageRoute.js.map +1 -0
  39. package/src/routes/TileRoute.d.ts +3 -0
  40. package/src/routes/TileRoute.js +28 -0
  41. package/src/routes/TileRoute.js.map +1 -0
  42. package/src/routes/UserRoute.d.ts +3 -0
  43. package/src/routes/UserRoute.js +21 -0
  44. package/src/routes/UserRoute.js.map +1 -0
  45. package/src/routes/WidgetRoute.d.ts +3 -0
  46. package/src/routes/WidgetRoute.js +46 -0
  47. package/src/routes/WidgetRoute.js.map +1 -0
  48. package/src/services/dbService.d.ts +8 -0
  49. package/src/services/dbService.js +60 -0
  50. package/src/services/dbService.js.map +1 -0
  51. package/src/types/IRequest.d.ts +6 -0
  52. package/src/types/IRequest.js +3 -0
  53. package/src/types/IRequest.js.map +1 -0
  54. package/src/types/IResponse.d.ts +6 -0
  55. package/src/types/IResponse.js +3 -0
  56. package/src/types/IResponse.js.map +1 -0
  57. package/src/types/Router.d.ts +4 -0
  58. package/src/types/Router.js +3 -0
  59. package/src/types/Router.js.map +1 -0
  60. package/src/types/common.d.ts +60 -0
  61. package/src/types/common.js +3 -0
  62. package/src/types/common.js.map +1 -0
  63. package/src/types/enums.d.ts +11 -0
  64. package/src/types/enums.js +18 -0
  65. package/src/types/enums.js.map +1 -0
  66. package/src/types/index.d.ts +5 -0
  67. package/src/types/index.js +9 -0
  68. package/src/types/index.js.map +1 -0
  69. package/src/utils/defaults.d.ts +2 -0
  70. package/src/utils/defaults.js +23 -0
  71. package/src/utils/defaults.js.map +1 -0
  72. package/src/utils/responseHandlers.d.ts +6 -0
  73. package/src/utils/responseHandlers.js +57 -0
  74. package/src/utils/responseHandlers.js.map +1 -0
  75. package/src/utils/validate.d.ts +4 -0
  76. package/src/utils/validate.js +24 -0
  77. package/src/utils/validate.js.map +1 -0
  78. package/src/utils/validations/page.d.ts +5 -0
  79. package/src/utils/validations/page.js +50 -0
  80. package/src/utils/validations/page.js.map +1 -0
  81. package/src/utils/validations/tile.d.ts +5 -0
  82. package/src/utils/validations/tile.js +35 -0
  83. package/src/utils/validations/tile.js.map +1 -0
  84. package/src/utils/validations/user.d.ts +3 -0
  85. package/src/utils/validations/user.js +12 -0
  86. package/src/utils/validations/user.js.map +1 -0
  87. package/src/utils/validations/widget.d.ts +7 -0
  88. package/src/utils/validations/widget.js +96 -0
  89. package/src/utils/validations/widget.js.map +1 -0
@@ -0,0 +1,3 @@
1
+ import { IModel, ITileSchema } from '../types';
2
+ declare const Tile: IModel<ITileSchema>;
3
+ export default Tile;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const mongoose_1 = require("mongoose");
5
+ const mongoose_paginate_v2_1 = tslib_1.__importDefault(require("mongoose-paginate-v2"));
6
+ const softDelete_1 = require("../plugins/softDelete");
7
+ const types_1 = require("../types");
8
+ const TileSchema = new mongoose_1.Schema({
9
+ widgetId: {
10
+ type: mongoose_1.Types.ObjectId,
11
+ ref: 'Widget',
12
+ },
13
+ title: String,
14
+ altText: String,
15
+ link: String,
16
+ sequence: Number,
17
+ img: { type: mongoose_1.Schema.Types.ObjectId, ref: 'file' },
18
+ tileType: {
19
+ type: String,
20
+ enum: Object.values(types_1.TileTypes),
21
+ default: types_1.TileTypes.Web,
22
+ required: true,
23
+ },
24
+ });
25
+ TileSchema.plugin(softDelete_1.softDeletePlugin);
26
+ TileSchema.plugin(mongoose_paginate_v2_1.default);
27
+ const Tile = (0, mongoose_1.model)('Tile', TileSchema);
28
+ exports.default = Tile;
29
+ //# sourceMappingURL=Tile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../../libs/node/src/models/Tile.ts"],"names":[],"mappings":";;;AAAA,uCAAgD;AAChD,wFAAoD;AACpD,sDAAyD;AACzD,oCAA0D;AAE1D,MAAM,UAAU,GAAG,IAAI,iBAAM,CAAc;IACzC,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAK,CAAC,QAAQ;QACpB,GAAG,EAAE,QAAQ;KACd;IACD,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,MAAM;IACf,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,MAAM;IAChB,GAAG,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;IACjD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,iBAAS,CAAC;QAC9B,OAAO,EAAE,iBAAS,CAAC,GAAG;QACtB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC,CAAC;AAEH,UAAU,CAAC,MAAM,CAAC,6BAAgB,CAAC,CAAC;AACpC,UAAU,CAAC,MAAM,CAAC,8BAAgB,CAAC,CAAC;AAEpC,MAAM,IAAI,GAAG,IAAA,gBAAK,EAAC,MAAM,EAAE,UAAU,CAAmC,CAAC;AAEzE,kBAAe,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IModel, IWidgetSchema } from '../types';
2
+ declare const Widget: IModel<IWidgetSchema>;
3
+ export default Widget;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const mongoose_1 = require("mongoose");
5
+ const mongoose_paginate_v2_1 = tslib_1.__importDefault(require("mongoose-paginate-v2"));
6
+ const softDelete_1 = require("../plugins/softDelete");
7
+ const types_1 = require("../types");
8
+ const WidgetSchema = new mongoose_1.Schema({
9
+ name: String,
10
+ code: String,
11
+ autoPlay: {
12
+ type: Boolean,
13
+ default: false,
14
+ },
15
+ isActive: {
16
+ type: Boolean,
17
+ default: true,
18
+ },
19
+ selectionTitle: String,
20
+ webPerRow: Number,
21
+ mobilePerRow: Number,
22
+ tabletPerRow: Number,
23
+ collectionName: String,
24
+ collectionItems: [{ type: mongoose_1.Types.ObjectId, refPath: 'collectionName' }],
25
+ widgetType: {
26
+ type: String,
27
+ default: types_1.WidgetType.Image,
28
+ required: true,
29
+ },
30
+ selectionType: {
31
+ type: String,
32
+ enum: Object.values(types_1.SelectionTypes),
33
+ default: types_1.SelectionTypes.FixedCard,
34
+ required: true,
35
+ },
36
+ });
37
+ WidgetSchema.plugin(softDelete_1.softDeletePlugin);
38
+ WidgetSchema.plugin(mongoose_paginate_v2_1.default);
39
+ const Widget = (0, mongoose_1.model)('Widget', WidgetSchema);
40
+ exports.default = Widget;
41
+ //# sourceMappingURL=Widget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Widget.js","sourceRoot":"","sources":["../../../../../libs/node/src/models/Widget.ts"],"names":[],"mappings":";;;AAAA,uCAAgD;AAChD,wFAAoD;AACpD,sDAAyD;AACzD,oCAA6E;AAE7E,MAAM,YAAY,GAAG,IAAI,iBAAM,CAAgB;IAC7C,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE;QACR,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,KAAK;KACf;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KACd;IACD,cAAc,EAAE,MAAM;IACtB,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,MAAM;IACpB,YAAY,EAAE,MAAM;IACpB,cAAc,EAAE,MAAM;IACtB,eAAe,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;IACtE,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,kBAAU,CAAC,KAAK;QACzB,QAAQ,EAAE,IAAI;KACf;IACD,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,sBAAc,CAAC;QACnC,OAAO,EAAE,sBAAc,CAAC,SAAS;QACjC,QAAQ,EAAE,IAAI;KACf;CACF,CAAC,CAAC;AAEH,YAAY,CAAC,MAAM,CAAC,6BAAgB,CAAC,CAAC;AACtC,YAAY,CAAC,MAAM,CAAC,8BAAgB,CAAC,CAAC;AAEtC,MAAM,MAAM,GAAG,IAAA,gBAAK,EAClB,QAAQ,EACR,YAAY,CACuB,CAAC;AAEtC,kBAAe,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ import Widget from './Widget';
2
+ import Tile from './Tile';
3
+ import Page from './Page';
4
+ export { Widget, Tile, Page };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Page = exports.Tile = exports.Widget = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const Widget_1 = tslib_1.__importDefault(require("./Widget"));
6
+ exports.Widget = Widget_1.default;
7
+ const Tile_1 = tslib_1.__importDefault(require("./Tile"));
8
+ exports.Tile = Tile_1.default;
9
+ const Page_1 = tslib_1.__importDefault(require("./Page"));
10
+ exports.Page = Page_1.default;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/node/src/models/index.ts"],"names":[],"mappings":";;;;AAAA,8DAA8B;AAIrB,iBAJF,gBAAM,CAIE;AAHf,0DAA0B;AAGT,eAHV,cAAI,CAGU;AAFrB,0DAA0B;AAEH,eAFhB,cAAI,CAEgB"}
@@ -0,0 +1,7 @@
1
+ import mongoose from 'mongoose';
2
+ export declare type TWithSoftDeleted = {
3
+ isDeleted?: boolean;
4
+ deletedAt?: Date | null;
5
+ };
6
+ declare const softDeletePlugin: (schema: mongoose.Schema) => void;
7
+ export { softDeletePlugin };
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.softDeletePlugin = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const softDeletePlugin = (schema) => {
6
+ schema.add({
7
+ isDeleted: {
8
+ type: Boolean,
9
+ required: true,
10
+ default: false,
11
+ },
12
+ deletedAt: {
13
+ type: Date,
14
+ default: null,
15
+ },
16
+ });
17
+ const typesFindQueryMiddleware = [
18
+ 'count',
19
+ 'find',
20
+ 'findOne',
21
+ 'findOneAndDelete',
22
+ 'findOneAndRemove',
23
+ 'findOneAndUpdate',
24
+ 'update',
25
+ 'updateOne',
26
+ 'updateMany',
27
+ ];
28
+ const setDocumentIsDeleted = (doc) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
29
+ doc.isDeleted = true;
30
+ doc.deletedAt = new Date();
31
+ doc.$isDeleted(true);
32
+ yield doc.save();
33
+ });
34
+ const excludeInFindQueriesIsDeleted = function (next) {
35
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
36
+ this['where']({ isDeleted: false });
37
+ next();
38
+ });
39
+ };
40
+ const excludeInDeletedInAggregateMiddleware = function (next) {
41
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
+ this.pipeline().unshift({ $match: { isDeleted: false } });
43
+ next();
44
+ });
45
+ };
46
+ schema.pre('remove', function (next) {
47
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
48
+ yield setDocumentIsDeleted(this);
49
+ next();
50
+ });
51
+ });
52
+ typesFindQueryMiddleware.forEach((type) => {
53
+ schema.pre(type, excludeInFindQueriesIsDeleted);
54
+ });
55
+ schema.pre('aggregate', excludeInDeletedInAggregateMiddleware);
56
+ schema.method('toJSON', function () {
57
+ const obj = this.toObject();
58
+ delete obj.isDeleted;
59
+ delete obj.deletedAt;
60
+ return obj;
61
+ });
62
+ };
63
+ exports.softDeletePlugin = softDeletePlugin;
64
+ //# sourceMappingURL=softDelete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"softDelete.js","sourceRoot":"","sources":["../../../../../libs/node/src/plugins/softDelete.ts"],"names":[],"mappings":";;;;AASA,MAAM,gBAAgB,GAAG,CAAC,MAAuB,EAAE,EAAE;IACnD,MAAM,CAAC,GAAG,CAAC;QACT,SAAS,EAAE;YACT,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAAK;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,IAAI;SACd;KACF,CAAC,CAAC;IAEH,MAAM,wBAAwB,GAAG;QAC/B,OAAO;QACP,MAAM;QACN,SAAS;QACT,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,QAAQ;QACR,WAAW;QACX,YAAY;KACb,CAAC;IAEF,MAAM,oBAAoB,GAAG,CAAO,GAAc,EAAE,EAAE;QACpD,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC;QACrB,GAAG,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAC3B,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACrB,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;IACnB,CAAC,CAAA,CAAC;IAEF,MAAM,6BAA6B,GAAG,UAEpC,IAAoD;;YAEpD,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;YACpC,IAAI,EAAE,CAAC;QACT,CAAC;KAAA,CAAC;IAEF,MAAM,qCAAqC,GAAG,UAE5C,IAAoD;;YAEpD,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YAC1D,IAAI,EAAE,CAAC;QACT,CAAC;KAAA,CAAC;IAEF,MAAM,CAAC,GAAG,CACR,QAAQ,EACR,UAEE,IAAoD;;YAEpD,MAAM,oBAAoB,CAAC,IAAI,CAAC,CAAC;YACjC,IAAI,EAAE,CAAC;QACT,CAAC;KAAA,CACF,CAAC;IAEF,wBAAwB,CAAC,OAAO,CAAC,CAAC,IAAS,EAAE,EAAE;QAC7C,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,6BAA6B,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,qCAAqC,CAAC,CAAC;IAE/D,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;QACtB,MAAM,GAAG,GAAc,IAAI,CAAC,QAAQ,EAAE,CAAC;QACvC,OAAO,GAAG,CAAC,SAAS,CAAC;QACrB,OAAO,GAAG,CAAC,SAAS,CAAC;QAErB,OAAO,GAAG,CAAC;IACb,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEO,4CAAgB"}
@@ -0,0 +1,3 @@
1
+ import { IRouter } from '../types';
2
+ declare const routes: IRouter;
3
+ export default routes;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const express_1 = tslib_1.__importDefault(require("express"));
5
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
6
+ require('express-list-endpoints-descriptor')(express_1.default);
7
+ const validate_1 = tslib_1.__importDefault(require("../utils/validate"));
8
+ const pageValidation = tslib_1.__importStar(require("../utils/validations/page"));
9
+ const pageController = tslib_1.__importStar(require("../controllers/PageController"));
10
+ const routes = express_1.default.Router();
11
+ routes.use(express_1.default.json());
12
+ // Get all pages
13
+ routes
14
+ .post(`/list`, (0, validate_1.default)(pageValidation.list), pageController.getPages)
15
+ .descriptor('page.getAll');
16
+ // Create a page
17
+ routes
18
+ .post(`/`, (0, validate_1.default)(pageValidation.create), pageController.createPage)
19
+ .descriptor('page.create');
20
+ // Update a page
21
+ routes
22
+ .put(`/:id`, (0, validate_1.default)(pageValidation.update), pageController.updatePage)
23
+ .descriptor('page.update');
24
+ // Delete a page
25
+ routes.delete(`/:id`, pageController.deletePage).descriptor('page.delete');
26
+ exports.default = routes;
27
+ //# sourceMappingURL=PageRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageRoute.js","sourceRoot":"","sources":["../../../../../libs/node/src/routes/PageRoute.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAC9B,8DAA8D;AAC9D,OAAO,CAAC,mCAAmC,CAAC,CAAC,iBAAO,CAAC,CAAC;AAGtD,yEAAyC;AACzC,kFAA4D;AAC5D,sFAAgE;AAEhE,MAAM,MAAM,GAAG,iBAAO,CAAC,MAAM,EAAa,CAAC;AAC3C,MAAM,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AAE3B,gBAAgB;AAChB,MAAM;KACH,IAAI,CAAC,OAAO,EAAE,IAAA,kBAAQ,EAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC;KACrE,UAAU,CAAC,aAAa,CAAC,CAAC;AAC7B,gBAAgB;AAChB,MAAM;KACH,IAAI,CAAC,GAAG,EAAE,IAAA,kBAAQ,EAAC,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC;KACrE,UAAU,CAAC,aAAa,CAAC,CAAC;AAC7B,gBAAgB;AAChB,MAAM;KACH,GAAG,CAAC,MAAM,EAAE,IAAA,kBAAQ,EAAC,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC;KACvE,UAAU,CAAC,aAAa,CAAC,CAAC;AAC7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAE3E,kBAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRouter } from '../types';
2
+ declare const routes: IRouter;
3
+ export default routes;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const express_1 = tslib_1.__importDefault(require("express"));
5
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
6
+ require('express-list-endpoints-descriptor')(express_1.default);
7
+ const validate_1 = tslib_1.__importDefault(require("../utils/validate"));
8
+ const tileValidation = tslib_1.__importStar(require("../utils/validations/tile"));
9
+ const tileController = tslib_1.__importStar(require("../controllers/TileController"));
10
+ const routes = express_1.default.Router();
11
+ routes.use(express_1.default.json());
12
+ // Tile Routes
13
+ // Get all tiles
14
+ routes
15
+ .get(`/:widgetId`, (0, validate_1.default)(tileValidation.list), tileController.getTiles)
16
+ .descriptor('tile.getAll');
17
+ // Create a tile
18
+ routes
19
+ .post(`/`, (0, validate_1.default)(tileValidation.create), tileController.createTile)
20
+ .descriptor('tile.create');
21
+ // Update a tile
22
+ routes
23
+ .put(`/:id`, (0, validate_1.default)(tileValidation.update), tileController.updateTile)
24
+ .descriptor('tile.update');
25
+ // Delete a tile
26
+ routes.delete(`/:id`, tileController.deleteTile).descriptor('tile.delete');
27
+ exports.default = routes;
28
+ //# sourceMappingURL=TileRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TileRoute.js","sourceRoot":"","sources":["../../../../../libs/node/src/routes/TileRoute.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAC9B,8DAA8D;AAC9D,OAAO,CAAC,mCAAmC,CAAC,CAAC,iBAAO,CAAC,CAAC;AAGtD,yEAAyC;AACzC,kFAA4D;AAC5D,sFAAgE;AAEhE,MAAM,MAAM,GAAG,iBAAO,CAAC,MAAM,EAAa,CAAC;AAC3C,MAAM,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AAE3B,cAAc;AACd,gBAAgB;AAChB,MAAM;KACH,GAAG,CAAC,YAAY,EAAE,IAAA,kBAAQ,EAAC,cAAc,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC;KACzE,UAAU,CAAC,aAAa,CAAC,CAAC;AAC7B,gBAAgB;AAChB,MAAM;KACH,IAAI,CAAC,GAAG,EAAE,IAAA,kBAAQ,EAAC,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC;KACrE,UAAU,CAAC,aAAa,CAAC,CAAC;AAC7B,gBAAgB;AAChB,MAAM;KACH,GAAG,CAAC,MAAM,EAAE,IAAA,kBAAQ,EAAC,cAAc,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC;KACvE,UAAU,CAAC,aAAa,CAAC,CAAC;AAC7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAE3E,kBAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRouter } from '../types';
2
+ declare const routes: IRouter;
3
+ export default routes;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const express_1 = tslib_1.__importDefault(require("express"));
5
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
6
+ require('express-list-endpoints-descriptor')(express_1.default);
7
+ const validate_1 = tslib_1.__importDefault(require("../utils/validate"));
8
+ const userValidation = tslib_1.__importStar(require("../utils/validations/user"));
9
+ const userController = tslib_1.__importStar(require("../controllers/UserController"));
10
+ const routes = express_1.default.Router();
11
+ routes.use(express_1.default.json());
12
+ // Tile Routes
13
+ // Get Widget Data
14
+ routes
15
+ .post(`/widget-data`, (0, validate_1.default)(userValidation.getWidgetData), userController.getWidgetData)
16
+ .descriptor('user.getWidgetData');
17
+ routes
18
+ .post('/page-data', (0, validate_1.default)(userValidation.getPageData), userController.getPageData)
19
+ .descriptor('user.getPageData');
20
+ exports.default = routes;
21
+ //# sourceMappingURL=UserRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserRoute.js","sourceRoot":"","sources":["../../../../../libs/node/src/routes/UserRoute.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAC9B,8DAA8D;AAC9D,OAAO,CAAC,mCAAmC,CAAC,CAAC,iBAAO,CAAC,CAAC;AAGtD,yEAAyC;AACzC,kFAA4D;AAC5D,sFAAgE;AAEhE,MAAM,MAAM,GAAG,iBAAO,CAAC,MAAM,EAAa,CAAC;AAC3C,MAAM,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AAE3B,cAAc;AACd,kBAAkB;AAClB,MAAM;KACH,IAAI,CACH,cAAc,EACd,IAAA,kBAAQ,EAAC,cAAc,CAAC,aAAa,CAAC,EACtC,cAAc,CAAC,aAAa,CAC7B;KACA,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAEpC,MAAM;KACH,IAAI,CACH,YAAY,EACZ,IAAA,kBAAQ,EAAC,cAAc,CAAC,WAAW,CAAC,EACpC,cAAc,CAAC,WAAW,CAC3B;KACA,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAElC,kBAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { IRouter } from '../types';
2
+ declare const routes: IRouter;
3
+ export default routes;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const express_1 = tslib_1.__importDefault(require("express"));
5
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
6
+ require('express-list-endpoints-descriptor')(express_1.default);
7
+ const validate_1 = tslib_1.__importDefault(require("../utils/validate"));
8
+ const widgetValidation = tslib_1.__importStar(require("../utils/validations/widget"));
9
+ const widgetController = tslib_1.__importStar(require("../controllers/WidgetController"));
10
+ const routes = express_1.default.Router();
11
+ routes.use(express_1.default.json());
12
+ // Widget Routes
13
+ // Get widget types
14
+ routes
15
+ .get('/widget-types', widgetController.getWidgetTypes)
16
+ .descriptor('widget.getWidgetTypes');
17
+ // Get widget selection types
18
+ routes
19
+ .get('/selection-types', widgetController.getSelectionTypes)
20
+ .descriptor('widget.getSelectionTypes');
21
+ // Get all widgets
22
+ routes
23
+ .post(`/list`, (0, validate_1.default)(widgetValidation.list), widgetController.getWidgets)
24
+ .descriptor('widget.getAll');
25
+ // Create a widget
26
+ routes
27
+ .post(`/`, (0, validate_1.default)(widgetValidation.create), widgetController.createWidget)
28
+ .descriptor('widget.create');
29
+ // Update a widget
30
+ routes
31
+ .put(`/:id`, (0, validate_1.default)(widgetValidation.update), widgetController.updateWidget)
32
+ .descriptor('widget.update');
33
+ // Partial Update a widget
34
+ routes
35
+ .patch(`/:id`, (0, validate_1.default)(widgetValidation.partialUpdate), widgetController.partialUpdateWidget)
36
+ .descriptor('widget.update');
37
+ // Delete a widget
38
+ routes
39
+ .delete(`/:id`, widgetController.deleteWidget)
40
+ .descriptor('widget.delete');
41
+ // Get dynamic collection data
42
+ routes
43
+ .post('/collection-data', (0, validate_1.default)(widgetValidation.getCollectionData), widgetController.getCollectionData)
44
+ .descriptor('widget.getCollectionData');
45
+ exports.default = routes;
46
+ //# sourceMappingURL=WidgetRoute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WidgetRoute.js","sourceRoot":"","sources":["../../../../../libs/node/src/routes/WidgetRoute.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAC9B,8DAA8D;AAC9D,OAAO,CAAC,mCAAmC,CAAC,CAAC,iBAAO,CAAC,CAAC;AAGtD,yEAAyC;AACzC,sFAAgE;AAChE,0FAAoE;AAEpE,MAAM,MAAM,GAAG,iBAAO,CAAC,MAAM,EAAa,CAAC;AAC3C,MAAM,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AAE3B,gBAAgB;AAChB,mBAAmB;AACnB,MAAM;KACH,GAAG,CAAC,eAAe,EAAE,gBAAgB,CAAC,cAAc,CAAC;KACrD,UAAU,CAAC,uBAAuB,CAAC,CAAC;AACvC,6BAA6B;AAC7B,MAAM;KACH,GAAG,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,iBAAiB,CAAC;KAC3D,UAAU,CAAC,0BAA0B,CAAC,CAAC;AAC1C,kBAAkB;AAClB,MAAM;KACH,IAAI,CAAC,OAAO,EAAE,IAAA,kBAAQ,EAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC;KAC3E,UAAU,CAAC,eAAe,CAAC,CAAC;AAC/B,kBAAkB;AAClB,MAAM;KACH,IAAI,CAAC,GAAG,EAAE,IAAA,kBAAQ,EAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC;KAC3E,UAAU,CAAC,eAAe,CAAC,CAAC;AAC/B,kBAAkB;AAClB,MAAM;KACH,GAAG,CAAC,MAAM,EAAE,IAAA,kBAAQ,EAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAC;KAC7E,UAAU,CAAC,eAAe,CAAC,CAAC;AAC/B,0BAA0B;AAC1B,MAAM;KACH,KAAK,CACJ,MAAM,EACN,IAAA,kBAAQ,EAAC,gBAAgB,CAAC,aAAa,CAAC,EACxC,gBAAgB,CAAC,mBAAmB,CACrC;KACA,UAAU,CAAC,eAAe,CAAC,CAAC;AAC/B,kBAAkB;AAClB,MAAM;KACH,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,YAAY,CAAC;KAC7C,UAAU,CAAC,eAAe,CAAC,CAAC;AAC/B,8BAA8B;AAC9B,MAAM;KACH,IAAI,CACH,kBAAkB,EAClB,IAAA,kBAAQ,EAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAC5C,gBAAgB,CAAC,iBAAiB,CACnC;KACA,UAAU,CAAC,0BAA0B,CAAC,CAAC;AAE1C,kBAAe,MAAM,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Model, FilterQuery, QueryOptions, ProjectionType, HydratedDocument, QueryWithHelpers } from 'mongoose';
2
+ import { EntityType, IModel, ReturnDocument } from '../types';
3
+ export declare function create<T extends EntityType>(Modal: Model<T>, data: Partial<T>): Promise<ReturnDocument>;
4
+ export declare function update<T extends EntityType>(Modal: Model<T>, query: FilterQuery<EntityType>, data: Partial<T>): Promise<ReturnDocument | undefined>;
5
+ export declare function remove<T extends EntityType>(Modal: Model<T>, query: FilterQuery<EntityType>): Promise<ReturnDocument>;
6
+ export declare function getAll<T extends EntityType>(Modal: Model<T>, query?: FilterQuery<EntityType>, options?: QueryOptions<EntityType>, projection?: ProjectionType<EntityType>): QueryWithHelpers<Array<T>, T, {}, T>;
7
+ export declare function list<T extends EntityType>(Modal: IModel<T>, where: FilterQuery<T>, options: QueryOptions<T>): Promise<ReturnDocument[]>;
8
+ export declare function getOne<T extends EntityType>(Modal: Model<T>, query: FilterQuery<EntityType>, projection?: ProjectionType<EntityType>): Promise<HydratedDocument<T>>;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOne = exports.list = exports.getAll = exports.remove = exports.update = exports.create = void 0;
4
+ const tslib_1 = require("tslib");
5
+ // create
6
+ function create(Modal, data) {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
+ const modalInstance = new Modal(data);
9
+ return yield modalInstance.save();
10
+ });
11
+ }
12
+ exports.create = create;
13
+ // update
14
+ function update(Modal, query, data) {
15
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
16
+ yield getOne(Modal, query);
17
+ const result = yield Modal.findOneAndUpdate(query, data, { new: true });
18
+ return result || undefined;
19
+ });
20
+ }
21
+ exports.update = update;
22
+ // soft-delete
23
+ function remove(Modal, query) {
24
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
25
+ const modalInstance = yield getOne(Modal, query);
26
+ return yield modalInstance.remove();
27
+ });
28
+ }
29
+ exports.remove = remove;
30
+ // get-all
31
+ function getAll(Modal, query = {}, options, projection
32
+ // eslint-disable-next-line @typescript-eslint/ban-types
33
+ ) {
34
+ return Modal.find(query, projection, options);
35
+ }
36
+ exports.getAll = getAll;
37
+ // list
38
+ function list(Modal, where, options) {
39
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
40
+ try {
41
+ const documents = Modal.paginate(where, options);
42
+ return documents;
43
+ }
44
+ catch (error) {
45
+ throw new Error(error.message);
46
+ }
47
+ });
48
+ }
49
+ exports.list = list;
50
+ // get-one
51
+ function getOne(Modal, query, projection) {
52
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
53
+ const modalInstance = yield Modal.findOne(query, projection);
54
+ if (!modalInstance)
55
+ throw new Error(`Record not found ${Modal.name ? `in ${Modal.name}` : ''}`);
56
+ return modalInstance;
57
+ });
58
+ }
59
+ exports.getOne = getOne;
60
+ //# sourceMappingURL=dbService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dbService.js","sourceRoot":"","sources":["../../../../../libs/node/src/services/dbService.ts"],"names":[],"mappings":";;;;AAUA,SAAS;AACT,SAAsB,MAAM,CAC1B,KAAe,EACf,IAAgB;;QAEhB,MAAM,aAAa,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;QACtC,OAAO,MAAM,aAAa,CAAC,IAAI,EAAE,CAAC;IACpC,CAAC;CAAA;AAND,wBAMC;AACD,SAAS;AACT,SAAsB,MAAM,CAC1B,KAAe,EACf,KAA8B,EAC9B,IAAgB;;QAEhB,MAAM,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC3B,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;QACxE,OAAO,MAAM,IAAI,SAAS,CAAC;IAC7B,CAAC;CAAA;AARD,wBAQC;AACD,cAAc;AACd,SAAsB,MAAM,CAC1B,KAAe,EACf,KAA8B;;QAE9B,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACjD,OAAO,MAAM,aAAa,CAAC,MAAM,EAAE,CAAC;IACtC,CAAC;CAAA;AAND,wBAMC;AACD,UAAU;AACV,SAAgB,MAAM,CACpB,KAAe,EACf,QAAiC,EAAE,EACnC,OAAkC,EAClC,UAAuC;AACvC,wDAAwD;;IAExD,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC;AARD,wBAQC;AACD,OAAO;AACP,SAAsB,IAAI,CACxB,KAAgB,EAChB,KAAqB,EACrB,OAAwB;;QAExB,IAAI;YACF,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACjD,OAAO,SAAS,CAAC;SAClB;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,IAAI,KAAK,CAAE,KAAe,CAAC,OAAO,CAAC,CAAC;SAC3C;IACH,CAAC;CAAA;AAXD,oBAWC;AACD,UAAU;AACV,SAAsB,MAAM,CAC1B,KAAe,EACf,KAA8B,EAC9B,UAAuC;;QAEvC,MAAM,aAAa,GAA+B,MAAM,KAAK,CAAC,OAAO,CACnE,KAAK,EACL,UAAU,CACX,CAAC;QACF,IAAI,CAAC,aAAa;YAChB,MAAM,IAAI,KAAK,CAAC,oBAAoB,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAE9E,OAAO,aAAa,CAAC;IACvB,CAAC;CAAA;AAbD,wBAaC"}
@@ -0,0 +1,6 @@
1
+ import { Request } from 'express';
2
+ export interface IRequest extends Request {
3
+ i18n?: {
4
+ t: (key: string) => string;
5
+ };
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRequest.js","sourceRoot":"","sources":["../../../../../libs/node/src/types/IRequest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { Response } from 'express';
2
+ export interface IResponse extends Response {
3
+ message?: string;
4
+ data?: unknown;
5
+ code?: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IResponse.js","sourceRoot":"","sources":["../../../../../libs/node/src/types/IResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Router } from 'express';
2
+ export interface IRouter extends Router {
3
+ descriptor: (text: string) => void;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Router.js","sourceRoot":"","sources":["../../../../../libs/node/src/types/Router.ts"],"names":[],"mappings":""}
@@ -0,0 +1,60 @@
1
+ import { Document, Model, Types, FilterQuery, QueryOptions, HydratedDocument } from 'mongoose';
2
+ import { WidgetType, SelectionTypes, TileTypes } from '.';
3
+ export declare type TypesType = {
4
+ value: string;
5
+ label: string;
6
+ };
7
+ export interface iConfig {
8
+ logger: any;
9
+ catchAsync: (fn: any, modal?: string) => (req: any, res: any, next: any) => void;
10
+ collections: CollectionItem[];
11
+ }
12
+ export interface IPageSchema extends Document {
13
+ name: string;
14
+ code: string;
15
+ widgets: string[];
16
+ }
17
+ export interface IWidgetSchema extends Document {
18
+ name: string;
19
+ code: string;
20
+ autoPlay: boolean;
21
+ isActive: boolean;
22
+ selectionTitle: string;
23
+ webPerRow: number;
24
+ mobilePerRow: number;
25
+ tabletPerRow: number;
26
+ widgetType: WidgetType;
27
+ selectionType: SelectionTypes;
28
+ collectionName: string;
29
+ collectionItems: string[];
30
+ }
31
+ export interface ITileSchema extends Document {
32
+ widgetId: typeof Types.ObjectId;
33
+ title: string;
34
+ altText: string;
35
+ link: string;
36
+ sequence: number;
37
+ tileType: TileTypes;
38
+ img: any;
39
+ }
40
+ export declare type CollectionItem = {
41
+ title: string;
42
+ collectionName: string;
43
+ filters?: {
44
+ [key: string]: string | number | boolean;
45
+ };
46
+ searchColumns: string[];
47
+ };
48
+ export interface IConfig {
49
+ logger: any;
50
+ catchAsync: (fn: any, modal?: string) => (req: any, res: any, next: any) => void;
51
+ collections: CollectionItem[];
52
+ }
53
+ export declare type EntityType = IWidgetSchema | ITileSchema | IPageSchema;
54
+ export declare type ReturnDocument = EntityType;
55
+ export interface IModel<T> extends Model<T> {
56
+ paginate: (query: FilterQuery<T>, options?: QueryOptions) => Promise<HydratedDocument<ReturnDocument>[]>;
57
+ }
58
+ export declare type ObjectType = {
59
+ [key: string]: string | number | boolean | null | undefined | string[] | number[] | ObjectType | ObjectType[] | any;
60
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../libs/node/src/types/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export declare enum WidgetType {
2
+ Image = "Image"
3
+ }
4
+ export declare enum SelectionTypes {
5
+ FixedCard = "FixedCard",
6
+ Carousel = "Carousel"
7
+ }
8
+ export declare enum TileTypes {
9
+ Web = "Web",
10
+ Mobile = "Mobile"
11
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TileTypes = exports.SelectionTypes = exports.WidgetType = void 0;
4
+ var WidgetType;
5
+ (function (WidgetType) {
6
+ WidgetType["Image"] = "Image";
7
+ })(WidgetType = exports.WidgetType || (exports.WidgetType = {}));
8
+ var SelectionTypes;
9
+ (function (SelectionTypes) {
10
+ SelectionTypes["FixedCard"] = "FixedCard";
11
+ SelectionTypes["Carousel"] = "Carousel";
12
+ })(SelectionTypes = exports.SelectionTypes || (exports.SelectionTypes = {}));
13
+ var TileTypes;
14
+ (function (TileTypes) {
15
+ TileTypes["Web"] = "Web";
16
+ TileTypes["Mobile"] = "Mobile";
17
+ })(TileTypes = exports.TileTypes || (exports.TileTypes = {}));
18
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../../../libs/node/src/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,6BAAe,CAAA;AACjB,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;AACvB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,8BAAiB,CAAA;AACnB,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
@@ -0,0 +1,5 @@
1
+ export * from './IRequest';
2
+ export * from './IResponse';
3
+ export * from './enums';
4
+ export * from './Router';
5
+ export * from './common';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./IRequest"), exports);
5
+ tslib_1.__exportStar(require("./IResponse"), exports);
6
+ tslib_1.__exportStar(require("./enums"), exports);
7
+ tslib_1.__exportStar(require("./Router"), exports);
8
+ tslib_1.__exportStar(require("./common"), exports);
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/node/src/types/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,sDAA4B;AAC5B,kDAAwB;AACxB,mDAAyB;AACzB,mDAAyB"}
@@ -0,0 +1,2 @@
1
+ import { IConfig } from '../types';
2
+ export declare const defaults: IConfig;