@dbos-inc/dbos-sdk 0.7.18-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dbos-config.schema.json +121 -0
  4. package/dbos-test-config.yaml +16 -0
  5. package/dist/schemas/system_db_schema.d.ts +34 -0
  6. package/dist/schemas/system_db_schema.d.ts.map +1 -0
  7. package/dist/schemas/system_db_schema.js +75 -0
  8. package/dist/schemas/system_db_schema.js.map +1 -0
  9. package/dist/schemas/user_db_schema.d.ts +11 -0
  10. package/dist/schemas/user_db_schema.d.ts.map +1 -0
  11. package/dist/schemas/user_db_schema.js +16 -0
  12. package/dist/schemas/user_db_schema.js.map +1 -0
  13. package/dist/src/cloud-cli/applications/configure.d.ts +2 -0
  14. package/dist/src/cloud-cli/applications/configure.d.ts.map +1 -0
  15. package/dist/src/cloud-cli/applications/configure.js +57 -0
  16. package/dist/src/cloud-cli/applications/configure.js.map +1 -0
  17. package/dist/src/cloud-cli/applications/delete-app.d.ts +2 -0
  18. package/dist/src/cloud-cli/applications/delete-app.d.ts.map +1 -0
  19. package/dist/src/cloud-cli/applications/delete-app.js +36 -0
  20. package/dist/src/cloud-cli/applications/delete-app.js.map +1 -0
  21. package/dist/src/cloud-cli/applications/deploy-app-code.d.ts +2 -0
  22. package/dist/src/cloud-cli/applications/deploy-app-code.d.ts.map +1 -0
  23. package/dist/src/cloud-cli/applications/deploy-app-code.js +64 -0
  24. package/dist/src/cloud-cli/applications/deploy-app-code.js.map +1 -0
  25. package/dist/src/cloud-cli/applications/get-app-logs.d.ts +2 -0
  26. package/dist/src/cloud-cli/applications/get-app-logs.d.ts.map +1 -0
  27. package/dist/src/cloud-cli/applications/get-app-logs.js +37 -0
  28. package/dist/src/cloud-cli/applications/get-app-logs.js.map +1 -0
  29. package/dist/src/cloud-cli/applications/index.d.ts +8 -0
  30. package/dist/src/cloud-cli/applications/index.d.ts.map +1 -0
  31. package/dist/src/cloud-cli/applications/index.js +18 -0
  32. package/dist/src/cloud-cli/applications/index.js.map +1 -0
  33. package/dist/src/cloud-cli/applications/list-apps.d.ts +2 -0
  34. package/dist/src/cloud-cli/applications/list-apps.d.ts.map +1 -0
  35. package/dist/src/cloud-cli/applications/list-apps.js +45 -0
  36. package/dist/src/cloud-cli/applications/list-apps.js.map +1 -0
  37. package/dist/src/cloud-cli/applications/register-app.d.ts +2 -0
  38. package/dist/src/cloud-cli/applications/register-app.d.ts.map +1 -0
  39. package/dist/src/cloud-cli/applications/register-app.js +41 -0
  40. package/dist/src/cloud-cli/applications/register-app.js.map +1 -0
  41. package/dist/src/cloud-cli/applications/types.d.ts +7 -0
  42. package/dist/src/cloud-cli/applications/types.d.ts.map +1 -0
  43. package/dist/src/cloud-cli/applications/types.js +3 -0
  44. package/dist/src/cloud-cli/applications/types.js.map +1 -0
  45. package/dist/src/cloud-cli/applications/update-app.d.ts +2 -0
  46. package/dist/src/cloud-cli/applications/update-app.d.ts.map +1 -0
  47. package/dist/src/cloud-cli/applications/update-app.js +42 -0
  48. package/dist/src/cloud-cli/applications/update-app.js.map +1 -0
  49. package/dist/src/cloud-cli/cli.d.ts +3 -0
  50. package/dist/src/cloud-cli/cli.d.ts.map +1 -0
  51. package/dist/src/cloud-cli/cli.js +148 -0
  52. package/dist/src/cloud-cli/cli.js.map +1 -0
  53. package/dist/src/cloud-cli/login.d.ts +7 -0
  54. package/dist/src/cloud-cli/login.d.ts.map +1 -0
  55. package/dist/src/cloud-cli/login.js +40 -0
  56. package/dist/src/cloud-cli/login.js.map +1 -0
  57. package/dist/src/cloud-cli/register.d.ts +2 -0
  58. package/dist/src/cloud-cli/register.d.ts.map +1 -0
  59. package/dist/src/cloud-cli/register.js +35 -0
  60. package/dist/src/cloud-cli/register.js.map +1 -0
  61. package/dist/src/cloud-cli/userdb.d.ts +4 -0
  62. package/dist/src/cloud-cli/userdb.d.ts.map +1 -0
  63. package/dist/src/cloud-cli/userdb.js +149 -0
  64. package/dist/src/cloud-cli/userdb.js.map +1 -0
  65. package/dist/src/cloud-cli/utils.d.ts +3 -0
  66. package/dist/src/cloud-cli/utils.d.ts.map +1 -0
  67. package/dist/src/cloud-cli/utils.js +17 -0
  68. package/dist/src/cloud-cli/utils.js.map +1 -0
  69. package/dist/src/communicator.d.ts +24 -0
  70. package/dist/src/communicator.d.ts.map +1 -0
  71. package/dist/src/communicator.js +26 -0
  72. package/dist/src/communicator.js.map +1 -0
  73. package/dist/src/context.d.ts +60 -0
  74. package/dist/src/context.d.ts.map +1 -0
  75. package/dist/src/context.js +94 -0
  76. package/dist/src/context.js.map +1 -0
  77. package/dist/src/data_validation.d.ts +3 -0
  78. package/dist/src/data_validation.d.ts.map +1 -0
  79. package/dist/src/data_validation.js +168 -0
  80. package/dist/src/data_validation.js.map +1 -0
  81. package/dist/src/dbos-executor.d.ts +79 -0
  82. package/dist/src/dbos-executor.d.ts.map +1 -0
  83. package/dist/src/dbos-executor.js +408 -0
  84. package/dist/src/dbos-executor.js.map +1 -0
  85. package/dist/src/dbos-runtime/TypeParser.d.ts +33 -0
  86. package/dist/src/dbos-runtime/TypeParser.d.ts.map +1 -0
  87. package/dist/src/dbos-runtime/TypeParser.js +104 -0
  88. package/dist/src/dbos-runtime/TypeParser.js.map +1 -0
  89. package/dist/src/dbos-runtime/applicationVersion.d.ts +3 -0
  90. package/dist/src/dbos-runtime/applicationVersion.d.ts.map +1 -0
  91. package/dist/src/dbos-runtime/applicationVersion.js +13 -0
  92. package/dist/src/dbos-runtime/applicationVersion.js.map +1 -0
  93. package/dist/src/dbos-runtime/cli.d.ts +8 -0
  94. package/dist/src/dbos-runtime/cli.d.ts.map +1 -0
  95. package/dist/src/dbos-runtime/cli.js +52 -0
  96. package/dist/src/dbos-runtime/cli.js.map +1 -0
  97. package/dist/src/dbos-runtime/config.d.ts +28 -0
  98. package/dist/src/dbos-runtime/config.d.ts.map +1 -0
  99. package/dist/src/dbos-runtime/config.js +111 -0
  100. package/dist/src/dbos-runtime/config.js.map +1 -0
  101. package/dist/src/dbos-runtime/init.d.ts +7 -0
  102. package/dist/src/dbos-runtime/init.d.ts.map +1 -0
  103. package/dist/src/dbos-runtime/init.js +51 -0
  104. package/dist/src/dbos-runtime/init.js.map +1 -0
  105. package/dist/src/dbos-runtime/openApi.d.ts +35 -0
  106. package/dist/src/dbos-runtime/openApi.d.ts.map +1 -0
  107. package/dist/src/dbos-runtime/openApi.js +595 -0
  108. package/dist/src/dbos-runtime/openApi.js.map +1 -0
  109. package/dist/src/dbos-runtime/runtime.d.ts +28 -0
  110. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -0
  111. package/dist/src/dbos-runtime/runtime.js +96 -0
  112. package/dist/src/dbos-runtime/runtime.js.map +1 -0
  113. package/dist/src/dbos-runtime/tsDiagUtil.d.ts +16 -0
  114. package/dist/src/dbos-runtime/tsDiagUtil.d.ts.map +1 -0
  115. package/dist/src/dbos-runtime/tsDiagUtil.js +72 -0
  116. package/dist/src/dbos-runtime/tsDiagUtil.js.map +1 -0
  117. package/dist/src/decorators.d.ts +118 -0
  118. package/dist/src/decorators.d.ts.map +1 -0
  119. package/dist/src/decorators.js +467 -0
  120. package/dist/src/decorators.js.map +1 -0
  121. package/dist/src/error.d.ts +44 -0
  122. package/dist/src/error.d.ts.map +1 -0
  123. package/dist/src/error.js +164 -0
  124. package/dist/src/error.js.map +1 -0
  125. package/dist/src/httpServer/handler.d.ts +62 -0
  126. package/dist/src/httpServer/handler.d.ts.map +1 -0
  127. package/dist/src/httpServer/handler.js +168 -0
  128. package/dist/src/httpServer/handler.js.map +1 -0
  129. package/dist/src/httpServer/middleware.d.ts +56 -0
  130. package/dist/src/httpServer/middleware.d.ts.map +1 -0
  131. package/dist/src/httpServer/middleware.js +57 -0
  132. package/dist/src/httpServer/middleware.js.map +1 -0
  133. package/dist/src/httpServer/server.d.ts +40 -0
  134. package/dist/src/httpServer/server.d.ts.map +1 -0
  135. package/dist/src/httpServer/server.js +231 -0
  136. package/dist/src/httpServer/server.js.map +1 -0
  137. package/dist/src/index.d.ts +12 -0
  138. package/dist/src/index.d.ts.map +1 -0
  139. package/dist/src/index.js +75 -0
  140. package/dist/src/index.js.map +1 -0
  141. package/dist/src/provenance/provenance_daemon.d.ts +34 -0
  142. package/dist/src/provenance/provenance_daemon.d.ts.map +1 -0
  143. package/dist/src/provenance/provenance_daemon.js +86 -0
  144. package/dist/src/provenance/provenance_daemon.js.map +1 -0
  145. package/dist/src/system_database.d.ts +69 -0
  146. package/dist/src/system_database.d.ts.map +1 -0
  147. package/dist/src/system_database.js +384 -0
  148. package/dist/src/system_database.js.map +1 -0
  149. package/dist/src/telemetry/collector.d.ts +17 -0
  150. package/dist/src/telemetry/collector.d.ts.map +1 -0
  151. package/dist/src/telemetry/collector.js +77 -0
  152. package/dist/src/telemetry/collector.js.map +1 -0
  153. package/dist/src/telemetry/exporters.d.ts +29 -0
  154. package/dist/src/telemetry/exporters.d.ts.map +1 -0
  155. package/dist/src/telemetry/exporters.js +186 -0
  156. package/dist/src/telemetry/exporters.js.map +1 -0
  157. package/dist/src/telemetry/index.d.ts +7 -0
  158. package/dist/src/telemetry/index.d.ts.map +1 -0
  159. package/dist/src/telemetry/index.js +3 -0
  160. package/dist/src/telemetry/index.js.map +1 -0
  161. package/dist/src/telemetry/logs.d.ts +25 -0
  162. package/dist/src/telemetry/logs.d.ts.map +1 -0
  163. package/dist/src/telemetry/logs.js +91 -0
  164. package/dist/src/telemetry/logs.js.map +1 -0
  165. package/dist/src/telemetry/signals.d.ts +30 -0
  166. package/dist/src/telemetry/signals.d.ts.map +1 -0
  167. package/dist/src/telemetry/signals.js +11 -0
  168. package/dist/src/telemetry/signals.js.map +1 -0
  169. package/dist/src/telemetry/traces.d.ts +17 -0
  170. package/dist/src/telemetry/traces.d.ts.map +1 -0
  171. package/dist/src/telemetry/traces.js +76 -0
  172. package/dist/src/telemetry/traces.js.map +1 -0
  173. package/dist/src/testing/testing_runtime.d.ts +76 -0
  174. package/dist/src/testing/testing_runtime.d.ts.map +1 -0
  175. package/dist/src/testing/testing_runtime.js +147 -0
  176. package/dist/src/testing/testing_runtime.js.map +1 -0
  177. package/dist/src/transaction.d.ts +28 -0
  178. package/dist/src/transaction.d.ts.map +1 -0
  179. package/dist/src/transaction.js +27 -0
  180. package/dist/src/transaction.js.map +1 -0
  181. package/dist/src/user_database.d.ts +132 -0
  182. package/dist/src/user_database.d.ts.map +1 -0
  183. package/dist/src/user_database.js +324 -0
  184. package/dist/src/user_database.js.map +1 -0
  185. package/dist/src/utils.d.ts +6 -0
  186. package/dist/src/utils.d.ts.map +1 -0
  187. package/dist/src/utils.js +35 -0
  188. package/dist/src/utils.js.map +1 -0
  189. package/dist/src/workflow.d.ts +179 -0
  190. package/dist/src/workflow.d.ts.map +1 -0
  191. package/dist/src/workflow.js +446 -0
  192. package/dist/src/workflow.js.map +1 -0
  193. package/examples/hello/README.md +41 -0
  194. package/examples/hello/dbos-config.yaml +15 -0
  195. package/examples/hello/jest.config.js +8 -0
  196. package/examples/hello/knexfile.ts +23 -0
  197. package/examples/hello/migrations/create_dbos_hello_tables.ts +12 -0
  198. package/examples/hello/package.json +21 -0
  199. package/examples/hello/src/operations.test.ts +38 -0
  200. package/examples/hello/src/operations.ts +21 -0
  201. package/examples/hello/start_postgres_docker.sh +23 -0
  202. package/examples/hello/tsconfig.json +24 -0
  203. package/package.json +78 -0
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DBOSRuntime = void 0;
30
+ const dbos_executor_1 = require("../dbos-executor");
31
+ const server_1 = require("../httpServer/server");
32
+ const fs = __importStar(require("fs"));
33
+ const lodash_1 = require("lodash");
34
+ const error_1 = require("../error");
35
+ const node_path_1 = __importDefault(require("node:path"));
36
+ class DBOSRuntime {
37
+ runtimeConfig;
38
+ wfe;
39
+ server = null;
40
+ constructor(dbosConfig, runtimeConfig) {
41
+ this.runtimeConfig = runtimeConfig;
42
+ // Initialize workflow executor.
43
+ this.wfe = new dbos_executor_1.DBOSExecutor(dbosConfig);
44
+ }
45
+ /**
46
+ * Initialize the runtime by loading user functions and initializing the workflow executor object
47
+ */
48
+ async init() {
49
+ const exports = await this.loadFunctions();
50
+ if (exports === null) {
51
+ this.wfe.logger.error("operations not found");
52
+ throw new error_1.DBOSError("operations not found");
53
+ }
54
+ const classes = [];
55
+ for (const key in exports) {
56
+ if ((0, lodash_1.isObject)(exports[key])) {
57
+ classes.push(exports[key]);
58
+ this.wfe.logger.debug(`Loaded class: ${key}`);
59
+ }
60
+ }
61
+ await this.wfe.init(...classes);
62
+ }
63
+ /**
64
+ * Load an application's workflow functions, assumed to be in src/operations.ts (which is compiled to dist/operations.js).
65
+ */
66
+ loadFunctions() {
67
+ const entrypoint = this.runtimeConfig.entrypoint;
68
+ const operations = node_path_1.default.isAbsolute(entrypoint) ? entrypoint : node_path_1.default.join(process.cwd(), entrypoint);
69
+ if (fs.existsSync(operations)) {
70
+ /* eslint-disable-next-line @typescript-eslint/no-var-requires */
71
+ return Promise.resolve(`${operations}`).then(s => __importStar(require(s)));
72
+ }
73
+ else {
74
+ this.wfe.logger.warn(`${entrypoint} not found`);
75
+ return null;
76
+ }
77
+ }
78
+ /**
79
+ * Start an HTTP server hosting an application's functions.
80
+ */
81
+ startServer() {
82
+ // CLI takes precedence over config file, which takes precedence over default config.
83
+ const server = new server_1.DBOSHttpServer(this.wfe);
84
+ this.server = server.listen(this.runtimeConfig.port);
85
+ this.wfe.logRegisteredHTTPUrls();
86
+ }
87
+ /**
88
+ * Shut down the HTTP server and destroy workflow executor.
89
+ */
90
+ async destroy() {
91
+ this.server?.close();
92
+ await this.wfe?.destroy();
93
+ }
94
+ }
95
+ exports.DBOSRuntime = DBOSRuntime;
96
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/dbos-runtime/runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4D;AAC5D,iDAAsD;AACtD,uCAAyB;AACzB,mCAAkC;AAElC,oCAAqC;AACrC,0DAA6B;AAY7B,MAAa,WAAW;IAI+B;IAH7C,GAAG,CAAe;IAClB,MAAM,GAAkB,IAAI,CAAC;IAErC,YAAY,UAAsB,EAAmB,aAAgC;QAAhC,kBAAa,GAAb,aAAa,CAAmB;QACnF,gCAAgC;QAChC,IAAI,CAAC,GAAG,GAAG,IAAI,4BAAY,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI;QACR,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC3C,IAAI,OAAO,KAAK,IAAI,EAAE;YACpB,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;YA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AED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;QACrB,MAAM,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC;IAC5B,CAAC;CACF;AAhED,kCAgEC"}
@@ -0,0 +1,16 @@
1
+ import * as ts from 'typescript';
2
+ export interface DiagnosticOptions {
3
+ code?: number;
4
+ node?: ts.Node;
5
+ category?: ts.DiagnosticCategory;
6
+ }
7
+ export declare function createDiagnostic(messageText: string, options?: DiagnosticOptions): ts.Diagnostic;
8
+ export declare function diagResult<T>(value: T, diags: readonly ts.Diagnostic[]): T | undefined;
9
+ export declare function logDiagnostics(diags: readonly ts.Diagnostic[]): void;
10
+ export declare class DiagnosticsCollector {
11
+ #private;
12
+ get diags(): readonly ts.Diagnostic[];
13
+ raise(message: string, node?: ts.Node): void;
14
+ warn(message: string, node?: ts.Node): void;
15
+ }
16
+ //# sourceMappingURL=tsDiagUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsDiagUtil.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/tsDiagUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC;IACf,QAAQ,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,EAAE,CAAC,UAAU,CAchG;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,UAAU,EAAE,GAAG,CAAC,GAAG,SAAS,CAEtF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,UAAU,EAAE,GAAG,IAAI,CAYpE;AAED,qBAAa,oBAAoB;;IAE/B,IAAI,KAAK,6BAAsD;IAE/D,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI;IAI5C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI;CAG5C"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.DiagnosticsCollector = exports.logDiagnostics = exports.diagResult = exports.createDiagnostic = void 0;
27
+ const ts = __importStar(require("typescript"));
28
+ const printer = ts.createPrinter();
29
+ function createDiagnostic(messageText, options) {
30
+ const node = options?.node;
31
+ const category = options?.category ?? ts.DiagnosticCategory.Error;
32
+ const code = options?.code ?? 0;
33
+ return {
34
+ category,
35
+ code,
36
+ file: node?.getSourceFile(),
37
+ length: node?.getWidth(),
38
+ messageText,
39
+ start: node?.getStart(),
40
+ source: node ? printer.printNode(ts.EmitHint.Unspecified, node, node.getSourceFile()) : undefined,
41
+ };
42
+ }
43
+ exports.createDiagnostic = createDiagnostic;
44
+ function diagResult(value, diags) {
45
+ return diags.some(e => e.category === ts.DiagnosticCategory.Error) ? undefined : value;
46
+ }
47
+ exports.diagResult = diagResult;
48
+ function logDiagnostics(diags) {
49
+ if (diags.length > 0) {
50
+ const formatHost = {
51
+ getCurrentDirectory: () => ts.sys.getCurrentDirectory(),
52
+ getNewLine: () => ts.sys.newLine,
53
+ getCanonicalFileName: (fileName) => ts.sys.useCaseSensitiveFileNames
54
+ ? fileName : fileName.toLowerCase()
55
+ };
56
+ const text = ts.formatDiagnosticsWithColorAndContext(diags, formatHost);
57
+ console.log(text);
58
+ }
59
+ }
60
+ exports.logDiagnostics = logDiagnostics;
61
+ class DiagnosticsCollector {
62
+ #diags = new Array();
63
+ get diags() { return this.#diags; }
64
+ raise(message, node) {
65
+ this.#diags.push(createDiagnostic(message, { node }));
66
+ }
67
+ warn(message, node) {
68
+ this.#diags.push(createDiagnostic(message, { node, category: ts.DiagnosticCategory.Warning }));
69
+ }
70
+ }
71
+ exports.DiagnosticsCollector = DiagnosticsCollector;
72
+ //# sourceMappingURL=tsDiagUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsDiagUtil.js","sourceRoot":"","sources":["../../../src/dbos-runtime/tsDiagUtil.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,MAAM,OAAO,GAAG,EAAE,CAAC,aAAa,EAAE,CAAC;AAQnC,SAAgB,gBAAgB,CAAC,WAAmB,EAAE,OAA2B;IAC/E,MAAM,IAAI,GAAG,OAAO,EAAE,IAAI,CAAC;IAC3B,MAAM,QAAQ,GAAG,OAAO,EAAE,QAAQ,IAAI,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC;IAClE,MAAM,IAAI,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AC;AAZD,wCAYC;AAED,MAAa,oBAAoB;IACtB,MAAM,GAAG,IAAI,KAAK,EAAiB,CAAC;IAC7C,IAAI,KAAK,KAAK,OAAO,IAAI,CAAC,MAAkC,CAAC,CAAC,CAAC;IAE/D,KAAK,CAAC,OAAe,EAAE,IAAc;QACnC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,IAAI,CAAC,OAAe,EAAE,IAAc;QAClC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC;CACF;AAXD,oDAWC"}
@@ -0,0 +1,118 @@
1
+ import "reflect-metadata";
2
+ import { TransactionConfig, TransactionContext } from "./transaction";
3
+ import { WorkflowConfig, WorkflowContext } from "./workflow";
4
+ import { DBOSContext, InitContext } from "./context";
5
+ import { CommunicatorConfig, CommunicatorContext } from "./communicator";
6
+ /**
7
+ * Any column type column can be.
8
+ */
9
+ export type DBOSFieldType = "integer" | "double" | "decimal" | "timestamp" | "text" | "varchar" | "boolean" | "uuid" | "json";
10
+ export declare class DBOSDataType {
11
+ dataType: DBOSFieldType;
12
+ length: number;
13
+ precision: number;
14
+ scale: number;
15
+ /** Varchar has length */
16
+ static varchar(length: number): DBOSDataType;
17
+ /** Some decimal has precision / scale (as opposed to floating point decimal) */
18
+ static decimal(precision: number, scale: number): DBOSDataType;
19
+ /** Take type from reflect metadata */
20
+ static fromArg(arg: Function): DBOSDataType;
21
+ formatAsString(): string;
22
+ }
23
+ export declare enum LogMasks {
24
+ NONE = "NONE",
25
+ HASH = "HASH",
26
+ SKIP = "SKIP"
27
+ }
28
+ export declare enum ArgRequiredOptions {
29
+ REQUIRED = "REQUIRED",
30
+ OPTIONAL = "OPTIONAL",
31
+ DEFAULT = "DEFAULT"
32
+ }
33
+ export declare class MethodParameter {
34
+ name: string;
35
+ required: ArgRequiredOptions;
36
+ validate: boolean;
37
+ logMask: LogMasks;
38
+ argType: Function;
39
+ dataType: DBOSDataType;
40
+ index: number;
41
+ constructor(idx: number, at: Function);
42
+ }
43
+ export interface RegistrationDefaults {
44
+ name: string;
45
+ requiredRole: string[] | undefined;
46
+ defaultArgRequired: ArgRequiredOptions;
47
+ }
48
+ export interface MethodRegistrationBase {
49
+ name: string;
50
+ args: MethodParameter[];
51
+ defaults?: RegistrationDefaults;
52
+ getRequiredRoles(): string[];
53
+ workflowConfig?: WorkflowConfig;
54
+ txnConfig?: TransactionConfig;
55
+ commConfig?: CommunicatorConfig;
56
+ registeredFunction: Function | undefined;
57
+ invoke(pthis: unknown, args: unknown[]): unknown;
58
+ }
59
+ export declare class MethodRegistration<This, Args extends unknown[], Return> implements MethodRegistrationBase {
60
+ defaults?: RegistrationDefaults | undefined;
61
+ name: string;
62
+ requiredRole: string[] | undefined;
63
+ args: MethodParameter[];
64
+ constructor(origFunc: (this: This, ...args: Args) => Promise<Return>);
65
+ debug: boolean;
66
+ needInitialized: boolean;
67
+ origFunction: (this: This, ...args: Args) => Promise<Return>;
68
+ registeredFunction: ((this: This, ...args: Args) => Promise<Return>) | undefined;
69
+ workflowConfig?: WorkflowConfig;
70
+ txnConfig?: TransactionConfig;
71
+ commConfig?: CommunicatorConfig;
72
+ init: boolean;
73
+ invoke(pthis: This, args: Args): Promise<Return>;
74
+ getRequiredRoles(): string[];
75
+ }
76
+ export declare class ClassRegistration<CT extends {
77
+ new (...args: unknown[]): object;
78
+ }> implements RegistrationDefaults {
79
+ name: string;
80
+ requiredRole: string[] | undefined;
81
+ defaultArgRequired: ArgRequiredOptions;
82
+ needsInitialized: boolean;
83
+ ormEntities: Function[];
84
+ ctor: CT;
85
+ constructor(ctor: CT);
86
+ }
87
+ export declare function getRegisteredOperations(target: object): ReadonlyArray<MethodRegistrationBase>;
88
+ export declare function getOrCreateMethodArgsRegistration(target: object, propertyKey: string | symbol): MethodParameter[];
89
+ export declare function registerAndWrapFunction<This, Args extends unknown[], Return>(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>): {
90
+ descriptor: TypedPropertyDescriptor<(this: This, ...args: Args) => Promise<Return>>;
91
+ registration: MethodRegistration<This, Args, Return>;
92
+ };
93
+ export declare function getOrCreateClassRegistration<CT extends {
94
+ new (...args: unknown[]): object;
95
+ }>(ctor: CT): ClassRegistration<CT>;
96
+ export declare function ArgRequired(target: object, propertyKey: string | symbol, parameterIndex: number): void;
97
+ export declare function ArgOptional(target: object, propertyKey: string | symbol, parameterIndex: number): void;
98
+ export declare function SkipLogging(target: object, propertyKey: string | symbol, parameterIndex: number): void;
99
+ export declare function LogMask(mask: LogMasks): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
100
+ export declare function ArgName(name: string): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
101
+ export declare function ArgDate(): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
102
+ export declare function ArgVarchar(length: number): (target: object, propertyKey: string | symbol, parameterIndex: number) => void;
103
+ export declare function DefaultRequiredRole(anyOf: string[]): <T extends new (...args: unknown[]) => object>(ctor: T) => void;
104
+ export declare function DefaultArgRequired<T extends {
105
+ new (...args: unknown[]): object;
106
+ }>(ctor: T): void;
107
+ export declare function DefaultArgOptional<T extends {
108
+ new (...args: unknown[]): object;
109
+ }>(ctor: T): void;
110
+ export declare function Debug(): <This, Ctx extends DBOSContext, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>;
111
+ export declare function RequiredRole(anyOf: string[]): <This, Ctx extends DBOSContext, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, ...args: Args) => Promise<Return>>;
112
+ export declare function Workflow(config?: WorkflowConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: WorkflowContext, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: WorkflowContext, ...args: Args) => Promise<Return>>;
113
+ export declare function Transaction(config?: TransactionConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: TransactionContext<any>, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: TransactionContext<any>, ...args: Args) => Promise<Return>>;
114
+ export declare function Communicator(config?: CommunicatorConfig): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: CommunicatorContext, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: CommunicatorContext, ...args: Args) => Promise<Return>>;
115
+ export declare function OrmEntities(entities: Function[]): <T extends new (...args: unknown[]) => object>(ctor: T) => void;
116
+ export declare function DBOSInitializer(): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: InitContext, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: InitContext, ...args: Args) => Promise<Return>>;
117
+ export declare function DBOSDeploy(): <This, Args extends unknown[], Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: InitContext, ...args: Args) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: InitContext, ...args: Args) => Promise<Return>>;
118
+ //# sourceMappingURL=decorators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,iBAA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