@dbos-inc/dbos-sdk 0.8.46-preview → 0.8.48-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/src/dbos-executor.d.ts +0 -1
  2. package/dist/src/dbos-executor.d.ts.map +1 -1
  3. package/dist/src/dbos-executor.js +4 -8
  4. package/dist/src/dbos-executor.js.map +1 -1
  5. package/dist/src/dbos-runtime/cli.js +1 -2
  6. package/dist/src/dbos-runtime/cli.js.map +1 -1
  7. package/dist/src/dbos-runtime/runtime.d.ts +7 -9
  8. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  9. package/dist/src/dbos-runtime/runtime.js +35 -21
  10. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  11. package/dist/src/httpServer/handler.d.ts.map +1 -1
  12. package/dist/src/httpServer/handler.js +3 -2
  13. package/dist/src/httpServer/handler.js.map +1 -1
  14. package/dist/src/httpServer/server.d.ts +8 -6
  15. package/dist/src/httpServer/server.d.ts.map +1 -1
  16. package/dist/src/httpServer/server.js +23 -29
  17. package/dist/src/httpServer/server.js.map +1 -1
  18. package/dist/src/index.d.ts +0 -1
  19. package/dist/src/index.d.ts.map +1 -1
  20. package/dist/src/index.js +1 -3
  21. package/dist/src/index.js.map +1 -1
  22. package/dist/src/system_database.js +5 -5
  23. package/dist/src/system_database.js.map +1 -1
  24. package/dist/src/telemetry/collector.d.ts.map +1 -1
  25. package/dist/src/telemetry/collector.js +1 -0
  26. package/dist/src/telemetry/collector.js.map +1 -1
  27. package/dist/src/telemetry/exporters.d.ts +2 -0
  28. package/dist/src/telemetry/exporters.d.ts.map +1 -1
  29. package/dist/src/telemetry/exporters.js +4 -0
  30. package/dist/src/telemetry/exporters.js.map +1 -1
  31. package/dist/src/telemetry/logs.d.ts.map +1 -1
  32. package/dist/src/telemetry/logs.js +15 -33
  33. package/dist/src/telemetry/logs.js.map +1 -1
  34. package/dist/src/telemetry/traces.js +2 -2
  35. package/dist/src/telemetry/traces.js.map +1 -1
  36. package/dist/src/testing/testing_runtime.d.ts +2 -0
  37. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  38. package/dist/src/testing/testing_runtime.js +6 -0
  39. package/dist/src/testing/testing_runtime.js.map +1 -1
  40. package/dist/tsconfig.build.tsbuildinfo +1 -1
  41. package/migrations/20240124015239_status_timestamp.js +22 -0
  42. package/package.json +1 -1
  43. package/packages/dbos-cloud/package.json +1 -1
  44. package/packages/dbos-openapi/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ exports.up = function(knex) {
2
+ return knex.schema.withSchema('dbos')
3
+ .table('workflow_status', function(table) {
4
+ // Add CREATED_AT column with default value as current epoch time in milliseconds
5
+ table.bigInteger('created_at')
6
+ .notNullable()
7
+ .defaultTo(knex.raw('(EXTRACT(EPOCH FROM now())*1000)::bigint'));
8
+
9
+ // Add UPDATED_AT column with default value as current epoch time in milliseconds
10
+ table.bigInteger('updated_at')
11
+ .notNullable()
12
+ .defaultTo(knex.raw('(EXTRACT(EPOCH FROM now())*1000)::bigint'));
13
+ });
14
+ };
15
+
16
+ exports.down = function(knex) {
17
+ return knex.schema.withSchema('dbos')
18
+ .table('workflow_status', function(table) {
19
+ table.dropColumn('created_at');
20
+ table.dropColumn('updated_at');
21
+ });
22
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "0.8.46-preview",
3
+ "version": "0.8.48-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-cloud",
3
- "version": "0.8.46-preview",
3
+ "version": "0.8.48-preview",
4
4
  "description": "Tool for performing application deployment to DBOS cloud",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-openapi",
3
- "version": "0.8.46-preview",
3
+ "version": "0.8.48-preview",
4
4
  "description": "Tool for integrating DBOS functions via OpenAPI",
5
5
  "license": "MIT",
6
6
  "repository": {