text: "use strict";
  /* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. */
  /* eslint-disable max-classes-per-file */
  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 (b.hasOwnProperty(p)) d[p] = b[p]; };
          return extendStatics(d, b);
      };
      return function (d, b) {
          extendStatics(d, b);
          function __() { this.constructor = d; }
          d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
  })();
  Object.defineProperty(exports, "__esModule", { value: true });
  var complex_type_field_1 = require("./complex-type-field");
  var edm_type_field_1 = require("./edm-type-field");
  /**
   * Represents a property with a binary value.
   *
   * @typeparam EntityT - Type of the entity the field belongs to
   */
  var BinaryFieldBase = /** @class */ (function (_super) {
      __extends(BinaryFieldBase, _super);
      function BinaryFieldBase() {
          return _super !== null && _super.apply(this, arguments) || this;
      }
      return BinaryFieldBase;
  }(edm_type_field_1.EdmTypeField));
  exports.BinaryFieldBase = BinaryFieldBase;
  /**
   * Represents a selectable property with a binary value.
   *
   * @typeparam EntityT - Type of the entity the field belongs to
   */
  var BinaryField = /** @class */ (function (_super) {
      __extends(BinaryField, _super);
      function BinaryField() {
          return _super !== null && _super.apply(this, arguments) || this;
      }
      return BinaryField;
  }(BinaryFieldBase));
  exports.BinaryField = BinaryField;
  /**
   * Represents a complex type property with a binary value.
   *
   * @typeparam EntityT - Type of the entity the field belongs to
   */
  var ComplexTypeBinaryPropertyField = /** @class */ (function (_super) {
      __extends(ComplexTypeBinaryPropertyField, _super);
      /*
       * Union of the two possible constructors.
       */
      function ComplexTypeBinaryPropertyField(fieldName, fieldOf, arg3, arg4) {
          var _this = _super.call(this, fieldName, complex_type_field_1.getEntityConstructor(fieldOf), complex_type_field_1.getEdmType(arg3, arg4)) || this;
          _this.fieldOf = fieldOf;
          return _this;
      }
      /**
       * Path to the field to be used in filter and order by queries. Combines the parent complex type name with the field name.
       *
       * @returns Path to the field to be used in filter and order by queries.
       */
      ComplexTypeBinaryPropertyField.prototype.fieldPath = function () {
          return this.fieldOf instanceof complex_type_field_1.ComplexTypeField ? this.fieldOf.fieldPath() + "/" + this._fieldName : this._fieldName;
      };
      return ComplexTypeBinaryPropertyField;
  }(BinaryFieldBase));
  exports.ComplexTypeBinaryPropertyField = ComplexTypeBinaryPropertyField;
  //# sourceMappingURL=binary-field.js.map