@admin-layout/schedule-module-server 4.0.1-alpha.1 → 5.0.1-alpha.0

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 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,CAAC,+BAAkB,CAAC;SACtB,gBAAgB,EAAE;SAClB,mBAAmB,EAAE,CAAC;IAE3B,IAAI,CAAmB,iBAAK,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,0BAAe,CAAC,CAAC,gBAAgB,EAAE,CAAC,mBAAmB,EAAE,CAAC;AAChH,CAAC,CAAC,C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AO,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';\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
+ {"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,CAAC,+BAAkB,CAAC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,CAAC,oBAAoB,CAAC,OAAe,EAAE,QAAa;QAC5D,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;;;;;;;;;;;ACThC;;;;;;;;;;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 { 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\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 */\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,12 +1,12 @@
1
1
  import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
2
- export declare type Maybe<T> = T | null;
3
- export declare type RequireFields<T, K extends keyof T> = {
2
+ export type Maybe<T> = T | null;
3
+ export type RequireFields<T, K extends keyof T> = {
4
4
  [X in Exclude<keyof T, K>]?: T[X];
5
5
  } & {
6
6
  [P in K]-?: NonNullable<T[P]>;
7
7
  };
8
8
  /** All built-in and custom scalars, mapped to their actual values */
9
- export declare type Scalars = {
9
+ export type Scalars = {
10
10
  ID: string;
11
11
  String: string;
12
12
  Boolean: boolean;
@@ -20,17 +20,17 @@ export declare type Scalars = {
20
20
  DateTime: any;
21
21
  };
22
22
  /** Database counter */
23
- export declare type ICounter = {
23
+ export type ICounter = {
24
24
  __typename?: 'Counter';
25
25
  /** Current amount */
26
26
  amount: Scalars['Int'];
27
27
  };
28
- export declare type IFieldError = {
28
+ export type IFieldError = {
29
29
  __typename?: 'FieldError';
30
30
  field: Scalars['String'];
31
31
  message: Scalars['String'];
32
32
  };
33
- export declare type IMutation = {
33
+ export type IMutation = {
34
34
  __typename?: 'Mutation';
35
35
  /** Increase counter value returns current counter amount */
36
36
  addCounter?: Maybe<ICounter>;
@@ -41,16 +41,16 @@ export declare type IMutation = {
41
41
  /** sync cached counter with current value */
42
42
  syncCachedCounter?: Maybe<Scalars['Boolean']>;
43
43
  };
44
- export declare type IMutationaddCounterArgs = {
44
+ export type IMutationaddCounterArgs = {
45
45
  amount?: Maybe<Scalars['Int']>;
46
46
  };
47
- export declare type IMutationaddMoleculerCounterArgs = {
47
+ export type IMutationaddMoleculerCounterArgs = {
48
48
  amount?: Maybe<Scalars['Int']>;
49
49
  };
50
- export declare type IMutationaddScheduleArgs = {
50
+ export type IMutationaddScheduleArgs = {
51
51
  request?: Maybe<IScheduleCreateRequest>;
52
52
  };
53
- export declare type IQuery = {
53
+ export type IQuery = {
54
54
  __typename?: 'Query';
55
55
  /** Counter */
56
56
  counter?: Maybe<ICounter>;
@@ -61,10 +61,10 @@ export declare type IQuery = {
61
61
  /** Moleculer Counter */
62
62
  moleculerCounter?: Maybe<ICounter>;
63
63
  };
64
- export declare type IQuerygetScheduleEventsArgs = {
64
+ export type IQuerygetScheduleEventsArgs = {
65
65
  userId: Scalars['String'];
66
66
  };
67
- export declare type ISchedule = {
67
+ export type ISchedule = {
68
68
  __typename?: 'Schedule';
69
69
  title: Scalars['String'];
70
70
  allDay?: Maybe<Scalars['Boolean']>;
@@ -74,7 +74,7 @@ export declare type ISchedule = {
74
74
  resourceId?: Maybe<Scalars['String']>;
75
75
  tooltip?: Maybe<Scalars['String']>;
76
76
  };
77
- export declare type IScheduleCreateRequest = {
77
+ export type IScheduleCreateRequest = {
78
78
  title: Scalars['String'];
79
79
  allDay?: Maybe<Scalars['Boolean']>;
80
80
  start?: Maybe<Scalars['Date']>;
@@ -83,22 +83,22 @@ export declare type IScheduleCreateRequest = {
83
83
  resourceId?: Maybe<Scalars['String']>;
84
84
  tooltip?: Maybe<Scalars['String']>;
85
85
  };
86
- export declare type ISubscription = {
86
+ export type ISubscription = {
87
87
  __typename?: 'Subscription';
88
88
  /** Subscription fired when anyone increases counter */
89
89
  counterUpdated?: Maybe<ICounter>;
90
90
  dummy?: Maybe<Scalars['Int']>;
91
91
  moleculerCounterUpdate?: Maybe<ICounter>;
92
92
  };
93
- export declare type ResolverTypeWrapper<T> = Promise<T> | T;
94
- export declare type StitchingResolver<TResult, TParent, TContext, TArgs> = {
93
+ export type ResolverTypeWrapper<T> = Promise<T> | T;
94
+ export type StitchingResolver<TResult, TParent, TContext, TArgs> = {
95
95
  fragment: string;
96
96
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
97
97
  };
98
- export declare type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | StitchingResolver<TResult, TParent, TContext, TArgs>;
99
- export declare type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
100
- export declare type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterator<TResult> | Promise<AsyncIterator<TResult>>;
101
- export declare type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
98
+ export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | StitchingResolver<TResult, TParent, TContext, TArgs>;
99
+ export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
100
+ export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterator<TResult> | Promise<AsyncIterator<TResult>>;
101
+ export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
102
102
  export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
103
103
  subscribe: SubscriptionSubscribeFn<{
104
104
  [key in TKey]: TResult;
@@ -111,14 +111,14 @@ export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
111
111
  subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
112
112
  resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
113
113
  }
114
- export declare type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
115
- export declare type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
116
- export declare type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
117
- export declare type isTypeOfResolverFn<T = {}> = (obj: T, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
118
- export declare type NextResolverFn<T> = () => Promise<T>;
119
- export declare type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
114
+ export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
115
+ export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
116
+ export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
117
+ export type isTypeOfResolverFn<T = {}> = (obj: T, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
118
+ export type NextResolverFn<T> = () => Promise<T>;
119
+ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
120
120
  /** Mapping between all available schema types and the resolvers types */
121
- export declare type IResolversTypes = {
121
+ export type IResolversTypes = {
122
122
  Query: ResolverTypeWrapper<{}>;
123
123
  Counter: ResolverTypeWrapper<ICounter>;
124
124
  Int: ResolverTypeWrapper<Scalars['Int']>;
@@ -138,7 +138,7 @@ export declare type IResolversTypes = {
138
138
  DateTime: ResolverTypeWrapper<Scalars['DateTime']>;
139
139
  };
140
140
  /** Mapping between all available schema types and the resolvers parents */
141
- export declare type IResolversParentTypes = {
141
+ export type IResolversParentTypes = {
142
142
  Query: {};
143
143
  Counter: ICounter;
144
144
  Int: Scalars['Int'];
@@ -160,7 +160,7 @@ export declare type IResolversParentTypes = {
160
160
  export interface IAnyObjectScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['AnyObject'], any> {
161
161
  name: 'AnyObject';
162
162
  }
163
- export declare type ICounterResolvers<ContextType = any, ParentType extends IResolversParentTypes['Counter'] = IResolversParentTypes['Counter']> = {
163
+ export type ICounterResolvers<ContextType = any, ParentType extends IResolversParentTypes['Counter'] = IResolversParentTypes['Counter']> = {
164
164
  amount?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
165
165
  __isTypeOf?: isTypeOfResolverFn<ParentType>;
166
166
  };
@@ -170,7 +170,7 @@ export interface IDateScalarConfig extends GraphQLScalarTypeConfig<IResolversTyp
170
170
  export interface IDateTimeScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['DateTime'], any> {
171
171
  name: 'DateTime';
172
172
  }
173
- export declare type IFieldErrorResolvers<ContextType = any, ParentType extends IResolversParentTypes['FieldError'] = IResolversParentTypes['FieldError']> = {
173
+ export type IFieldErrorResolvers<ContextType = any, ParentType extends IResolversParentTypes['FieldError'] = IResolversParentTypes['FieldError']> = {
174
174
  field?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
175
175
  message?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
176
176
  __isTypeOf?: isTypeOfResolverFn<ParentType>;
@@ -181,21 +181,21 @@ export interface IJSONScalarConfig extends GraphQLScalarTypeConfig<IResolversTyp
181
181
  export interface IJSONObjectScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['JSONObject'], any> {
182
182
  name: 'JSONObject';
183
183
  }
184
- export declare type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
184
+ export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
185
185
  addCounter?: Resolver<Maybe<IResolversTypes['Counter']>, ParentType, ContextType, RequireFields<IMutationaddCounterArgs, never>>;
186
186
  addMoleculerCounter?: Resolver<Maybe<IResolversTypes['Counter']>, ParentType, ContextType, RequireFields<IMutationaddMoleculerCounterArgs, never>>;
187
187
  addSchedule?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationaddScheduleArgs, never>>;
188
188
  dummy?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
189
189
  syncCachedCounter?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
190
190
  };
191
- export declare type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
191
+ export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
192
192
  counter?: Resolver<Maybe<IResolversTypes['Counter']>, ParentType, ContextType>;
193
193
  counterCache?: Resolver<Maybe<IResolversTypes['Counter']>, ParentType, ContextType>;
194
194
  dummy?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
195
195
  getScheduleEvents?: Resolver<Maybe<Array<Maybe<IResolversTypes['Schedule']>>>, ParentType, ContextType, RequireFields<IQuerygetScheduleEventsArgs, 'userId'>>;
196
196
  moleculerCounter?: Resolver<Maybe<IResolversTypes['Counter']>, ParentType, ContextType>;
197
197
  };
198
- export declare type IScheduleResolvers<ContextType = any, ParentType extends IResolversParentTypes['Schedule'] = IResolversParentTypes['Schedule']> = {
198
+ export type IScheduleResolvers<ContextType = any, ParentType extends IResolversParentTypes['Schedule'] = IResolversParentTypes['Schedule']> = {
199
199
  title?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
200
200
  allDay?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
201
201
  start?: Resolver<Maybe<IResolversTypes['Date']>, ParentType, ContextType>;
@@ -205,7 +205,7 @@ export declare type IScheduleResolvers<ContextType = any, ParentType extends IRe
205
205
  tooltip?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
206
206
  __isTypeOf?: isTypeOfResolverFn<ParentType>;
207
207
  };
208
- export declare type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
208
+ export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
209
209
  counterUpdated?: SubscriptionResolver<Maybe<IResolversTypes['Counter']>, "counterUpdated", ParentType, ContextType>;
210
210
  dummy?: SubscriptionResolver<Maybe<IResolversTypes['Int']>, "dummy", ParentType, ContextType>;
211
211
  moleculerCounterUpdate?: SubscriptionResolver<Maybe<IResolversTypes['Counter']>, "moleculerCounterUpdate", ParentType, ContextType>;
@@ -213,7 +213,7 @@ export declare type ISubscriptionResolvers<ContextType = any, ParentType extends
213
213
  export interface ITimeScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Time'], any> {
214
214
  name: 'Time';
215
215
  }
216
- export declare type IResolvers<ContextType = any> = {
216
+ export type IResolvers<ContextType = any> = {
217
217
  AnyObject?: GraphQLScalarType;
218
218
  Counter?: ICounterResolvers<ContextType>;
219
219
  Date?: GraphQLScalarType;
@@ -1,7 +1,7 @@
1
1
  import { CdmLogger } from '@cdm-logger/core';
2
2
  import { ISchedule, IScheduleCreateRequest } from '@admin-layout/schedule-module-core';
3
3
  import { IScheduleService, IScheduleRepository } from '../interfaces';
4
- declare type ILogger = CdmLogger.ILogger;
4
+ type ILogger = CdmLogger.ILogger;
5
5
  export declare class ScheduleService implements IScheduleService {
6
6
  protected scheduleRepository: IScheduleRepository;
7
7
  private logger;
@@ -3,5 +3,5 @@ import { ISchedule } from '@admin-layout/schedule-module-core';
3
3
  export interface IScheduleModel extends ISchedule, Document {
4
4
  id: any;
5
5
  }
6
- export declare type ScheduleModelType = Model<IScheduleModel>;
6
+ export type ScheduleModelType = Model<IScheduleModel>;
7
7
  export declare const ScheduleModelFunc: (db: Connection) => ScheduleModelType;
@@ -3,5 +3,5 @@ import { ITimeline } from '@admin-layout/schedule-module-core';
3
3
  export interface ITimelineModel extends ITimeline, Document {
4
4
  id: any;
5
5
  }
6
- export declare type TimelineModelType = Model<ITimelineModel>;
6
+ export type TimelineModelType = Model<ITimelineModel>;
7
7
  export declare const TimelineModelFunc: (db: Connection) => TimelineModelType;
@@ -2,5 +2,5 @@ import { Model, Document, Connection } from 'mongoose';
2
2
  export interface ITimesheetModel extends Document {
3
3
  id: any;
4
4
  }
5
- export declare type TimesheetModelType = Model<ITimesheetModel>;
5
+ export type TimesheetModelType = Model<ITimesheetModel>;
6
6
  export declare const TimesheetModelFunc: (db: Connection) => TimesheetModelType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/schedule-module-server",
3
- "version": "4.0.1-alpha.1",
3
+ "version": "5.0.1-alpha.0",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -19,8 +19,7 @@
19
19
  "watch": "yarn build:lib:watch"
20
20
  },
21
21
  "dependencies": {
22
- "@admin-layout/schedule-module-core": "4.0.1-alpha.1",
23
- "@admin-layout/timetracker-core": "1.0.3-alpha.78"
22
+ "@admin-layout/schedule-module-core": "5.0.1-alpha.0"
24
23
  },
25
24
  "publishConfig": {
26
25
  "access": "public"
@@ -28,5 +27,5 @@
28
27
  "typescript": {
29
28
  "definition": "lib/index.d.ts"
30
29
  },
31
- "gitHead": "240f43c7e32e1a421f003484585283e13086ed7e"
30
+ "gitHead": "9d126e98d4d350532dcb5da56fd6d282e4360c9b"
32
31
  }