UNPKG

@sap-cloud-sdk/core

Version:
39 lines 1.67 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.EntityV4 = exports.Entity = void 0; var odata_common_1 = require("../odata-common"); var selectable_1 = require("./selectable"); /** * Super class for all representations of OData v4 entity types. */ var Entity = /** @class */ (function (_super) { __extends(Entity, _super); function Entity() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._oDataVersion = 'v4'; return _this; } Entity.customFieldSelector = function (fieldName, entityConstructor, isNullable) { if (isNullable === void 0) { isNullable = false; } return new selectable_1.CustomField(fieldName, entityConstructor, isNullable); }; return Entity; }(odata_common_1.Entity)); exports.Entity = Entity; exports.EntityV4 = Entity; //# sourceMappingURL=entity.js.map