d5-api-initializer 1.7.4 → 1.8.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.
- package/package.json +11 -6
- package/publish/cjs/d5-api-initializer.cjs +30 -0
- package/publish/d5-api-initializer.d.cts +776 -0
- package/publish/d5-api-initializer.d.mts +16 -0
- package/publish/d5-api-initializer.d.ts +776 -0
- package/publish/d5-api-initializer.legacy-esm.js +30 -0
- package/publish/d5-api-initializer.mjs +30 -0
- package/CHANGELOG.md +0 -0
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "d5-api-initializer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {},
|
|
6
|
-
"main": "publish/cjs/d5-api-initializer",
|
|
6
|
+
"main": "publish/cjs/d5-api-initializer.cjs",
|
|
7
7
|
"module": "publish/d5-api-initializer.legacy-esm.js",
|
|
8
|
-
"types": "publish/d5-api-initializer.d.
|
|
8
|
+
"types": "publish/d5-api-initializer.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
"./package.json": "./package.json",
|
|
11
11
|
".": {
|
|
12
|
-
"types":
|
|
12
|
+
"types": {
|
|
13
|
+
"import": "./publish/d5-api-initializer.d.mts",
|
|
14
|
+
"require": "./publish/d5-api-initializer.d.cts",
|
|
15
|
+
"default": "./publish/d5-api-initializer.d.ts"
|
|
16
|
+
},
|
|
13
17
|
"import": "./publish/d5-api-initializer.mjs",
|
|
18
|
+
"require": "./publish/cjs/d5-api-initializer.cjs",
|
|
14
19
|
"default": "./publish/cjs/d5-api-initializer.cjs"
|
|
15
20
|
}
|
|
16
21
|
},
|
|
@@ -24,7 +29,7 @@
|
|
|
24
29
|
"zip": "node zip-build.js",
|
|
25
30
|
"build": "rimraf dist && yarn webpack && node build.js",
|
|
26
31
|
"clean": "rimraf publish",
|
|
27
|
-
"compile": "tsup",
|
|
32
|
+
"compile": "tsup && node scripts/after-compile.mjs",
|
|
28
33
|
"changelog": "node ./scripts/releaseChangelog.mjs changelog -p v1.0.0",
|
|
29
34
|
"prepublishOnly": "yarn clean",
|
|
30
35
|
"prepack": "yarn compile",
|
|
@@ -37,7 +42,7 @@
|
|
|
37
42
|
"@types/node": "20.11.16",
|
|
38
43
|
"archiver": "6.0.1",
|
|
39
44
|
"babel-loader": "10.0.0",
|
|
40
|
-
"copy-webpack-plugin": "
|
|
45
|
+
"copy-webpack-plugin": "11.0.0",
|
|
41
46
|
"dotenv": "16.4.7",
|
|
42
47
|
"eslint": "7.19.0",
|
|
43
48
|
"rimraf": "5.0.5",
|
|
@@ -444,6 +444,14 @@ var ApiInvoker = class {
|
|
|
444
444
|
this._jsWapiInvoker = this._jsWapiInvoker.putFilters(filters);
|
|
445
445
|
return this;
|
|
446
446
|
}
|
|
447
|
+
addAggregatedFilter(name, value) {
|
|
448
|
+
this._jsWapiInvoker = this._jsWapiInvoker.putAggregatedFilter(name, value);
|
|
449
|
+
return this;
|
|
450
|
+
}
|
|
451
|
+
addAggregatedFilters(filters) {
|
|
452
|
+
this._jsWapiInvoker = this._jsWapiInvoker.putAggregatedFilters(filters);
|
|
453
|
+
return this;
|
|
454
|
+
}
|
|
447
455
|
addSorts(sorts) {
|
|
448
456
|
this._jsWapiInvoker = this._jsWapiInvoker.addSorts(sorts);
|
|
449
457
|
return this;
|
|
@@ -845,6 +853,20 @@ var ApiRequest = class {
|
|
|
845
853
|
this.aggregatedColumns = aggregatedColumns;
|
|
846
854
|
return this;
|
|
847
855
|
}
|
|
856
|
+
getAggregatedFilter(name) {
|
|
857
|
+
return this._jsWapiRequest.getAggregatedFilter(name);
|
|
858
|
+
}
|
|
859
|
+
getAggregatedFilters() {
|
|
860
|
+
return this._jsWapiRequest.getAggregatedFilters();
|
|
861
|
+
}
|
|
862
|
+
removeAggregatedFilter(name) {
|
|
863
|
+
this._jsWapiRequest = this._jsWapiRequest.removeAggregatedFilter(name);
|
|
864
|
+
return this;
|
|
865
|
+
}
|
|
866
|
+
removeAggregatedFilters(names) {
|
|
867
|
+
this._jsWapiRequest = this._jsWapiRequest.removeAggregatedFilters(names);
|
|
868
|
+
return this;
|
|
869
|
+
}
|
|
848
870
|
setFilters(filters) {
|
|
849
871
|
this.filters = filters;
|
|
850
872
|
return this;
|
|
@@ -909,6 +931,14 @@ var ApiRequest = class {
|
|
|
909
931
|
this._jsWapiRequest = this._jsWapiRequest.putFilters(filters);
|
|
910
932
|
return this;
|
|
911
933
|
}
|
|
934
|
+
addAggregatedFilter(name, value) {
|
|
935
|
+
this._jsWapiRequest = this._jsWapiRequest.putAggregatedFilter(name, value);
|
|
936
|
+
return this;
|
|
937
|
+
}
|
|
938
|
+
addAggregatedFilters(filters) {
|
|
939
|
+
this._jsWapiRequest = this._jsWapiRequest.putAggregatedFilters(filters);
|
|
940
|
+
return this;
|
|
941
|
+
}
|
|
912
942
|
addParams(params) {
|
|
913
943
|
for (const name in params) {
|
|
914
944
|
this._jsWapiRequest = this._jsWapiRequest.putParam(name, params[name]);
|