@raisindb/functions-types 0.1.54 → 0.1.56

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/raisin.d.ts +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raisindb/functions-types",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "description": "TypeScript type definitions for the RaisinDB server-side function runtime (QuickJS)",
5
5
  "license": "MIT",
6
6
  "types": "raisin.d.ts",
package/raisin.d.ts CHANGED
@@ -277,6 +277,12 @@ declare namespace raisin {
277
277
  function embed(request: any): Promise<any>;
278
278
  }
279
279
 
280
+ namespace branches {
281
+ function diff(branch: string, baseBranch: string): Promise<any>;
282
+ function compare(branch: string, baseBranch: string): Promise<any>;
283
+ function copyNodes(sourceBranch: string, targetBranch: string, opts: any): Promise<any>;
284
+ }
285
+
280
286
  namespace crypto {
281
287
  function uuid(): Promise<string>;
282
288
  function verifyJwt(token: string, opts?: any | null): Promise<any>;
@@ -380,6 +386,13 @@ declare namespace raisin {
380
386
  function getBinary(storageKey: string): Promise<string>;
381
387
  }
382
388
 
389
+ namespace scheduler {
390
+ function schedule(request: any): Promise<any>;
391
+ function cancel(jobIdOrKey: string): Promise<any>;
392
+ function list(filter?: any | null): Promise<any>;
393
+ function get(jobIdOrKey: string): Promise<any>;
394
+ }
395
+
383
396
  namespace sql {
384
397
  function query(sql: string, params: any[]): Promise<any>;
385
398
  function execute(sql: string, params: any[]): Promise<number>;