@dbos-inc/dbos-sdk 1.15.5-preview → 1.15.8-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/dist/src/communicator.d.ts +1 -0
  2. package/dist/src/communicator.d.ts.map +1 -1
  3. package/dist/src/communicator.js.map +1 -1
  4. package/dist/src/dbos-executor.d.ts +9 -1
  5. package/dist/src/dbos-executor.d.ts.map +1 -1
  6. package/dist/src/dbos-executor.js +29 -2
  7. package/dist/src/dbos-executor.js.map +1 -1
  8. package/dist/src/dbos-runtime/runtime.d.ts +1 -2
  9. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  10. package/dist/src/dbos-runtime/runtime.js +10 -7
  11. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  12. package/dist/src/decorators.d.ts +13 -0
  13. package/dist/src/decorators.d.ts.map +1 -1
  14. package/dist/src/decorators.js +19 -1
  15. package/dist/src/decorators.js.map +1 -1
  16. package/dist/src/error.d.ts +3 -0
  17. package/dist/src/error.d.ts.map +1 -1
  18. package/dist/src/error.js +8 -1
  19. package/dist/src/error.js.map +1 -1
  20. package/dist/src/eventreceiver.d.ts +30 -0
  21. package/dist/src/eventreceiver.d.ts.map +1 -0
  22. package/dist/src/eventreceiver.js +3 -0
  23. package/dist/src/eventreceiver.js.map +1 -0
  24. package/dist/src/index.d.ts +5 -4
  25. package/dist/src/index.d.ts.map +1 -1
  26. package/dist/src/index.js +4 -1
  27. package/dist/src/index.js.map +1 -1
  28. package/dist/src/kafka/kafka.d.ts +13 -20
  29. package/dist/src/kafka/kafka.d.ts.map +1 -1
  30. package/dist/src/kafka/kafka.js +60 -52
  31. package/dist/src/kafka/kafka.js.map +1 -1
  32. package/dist/src/system_database.d.ts +2 -0
  33. package/dist/src/system_database.d.ts.map +1 -1
  34. package/dist/src/system_database.js +11 -2
  35. package/dist/src/system_database.js.map +1 -1
  36. package/dist/src/testing/testing_runtime.d.ts +1 -1
  37. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  38. package/dist/src/testing/testing_runtime.js +7 -6
  39. package/dist/src/testing/testing_runtime.js.map +1 -1
  40. package/dist/src/transaction.d.ts +1 -0
  41. package/dist/src/transaction.d.ts.map +1 -1
  42. package/dist/src/transaction.js.map +1 -1
  43. package/dist/src/workflow.d.ts +6 -1
  44. package/dist/src/workflow.d.ts.map +1 -1
  45. package/dist/src/workflow.js +3 -0
  46. package/dist/src/workflow.js.map +1 -1
  47. package/dist/tsconfig.build.tsbuildinfo +1 -1
  48. package/migrations/20240621000000_workflow_tries.js +15 -0
  49. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ exports.up = function(knex) {
2
+ return knex.schema.withSchema('dbos')
3
+ .table('workflow_status', function(table) {
4
+
5
+ table.bigInteger('recovery_attempts')
6
+ .defaultTo(0);
7
+ });
8
+ };
9
+
10
+ exports.down = function(knex) {
11
+ return knex.schema.withSchema('dbos')
12
+ .table('workflow_status', function(table) {
13
+ table.dropColumn('recovery_attempts');
14
+ });
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "1.15.5-preview",
3
+ "version": "1.15.8-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {