text: "use strict";
  /* Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. */
  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 index_1 = require("./index");
  var ODataBatchConfig = /** @class */ (function (_super) {
      __extends(ODataBatchConfig, _super);
      /**
       * Creates an instance of ODataBatchConfig.
       *
       * @param defaultServicePath - The default OData service path
       * @param batchId - The batch id for building the header and the payload.
       */
      function ODataBatchConfig(defaultServicePath, batchId) {
          var _this = _super.call(this, 'post', defaultServicePath, "" + ODataBatchConfig.content_type_prefix + batchId) || this;
          _this.defaultServicePath = defaultServicePath;
          _this.batchId = batchId;
          return _this;
      }
      ODataBatchConfig.prototype.resourcePath = function () {
          return '$batch';
      };
      ODataBatchConfig.prototype.queryParameters = function () {
          return {};
      };
      ODataBatchConfig.content_type_prefix = 'multipart/mixed; boundary=batch_';
      return ODataBatchConfig;
  }(index_1.ODataRequestConfig));
  exports.ODataBatchConfig = ODataBatchConfig;
  //# sourceMappingURL=odata-batch-config.js.map