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.EntityV2 = exports.Entity = void 0;
|
19 | var odata_common_1 = require("../odata-common");
|
20 | var selectable_1 = require("./selectable");
|
21 |
|
22 |
|
23 |
|
24 | var Entity = (function (_super) {
|
25 | __extends(Entity, _super);
|
26 | function Entity() {
|
27 | var _this = _super !== null && _super.apply(this, arguments) || this;
|
28 | _this._oDataVersion = 'v2';
|
29 | return _this;
|
30 | }
|
31 | Entity.customFieldSelector = function (fieldName, entityConstructor, isNullable) {
|
32 | if (isNullable === void 0) { isNullable = false; }
|
33 | return new selectable_1.CustomField(fieldName, entityConstructor, isNullable);
|
34 | };
|
35 | return Entity;
|
36 | }(odata_common_1.Entity));
|
37 | exports.Entity = Entity;
|
38 | exports.EntityV2 = Entity;
|
39 |
|
\ | No newline at end of file |