arky-sdk 0.3.64 → 0.3.66

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.d.cts CHANGED
@@ -33,8 +33,16 @@ interface PutDataParams {
33
33
  interface DeleteDataParams {
34
34
  key: string;
35
35
  }
36
+ interface RunScriptParams {
37
+ name: string;
38
+ value?: string;
39
+ }
40
+ interface RunScriptResponse {
41
+ success: boolean;
42
+ message: string;
43
+ }
36
44
 
37
- declare const SDK_VERSION = "0.3.64";
45
+ declare const SDK_VERSION = "0.3.66";
38
46
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
39
47
  interface ApiConfig {
40
48
  httpClient: any;
@@ -170,6 +178,7 @@ declare function createArkySDK(config: HttpClientConfig & {
170
178
  scanData(params: ScanDataParams, options?: RequestOptions): Promise<any[]>;
171
179
  putData(params: PutDataParams, options?: RequestOptions): Promise<void>;
172
180
  deleteData(params: DeleteDataParams, options?: RequestOptions): Promise<void>;
181
+ runScript(params: RunScriptParams, options?: RequestOptions): Promise<RunScriptResponse>;
173
182
  };
174
183
  setBusinessId: (businessId: string) => void;
175
184
  getBusinessId: () => string;
package/dist/index.d.ts CHANGED
@@ -33,8 +33,16 @@ interface PutDataParams {
33
33
  interface DeleteDataParams {
34
34
  key: string;
35
35
  }
36
+ interface RunScriptParams {
37
+ name: string;
38
+ value?: string;
39
+ }
40
+ interface RunScriptResponse {
41
+ success: boolean;
42
+ message: string;
43
+ }
36
44
 
37
- declare const SDK_VERSION = "0.3.64";
45
+ declare const SDK_VERSION = "0.3.66";
38
46
  declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
39
47
  interface ApiConfig {
40
48
  httpClient: any;
@@ -170,6 +178,7 @@ declare function createArkySDK(config: HttpClientConfig & {
170
178
  scanData(params: ScanDataParams, options?: RequestOptions): Promise<any[]>;
171
179
  putData(params: PutDataParams, options?: RequestOptions): Promise<void>;
172
180
  deleteData(params: DeleteDataParams, options?: RequestOptions): Promise<void>;
181
+ runScript(params: RunScriptParams, options?: RequestOptions): Promise<RunScriptResponse>;
173
182
  };
174
183
  setBusinessId: (businessId: string) => void;
175
184
  getBusinessId: () => string;
package/dist/index.js CHANGED
@@ -1189,6 +1189,9 @@ var createDatabaseApi = (apiConfig) => {
1189
1189
  }
1190
1190
  }
1191
1191
  );
1192
+ },
1193
+ async runScript(params, options) {
1194
+ return apiConfig.httpClient.post(`/v1/operations/scripts`, params, options);
1192
1195
  }
1193
1196
  };
1194
1197
  };
@@ -1548,7 +1551,7 @@ async function injectSvgIntoElement(mediaObject, targetElement, className) {
1548
1551
  }
1549
1552
 
1550
1553
  // src/index.ts
1551
- var SDK_VERSION = "0.3.64";
1554
+ var SDK_VERSION = "0.3.66";
1552
1555
  var SUPPORTED_FRAMEWORKS = [
1553
1556
  "astro",
1554
1557
  "react",