90dc-core 1.16.7 → 1.16.8
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.
|
@@ -10,18 +10,18 @@ export declare enum ClientNoteType {
|
|
|
10
10
|
export interface ClientNoteAttributes {
|
|
11
11
|
uuid: string;
|
|
12
12
|
clientUuid: string;
|
|
13
|
-
coachUuid: string;
|
|
13
|
+
coachUuid: string | null;
|
|
14
14
|
note: string;
|
|
15
15
|
noteType: ClientNoteType;
|
|
16
16
|
createdAt?: Date;
|
|
17
17
|
updatedAt?: Date;
|
|
18
18
|
}
|
|
19
|
-
export interface ClientNoteCreationAttributes extends Optional<ClientNoteAttributes, "uuid" | "createdAt" | "updatedAt" | "noteType"> {
|
|
19
|
+
export interface ClientNoteCreationAttributes extends Optional<ClientNoteAttributes, "uuid" | "createdAt" | "updatedAt" | "noteType" | "coachUuid"> {
|
|
20
20
|
}
|
|
21
21
|
export declare class ClientNote extends Model<ClientNoteAttributes, ClientNoteCreationAttributes> {
|
|
22
22
|
uuid: string;
|
|
23
23
|
clientUuid: string;
|
|
24
|
-
coachUuid: string;
|
|
24
|
+
coachUuid: string | null;
|
|
25
25
|
note: string;
|
|
26
26
|
noteType: ClientNoteType;
|
|
27
27
|
coach: PersistedUser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClientNote.d.ts","sourceRoot":"","sources":["../../../../src/lib/dbmodels/coaching/ClientNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,KAAK,EAAgB,MAAM,sBAAsB,CAAC;AAC7G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,oBAAY,cAAc;IACzB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,MAAM,WAAW;CACjB;AAED,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ClientNote.d.ts","sourceRoot":"","sources":["../../../../src/lib/dbmodels/coaching/ClientNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,KAAK,EAAgB,MAAM,sBAAsB,CAAC;AAC7G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,oBAAY,cAAc;IACzB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,MAAM,WAAW;CACjB;AAED,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,4BAA6B,SAAQ,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;CAClJ;AAED,qBAGa,UAAW,SAAQ,KAAK,CAAC,oBAAoB,EAAE,4BAA4B,CAAC;IAQhF,IAAI,EAAE,MAAM,CAAC;IAIb,UAAU,EAAE,MAAM,CAAC;IAInB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAGzB,IAAI,EAAE,MAAM,CAAC;IAOb,QAAQ,EAAE,cAAc,CAAC;IAGzB,KAAK,EAAE,aAAa,CAAC;IAErB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAEf,MAAM,IAAI,oBAAoB;CAGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/lib/dbmodels/coaching/ClientNote.ts"],"sourcesContent":["import { BelongsTo, Column, DataType, Default, ForeignKey, Model, Table, Index } from 'sequelize-typescript';\nimport type { Optional } from 'sequelize';\nimport { PersistedUser } from '../user/PersistedUser.js';\n\nexport enum ClientNoteType {\n\tCLOSER = 'CLOSER',\n\tHEAD_COACH = 'HEAD_COACH',\n\tCOACH = 'COACH',\n\tSYSTEM = 'SYSTEM'\n}\n\nexport interface ClientNoteAttributes {\n\tuuid: string;\n\tclientUuid: string;\n\tcoachUuid: string;\n\tnote: string;\n\tnoteType: ClientNoteType;\n\tcreatedAt?: Date;\n\tupdatedAt?: Date;\n}\n\nexport interface ClientNoteCreationAttributes extends Optional<ClientNoteAttributes, \"uuid\" | \"createdAt\" | \"updatedAt\" | \"noteType\"> {\n}\n\n@Table({timestamps: true})\n@Index(['clientUuid'])\n@Index(['coachUuid'])\nexport class ClientNote extends Model<ClientNoteAttributes, ClientNoteCreationAttributes> {\n\t@Default(DataType.UUIDV4)\n\t@Column({\n\t\ttype: DataType.UUID,\n\t\tdefaultValue: DataType.UUIDV4,\n\t\tallowNull: false,\n\t\tprimaryKey: true\n\t})\n\tdeclare uuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: false })\n\tdeclare clientUuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull:
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/dbmodels/coaching/ClientNote.ts"],"sourcesContent":["import { BelongsTo, Column, DataType, Default, ForeignKey, Model, Table, Index } from 'sequelize-typescript';\nimport type { Optional } from 'sequelize';\nimport { PersistedUser } from '../user/PersistedUser.js';\n\nexport enum ClientNoteType {\n\tCLOSER = 'CLOSER',\n\tHEAD_COACH = 'HEAD_COACH',\n\tCOACH = 'COACH',\n\tSYSTEM = 'SYSTEM'\n}\n\nexport interface ClientNoteAttributes {\n\tuuid: string;\n\tclientUuid: string;\n\tcoachUuid: string | null;\n\tnote: string;\n\tnoteType: ClientNoteType;\n\tcreatedAt?: Date;\n\tupdatedAt?: Date;\n}\n\nexport interface ClientNoteCreationAttributes extends Optional<ClientNoteAttributes, \"uuid\" | \"createdAt\" | \"updatedAt\" | \"noteType\" | \"coachUuid\"> {\n}\n\n@Table({timestamps: true})\n@Index(['clientUuid'])\n@Index(['coachUuid'])\nexport class ClientNote extends Model<ClientNoteAttributes, ClientNoteCreationAttributes> {\n\t@Default(DataType.UUIDV4)\n\t@Column({\n\t\ttype: DataType.UUID,\n\t\tdefaultValue: DataType.UUIDV4,\n\t\tallowNull: false,\n\t\tprimaryKey: true\n\t})\n\tdeclare uuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: false })\n\tdeclare clientUuid: string;\n\n\t@ForeignKey(() => PersistedUser)\n\t@Column({ type: DataType.UUID, allowNull: true })\n\tdeclare coachUuid: string | null;\n\n\t@Column({ type: DataType.TEXT, allowNull: false })\n\tdeclare note: string;\n\n\t@Default(ClientNoteType.COACH)\n\t@Column({\n\t\ttype: DataType.ENUM(...Object.values(ClientNoteType)),\n\t\tallowNull: false\n\t})\n\tdeclare noteType: ClientNoteType;\n\n\t@BelongsTo(() => PersistedUser, { foreignKey: 'coachUuid', as: 'coach' })\n\tdeclare coach: PersistedUser;\n\n\tdeclare createdAt: Date;\n\tdeclare updatedAt: Date;\n\n\toverride toJSON(): ClientNoteAttributes {\n\t\treturn super.toJSON() as ClientNoteAttributes;\n\t}\n}\n"],"names":["BelongsTo","Column","DataType","Default","ForeignKey","Model","Table","Index","PersistedUser","ClientNoteType","ClientNote","toJSON","UUIDV4","type","UUID","defaultValue","allowNull","primaryKey","TEXT","ENUM","Object","values","foreignKey","as","timestamps"],"mappings":";;;;;;AAAA,SAASA,SAAS,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,EAAEC,KAAK,QAAQ,uBAAuB;AAE7G,SAASC,aAAa,QAAQ,2BAA2B;AAEzD,OAAO,IAAA,AAAKC,wCAAAA;;;;;WAAAA;MAKX;AAkBD,OAAO,MAAMC,mBAAmBL;IAkCtBM,SAA+B;QACvC,OAAO,KAAK,CAACA;IACd;AACD;;qBApCmBC;;QAEjBC,MAAMX,SAASY,IAAI;QACnBC,cAAcb,SAASU,MAAM;QAC7BI,WAAW;QACXC,YAAY;;;;mBAIKT;;QACRK,MAAMX,SAASY,IAAI;QAAEE,WAAW;;;;mBAGxBR;;QACRK,MAAMX,SAASY,IAAI;QAAEE,WAAW;;;;;QAGhCH,MAAMX,SAASgB,IAAI;QAAEF,WAAW;;;;;;QAKzCH,MAAMX,SAASiB,IAAI,IAAIC,OAAOC,MAAM,CAACZ;QACrCO,WAAW;;;;kBAIKR;QAAiBc,YAAY;QAAaC,IAAI;;;;;QA/BxDC,YAAY;;;QACZ;;;QACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "90dc-core",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,8 +22,11 @@
|
|
|
22
22
|
"jest": "^30.2.0",
|
|
23
23
|
"koa": "^2.15.3",
|
|
24
24
|
"nodemon": "^3.1.9",
|
|
25
|
+
"pg": "^8.16.3",
|
|
25
26
|
"prettier": "^3.6.2",
|
|
27
|
+
"sequelize": "^6.37.7",
|
|
26
28
|
"sequelize-cli": "^6.6.2",
|
|
29
|
+
"sequelize-typescript": "2.1.6",
|
|
27
30
|
"ts-jest": "^29.4.6",
|
|
28
31
|
"ts-node-dev": "^2.0.0",
|
|
29
32
|
"typescript": "^5.9.3"
|
|
@@ -46,13 +49,15 @@
|
|
|
46
49
|
"ioredis": "^5.8.2",
|
|
47
50
|
"jsonwebtoken": "^9.0.2",
|
|
48
51
|
"jwks-rsa": "^3.2.0",
|
|
49
|
-
"pg": "^8.16.3",
|
|
50
|
-
"sequelize": "^6.37.7",
|
|
51
|
-
"sequelize-typescript": "2.1.6",
|
|
52
52
|
"uuid": "^11.0.3",
|
|
53
53
|
"winston": "^3.18.3",
|
|
54
54
|
"zod": "^4.1.12"
|
|
55
55
|
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"pg": "^8.16.3",
|
|
58
|
+
"sequelize": "^6.37.7",
|
|
59
|
+
"sequelize-typescript": "2.1.6"
|
|
60
|
+
},
|
|
56
61
|
"repository": {
|
|
57
62
|
"type": "git",
|
|
58
63
|
"url": "git+https://github.com/RomaPchel/90DC-core.git"
|