arky-sdk 0.3.63 → 0.3.64
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 +38 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +38 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1159,6 +1159,42 @@ 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
|
+
|
|
1162
1198
|
// src/utils/currency.ts
|
|
1163
1199
|
function getCurrencySymbol(currency) {
|
|
1164
1200
|
const currencySymbols = {
|
|
@@ -1514,7 +1550,7 @@ async function injectSvgIntoElement(mediaObject, targetElement, className) {
|
|
|
1514
1550
|
}
|
|
1515
1551
|
|
|
1516
1552
|
// src/index.ts
|
|
1517
|
-
var SDK_VERSION = "0.3.
|
|
1553
|
+
var SDK_VERSION = "0.3.64";
|
|
1518
1554
|
var SUPPORTED_FRAMEWORKS = [
|
|
1519
1555
|
"astro",
|
|
1520
1556
|
"react",
|
|
@@ -1550,6 +1586,7 @@ function createArkySDK(config) {
|
|
|
1550
1586
|
cms: createCmsApi(apiConfig),
|
|
1551
1587
|
eshop: createEshopApi(apiConfig),
|
|
1552
1588
|
reservation: createReservationApi(apiConfig),
|
|
1589
|
+
database: createDatabaseApi(apiConfig),
|
|
1553
1590
|
setBusinessId: (businessId) => {
|
|
1554
1591
|
apiConfig.businessId = businessId;
|
|
1555
1592
|
},
|