UNPKG

1.84 kBJavaScriptView Raw
1"use strict";
2var __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})();
17Object.defineProperty(exports, "__esModule", { value: true });
18exports.CustomFieldV4 = exports.CustomField = void 0;
19var odata_common_1 = require("../../odata-common");
20var CustomField = /** @class */ (function (_super) {
21 __extends(CustomField, _super);
22 function CustomField() {
23 return _super !== null && _super.apply(this, arguments) || this;
24 }
25 CustomField.prototype.edmDate = function () {
26 return this.fieldBuilder.buildEdmTypeField(this._fieldName, 'Edm.Date', this._fieldOptions.isNullable);
27 };
28 CustomField.prototype.edmDuration = function () {
29 return this.fieldBuilder.buildEdmTypeField(this._fieldName, 'Edm.Duration', this._fieldOptions.isNullable);
30 };
31 CustomField.prototype.edmTimeOfDay = function () {
32 return this.fieldBuilder.buildEdmTypeField(this._fieldName, 'Edm.TimeOfDay', this._fieldOptions.isNullable);
33 };
34 return CustomField;
35}(odata_common_1.CustomField));
36exports.CustomField = CustomField;
37exports.CustomFieldV4 = CustomField;
38//# sourceMappingURL=custom-field.js.map
\No newline at end of file