arky-sdk 0.3.64 → 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 +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -22,6 +22,15 @@ interface HttpClientConfig {
|
|
|
22
22
|
isAuthenticated?: () => boolean;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
interface RunScriptParams {
|
|
26
|
+
name: string;
|
|
27
|
+
value?: string;
|
|
28
|
+
}
|
|
29
|
+
interface RunScriptResponse {
|
|
30
|
+
success: boolean;
|
|
31
|
+
message: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
interface ScanDataParams {
|
|
26
35
|
key: string;
|
|
27
36
|
}
|
|
@@ -34,7 +43,7 @@ interface DeleteDataParams {
|
|
|
34
43
|
key: string;
|
|
35
44
|
}
|
|
36
45
|
|
|
37
|
-
declare const SDK_VERSION = "0.3.
|
|
46
|
+
declare const SDK_VERSION = "0.3.65";
|
|
38
47
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
39
48
|
interface ApiConfig {
|
|
40
49
|
httpClient: any;
|
|
@@ -171,6 +180,9 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
171
180
|
putData(params: PutDataParams, options?: RequestOptions): Promise<void>;
|
|
172
181
|
deleteData(params: DeleteDataParams, options?: RequestOptions): Promise<void>;
|
|
173
182
|
};
|
|
183
|
+
scripts: {
|
|
184
|
+
runScript(params: RunScriptParams, options?: RequestOptions): Promise<RunScriptResponse>;
|
|
185
|
+
};
|
|
174
186
|
setBusinessId: (businessId: string) => void;
|
|
175
187
|
getBusinessId: () => string;
|
|
176
188
|
setMarket: (market: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,15 @@ interface HttpClientConfig {
|
|
|
22
22
|
isAuthenticated?: () => boolean;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
interface RunScriptParams {
|
|
26
|
+
name: string;
|
|
27
|
+
value?: string;
|
|
28
|
+
}
|
|
29
|
+
interface RunScriptResponse {
|
|
30
|
+
success: boolean;
|
|
31
|
+
message: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
interface ScanDataParams {
|
|
26
35
|
key: string;
|
|
27
36
|
}
|
|
@@ -34,7 +43,7 @@ interface DeleteDataParams {
|
|
|
34
43
|
key: string;
|
|
35
44
|
}
|
|
36
45
|
|
|
37
|
-
declare const SDK_VERSION = "0.3.
|
|
46
|
+
declare const SDK_VERSION = "0.3.65";
|
|
38
47
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
39
48
|
interface ApiConfig {
|
|
40
49
|
httpClient: any;
|
|
@@ -171,6 +180,9 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
171
180
|
putData(params: PutDataParams, options?: RequestOptions): Promise<void>;
|
|
172
181
|
deleteData(params: DeleteDataParams, options?: RequestOptions): Promise<void>;
|
|
173
182
|
};
|
|
183
|
+
scripts: {
|
|
184
|
+
runScript(params: RunScriptParams, options?: RequestOptions): Promise<RunScriptResponse>;
|
|
185
|
+
};
|
|
174
186
|
setBusinessId: (businessId: string) => void;
|
|
175
187
|
getBusinessId: () => string;
|
|
176
188
|
setMarket: (market: string) => void;
|
package/dist/index.js
CHANGED
|
@@ -1193,6 +1193,15 @@ var createDatabaseApi = (apiConfig) => {
|
|
|
1193
1193
|
};
|
|
1194
1194
|
};
|
|
1195
1195
|
|
|
1196
|
+
// src/api/scripts.ts
|
|
1197
|
+
var createScriptsApi = (apiConfig) => {
|
|
1198
|
+
return {
|
|
1199
|
+
async runScript(params, options) {
|
|
1200
|
+
return apiConfig.httpClient.post(`/v1/operations/scripts`, params, options);
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1196
1205
|
// src/utils/currency.ts
|
|
1197
1206
|
function getCurrencySymbol(currency) {
|
|
1198
1207
|
const currencySymbols = {
|
|
@@ -1548,7 +1557,7 @@ async function injectSvgIntoElement(mediaObject, targetElement, className) {
|
|
|
1548
1557
|
}
|
|
1549
1558
|
|
|
1550
1559
|
// src/index.ts
|
|
1551
|
-
var SDK_VERSION = "0.3.
|
|
1560
|
+
var SDK_VERSION = "0.3.65";
|
|
1552
1561
|
var SUPPORTED_FRAMEWORKS = [
|
|
1553
1562
|
"astro",
|
|
1554
1563
|
"react",
|
|
@@ -1585,6 +1594,7 @@ function createArkySDK(config) {
|
|
|
1585
1594
|
eshop: createEshopApi(apiConfig),
|
|
1586
1595
|
reservation: createReservationApi(apiConfig),
|
|
1587
1596
|
database: createDatabaseApi(apiConfig),
|
|
1597
|
+
scripts: createScriptsApi(apiConfig),
|
|
1588
1598
|
setBusinessId: (businessId) => {
|
|
1589
1599
|
apiConfig.businessId = businessId;
|
|
1590
1600
|
},
|