@resolveio/server-lib 6.4.14-newrole → 6.4.15-newrole
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/support-ticket.collection.ts"],"names":[],"mappings":";;AAAA,qCAAmD;AACnD,6CAAwC;AACxC,kCAA2C;AAG3C,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,4BAA4B,EAAE;QAC7B,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,SAAS,EAAE;QACV,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,SAAS,EAAE;QACV,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,KAAK;KACX;IACD,YAAY,EAAE;QACb,IAAI,EAAE,MAAM;KACZ;IACD,oBAAoB,EAAE;QACrB,IAAI,EAAE,MAAM;KACZ;IACD,oBAAoB,EAAE;QACrB,IAAI,EAAE,MAAM;KACZ;IACD,iBAAiB,EAAE;QAClB,IAAI,EAAE,MAAM;KACZ;IACD,iBAAiB,EAA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Aa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;CACzD;AAED,MAAM,CAAC,GAAG,GAAG;IACZ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;CACxB,CAAC;AAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;IACtC,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEH,IAAI,uBAAe,CAAC,YAAY,EAAE,EAAE;IACnC,sBAAc,CAAC,mBAAmB,CAAC,GAAG,0BAA0B,CAAC;CACjE;AAEU,QAAA,qBAAqB,GAA0B,IAAI,CAAC;AAE/D,IAAI,uBAAe,CAAC,YAAY,EAAE,EAAE;IACnC,6BAAqB,GAAG,uBAAe,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;CACjH","file":"support-ticket.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { SupportTicketModel } from '../models/support-ticket.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tpriority: {\n\t\ttype: String\n\t},\n\tissue: {\n\t\ttype: String\n\t},\n\tsupport_ticket_number: {\n\t\ttype: Number\n\t},\n\tsupport_ticket_number_string: {\n\t\ttype: String\n\t},\n\tstatus: {\n\t\ttype: String\n\t},\n\tsubstatus: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tid_client: {\n\t\ttype: String\n\t},\n\tmessages: {\n\t\ttype: Array\n\t},\n\t'messages.$': {\n\t\ttype: Object\n\t},\n\t'messages.$.message': {\n\t\ttype: String\n\t},\n\t'messages.$.id_user': {\n\t\ttype: String\n\t},\n\t'messages.$.user': {\n\t\ttype: String\n\t},\n\t'messages.$.date': {\n\t\ttype: Date\n\t},\n\t'messages.$.type': {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tdate_created_string: {\n\t\ttype: String\n\t},\n\tid_user_created: {\n\t\ttype: String\n\t},\n\tuser_created: {\n\t\ttype: String\n\t},\n\tbillable: {\n\t\ttype: Boolean\n\t},\n\tdate_investigation: {\n\t\ttype: Date,\n\t\toptional: true,\n\t},\n\tdate_closed: {\n\t\ttype: Date,\n\t\toptional: true,\n\t},\n\tfiles: {\n\t\ttype: Array\n\t},\n\t'files.$': {\n\t\ttype: String\n\t},\n\tcurrent_watchers: {\n\t\ttype: Array\n\t},\n\t'current_watchers.$': {\n\t\ttype: Object\n\t},\t\n\t'current_watchers.$.user': {\n\t\ttype: String\n\t},\t\n\t'current_watchers.$.id_user': {\n\t\ttype: String\n\t},\t\n\t'current_watchers.$.email': {\n\t\ttype: String\n\t},\n\tclient_user: {\n\t\ttype: Object\n\t},\n\t'client_user.id_user': {\n\t\ttype: String\n\t},\n\t'client_user.user': {\n\t\ttype: String\n\t},\n\t'client_user.email': {\n\t\ttype: String\n\t},\n\tusers_assigned: {\n\t\ttype: Array\n\t},\n\t'users_assigned.$': {\n\t\ttype: Object\n\t},\n\t'users_assigned.$.id_user': {\n\t\ttype: String\n\t},\n\t'users_assigned.$.user': {\n\t\ttype: String\n\t},\t\n\t'users_assigned.$.date_created': {\n\t\ttype: Date\n\t},\n\testimated_billable_hours: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tbillable_hours: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tbill_description: {\n\t\ttype: String\n\t},\n\ttasks: {\n\t\ttype: Array\n\t},\n\t'tasks.$': {\n\t\ttype: Object\n\t},\n\t'tasks.$.description': {\n\t\ttype: String\n\t},\n\t'tasks.$.completed': {\n\t\ttype: Boolean\n\t},\t\n\t'tasks.$.id_user': {\n\t\ttype: String,\n\t},\t\n\t'tasks.$.user': {\n\t\ttype: String,\n\t},\t\n\t'tasks.$.date_created': {\n\t\ttype: Date\n\t},\t\n\t'tasks.$.date_completed': {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tnotes: {\n\t\ttype: Array\n\t},\n\t'notes.$': {\n\t\ttype: Object\n\t},\n\t'notes.$.description': {\n\t\ttype: String\n\t},\n\t'notes.$.id_user': {\n\t\ttype: String,\n\t},\t\n\t'notes.$.user': {\n\t\ttype: String,\n\t},\n\t'notes.$.date_created': {\n\t\ttype: Date\n\t}\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\ninterface ResolveIOModel extends SupportTicketModel, Document {}\n\nexport let SupportTickets: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getSupportDB()) {\n\tSupportTickets = ResolveIOServer.getSupportDB().model('support-tickets', DefaultSchema);\n\tSupportTickets['simplschema'] = new SimpleSchema(schema);\n}\n\nschema._id = {\n\ttype: Schema.Types.Mixed\n};\n\nlet VersionSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nif (ResolveIOServer.getSupportDB()) {\n\tSupportTickets['versionCollection'] = 'support-tickets.versions';\n}\n\nexport let SupportTicketVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getSupportDB()) {\n\tSupportTicketVersions = ResolveIOServer.getSupportDB().model(SupportTickets['versionCollection'], VersionSchema);\n}"]}
|
|
1
|
+
{"version":3,"sources":["../../src/collections/support-ticket.collection.ts"],"names":[],"mappings":";;AAAA,qCAAmD;AACnD,6CAAwC;AACxC,kCAA2C;AAG3C,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,I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AC;AAEH,IAAI,uBAAe,CAAC,YAAY,EAAE,EAAE;IACnC,sBAAc,CAAC,mBAAmB,CAAC,GAAG,0BAA0B,CAAC;CACjE;AAEU,QAAA,qBAAqB,GAA0B,IAAI,CAAC;AAE/D,IAAI,uBAAe,CAAC,YAAY,EAAE,EAAE;IACnC,6BAAqB,GAAG,uBAAe,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;CACjH","file":"support-ticket.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { SupportTicketModel } from '../models/support-ticket.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tpriority: {\n\t\ttype: String\n\t},\n\tissue: {\n\t\ttype: String\n\t},\n\tsupport_ticket_number: {\n\t\ttype: Number\n\t},\n\tsupport_ticket_number_string: {\n\t\ttype: String\n\t},\n\tstatus: {\n\t\ttype: String\n\t},\n\tsubstatus: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tid_client: {\n\t\ttype: String\n\t},\n\tmessages: {\n\t\ttype: Array\n\t},\n\t'messages.$': {\n\t\ttype: Object\n\t},\n\t'messages.$.message': {\n\t\ttype: String\n\t},\n\t'messages.$.id_user': {\n\t\ttype: String\n\t},\n\t'messages.$.user': {\n\t\ttype: String\n\t},\n\t'messages.$.date': {\n\t\ttype: Date\n\t},\n\t'messages.$.type': {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tdate_created_string: {\n\t\ttype: String\n\t},\n\tid_user_created: {\n\t\ttype: String\n\t},\n\tuser_created: {\n\t\ttype: String\n\t},\n\tbillable: {\n\t\ttype: Boolean\n\t},\n\tdate_investigation: {\n\t\ttype: Date,\n\t\toptional: true,\n\t},\n\tdate_closed: {\n\t\ttype: Date,\n\t\toptional: true,\n\t},\n\tfiles: {\n\t\ttype: Array\n\t},\n\t'files.$': {\n\t\ttype: String\n\t},\n\tcurrent_watchers: {\n\t\ttype: Array\n\t},\n\t'current_watchers.$': {\n\t\ttype: Object\n\t},\t\n\t'current_watchers.$.user': {\n\t\ttype: String\n\t},\t\n\t'current_watchers.$.id_user': {\n\t\ttype: String\n\t},\t\n\t'current_watchers.$.email': {\n\t\ttype: String\n\t},\n\tclient_user: {\n\t\ttype: Object\n\t},\n\t'client_user.id_user': {\n\t\ttype: String\n\t},\n\t'client_user.user': {\n\t\ttype: String\n\t},\n\t'client_user.email': {\n\t\ttype: String\n\t},\n\tusers_assigned: {\n\t\ttype: Array\n\t},\n\t'users_assigned.$': {\n\t\ttype: Object\n\t},\n\t'users_assigned.$.id_user': {\n\t\ttype: String\n\t},\n\t'users_assigned.$.user': {\n\t\ttype: String\n\t},\t\n\t'users_assigned.$.date_created': {\n\t\ttype: Date\n\t},\n\testimated_billable_hours: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tbillable_hours: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tbill_description: {\n\t\ttype: String\n\t},\n\ttasks: {\n\t\ttype: Array\n\t},\n\t'tasks.$': {\n\t\ttype: Object\n\t},\n\t'tasks.$.description': {\n\t\ttype: String\n\t},\n\t'tasks.$.completed': {\n\t\ttype: Boolean\n\t},\t\n\t'tasks.$.id_user': {\n\t\ttype: String,\n\t},\t\n\t'tasks.$.user': {\n\t\ttype: String,\n\t},\t\n\t'tasks.$.date_created': {\n\t\ttype: Date\n\t},\t\n\t'tasks.$.date_completed': {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tnotes: {\n\t\ttype: Array\n\t},\n\t'notes.$': {\n\t\ttype: Object\n\t},\n\t'notes.$.description': {\n\t\ttype: String\n\t},\n\t'notes.$.id_user': {\n\t\ttype: String,\n\t},\t\n\t'notes.$.user': {\n\t\ttype: String,\n\t},\n\t'notes.$.date_created': {\n\t\ttype: Date\n\t},\n\tdifficulty: {\n\t\ttype: Number\n\t}\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\ninterface ResolveIOModel extends SupportTicketModel, Document {}\n\nexport let SupportTickets: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getSupportDB()) {\n\tSupportTickets = ResolveIOServer.getSupportDB().model('support-tickets', DefaultSchema);\n\tSupportTickets['simplschema'] = new SimpleSchema(schema);\n}\n\nschema._id = {\n\ttype: Schema.Types.Mixed\n};\n\nlet VersionSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nif (ResolveIOServer.getSupportDB()) {\n\tSupportTickets['versionCollection'] = 'support-tickets.versions';\n}\n\nexport let SupportTicketVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getSupportDB()) {\n\tSupportTicketVersions = ResolveIOServer.getSupportDB().model(SupportTickets['versionCollection'], VersionSchema);\n}"]}
|
|
@@ -26,6 +26,7 @@ export interface SupportTicketModel extends CollectionDocument {
|
|
|
26
26
|
bill_description: string;
|
|
27
27
|
tasks: SupportTicketTaskModel[];
|
|
28
28
|
notes: SupportTicketNoteModel[];
|
|
29
|
+
difficulty: number;
|
|
29
30
|
}
|
|
30
31
|
export interface SupportTicketClientUserModel {
|
|
31
32
|
id_user: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/support-ticket.model.ts"],"names":[],"mappings":"","file":"support-ticket.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface SupportTicketModel extends CollectionDocument {\n\ttype: SupportTicketType;\n\tpriority: SupportTicketPriority;\n\tissue: string;\n\tsupport_ticket_number: number;\n\tsupport_ticket_number_string: string;\n\tstatus: SupportTicketStatus;\n\tsubstatus: SupportTicketSubstatus;\n\tclient: string;\n\tid_client: string;\n\tmessages: SupportTicketMessageModel[];\n\tdate_created: Date;\n\tdate_created_string: string;\n\tid_user_created: string;\n\tuser_created: string;\n\tbillable: boolean;\n\tdate_investigation?: Date;\n\tdate_closed?: Date;\n\tfiles: string[];\n\tcurrent_watchers: SupportTicketWatchersModel[];\n\tclient_user: SupportTicketClientUserModel;\n\tusers_assigned: SupportTicketUserAssignedModel[];\n\testimated_billable_hours?: number;\n\tbillable_hours?: number;\n\tbill_description: string;\n\ttasks: SupportTicketTaskModel[];\n\tnotes: SupportTicketNoteModel[];\n}\n\nexport interface SupportTicketClientUserModel {\n\tid_user: string;\n\tuser: string;\n\temail: string;\n}\n\nexport type SupportTicketPriority = 'High' | 'Low';\n\nexport type SupportTicketSubstatus = 'New' | 'Work In Progress' | 'Idle' | 'Awaiting Customer Interaction';\nexport type SupportTicketType = 'System Impairment' | 'Request New Feature' | 'General Inquery';\ntype SupportTicketStatus = 'Opened' | 'Resolved';\n\nexport interface SupportTicketMessageModel {\n\tmessage: string;\n\tid_user: string;\n\tuser: string;\n\tdate: Date;\n\ttype: SupportTicketMessageType;\n}\n\ntype SupportTicketMessageType = 'ResolveIO' | 'Client';\n\nexport interface SupportTicketWatchersModel {\n\tuser: string;\n\tid_user: string;\n\temail: string;\n}\n\nexport interface SupportTicketTaskModel {\n\tdescription: string;\n\tcompleted: boolean;\n\tid_user?: string;\n\tuser?: string;\n\tdate_created: Date;\n\tdate_completed?: Date;\n}\n\nexport interface SupportTicketNoteModel {\n\tdescription: string;\n\tid_user: string;\n\tuser: string;\n\tdate_created: Date;\n}\n\nexport interface SupportTicketUserAssignedModel {\n\tid_user: string;\n\tuser: string;\n\tdate_created: Date;\n} "]}
|
|
1
|
+
{"version":3,"sources":["../../src/models/support-ticket.model.ts"],"names":[],"mappings":"","file":"support-ticket.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface SupportTicketModel extends CollectionDocument {\n\ttype: SupportTicketType;\n\tpriority: SupportTicketPriority;\n\tissue: string;\n\tsupport_ticket_number: number;\n\tsupport_ticket_number_string: string;\n\tstatus: SupportTicketStatus;\n\tsubstatus: SupportTicketSubstatus;\n\tclient: string;\n\tid_client: string;\n\tmessages: SupportTicketMessageModel[];\n\tdate_created: Date;\n\tdate_created_string: string;\n\tid_user_created: string;\n\tuser_created: string;\n\tbillable: boolean;\n\tdate_investigation?: Date;\n\tdate_closed?: Date;\n\tfiles: string[];\n\tcurrent_watchers: SupportTicketWatchersModel[];\n\tclient_user: SupportTicketClientUserModel;\n\tusers_assigned: SupportTicketUserAssignedModel[];\n\testimated_billable_hours?: number;\n\tbillable_hours?: number;\n\tbill_description: string;\n\ttasks: SupportTicketTaskModel[];\n\tnotes: SupportTicketNoteModel[];\n\tdifficulty: number;\n}\n\nexport interface SupportTicketClientUserModel {\n\tid_user: string;\n\tuser: string;\n\temail: string;\n}\n\nexport type SupportTicketPriority = 'High' | 'Low';\n\nexport type SupportTicketSubstatus = 'New' | 'Work In Progress' | 'Idle' | 'Awaiting Customer Interaction';\nexport type SupportTicketType = 'System Impairment' | 'Request New Feature' | 'General Inquery';\ntype SupportTicketStatus = 'Opened' | 'Resolved';\n\nexport interface SupportTicketMessageModel {\n\tmessage: string;\n\tid_user: string;\n\tuser: string;\n\tdate: Date;\n\ttype: SupportTicketMessageType;\n}\n\ntype SupportTicketMessageType = 'ResolveIO' | 'Client';\n\nexport interface SupportTicketWatchersModel {\n\tuser: string;\n\tid_user: string;\n\temail: string;\n}\n\nexport interface SupportTicketTaskModel {\n\tdescription: string;\n\tcompleted: boolean;\n\tid_user?: string;\n\tuser?: string;\n\tdate_created: Date;\n\tdate_completed?: Date;\n}\n\nexport interface SupportTicketNoteModel {\n\tdescription: string;\n\tid_user: string;\n\tuser: string;\n\tdate_created: Date;\n}\n\nexport interface SupportTicketUserAssignedModel {\n\tid_user: string;\n\tuser: string;\n\tdate_created: Date;\n} "]}
|