text: "use strict";
  
  /**
   * Increment Meta class.
   */
  export default class IncrementMeta {
    constructor(bucketImageObjects) {
      this.bucketImageObjects = bucketImageObjects || [];
      this.text = getInCrementMetaText(this.bucketImageObjects);
    }
  }
  
  /**
   * Get the increment.meta file text.
   */
  function getInCrementMetaText(bucketImageObjects) {
    const incrementMetaJson = bucketImageObjects.map(bucketImageObject => {
      return new Row(bucketImageObject);
    });
  
    const str = JSON.stringify(incrementMetaJson).replace(/},/g, "}\n");
    return str.substr(1, str.length - 2);
  }
  
  /**
   * Row of the each IncrementMeta data.
   */
  class Row {
    constructor(bucketImageObject) {
      this.operator = "ADD";
      this.item_id = bucketImageObject.itemId;
      this.cat_id = bucketImageObject.categoryId;
      this.cust_content = bucketImageObject.custContent;
      this.pic_list = [bucketImageObject.name];
    }
  }
  