d5-api-initializer 1.7.5 → 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 +2 -2
- package/publish/cjs/d5-api-initializer.cjs +30 -0
- package/publish/d5-api-initializer.d.cts +16 -0
- package/publish/d5-api-initializer.d.mts +16 -0
- package/publish/d5-api-initializer.d.ts +16 -0
- package/publish/d5-api-initializer.legacy-esm.js +30 -0
- package/publish/d5-api-initializer.mjs +30 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "d5-api-initializer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {},
|
|
6
6
|
"main": "publish/cjs/d5-api-initializer.cjs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/node": "20.11.16",
|
|
43
43
|
"archiver": "6.0.1",
|
|
44
44
|
"babel-loader": "10.0.0",
|
|
45
|
-
"copy-webpack-plugin": "
|
|
45
|
+
"copy-webpack-plugin": "11.0.0",
|
|
46
46
|
"dotenv": "16.4.7",
|
|
47
47
|
"eslint": "7.19.0",
|
|
48
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]);
|
|
@@ -31,6 +31,8 @@ declare namespace jsWapi {
|
|
|
31
31
|
addSorts(sorts: string[]): JSWapiInvoker;
|
|
32
32
|
setAggregatedColumns(columns: any): JSWapiInvoker;
|
|
33
33
|
putAggregatedColumns(columns: any): JSWapiInvoker;
|
|
34
|
+
putAggregatedFilter(name: string, value: any): JSWapiInvoker;
|
|
35
|
+
putAggregatedFilters(filters: IFiltersCollection): JSWapiInvoker;
|
|
34
36
|
setNestedColumns(columns: any): JSWapiInvoker;
|
|
35
37
|
putNestedColumns(columns: any): JSWapiInvoker;
|
|
36
38
|
putFilters(filters: IFiltersCollection): JSWapiInvoker;
|
|
@@ -101,6 +103,12 @@ declare namespace jsWapi {
|
|
|
101
103
|
setRequest(request: any): JSWapiRequest;
|
|
102
104
|
putRequest(objectName: string, req: any): JSWapiRequest;
|
|
103
105
|
setHierarchy(parentColumn: string, requestKind?: number): JSWapiRequest;
|
|
106
|
+
getAggregatedFilter(name: string): any;
|
|
107
|
+
getAggregatedFilters(): any;
|
|
108
|
+
putAggregatedFilter(name: string, value: any): any;
|
|
109
|
+
putAggregatedFilters(filters: any): any;
|
|
110
|
+
removeAggregatedFilter(name: string): any;
|
|
111
|
+
removeAggregatedFilters(names: string[]): any;
|
|
104
112
|
};
|
|
105
113
|
type JSWapiResponse = {
|
|
106
114
|
getResponse(): {
|
|
@@ -414,6 +422,8 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
|
|
|
414
422
|
addAggregatedColumns(aggregatedColumns: IMappedCollection): ApiInvoker;
|
|
415
423
|
addNestedColumns(nestedColumns: IMappedCollection): ApiInvoker;
|
|
416
424
|
addFilters(filters: IFiltersCollection): ApiInvoker;
|
|
425
|
+
addAggregatedFilter(name: string, value: any): ApiInvoker;
|
|
426
|
+
addAggregatedFilters(filters: IFiltersCollection): ApiInvoker;
|
|
417
427
|
addSorts(sorts: string[]): ApiInvoker;
|
|
418
428
|
addFile(fileID: string, fileStream: any): ApiInvoker;
|
|
419
429
|
addRequestRow(data: Record<string, any>): ApiInvoker;
|
|
@@ -491,6 +501,10 @@ declare class ApiRequest {
|
|
|
491
501
|
setColumns(columns: string[]): this;
|
|
492
502
|
setNestedColumns(nestedColumns: IMappedCollection): this;
|
|
493
503
|
setAggregatedColumns(aggregatedColumns: IMappedCollection): this;
|
|
504
|
+
getAggregatedFilter(name: string): any;
|
|
505
|
+
getAggregatedFilters(): any;
|
|
506
|
+
removeAggregatedFilter(name: string): this;
|
|
507
|
+
removeAggregatedFilters(names: string[]): this;
|
|
494
508
|
setFilters(filters: IFiltersCollection): ApiRequest;
|
|
495
509
|
setSorts(sorts: string[]): this;
|
|
496
510
|
setParams(params: IMappedCollection): ApiRequest;
|
|
@@ -513,6 +527,8 @@ declare class ApiRequest {
|
|
|
513
527
|
*/
|
|
514
528
|
addNestedColumns(columns: IMappedCollection): ApiRequest;
|
|
515
529
|
addFilters(filters: IFiltersCollection): ApiRequest;
|
|
530
|
+
addAggregatedFilter(name: string, value: any): this;
|
|
531
|
+
addAggregatedFilters(filters: IFiltersCollection): this;
|
|
516
532
|
addParams(params: IMappedCollection): ApiRequest;
|
|
517
533
|
removeSorts(sortsNames: string[]): ApiRequest;
|
|
518
534
|
removeColumns(columnsNames: string[]): ApiRequest;
|
|
@@ -31,6 +31,8 @@ declare namespace jsWapi {
|
|
|
31
31
|
addSorts(sorts: string[]): JSWapiInvoker;
|
|
32
32
|
setAggregatedColumns(columns: any): JSWapiInvoker;
|
|
33
33
|
putAggregatedColumns(columns: any): JSWapiInvoker;
|
|
34
|
+
putAggregatedFilter(name: string, value: any): JSWapiInvoker;
|
|
35
|
+
putAggregatedFilters(filters: IFiltersCollection): JSWapiInvoker;
|
|
34
36
|
setNestedColumns(columns: any): JSWapiInvoker;
|
|
35
37
|
putNestedColumns(columns: any): JSWapiInvoker;
|
|
36
38
|
putFilters(filters: IFiltersCollection): JSWapiInvoker;
|
|
@@ -101,6 +103,12 @@ declare namespace jsWapi {
|
|
|
101
103
|
setRequest(request: any): JSWapiRequest;
|
|
102
104
|
putRequest(objectName: string, req: any): JSWapiRequest;
|
|
103
105
|
setHierarchy(parentColumn: string, requestKind?: number): JSWapiRequest;
|
|
106
|
+
getAggregatedFilter(name: string): any;
|
|
107
|
+
getAggregatedFilters(): any;
|
|
108
|
+
putAggregatedFilter(name: string, value: any): any;
|
|
109
|
+
putAggregatedFilters(filters: any): any;
|
|
110
|
+
removeAggregatedFilter(name: string): any;
|
|
111
|
+
removeAggregatedFilters(names: string[]): any;
|
|
104
112
|
};
|
|
105
113
|
type JSWapiResponse = {
|
|
106
114
|
getResponse(): {
|
|
@@ -414,6 +422,8 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
|
|
|
414
422
|
addAggregatedColumns(aggregatedColumns: IMappedCollection): ApiInvoker;
|
|
415
423
|
addNestedColumns(nestedColumns: IMappedCollection): ApiInvoker;
|
|
416
424
|
addFilters(filters: IFiltersCollection): ApiInvoker;
|
|
425
|
+
addAggregatedFilter(name: string, value: any): ApiInvoker;
|
|
426
|
+
addAggregatedFilters(filters: IFiltersCollection): ApiInvoker;
|
|
417
427
|
addSorts(sorts: string[]): ApiInvoker;
|
|
418
428
|
addFile(fileID: string, fileStream: any): ApiInvoker;
|
|
419
429
|
addRequestRow(data: Record<string, any>): ApiInvoker;
|
|
@@ -491,6 +501,10 @@ declare class ApiRequest {
|
|
|
491
501
|
setColumns(columns: string[]): this;
|
|
492
502
|
setNestedColumns(nestedColumns: IMappedCollection): this;
|
|
493
503
|
setAggregatedColumns(aggregatedColumns: IMappedCollection): this;
|
|
504
|
+
getAggregatedFilter(name: string): any;
|
|
505
|
+
getAggregatedFilters(): any;
|
|
506
|
+
removeAggregatedFilter(name: string): this;
|
|
507
|
+
removeAggregatedFilters(names: string[]): this;
|
|
494
508
|
setFilters(filters: IFiltersCollection): ApiRequest;
|
|
495
509
|
setSorts(sorts: string[]): this;
|
|
496
510
|
setParams(params: IMappedCollection): ApiRequest;
|
|
@@ -513,6 +527,8 @@ declare class ApiRequest {
|
|
|
513
527
|
*/
|
|
514
528
|
addNestedColumns(columns: IMappedCollection): ApiRequest;
|
|
515
529
|
addFilters(filters: IFiltersCollection): ApiRequest;
|
|
530
|
+
addAggregatedFilter(name: string, value: any): this;
|
|
531
|
+
addAggregatedFilters(filters: IFiltersCollection): this;
|
|
516
532
|
addParams(params: IMappedCollection): ApiRequest;
|
|
517
533
|
removeSorts(sortsNames: string[]): ApiRequest;
|
|
518
534
|
removeColumns(columnsNames: string[]): ApiRequest;
|
|
@@ -31,6 +31,8 @@ declare namespace jsWapi {
|
|
|
31
31
|
addSorts(sorts: string[]): JSWapiInvoker;
|
|
32
32
|
setAggregatedColumns(columns: any): JSWapiInvoker;
|
|
33
33
|
putAggregatedColumns(columns: any): JSWapiInvoker;
|
|
34
|
+
putAggregatedFilter(name: string, value: any): JSWapiInvoker;
|
|
35
|
+
putAggregatedFilters(filters: IFiltersCollection): JSWapiInvoker;
|
|
34
36
|
setNestedColumns(columns: any): JSWapiInvoker;
|
|
35
37
|
putNestedColumns(columns: any): JSWapiInvoker;
|
|
36
38
|
putFilters(filters: IFiltersCollection): JSWapiInvoker;
|
|
@@ -101,6 +103,12 @@ declare namespace jsWapi {
|
|
|
101
103
|
setRequest(request: any): JSWapiRequest;
|
|
102
104
|
putRequest(objectName: string, req: any): JSWapiRequest;
|
|
103
105
|
setHierarchy(parentColumn: string, requestKind?: number): JSWapiRequest;
|
|
106
|
+
getAggregatedFilter(name: string): any;
|
|
107
|
+
getAggregatedFilters(): any;
|
|
108
|
+
putAggregatedFilter(name: string, value: any): any;
|
|
109
|
+
putAggregatedFilters(filters: any): any;
|
|
110
|
+
removeAggregatedFilter(name: string): any;
|
|
111
|
+
removeAggregatedFilters(names: string[]): any;
|
|
104
112
|
};
|
|
105
113
|
type JSWapiResponse = {
|
|
106
114
|
getResponse(): {
|
|
@@ -414,6 +422,8 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
|
|
|
414
422
|
addAggregatedColumns(aggregatedColumns: IMappedCollection): ApiInvoker;
|
|
415
423
|
addNestedColumns(nestedColumns: IMappedCollection): ApiInvoker;
|
|
416
424
|
addFilters(filters: IFiltersCollection): ApiInvoker;
|
|
425
|
+
addAggregatedFilter(name: string, value: any): ApiInvoker;
|
|
426
|
+
addAggregatedFilters(filters: IFiltersCollection): ApiInvoker;
|
|
417
427
|
addSorts(sorts: string[]): ApiInvoker;
|
|
418
428
|
addFile(fileID: string, fileStream: any): ApiInvoker;
|
|
419
429
|
addRequestRow(data: Record<string, any>): ApiInvoker;
|
|
@@ -491,6 +501,10 @@ declare class ApiRequest {
|
|
|
491
501
|
setColumns(columns: string[]): this;
|
|
492
502
|
setNestedColumns(nestedColumns: IMappedCollection): this;
|
|
493
503
|
setAggregatedColumns(aggregatedColumns: IMappedCollection): this;
|
|
504
|
+
getAggregatedFilter(name: string): any;
|
|
505
|
+
getAggregatedFilters(): any;
|
|
506
|
+
removeAggregatedFilter(name: string): this;
|
|
507
|
+
removeAggregatedFilters(names: string[]): this;
|
|
494
508
|
setFilters(filters: IFiltersCollection): ApiRequest;
|
|
495
509
|
setSorts(sorts: string[]): this;
|
|
496
510
|
setParams(params: IMappedCollection): ApiRequest;
|
|
@@ -513,6 +527,8 @@ declare class ApiRequest {
|
|
|
513
527
|
*/
|
|
514
528
|
addNestedColumns(columns: IMappedCollection): ApiRequest;
|
|
515
529
|
addFilters(filters: IFiltersCollection): ApiRequest;
|
|
530
|
+
addAggregatedFilter(name: string, value: any): this;
|
|
531
|
+
addAggregatedFilters(filters: IFiltersCollection): this;
|
|
516
532
|
addParams(params: IMappedCollection): ApiRequest;
|
|
517
533
|
removeSorts(sortsNames: string[]): ApiRequest;
|
|
518
534
|
removeColumns(columnsNames: string[]): ApiRequest;
|
|
@@ -405,6 +405,14 @@ var ApiInvoker = class {
|
|
|
405
405
|
this._jsWapiInvoker = this._jsWapiInvoker.putFilters(filters);
|
|
406
406
|
return this;
|
|
407
407
|
}
|
|
408
|
+
addAggregatedFilter(name, value) {
|
|
409
|
+
this._jsWapiInvoker = this._jsWapiInvoker.putAggregatedFilter(name, value);
|
|
410
|
+
return this;
|
|
411
|
+
}
|
|
412
|
+
addAggregatedFilters(filters) {
|
|
413
|
+
this._jsWapiInvoker = this._jsWapiInvoker.putAggregatedFilters(filters);
|
|
414
|
+
return this;
|
|
415
|
+
}
|
|
408
416
|
addSorts(sorts) {
|
|
409
417
|
this._jsWapiInvoker = this._jsWapiInvoker.addSorts(sorts);
|
|
410
418
|
return this;
|
|
@@ -806,6 +814,20 @@ var ApiRequest = class {
|
|
|
806
814
|
this.aggregatedColumns = aggregatedColumns;
|
|
807
815
|
return this;
|
|
808
816
|
}
|
|
817
|
+
getAggregatedFilter(name) {
|
|
818
|
+
return this._jsWapiRequest.getAggregatedFilter(name);
|
|
819
|
+
}
|
|
820
|
+
getAggregatedFilters() {
|
|
821
|
+
return this._jsWapiRequest.getAggregatedFilters();
|
|
822
|
+
}
|
|
823
|
+
removeAggregatedFilter(name) {
|
|
824
|
+
this._jsWapiRequest = this._jsWapiRequest.removeAggregatedFilter(name);
|
|
825
|
+
return this;
|
|
826
|
+
}
|
|
827
|
+
removeAggregatedFilters(names) {
|
|
828
|
+
this._jsWapiRequest = this._jsWapiRequest.removeAggregatedFilters(names);
|
|
829
|
+
return this;
|
|
830
|
+
}
|
|
809
831
|
setFilters(filters) {
|
|
810
832
|
this.filters = filters;
|
|
811
833
|
return this;
|
|
@@ -870,6 +892,14 @@ var ApiRequest = class {
|
|
|
870
892
|
this._jsWapiRequest = this._jsWapiRequest.putFilters(filters);
|
|
871
893
|
return this;
|
|
872
894
|
}
|
|
895
|
+
addAggregatedFilter(name, value) {
|
|
896
|
+
this._jsWapiRequest = this._jsWapiRequest.putAggregatedFilter(name, value);
|
|
897
|
+
return this;
|
|
898
|
+
}
|
|
899
|
+
addAggregatedFilters(filters) {
|
|
900
|
+
this._jsWapiRequest = this._jsWapiRequest.putAggregatedFilters(filters);
|
|
901
|
+
return this;
|
|
902
|
+
}
|
|
873
903
|
addParams(params) {
|
|
874
904
|
for (const name in params) {
|
|
875
905
|
this._jsWapiRequest = this._jsWapiRequest.putParam(name, params[name]);
|
|
@@ -405,6 +405,14 @@ var ApiInvoker = class {
|
|
|
405
405
|
this._jsWapiInvoker = this._jsWapiInvoker.putFilters(filters);
|
|
406
406
|
return this;
|
|
407
407
|
}
|
|
408
|
+
addAggregatedFilter(name, value) {
|
|
409
|
+
this._jsWapiInvoker = this._jsWapiInvoker.putAggregatedFilter(name, value);
|
|
410
|
+
return this;
|
|
411
|
+
}
|
|
412
|
+
addAggregatedFilters(filters) {
|
|
413
|
+
this._jsWapiInvoker = this._jsWapiInvoker.putAggregatedFilters(filters);
|
|
414
|
+
return this;
|
|
415
|
+
}
|
|
408
416
|
addSorts(sorts) {
|
|
409
417
|
this._jsWapiInvoker = this._jsWapiInvoker.addSorts(sorts);
|
|
410
418
|
return this;
|
|
@@ -806,6 +814,20 @@ var ApiRequest = class {
|
|
|
806
814
|
this.aggregatedColumns = aggregatedColumns;
|
|
807
815
|
return this;
|
|
808
816
|
}
|
|
817
|
+
getAggregatedFilter(name) {
|
|
818
|
+
return this._jsWapiRequest.getAggregatedFilter(name);
|
|
819
|
+
}
|
|
820
|
+
getAggregatedFilters() {
|
|
821
|
+
return this._jsWapiRequest.getAggregatedFilters();
|
|
822
|
+
}
|
|
823
|
+
removeAggregatedFilter(name) {
|
|
824
|
+
this._jsWapiRequest = this._jsWapiRequest.removeAggregatedFilter(name);
|
|
825
|
+
return this;
|
|
826
|
+
}
|
|
827
|
+
removeAggregatedFilters(names) {
|
|
828
|
+
this._jsWapiRequest = this._jsWapiRequest.removeAggregatedFilters(names);
|
|
829
|
+
return this;
|
|
830
|
+
}
|
|
809
831
|
setFilters(filters) {
|
|
810
832
|
this.filters = filters;
|
|
811
833
|
return this;
|
|
@@ -870,6 +892,14 @@ var ApiRequest = class {
|
|
|
870
892
|
this._jsWapiRequest = this._jsWapiRequest.putFilters(filters);
|
|
871
893
|
return this;
|
|
872
894
|
}
|
|
895
|
+
addAggregatedFilter(name, value) {
|
|
896
|
+
this._jsWapiRequest = this._jsWapiRequest.putAggregatedFilter(name, value);
|
|
897
|
+
return this;
|
|
898
|
+
}
|
|
899
|
+
addAggregatedFilters(filters) {
|
|
900
|
+
this._jsWapiRequest = this._jsWapiRequest.putAggregatedFilters(filters);
|
|
901
|
+
return this;
|
|
902
|
+
}
|
|
873
903
|
addParams(params) {
|
|
874
904
|
for (const name in params) {
|
|
875
905
|
this._jsWapiRequest = this._jsWapiRequest.putParam(name, params[name]);
|