Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value: function request(methodName, restAPIName, body) {
if (window && window.kintone && !this.kintoneAuth) {
// use kintone.api
return kintone.api(_get(_getPrototypeOf(Connection.prototype), "getURL", this).call(this, restAPIName), String(methodName).toUpperCase(), body).then(function (response) {
return response;
}).catch(function (err) {
throw new kintoneBaseJSSDK.KintoneAPIException(err.message, err);
});
}
return this._requestByAxios(methodName, restAPIName, body);
}
/**
function QueryBuilder(props) {
var _this;
_classCallCheck(this, QueryBuilder);
_this = _possibleConstructorReturn(this, _getPrototypeOf(QueryBuilder).call(this, props));
_this.state = _objectSpread({
query: props.query,
chartType: 'line'
}, props.vizState);
return _this;
}
function App() {
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
conn = _ref.connection;
_classCallCheck(this, App);
var connection = conn;
if (!connection) {
connection = new Connection();
}
return _possibleConstructorReturn(this, _getPrototypeOf(App).call(this, {
connection: connection
}));
}
function Record() {
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
conn = _ref.connection;
_classCallCheck(this, Record);
var connection = conn;
if (!connection) {
connection = new Connection();
}
return _possibleConstructorReturn(this, _getPrototypeOf(Record).call(this, {
connection: connection
}));
}
value: function toJSON() {
var data = _get(_getPrototypeOf(UpdateRecordStatusRequest.prototype), "toJSON", this).call(this);
data.app = this.appID;
return data;
}
/**
function UpdateRecordStatusRequest(appID, recordID, actionName, assigneeID, revisionID) {
var _this;
_classCallCheck(this, UpdateRecordStatusRequest);
_this = _possibleConstructorReturn(this, _getPrototypeOf(UpdateRecordStatusRequest).call(this, recordID, actionName, assigneeID, revisionID));
_this.appID = appID;
return _this;
}
/**
function QueryRenderer(props) {
var _this;
_classCallCheck(this, QueryRenderer);
_this = _possibleConstructorReturn(this, _getPrototypeOf(QueryRenderer).call(this, props));
_this.state = {};
_this.mutexObj = {};
return _this;
}
function KintoneAPIException() {
var _getPrototypeOf2;
var _this;
var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var errors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
_classCallCheck(this, KintoneAPIException);
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
args[_key - 2] = arguments[_key];
}
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(KintoneAPIException)).call.apply(_getPrototypeOf2, [this, message].concat(args)));
if (Error.captureStackTrace) {
Error.captureStackTrace(_assertThisInitialized(_this), KintoneAPIException);
}
var errorResponse;
_this.originError = errors;
if (!errors.hasOwnProperty('response') || !errors.response) {
errorResponse = new KintoneErrorResponseModel(0, null, errors.message, errors);
} else {
var dataResponse = errors.response.data;
var errorToCreate;
if (Buffer.isBuffer(dataResponse)) {
errorToCreate = dataResponse.toString();
function Connection() {
var _this;
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
auth = _ref.auth,
guestSpaceID = _ref.guestSpaceID;
_classCallCheck(this, Connection);
if (auth instanceof kintoneBaseJSSDK.Auth) {
var domain = window.location.host;
_this = _possibleConstructorReturn(this, _getPrototypeOf(Connection).call(this, {
domain: domain,
auth: auth,
guestSpaceID: guestSpaceID
}));
_this.kintoneAuth = auth;
} else {
var _domain = window.location.host;
var basicAuth = new kintoneBaseJSSDK.Auth();
_this = _possibleConstructorReturn(this, _getPrototypeOf(Connection).call(this, {
domain: _domain,
auth: basicAuth,
guestSpaceID: guestSpaceID
}));
_this.kintoneAuth = undefined;
}
function UpdateRecordRequest(appID) {
var _this;
_classCallCheck(this, UpdateRecordRequest);
_this = _possibleConstructorReturn(this, _getPrototypeOf(UpdateRecordRequest).call(this));
_this.app = appID;
return _this;
}
/**