d5-api-initializer 1.8.0 → 1.8.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "d5-api-initializer",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "license": "MIT",
5
5
  "dependencies": {},
6
6
  "main": "publish/cjs/d5-api-initializer.cjs",
@@ -319,6 +319,12 @@ var ApiInvoker = class {
319
319
  set rowsPerPage(amount) {
320
320
  this._jsWapiInvoker = this._jsWapiInvoker.setRowsPerPage(amount);
321
321
  }
322
+ set skipRows(amount) {
323
+ this._jsWapiInvoker = this._jsWapiInvoker.setSkipRows(amount);
324
+ }
325
+ set takeRows(amount) {
326
+ this._jsWapiInvoker = this._jsWapiInvoker.setTakeRows(amount);
327
+ }
322
328
  set page(number) {
323
329
  this._jsWapiInvoker = this._jsWapiInvoker.setPage(number);
324
330
  }
@@ -382,6 +388,14 @@ var ApiInvoker = class {
382
388
  this.rowsPerPage = amount;
383
389
  return this;
384
390
  }
391
+ setSkipRows(amount) {
392
+ this.skipRows = amount;
393
+ return this;
394
+ }
395
+ setTakeRows(amount) {
396
+ this.takeRows = amount;
397
+ return this;
398
+ }
385
399
  setPagesPredict(amount) {
386
400
  this.pagesPredict = amount;
387
401
  return this;
@@ -397,9 +411,6 @@ var ApiInvoker = class {
397
411
  this._jsWapiInvoker = this._jsWapiInvoker.setSrcRequest(srcRequest);
398
412
  return this;
399
413
  }
400
- getSrcRequest() {
401
- throw new Error("not implemented");
402
- }
403
414
  setColumns(columns) {
404
415
  this.columns = columns;
405
416
  return this;
@@ -770,6 +781,12 @@ var ApiRequest = class {
770
781
  get rowsPerPage() {
771
782
  return this._jsWapiRequest.getRowsPerPage();
772
783
  }
784
+ get skipRows() {
785
+ return this._jsWapiRequest.getSkipRows();
786
+ }
787
+ get takeRows() {
788
+ return this._jsWapiRequest.getTakeRows();
789
+ }
773
790
  get sorts() {
774
791
  return this._jsWapiRequest.getSorts();
775
792
  }
@@ -800,6 +817,12 @@ var ApiRequest = class {
800
817
  set rowsPerPage(amount) {
801
818
  this._jsWapiRequest = this._jsWapiRequest.setRowsPerPage(amount);
802
819
  }
820
+ set skipRows(amount) {
821
+ this._jsWapiRequest = this._jsWapiRequest.setSkipRows(amount);
822
+ }
823
+ set takeRows(amount) {
824
+ this._jsWapiRequest = this._jsWapiRequest.setTakeRows(amount);
825
+ }
803
826
  /* -----------------------------Getters----------------------------- */
804
827
  getFilter(filterName) {
805
828
  return this._jsWapiRequest.getFilter(filterName);
@@ -887,6 +910,14 @@ var ApiRequest = class {
887
910
  this.rowsPerPage = amount;
888
911
  return this;
889
912
  }
913
+ setSkipRows(amount) {
914
+ this.skipRows = amount;
915
+ return this;
916
+ }
917
+ setTakeRows(amount) {
918
+ this.takeRows = amount;
919
+ return this;
920
+ }
890
921
  setRequest(request) {
891
922
  if (Array.isArray(request)) {
892
923
  this._jsWapiRequest = this._jsWapiRequest.putRequest(this._objectName, request);
@@ -1133,15 +1164,6 @@ var EngineInitializer = class {
1133
1164
  initTranslation(translations) {
1134
1165
  UserMessages_default.appendDictionary(translations);
1135
1166
  }
1136
- call({
1137
- apiCore,
1138
- apiRequest,
1139
- apiResponse,
1140
- operation,
1141
- meta
1142
- }) {
1143
- return this._operations[operation](apiCore, apiRequest, apiResponse, meta);
1144
- }
1145
1167
  };
1146
1168
 
1147
1169
  // src/classes/ApplicationInitializer.ts
@@ -23,6 +23,8 @@ declare namespace jsWapi {
23
23
  setFilters(filters: any): JSWapiInvoker;
24
24
  setParams(params: any): JSWapiInvoker;
25
25
  setRowsPerPage(number: number): JSWapiInvoker;
26
+ setSkipRows(number: number): JSWapiInvoker;
27
+ setTakeRows(number: number): JSWapiInvoker;
26
28
  setPage(number: number): JSWapiInvoker;
27
29
  setPagesPredict(number: number): JSWapiInvoker;
28
30
  setColumns(columns: string[]): JSWapiInvoker;
@@ -79,6 +81,8 @@ declare namespace jsWapi {
79
81
  newJSWapiInvoker(objectName: string, operName: string): JSWapiInvoker;
80
82
  getFirstRows(): number;
81
83
  getRowsPerPage(): number;
84
+ getSkipRows(): number;
85
+ getTakeRows(): number;
82
86
  getLanguage(): string;
83
87
  pdf(): JSWapiPdf;
84
88
  zip(): JSWapiZip;
@@ -99,6 +103,8 @@ declare namespace jsWapi {
99
103
  setParams(params: any): JSWapiRequest;
100
104
  setPage(number: number): JSWapiRequest;
101
105
  setRowsPerPage(number: number): JSWapiRequest;
106
+ setSkipRows(number: number): JSWapiRequest;
107
+ setTakeRows(number: number): JSWapiRequest;
102
108
  setFirstRows(number: number): JSWapiRequest;
103
109
  setRequest(request: any): JSWapiRequest;
104
110
  putRequest(objectName: string, req: any): JSWapiRequest;
@@ -291,11 +297,17 @@ declare namespace jsWapi {
291
297
  }
292
298
  }
293
299
 
300
+ /**
301
+ * @internal
302
+ */
294
303
  declare class FileLink {
295
304
  private readonly _link;
296
305
  constructor(_link: string);
297
306
  get link(): string;
298
307
  }
308
+ /**
309
+ * @internal
310
+ */
299
311
  declare class FileRequestId {
300
312
  private readonly _id;
301
313
  constructor(_id: string);
@@ -389,6 +401,8 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
389
401
  set filters(filters: IFiltersCollection);
390
402
  set params(params: IMappedCollection);
391
403
  set rowsPerPage(amount: number);
404
+ set skipRows(amount: number);
405
+ set takeRows(amount: number);
392
406
  set page(number: number);
393
407
  set pagesPredict(amount: number);
394
408
  set request(request: IMappedCollection | any[]);
@@ -406,11 +420,12 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
406
420
  setParams(params: IMappedCollection): ApiInvoker;
407
421
  setPage(number: number): ApiInvoker;
408
422
  setRowsPerPage(amount: number): ApiInvoker;
423
+ setSkipRows(amount: number): ApiInvoker;
424
+ setTakeRows(amount: number): ApiInvoker;
409
425
  setPagesPredict(amount: number): ApiInvoker;
410
426
  setRequest(request: IMappedCollection | any[]): ApiInvoker;
411
427
  getRequest(requestName: string): IMappedCollection[];
412
428
  setSrcRequest(srcRequest: IMappedCollection): ApiInvoker;
413
- getSrcRequest(): Record<string, any>;
414
429
  setColumns(columns: string[]): ApiInvoker;
415
430
  setAggregatedColumns(aggregatedColumns: IMappedCollection): ApiInvoker;
416
431
  setNestedColumns(nestedColumns: IMappedCollection): ApiInvoker;
@@ -468,6 +483,8 @@ declare class ApiRequest {
468
483
  get userId(): number;
469
484
  get page(): number;
470
485
  get rowsPerPage(): number;
486
+ get skipRows(): number;
487
+ get takeRows(): number;
471
488
  get sorts(): string[];
472
489
  get lang(): LanguageCode;
473
490
  set columns(columns: string[]);
@@ -478,6 +495,8 @@ declare class ApiRequest {
478
495
  set sorts(sorts: string[]);
479
496
  set page(number: number);
480
497
  set rowsPerPage(amount: number);
498
+ set skipRows(amount: number);
499
+ set takeRows(amount: number);
481
500
  getFilter(filterName: string): any;
482
501
  /**
483
502
  * Вернуть значение фильтра типа "равно".
@@ -510,6 +529,8 @@ declare class ApiRequest {
510
529
  setParams(params: IMappedCollection): ApiRequest;
511
530
  setPage(number: number): ApiRequest;
512
531
  setRowsPerPage(amount: number): ApiRequest;
532
+ setSkipRows(amount: number): ApiRequest;
533
+ setTakeRows(amount: number): ApiRequest;
513
534
  setRequest(request: IMappedCollection | any[]): ApiRequest;
514
535
  setFirstRows(firstRows: number): this;
515
536
  getFirstRows(): number;
@@ -598,7 +619,7 @@ declare class ApiFileInvoker implements IInvoker {
598
619
  protected readonly _objectName: string;
599
620
  constructor(jsWapiInvoker: jsWapi.JSWapiInvoker, params: IParams);
600
621
  get objectName(): string;
601
- setParams(keyValue: string | number, fileFieldName: string): void;
622
+ private setParams;
602
623
  getExcelFileAsJson(): Map<string, any>;
603
624
  getFileAsString(): string;
604
625
  }
@@ -742,13 +763,6 @@ declare class EngineInitializer<MetaParams = Record<string, any>> {
742
763
  * core.t('key', ['test1', 'test2']); // 'some text test1 test2'
743
764
  */
744
765
  initTranslation(translations: Record<LanguageCode, Record<string, string>>): void;
745
- call({ apiCore, apiRequest, apiResponse, operation, meta }: {
746
- apiCore: ApiCore;
747
- apiRequest: ApiRequest;
748
- apiResponse: ApiResponse;
749
- operation: string;
750
- meta: jsWapi.JSWapiMeta<MetaParams>;
751
- }): void;
752
766
  }
753
767
 
754
768
  declare class ApplicationInitializer<MetaParams = undefined> {
@@ -23,6 +23,8 @@ declare namespace jsWapi {
23
23
  setFilters(filters: any): JSWapiInvoker;
24
24
  setParams(params: any): JSWapiInvoker;
25
25
  setRowsPerPage(number: number): JSWapiInvoker;
26
+ setSkipRows(number: number): JSWapiInvoker;
27
+ setTakeRows(number: number): JSWapiInvoker;
26
28
  setPage(number: number): JSWapiInvoker;
27
29
  setPagesPredict(number: number): JSWapiInvoker;
28
30
  setColumns(columns: string[]): JSWapiInvoker;
@@ -79,6 +81,8 @@ declare namespace jsWapi {
79
81
  newJSWapiInvoker(objectName: string, operName: string): JSWapiInvoker;
80
82
  getFirstRows(): number;
81
83
  getRowsPerPage(): number;
84
+ getSkipRows(): number;
85
+ getTakeRows(): number;
82
86
  getLanguage(): string;
83
87
  pdf(): JSWapiPdf;
84
88
  zip(): JSWapiZip;
@@ -99,6 +103,8 @@ declare namespace jsWapi {
99
103
  setParams(params: any): JSWapiRequest;
100
104
  setPage(number: number): JSWapiRequest;
101
105
  setRowsPerPage(number: number): JSWapiRequest;
106
+ setSkipRows(number: number): JSWapiRequest;
107
+ setTakeRows(number: number): JSWapiRequest;
102
108
  setFirstRows(number: number): JSWapiRequest;
103
109
  setRequest(request: any): JSWapiRequest;
104
110
  putRequest(objectName: string, req: any): JSWapiRequest;
@@ -291,11 +297,17 @@ declare namespace jsWapi {
291
297
  }
292
298
  }
293
299
 
300
+ /**
301
+ * @internal
302
+ */
294
303
  declare class FileLink {
295
304
  private readonly _link;
296
305
  constructor(_link: string);
297
306
  get link(): string;
298
307
  }
308
+ /**
309
+ * @internal
310
+ */
299
311
  declare class FileRequestId {
300
312
  private readonly _id;
301
313
  constructor(_id: string);
@@ -389,6 +401,8 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
389
401
  set filters(filters: IFiltersCollection);
390
402
  set params(params: IMappedCollection);
391
403
  set rowsPerPage(amount: number);
404
+ set skipRows(amount: number);
405
+ set takeRows(amount: number);
392
406
  set page(number: number);
393
407
  set pagesPredict(amount: number);
394
408
  set request(request: IMappedCollection | any[]);
@@ -406,11 +420,12 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
406
420
  setParams(params: IMappedCollection): ApiInvoker;
407
421
  setPage(number: number): ApiInvoker;
408
422
  setRowsPerPage(amount: number): ApiInvoker;
423
+ setSkipRows(amount: number): ApiInvoker;
424
+ setTakeRows(amount: number): ApiInvoker;
409
425
  setPagesPredict(amount: number): ApiInvoker;
410
426
  setRequest(request: IMappedCollection | any[]): ApiInvoker;
411
427
  getRequest(requestName: string): IMappedCollection[];
412
428
  setSrcRequest(srcRequest: IMappedCollection): ApiInvoker;
413
- getSrcRequest(): Record<string, any>;
414
429
  setColumns(columns: string[]): ApiInvoker;
415
430
  setAggregatedColumns(aggregatedColumns: IMappedCollection): ApiInvoker;
416
431
  setNestedColumns(nestedColumns: IMappedCollection): ApiInvoker;
@@ -468,6 +483,8 @@ declare class ApiRequest {
468
483
  get userId(): number;
469
484
  get page(): number;
470
485
  get rowsPerPage(): number;
486
+ get skipRows(): number;
487
+ get takeRows(): number;
471
488
  get sorts(): string[];
472
489
  get lang(): LanguageCode;
473
490
  set columns(columns: string[]);
@@ -478,6 +495,8 @@ declare class ApiRequest {
478
495
  set sorts(sorts: string[]);
479
496
  set page(number: number);
480
497
  set rowsPerPage(amount: number);
498
+ set skipRows(amount: number);
499
+ set takeRows(amount: number);
481
500
  getFilter(filterName: string): any;
482
501
  /**
483
502
  * Вернуть значение фильтра типа "равно".
@@ -510,6 +529,8 @@ declare class ApiRequest {
510
529
  setParams(params: IMappedCollection): ApiRequest;
511
530
  setPage(number: number): ApiRequest;
512
531
  setRowsPerPage(amount: number): ApiRequest;
532
+ setSkipRows(amount: number): ApiRequest;
533
+ setTakeRows(amount: number): ApiRequest;
513
534
  setRequest(request: IMappedCollection | any[]): ApiRequest;
514
535
  setFirstRows(firstRows: number): this;
515
536
  getFirstRows(): number;
@@ -598,7 +619,7 @@ declare class ApiFileInvoker implements IInvoker {
598
619
  protected readonly _objectName: string;
599
620
  constructor(jsWapiInvoker: jsWapi.JSWapiInvoker, params: IParams);
600
621
  get objectName(): string;
601
- setParams(keyValue: string | number, fileFieldName: string): void;
622
+ private setParams;
602
623
  getExcelFileAsJson(): Map<string, any>;
603
624
  getFileAsString(): string;
604
625
  }
@@ -742,13 +763,6 @@ declare class EngineInitializer<MetaParams = Record<string, any>> {
742
763
  * core.t('key', ['test1', 'test2']); // 'some text test1 test2'
743
764
  */
744
765
  initTranslation(translations: Record<LanguageCode, Record<string, string>>): void;
745
- call({ apiCore, apiRequest, apiResponse, operation, meta }: {
746
- apiCore: ApiCore;
747
- apiRequest: ApiRequest;
748
- apiResponse: ApiResponse;
749
- operation: string;
750
- meta: jsWapi.JSWapiMeta<MetaParams>;
751
- }): void;
752
766
  }
753
767
 
754
768
  declare class ApplicationInitializer<MetaParams = undefined> {
@@ -23,6 +23,8 @@ declare namespace jsWapi {
23
23
  setFilters(filters: any): JSWapiInvoker;
24
24
  setParams(params: any): JSWapiInvoker;
25
25
  setRowsPerPage(number: number): JSWapiInvoker;
26
+ setSkipRows(number: number): JSWapiInvoker;
27
+ setTakeRows(number: number): JSWapiInvoker;
26
28
  setPage(number: number): JSWapiInvoker;
27
29
  setPagesPredict(number: number): JSWapiInvoker;
28
30
  setColumns(columns: string[]): JSWapiInvoker;
@@ -79,6 +81,8 @@ declare namespace jsWapi {
79
81
  newJSWapiInvoker(objectName: string, operName: string): JSWapiInvoker;
80
82
  getFirstRows(): number;
81
83
  getRowsPerPage(): number;
84
+ getSkipRows(): number;
85
+ getTakeRows(): number;
82
86
  getLanguage(): string;
83
87
  pdf(): JSWapiPdf;
84
88
  zip(): JSWapiZip;
@@ -99,6 +103,8 @@ declare namespace jsWapi {
99
103
  setParams(params: any): JSWapiRequest;
100
104
  setPage(number: number): JSWapiRequest;
101
105
  setRowsPerPage(number: number): JSWapiRequest;
106
+ setSkipRows(number: number): JSWapiRequest;
107
+ setTakeRows(number: number): JSWapiRequest;
102
108
  setFirstRows(number: number): JSWapiRequest;
103
109
  setRequest(request: any): JSWapiRequest;
104
110
  putRequest(objectName: string, req: any): JSWapiRequest;
@@ -291,11 +297,17 @@ declare namespace jsWapi {
291
297
  }
292
298
  }
293
299
 
300
+ /**
301
+ * @internal
302
+ */
294
303
  declare class FileLink {
295
304
  private readonly _link;
296
305
  constructor(_link: string);
297
306
  get link(): string;
298
307
  }
308
+ /**
309
+ * @internal
310
+ */
299
311
  declare class FileRequestId {
300
312
  private readonly _id;
301
313
  constructor(_id: string);
@@ -389,6 +401,8 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
389
401
  set filters(filters: IFiltersCollection);
390
402
  set params(params: IMappedCollection);
391
403
  set rowsPerPage(amount: number);
404
+ set skipRows(amount: number);
405
+ set takeRows(amount: number);
392
406
  set page(number: number);
393
407
  set pagesPredict(amount: number);
394
408
  set request(request: IMappedCollection | any[]);
@@ -406,11 +420,12 @@ declare class ApiInvoker implements IInvoker$1<ApiInvoker> {
406
420
  setParams(params: IMappedCollection): ApiInvoker;
407
421
  setPage(number: number): ApiInvoker;
408
422
  setRowsPerPage(amount: number): ApiInvoker;
423
+ setSkipRows(amount: number): ApiInvoker;
424
+ setTakeRows(amount: number): ApiInvoker;
409
425
  setPagesPredict(amount: number): ApiInvoker;
410
426
  setRequest(request: IMappedCollection | any[]): ApiInvoker;
411
427
  getRequest(requestName: string): IMappedCollection[];
412
428
  setSrcRequest(srcRequest: IMappedCollection): ApiInvoker;
413
- getSrcRequest(): Record<string, any>;
414
429
  setColumns(columns: string[]): ApiInvoker;
415
430
  setAggregatedColumns(aggregatedColumns: IMappedCollection): ApiInvoker;
416
431
  setNestedColumns(nestedColumns: IMappedCollection): ApiInvoker;
@@ -468,6 +483,8 @@ declare class ApiRequest {
468
483
  get userId(): number;
469
484
  get page(): number;
470
485
  get rowsPerPage(): number;
486
+ get skipRows(): number;
487
+ get takeRows(): number;
471
488
  get sorts(): string[];
472
489
  get lang(): LanguageCode;
473
490
  set columns(columns: string[]);
@@ -478,6 +495,8 @@ declare class ApiRequest {
478
495
  set sorts(sorts: string[]);
479
496
  set page(number: number);
480
497
  set rowsPerPage(amount: number);
498
+ set skipRows(amount: number);
499
+ set takeRows(amount: number);
481
500
  getFilter(filterName: string): any;
482
501
  /**
483
502
  * Вернуть значение фильтра типа "равно".
@@ -510,6 +529,8 @@ declare class ApiRequest {
510
529
  setParams(params: IMappedCollection): ApiRequest;
511
530
  setPage(number: number): ApiRequest;
512
531
  setRowsPerPage(amount: number): ApiRequest;
532
+ setSkipRows(amount: number): ApiRequest;
533
+ setTakeRows(amount: number): ApiRequest;
513
534
  setRequest(request: IMappedCollection | any[]): ApiRequest;
514
535
  setFirstRows(firstRows: number): this;
515
536
  getFirstRows(): number;
@@ -598,7 +619,7 @@ declare class ApiFileInvoker implements IInvoker {
598
619
  protected readonly _objectName: string;
599
620
  constructor(jsWapiInvoker: jsWapi.JSWapiInvoker, params: IParams);
600
621
  get objectName(): string;
601
- setParams(keyValue: string | number, fileFieldName: string): void;
622
+ private setParams;
602
623
  getExcelFileAsJson(): Map<string, any>;
603
624
  getFileAsString(): string;
604
625
  }
@@ -742,13 +763,6 @@ declare class EngineInitializer<MetaParams = Record<string, any>> {
742
763
  * core.t('key', ['test1', 'test2']); // 'some text test1 test2'
743
764
  */
744
765
  initTranslation(translations: Record<LanguageCode, Record<string, string>>): void;
745
- call({ apiCore, apiRequest, apiResponse, operation, meta }: {
746
- apiCore: ApiCore;
747
- apiRequest: ApiRequest;
748
- apiResponse: ApiResponse;
749
- operation: string;
750
- meta: jsWapi.JSWapiMeta<MetaParams>;
751
- }): void;
752
766
  }
753
767
 
754
768
  declare class ApplicationInitializer<MetaParams = undefined> {
@@ -280,6 +280,12 @@ var ApiInvoker = class {
280
280
  set rowsPerPage(amount) {
281
281
  this._jsWapiInvoker = this._jsWapiInvoker.setRowsPerPage(amount);
282
282
  }
283
+ set skipRows(amount) {
284
+ this._jsWapiInvoker = this._jsWapiInvoker.setSkipRows(amount);
285
+ }
286
+ set takeRows(amount) {
287
+ this._jsWapiInvoker = this._jsWapiInvoker.setTakeRows(amount);
288
+ }
283
289
  set page(number) {
284
290
  this._jsWapiInvoker = this._jsWapiInvoker.setPage(number);
285
291
  }
@@ -343,6 +349,14 @@ var ApiInvoker = class {
343
349
  this.rowsPerPage = amount;
344
350
  return this;
345
351
  }
352
+ setSkipRows(amount) {
353
+ this.skipRows = amount;
354
+ return this;
355
+ }
356
+ setTakeRows(amount) {
357
+ this.takeRows = amount;
358
+ return this;
359
+ }
346
360
  setPagesPredict(amount) {
347
361
  this.pagesPredict = amount;
348
362
  return this;
@@ -358,9 +372,6 @@ var ApiInvoker = class {
358
372
  this._jsWapiInvoker = this._jsWapiInvoker.setSrcRequest(srcRequest);
359
373
  return this;
360
374
  }
361
- getSrcRequest() {
362
- throw new Error("not implemented");
363
- }
364
375
  setColumns(columns) {
365
376
  this.columns = columns;
366
377
  return this;
@@ -731,6 +742,12 @@ var ApiRequest = class {
731
742
  get rowsPerPage() {
732
743
  return this._jsWapiRequest.getRowsPerPage();
733
744
  }
745
+ get skipRows() {
746
+ return this._jsWapiRequest.getSkipRows();
747
+ }
748
+ get takeRows() {
749
+ return this._jsWapiRequest.getTakeRows();
750
+ }
734
751
  get sorts() {
735
752
  return this._jsWapiRequest.getSorts();
736
753
  }
@@ -761,6 +778,12 @@ var ApiRequest = class {
761
778
  set rowsPerPage(amount) {
762
779
  this._jsWapiRequest = this._jsWapiRequest.setRowsPerPage(amount);
763
780
  }
781
+ set skipRows(amount) {
782
+ this._jsWapiRequest = this._jsWapiRequest.setSkipRows(amount);
783
+ }
784
+ set takeRows(amount) {
785
+ this._jsWapiRequest = this._jsWapiRequest.setTakeRows(amount);
786
+ }
764
787
  /* -----------------------------Getters----------------------------- */
765
788
  getFilter(filterName) {
766
789
  return this._jsWapiRequest.getFilter(filterName);
@@ -848,6 +871,14 @@ var ApiRequest = class {
848
871
  this.rowsPerPage = amount;
849
872
  return this;
850
873
  }
874
+ setSkipRows(amount) {
875
+ this.skipRows = amount;
876
+ return this;
877
+ }
878
+ setTakeRows(amount) {
879
+ this.takeRows = amount;
880
+ return this;
881
+ }
851
882
  setRequest(request) {
852
883
  if (Array.isArray(request)) {
853
884
  this._jsWapiRequest = this._jsWapiRequest.putRequest(this._objectName, request);
@@ -1094,15 +1125,6 @@ var EngineInitializer = class {
1094
1125
  initTranslation(translations) {
1095
1126
  UserMessages_default.appendDictionary(translations);
1096
1127
  }
1097
- call({
1098
- apiCore,
1099
- apiRequest,
1100
- apiResponse,
1101
- operation,
1102
- meta
1103
- }) {
1104
- return this._operations[operation](apiCore, apiRequest, apiResponse, meta);
1105
- }
1106
1128
  };
1107
1129
 
1108
1130
  // src/classes/ApplicationInitializer.ts
@@ -280,6 +280,12 @@ var ApiInvoker = class {
280
280
  set rowsPerPage(amount) {
281
281
  this._jsWapiInvoker = this._jsWapiInvoker.setRowsPerPage(amount);
282
282
  }
283
+ set skipRows(amount) {
284
+ this._jsWapiInvoker = this._jsWapiInvoker.setSkipRows(amount);
285
+ }
286
+ set takeRows(amount) {
287
+ this._jsWapiInvoker = this._jsWapiInvoker.setTakeRows(amount);
288
+ }
283
289
  set page(number) {
284
290
  this._jsWapiInvoker = this._jsWapiInvoker.setPage(number);
285
291
  }
@@ -343,6 +349,14 @@ var ApiInvoker = class {
343
349
  this.rowsPerPage = amount;
344
350
  return this;
345
351
  }
352
+ setSkipRows(amount) {
353
+ this.skipRows = amount;
354
+ return this;
355
+ }
356
+ setTakeRows(amount) {
357
+ this.takeRows = amount;
358
+ return this;
359
+ }
346
360
  setPagesPredict(amount) {
347
361
  this.pagesPredict = amount;
348
362
  return this;
@@ -358,9 +372,6 @@ var ApiInvoker = class {
358
372
  this._jsWapiInvoker = this._jsWapiInvoker.setSrcRequest(srcRequest);
359
373
  return this;
360
374
  }
361
- getSrcRequest() {
362
- throw new Error("not implemented");
363
- }
364
375
  setColumns(columns) {
365
376
  this.columns = columns;
366
377
  return this;
@@ -731,6 +742,12 @@ var ApiRequest = class {
731
742
  get rowsPerPage() {
732
743
  return this._jsWapiRequest.getRowsPerPage();
733
744
  }
745
+ get skipRows() {
746
+ return this._jsWapiRequest.getSkipRows();
747
+ }
748
+ get takeRows() {
749
+ return this._jsWapiRequest.getTakeRows();
750
+ }
734
751
  get sorts() {
735
752
  return this._jsWapiRequest.getSorts();
736
753
  }
@@ -761,6 +778,12 @@ var ApiRequest = class {
761
778
  set rowsPerPage(amount) {
762
779
  this._jsWapiRequest = this._jsWapiRequest.setRowsPerPage(amount);
763
780
  }
781
+ set skipRows(amount) {
782
+ this._jsWapiRequest = this._jsWapiRequest.setSkipRows(amount);
783
+ }
784
+ set takeRows(amount) {
785
+ this._jsWapiRequest = this._jsWapiRequest.setTakeRows(amount);
786
+ }
764
787
  /* -----------------------------Getters----------------------------- */
765
788
  getFilter(filterName) {
766
789
  return this._jsWapiRequest.getFilter(filterName);
@@ -848,6 +871,14 @@ var ApiRequest = class {
848
871
  this.rowsPerPage = amount;
849
872
  return this;
850
873
  }
874
+ setSkipRows(amount) {
875
+ this.skipRows = amount;
876
+ return this;
877
+ }
878
+ setTakeRows(amount) {
879
+ this.takeRows = amount;
880
+ return this;
881
+ }
851
882
  setRequest(request) {
852
883
  if (Array.isArray(request)) {
853
884
  this._jsWapiRequest = this._jsWapiRequest.putRequest(this._objectName, request);
@@ -1094,15 +1125,6 @@ var EngineInitializer = class {
1094
1125
  initTranslation(translations) {
1095
1126
  UserMessages_default.appendDictionary(translations);
1096
1127
  }
1097
- call({
1098
- apiCore,
1099
- apiRequest,
1100
- apiResponse,
1101
- operation,
1102
- meta
1103
- }) {
1104
- return this._operations[operation](apiCore, apiRequest, apiResponse, meta);
1105
- }
1106
1128
  };
1107
1129
 
1108
1130
  // src/classes/ApplicationInitializer.ts