@lyxa.ai/core 1.0.3878 → 1.0.3879
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.
|
@@ -16,8 +16,6 @@ export declare class Ticket extends TimeStamps {
|
|
|
16
16
|
supportReason?: Ref<SupportReason>;
|
|
17
17
|
client: Ref<User | Shop>;
|
|
18
18
|
clientType: UserRef;
|
|
19
|
-
clientName: string;
|
|
20
|
-
clientPhoto: string;
|
|
21
19
|
order?: Ref<Order>;
|
|
22
20
|
assignedAgent?: Ref<Admin>;
|
|
23
21
|
assignedAt?: Date;
|
|
@@ -26,8 +26,6 @@ let Ticket = class Ticket extends defaultClasses_1.TimeStamps {
|
|
|
26
26
|
supportReason;
|
|
27
27
|
client;
|
|
28
28
|
clientType;
|
|
29
|
-
clientName;
|
|
30
|
-
clientPhoto;
|
|
31
29
|
order;
|
|
32
30
|
assignedAgent;
|
|
33
31
|
assignedAt;
|
|
@@ -69,14 +67,6 @@ __decorate([
|
|
|
69
67
|
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.UserRef }),
|
|
70
68
|
__metadata("design:type", String)
|
|
71
69
|
], Ticket.prototype, "clientType", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
74
|
-
__metadata("design:type", String)
|
|
75
|
-
], Ticket.prototype, "clientName", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
78
|
-
__metadata("design:type", String)
|
|
79
|
-
], Ticket.prototype, "clientPhoto", void 0);
|
|
80
70
|
__decorate([
|
|
81
71
|
(0, typegoose_1.prop)({ ref: () => order_model_1.Order }),
|
|
82
72
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ticket.model.js","sourceRoot":"/","sources":["libraries/mongo/models/ticket.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AAC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,CAAC;8BACH,IAAI;wCAAC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;qDACe;AAG/B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;;8CACR;AAGxB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACI;AAGpB;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,kCAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sCACjB;iBArDtB,MAAM;IAXlB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,SAAS;YACrB,UAAU,EAAE,IAAI;SAChB;KACD,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,aAAa,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACtC,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;IAC1C,IAAA,iBAAK,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IAC9C,IAAA,iBAAK,EAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC;IACxB,IAAA,iBAAK,EAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;GACV,MAAM,CAsDlB","sourcesContent":["import { prop, Ref, index, modelOptions } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { User } from './user.model';\nimport { Shop } from './shop.model';\nimport { Order } from './order.model';\nimport { Admin } from './admin.model';\nimport { TicketType, TicketStatus, UserRef } from '../../../utilities/enum';\nimport { Chatroom } from './chat-room.model';\nimport { DefaultChat } from './default-chat.model';\nimport { TicketAction } from './ticket-action.model';\nimport { SupportReason } from './support-reason.model';\n\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'tickets',\n\t\ttimestamps: true,\n\t},\n})\n@index({ assignedAgent: 1, status: 1 })\n@index({ type: 1, status: 1, priority: 1 })\n@index({ client: 1, clientType: 1, status: 1 })\n@index({ createdAt: -1 })\n@index({ chatroom: 1 })\nexport class Ticket extends TimeStamps {\n\t@prop({ required: true, type: String, unique: true })\n\tpublic ticketId!: string;\n\n\t@prop({ required: true, type: String, enum: TicketType })\n\tpublic type!: TicketType;\n\n\t@prop({ required: true, type: String, enum: TicketStatus, default: TicketStatus.PENDING })\n\tpublic status!: TicketStatus;\n\n\t@prop({ type: String, required: true })\n\tpublic title!: string;\n\n\t@prop({ ref: () => SupportReason, required: false })\n\tpublic supportReason?: Ref<SupportReason>;\n\n\t@prop({ refPath: 'clientType', required: true })\n\tpublic client!: Ref<User | Shop>;\n\n\t@prop({ required: true, type: String, enum: UserRef })\n\tpublic clientType!: UserRef;\n\n\t@prop({ ref: () => Order })\n\tpublic order?: Ref<Order>;\n\n\t@prop({ ref: () => Admin })\n\tpublic assignedAgent?: Ref<Admin>;\n\n\t@prop({ type: Date })\n\tpublic assignedAt?: Date;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic assignmentAttempts?: number;\n\n\t@prop({ ref: () => Chatroom, required: true })\n\tpublic chatroom!: Ref<Chatroom>;\n\n\t@prop({ type: Date })\n\tpublic resolvedAt?: Date;\n\n\t@prop({ type: Date })\n\tpublic closedAt?: Date;\n\n\t@prop({ type: Number })\n\tpublic resolutionTimeMinutes?: number;\n\n\t@prop({ type: Number, min: 1, max: 5 })\n\tpublic customerRating?: number;\n\n\t@prop({ type: Number })\n\tpublic agentScore?: number;\n\n\t@prop({ ref: () => TicketAction, required: false })\n\tpublic action?: Ref<TicketAction>;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
2
|
+
"name": "@lyxa.ai/core",
|
|
3
|
+
"version": "1.0.3879",
|
|
4
|
+
"description": "The Core system of the Lyxa services.",
|
|
5
|
+
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/**/*"
|
|
9
|
+
],
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "node build.js",
|
|
14
|
+
"clean": "rimraf dist",
|
|
15
|
+
"start": "npx ts-node src/index.ts",
|
|
16
|
+
"publish:types": "cd dist/types && npm publish",
|
|
17
|
+
"publish:core": "npm publish --ignore-scripts",
|
|
18
|
+
"release": "npm run build && npm run publish:types && npm run publish:core"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@trpc/client": "^11.4.3",
|
|
22
|
+
"@trpc/server": "^11.4.3"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@google-cloud/secret-manager": "^5.6.0",
|
|
26
|
+
"@mapbox/polyline": "^1.2.1",
|
|
27
|
+
"@typegoose/typegoose": "^12.10.1",
|
|
28
|
+
"@types/amqplib": "^0.10.7",
|
|
29
|
+
"@types/node": "^22.10.2",
|
|
30
|
+
"@types/twilio": "^3.19.3",
|
|
31
|
+
"amqplib": "^0.10.5",
|
|
32
|
+
"bcryptjs": "^3.0.2",
|
|
33
|
+
"bullmq": "^5.56.0",
|
|
34
|
+
"dayjs": "^1.11.13",
|
|
35
|
+
"firebase": "^11.1.0",
|
|
36
|
+
"firebase-admin": "^13.0.1",
|
|
37
|
+
"ioredis": "^5.4.1",
|
|
38
|
+
"jsonwebtoken": "^9.0.2",
|
|
39
|
+
"libphonenumber-js": "^1.12.8",
|
|
40
|
+
"mime-types": "^3.0.1",
|
|
41
|
+
"moment": "^2.30.1",
|
|
42
|
+
"mongoose": "^8.13.0",
|
|
43
|
+
"nanoid": "^5.1.5",
|
|
44
|
+
"pino": "9.5.0",
|
|
45
|
+
"pino-mongodb": "4.3.0",
|
|
46
|
+
"pino-pretty": "13.0.0",
|
|
47
|
+
"sharp": "^0.33.5",
|
|
48
|
+
"shortid": "^2.2.16",
|
|
49
|
+
"slugify": "^1.6.6",
|
|
50
|
+
"twilio": "^5.4.0",
|
|
51
|
+
"typedi": "^0.10.0",
|
|
52
|
+
"typescript": "^5.7.2",
|
|
53
|
+
"ws": "^8.18.3",
|
|
54
|
+
"zod": "^3.24.1"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@trpc/client": "^11.4.3",
|
|
58
|
+
"@trpc/server": "^11.4.3",
|
|
59
|
+
"@types/mapbox__polyline": "^1.0.5",
|
|
60
|
+
"@types/mime-types": "^2.1.4",
|
|
61
|
+
"@types/shortid": "^2.2.0",
|
|
62
|
+
"@types/ws": "^8.18.1",
|
|
63
|
+
"prettier": "3.5.3"
|
|
64
|
+
}
|
|
65
65
|
}
|