@kintone/kintone-js-sdk
Version:
The SDK of kintone REST API client on node and browser
51 lines (41 loc) • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/**
* UpdateRecordsRequest model
*/
class UpdateRecordsRequest {
/**
* constructor
* @param {String} appID
* @param {Array<recordsItem>} recordsItem
*/
constructor(appID, recordsItem) {
this.appID = appID;
this.recordsItem = recordsItem;
}
/**
* Get JSON struct of this model
* @return {integer}
*/
toJSON() {
const data = {
records: this.recordsItem || []
};
if (this.appID) {
data.app = this.appID;
}
return data;
}
/**
* Convert this model to JSON string
* @return {String}
*/
toJSONString() {
return JSON.stringify(this.toJSON());
}
}
var _default = UpdateRecordsRequest;
exports.default = _default;