backend-plus 2.5.2-betha.8 → 2.5.2-betha.9
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/backend-plus.d.ts +2 -1
- package/lib/backend-plus.js +1 -1
- package/package.json +8 -8
package/lib/backend-plus.d.ts
CHANGED
|
@@ -174,7 +174,8 @@ export type SequenceDefinition = {
|
|
|
174
174
|
prefix?:string /* Prefix for the generated value */
|
|
175
175
|
}
|
|
176
176
|
export type SequenceMadMaxDefinition = {
|
|
177
|
-
madMax: [] //
|
|
177
|
+
madMax: string[] // grouping of mad max sequences
|
|
178
|
+
firstValue: number
|
|
178
179
|
}
|
|
179
180
|
export type ExportMetadataDefinition={ /* TODO: define */ }
|
|
180
181
|
export type PostInputOptions='upperSpanish' | 'upperWithoutDiacritics' | 'parseDecimal'
|
package/lib/backend-plus.js
CHANGED
|
@@ -2926,7 +2926,7 @@ AppBackend.prototype.dumpDbSchemaPartial = async function dumpDbSchemaPartial(pa
|
|
|
2926
2926
|
);
|
|
2927
2927
|
lines.push('GRANT USAGE, SELECT ON SEQUENCE '+db.quoteIdent(sequence.name)+' TO '+user+';');
|
|
2928
2928
|
} else if (sequence.madMax) {
|
|
2929
|
-
lines.push(await pgTriggers.dumpMaxIdTrigger(tableDef.sql.tableName, fieldDef.name));
|
|
2929
|
+
lines.push(await pgTriggers.dumpMaxIdTrigger(tableDef.sql.tableName, fieldDef.name, {grouping: sequence.madMax.grouping, firstValue: sequence.firstValue}));
|
|
2930
2930
|
} else {
|
|
2931
2931
|
throw new Error('a sequence without madMax nor name');
|
|
2932
2932
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-plus",
|
|
3
3
|
"description": "Backend for the anti Pareto rule",
|
|
4
|
-
"version": "2.5.2-betha.
|
|
4
|
+
"version": "2.5.2-betha.9",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/backend-plus",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"best-globals": "^2.0.1",
|
|
36
36
|
"big.js": "^7.0.1",
|
|
37
37
|
"body-parser": "^2.2.0",
|
|
38
|
-
"cast-error": "^0.1.
|
|
38
|
+
"cast-error": "^0.1.2",
|
|
39
39
|
"castellano": "^0.1.4",
|
|
40
40
|
"connect-pg-simple": "^10.0.0",
|
|
41
41
|
"cookie-parser": "^1.4.7",
|
|
42
42
|
"cors": "^2.8.5",
|
|
43
|
-
"dialog-promise": "^0.10.
|
|
44
|
-
"discrepances": "^0.2.
|
|
43
|
+
"dialog-promise": "^0.10.2",
|
|
44
|
+
"discrepances": "^0.2.9",
|
|
45
45
|
"express": "^5.1.0",
|
|
46
46
|
"express-session": "^1.18.1",
|
|
47
47
|
"express-useragent": "^1.0.15",
|
|
@@ -51,15 +51,15 @@
|
|
|
51
51
|
"json4all": "^1.4.0",
|
|
52
52
|
"lazy-some": "^0.1.0",
|
|
53
53
|
"like-ar": "^0.5.1",
|
|
54
|
-
"login-plus": "^1.7.
|
|
54
|
+
"login-plus": "^1.7.3",
|
|
55
55
|
"memorystore": "^1.6.7",
|
|
56
|
-
"mini-tools": "^1.13.
|
|
56
|
+
"mini-tools": "^1.13.3",
|
|
57
57
|
"moment": "^2.30.1",
|
|
58
58
|
"multiparty": "^4.2.3",
|
|
59
59
|
"nodemailer": "^7.0.3",
|
|
60
60
|
"numeral": "^2.0.6",
|
|
61
|
-
"pg-promise-strict": "^1.4.
|
|
62
|
-
"pg-triggers": "0.4.
|
|
61
|
+
"pg-promise-strict": "^1.4.3",
|
|
62
|
+
"pg-triggers": "0.4.3",
|
|
63
63
|
"pikaday": "^1.8.2",
|
|
64
64
|
"pug": "^3.0.3",
|
|
65
65
|
"read-yaml-promise": "^1.0.2",
|