@admin-layout/schedule-module-server 1.0.3 → 1.4.0-alpha.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.
- package/lib/index.js +20 -13
- package/lib/index.js.map +1 -1
- package/package.json +4 -25
package/lib/index.js
CHANGED
@@ -127,7 +127,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
127
127
|
o[k2] = m[k];
|
128
128
|
}));
|
129
129
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
130
|
-
for (var p in m) if (p !== "default" && !
|
130
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
131
131
|
};
|
132
132
|
Object.defineProperty(exports, "__esModule", { value: true });
|
133
133
|
__exportStar(__webpack_require__(/*! ./constants */ "./src/constants/constants.ts"), exports);
|
@@ -150,27 +150,30 @@ const inversify_1 = __webpack_require__(/*! inversify */ "inversify");
|
|
150
150
|
const constants_1 = __webpack_require__(/*! ../constants */ "./src/constants/index.ts");
|
151
151
|
const services_1 = __webpack_require__(/*! ../services */ "./src/services/index.ts");
|
152
152
|
const repository_1 = __webpack_require__(/*! ../store/repository */ "./src/store/repository/index.ts");
|
153
|
-
|
153
|
+
const scheduleModule = (setting) => new inversify_1.ContainerModule((bind) => {
|
154
154
|
bind(constants_1.TYPES.IScheduleRepository)
|
155
155
|
.to(repository_1.ScheduleRepository)
|
156
156
|
.inSingletonScope()
|
157
157
|
.whenTargetIsDefault();
|
158
158
|
bind(constants_1.TYPES.IScheduleService).to(services_1.ScheduleService).inSingletonScope().whenTargetIsDefault();
|
159
159
|
});
|
160
|
-
exports.
|
160
|
+
exports.scheduleModule = scheduleModule;
|
161
|
+
const timelineModule = (setting) => new inversify_1.ContainerModule((bind) => {
|
161
162
|
bind(constants_1.TYPES.ITimelineRepository)
|
162
163
|
.to(repository_1.TimelineRepository)
|
163
164
|
.inSingletonScope()
|
164
165
|
.whenTargetIsDefault();
|
165
166
|
bind(constants_1.TYPES.ITimelineService).to(services_1.TimelineService).inSingletonScope().whenTargetIsDefault();
|
166
167
|
});
|
167
|
-
exports.
|
168
|
+
exports.timelineModule = timelineModule;
|
169
|
+
const timesheetModule = (setting) => new inversify_1.ContainerModule((bind) => {
|
168
170
|
bind(constants_1.TYPES.ITimesheetRepository)
|
169
171
|
.to(repository_1.TimesheetRepository)
|
170
172
|
.inSingletonScope()
|
171
173
|
.whenTargetIsDefault();
|
172
174
|
bind(constants_1.TYPES.ITimesheetService).to(services_1.TimesheetService).inSingletonScope().whenTargetIsDefault();
|
173
175
|
});
|
176
|
+
exports.timesheetModule = timesheetModule;
|
174
177
|
|
175
178
|
|
176
179
|
/***/ }),
|
@@ -192,7 +195,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
192
195
|
o[k2] = m[k];
|
193
196
|
}));
|
194
197
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
195
|
-
for (var p in m) if (p !== "default" && !
|
198
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
196
199
|
};
|
197
200
|
Object.defineProperty(exports, "__esModule", { value: true });
|
198
201
|
__exportStar(__webpack_require__(/*! ./containers */ "./src/containers/containers.ts"), exports);
|
@@ -217,7 +220,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
217
220
|
o[k2] = m[k];
|
218
221
|
}));
|
219
222
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
220
|
-
for (var p in m) if (p !== "default" && !
|
223
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
221
224
|
};
|
222
225
|
Object.defineProperty(exports, "__esModule", { value: true });
|
223
226
|
/* eslint-disable import/no-extraneous-dependencies */
|
@@ -296,7 +299,7 @@ exports.resolvers = [schedule_resolver_1.resolver];
|
|
296
299
|
Object.defineProperty(exports, "__esModule", { value: true });
|
297
300
|
exports.resolver = void 0;
|
298
301
|
// TODO:
|
299
|
-
|
302
|
+
const resolver = (options) => ({
|
300
303
|
Query: {
|
301
304
|
getScheduleEvents: (root, args, { scheduleService }) => {
|
302
305
|
options.logger.trace('(Query.getScheduleEvents) args %j', args);
|
@@ -319,6 +322,7 @@ exports.resolver = (options) => ({
|
|
319
322
|
},
|
320
323
|
Subscription: {},
|
321
324
|
});
|
325
|
+
exports.resolver = resolver;
|
322
326
|
|
323
327
|
|
324
328
|
/***/ }),
|
@@ -385,7 +389,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
385
389
|
o[k2] = m[k];
|
386
390
|
}));
|
387
391
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
388
|
-
for (var p in m) if (p !== "default" && !
|
392
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
389
393
|
};
|
390
394
|
Object.defineProperty(exports, "__esModule", { value: true });
|
391
395
|
__exportStar(__webpack_require__(/*! ./schedule-service */ "./src/services/schedule-service.ts"), exports);
|
@@ -562,7 +566,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
562
566
|
o[k2] = m[k];
|
563
567
|
}));
|
564
568
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
565
|
-
for (var p in m) if (p !== "default" && !
|
569
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
566
570
|
};
|
567
571
|
Object.defineProperty(exports, "__esModule", { value: true });
|
568
572
|
__exportStar(__webpack_require__(/*! ./schedule-model */ "./src/store/models/schedule-model.ts"), exports);
|
@@ -623,7 +627,8 @@ ScheduleSchema.set('toJSON', {
|
|
623
627
|
ScheduleSchema.set('toObject', {
|
624
628
|
virtuals: true,
|
625
629
|
});
|
626
|
-
|
630
|
+
const ScheduleModelFunc = (db) => db.model('schedule', ScheduleSchema);
|
631
|
+
exports.ScheduleModelFunc = ScheduleModelFunc;
|
627
632
|
|
628
633
|
|
629
634
|
/***/ }),
|
@@ -679,7 +684,8 @@ TimelineSchema.set('toJSON', {
|
|
679
684
|
TimelineSchema.set('toObject', {
|
680
685
|
virtuals: true,
|
681
686
|
});
|
682
|
-
|
687
|
+
const TimelineModelFunc = (db) => db.model('timeline', TimelineSchema);
|
688
|
+
exports.TimelineModelFunc = TimelineModelFunc;
|
683
689
|
|
684
690
|
|
685
691
|
/***/ }),
|
@@ -737,7 +743,8 @@ TimesheetSchema.set('toJSON', {
|
|
737
743
|
TimesheetSchema.set('toObject', {
|
738
744
|
virtuals: true,
|
739
745
|
});
|
740
|
-
|
746
|
+
const TimesheetModelFunc = (db) => db.model('timesheet', TimesheetSchema);
|
747
|
+
exports.TimesheetModelFunc = TimesheetModelFunc;
|
741
748
|
|
742
749
|
|
743
750
|
/***/ }),
|
@@ -759,7 +766,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
759
766
|
o[k2] = m[k];
|
760
767
|
}));
|
761
768
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
762
|
-
for (var p in m) if (p !== "default" && !
|
769
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
763
770
|
};
|
764
771
|
Object.defineProperty(exports, "__esModule", { value: true });
|
765
772
|
__exportStar(__webpack_require__(/*! ./schedule-repository */ "./src/store/repository/schedule-repository.ts"), exports);
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/constants/constants.ts","webpack:///./src/constants/index.ts","webpack:///./src/containers/containers.ts","webpack:///./src/containers/index.ts","webpack:///./src/index.ts","webpack:///./src/module.ts","webpack:///./src/resolvers/index.ts","webpack:///./src/resolvers/schedule-resolver.ts","webpack:///./src/schema/index.ts","webpack:///./src/schema/schedule-schema.graphql","webpack:///./src/schema/timeline-schema.graphql","webpack:///./src/services/index.ts","webpack:///./src/services/schedule-service.ts","webpack:///./src/services/timeline-service.ts","webpack:///./src/services/timesheet-service.ts","webpack:///./src/store/models/index.ts","webpack:///./src/store/models/schedule-model.ts","webpack:///./src/store/models/timeline-model.ts","webpack:///./src/store/models/timesheet-model.ts","webpack:///./src/store/repository/index.ts","webpack:///./src/store/repository/schedule-repository.ts","webpack:///./src/store/repository/timeline-repository.ts","webpack:///./src/store/repository/timesheet-repository.ts","webpack:///external \"@common-stack/server-core\"","webpack:///external \"inversify\"","webpack:///external \"mongoose\""],"names":[],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;AClFa,aAAK,GAAG;IACjB,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAC5C,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAC5C,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;CACvD,CAAC;;;;;;;;;;;;;;;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UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACzE,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,QAAiC;QAC/D,IAAI;YACA,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,mBAAM,QAAQ,EAAG,CAAC;YAClD,OAAO,IAAI,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;SAC9B;IACL,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAAe,EAAE,QAAiC;QAChF,IAAI;YACA,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,oBAAO,QAAQ,EAAG,CAAC;YACpE,OAAO,IAAI,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;SAC9B;IACL,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAAe;QAC7C,IAAI;YACA,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;YACnD,OAAO,IAAI,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;SAC9B;IACL,CAAC;CACJ;AAnDY,mBAAmB;IAD/B,sBAAU,EAAE;IAOJ,6BAAM,CAAC,mBAAmB,CAAC;IAG3B,6BAAM,CAAC,QAAQ,CAAC;IAGhB,6BAAM,CAAC,cAAc,CAAC;IACtB,+BAAQ,EAAE;GAbN,mBAAmB,CAmD/B;AAnDY,kDAAmB;;;;;;;;;;;;ACVhC,sD;;;;;;;;;;;ACAA,sC;;;;;;;;;;;ACAA,qC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.ts\");\n","export const TYPES = {\n IScheduleService: Symbol('IScheduleService'),\n ITimelineService: Symbol('ITimelineService'),\n ITimesheetService: Symbol('ITimesheetService'),\n IScheduleRepository: Symbol('IScheduleRepository'),\n ITimelineRepository: Symbol('ITimelineRepository'),\n ITimesheetRepository: Symbol('ITimesheetRepository'),\n};\n","export * from './constants';\n","import { ContainerModule, interfaces } from 'inversify';\nimport { TYPES } from '../constants';\nimport {\n IScheduleRepository,\n ITimelineRepository,\n ITimesheetRepository,\n IScheduleService,\n ITimelineService,\n ITimesheetService,\n} from '../interfaces';\nimport { ScheduleService, TimelineService, TimesheetService } from '../services';\nimport { ScheduleRepository, TimelineRepository, TimesheetRepository } from '../store/repository';\n\nexport const scheduleModule: (settings: any) => ContainerModule = (setting) =>\n new ContainerModule((bind: interfaces.Bind) => {\n bind<IScheduleRepository>(TYPES.IScheduleRepository)\n .to(ScheduleRepository)\n .inSingletonScope()\n .whenTargetIsDefault();\n\n bind<IScheduleService>(TYPES.IScheduleService).to(ScheduleService).inSingletonScope().whenTargetIsDefault();\n });\n\nexport const timelineModule: (settings: any) => ContainerModule = (setting) =>\n new ContainerModule((bind: interfaces.Bind) => {\n bind<ITimelineRepository>(TYPES.ITimelineRepository)\n .to(TimelineRepository)\n .inSingletonScope()\n .whenTargetIsDefault();\n\n bind<ITimelineService>(TYPES.ITimelineService).to(TimelineService).inSingletonScope().whenTargetIsDefault();\n });\n\nexport const timesheetModule: (settings: any) => ContainerModule = (setting) =>\n new ContainerModule((bind: interfaces.Bind) => {\n bind<ITimesheetRepository>(TYPES.ITimesheetRepository)\n .to(TimesheetRepository)\n .inSingletonScope()\n .whenTargetIsDefault();\n\n bind<ITimesheetService>(TYPES.ITimesheetService).to(TimesheetService).inSingletonScope().whenTargetIsDefault();\n });\n","export * from './containers';\n","/* eslint-disable import/no-extraneous-dependencies */\nimport { Feature } from '@common-stack/server-core';\nimport counter from './module';\n\nexport * from './constants';\n\nexport default new Feature(counter);\n","/* eslint-disable import/no-extraneous-dependencies */\nimport { Feature } from '@common-stack/server-core';\nimport { interfaces } from 'inversify';\nimport { schema } from './schema';\nimport { resolvers } from './resolvers';\nimport { scheduleModule, timelineModule, timesheetModule } from './containers';\nimport { TYPES } from './constants';\n\nconst dataSources: (container: interfaces.Container) => any = () => ({\n // counterCache: new CounterDataSource(),\n});\n\nconst createServiceFunc = (container: interfaces.Container) => ({\n scheduleService: container.get(TYPES.IScheduleService),\n timelineService: container.get(TYPES.ITimelineService),\n timesheetService: container.get(TYPES.ITimesheetService),\n});\n\nexport default new Feature({\n schema,\n createContainerFunc: [scheduleModule, timelineModule, timesheetModule],\n createResolversFunc: resolvers,\n createServiceFunc,\n // createContextFunc: () => ({ counterMock: counterMock }), // note anything set here should be singleton.\n createDataSourceFunc: dataSources,\n addBrokerMainServiceClass: [],\n});\n","import { resolver as scheduleResolver } from './schedule-resolver';\n// import { resolver as timelineResolver } from './timeline-resolver'\n\nexport const resolvers = [scheduleResolver];\n","// TODO:\nexport const resolver = (options) => ({\n Query: {\n getScheduleEvents: (root, args, { scheduleService }) => {\n options.logger.trace('(Query.getScheduleEvents) args %j', args);\n return scheduleService.getScheduleEvents(args.userId);\n },\n },\n Mutation: {\n addScheduleEvent: (root, args, { scheduleService }) => {\n options.logger.trace('(Mutation.addScheduleEvent) args %j', args);\n return scheduleService.createScheduleEvent(args.request);\n },\n updateScheduleEvent: (root, args, { scheduleService }) => {\n options.logger.trace('(Mutation.updateScheduleEvent) args %j', args);\n return scheduleService.updateScheduleEvent(args.eventId, args.request);\n },\n removeScheduleEvent: (root, args, { scheduleService }) => {\n options.logger.trace('(Mutation.removeScheduleEvent) args %j', args);\n return scheduleService.removeScheduleEvent(args.eventId);\n },\n },\n Subscription: {},\n});\n","/* eslint-disable import/no-extraneous-dependencies */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport * as _ from 'lodash';\nimport scheduleSchema from './schedule-schema.graphql';\nimport timelineSchema from './timeline-schema.graphql';\n\nconst schema = [scheduleSchema, timelineSchema].join('\\n');\n\nexport { schema };\n","export default \"# scalar DateTime\\n\\ntype Schedule {\\n id: String\\n title: String\\n allDay: Boolean\\n start: DateTime\\n end: DateTime\\n desc: String\\n userId: String\\n resourceId: String\\n tooltip: String\\n isBillable: Boolean\\n submittedOn: DateTime\\n reason: String\\n note: String\\n approvedOn: DateTime\\n}\\n\\ninput ScheduleCreateRequest {\\n title: String\\n allDay: Boolean\\n start: DateTime\\n end: DateTime\\n desc: String\\n userId: String\\n resourceId: String\\n tooltip: String\\n isBillable: Boolean\\n submittedOn: DateTime\\n reason: String\\n note: String\\n approvedOn: DateTime\\n}\\n\\nextend type Query {\\n getScheduleEvents(userId: String): [Schedule]\\n}\\n\\nextend type Mutation {\\n addScheduleEvent(request: ScheduleCreateRequest): Boolean\\n updateScheduleEvent(eventId: String, request: ScheduleCreateRequest): Boolean\\n removeScheduleEvent(eventId: String): Boolean\\n}\\n\";","export default \"# scalar DateTime\\n\\ntype Timeline {\\n id: String\\n title: String\\n allDay: Boolean\\n start: DateTime\\n end: DateTime\\n desc: String\\n userId: String\\n resourceId: String\\n tooltip: String\\n isBillable: Boolean\\n submittedOn: DateTime\\n reason: String\\n note: String\\n approvedOn: DateTime\\n}\\n\\ninput TimelineCreateRequest {\\n title: String\\n allDay: Boolean\\n start: DateTime\\n end: DateTime\\n desc: String\\n userId: String\\n resourceId: String\\n tooltip: String\\n isBillable: Boolean\\n submittedOn: DateTime\\n reason: String\\n note: String\\n approvedOn: DateTime\\n}\\n\\nextend type Query {\\n getTimelineEvents(userId: String): [Timeline]\\n}\\n\\nextend type Mutation {\\n addTimelineEvent(request: TimelineCreateRequest): Boolean\\n updateTimelineEvent(eventId: String, request: TimelineCreateRequest): Boolean\\n removeTimelineEvent(eventId: String): Boolean\\n}\\n\";","export * from './schedule-service';\nexport * from './timesheet-service';\nexport * from './timeline-service';\n","/* eslint-disable import/no-extraneous-dependencies */\nimport { CdmLogger } from '@cdm-logger/core';\n\nimport { inject, injectable } from 'inversify';\nimport { ISchedule, IScheduleCreateRequest } from '@admin-layout/schedule-module-core';\nimport { IScheduleService, IScheduleRepository } from '../interfaces';\nimport { TYPES } from '../constants';\n\ntype ILogger = CdmLogger.ILogger;\n@injectable()\nexport class ScheduleService implements IScheduleService {\n private logger: ILogger;\n\n constructor(\n @inject(TYPES.IScheduleRepository)\n protected scheduleRepository: IScheduleRepository,\n\n @inject('Logger')\n logger: ILogger,\n ) {\n this.logger = logger;\n }\n\n public async getScheduleEvents(userId: string): Promise<Array<ISchedule>> {\n return this.scheduleRepository.getScheduleEvents(userId);\n }\n\n public async createScheduleEvent(newEvent: IScheduleCreateRequest): Promise<boolean> {\n return this.scheduleRepository.createScheduleEvent(newEvent);\n }\n\n public async updateScheduleEvent(eventId: string, newEvent: ISchedule): Promise<boolean> {\n return this.scheduleRepository.updateScheduleEvent(eventId, newEvent);\n }\n\n public async removeScheduleEvent(eventId: string): Promise<boolean> {\n return this.scheduleRepository.removeScheduleEvent(eventId);\n }\n}\n","/* eslint-disable import/no-extraneous-dependencies */\nimport { CdmLogger } from '@cdm-logger/core';\n\nimport { inject, injectable } from 'inversify';\nimport { ITimeline, ITimelineCreateRequest } from '@admin-layout/schedule-module-core';\nimport { ITimelineService, ITimelineRepository } from '../interfaces';\nimport { TYPES } from '../constants';\n\n@injectable()\nexport class TimelineService implements ITimelineService {\n private logger: CdmLogger.ILogger;\n\n constructor(\n @inject(TYPES.ITimelineRepository)\n protected timelineRepository: ITimelineRepository,\n\n @inject('Logger')\n logger: CdmLogger.ILogger,\n ) {\n this.logger = logger;\n }\n\n public async getTimelineEvents(userId: string): Promise<Array<ITimeline>> {\n return this.timelineRepository.getTimelineEvents(userId);\n }\n\n public async createTimelineEvent(newEvent: ITimelineCreateRequest): Promise<boolean> {\n return this.timelineRepository.createTimelineEvent(newEvent);\n }\n\n public async updateTimelineEvent(eventId: string, newEvent: ITimeline): Promise<boolean> {\n return this.timelineRepository.updateTimelineEvent(eventId, newEvent);\n }\n\n public async removeTimelineEvent(eventId: string): Promise<boolean> {\n return this.timelineRepository.removeTimelineEvent(eventId);\n }\n}\n","/* eslint-disable import/no-extraneous-dependencies */\nimport * as ILogger from 'bunyan';\nimport { inject, injectable } from 'inversify';\nimport { ITimesheet, ITimesheetCreateRequest } from '@admin-layout/timetracker-core';\nimport { ITimesheetService, ITimesheetRepository } from '../interfaces';\nimport { TYPES } from '../constants';\n\n@injectable()\nexport class TimesheetService implements ITimesheetService {\n private logger: ILogger;\n\n constructor(\n @inject(TYPES.ITimesheetRepository)\n protected timesheetRepository: ITimesheetRepository,\n\n @inject('Logger')\n logger: ILogger,\n ) {\n this.logger = logger;\n }\n\n public async getTimesheetEvents(userId: string): Promise<Array<ITimesheet>> {\n return this.timesheetRepository.getTimesheetEvents(userId);\n }\n\n public async createTimesheetEvent(newEvent: ITimesheetCreateRequest): Promise<boolean> {\n return this.timesheetRepository.createTimesheetEvent(newEvent);\n }\n\n public async updateTimesheetEvent(eventId: string, newEvent: ITimesheet): Promise<boolean> {\n return this.timesheetRepository.updateTimesheetEvent(eventId, newEvent);\n }\n\n public async removeTimesheetEvent(eventId: string): Promise<boolean> {\n return this.timesheetRepository.removeTimesheetEvent(eventId);\n }\n}\n","export * from './schedule-model'\nexport * from './timeline-model'\nexport * from './timesheet-model'","/* eslint-disable no-underscore-dangle */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { Schema, Model, Document, Connection } from 'mongoose';\nimport { ISchedule } from '@admin-layout/schedule-module-core';\n\nexport interface IScheduleModel extends ISchedule, Document {\n id: any;\n}\n\nconst ScheduleSchema = new Schema({\n // Event title\n title: { type: String, required: true },\n // all day event ? true: false\n allDay: { type: Boolean, default: false },\n // start date\n start: { type: Date },\n // end date\n end: { type: Date },\n // description\n desc: { type: String },\n // userId\n userId: { type: String },\n // resouceId\n resourceId: { type: String },\n // tip\n tooltip: { type: String },\n // isBillable\n isBillable: { type: Boolean, default: false },\n // submitted date\n submittedOn: { type: Date },\n // reason\n reason: { type: String },\n // note\n note: { type: String },\n // approved date\n approvedOn: { type: Date },\n});\n\nScheduleSchema.virtual('id').get(function () {\n return this._id.toHexString();\n});\n\nScheduleSchema.set('toJSON', {\n virtuals: true,\n});\n\nScheduleSchema.set('toObject', {\n virtuals: true,\n});\n\nexport type ScheduleModelType = Model<IScheduleModel>;\n\nexport const ScheduleModelFunc: (db: Connection) => ScheduleModelType = (db) =>\n db.model<IScheduleModel>('schedule', ScheduleSchema);\n","/* eslint-disable no-underscore-dangle */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { Schema, Model, Document, Connection } from 'mongoose';\nimport { ITimeline } from '@admin-layout/schedule-module-core';\n\nexport interface ITimelineModel extends ITimeline, Document {\n id: any;\n}\n\nconst TimelineSchema = new Schema({\n // Event title\n title: { type: String, required: true },\n // all day event ? true: false\n allDay: { type: Boolean, default: false },\n // start date\n start: { type: Date },\n // end date\n end: { type: Date },\n // description\n desc: { type: String },\n // userId\n userId: { type: String },\n // resouceId\n resourceId: { type: String },\n // tip\n tooltip: { type: String },\n // isBillable\n isBillable: { type: Boolean, default: false },\n // submitted date\n submittedOn: { type: Date },\n // reason\n reason: { type: String },\n // note\n note: { type: String },\n // approved date\n approvedOn: { type: Date },\n});\n\nTimelineSchema.virtual('id').get(function () {\n return this._id.toHexString();\n});\n\nTimelineSchema.set('toJSON', {\n virtuals: true,\n});\n\nTimelineSchema.set('toObject', {\n virtuals: true,\n});\n\nexport type TimelineModelType = Model<ITimelineModel>;\n\nexport const TimelineModelFunc: (db: Connection) => TimelineModelType = (db) =>\n db.model<ITimelineModel>('timeline', TimelineSchema);\n","/* eslint-disable no-underscore-dangle */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { Schema, Model, Document, Connection } from 'mongoose';\nimport { ITimesheet } from '@admin-layout/timetracker-core';\n\nexport interface ITimesheetModel extends ITimesheet, Document {\n id: any;\n}\n\nconst TimesheetSchema = new Schema({\n // Event title\n title: { type: String, required: true },\n // all day event ? true: false\n allDay: { type: Boolean, default: false },\n // start date\n start: { type: Date },\n // end date\n end: { type: Date },\n // description\n desc: { type: String },\n // userId\n userId: { type: String },\n // resourceId\n resourceId: { type: String },\n // projectId\n projectId: { type: String },\n // tip\n tooltip: { type: String },\n // isBillable\n isBillable: { type: Boolean, default: false },\n // submitted date\n submittedOn: { type: Date },\n // reason\n reason: { type: String },\n // note\n note: { type: String },\n // approved date\n approvedOn: { type: Date },\n});\n\nTimesheetSchema.virtual('id').get(function () {\n return this._id.toHexString();\n});\n\nTimesheetSchema.set('toJSON', {\n virtuals: true,\n});\n\nTimesheetSchema.set('toObject', {\n virtuals: true,\n});\n\nexport type TimesheetModelType = Model<ITimesheetModel>;\n\nexport const TimesheetModelFunc: (db: Connection) => TimesheetModelType = (db) =>\n db.model<ITimesheetModel>('timesheet', TimesheetSchema);\n","export * from './schedule-repository';\nexport * from './timeline-repository';\nexport * from './timesheet-repository';\n","/* eslint-disable no-return-await */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { ISchedule, IScheduleCreateRequest } from '@admin-layout/schedule-module-core';\nimport * as Logger from 'bunyan';\nimport { injectable, inject, optional } from 'inversify';\nimport * as mongoose from 'mongoose';\nimport { IScheduleRepository } from '../../interfaces';\nimport { ScheduleModelType, ScheduleModelFunc } from '../models/schedule-model';\n\n@injectable()\nexport class ScheduleRepository implements IScheduleRepository {\n private scheduleModel: ScheduleModelType;\n\n private logger: Logger;\n\n constructor(\n @inject('MongoDBConnection')\n db: mongoose.Connection,\n\n @inject('Logger')\n logger: Logger,\n\n @inject('MongoOptions')\n @optional()\n options?: any,\n ) {\n this.logger = logger.child({ className: 'ScheduleRepository' });\n this.scheduleModel = ScheduleModelFunc(db);\n }\n\n public async getScheduleEvents(userId: string): Promise<Array<ISchedule>> {\n if (userId === undefined) return await this.scheduleModel.find({}).exec();\n return await this.scheduleModel.find({ resourceId: userId }).exec();\n }\n\n public async createScheduleEvent(newEvent: IScheduleCreateRequest): Promise<boolean> {\n try {\n await this.scheduleModel.create({ ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async updateScheduleEvent(eventId: string, newEvent: IScheduleCreateRequest): Promise<boolean> {\n try {\n await this.scheduleModel.update({ _id: eventId }, { ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async removeScheduleEvent(eventId: string): Promise<boolean> {\n try {\n await this.scheduleModel.remove({ _id: eventId });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n}\n","/* eslint-disable no-return-await */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { ITimeline, ITimelineCreateRequest } from '@admin-layout/schedule-module-core';\nimport * as Logger from 'bunyan';\nimport { injectable, inject, optional } from 'inversify';\nimport * as mongoose from 'mongoose';\nimport { ITimelineRepository } from '../../interfaces';\nimport { TimelineModelType, TimelineModelFunc } from '../models';\n\n@injectable()\nexport class TimelineRepository implements ITimelineRepository {\n private timelineModel: TimelineModelType;\n\n private logger: Logger;\n\n constructor(\n @inject('MongoDBConnection')\n db: mongoose.Connection,\n\n @inject('Logger')\n logger: Logger,\n\n @inject('MongoOptions')\n @optional()\n options?: any,\n ) {\n this.logger = logger.child({ className: 'TimelineRepository' });\n this.timelineModel = TimelineModelFunc(db);\n }\n\n public async getTimelineEvents(userId: string): Promise<Array<ITimeline>> {\n if (userId === undefined) return await this.timelineModel.find({}).exec();\n return await this.timelineModel.find({ resourceId: userId }).exec();\n }\n\n public async createTimelineEvent(newEvent: ITimelineCreateRequest): Promise<boolean> {\n try {\n await this.timelineModel.create({ ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async updateTimelineEvent(eventId: string, newEvent: ITimelineCreateRequest): Promise<boolean> {\n try {\n await this.timelineModel.update({ _id: eventId }, { ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async removeTimelineEvent(eventId: string): Promise<boolean> {\n try {\n await this.timelineModel.remove({ _id: eventId });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n}\n","/* eslint-disable no-return-await */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { ITimesheet, ITimesheetCreateRequest } from '@admin-layout/timetracker-core';\nimport * as Logger from 'bunyan';\nimport { injectable, inject, optional } from 'inversify';\nimport * as mongoose from 'mongoose';\nimport { ITimesheetRepository } from '../../interfaces';\nimport { TimesheetModelType, TimesheetModelFunc } from '../models';\n\n@injectable()\nexport class TimesheetRepository implements ITimesheetRepository {\n private timesheetModel: TimesheetModelType;\n\n private logger: Logger;\n\n constructor(\n @inject('MongoDBConnection')\n db: mongoose.Connection,\n\n @inject('Logger')\n logger: Logger,\n\n @inject('MongoOptions')\n @optional()\n options?: any,\n ) {\n this.logger = logger.child({ className: 'TimesheetRepository' });\n this.timesheetModel = TimesheetModelFunc(db);\n }\n\n public async getTimesheetEvents(userId: string): Promise<Array<ITimesheet>> {\n if (userId === undefined) return await this.timesheetModel.find({}).exec();\n return await this.timesheetModel.find({ resourceId: userId }).exec();\n }\n\n public async createTimesheetEvent(newEvent: ITimesheetCreateRequest): Promise<boolean> {\n try {\n await this.timesheetModel.create({ ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async updateTimesheetEvent(eventId: string, newEvent: ITimesheetCreateRequest): Promise<boolean> {\n try {\n await this.timesheetModel.update({ _id: eventId }, { ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async removeTimesheetEvent(eventId: string): Promise<boolean> {\n try {\n await this.timesheetModel.remove({ _id: eventId });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n}\n","module.exports = require(\"@common-stack/server-core\");","module.exports = require(\"inversify\");","module.exports = require(\"mongoose\");"],"sourceRoot":""}
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/constants/constants.ts","webpack:///./src/constants/index.ts","webpack:///./src/containers/containers.ts","webpack:///./src/containers/index.ts","webpack:///./src/index.ts","webpack:///./src/module.ts","webpack:///./src/resolvers/index.ts","webpack:///./src/resolvers/schedule-resolver.ts","webpack:///./src/schema/index.ts","webpack:///./src/schema/schedule-schema.graphql","webpack:///./src/schema/timeline-schema.graphql","webpack:///./src/services/index.ts","webpack:///./src/services/schedule-service.ts","webpack:///./src/services/timeline-service.ts","webpack:///./src/services/timesheet-service.ts","webpack:///./src/store/models/index.ts","webpack:///./src/store/models/schedule-model.ts","webpack:///./src/store/models/timeline-model.ts","webpack:///./src/store/models/timesheet-model.ts","webpack:///./src/store/repository/index.ts","webpack:///./src/store/repository/schedule-repository.ts","webpack:///./src/store/repository/timeline-repository.ts","webpack:///./src/store/repository/timesheet-repository.ts","webpack:///external \"@common-stack/server-core\"","webpack:///external \"inversify\"","webpack:///external \"mongoose\""],"names":[],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;Q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B,CAAC,OAAe;QAC7C,IAAI;YACA,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;YACnD,OAAO,IAAI,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;SAC9B;IACL,CAAC;CACJ;AAnDY,mBAAmB;IAD/B,sBAAU,EAAE;IAOJ,6BAAM,CAAC,mBAAmB,CAAC;IAG3B,6BAAM,CAAC,QAAQ,CAAC;IAGhB,6BAAM,CAAC,cAAc,CAAC;IACtB,+BAAQ,EAAE;GAbN,mBAAmB,CAmD/B;AAnDY,kDAAmB;;;;;;;;;;;;ACVhC,sD;;;;;;;;;;;ACAA,sC;;;;;;;;;;;ACAA,qC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.ts\");\n","export const TYPES = {\n IScheduleService: Symbol('IScheduleService'),\n ITimelineService: Symbol('ITimelineService'),\n ITimesheetService: Symbol('ITimesheetService'),\n IScheduleRepository: Symbol('IScheduleRepository'),\n ITimelineRepository: Symbol('ITimelineRepository'),\n ITimesheetRepository: Symbol('ITimesheetRepository'),\n};\n","export * from './constants';\n","import { ContainerModule, interfaces } from 'inversify';\nimport { TYPES } from '../constants';\nimport {\n IScheduleRepository,\n ITimelineRepository,\n ITimesheetRepository,\n IScheduleService,\n ITimelineService,\n ITimesheetService,\n} from '../interfaces';\nimport { ScheduleService, TimelineService, TimesheetService } from '../services';\nimport { ScheduleRepository, TimelineRepository, TimesheetRepository } from '../store/repository';\n\nexport const scheduleModule: (settings: any) => ContainerModule = (setting) =>\n new ContainerModule((bind: interfaces.Bind) => {\n bind<IScheduleRepository>(TYPES.IScheduleRepository)\n .to(ScheduleRepository)\n .inSingletonScope()\n .whenTargetIsDefault();\n\n bind<IScheduleService>(TYPES.IScheduleService).to(ScheduleService).inSingletonScope().whenTargetIsDefault();\n });\n\nexport const timelineModule: (settings: any) => ContainerModule = (setting) =>\n new ContainerModule((bind: interfaces.Bind) => {\n bind<ITimelineRepository>(TYPES.ITimelineRepository)\n .to(TimelineRepository)\n .inSingletonScope()\n .whenTargetIsDefault();\n\n bind<ITimelineService>(TYPES.ITimelineService).to(TimelineService).inSingletonScope().whenTargetIsDefault();\n });\n\nexport const timesheetModule: (settings: any) => ContainerModule = (setting) =>\n new ContainerModule((bind: interfaces.Bind) => {\n bind<ITimesheetRepository>(TYPES.ITimesheetRepository)\n .to(TimesheetRepository)\n .inSingletonScope()\n .whenTargetIsDefault();\n\n bind<ITimesheetService>(TYPES.ITimesheetService).to(TimesheetService).inSingletonScope().whenTargetIsDefault();\n });\n","export * from './containers';\n","/* eslint-disable import/no-extraneous-dependencies */\nimport { Feature } from '@common-stack/server-core';\nimport counter from './module';\n\nexport * from './constants';\n\nexport default new Feature(counter);\n","/* eslint-disable import/no-extraneous-dependencies */\nimport { Feature } from '@common-stack/server-core';\nimport { interfaces } from 'inversify';\nimport { schema } from './schema';\nimport { resolvers } from './resolvers';\nimport { scheduleModule, timelineModule, timesheetModule } from './containers';\nimport { TYPES } from './constants';\n\nconst dataSources: (container: interfaces.Container) => any = () => ({\n // counterCache: new CounterDataSource(),\n});\n\nconst createServiceFunc = (container: interfaces.Container) => ({\n scheduleService: container.get(TYPES.IScheduleService),\n timelineService: container.get(TYPES.ITimelineService),\n timesheetService: container.get(TYPES.ITimesheetService),\n});\n\nexport default new Feature({\n schema,\n createContainerFunc: [scheduleModule, timelineModule, timesheetModule],\n createResolversFunc: resolvers,\n createServiceFunc,\n // createContextFunc: () => ({ counterMock: counterMock }), // note anything set here should be singleton.\n createDataSourceFunc: dataSources,\n addBrokerMainServiceClass: [],\n});\n","import { resolver as scheduleResolver } from './schedule-resolver';\n// import { resolver as timelineResolver } from './timeline-resolver'\n\nexport const resolvers = [scheduleResolver];\n","// TODO:\nexport const resolver = (options) => ({\n Query: {\n getScheduleEvents: (root, args, { scheduleService }) => {\n options.logger.trace('(Query.getScheduleEvents) args %j', args);\n return scheduleService.getScheduleEvents(args.userId);\n },\n },\n Mutation: {\n addScheduleEvent: (root, args, { scheduleService }) => {\n options.logger.trace('(Mutation.addScheduleEvent) args %j', args);\n return scheduleService.createScheduleEvent(args.request);\n },\n updateScheduleEvent: (root, args, { scheduleService }) => {\n options.logger.trace('(Mutation.updateScheduleEvent) args %j', args);\n return scheduleService.updateScheduleEvent(args.eventId, args.request);\n },\n removeScheduleEvent: (root, args, { scheduleService }) => {\n options.logger.trace('(Mutation.removeScheduleEvent) args %j', args);\n return scheduleService.removeScheduleEvent(args.eventId);\n },\n },\n Subscription: {},\n});\n","/* eslint-disable import/no-extraneous-dependencies */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport * as _ from 'lodash';\nimport scheduleSchema from './schedule-schema.graphql';\nimport timelineSchema from './timeline-schema.graphql';\n\nconst schema = [scheduleSchema, timelineSchema].join('\\n');\n\nexport { schema };\n","export default \"# scalar DateTime\\n\\ntype Schedule {\\n id: String\\n title: String\\n allDay: Boolean\\n start: DateTime\\n end: DateTime\\n desc: String\\n userId: String\\n resourceId: String\\n tooltip: String\\n isBillable: Boolean\\n submittedOn: DateTime\\n reason: String\\n note: String\\n approvedOn: DateTime\\n}\\n\\ninput ScheduleCreateRequest {\\n title: String\\n allDay: Boolean\\n start: DateTime\\n end: DateTime\\n desc: String\\n userId: String\\n resourceId: String\\n tooltip: String\\n isBillable: Boolean\\n submittedOn: DateTime\\n reason: String\\n note: String\\n approvedOn: DateTime\\n}\\n\\nextend type Query {\\n getScheduleEvents(userId: String): [Schedule]\\n}\\n\\nextend type Mutation {\\n addScheduleEvent(request: ScheduleCreateRequest): Boolean\\n updateScheduleEvent(eventId: String, request: ScheduleCreateRequest): Boolean\\n removeScheduleEvent(eventId: String): Boolean\\n}\\n\";","export default \"# scalar DateTime\\n\\ntype Timeline {\\n id: String\\n title: String\\n allDay: Boolean\\n start: DateTime\\n end: DateTime\\n desc: String\\n userId: String\\n resourceId: String\\n tooltip: String\\n isBillable: Boolean\\n submittedOn: DateTime\\n reason: String\\n note: String\\n approvedOn: DateTime\\n}\\n\\ninput TimelineCreateRequest {\\n title: String\\n allDay: Boolean\\n start: DateTime\\n end: DateTime\\n desc: String\\n userId: String\\n resourceId: String\\n tooltip: String\\n isBillable: Boolean\\n submittedOn: DateTime\\n reason: String\\n note: String\\n approvedOn: DateTime\\n}\\n\\nextend type Query {\\n getTimelineEvents(userId: String): [Timeline]\\n}\\n\\nextend type Mutation {\\n addTimelineEvent(request: TimelineCreateRequest): Boolean\\n updateTimelineEvent(eventId: String, request: TimelineCreateRequest): Boolean\\n removeTimelineEvent(eventId: String): Boolean\\n}\\n\";","export * from './schedule-service';\nexport * from './timesheet-service';\nexport * from './timeline-service';\n","/* eslint-disable import/no-extraneous-dependencies */\nimport { CdmLogger } from '@cdm-logger/core';\n\nimport { inject, injectable } from 'inversify';\nimport { ISchedule, IScheduleCreateRequest } from '@admin-layout/schedule-module-core';\nimport { IScheduleService, IScheduleRepository } from '../interfaces';\nimport { TYPES } from '../constants';\n\ntype ILogger = CdmLogger.ILogger;\n@injectable()\nexport class ScheduleService implements IScheduleService {\n private logger: ILogger;\n\n constructor(\n @inject(TYPES.IScheduleRepository)\n protected scheduleRepository: IScheduleRepository,\n\n @inject('Logger')\n logger: ILogger,\n ) {\n this.logger = logger;\n }\n\n public async getScheduleEvents(userId: string): Promise<Array<ISchedule>> {\n return this.scheduleRepository.getScheduleEvents(userId);\n }\n\n public async createScheduleEvent(newEvent: IScheduleCreateRequest): Promise<boolean> {\n return this.scheduleRepository.createScheduleEvent(newEvent);\n }\n\n public async updateScheduleEvent(eventId: string, newEvent: ISchedule): Promise<boolean> {\n return this.scheduleRepository.updateScheduleEvent(eventId, newEvent);\n }\n\n public async removeScheduleEvent(eventId: string): Promise<boolean> {\n return this.scheduleRepository.removeScheduleEvent(eventId);\n }\n}\n","/* eslint-disable import/no-extraneous-dependencies */\nimport { CdmLogger } from '@cdm-logger/core';\n\nimport { inject, injectable } from 'inversify';\nimport { ITimeline, ITimelineCreateRequest } from '@admin-layout/schedule-module-core';\nimport { ITimelineService, ITimelineRepository } from '../interfaces';\nimport { TYPES } from '../constants';\n\n@injectable()\nexport class TimelineService implements ITimelineService {\n private logger: CdmLogger.ILogger;\n\n constructor(\n @inject(TYPES.ITimelineRepository)\n protected timelineRepository: ITimelineRepository,\n\n @inject('Logger')\n logger: CdmLogger.ILogger,\n ) {\n this.logger = logger;\n }\n\n public async getTimelineEvents(userId: string): Promise<Array<ITimeline>> {\n return this.timelineRepository.getTimelineEvents(userId);\n }\n\n public async createTimelineEvent(newEvent: ITimelineCreateRequest): Promise<boolean> {\n return this.timelineRepository.createTimelineEvent(newEvent);\n }\n\n public async updateTimelineEvent(eventId: string, newEvent: ITimeline): Promise<boolean> {\n return this.timelineRepository.updateTimelineEvent(eventId, newEvent);\n }\n\n public async removeTimelineEvent(eventId: string): Promise<boolean> {\n return this.timelineRepository.removeTimelineEvent(eventId);\n }\n}\n","/* eslint-disable import/no-extraneous-dependencies */\nimport * as ILogger from 'bunyan';\nimport { inject, injectable } from 'inversify';\nimport { ITimesheet, ITimesheetCreateRequest } from '@admin-layout/timetracker-core';\nimport { ITimesheetService, ITimesheetRepository } from '../interfaces';\nimport { TYPES } from '../constants';\n\n@injectable()\nexport class TimesheetService implements ITimesheetService {\n private logger: ILogger;\n\n constructor(\n @inject(TYPES.ITimesheetRepository)\n protected timesheetRepository: ITimesheetRepository,\n\n @inject('Logger')\n logger: ILogger,\n ) {\n this.logger = logger;\n }\n\n public async getTimesheetEvents(userId: string): Promise<Array<ITimesheet>> {\n return this.timesheetRepository.getTimesheetEvents(userId);\n }\n\n public async createTimesheetEvent(newEvent: ITimesheetCreateRequest): Promise<boolean> {\n return this.timesheetRepository.createTimesheetEvent(newEvent);\n }\n\n public async updateTimesheetEvent(eventId: string, newEvent: ITimesheet): Promise<boolean> {\n return this.timesheetRepository.updateTimesheetEvent(eventId, newEvent);\n }\n\n public async removeTimesheetEvent(eventId: string): Promise<boolean> {\n return this.timesheetRepository.removeTimesheetEvent(eventId);\n }\n}\n","export * from './schedule-model'\nexport * from './timeline-model'\nexport * from './timesheet-model'","/* eslint-disable no-underscore-dangle */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { Schema, Model, Document, Connection } from 'mongoose';\nimport { ISchedule } from '@admin-layout/schedule-module-core';\n\nexport interface IScheduleModel extends ISchedule, Document {\n id: any;\n}\n\nconst ScheduleSchema = new Schema({\n // Event title\n title: { type: String, required: true },\n // all day event ? true: false\n allDay: { type: Boolean, default: false },\n // start date\n start: { type: Date },\n // end date\n end: { type: Date },\n // description\n desc: { type: String },\n // userId\n userId: { type: String },\n // resouceId\n resourceId: { type: String },\n // tip\n tooltip: { type: String },\n // isBillable\n isBillable: { type: Boolean, default: false },\n // submitted date\n submittedOn: { type: Date },\n // reason\n reason: { type: String },\n // note\n note: { type: String },\n // approved date\n approvedOn: { type: Date },\n});\n\nScheduleSchema.virtual('id').get(function () {\n return this._id.toHexString();\n});\n\nScheduleSchema.set('toJSON', {\n virtuals: true,\n});\n\nScheduleSchema.set('toObject', {\n virtuals: true,\n});\n\nexport type ScheduleModelType = Model<IScheduleModel>;\n\nexport const ScheduleModelFunc: (db: Connection) => ScheduleModelType = (db) =>\n db.model<IScheduleModel>('schedule', ScheduleSchema);\n","/* eslint-disable no-underscore-dangle */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { Schema, Model, Document, Connection } from 'mongoose';\nimport { ITimeline } from '@admin-layout/schedule-module-core';\n\nexport interface ITimelineModel extends ITimeline, Document {\n id: any;\n}\n\nconst TimelineSchema = new Schema({\n // Event title\n title: { type: String, required: true },\n // all day event ? true: false\n allDay: { type: Boolean, default: false },\n // start date\n start: { type: Date },\n // end date\n end: { type: Date },\n // description\n desc: { type: String },\n // userId\n userId: { type: String },\n // resouceId\n resourceId: { type: String },\n // tip\n tooltip: { type: String },\n // isBillable\n isBillable: { type: Boolean, default: false },\n // submitted date\n submittedOn: { type: Date },\n // reason\n reason: { type: String },\n // note\n note: { type: String },\n // approved date\n approvedOn: { type: Date },\n});\n\nTimelineSchema.virtual('id').get(function () {\n return this._id.toHexString();\n});\n\nTimelineSchema.set('toJSON', {\n virtuals: true,\n});\n\nTimelineSchema.set('toObject', {\n virtuals: true,\n});\n\nexport type TimelineModelType = Model<ITimelineModel>;\n\nexport const TimelineModelFunc: (db: Connection) => TimelineModelType = (db) =>\n db.model<ITimelineModel>('timeline', TimelineSchema);\n","/* eslint-disable no-underscore-dangle */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { Schema, Model, Document, Connection } from 'mongoose';\nimport { ITimesheet } from '@admin-layout/timetracker-core';\n\nexport interface ITimesheetModel extends ITimesheet, Document {\n id: any;\n}\n\nconst TimesheetSchema = new Schema({\n // Event title\n title: { type: String, required: true },\n // all day event ? true: false\n allDay: { type: Boolean, default: false },\n // start date\n start: { type: Date },\n // end date\n end: { type: Date },\n // description\n desc: { type: String },\n // userId\n userId: { type: String },\n // resourceId\n resourceId: { type: String },\n // projectId\n projectId: { type: String },\n // tip\n tooltip: { type: String },\n // isBillable\n isBillable: { type: Boolean, default: false },\n // submitted date\n submittedOn: { type: Date },\n // reason\n reason: { type: String },\n // note\n note: { type: String },\n // approved date\n approvedOn: { type: Date },\n});\n\nTimesheetSchema.virtual('id').get(function () {\n return this._id.toHexString();\n});\n\nTimesheetSchema.set('toJSON', {\n virtuals: true,\n});\n\nTimesheetSchema.set('toObject', {\n virtuals: true,\n});\n\nexport type TimesheetModelType = Model<ITimesheetModel>;\n\nexport const TimesheetModelFunc: (db: Connection) => TimesheetModelType = (db) =>\n db.model<ITimesheetModel>('timesheet', TimesheetSchema);\n","export * from './schedule-repository';\nexport * from './timeline-repository';\nexport * from './timesheet-repository';\n","/* eslint-disable no-return-await */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { ISchedule, IScheduleCreateRequest } from '@admin-layout/schedule-module-core';\nimport * as Logger from 'bunyan';\nimport { injectable, inject, optional } from 'inversify';\nimport * as mongoose from 'mongoose';\nimport { IScheduleRepository } from '../../interfaces';\nimport { ScheduleModelType, ScheduleModelFunc } from '../models/schedule-model';\n\n@injectable()\nexport class ScheduleRepository implements IScheduleRepository {\n private scheduleModel: ScheduleModelType;\n\n private logger: Logger;\n\n constructor(\n @inject('MongoDBConnection')\n db: mongoose.Connection,\n\n @inject('Logger')\n logger: Logger,\n\n @inject('MongoOptions')\n @optional()\n options?: any,\n ) {\n this.logger = logger.child({ className: 'ScheduleRepository' });\n this.scheduleModel = ScheduleModelFunc(db);\n }\n\n public async getScheduleEvents(userId: string): Promise<Array<ISchedule>> {\n if (userId === undefined) return await this.scheduleModel.find({}).exec();\n return await this.scheduleModel.find({ resourceId: userId }).exec();\n }\n\n public async createScheduleEvent(newEvent: IScheduleCreateRequest): Promise<boolean> {\n try {\n await this.scheduleModel.create({ ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async updateScheduleEvent(eventId: string, newEvent: IScheduleCreateRequest): Promise<boolean> {\n try {\n await this.scheduleModel.update({ _id: eventId }, { ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async removeScheduleEvent(eventId: string): Promise<boolean> {\n try {\n await this.scheduleModel.remove({ _id: eventId });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n}\n","/* eslint-disable no-return-await */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { ITimeline, ITimelineCreateRequest } from '@admin-layout/schedule-module-core';\nimport * as Logger from 'bunyan';\nimport { injectable, inject, optional } from 'inversify';\nimport * as mongoose from 'mongoose';\nimport { ITimelineRepository } from '../../interfaces';\nimport { TimelineModelType, TimelineModelFunc } from '../models';\n\n@injectable()\nexport class TimelineRepository implements ITimelineRepository {\n private timelineModel: TimelineModelType;\n\n private logger: Logger;\n\n constructor(\n @inject('MongoDBConnection')\n db: mongoose.Connection,\n\n @inject('Logger')\n logger: Logger,\n\n @inject('MongoOptions')\n @optional()\n options?: any,\n ) {\n this.logger = logger.child({ className: 'TimelineRepository' });\n this.timelineModel = TimelineModelFunc(db);\n }\n\n public async getTimelineEvents(userId: string): Promise<Array<ITimeline>> {\n if (userId === undefined) return await this.timelineModel.find({}).exec();\n return await this.timelineModel.find({ resourceId: userId }).exec();\n }\n\n public async createTimelineEvent(newEvent: ITimelineCreateRequest): Promise<boolean> {\n try {\n await this.timelineModel.create({ ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async updateTimelineEvent(eventId: string, newEvent: ITimelineCreateRequest): Promise<boolean> {\n try {\n await this.timelineModel.update({ _id: eventId }, { ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async removeTimelineEvent(eventId: string): Promise<boolean> {\n try {\n await this.timelineModel.remove({ _id: eventId });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n}\n","/* eslint-disable no-return-await */\n/* eslint-disable import/no-extraneous-dependencies */\nimport { ITimesheet, ITimesheetCreateRequest } from '@admin-layout/timetracker-core';\nimport * as Logger from 'bunyan';\nimport { injectable, inject, optional } from 'inversify';\nimport * as mongoose from 'mongoose';\nimport { ITimesheetRepository } from '../../interfaces';\nimport { TimesheetModelType, TimesheetModelFunc } from '../models';\n\n@injectable()\nexport class TimesheetRepository implements ITimesheetRepository {\n private timesheetModel: TimesheetModelType;\n\n private logger: Logger;\n\n constructor(\n @inject('MongoDBConnection')\n db: mongoose.Connection,\n\n @inject('Logger')\n logger: Logger,\n\n @inject('MongoOptions')\n @optional()\n options?: any,\n ) {\n this.logger = logger.child({ className: 'TimesheetRepository' });\n this.timesheetModel = TimesheetModelFunc(db);\n }\n\n public async getTimesheetEvents(userId: string): Promise<Array<ITimesheet>> {\n if (userId === undefined) return await this.timesheetModel.find({}).exec();\n return await this.timesheetModel.find({ resourceId: userId }).exec();\n }\n\n public async createTimesheetEvent(newEvent: ITimesheetCreateRequest): Promise<boolean> {\n try {\n await this.timesheetModel.create({ ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async updateTimesheetEvent(eventId: string, newEvent: ITimesheetCreateRequest): Promise<boolean> {\n try {\n await this.timesheetModel.update({ _id: eventId }, { ...newEvent });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n\n public async removeTimesheetEvent(eventId: string): Promise<boolean> {\n try {\n await this.timesheetModel.remove({ _id: eventId });\n return true;\n } catch (e) {\n throw new Error(e.message);\n }\n }\n}\n","module.exports = require(\"@common-stack/server-core\");","module.exports = require(\"inversify\");","module.exports = require(\"mongoose\");"],"sourceRoot":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@admin-layout/schedule-module-server",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.4.0-alpha.1",
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "CDMBase LLC",
|
@@ -18,30 +18,9 @@
|
|
18
18
|
"test:watch": "npm test -- --watch",
|
19
19
|
"watch": "yarn build:lib:watch"
|
20
20
|
},
|
21
|
-
"jest": {
|
22
|
-
"moduleFileExtensions": [
|
23
|
-
"ts",
|
24
|
-
"tsx",
|
25
|
-
"js",
|
26
|
-
"json"
|
27
|
-
],
|
28
|
-
"modulePaths": [
|
29
|
-
"node_modules"
|
30
|
-
],
|
31
|
-
"roots": [
|
32
|
-
"src"
|
33
|
-
],
|
34
|
-
"testEnvironment": "node",
|
35
|
-
"testRegex": "/__tests__/.*test*\\.(ts|tsx|js)$",
|
36
|
-
"transform": {
|
37
|
-
"\\.(ts|tsx)$": "<rootDir>/../../node_modules/ts-jest/preprocessor.js"
|
38
|
-
}
|
39
|
-
},
|
40
21
|
"dependencies": {
|
41
|
-
"@admin-layout/schedule-module-core": "
|
42
|
-
|
43
|
-
"peerDependencies": {
|
44
|
-
"inversify": "*"
|
22
|
+
"@admin-layout/schedule-module-core": "1.4.0-alpha.1",
|
23
|
+
"@admin-layout/timetracker-core": "1.0.3-alpha.78"
|
45
24
|
},
|
46
25
|
"publishConfig": {
|
47
26
|
"access": "public"
|
@@ -49,5 +28,5 @@
|
|
49
28
|
"typescript": {
|
50
29
|
"definition": "lib/index.d.ts"
|
51
30
|
},
|
52
|
-
"gitHead": "
|
31
|
+
"gitHead": "b65ab50f8d6c6b6be31729ddd2f42267b3a05a00"
|
53
32
|
}
|