@admin-layout/timetracker-module-server 1.0.3-alpha.65 → 1.0.3-alpha.80
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/lib/index.js
CHANGED
@@ -126,7 +126,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
126
126
|
o[k2] = m[k];
|
127
127
|
}));
|
128
128
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
129
|
-
for (var p in m) if (p !== "default" && !
|
129
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
130
130
|
};
|
131
131
|
Object.defineProperty(exports, "__esModule", { value: true });
|
132
132
|
__exportStar(__webpack_require__(/*! ./config */ "./src/config/config.ts"), exports);
|
@@ -199,7 +199,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
199
199
|
o[k2] = m[k];
|
200
200
|
}));
|
201
201
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
202
|
-
for (var p in m) if (p !== "default" && !
|
202
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
203
203
|
};
|
204
204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
205
205
|
__exportStar(__webpack_require__(/*! ./constants */ "./src/constants/constants.ts"), exports);
|
@@ -223,22 +223,26 @@ const constants_1 = __webpack_require__(/*! ../constants */ "./src/constants/ind
|
|
223
223
|
const services_1 = __webpack_require__(/*! ../services */ "./src/services/index.ts");
|
224
224
|
const repository_1 = __webpack_require__(/*! ../store/repository */ "./src/store/repository/index.ts");
|
225
225
|
const migration_1 = __webpack_require__(/*! ../migration */ "./src/migration/index.ts");
|
226
|
-
|
226
|
+
const timeTrackerStoreModule = (setting) => new inversify_1.ContainerModule((bind) => {
|
227
227
|
bind(constants_1.TYPES.ITimeRecordRepository).to(repository_1.TimeRecordRepository).inSingletonScope();
|
228
228
|
bind(constants_1.TYPES.ITimesheetRepository).to(repository_1.TimesheetRepository).inSingletonScope();
|
229
229
|
});
|
230
|
-
exports.
|
230
|
+
exports.timeTrackerStoreModule = timeTrackerStoreModule;
|
231
|
+
const timeTrackerMailModule = (setting) => new inversify_1.ContainerModule((bind) => {
|
231
232
|
bind('MongodbMigration').to(migration_1.TimesheetApprovalMailTemplate).whenTargetNamed(migration_1.TimesheetApprovalMailTemplate.name);
|
232
233
|
bind('MongodbMigration').to(migration_1.TimesheetSubmitMailTemplate).whenTargetNamed(migration_1.TimesheetSubmitMailTemplate.name);
|
233
234
|
});
|
234
|
-
exports.
|
235
|
+
exports.timeTrackerMailModule = timeTrackerMailModule;
|
236
|
+
const timeTrackerModule = (setting) => new inversify_1.ContainerModule((bind) => {
|
235
237
|
bind(constants_1.TYPES.ITimeRecordService).to(services_1.TimeRecordService).inSingletonScope();
|
236
238
|
bind(constants_1.TYPES.ITimesheetService).to(services_1.TimesheetService).inSingletonScope();
|
237
239
|
});
|
238
|
-
exports.
|
240
|
+
exports.timeTrackerModule = timeTrackerModule;
|
241
|
+
const timeTrackerProxyModule = (setting) => new inversify_1.ContainerModule((bind) => {
|
239
242
|
bind(constants_1.TYPES.ITimeRecordService).to(services_1.TimeRecordProxyService).inSingletonScope();
|
240
243
|
bind(constants_1.TYPES.ITimesheetService).to(services_1.TimesheetProxyService).inSingletonScope();
|
241
244
|
});
|
245
|
+
exports.timeTrackerProxyModule = timeTrackerProxyModule;
|
242
246
|
|
243
247
|
|
244
248
|
/***/ }),
|
@@ -260,7 +264,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
260
264
|
o[k2] = m[k];
|
261
265
|
}));
|
262
266
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
263
|
-
for (var p in m) if (p !== "default" && !
|
267
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
264
268
|
};
|
265
269
|
Object.defineProperty(exports, "__esModule", { value: true });
|
266
270
|
__exportStar(__webpack_require__(/*! ./containers */ "./src/containers/containers.ts"), exports);
|
@@ -285,7 +289,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
285
289
|
o[k2] = m[k];
|
286
290
|
}));
|
287
291
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
288
|
-
for (var p in m) if (p !== "default" && !
|
292
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
289
293
|
};
|
290
294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
291
295
|
const server_core_1 = __webpack_require__(/*! @common-stack/server-core */ "@common-stack/server-core");
|
@@ -316,7 +320,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
316
320
|
o[k2] = m[k];
|
317
321
|
}));
|
318
322
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
319
|
-
for (var p in m) if (p !== "default" && !
|
323
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
320
324
|
};
|
321
325
|
Object.defineProperty(exports, "__esModule", { value: true });
|
322
326
|
__exportStar(__webpack_require__(/*! ./service-initialization */ "./src/initialization/service-initialization.ts"), exports);
|
@@ -338,7 +342,7 @@ exports.mainLoadConfigurationPre = void 0;
|
|
338
342
|
const core_1 = __webpack_require__(/*! @workbench-stack/core */ "@workbench-stack/core");
|
339
343
|
const core_2 = __webpack_require__(/*! @common-stack/core */ "@common-stack/core");
|
340
344
|
const preferences_1 = __webpack_require__(/*! ../preferences */ "./src/preferences/index.ts");
|
341
|
-
|
345
|
+
const mainLoadConfigurationPre = async (_, container) => {
|
342
346
|
const logger = container.get(core_2.CommonType.LOGGER);
|
343
347
|
logger.info('PRESTART START: -- load TimeTrackerContribution to registry');
|
344
348
|
const registry = container.get(core_1.TYPES.IRegistry);
|
@@ -346,6 +350,7 @@ exports.mainLoadConfigurationPre = async (_, container) => {
|
|
346
350
|
configurationRegistry.registerConfiguration(preferences_1.TimeTrackerContribution);
|
347
351
|
logger.info('PRESTART ENDS: -- load TimeTrackerContribution to registry');
|
348
352
|
};
|
353
|
+
exports.mainLoadConfigurationPre = mainLoadConfigurationPre;
|
349
354
|
|
350
355
|
|
351
356
|
/***/ }),
|
@@ -380,7 +385,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
380
385
|
o[k2] = m[k];
|
381
386
|
}));
|
382
387
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
383
|
-
for (var p in m) if (p !== "default" && !
|
388
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
384
389
|
};
|
385
390
|
Object.defineProperty(exports, "__esModule", { value: true });
|
386
391
|
__exportStar(__webpack_require__(/*! ./mail-template */ "./src/migration/mail-template.ts"), exports);
|
@@ -557,7 +562,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
557
562
|
o[k2] = m[k];
|
558
563
|
}));
|
559
564
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
560
|
-
for (var p in m) if (p !== "default" && !
|
565
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
561
566
|
};
|
562
567
|
Object.defineProperty(exports, "__esModule", { value: true });
|
563
568
|
__exportStar(__webpack_require__(/*! ./timesheet-moleculer-service */ "./src/plugins/timesheet-moleculer-service.ts"), exports);
|
@@ -589,60 +594,42 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
589
594
|
Object.defineProperty(exports, "__esModule", { value: true });
|
590
595
|
exports.TimeRecordMoleculerService = void 0;
|
591
596
|
const moleculer_1 = __webpack_require__(/*! moleculer */ "moleculer");
|
592
|
-
const
|
597
|
+
const platform_server_1 = __webpack_require__(/*! @adminide-stack/platform-server */ "@adminide-stack/platform-server");
|
593
598
|
class TimeRecordMoleculerService extends moleculer_1.Service {
|
594
599
|
constructor(broker, _a) {
|
595
600
|
var { container } = _a, settings = __rest(_a, ["container"]);
|
596
601
|
super(broker);
|
597
602
|
const topic = "TimeRecord" /* TimeRecord */;
|
598
|
-
this.timerecordService = container.get(constants_1.TYPES.ITimeRecordService);
|
599
603
|
this.parseServiceSchema({
|
600
604
|
name: topic,
|
605
|
+
mixins: [platform_server_1.ApolloClientMixin],
|
601
606
|
actions: {
|
602
607
|
["getTimeRecords" /* getTimeRecords */]: {
|
603
|
-
handler: async (ctx) =>
|
604
|
-
return await this.timerecordService.getTimeRecords(ctx.params.orgId, ctx.params.userId);
|
605
|
-
}
|
608
|
+
handler: async (ctx) => this.timerecordService.getTimeRecords(ctx.params.orgId, ctx.params.userId),
|
606
609
|
},
|
607
610
|
["getDurationTimeRecords" /* getDurationTimeRecords */]: {
|
608
|
-
handler: async (ctx) =>
|
609
|
-
return await this.timerecordService.getDurationTimeRecords(ctx.params.orgId, ctx.params.startTime, ctx.params.endTime, ctx.params.userId);
|
610
|
-
}
|
611
|
+
handler: async (ctx) => this.timerecordService.getDurationTimeRecords(ctx.params.orgId, ctx.params.startTime, ctx.params.endTime, ctx.params.userId),
|
611
612
|
},
|
612
613
|
["getPlayingTimeRecord" /* getPlayingTimeRecord */]: {
|
613
|
-
handler: async (ctx) =>
|
614
|
-
return await this.timerecordService.getPlayingTimeRecord(ctx.params.userId, ctx.params.orgId);
|
615
|
-
}
|
614
|
+
handler: async (ctx) => this.timerecordService.getPlayingTimeRecord(ctx.params.userId, ctx.params.orgId),
|
616
615
|
},
|
617
616
|
["createTimeRecord" /* createTimeRecord */]: {
|
618
|
-
handler: async (ctx) =>
|
619
|
-
return await this.timerecordService.createTimeRecord(ctx.params.userId, ctx.params.orgId, ctx.params.request);
|
620
|
-
}
|
617
|
+
handler: async (ctx) => this.timerecordService.createTimeRecord(ctx.params.userId, ctx.params.orgId, ctx.params.request),
|
621
618
|
},
|
622
619
|
["updateTimeRecord" /* updateTimeRecord */]: {
|
623
|
-
handler: async (ctx) =>
|
624
|
-
return await this.timerecordService.updateTimeRecord(ctx.params.userId, ctx.params.orgId, ctx.params.recordId, ctx.params.request);
|
625
|
-
}
|
620
|
+
handler: async (ctx) => this.timerecordService.updateTimeRecord(ctx.params.userId, ctx.params.orgId, ctx.params.recordId, ctx.params.request),
|
626
621
|
},
|
627
622
|
["removeTimeRecord" /* removeTimeRecord */]: {
|
628
|
-
handler: async (ctx) =>
|
629
|
-
return await this.timerecordService.removeTimeRecord(ctx.params.userId, ctx.params.orgId, ctx.params.recordId);
|
630
|
-
}
|
623
|
+
handler: async (ctx) => this.timerecordService.removeTimeRecord(ctx.params.userId, ctx.params.orgId, ctx.params.recordId),
|
631
624
|
},
|
632
625
|
["removeDurationTimeRecords" /* removeDurationTimeRecords */]: {
|
633
|
-
handler: async (ctx) =>
|
634
|
-
return await this.timerecordService.removeDurationTimeRecords(ctx.params.userId, ctx.params.orgId, ctx.params.startTime, ctx.params.endTime, ctx.params.projectId);
|
635
|
-
}
|
626
|
+
handler: async (ctx) => this.timerecordService.removeDurationTimeRecords(ctx.params.userId, ctx.params.orgId, ctx.params.startTime, ctx.params.endTime, ctx.params.projectId),
|
636
627
|
},
|
637
628
|
["approveTimeRecords" /* approveTimeRecords */]: {
|
638
|
-
handler: async (ctx) =>
|
639
|
-
return await this.timerecordService.approveTimeRecords(ctx.params.orgId, ctx.params.sheetId, ctx.params.timeRecordsId);
|
640
|
-
}
|
629
|
+
handler: async (ctx) => this.timerecordService.approveTimeRecords(ctx.params.orgId, ctx.params.sheetId, ctx.params.timeRecordsId),
|
641
630
|
},
|
642
631
|
["disapproveTimeRecords" /* disapproveTimeRecords */]: {
|
643
|
-
handler: async (ctx) =>
|
644
|
-
return await this.timerecordService.disapproveTimeRecords(ctx.params.orgId, ctx.params.sheetId);
|
645
|
-
}
|
632
|
+
handler: async (ctx) => this.timerecordService.disapproveTimeRecords(ctx.params.orgId, ctx.params.sheetId),
|
646
633
|
},
|
647
634
|
},
|
648
635
|
});
|
@@ -676,6 +663,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
676
663
|
Object.defineProperty(exports, "__esModule", { value: true });
|
677
664
|
exports.TimesheetMoleculerService = void 0;
|
678
665
|
const moleculer_1 = __webpack_require__(/*! moleculer */ "moleculer");
|
666
|
+
const platform_server_1 = __webpack_require__(/*! @adminide-stack/platform-server */ "@adminide-stack/platform-server");
|
679
667
|
const core_1 = __webpack_require__(/*! @common-stack/core */ "@common-stack/core");
|
680
668
|
const constants_1 = __webpack_require__(/*! ../constants */ "./src/constants/index.ts");
|
681
669
|
class TimesheetMoleculerService extends moleculer_1.Service {
|
@@ -688,48 +676,33 @@ class TimesheetMoleculerService extends moleculer_1.Service {
|
|
688
676
|
this.timesheetService = this.container.get(constants_1.TYPES.ITimesheetService);
|
689
677
|
this.parseServiceSchema({
|
690
678
|
name: topic,
|
679
|
+
mixins: [platform_server_1.ApolloClientMixin],
|
691
680
|
events: {
|
692
681
|
["onRemoveTimeRecordIdFromTimesheet" /* onRemoveTimeRecordIdFromTimesheet */]: {
|
693
|
-
handler: async (ctx) =>
|
694
|
-
|
695
|
-
}
|
696
|
-
}
|
682
|
+
handler: async (ctx) => this.timesheetService.removeTimeRecordIdFromTimesheet(ctx.params.recordId, ctx.params.orgId),
|
683
|
+
},
|
697
684
|
},
|
698
685
|
actions: {
|
699
686
|
["getTimesheets" /* getTimesheets */]: {
|
700
|
-
handler: async (ctx) =>
|
701
|
-
return await this.timesheetService.getTimesheets(ctx.params.orgId);
|
702
|
-
}
|
687
|
+
handler: async (ctx) => this.timesheetService.getTimesheets(ctx.params.orgId),
|
703
688
|
},
|
704
689
|
["getTimesheetsWithTotalHours" /* getTimesheetsWithTotalHours */]: {
|
705
|
-
handler: async (ctx) =>
|
706
|
-
return await this.timesheetService.getTimesheetsWithTotalHours(ctx.params.orgId, ctx.params.userId);
|
707
|
-
}
|
690
|
+
handler: async (ctx) => this.timesheetService.getTimesheetsWithTotalHours(ctx.params.orgId, ctx.params.userId),
|
708
691
|
},
|
709
692
|
["getDurationTimesheets" /* getDurationTimesheets */]: {
|
710
|
-
handler: async (ctx) =>
|
711
|
-
return await this.timesheetService.getDurationTimesheets(ctx.params.orgId, ctx.params.start, ctx.params.end);
|
712
|
-
}
|
693
|
+
handler: async (ctx) => this.timesheetService.getDurationTimesheets(ctx.params.orgId, ctx.params.start, ctx.params.end),
|
713
694
|
},
|
714
695
|
["createTimesheet" /* createTimesheet */]: {
|
715
|
-
handler: async (ctx) =>
|
716
|
-
return await this.timesheetService.createTimesheet(ctx.params.userId, ctx.params.orgId, ctx.params.request);
|
717
|
-
}
|
696
|
+
handler: async (ctx) => this.timesheetService.createTimesheet(ctx.params.userId, ctx.params.orgId, ctx.params.request),
|
718
697
|
},
|
719
698
|
["updateTimesheet" /* updateTimesheet */]: {
|
720
|
-
handler: async (ctx) =>
|
721
|
-
return await this.timesheetService.updateTimesheet(ctx.params.userId, ctx.params.orgId, ctx.params.sheetId, ctx.params.request, ctx.params.userContext);
|
722
|
-
}
|
699
|
+
handler: async (ctx) => this.timesheetService.updateTimesheet(ctx.params.userId, ctx.params.orgId, ctx.params.sheetId, ctx.params.request, ctx.params.userContext),
|
723
700
|
},
|
724
701
|
["removeTimesheet" /* removeTimesheet */]: {
|
725
|
-
handler: async (ctx) =>
|
726
|
-
return await this.timesheetService.removeTimesheet(ctx.params.userId, ctx.params.orgId, ctx.params.sheetId);
|
727
|
-
}
|
702
|
+
handler: async (ctx) => this.timesheetService.removeTimesheet(ctx.params.userId, ctx.params.orgId, ctx.params.sheetId),
|
728
703
|
},
|
729
704
|
["updateTimesheetStatus" /* updateTimesheetStatus */]: {
|
730
|
-
handler: async (ctx) =>
|
731
|
-
return await this.timesheetService.updateTimesheetStatus(ctx.params.orgId, ctx.params.sheetId, ctx.params.state);
|
732
|
-
}
|
705
|
+
handler: async (ctx) => this.timesheetService.updateTimesheetStatus(ctx.params.orgId, ctx.params.sheetId, ctx.params.state),
|
733
706
|
},
|
734
707
|
},
|
735
708
|
});
|
@@ -757,7 +730,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
757
730
|
o[k2] = m[k];
|
758
731
|
}));
|
759
732
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
760
|
-
for (var p in m) if (p !== "default" && !
|
733
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
761
734
|
};
|
762
735
|
Object.defineProperty(exports, "__esModule", { value: true });
|
763
736
|
__exportStar(__webpack_require__(/*! ./settings */ "./src/preferences/settings/index.ts"), exports);
|
@@ -783,7 +756,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
783
756
|
o[k2] = m[k];
|
784
757
|
}));
|
785
758
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
786
|
-
for (var p in m) if (p !== "default" && !
|
759
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
787
760
|
};
|
788
761
|
Object.defineProperty(exports, "__esModule", { value: true });
|
789
762
|
__exportStar(__webpack_require__(/*! ./timing-permissions-contribution */ "./src/preferences/permissions/timing-permissions-contribution.ts"), exports);
|
@@ -1431,7 +1404,7 @@ exports.resolvers = [timerecord_resolver_1.resolver, timesheet_resolver_1.resolv
|
|
1431
1404
|
Object.defineProperty(exports, "__esModule", { value: true });
|
1432
1405
|
exports.resolver = void 0;
|
1433
1406
|
const graphql_subscriptions_1 = __webpack_require__(/*! graphql-subscriptions */ "graphql-subscriptions");
|
1434
|
-
|
1407
|
+
const resolver = (options) => ({
|
1435
1408
|
TimeRecord: {
|
1436
1409
|
id: (root) => root.id || root._id,
|
1437
1410
|
},
|
@@ -1486,6 +1459,7 @@ exports.resolver = (options) => ({
|
|
1486
1459
|
},
|
1487
1460
|
},
|
1488
1461
|
});
|
1462
|
+
exports.resolver = resolver;
|
1489
1463
|
|
1490
1464
|
|
1491
1465
|
/***/ }),
|
@@ -1502,7 +1476,7 @@ exports.resolver = (options) => ({
|
|
1502
1476
|
Object.defineProperty(exports, "__esModule", { value: true });
|
1503
1477
|
exports.resolver = void 0;
|
1504
1478
|
/* eslint-disable no-underscore-dangle */
|
1505
|
-
|
1479
|
+
const resolver = (options) => ({
|
1506
1480
|
Query: {
|
1507
1481
|
getTimesheets: (root, args, { timesheetService, userContext }) => {
|
1508
1482
|
options.logger.trace('(Query.getTimeSheets) args %j', args);
|
@@ -1534,6 +1508,7 @@ exports.resolver = (options) => ({
|
|
1534
1508
|
},
|
1535
1509
|
},
|
1536
1510
|
});
|
1511
|
+
exports.resolver = resolver;
|
1537
1512
|
|
1538
1513
|
|
1539
1514
|
/***/ }),
|
@@ -1628,7 +1603,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
1628
1603
|
o[k2] = m[k];
|
1629
1604
|
}));
|
1630
1605
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
1631
|
-
for (var p in m) if (p !== "default" && !
|
1606
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
1632
1607
|
};
|
1633
1608
|
Object.defineProperty(exports, "__esModule", { value: true });
|
1634
1609
|
__exportStar(__webpack_require__(/*! ./timesheet-service */ "./src/services/timesheet-service.ts"), exports);
|
@@ -2016,7 +1991,7 @@ let TimesheetService = class TimesheetService {
|
|
2016
1991
|
if (request.state === "SUBMITTED" /* SUBMITTED */ &&
|
2017
1992
|
settings.timetracker.notifications.submitNotifications &&
|
2018
1993
|
settings.timetracker.notifications.enableTimetrackerNotifications) {
|
2019
|
-
const mailTopic = '
|
1994
|
+
const mailTopic = 'Timesheet submitted';
|
2020
1995
|
const mailTo = userContext.emailId;
|
2021
1996
|
const mailFrom = config_1.config.MAIL_SEND_DEFAULT_EMAIL;
|
2022
1997
|
const templateId = constants_1.EmailTemplateCodes.SUBMIT_TIME;
|
@@ -2133,7 +2108,8 @@ TimeRecordSchema.set('toJSON', {
|
|
2133
2108
|
virtuals: true,
|
2134
2109
|
});
|
2135
2110
|
TimeRecordSchema.set('toObject', { virtuals: true });
|
2136
|
-
|
2111
|
+
const TimeRecordsModelFunc = (db) => db.model('timerecords', TimeRecordSchema);
|
2112
|
+
exports.TimeRecordsModelFunc = TimeRecordsModelFunc;
|
2137
2113
|
|
2138
2114
|
|
2139
2115
|
/***/ }),
|
@@ -2181,7 +2157,8 @@ TimesheetSchema.set('toJSON', {
|
|
2181
2157
|
virtuals: true,
|
2182
2158
|
});
|
2183
2159
|
TimesheetSchema.set('toObject', { virtuals: true });
|
2184
|
-
|
2160
|
+
const TimesheetsModelFunc = (db) => db.model('timesheets', TimesheetSchema);
|
2161
|
+
exports.TimesheetsModelFunc = TimesheetsModelFunc;
|
2185
2162
|
|
2186
2163
|
|
2187
2164
|
/***/ }),
|
@@ -2269,7 +2246,8 @@ TimeTrackerSchema.set('toJSON', {
|
|
2269
2246
|
virtuals: true,
|
2270
2247
|
});
|
2271
2248
|
TimeTrackerSchema.set('toObject', { virtuals: true });
|
2272
|
-
|
2249
|
+
const TimeTrackerModelFunc = (db) => db.model('timetracker', TimeTrackerSchema);
|
2250
|
+
exports.TimeTrackerModelFunc = TimeTrackerModelFunc;
|
2273
2251
|
|
2274
2252
|
|
2275
2253
|
/***/ }),
|
@@ -2291,7 +2269,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
2291
2269
|
o[k2] = m[k];
|
2292
2270
|
}));
|
2293
2271
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
2294
|
-
for (var p in m) if (p !== "default" && !
|
2272
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
2295
2273
|
};
|
2296
2274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2297
2275
|
__exportStar(__webpack_require__(/*! ./timerecord-repository */ "./src/store/repository/timerecord-repository.ts"), exports);
|
@@ -2570,6 +2548,17 @@ module.exports = require("@adminide-stack/core");
|
|
2570
2548
|
|
2571
2549
|
/***/ }),
|
2572
2550
|
|
2551
|
+
/***/ "@adminide-stack/platform-server":
|
2552
|
+
/*!**************************************************!*\
|
2553
|
+
!*** external "@adminide-stack/platform-server" ***!
|
2554
|
+
\**************************************************/
|
2555
|
+
/*! no static exports found */
|
2556
|
+
/***/ (function(module, exports) {
|
2557
|
+
|
2558
|
+
module.exports = require("@adminide-stack/platform-server");
|
2559
|
+
|
2560
|
+
/***/ }),
|
2561
|
+
|
2573
2562
|
/***/ "@common-stack/core":
|
2574
2563
|
/*!*************************************!*\
|
2575
2564
|
!*** external "@common-stack/core" ***!
|