@dbos-inc/dbos-sdk 1.24.11-preview → 1.24.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/schemas/system_db_schema.d.ts +8 -0
  2. package/dist/schemas/system_db_schema.d.ts.map +1 -1
  3. package/dist/src/dbos-executor.d.ts +9 -9
  4. package/dist/src/dbos-executor.d.ts.map +1 -1
  5. package/dist/src/dbos-executor.js +69 -40
  6. package/dist/src/dbos-executor.js.map +1 -1
  7. package/dist/src/dbos-runtime/cli.js +1 -1
  8. package/dist/src/dbos-runtime/cli.js.map +1 -1
  9. package/dist/src/dbos-runtime/migrate.d.ts +2 -2
  10. package/dist/src/dbos-runtime/runtime.d.ts +6 -0
  11. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  12. package/dist/src/dbos-runtime/runtime.js +14 -1
  13. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  14. package/dist/src/debugger/debug_workflow.d.ts +5 -4
  15. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  16. package/dist/src/debugger/debug_workflow.js +11 -11
  17. package/dist/src/debugger/debug_workflow.js.map +1 -1
  18. package/dist/src/decorators.d.ts +4 -4
  19. package/dist/src/decorators.d.ts.map +1 -1
  20. package/dist/src/decorators.js +3 -3
  21. package/dist/src/decorators.js.map +1 -1
  22. package/dist/src/eventreceiver.d.ts +2 -2
  23. package/dist/src/eventreceiver.d.ts.map +1 -1
  24. package/dist/src/httpServer/handler.d.ts +5 -4
  25. package/dist/src/httpServer/handler.d.ts.map +1 -1
  26. package/dist/src/httpServer/handler.js +11 -11
  27. package/dist/src/httpServer/handler.js.map +1 -1
  28. package/dist/src/index.d.ts +4 -3
  29. package/dist/src/index.d.ts.map +1 -1
  30. package/dist/src/index.js +7 -2
  31. package/dist/src/index.js.map +1 -1
  32. package/dist/src/scheduler/scheduler.d.ts +0 -1
  33. package/dist/src/scheduler/scheduler.d.ts.map +1 -1
  34. package/dist/src/scheduler/scheduler.js +0 -3
  35. package/dist/src/scheduler/scheduler.js.map +1 -1
  36. package/dist/src/{communicator.d.ts → step.d.ts} +6 -7
  37. package/dist/src/step.d.ts.map +1 -0
  38. package/dist/src/{communicator.js → step.js} +4 -4
  39. package/dist/src/step.js.map +1 -0
  40. package/dist/src/system_database.d.ts +8 -0
  41. package/dist/src/system_database.d.ts.map +1 -1
  42. package/dist/src/system_database.js +106 -7
  43. package/dist/src/system_database.js.map +1 -1
  44. package/dist/src/testing/testing_runtime.d.ts +6 -5
  45. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  46. package/dist/src/testing/testing_runtime.js +14 -6
  47. package/dist/src/testing/testing_runtime.js.map +1 -1
  48. package/dist/src/wfqueue.d.ts +28 -0
  49. package/dist/src/wfqueue.d.ts.map +1 -0
  50. package/dist/src/wfqueue.js +70 -0
  51. package/dist/src/wfqueue.js.map +1 -0
  52. package/dist/src/workflow.d.ts +15 -10
  53. package/dist/src/workflow.d.ts.map +1 -1
  54. package/dist/src/workflow.js +22 -21
  55. package/dist/src/workflow.js.map +1 -1
  56. package/dist/tsconfig.build.tsbuildinfo +1 -1
  57. package/migrations/20240924000000_workflowqueue.js +24 -0
  58. package/package.json +1 -1
  59. package/dist/src/communicator.d.ts.map +0 -1
  60. package/dist/src/communicator.js.map +0 -1
@@ -0,0 +1,24 @@
1
+ exports.up = function(knex) {
2
+ return knex.schema.withSchema('dbos')
3
+ .table('workflow_status', function(table) {
4
+ table.text('queue_name')
5
+ .defaultTo(null);
6
+ })
7
+ .createTable('workflow_queue', function(table) {
8
+ table.text('queue_name').notNullable();
9
+ table.text('workflow_uuid').notNullable();
10
+ table.bigInteger('created_at_epoch_ms').notNullable().defaultTo(knex.raw('(EXTRACT(EPOCH FROM now())*1000)::bigint'));
11
+ table.bigInteger('started_at_epoch_ms');
12
+ table.bigInteger('completed_at_epoch_ms');
13
+ table.primary(['workflow_uuid']);
14
+ table.foreign('workflow_uuid').references('workflow_uuid').inTable('dbos.workflow_status').onDelete('CASCADE').onUpdate('CASCADE');
15
+ })
16
+ };
17
+
18
+ exports.down = function(knex) {
19
+ return knex.schema.withSchema('dbos')
20
+ .table('workflow_status', function(table) {
21
+ table.dropColumn('queue_name');
22
+ })
23
+ .dropTableIfExists('workflow_queue');
24
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "1.24.11-preview",
3
+ "version": "1.24.15",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"communicator.d.ts","sourceRoot":"","sources":["../../src/communicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AACzG,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE9E,MAAM,WAAW,kBAAkB;IACjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IAEtD,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,QAAQ,C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