arky-sdk 0.3.63 → 0.3.65
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 +48 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +48 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1159,6 +1159,51 @@ var createReservationApi = (apiConfig) => {
|
|
|
1159
1159
|
};
|
|
1160
1160
|
};
|
|
1161
1161
|
|
|
1162
|
+
// src/api/database.ts
|
|
1163
|
+
var createDatabaseApi = (apiConfig) => {
|
|
1164
|
+
return {
|
|
1165
|
+
async scanData(params, options) {
|
|
1166
|
+
const response = await apiConfig.httpClient.get(
|
|
1167
|
+
`/v1/operations/data`,
|
|
1168
|
+
{
|
|
1169
|
+
...options,
|
|
1170
|
+
params: {
|
|
1171
|
+
key: params.key
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
);
|
|
1175
|
+
return response.value || [];
|
|
1176
|
+
},
|
|
1177
|
+
async putData(params, options) {
|
|
1178
|
+
return apiConfig.httpClient.post(
|
|
1179
|
+
`/v1/operations/data`,
|
|
1180
|
+
params,
|
|
1181
|
+
options
|
|
1182
|
+
);
|
|
1183
|
+
},
|
|
1184
|
+
async deleteData(params, options) {
|
|
1185
|
+
return apiConfig.httpClient.delete(
|
|
1186
|
+
`/v1/operations/data`,
|
|
1187
|
+
{
|
|
1188
|
+
...options,
|
|
1189
|
+
params: {
|
|
1190
|
+
key: params.key
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
);
|
|
1194
|
+
}
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
// src/api/scripts.ts
|
|
1199
|
+
var createScriptsApi = (apiConfig) => {
|
|
1200
|
+
return {
|
|
1201
|
+
async runScript(params, options) {
|
|
1202
|
+
return apiConfig.httpClient.post(`/v1/operations/scripts`, params, options);
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1162
1207
|
// src/utils/currency.ts
|
|
1163
1208
|
function getCurrencySymbol(currency) {
|
|
1164
1209
|
const currencySymbols = {
|
|
@@ -1514,7 +1559,7 @@ async function injectSvgIntoElement(mediaObject, targetElement, className) {
|
|
|
1514
1559
|
}
|
|
1515
1560
|
|
|
1516
1561
|
// src/index.ts
|
|
1517
|
-
var SDK_VERSION = "0.3.
|
|
1562
|
+
var SDK_VERSION = "0.3.65";
|
|
1518
1563
|
var SUPPORTED_FRAMEWORKS = [
|
|
1519
1564
|
"astro",
|
|
1520
1565
|
"react",
|
|
@@ -1550,6 +1595,8 @@ function createArkySDK(config) {
|
|
|
1550
1595
|
cms: createCmsApi(apiConfig),
|
|
1551
1596
|
eshop: createEshopApi(apiConfig),
|
|
1552
1597
|
reservation: createReservationApi(apiConfig),
|
|
1598
|
+
database: createDatabaseApi(apiConfig),
|
|
1599
|
+
scripts: createScriptsApi(apiConfig),
|
|
1553
1600
|
setBusinessId: (businessId) => {
|
|
1554
1601
|
apiConfig.businessId = businessId;
|
|
1555
1602
|
},
|