@dbos-inc/dbos-sdk 1.12.6-preview → 1.12.7-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/dist/schemas/system_db_schema.d.ts +2 -0
  2. package/dist/schemas/system_db_schema.d.ts.map +1 -1
  3. package/dist/src/communicator.d.ts +1 -1
  4. package/dist/src/communicator.d.ts.map +1 -1
  5. package/dist/src/communicator.js.map +1 -1
  6. package/dist/src/dbos-executor.d.ts +27 -11
  7. package/dist/src/dbos-executor.d.ts.map +1 -1
  8. package/dist/src/dbos-executor.js +138 -45
  9. package/dist/src/dbos-executor.js.map +1 -1
  10. package/dist/src/debugger/debug_workflow.d.ts +14 -5
  11. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  12. package/dist/src/debugger/debug_workflow.js +74 -18
  13. package/dist/src/debugger/debug_workflow.js.map +1 -1
  14. package/dist/src/decorators.d.ts +19 -2
  15. package/dist/src/decorators.d.ts.map +1 -1
  16. package/dist/src/decorators.js +104 -27
  17. package/dist/src/decorators.js.map +1 -1
  18. package/dist/src/httpServer/handler.d.ts +19 -15
  19. package/dist/src/httpServer/handler.d.ts.map +1 -1
  20. package/dist/src/httpServer/handler.js +24 -22
  21. package/dist/src/httpServer/handler.js.map +1 -1
  22. package/dist/src/httpServer/server.d.ts.map +1 -1
  23. package/dist/src/httpServer/server.js +6 -1
  24. package/dist/src/httpServer/server.js.map +1 -1
  25. package/dist/src/index.d.ts +1 -1
  26. package/dist/src/index.d.ts.map +1 -1
  27. package/dist/src/index.js +4 -1
  28. package/dist/src/index.js.map +1 -1
  29. package/dist/src/kafka/kafka.d.ts +2 -3
  30. package/dist/src/kafka/kafka.d.ts.map +1 -1
  31. package/dist/src/kafka/kafka.js +2 -13
  32. package/dist/src/kafka/kafka.js.map +1 -1
  33. package/dist/src/scheduler/scheduler.d.ts +4 -8
  34. package/dist/src/scheduler/scheduler.d.ts.map +1 -1
  35. package/dist/src/scheduler/scheduler.js +2 -9
  36. package/dist/src/scheduler/scheduler.js.map +1 -1
  37. package/dist/src/system_database.d.ts +2 -0
  38. package/dist/src/system_database.d.ts.map +1 -1
  39. package/dist/src/system_database.js +61 -4
  40. package/dist/src/system_database.js.map +1 -1
  41. package/dist/src/testing/testing_runtime.d.ts +9 -5
  42. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  43. package/dist/src/testing/testing_runtime.js +24 -12
  44. package/dist/src/testing/testing_runtime.js.map +1 -1
  45. package/dist/src/transaction.d.ts +1 -1
  46. package/dist/src/transaction.d.ts.map +1 -1
  47. package/dist/src/workflow.d.ts +46 -10
  48. package/dist/src/workflow.d.ts.map +1 -1
  49. package/dist/src/workflow.js +72 -20
  50. package/dist/src/workflow.js.map +1 -1
  51. package/dist/tsconfig.build.tsbuildinfo +1 -1
  52. package/migrations/20240517000000_status_class_config.js +18 -0
  53. package/package.json +2 -2
@@ -0,0 +1,18 @@
1
+ exports.up = function(knex) {
2
+ return knex.schema.withSchema('dbos')
3
+ .table('workflow_status', function(table) {
4
+ table.string('class_name')
5
+ .defaultTo(null);
6
+
7
+ table.string('config_name')
8
+ .defaultTo(null);
9
+ });
10
+ };
11
+
12
+ exports.down = function(knex) {
13
+ return knex.schema.withSchema('dbos')
14
+ .table('workflow_status', function(table) {
15
+ table.dropColumn('class_name');
16
+ table.dropColumn('config_name');
17
+ });
18
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "1.12.6-preview",
3
+ "version": "1.12.7-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -71,7 +71,7 @@
71
71
  "lodash": "4.17.21",
72
72
  "openapi-types": "12.1.3",
73
73
  "pg": "8.11.3",
74
- "reflect-metadata": "0.2.2",
74
+ "reflect-metadata": "^0.2.2",
75
75
  "serialize-error": "8.1.0",
76
76
  "uuid": "9.0.1",
77
77
  "winston": "3.12.0",