@platformatic/nest 3.38.1 → 3.40.0

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.
Files changed (3) hide show
  1. package/config.d.ts +14 -0
  2. package/package.json +6 -6
  3. package/schema.json +87 -1
package/config.d.ts CHANGED
@@ -55,6 +55,10 @@ export interface PlatformaticNestJSConfig {
55
55
  customLevels?: {
56
56
  [k: string]: unknown;
57
57
  };
58
+ openTelemetryExporter?: {
59
+ protocol: "grpc" | "http";
60
+ url: string;
61
+ };
58
62
  [k: string]: unknown;
59
63
  };
60
64
  server?: {
@@ -186,6 +190,10 @@ export interface PlatformaticNestJSConfig {
186
190
  customLevels?: {
187
191
  [k: string]: unknown;
188
192
  };
193
+ openTelemetryExporter?: {
194
+ protocol: "grpc" | "http";
195
+ url: string;
196
+ };
189
197
  [k: string]: unknown;
190
198
  };
191
199
  server?: {
@@ -324,6 +332,12 @@ export interface PlatformaticNestJSConfig {
324
332
  */
325
333
  socket?: string;
326
334
  };
335
+ management?:
336
+ | boolean
337
+ | {
338
+ enabled?: boolean;
339
+ operations?: string[];
340
+ };
327
341
  metrics?:
328
342
  | boolean
329
343
  | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/nest",
3
- "version": "3.38.1",
3
+ "version": "3.40.0",
4
4
  "description": "Platformatic Nest.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,9 +18,9 @@
18
18
  "get-port": "^7.1.0",
19
19
  "light-my-request": "^6.0.0",
20
20
  "pino-http": "^10.2.0",
21
- "@platformatic/basic": "3.38.1",
22
- "@platformatic/foundation": "3.38.1",
23
- "@platformatic/generators": "3.38.1"
21
+ "@platformatic/basic": "3.40.0",
22
+ "@platformatic/generators": "3.40.0",
23
+ "@platformatic/foundation": "3.40.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@nestjs/cli": "^11.0.7",
@@ -33,8 +33,8 @@
33
33
  "neostandard": "^0.12.0",
34
34
  "tsx": "^4.19.0",
35
35
  "typescript": "^5.5.4",
36
- "@platformatic/service": "3.38.1",
37
- "@platformatic/gateway": "3.38.1"
36
+ "@platformatic/gateway": "3.40.0",
37
+ "@platformatic/service": "3.40.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/nest/3.38.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/nest/3.40.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic NestJS Config",
5
5
  "type": "object",
@@ -152,6 +152,26 @@
152
152
  "customLevels": {
153
153
  "type": "object",
154
154
  "additionalProperties": true
155
+ },
156
+ "openTelemetryExporter": {
157
+ "type": "object",
158
+ "properties": {
159
+ "protocol": {
160
+ "type": "string",
161
+ "enum": [
162
+ "grpc",
163
+ "http"
164
+ ]
165
+ },
166
+ "url": {
167
+ "type": "string"
168
+ }
169
+ },
170
+ "required": [
171
+ "protocol",
172
+ "url"
173
+ ],
174
+ "additionalProperties": false
155
175
  }
156
176
  },
157
177
  "default": {},
@@ -716,6 +736,29 @@
716
736
  "additionalProperties": false
717
737
  }
718
738
  ]
739
+ },
740
+ "management": {
741
+ "anyOf": [
742
+ {
743
+ "type": "boolean"
744
+ },
745
+ {
746
+ "type": "object",
747
+ "properties": {
748
+ "enabled": {
749
+ "type": "boolean",
750
+ "default": true
751
+ },
752
+ "operations": {
753
+ "type": "array",
754
+ "items": {
755
+ "type": "string"
756
+ }
757
+ }
758
+ },
759
+ "additionalProperties": false
760
+ }
761
+ ]
719
762
  }
720
763
  }
721
764
  }
@@ -935,6 +978,26 @@
935
978
  "customLevels": {
936
979
  "type": "object",
937
980
  "additionalProperties": true
981
+ },
982
+ "openTelemetryExporter": {
983
+ "type": "object",
984
+ "properties": {
985
+ "protocol": {
986
+ "type": "string",
987
+ "enum": [
988
+ "grpc",
989
+ "http"
990
+ ]
991
+ },
992
+ "url": {
993
+ "type": "string"
994
+ }
995
+ },
996
+ "required": [
997
+ "protocol",
998
+ "url"
999
+ ],
1000
+ "additionalProperties": false
938
1001
  }
939
1002
  },
940
1003
  "default": {},
@@ -1435,6 +1498,29 @@
1435
1498
  ],
1436
1499
  "default": true
1437
1500
  },
1501
+ "management": {
1502
+ "anyOf": [
1503
+ {
1504
+ "type": "boolean"
1505
+ },
1506
+ {
1507
+ "type": "object",
1508
+ "properties": {
1509
+ "enabled": {
1510
+ "type": "boolean",
1511
+ "default": true
1512
+ },
1513
+ "operations": {
1514
+ "type": "array",
1515
+ "items": {
1516
+ "type": "string"
1517
+ }
1518
+ }
1519
+ },
1520
+ "additionalProperties": false
1521
+ }
1522
+ ]
1523
+ },
1438
1524
  "metrics": {
1439
1525
  "anyOf": [
1440
1526
  {