@konomi-app/kintone-utilities 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +744 -17
- package/dist/index.d.ts +744 -17
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1277,6 +1277,7 @@ var API_ENDPOINT_VIEWS = "app/views";
|
|
|
1277
1277
|
var API_ENDPOINT_FORM_FIELDS = "app/form/fields";
|
|
1278
1278
|
var API_ENDPOINT_FORM_LAYOUT = "app/form/layout";
|
|
1279
1279
|
var API_ENDPOINT_APP_SETTINGS = "app/settings";
|
|
1280
|
+
var API_ENDPOINT_STATUS = "app/status";
|
|
1280
1281
|
var getApp = async (params) => {
|
|
1281
1282
|
const { debug, guestSpaceId, ...requestParams } = params;
|
|
1282
1283
|
return api2({
|
|
@@ -1358,6 +1359,17 @@ var getAppSettings = async (params) => {
|
|
|
1358
1359
|
guestSpaceId
|
|
1359
1360
|
});
|
|
1360
1361
|
};
|
|
1362
|
+
var getAppStatus = async (params) => {
|
|
1363
|
+
const { app, lang = "default", preview = false, debug, guestSpaceId } = params;
|
|
1364
|
+
return api2({
|
|
1365
|
+
endpointName: API_ENDPOINT_STATUS,
|
|
1366
|
+
method: "GET",
|
|
1367
|
+
body: { app, lang },
|
|
1368
|
+
preview,
|
|
1369
|
+
debug,
|
|
1370
|
+
guestSpaceId
|
|
1371
|
+
});
|
|
1372
|
+
};
|
|
1361
1373
|
|
|
1362
1374
|
// src/rest-api/record.ts
|
|
1363
1375
|
var API_ENDPOINT_RECORD = `record`;
|
|
@@ -1959,10 +1971,6 @@ var useQuery = (conditions, options) => {
|
|
|
1959
1971
|
}
|
|
1960
1972
|
return mergedCondition;
|
|
1961
1973
|
};
|
|
1962
|
-
var chunk = (arr, size) => Array.from(
|
|
1963
|
-
{ length: Math.ceil(arr.length / size) },
|
|
1964
|
-
(_, i) => arr.slice(i * size, i * size + size)
|
|
1965
|
-
);
|
|
1966
1974
|
|
|
1967
1975
|
exports.API_LIMIT_POST = API_LIMIT_POST;
|
|
1968
1976
|
exports.KintoneEventListener = KintoneEventListener;
|
|
@@ -1975,7 +1983,6 @@ exports.addRecords = addRecords;
|
|
|
1975
1983
|
exports.backdoor = backdoor;
|
|
1976
1984
|
exports.backdoorGetRecord = backdoorGetRecord;
|
|
1977
1985
|
exports.bulkRequest = bulkRequest;
|
|
1978
|
-
exports.chunk = chunk;
|
|
1979
1986
|
exports.compareField = compareField;
|
|
1980
1987
|
exports.convertFullwidthAlphanumericToHalfwidth = convertFullwidthAlphanumericToHalfwidth;
|
|
1981
1988
|
exports.convertHalfwidthKatakanaToFullwidth = convertHalfwidthKatakanaToFullwidth;
|
|
@@ -1997,6 +2004,7 @@ exports.getAppCharts = getAppCharts;
|
|
|
1997
2004
|
exports.getAppId = getAppId;
|
|
1998
2005
|
exports.getAppObject = getAppObject;
|
|
1999
2006
|
exports.getAppSettings = getAppSettings;
|
|
2007
|
+
exports.getAppStatus = getAppStatus;
|
|
2000
2008
|
exports.getCalcFieldValueAsString = getCalcFieldValueAsString;
|
|
2001
2009
|
exports.getCurrentRecord = getCurrentRecord;
|
|
2002
2010
|
exports.getCybozuGroupUsers = getCybozuGroupUsers;
|