arky-sdk 0.3.65 → 0.3.67
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 +2 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -12
- package/dist/index.d.ts +11 -12
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -22,15 +22,6 @@ 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
|
-
|
|
34
25
|
interface ScanDataParams {
|
|
35
26
|
key: string;
|
|
36
27
|
}
|
|
@@ -42,8 +33,18 @@ interface PutDataParams {
|
|
|
42
33
|
interface DeleteDataParams {
|
|
43
34
|
key: string;
|
|
44
35
|
}
|
|
36
|
+
interface RunScriptParams {
|
|
37
|
+
name: string;
|
|
38
|
+
value?: string;
|
|
39
|
+
username?: string;
|
|
40
|
+
password?: string;
|
|
41
|
+
}
|
|
42
|
+
interface RunScriptResponse {
|
|
43
|
+
success: boolean;
|
|
44
|
+
message: string;
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
declare const SDK_VERSION = "0.3.
|
|
47
|
+
declare const SDK_VERSION = "0.3.66";
|
|
47
48
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
48
49
|
interface ApiConfig {
|
|
49
50
|
httpClient: any;
|
|
@@ -179,8 +180,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
179
180
|
scanData(params: ScanDataParams, options?: RequestOptions): Promise<any[]>;
|
|
180
181
|
putData(params: PutDataParams, options?: RequestOptions): Promise<void>;
|
|
181
182
|
deleteData(params: DeleteDataParams, options?: RequestOptions): Promise<void>;
|
|
182
|
-
};
|
|
183
|
-
scripts: {
|
|
184
183
|
runScript(params: RunScriptParams, options?: RequestOptions): Promise<RunScriptResponse>;
|
|
185
184
|
};
|
|
186
185
|
setBusinessId: (businessId: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,15 +22,6 @@ 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
|
-
|
|
34
25
|
interface ScanDataParams {
|
|
35
26
|
key: string;
|
|
36
27
|
}
|
|
@@ -42,8 +33,18 @@ interface PutDataParams {
|
|
|
42
33
|
interface DeleteDataParams {
|
|
43
34
|
key: string;
|
|
44
35
|
}
|
|
36
|
+
interface RunScriptParams {
|
|
37
|
+
name: string;
|
|
38
|
+
value?: string;
|
|
39
|
+
username?: string;
|
|
40
|
+
password?: string;
|
|
41
|
+
}
|
|
42
|
+
interface RunScriptResponse {
|
|
43
|
+
success: boolean;
|
|
44
|
+
message: string;
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
declare const SDK_VERSION = "0.3.
|
|
47
|
+
declare const SDK_VERSION = "0.3.66";
|
|
47
48
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
48
49
|
interface ApiConfig {
|
|
49
50
|
httpClient: any;
|
|
@@ -179,8 +180,6 @@ declare function createArkySDK(config: HttpClientConfig & {
|
|
|
179
180
|
scanData(params: ScanDataParams, options?: RequestOptions): Promise<any[]>;
|
|
180
181
|
putData(params: PutDataParams, options?: RequestOptions): Promise<void>;
|
|
181
182
|
deleteData(params: DeleteDataParams, options?: RequestOptions): Promise<void>;
|
|
182
|
-
};
|
|
183
|
-
scripts: {
|
|
184
183
|
runScript(params: RunScriptParams, options?: RequestOptions): Promise<RunScriptResponse>;
|
|
185
184
|
};
|
|
186
185
|
setBusinessId: (businessId: string) => void;
|
package/dist/index.js
CHANGED
|
@@ -1189,13 +1189,7 @@ var createDatabaseApi = (apiConfig) => {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
);
|
|
1192
|
-
}
|
|
1193
|
-
};
|
|
1194
|
-
};
|
|
1195
|
-
|
|
1196
|
-
// src/api/scripts.ts
|
|
1197
|
-
var createScriptsApi = (apiConfig) => {
|
|
1198
|
-
return {
|
|
1192
|
+
},
|
|
1199
1193
|
async runScript(params, options) {
|
|
1200
1194
|
return apiConfig.httpClient.post(`/v1/operations/scripts`, params, options);
|
|
1201
1195
|
}
|
|
@@ -1557,7 +1551,7 @@ async function injectSvgIntoElement(mediaObject, targetElement, className) {
|
|
|
1557
1551
|
}
|
|
1558
1552
|
|
|
1559
1553
|
// src/index.ts
|
|
1560
|
-
var SDK_VERSION = "0.3.
|
|
1554
|
+
var SDK_VERSION = "0.3.66";
|
|
1561
1555
|
var SUPPORTED_FRAMEWORKS = [
|
|
1562
1556
|
"astro",
|
|
1563
1557
|
"react",
|
|
@@ -1594,7 +1588,6 @@ function createArkySDK(config) {
|
|
|
1594
1588
|
eshop: createEshopApi(apiConfig),
|
|
1595
1589
|
reservation: createReservationApi(apiConfig),
|
|
1596
1590
|
database: createDatabaseApi(apiConfig),
|
|
1597
|
-
scripts: createScriptsApi(apiConfig),
|
|
1598
1591
|
setBusinessId: (businessId) => {
|
|
1599
1592
|
apiConfig.businessId = businessId;
|
|
1600
1593
|
},
|