@dbos-inc/dbos-sdk 1.0.2 → 1.1.5-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -8
- package/dist/src/context.d.ts +1 -1
- package/dist/src/dbos-runtime/runtime.js +1 -1
- package/dist/src/dbos-runtime/runtime.js.map +1 -1
- package/dist/src/httpServer/server.d.ts +1 -1
- package/dist/src/testing/testing_runtime.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/examples/hello/tsconfig.json +1 -1
- package/package.json +1 -1
- package/dbos-config.schema.json +0 -122
- package/dbos-test-config.yaml +0 -15
@@ -4,7 +4,7 @@
|
|
4
4
|
"target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
5
5
|
"experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
6
6
|
"emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
7
|
-
"module": "
|
7
|
+
"module": "Node16", /* Specify what module code is generated. */
|
8
8
|
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
9
9
|
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
10
10
|
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
package/package.json
CHANGED
package/dbos-config.schema.json
DELETED
@@ -1,122 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
3
|
-
"title": "DBOS Config",
|
4
|
-
"type": "object",
|
5
|
-
"additionalProperties": false,
|
6
|
-
"properties": {
|
7
|
-
"database": {
|
8
|
-
"type": "object",
|
9
|
-
"additionalProperties": false,
|
10
|
-
"properties": {
|
11
|
-
"hostname": {
|
12
|
-
"type": "string",
|
13
|
-
"description": "The hostname or IP address of the application database"
|
14
|
-
},
|
15
|
-
"port": {
|
16
|
-
"type": "number",
|
17
|
-
"description": "The port number of the application database"
|
18
|
-
},
|
19
|
-
"username": {
|
20
|
-
"type": "string",
|
21
|
-
"description": "The username to use when connecting to the application database"
|
22
|
-
},
|
23
|
-
"password": {
|
24
|
-
"type": "string",
|
25
|
-
"description": "The password to use when connecting to the application database. Developers are strongly encouraged to use environment variable substitution to avoid storing secrets in source."
|
26
|
-
},
|
27
|
-
"connectionTimeoutMillis": {
|
28
|
-
"type": "number",
|
29
|
-
"description": "The number of milliseconds the system waits before timing out when connecting to the application database"
|
30
|
-
},
|
31
|
-
"app_db_name": {
|
32
|
-
"type": "string",
|
33
|
-
"description": "The name of the application database"
|
34
|
-
},
|
35
|
-
"ssl_ca": {
|
36
|
-
"type": "string",
|
37
|
-
"description": "If using SSL/TLS to securely connect to a database, path to an SSL root certificate file"
|
38
|
-
},
|
39
|
-
"app_db_client": {
|
40
|
-
"type": "string",
|
41
|
-
"description": "Specify the database client to use to connect to the application database",
|
42
|
-
"enum": [
|
43
|
-
"pg-node",
|
44
|
-
"prisma",
|
45
|
-
"typeorm",
|
46
|
-
"knex"
|
47
|
-
]
|
48
|
-
},
|
49
|
-
"migrate": {
|
50
|
-
"type": "array",
|
51
|
-
"description": "Specify a list of user DB migration commands to run"
|
52
|
-
},
|
53
|
-
"rollback": {
|
54
|
-
"type": "array",
|
55
|
-
"description": "Specify a list of user DB rollback commands to run"
|
56
|
-
}
|
57
|
-
},
|
58
|
-
"required": [
|
59
|
-
"hostname",
|
60
|
-
"port",
|
61
|
-
"username",
|
62
|
-
"password",
|
63
|
-
"app_db_name"
|
64
|
-
]
|
65
|
-
},
|
66
|
-
"telemetry": {
|
67
|
-
"type": "object",
|
68
|
-
"additionalProperties": false,
|
69
|
-
"properties": {
|
70
|
-
"logs": {
|
71
|
-
"type": "object",
|
72
|
-
"additionalProperties": false,
|
73
|
-
"properties": {
|
74
|
-
"addContextMetadata": {
|
75
|
-
"type": "boolean",
|
76
|
-
"description": "Adds contextual information, such as workflow UUID, to each log entry"
|
77
|
-
},
|
78
|
-
"logLevel": {
|
79
|
-
"type": "string",
|
80
|
-
"description": "A filter on what logs should be printed to the standard output"
|
81
|
-
},
|
82
|
-
"silent": {
|
83
|
-
"type": "boolean",
|
84
|
-
"description": "Silences the logger such that nothing is printed to the standard output"
|
85
|
-
}
|
86
|
-
}
|
87
|
-
},
|
88
|
-
"traces": {
|
89
|
-
"type": "object",
|
90
|
-
"additionalProperties": false,
|
91
|
-
"properties": {
|
92
|
-
"enabled": {
|
93
|
-
"type": "boolean",
|
94
|
-
"description": "Whether or not to export traces in Open Telemetry format"
|
95
|
-
},
|
96
|
-
"endpoint": {
|
97
|
-
"type": "string",
|
98
|
-
"description": "The FQDN of a Jaeger endpoint."
|
99
|
-
}
|
100
|
-
}
|
101
|
-
}
|
102
|
-
}
|
103
|
-
},
|
104
|
-
"runtimeConfig": {
|
105
|
-
"type": "object",
|
106
|
-
"additionalProperties": false,
|
107
|
-
"properties": {
|
108
|
-
"entrypoint": {
|
109
|
-
"type": "string"
|
110
|
-
},
|
111
|
-
"port": {
|
112
|
-
"type": "number"
|
113
|
-
}
|
114
|
-
}
|
115
|
-
},
|
116
|
-
"application": {},
|
117
|
-
"dbClientMetadata": {}
|
118
|
-
},
|
119
|
-
"required": [
|
120
|
-
"database"
|
121
|
-
]
|
122
|
-
}
|
package/dbos-test-config.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
database:
|
2
|
-
hostname: 'localhost'
|
3
|
-
port: 5432
|
4
|
-
username: 'postgres'
|
5
|
-
password: ${PGPASSWORD}
|
6
|
-
app_db_name: 'dbostest'
|
7
|
-
app_db_client: 'pg-node'
|
8
|
-
connectionTimeoutMillis: 3000
|
9
|
-
telemetry:
|
10
|
-
logs:
|
11
|
-
logLevel: 'debug'
|
12
|
-
addContextMetadata: true
|
13
|
-
silent: true
|
14
|
-
application:
|
15
|
-
testvalue: 'postgres'
|