@webda/core 4.0.0-beta.4 → 4.0.0-beta.6
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/application/application.d.ts.map +1 -1
- package/lib/application/application.js +12 -1
- package/lib/application/application.js.map +1 -1
- package/lib/bin/cli.d.ts +11 -0
- package/lib/bin/cli.d.ts.map +1 -1
- package/lib/bin/cli.js +26 -6
- package/lib/bin/cli.js.map +1 -1
- package/lib/core/core.d.ts +3 -2
- package/lib/core/core.d.ts.map +1 -1
- package/lib/core/core.js +15 -17
- package/lib/core/core.js.map +1 -1
- package/lib/core/operations.d.ts.map +1 -1
- package/lib/core/operations.js +13 -11
- package/lib/core/operations.js.map +1 -1
- package/lib/deployers/packager.d.ts +38 -0
- package/lib/deployers/packager.d.ts.map +1 -1
- package/lib/deployers/packager.js +70 -18
- package/lib/deployers/packager.js.map +1 -1
- package/lib/deployers/packager.service.d.ts +33 -0
- package/lib/deployers/packager.service.d.ts.map +1 -0
- package/lib/deployers/packager.service.js +112 -0
- package/lib/deployers/packager.service.js.map +1 -0
- package/lib/index.d.ts +4 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/models/aclmodel.d.ts +32 -5
- package/lib/models/aclmodel.d.ts.map +1 -1
- package/lib/models/aclmodel.js +34 -9
- package/lib/models/aclmodel.js.map +1 -1
- package/lib/models/ownermodel.model.d.ts +25 -3
- package/lib/models/ownermodel.model.d.ts.map +1 -1
- package/lib/models/ownermodel.model.js +44 -9
- package/lib/models/ownermodel.model.js.map +1 -1
- package/lib/models/permissions.d.ts +247 -0
- package/lib/models/permissions.d.ts.map +1 -0
- package/lib/models/permissions.js +522 -0
- package/lib/models/permissions.js.map +1 -0
- package/lib/models/rolemodel.model.d.ts.map +1 -1
- package/lib/models/rolemodel.model.js +1 -2
- package/lib/models/rolemodel.model.js.map +1 -1
- package/lib/models/user.model.d.ts +12 -0
- package/lib/models/user.model.d.ts.map +1 -1
- package/lib/models/user.model.js +16 -0
- package/lib/models/user.model.js.map +1 -1
- package/lib/rest/restoperationstransport.service.d.ts.map +1 -1
- package/lib/rest/restoperationstransport.service.js +7 -5
- package/lib/rest/restoperationstransport.service.js.map +1 -1
- package/lib/services/audit.model.d.ts +2 -2
- package/lib/services/audit.model.d.ts.map +1 -1
- package/lib/services/audit.model.js +20 -7
- package/lib/services/audit.model.js.map +1 -1
- package/lib/services/binary.service.d.ts +42 -4
- package/lib/services/binary.service.d.ts.map +1 -1
- package/lib/services/binary.service.js +33 -13
- package/lib/services/binary.service.js.map +1 -1
- package/lib/services/domainservice.service.d.ts +74 -3
- package/lib/services/domainservice.service.d.ts.map +1 -1
- package/lib/services/domainservice.service.js +234 -57
- package/lib/services/domainservice.service.js.map +1 -1
- package/lib/services/mailer.service.d.ts.map +1 -1
- package/lib/services/mailer.service.js +1 -0
- package/lib/services/mailer.service.js.map +1 -1
- package/lib/stores/store.d.ts +20 -1
- package/lib/stores/store.d.ts.map +1 -1
- package/lib/stores/store.js +29 -1
- package/lib/stores/store.js.map +1 -1
- package/package.json +20 -17
- package/webda.module.json +92 -24
package/lib/stores/store.js
CHANGED
|
@@ -68,6 +68,20 @@ export class StoreParameters extends ServiceParameters {
|
|
|
68
68
|
* @default 30000
|
|
69
69
|
*/
|
|
70
70
|
slowQueryThreshold;
|
|
71
|
+
/**
|
|
72
|
+
* What to do when an aggregation on this store cannot run natively and must
|
|
73
|
+
* stream every matching object through memory
|
|
74
|
+
*
|
|
75
|
+
* @default "warn"
|
|
76
|
+
*/
|
|
77
|
+
aggregationFallback;
|
|
78
|
+
/**
|
|
79
|
+
* Maximum number of groups an aggregation may produce without LIMIT (or in memory)
|
|
80
|
+
*
|
|
81
|
+
* @minimum 1
|
|
82
|
+
* @default 10000
|
|
83
|
+
*/
|
|
84
|
+
maxGroups;
|
|
71
85
|
/**
|
|
72
86
|
* Model Aliases to allow easier rename of Model
|
|
73
87
|
*/
|
|
@@ -198,7 +212,10 @@ class Store extends Service {
|
|
|
198
212
|
currentStore = registry;
|
|
199
213
|
}
|
|
200
214
|
// Register the repository
|
|
201
|
-
|
|
215
|
+
const repository = currentStore.getRepository(model);
|
|
216
|
+
// Optional: repositories of third-party stores may predate aggregation
|
|
217
|
+
repository.configureAggregation?.(currentStore.getAggregationOptions());
|
|
218
|
+
registerRepository(model, repository);
|
|
202
219
|
useLog("DEBUG", `${useModelId(model)} using store ${currentStore.getName()}`);
|
|
203
220
|
}
|
|
204
221
|
}
|
|
@@ -345,6 +362,17 @@ class Store extends Service {
|
|
|
345
362
|
checkKeys() {
|
|
346
363
|
// TODO Implement
|
|
347
364
|
}
|
|
365
|
+
/**
|
|
366
|
+
* Aggregation options applied to the repositories of this store
|
|
367
|
+
* @returns the options; undefined values keep the repository defaults
|
|
368
|
+
*/
|
|
369
|
+
getAggregationOptions() {
|
|
370
|
+
return {
|
|
371
|
+
fallback: this.parameters.aggregationFallback,
|
|
372
|
+
maxGroups: this.parameters.maxGroups,
|
|
373
|
+
warn: message => useLog("WARN", message)
|
|
374
|
+
};
|
|
375
|
+
}
|
|
348
376
|
}
|
|
349
377
|
export { Store };
|
|
350
378
|
//# sourceMappingURL=store.js.map
|
package/lib/stores/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/stores/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAElD,OAAO,
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/stores/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,qBAAqB,CAAC;AAElD,OAAO,EACL,kBAAkB,EAMnB,MAAM,eAAe,C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
|
1
1
|
{
|
|
2
2
|
"name": "@webda/core",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.6",
|
|
4
4
|
"description": "Expose API with Lambda",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aws",
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
"api gateway"
|
|
9
9
|
],
|
|
10
10
|
"author": "Remi Cattiau <remi@cattiau.com>",
|
|
11
|
-
"repository":
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/loopingz/webda.io.git",
|
|
14
|
+
"directory": "packages/core"
|
|
15
|
+
},
|
|
12
16
|
"main": "lib/index.js",
|
|
13
17
|
"typings": "lib/index.d.ts",
|
|
14
18
|
"bin": {
|
|
@@ -23,14 +27,14 @@
|
|
|
23
27
|
"bcryptjs": "^3.0.3",
|
|
24
28
|
"cookie": "^1.1.1",
|
|
25
29
|
"dateformat": "^5.0.3",
|
|
26
|
-
"deepmerge-ts": "^
|
|
30
|
+
"deepmerge-ts": "^8.0.2",
|
|
27
31
|
"email-templates": "^13.0.1",
|
|
28
32
|
"glob": "^13.0.6",
|
|
29
33
|
"global": "^4.4.0",
|
|
30
34
|
"is-in-subnet": "^4.0.1",
|
|
31
35
|
"json-schema": "^0.4.0",
|
|
32
36
|
"jsonc-parser": "^3.3.1",
|
|
33
|
-
"jsondiffpatch": "^0.7.
|
|
37
|
+
"jsondiffpatch": "^0.7.6",
|
|
34
38
|
"jsonpath": "^1.3.0",
|
|
35
39
|
"jsonwebtoken": "^9.0.3",
|
|
36
40
|
"merge": "^2.1.1",
|
|
@@ -38,7 +42,7 @@
|
|
|
38
42
|
"mustache": "^4.2.0",
|
|
39
43
|
"node-cron": "^4.2.1",
|
|
40
44
|
"node-machine-id": "^1.1.12",
|
|
41
|
-
"nodemailer": "^
|
|
45
|
+
"nodemailer": "^10.0.16",
|
|
42
46
|
"openapi-types": "^12.1.3",
|
|
43
47
|
"pem-jwk": "^2.0.0",
|
|
44
48
|
"prom-client": "^15.1.3",
|
|
@@ -50,18 +54,18 @@
|
|
|
50
54
|
"uri-templates": "^0.2.0",
|
|
51
55
|
"yaml": "^2.8.3",
|
|
52
56
|
"yargs": "^18.0.0",
|
|
53
|
-
"@webda/cache": "^4.0.0-beta.
|
|
54
|
-
"@webda/
|
|
55
|
-
"@webda/
|
|
56
|
-
"@webda/
|
|
57
|
-
"@webda/
|
|
58
|
-
"@webda/
|
|
59
|
-
"@webda/
|
|
57
|
+
"@webda/cache": "^4.0.0-beta.6",
|
|
58
|
+
"@webda/decorators": "^4.0.0-beta.5",
|
|
59
|
+
"@webda/utils": "^4.0.0-beta.6",
|
|
60
|
+
"@webda/tsc-esm": "4.0.0-beta.6",
|
|
61
|
+
"@webda/workout": "4.0.0-beta.5",
|
|
62
|
+
"@webda/models": "^4.0.0-beta.6",
|
|
63
|
+
"@webda/ql": "4.0.0-beta.6"
|
|
60
64
|
},
|
|
61
65
|
"peerDependencies": {
|
|
62
66
|
"sinon": "^21.0.3",
|
|
63
67
|
"vitest": "^4.1.2",
|
|
64
|
-
"@webda/test": "^4.0.0-beta.
|
|
68
|
+
"@webda/test": "^4.0.0-beta.6"
|
|
65
69
|
},
|
|
66
70
|
"peerDependenciesMeta": {
|
|
67
71
|
"sinon": {
|
|
@@ -76,7 +80,6 @@
|
|
|
76
80
|
},
|
|
77
81
|
"devDependencies": {
|
|
78
82
|
"@types/node": "25.5.0",
|
|
79
|
-
"@types/nodemailer": "^7.0.11",
|
|
80
83
|
"@types/sanitize-html": "^2.16.1",
|
|
81
84
|
"@types/yargs": "^17.0.35",
|
|
82
85
|
"@vitest/coverage-istanbul": "^4.1.2",
|
|
@@ -96,9 +99,9 @@
|
|
|
96
99
|
"vite": "^6.0.0",
|
|
97
100
|
"vitest": "^4.1.2",
|
|
98
101
|
"ws": "^8.20.0",
|
|
99
|
-
"@webda/compiler": "^4.0.0-beta.
|
|
100
|
-
"@webda/
|
|
101
|
-
"@webda/
|
|
102
|
+
"@webda/compiler": "^4.0.0-beta.6",
|
|
103
|
+
"@webda/content-mapper": "^4.0.0-beta.6",
|
|
104
|
+
"@webda/test": "^4.0.0-beta.6"
|
|
102
105
|
},
|
|
103
106
|
"files": [
|
|
104
107
|
"lib",
|
package/webda.module.json
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
3
3
|
"beans": {},
|
|
4
4
|
"deployers": {},
|
|
5
5
|
"moddas": {
|
|
6
|
+
"Webda/ApplicationPackager": {
|
|
7
|
+
"Import": "lib/deployers/packager.service:ApplicationPackager",
|
|
8
|
+
"Schema": {
|
|
9
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"description": "Interface to specify the Service parameters",
|
|
12
|
+
"properties": {
|
|
13
|
+
"type": {
|
|
14
|
+
"description": "Type of the service",
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"openapi": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"type"
|
|
24
|
+
],
|
|
25
|
+
"type": "object",
|
|
26
|
+
"title": "ApplicationPackager"
|
|
27
|
+
},
|
|
28
|
+
"Configuration": "lib/services/serviceparameters:ServiceParameters",
|
|
29
|
+
"commands": {
|
|
30
|
+
"package": {
|
|
31
|
+
"description": "Package the application with its deployment applied",
|
|
32
|
+
"method": "package",
|
|
33
|
+
"args": {
|
|
34
|
+
"output": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"alias": "o",
|
|
37
|
+
"description": "Package folder, or JSON file with --config-only (stdout if omitted)"
|
|
38
|
+
},
|
|
39
|
+
"configOnly": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "Only output the deployed configuration"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"phase": "resolved"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
6
48
|
"Webda/AuditService": {
|
|
7
49
|
"Import": "lib/services/audit.model:AuditService",
|
|
8
50
|
"Schema": {
|
|
@@ -1211,6 +1253,16 @@
|
|
|
1211
1253
|
},
|
|
1212
1254
|
"description": "Memory store",
|
|
1213
1255
|
"properties": {
|
|
1256
|
+
"aggregationFallback": {
|
|
1257
|
+
"default": "warn",
|
|
1258
|
+
"description": "What to do when an aggregation on this store cannot run natively and must\nstream every matching object through memory",
|
|
1259
|
+
"enum": [
|
|
1260
|
+
"allow",
|
|
1261
|
+
"warn",
|
|
1262
|
+
"deny"
|
|
1263
|
+
],
|
|
1264
|
+
"type": "string"
|
|
1265
|
+
},
|
|
1214
1266
|
"defaultModel": {
|
|
1215
1267
|
"default": true,
|
|
1216
1268
|
"description": "When __type model not found, use the model\nIf strict is setup this parameter is not used",
|
|
@@ -1221,6 +1273,12 @@
|
|
|
1221
1273
|
"description": "If set, Store will ignore the __type",
|
|
1222
1274
|
"type": "boolean"
|
|
1223
1275
|
},
|
|
1276
|
+
"maxGroups": {
|
|
1277
|
+
"default": 10000,
|
|
1278
|
+
"description": "Maximum number of groups an aggregation may produce without LIMIT (or in memory)",
|
|
1279
|
+
"minimum": 1,
|
|
1280
|
+
"type": "number"
|
|
1281
|
+
},
|
|
1224
1282
|
"modelAliases": {
|
|
1225
1283
|
"$ref": "#/definitions/modelAliases",
|
|
1226
1284
|
"description": "Model Aliases to allow easier rename of Model"
|
|
@@ -1642,7 +1700,7 @@
|
|
|
1642
1700
|
"Output": {
|
|
1643
1701
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1644
1702
|
"additionalProperties": false,
|
|
1645
|
-
"description": "Abstract class to define an object with an owner\n\nThe owner is the user that created the object
|
|
1703
|
+
"description": "Abstract class to define an object with an owner\n\nThe owner is the user that created the object, set from the caller on create.\nThe owner is never taken from client input.",
|
|
1646
1704
|
"properties": {
|
|
1647
1705
|
"_user": {
|
|
1648
1706
|
"allOf": [
|
|
@@ -1678,7 +1736,7 @@
|
|
|
1678
1736
|
"Input": {
|
|
1679
1737
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1680
1738
|
"additionalProperties": false,
|
|
1681
|
-
"description": "Abstract class to define an object with an owner\n\nThe owner is the user that created the object
|
|
1739
|
+
"description": "Abstract class to define an object with an owner\n\nThe owner is the user that created the object, set from the caller on create.\nThe owner is never taken from client input.",
|
|
1682
1740
|
"properties": {
|
|
1683
1741
|
"_user": {
|
|
1684
1742
|
"allOf": [
|
|
@@ -1714,7 +1772,7 @@
|
|
|
1714
1772
|
"Stored": {
|
|
1715
1773
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1716
1774
|
"additionalProperties": false,
|
|
1717
|
-
"description": "Abstract class to define an object with an owner\n\nThe owner is the user that created the object
|
|
1775
|
+
"description": "Abstract class to define an object with an owner\n\nThe owner is the user that created the object, set from the caller on create.\nThe owner is never taken from client input.",
|
|
1718
1776
|
"properties": {
|
|
1719
1777
|
"_user": {
|
|
1720
1778
|
"allOf": [
|
|
@@ -1756,12 +1814,14 @@
|
|
|
1756
1814
|
"Update",
|
|
1757
1815
|
"Patch",
|
|
1758
1816
|
"Query",
|
|
1817
|
+
"Aggregate",
|
|
1759
1818
|
"Created",
|
|
1760
1819
|
"PartialUpdated",
|
|
1761
1820
|
"Deleted",
|
|
1762
1821
|
"Patched",
|
|
1763
1822
|
"Updated",
|
|
1764
|
-
"Queried"
|
|
1823
|
+
"Queried",
|
|
1824
|
+
"Aggregated"
|
|
1765
1825
|
],
|
|
1766
1826
|
"PrimaryKey": [
|
|
1767
1827
|
"uuid"
|
|
@@ -1942,12 +2002,14 @@
|
|
|
1942
2002
|
"Update",
|
|
1943
2003
|
"Patch",
|
|
1944
2004
|
"Query",
|
|
2005
|
+
"Aggregate",
|
|
1945
2006
|
"Created",
|
|
1946
2007
|
"PartialUpdated",
|
|
1947
2008
|
"Deleted",
|
|
1948
2009
|
"Patched",
|
|
1949
2010
|
"Updated",
|
|
1950
|
-
"Queried"
|
|
2011
|
+
"Queried",
|
|
2012
|
+
"Aggregated"
|
|
1951
2013
|
],
|
|
1952
2014
|
"PrimaryKey": [
|
|
1953
2015
|
"uuid"
|
|
@@ -2026,12 +2088,14 @@
|
|
|
2026
2088
|
"Update",
|
|
2027
2089
|
"Patch",
|
|
2028
2090
|
"Query",
|
|
2091
|
+
"Aggregate",
|
|
2029
2092
|
"Created",
|
|
2030
2093
|
"PartialUpdated",
|
|
2031
2094
|
"Deleted",
|
|
2032
2095
|
"Patched",
|
|
2033
2096
|
"Updated",
|
|
2034
|
-
"Queried"
|
|
2097
|
+
"Queried",
|
|
2098
|
+
"Aggregated"
|
|
2035
2099
|
],
|
|
2036
2100
|
"PrimaryKey": [
|
|
2037
2101
|
"uuid"
|
|
@@ -2367,12 +2431,14 @@
|
|
|
2367
2431
|
"Update",
|
|
2368
2432
|
"Patch",
|
|
2369
2433
|
"Query",
|
|
2434
|
+
"Aggregate",
|
|
2370
2435
|
"Created",
|
|
2371
2436
|
"PartialUpdated",
|
|
2372
2437
|
"Deleted",
|
|
2373
2438
|
"Patched",
|
|
2374
2439
|
"Updated",
|
|
2375
|
-
"Queried"
|
|
2440
|
+
"Queried",
|
|
2441
|
+
"Aggregated"
|
|
2376
2442
|
],
|
|
2377
2443
|
"PrimaryKey": [
|
|
2378
2444
|
"providerUid",
|
|
@@ -2501,12 +2567,14 @@
|
|
|
2501
2567
|
"Update",
|
|
2502
2568
|
"Patch",
|
|
2503
2569
|
"Query",
|
|
2570
|
+
"Aggregate",
|
|
2504
2571
|
"Created",
|
|
2505
2572
|
"PartialUpdated",
|
|
2506
2573
|
"Deleted",
|
|
2507
2574
|
"Patched",
|
|
2508
2575
|
"Updated",
|
|
2509
|
-
"Queried"
|
|
2576
|
+
"Queried",
|
|
2577
|
+
"Aggregated"
|
|
2510
2578
|
],
|
|
2511
2579
|
"PrimaryKey": [
|
|
2512
2580
|
"uuid"
|
|
@@ -2762,12 +2830,14 @@
|
|
|
2762
2830
|
"Update",
|
|
2763
2831
|
"Patch",
|
|
2764
2832
|
"Query",
|
|
2833
|
+
"Aggregate",
|
|
2765
2834
|
"Created",
|
|
2766
2835
|
"PartialUpdated",
|
|
2767
2836
|
"Deleted",
|
|
2768
2837
|
"Patched",
|
|
2769
2838
|
"Updated",
|
|
2770
|
-
"Queried"
|
|
2839
|
+
"Queried",
|
|
2840
|
+
"Aggregated"
|
|
2771
2841
|
],
|
|
2772
2842
|
"PrimaryKey": [
|
|
2773
2843
|
"hash"
|
|
@@ -2846,12 +2916,14 @@
|
|
|
2846
2916
|
"Update",
|
|
2847
2917
|
"Patch",
|
|
2848
2918
|
"Query",
|
|
2919
|
+
"Aggregate",
|
|
2849
2920
|
"Created",
|
|
2850
2921
|
"PartialUpdated",
|
|
2851
2922
|
"Deleted",
|
|
2852
2923
|
"Patched",
|
|
2853
2924
|
"Updated",
|
|
2854
|
-
"Queried"
|
|
2925
|
+
"Queried",
|
|
2926
|
+
"Aggregated"
|
|
2855
2927
|
],
|
|
2856
2928
|
"PrimaryKey": [
|
|
2857
2929
|
"uuid"
|
|
@@ -2896,12 +2968,14 @@
|
|
|
2896
2968
|
"Update",
|
|
2897
2969
|
"Patch",
|
|
2898
2970
|
"Query",
|
|
2971
|
+
"Aggregate",
|
|
2899
2972
|
"Created",
|
|
2900
2973
|
"PartialUpdated",
|
|
2901
2974
|
"Deleted",
|
|
2902
2975
|
"Patched",
|
|
2903
2976
|
"Updated",
|
|
2904
|
-
"Queried"
|
|
2977
|
+
"Queried",
|
|
2978
|
+
"Aggregated"
|
|
2905
2979
|
],
|
|
2906
2980
|
"PrimaryKey": [],
|
|
2907
2981
|
"Identifier": "Webda/RoleModel"
|
|
@@ -3002,12 +3076,14 @@
|
|
|
3002
3076
|
"Update",
|
|
3003
3077
|
"Patch",
|
|
3004
3078
|
"Query",
|
|
3079
|
+
"Aggregate",
|
|
3005
3080
|
"Created",
|
|
3006
3081
|
"PartialUpdated",
|
|
3007
3082
|
"Deleted",
|
|
3008
3083
|
"Patched",
|
|
3009
3084
|
"Updated",
|
|
3010
|
-
"Queried"
|
|
3085
|
+
"Queried",
|
|
3086
|
+
"Aggregated"
|
|
3011
3087
|
],
|
|
3012
3088
|
"PrimaryKey": [
|
|
3013
3089
|
"uuid"
|
|
@@ -3302,12 +3378,14 @@
|
|
|
3302
3378
|
"Update",
|
|
3303
3379
|
"Patch",
|
|
3304
3380
|
"Query",
|
|
3381
|
+
"Aggregate",
|
|
3305
3382
|
"Created",
|
|
3306
3383
|
"PartialUpdated",
|
|
3307
3384
|
"Deleted",
|
|
3308
3385
|
"Patched",
|
|
3309
3386
|
"Updated",
|
|
3310
3387
|
"Queried",
|
|
3388
|
+
"Aggregated",
|
|
3311
3389
|
"Login",
|
|
3312
3390
|
"Logout"
|
|
3313
3391
|
],
|
|
@@ -3541,12 +3619,14 @@
|
|
|
3541
3619
|
"Update",
|
|
3542
3620
|
"Patch",
|
|
3543
3621
|
"Query",
|
|
3622
|
+
"Aggregate",
|
|
3544
3623
|
"Created",
|
|
3545
3624
|
"PartialUpdated",
|
|
3546
3625
|
"Deleted",
|
|
3547
3626
|
"Patched",
|
|
3548
3627
|
"Updated",
|
|
3549
3628
|
"Queried",
|
|
3629
|
+
"Aggregated",
|
|
3550
3630
|
"Login",
|
|
3551
3631
|
"Logout"
|
|
3552
3632
|
],
|
|
@@ -3563,10 +3643,6 @@
|
|
|
3563
3643
|
"additionalProperties": false,
|
|
3564
3644
|
"description": "Represent a file to store",
|
|
3565
3645
|
"properties": {
|
|
3566
|
-
"challenge": {
|
|
3567
|
-
"description": "Will be computed by the service\n\nhash of the content prefixed by 'WEBDA'",
|
|
3568
|
-
"type": "string"
|
|
3569
|
-
},
|
|
3570
3646
|
"hash": {
|
|
3571
3647
|
"description": "Will be computed by the service\n\nhash of the content",
|
|
3572
3648
|
"type": "string"
|
|
@@ -3725,10 +3801,6 @@
|
|
|
3725
3801
|
"class": "BinaryMap",
|
|
3726
3802
|
"description": "This is a map used to retrieve binary",
|
|
3727
3803
|
"properties": {
|
|
3728
|
-
"challenge": {
|
|
3729
|
-
"description": "Will be computed by the service\n\nhash of the content prefixed by 'WEBDA'",
|
|
3730
|
-
"type": "string"
|
|
3731
|
-
},
|
|
3732
3804
|
"hash": {
|
|
3733
3805
|
"description": "Will be computed by the service\n\nhash of the content",
|
|
3734
3806
|
"type": "string"
|
|
@@ -3885,10 +3957,6 @@
|
|
|
3885
3957
|
"class": "BinaryMap",
|
|
3886
3958
|
"description": "This is a map used to retrieve binary",
|
|
3887
3959
|
"properties": {
|
|
3888
|
-
"challenge": {
|
|
3889
|
-
"description": "Will be computed by the service\n\nhash of the content prefixed by 'WEBDA'",
|
|
3890
|
-
"type": "string"
|
|
3891
|
-
},
|
|
3892
3960
|
"hash": {
|
|
3893
3961
|
"description": "Will be computed by the service\n\nhash of the content",
|
|
3894
3962
|
"type": "string"
|