1 | "use strict";
|
2 | var __extends = (this && this.__extends) || (function () {
|
3 | var extendStatics = function (d, b) {
|
4 | extendStatics = Object.setPrototypeOf ||
|
5 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6 | function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7 | return extendStatics(d, b);
|
8 | };
|
9 | return function (d, b) {
|
10 | if (typeof b !== "function" && b !== null)
|
11 | throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12 | extendStatics(d, b);
|
13 | function __() { this.constructor = d; }
|
14 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15 | };
|
16 | })();
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | exports.GetAllRequestBuilderV2 = exports.GetAllRequestBuilder = void 0;
|
19 | var util_1 = require("@sap-cloud-sdk/util");
|
20 | var odata_common_1 = require("../../odata-common");
|
21 | var entity_deserializer_1 = require("../entity-deserializer");
|
22 | var uri_conversion_1 = require("../uri-conversion");
|
23 | var response_data_accessor_1 = require("./response-data-accessor");
|
24 | var GetAllRequestBuilder = (function (_super) {
|
25 | __extends(GetAllRequestBuilder, _super);
|
26 | |
27 |
|
28 |
|
29 |
|
30 | function GetAllRequestBuilder(entityConstructor) {
|
31 | return _super.call(this, entityConstructor, new odata_common_1.ODataGetAllRequestConfig(entityConstructor, uri_conversion_1.oDataUri), entity_deserializer_1.entityDeserializer, response_data_accessor_1.responseDataAccessor) || this;
|
32 | }
|
33 | GetAllRequestBuilder.prototype.filter = function (first) {
|
34 | var rest = [];
|
35 | for (var _i = 1; _i < arguments.length; _i++) {
|
36 | rest[_i - 1] = arguments[_i];
|
37 | }
|
38 | this.requestConfig.filter = odata_common_1.and(util_1.variadicArgumentToArray(first, rest));
|
39 | return this;
|
40 | };
|
41 | return GetAllRequestBuilder;
|
42 | }(odata_common_1.GetAllRequestBuilder));
|
43 | exports.GetAllRequestBuilder = GetAllRequestBuilder;
|
44 | exports.GetAllRequestBuilderV2 = GetAllRequestBuilder;
|
45 |
|
\ | No newline at end of file |