@carlonicora/nestjs-neo4jsonapi 1.45.0 → 1.46.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.relationship.d.ts","sourceRoot":"","sources":["../../../../src/core/neo4j/queries/update.relationship.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,GAAI,QAAQ;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAC;IAC7F,WAAW,CAAC,EAAE,GAAG,CAAC;CACnB,KAAG,
|
|
1
|
+
{"version":3,"file":"update.relationship.d.ts","sourceRoot":"","sources":["../../../../src/core/neo4j/queries/update.relationship.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,GAAI,QAAQ;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,sBAAsB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC,CAAC;IAC7F,WAAW,CAAC,EAAE,GAAG,CAAC;CACnB,KAAG,MAwEH,CAAC"}
|
|
@@ -2,8 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateRelationshipQuery = void 0;
|
|
4
4
|
const updateRelationshipQuery = (params) => {
|
|
5
|
+
// COLLISION FIX: Use alias when node and param names collide
|
|
6
|
+
const paramAlias = params.node.toLowerCase() === params.param.toLowerCase() ? `${params.param}_ids` : params.param;
|
|
7
|
+
// SYNC queryParams: When there's a collision, copy values to the aliased key
|
|
8
|
+
if (params.queryParams && params.node.toLowerCase() === params.param.toLowerCase()) {
|
|
9
|
+
if (params.queryParams[params.param] !== undefined) {
|
|
10
|
+
params.queryParams[paramAlias] = params.queryParams[params.param];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
5
13
|
let relationshipProps = [];
|
|
6
|
-
const propertiesMapParam = `${
|
|
14
|
+
const propertiesMapParam = `${paramAlias}PropertiesMap`;
|
|
7
15
|
if (params.relationshipProperties) {
|
|
8
16
|
// Check if it's a resolver function
|
|
9
17
|
if (typeof params.relationshipProperties === "function") {
|
|
@@ -39,13 +47,13 @@ const updateRelationshipQuery = (params) => {
|
|
|
39
47
|
return `
|
|
40
48
|
WITH ${params.node}
|
|
41
49
|
OPTIONAL MATCH (${params.node})${params.relationshipToNode ? "-" : "<-"}[rel:${params.relationshipName}]${params.relationshipToNode ? "->" : "-"}(existing:${params.label})
|
|
42
|
-
WHERE NOT existing.id IN $${
|
|
50
|
+
WHERE NOT existing.id IN $${paramAlias}
|
|
43
51
|
DELETE rel
|
|
44
52
|
|
|
45
53
|
${params.values && params.values.length > 0
|
|
46
54
|
? `
|
|
47
|
-
WITH ${params.node}, $${
|
|
48
|
-
UNWIND ${
|
|
55
|
+
WITH ${params.node}, $${paramAlias} AS ${paramAlias}
|
|
56
|
+
UNWIND ${paramAlias} AS id
|
|
49
57
|
MATCH (new:${params.label} {id: id})
|
|
50
58
|
MERGE (${params.node})${params.relationshipToNode ? "-" : "<-"}[rel:${params.relationshipName}]${params.relationshipToNode ? "->" : "-"}(new)
|
|
51
59
|
${params.relationshipProperties ? `SET ${relationshipProps}, rel.updatedAt = datetime()` : ""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.relationship.js","sourceRoot":"","sources":["../../../../src/core/neo4j/queries/update.relationship.ts"],"names":[],"mappings":";;;AAAO,MAAM,uBAAuB,GAAG,CAAC,MASvC,EAAU,EAAE;IACX,IAAI,iBAAiB,GAAsB,EAAE,CAAC;IAC9C,MAAM,kBAAkB,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"update.relationship.js","sourceRoot":"","sources":["../../../../src/core/neo4j/queries/update.relationship.ts"],"names":[],"mappings":";;;AAAO,MAAM,uBAAuB,GAAG,CAAC,MASvC,EAAU,EAAE;IACX,6DAA6D;IAC7D,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;IAEnH,6EAA6E;IAC7E,IAAI,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;QACnF,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;YACnD,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACpE,CAAC;IACH,CAAC;IAED,IAAI,iBAAiB,GAAsB,EAAE,CAAC;IAC9C,MAAM,kBAAkB,GAAG,GAAG,UAAU,eAAe,CAAC;IAExD,IAAI,MAAM,CAAC,sBAAsB,EAAE,CAAC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AO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAC1F,CACF;iBACA,IAAI,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;IAED,OAAO;WACE,MAAM,CAAC,IAAI;sBACA,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,QAAQ,MAAM,CAAC,gBAAgB,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,MAAM,CAAC,KAAK;gCAC7I,UAAU;;;MAIpC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;QACvC,CAAC,CAAC;eACK,MAAM,CAAC,IAAI,MAAM,UAAU,OAAO,UAAU;iBAC1C,UAAU;qBACN,MAAM,CAAC,KAAK;iBAChB,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,QAAQ,MAAM,CAAC,gBAAgB,IAAI,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG;UACrI,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,OAAO,iBAAiB,8BAA8B,CAAC,CAAC,CAAC,EAAE;SAC5F;QACD,CAAC,CAAC,EACN;KACC,CAAC;AACN,CAAC,CAAC;AAjFW,QAAA,uBAAuB,2BAiFlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carlonicora/nestjs-neo4jsonapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.0",
|
|
4
4
|
"description": "NestJS foundation package with JSON:API, Neo4j, Redis, LangChain agents, and common utilities",
|
|
5
5
|
"author": "Carlo Nicora",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"prepublishOnly": "pnpm build"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@aws-sdk/client-s3": "^3.
|
|
65
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
|
64
|
+
"@aws-sdk/client-s3": "^3.984.0",
|
|
65
|
+
"@aws-sdk/s3-request-presigner": "^3.984.0",
|
|
66
66
|
"@azure/storage-blob": "^12.30.0",
|
|
67
67
|
"@getbrevo/brevo": "^3.0.1",
|
|
68
|
-
"@langchain/community": "^1.1.
|
|
69
|
-
"@langchain/core": "^1.1.
|
|
70
|
-
"@langchain/google-vertexai": "^2.1.
|
|
71
|
-
"@langchain/langgraph": "^1.1.
|
|
72
|
-
"@langchain/openai": "^1.2.
|
|
68
|
+
"@langchain/community": "^1.1.12",
|
|
69
|
+
"@langchain/core": "^1.1.19",
|
|
70
|
+
"@langchain/google-vertexai": "^2.1.15",
|
|
71
|
+
"@langchain/langgraph": "^1.1.3",
|
|
72
|
+
"@langchain/openai": "^1.2.5",
|
|
73
73
|
"@langchain/textsplitters": "^1.0.1",
|
|
74
74
|
"@opentelemetry/api": "^1.9.0",
|
|
75
75
|
"@opentelemetry/exporter-trace-otlp-http": "^0.211.0",
|
|
@@ -81,15 +81,15 @@
|
|
|
81
81
|
"@sendgrid/mail": "^8.1.6",
|
|
82
82
|
"@simplewebauthn/server": "^13.2.2",
|
|
83
83
|
"adm-zip": "^0.5.16",
|
|
84
|
-
"axios": "^1.13.
|
|
84
|
+
"axios": "^1.13.4",
|
|
85
85
|
"bcrypt": "^6.0.0",
|
|
86
86
|
"bcryptjs": "^3.0.3",
|
|
87
|
-
"bullmq": "^5.67.
|
|
87
|
+
"bullmq": "^5.67.3",
|
|
88
88
|
"class-transformer": "^0.5.1",
|
|
89
89
|
"class-validator": "^0.14.3",
|
|
90
90
|
"discord.js": "^14.25.1",
|
|
91
|
-
"fast-xml-parser": "^5.3.
|
|
92
|
-
"fastify": "^5.7.
|
|
91
|
+
"fast-xml-parser": "^5.3.4",
|
|
92
|
+
"fastify": "^5.7.4",
|
|
93
93
|
"handlebars": "^4.7.8",
|
|
94
94
|
"ioredis": "^5.9.2",
|
|
95
95
|
"jszip": "^3.10.1",
|
|
@@ -102,15 +102,15 @@
|
|
|
102
102
|
"nestjs-pino": "^4.5.0",
|
|
103
103
|
"nestjs-redoc": "^2.2.2",
|
|
104
104
|
"node-tesseract-ocr": "^2.2.1",
|
|
105
|
-
"nodemailer": "^
|
|
105
|
+
"nodemailer": "^8.0.0",
|
|
106
106
|
"officeparser": "^6.0.4",
|
|
107
|
-
"openai": "^6.
|
|
108
|
-
"otpauth": "^9.
|
|
107
|
+
"openai": "^6.18.0",
|
|
108
|
+
"otpauth": "^9.5.0",
|
|
109
109
|
"passport": "^0.7.0",
|
|
110
110
|
"passport-jwt": "^4.0.1",
|
|
111
111
|
"pdf-parse": "^2.4.5",
|
|
112
112
|
"pdf2pic": "^3.2.0",
|
|
113
|
-
"pdfjs-dist": "^5.4.
|
|
113
|
+
"pdfjs-dist": "^5.4.624",
|
|
114
114
|
"pino": "^10.3.0",
|
|
115
115
|
"pino-pretty": "^13.1.3",
|
|
116
116
|
"qrcode": "^1.5.4",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"rxjs": "^7.8.2",
|
|
120
120
|
"sharp": "^0.34.5",
|
|
121
121
|
"socket.io": "^4.8.3",
|
|
122
|
-
"stripe": "^20.
|
|
122
|
+
"stripe": "^20.3.1",
|
|
123
123
|
"tslib": "^2.8.1",
|
|
124
124
|
"turndown": "^7.2.2",
|
|
125
125
|
"web-push": "^3.6.7",
|
|
@@ -130,31 +130,31 @@
|
|
|
130
130
|
"@eslint/eslintrc": "^3.3.3",
|
|
131
131
|
"@eslint/js": "^9.39.2",
|
|
132
132
|
"@nestjs/bullmq": "^11.0.4",
|
|
133
|
-
"@nestjs/swagger": "^11.2.
|
|
134
|
-
"@nestjs/testing": "^11.1.
|
|
133
|
+
"@nestjs/swagger": "^11.2.6",
|
|
134
|
+
"@nestjs/testing": "^11.1.13",
|
|
135
135
|
"@semantic-release/changelog": "^6.0.3",
|
|
136
136
|
"@semantic-release/git": "^10.0.1",
|
|
137
|
-
"@swc/core": "^1.15.
|
|
137
|
+
"@swc/core": "^1.15.11",
|
|
138
138
|
"@types/bcrypt": "^6.0.0",
|
|
139
139
|
"@types/bcryptjs": "^3.0.0",
|
|
140
|
-
"@types/node": "^25.
|
|
141
|
-
"@types/nodemailer": "^7.0.
|
|
140
|
+
"@types/node": "^25.2.1",
|
|
141
|
+
"@types/nodemailer": "^7.0.9",
|
|
142
142
|
"@types/passport-jwt": "^4.0.1",
|
|
143
143
|
"@types/qrcode": "^1.5.6",
|
|
144
144
|
"@types/qs": "^6.14.0",
|
|
145
145
|
"@types/turndown": "^5.0.6",
|
|
146
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
147
|
-
"@typescript-eslint/parser": "^8.
|
|
146
|
+
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
147
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
148
148
|
"@vitest/coverage-v8": "^4.0.18",
|
|
149
|
-
"commander": "^14.0.
|
|
149
|
+
"commander": "^14.0.3",
|
|
150
150
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
151
151
|
"eslint": "^9.39.2",
|
|
152
152
|
"eslint-config-prettier": "^10.1.8",
|
|
153
153
|
"eslint-plugin-prettier": "^5.5.5",
|
|
154
|
-
"glob": "^13.0.
|
|
155
|
-
"globals": "^17.
|
|
154
|
+
"glob": "^13.0.1",
|
|
155
|
+
"globals": "^17.3.0",
|
|
156
156
|
"prettier": "^3.8.1",
|
|
157
|
-
"semantic-release": "^25.0.
|
|
157
|
+
"semantic-release": "^25.0.3",
|
|
158
158
|
"ts-node": "^10.9.2",
|
|
159
159
|
"tsup": "^8.5.1",
|
|
160
160
|
"typescript": "^5.9.3",
|