@dbos-inc/dbos-sdk 1.12.13-preview.g7a8a447e44 → 1.13.5-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/dbos-config.schema.json +2 -1
  2. package/dist/schemas/system_db_schema.d.ts +2 -0
  3. package/dist/schemas/system_db_schema.d.ts.map +1 -1
  4. package/dist/src/communicator.d.ts +1 -1
  5. package/dist/src/communicator.d.ts.map +1 -1
  6. package/dist/src/communicator.js.map +1 -1
  7. package/dist/src/context.d.ts +2 -0
  8. package/dist/src/context.d.ts.map +1 -1
  9. package/dist/src/context.js +3 -2
  10. package/dist/src/context.js.map +1 -1
  11. package/dist/src/dbos-executor.d.ts +27 -11
  12. package/dist/src/dbos-executor.d.ts.map +1 -1
  13. package/dist/src/dbos-executor.js +149 -58
  14. package/dist/src/dbos-executor.js.map +1 -1
  15. package/dist/src/dbos-runtime/config.d.ts +0 -1
  16. package/dist/src/dbos-runtime/config.d.ts.map +1 -1
  17. package/dist/src/dbos-runtime/config.js +2 -4
  18. package/dist/src/dbos-runtime/config.js.map +1 -1
  19. package/dist/src/debugger/debug_workflow.d.ts +14 -5
  20. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  21. package/dist/src/debugger/debug_workflow.js +80 -23
  22. package/dist/src/debugger/debug_workflow.js.map +1 -1
  23. package/dist/src/decorators.d.ts +19 -2
  24. package/dist/src/decorators.d.ts.map +1 -1
  25. package/dist/src/decorators.js +104 -27
  26. package/dist/src/decorators.js.map +1 -1
  27. package/dist/src/httpServer/handler.d.ts +22 -15
  28. package/dist/src/httpServer/handler.d.ts.map +1 -1
  29. package/dist/src/httpServer/handler.js +44 -35
  30. package/dist/src/httpServer/handler.js.map +1 -1
  31. package/dist/src/httpServer/handlerTypes.d.ts +4 -1
  32. package/dist/src/httpServer/handlerTypes.d.ts.map +1 -1
  33. package/dist/src/httpServer/handlerTypes.js +3 -0
  34. package/dist/src/httpServer/handlerTypes.js.map +1 -1
  35. package/dist/src/httpServer/server.d.ts.map +1 -1
  36. package/dist/src/httpServer/server.js +36 -12
  37. package/dist/src/httpServer/server.js.map +1 -1
  38. package/dist/src/index.d.ts +1 -1
  39. package/dist/src/index.d.ts.map +1 -1
  40. package/dist/src/index.js +4 -1
  41. package/dist/src/index.js.map +1 -1
  42. package/dist/src/kafka/kafka.d.ts +2 -3
  43. package/dist/src/kafka/kafka.d.ts.map +1 -1
  44. package/dist/src/kafka/kafka.js +2 -13
  45. package/dist/src/kafka/kafka.js.map +1 -1
  46. package/dist/src/scheduler/scheduler.d.ts +4 -8
  47. package/dist/src/scheduler/scheduler.d.ts.map +1 -1
  48. package/dist/src/scheduler/scheduler.js +2 -9
  49. package/dist/src/scheduler/scheduler.js.map +1 -1
  50. package/dist/src/system_database.d.ts +4 -0
  51. package/dist/src/system_database.d.ts.map +1 -1
  52. package/dist/src/system_database.js +102 -34
  53. package/dist/src/system_database.js.map +1 -1
  54. package/dist/src/telemetry/logs.d.ts.map +1 -1
  55. package/dist/src/telemetry/logs.js +13 -10
  56. package/dist/src/telemetry/logs.js.map +1 -1
  57. package/dist/src/telemetry/traces.d.ts +1 -0
  58. package/dist/src/telemetry/traces.d.ts.map +1 -1
  59. package/dist/src/telemetry/traces.js +5 -2
  60. package/dist/src/telemetry/traces.js.map +1 -1
  61. package/dist/src/testing/testing_runtime.d.ts +9 -5
  62. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  63. package/dist/src/testing/testing_runtime.js +24 -12
  64. package/dist/src/testing/testing_runtime.js.map +1 -1
  65. package/dist/src/transaction.d.ts +1 -1
  66. package/dist/src/transaction.d.ts.map +1 -1
  67. package/dist/src/utils.d.ts +6 -12
  68. package/dist/src/utils.d.ts.map +1 -1
  69. package/dist/src/utils.js +30 -13
  70. package/dist/src/utils.js.map +1 -1
  71. package/dist/src/workflow.d.ts +46 -10
  72. package/dist/src/workflow.d.ts.map +1 -1
  73. package/dist/src/workflow.js +78 -26
  74. package/dist/src/workflow.js.map +1 -1
  75. package/dist/tsconfig.build.tsbuildinfo +1 -1
  76. package/migrations/20240517000000_status_class_config.js +18 -0
  77. package/package.json +2 -2
  78. package/dist/src/dbos-runtime/applicationVersion.d.ts +0 -3
  79. package/dist/src/dbos-runtime/applicationVersion.d.ts.map +0 -1
  80. package/dist/src/dbos-runtime/applicationVersion.js +0 -13
  81. package/dist/src/dbos-runtime/applicationVersion.js.map +0 -1
@@ -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.13-preview.g7a8a447e44",
3
+ "version": "1.13.5-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",
@@ -1,3 +0,0 @@
1
- export declare function getApplicationVersion(): string | undefined;
2
- export declare function setApplicationVersion(version: string): void;
3
- //# sourceMappingURL=applicationVersion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationVersion.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/applicationVersion.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAE1D;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3D"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setApplicationVersion = exports.getApplicationVersion = void 0;
4
- function getApplicationVersion() {
5
- return applicationVersion;
6
- }
7
- exports.getApplicationVersion = getApplicationVersion;
8
- function setApplicationVersion(version) {
9
- applicationVersion = version;
10
- }
11
- exports.setApplicationVersion = setApplicationVersion;
12
- let applicationVersion = undefined;
13
- //# sourceMappingURL=applicationVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationVersion.js","sourceRoot":"","sources":["../../../src/dbos-runtime/applicationVersion.ts"],"names":[],"mappings":";;;AAAA,SAAgB,qBAAqB;IACjC,OAAO,kBAAkB,CAAC;AAC9B,CAAC;AAFD,sDAEC;AAED,SAAgB,qBAAqB,CAAC,OAAe;IACjD,kBAAkB,GAAG,OAAO,CAAC;AACjC,CAAC;AAFD,sDAEC;AAED,IAAI,kBAAkB,GAAuB,SAAS,CAAC"}