@admin-layout/schedule-module-server 3.0.0-alpha.2 → 3.0.0-alpha.25
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.map +1 -1
- package/lib/interfaces/timesheet-repository.d.ts +3 -4
- package/lib/interfaces/timesheet-service.d.ts +3 -4
- package/lib/services/timesheet-service.d.ts +3 -4
- package/lib/store/models/timesheet-model.d.ts +1 -2
- package/lib/store/repository/timesheet-repository.d.ts +3 -4
- package/package.json +3 -3
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;AAAA,iEAAe,qCAAqC,8QAA8Q,iCAAiC,gQAAgQ,uBAAuB,oDAAoD,0BAA0B,kMAAkM,GAAG;;;;;;;;;;;;;;ACA74B,iEAAe,qCAAqC,8QAA8Q,iCAAiC,gQAAgQ,uBAAuB,oDAAoD,0BAA0B,kMAAkM,GAAG;;;;;;;;;;;;;ACAh4B,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;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPF,8FAA4B;;;;;;;;;;;;;;ACA5B,sEAAwD;AACxD,wFAAqC;AASrC,qFAAiF;AACjF,uGAAkG;AAE3F,MAAM,cAAc,GAAuC,CAAC,OAAO,EAAE,EAAE,CAC1E,IAAI,2BAAe,CAAC,CAAC,IAAqB,EAAE,EAAE;IAC1C,IAAI,CAAsB,iBAAK,CAAC,mBAAmB,CAAC;SAC/C,EAAE,CA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L,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,0BAAU,GAAE;IAOJ,iCAAM,EAAC,mBAAmB,CAAC;IAG3B,iCAAM,EAAC,QAAQ,CAAC;IAGhB,iCAAM,EAAC,cAAc,CAAC;IACtB,mCAAQ,GAAE;GAbN,mBAAmB,CAmD/B;AAnDY,kDAAmB;;;;;;;;;;;ACVhC;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;UENA;UACA;UACA;UACA","sources":["webpack://@admin-layout/schedule-module-server/./src/schema/schedule-schema.graphql","webpack://@admin-layout/schedule-module-server/./src/schema/timeline-schema.graphql","webpack://@admin-layout/schedule-module-server/./src/constants/constants.ts","webpack://@admin-layout/schedule-module-server/./src/constants/index.ts","webpack://@admin-layout/schedule-module-server/./src/containers/containers.ts","webpack://@admin-layout/schedule-module-server/./src/containers/index.ts","webpack://@admin-layout/schedule-module-server/./src/index.ts","webpack://@admin-layout/schedule-module-server/./src/module.ts","webpack://@admin-layout/schedule-module-server/./src/resolvers/index.ts","webpack://@admin-layout/schedule-module-server/./src/resolvers/schedule-resolver.ts","webpack://@admin-layout/schedule-module-server/./src/schema/index.ts","webpack://@admin-layout/schedule-module-server/./src/services/index.ts","webpack://@admin-layout/schedule-module-server/./src/services/schedule-service.ts","webpack://@admin-layout/schedule-module-server/./src/services/timeline-service.ts","webpack://@admin-layout/schedule-module-server/./src/services/timesheet-service.ts","webpack://@admin-layout/schedule-module-server/./src/store/models/index.ts","webpack://@admin-layout/schedule-module-server/./src/store/models/schedule-model.ts","webpack://@admin-layout/schedule-module-server/./src/store/models/timeline-model.ts","webpack://@admin-layout/schedule-module-server/./src/store/models/timesheet-model.ts","webpack://@admin-layout/schedule-module-server/./src/store/repository/index.ts","webpack://@admin-layout/schedule-module-server/./src/store/repository/schedule-repository.ts","webpack://@admin-layout/schedule-module-server/./src/store/repository/timeline-repository.ts","webpack://@admin-layout/schedule-module-server/./src/store/repository/timesheet-repository.ts","webpack://@admin-layout/schedule-module-server/external commonjs \"@common-stack/server-core\"","webpack://@admin-layout/schedule-module-server/external commonjs \"inversify\"","webpack://@admin-layout/schedule-module-server/external commonjs \"mongoose\"","webpack://@admin-layout/schedule-module-server/webpack/bootstrap","webpack://@admin-layout/schedule-module-server/webpack/runtime/define property getters","webpack://@admin-layout/schedule-module-server/webpack/runtime/hasOwnProperty shorthand","webpack://@admin-layout/schedule-module-server/webpack/runtime/make namespace object","webpack://@admin-layout/schedule-module-server/webpack/before-startup","webpack://@admin-layout/schedule-module-server/webpack/startup","webpack://@admin-layout/schedule-module-server/webpack/after-startup"],"sourcesContent":["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 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 * 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\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./src/index.ts\");\n",""],"names":[],"sourceRoot":""}
|
1
|
+
{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;AAAA,iEAAe,qCAAqC,8QAA8Q,iCAAiC,gQAAgQ,uBAAuB,oDAAoD,0BAA0B,kMAAkM,GAAG;;;;;;;;;;;;;;ACA74B,iEAAe,qCAAqC,8QAA8Q,iCAAiC,gQAAgQ,uBAAuB,oDAAoD,0BAA0B,kMAAkM,GAAG;;;;;;;;;;;;;ACAh4B,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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;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;UENA;UACA;UACA;UACA","sources":["webpack://@admin-layout/schedule-module-server/./src/schema/schedule-schema.graphql","webpack://@admin-layout/schedule-module-server/./src/schema/timeline-schema.graphql","webpack://@admin-layout/schedule-module-server/./src/constants/constants.ts","webpack://@admin-layout/schedule-module-server/./src/constants/index.ts","webpack://@admin-layout/schedule-module-server/./src/containers/containers.ts","webpack://@admin-layout/schedule-module-server/./src/containers/index.ts","webpack://@admin-layout/schedule-module-server/./src/index.ts","webpack://@admin-layout/schedule-module-server/./src/module.ts","webpack://@admin-layout/schedule-module-server/./src/resolvers/index.ts","webpack://@admin-layout/schedule-module-server/./src/resolvers/schedule-resolver.ts","webpack://@admin-layout/schedule-module-server/./src/schema/index.ts","webpack://@admin-layout/schedule-module-server/./src/services/index.ts","webpack://@admin-layout/schedule-module-server/./src/services/schedule-service.ts","webpack://@admin-layout/schedule-module-server/./src/services/timeline-service.ts","webpack://@admin-layout/schedule-module-server/./src/services/timesheet-service.ts","webpack://@admin-layout/schedule-module-server/./src/store/models/index.ts","webpack://@admin-layout/schedule-module-server/./src/store/models/schedule-model.ts","webpack://@admin-layout/schedule-module-server/./src/store/models/timeline-model.ts","webpack://@admin-layout/schedule-module-server/./src/store/models/timesheet-model.ts","webpack://@admin-layout/schedule-module-server/./src/store/repository/index.ts","webpack://@admin-layout/schedule-module-server/./src/store/repository/schedule-repository.ts","webpack://@admin-layout/schedule-module-server/./src/store/repository/timeline-repository.ts","webpack://@admin-layout/schedule-module-server/./src/store/repository/timesheet-repository.ts","webpack://@admin-layout/schedule-module-server/external commonjs \"@common-stack/server-core\"","webpack://@admin-layout/schedule-module-server/external commonjs \"inversify\"","webpack://@admin-layout/schedule-module-server/external commonjs \"mongoose\"","webpack://@admin-layout/schedule-module-server/webpack/bootstrap","webpack://@admin-layout/schedule-module-server/webpack/runtime/define property getters","webpack://@admin-layout/schedule-module-server/webpack/runtime/hasOwnProperty shorthand","webpack://@admin-layout/schedule-module-server/webpack/runtime/make namespace object","webpack://@admin-layout/schedule-module-server/webpack/before-startup","webpack://@admin-layout/schedule-module-server/webpack/startup","webpack://@admin-layout/schedule-module-server/webpack/after-startup"],"sourcesContent":["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 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 * 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';\n// import { 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<any>> {\n return this.timesheetRepository.getTimesheetEvents(userId);\n }\n\n public async createTimesheetEvent(newEvent: any): Promise<boolean> {\n return this.timesheetRepository.createTimesheetEvent(newEvent);\n }\n\n public async updateTimesheetEvent(eventId: string, newEvent: any): 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';\n// import { ITimesheet } from '@admin-layout/timetracker-core';\n\nexport interface ITimesheetModel extends 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 */\n// import { 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<any>> {\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: any): 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: any): 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\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./src/index.ts\");\n",""],"names":[],"sourceRoot":""}
|
@@ -1,17 +1,16 @@
|
|
1
|
-
import { ITimesheetCreateRequest, ITimesheet } from '@admin-layout/timetracker-core';
|
2
1
|
export interface ITimesheetRepository {
|
3
2
|
/**
|
4
3
|
* Create a new schedule event
|
5
4
|
*/
|
6
|
-
createTimesheetEvent(newEvent:
|
5
|
+
createTimesheetEvent(newEvent: any): Promise<boolean>;
|
7
6
|
/**
|
8
7
|
* Get schedule events
|
9
8
|
*/
|
10
|
-
getTimesheetEvents(userId: string): Promise<Array<
|
9
|
+
getTimesheetEvents(userId: string): Promise<Array<any>>;
|
11
10
|
/**
|
12
11
|
* Update a event
|
13
12
|
*/
|
14
|
-
updateTimesheetEvent(eventId: string, newEvent:
|
13
|
+
updateTimesheetEvent(eventId: string, newEvent: any): Promise<boolean>;
|
15
14
|
/**
|
16
15
|
* remove a event
|
17
16
|
*/
|
@@ -1,17 +1,16 @@
|
|
1
|
-
import { ITimesheetCreateRequest, ITimesheet } from '@admin-layout/timetracker-core';
|
2
1
|
export interface ITimesheetService {
|
3
2
|
/**
|
4
3
|
* Create a new schedule event
|
5
4
|
*/
|
6
|
-
createTimesheetEvent(newEvent:
|
5
|
+
createTimesheetEvent(newEvent: any): Promise<boolean>;
|
7
6
|
/**
|
8
7
|
* Get schedule events
|
9
8
|
*/
|
10
|
-
getTimesheetEvents(userId: string): Promise<Array<
|
9
|
+
getTimesheetEvents(userId: string): Promise<Array<any>>;
|
11
10
|
/**
|
12
11
|
* Update a event
|
13
12
|
*/
|
14
|
-
updateTimesheetEvent(eventId: string, newEvent:
|
13
|
+
updateTimesheetEvent(eventId: string, newEvent: any): Promise<boolean>;
|
15
14
|
/**
|
16
15
|
* remove a event
|
17
16
|
*/
|
@@ -1,12 +1,11 @@
|
|
1
1
|
import * as ILogger from 'bunyan';
|
2
|
-
import { ITimesheet, ITimesheetCreateRequest } from '@admin-layout/timetracker-core';
|
3
2
|
import { ITimesheetService, ITimesheetRepository } from '../interfaces';
|
4
3
|
export declare class TimesheetService implements ITimesheetService {
|
5
4
|
protected timesheetRepository: ITimesheetRepository;
|
6
5
|
private logger;
|
7
6
|
constructor(timesheetRepository: ITimesheetRepository, logger: ILogger);
|
8
|
-
getTimesheetEvents(userId: string): Promise<Array<
|
9
|
-
createTimesheetEvent(newEvent:
|
10
|
-
updateTimesheetEvent(eventId: string, newEvent:
|
7
|
+
getTimesheetEvents(userId: string): Promise<Array<any>>;
|
8
|
+
createTimesheetEvent(newEvent: any): Promise<boolean>;
|
9
|
+
updateTimesheetEvent(eventId: string, newEvent: any): Promise<boolean>;
|
11
10
|
removeTimesheetEvent(eventId: string): Promise<boolean>;
|
12
11
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Model, Document, Connection } from 'mongoose';
|
2
|
-
|
3
|
-
export interface ITimesheetModel extends ITimesheet, Document {
|
2
|
+
export interface ITimesheetModel extends Document {
|
4
3
|
id: any;
|
5
4
|
}
|
6
5
|
export declare type TimesheetModelType = Model<ITimesheetModel>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { ITimesheet, ITimesheetCreateRequest } from '@admin-layout/timetracker-core';
|
2
1
|
import * as Logger from 'bunyan';
|
3
2
|
import * as mongoose from 'mongoose';
|
4
3
|
import { ITimesheetRepository } from '../../interfaces';
|
@@ -6,8 +5,8 @@ export declare class TimesheetRepository implements ITimesheetRepository {
|
|
6
5
|
private timesheetModel;
|
7
6
|
private logger;
|
8
7
|
constructor(db: mongoose.Connection, logger: Logger, options?: any);
|
9
|
-
getTimesheetEvents(userId: string): Promise<Array<
|
10
|
-
createTimesheetEvent(newEvent:
|
11
|
-
updateTimesheetEvent(eventId: string, newEvent:
|
8
|
+
getTimesheetEvents(userId: string): Promise<Array<any>>;
|
9
|
+
createTimesheetEvent(newEvent: any): Promise<boolean>;
|
10
|
+
updateTimesheetEvent(eventId: string, newEvent: any): Promise<boolean>;
|
12
11
|
removeTimesheetEvent(eventId: string): Promise<boolean>;
|
13
12
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@admin-layout/schedule-module-server",
|
3
|
-
"version": "3.0.0-alpha.
|
3
|
+
"version": "3.0.0-alpha.25",
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "CDMBase LLC",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"watch": "yarn build:lib:watch"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"@admin-layout/schedule-module-core": "3.0.0-alpha.
|
22
|
+
"@admin-layout/schedule-module-core": "3.0.0-alpha.25",
|
23
23
|
"@admin-layout/timetracker-core": "1.0.3-alpha.78"
|
24
24
|
},
|
25
25
|
"publishConfig": {
|
@@ -28,5 +28,5 @@
|
|
28
28
|
"typescript": {
|
29
29
|
"definition": "lib/index.d.ts"
|
30
30
|
},
|
31
|
-
"gitHead": "
|
31
|
+
"gitHead": "323726c09116617b1313d9e11027909856b8924e"
|
32
32
|
}
|