stepzen 0.43.0 → 0.44.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.43.0",
2
+ "version": "0.44.0-beta.0",
3
3
  "commands": {
4
4
  "delete": {
5
5
  "id": "delete",
@@ -923,6 +923,124 @@
923
923
  },
924
924
  "args": {}
925
925
  },
926
+ "import:db2": {
927
+ "id": "import:db2",
928
+ "description": "Import a schema for a Db2 data source into your GraphQL API.\n\nstepzen import db2 automatically introspects a Db2 database, generates a GraphQL schema for accessing this database through a StepZen API, and merges the generated types, queries and mutations into your GraphQL schema.",
929
+ "strict": true,
930
+ "pluginName": "stepzen",
931
+ "pluginAlias": "stepzen",
932
+ "pluginType": "core",
933
+ "aliases": [],
934
+ "flags": {
935
+ "help": {
936
+ "name": "help",
937
+ "type": "boolean",
938
+ "char": "h",
939
+ "description": "Show CLI help",
940
+ "allowNo": false
941
+ },
942
+ "non-interactive": {
943
+ "name": "non-interactive",
944
+ "type": "boolean",
945
+ "description": "Disable all interactive prompts",
946
+ "allowNo": false
947
+ },
948
+ "dir": {
949
+ "name": "dir",
950
+ "type": "option",
951
+ "description": "Working directory",
952
+ "multiple": false
953
+ },
954
+ "silent": {
955
+ "name": "silent",
956
+ "type": "boolean",
957
+ "description": "This is an internal flag passed by the (no-arg) Import command when it launches a data-source specific import command. The intent is to avoid showing a welcome message twice (if its already been shown by the (no-arg) Import command).",
958
+ "hidden": true,
959
+ "allowNo": false
960
+ },
961
+ "name": {
962
+ "name": "name",
963
+ "type": "option",
964
+ "description": "Subfolder inside the workspace folder to save the imported schema files to. Defaults to the name of the imported schema.",
965
+ "multiple": false
966
+ },
967
+ "overwrite": {
968
+ "name": "overwrite",
969
+ "type": "boolean",
970
+ "description": "Overwrite any existing schema with the same name. Cannot be used without also providing a --name flag.",
971
+ "hidden": true,
972
+ "allowNo": false,
973
+ "dependsOn": [
974
+ "name"
975
+ ]
976
+ },
977
+ "db-host": {
978
+ "name": "db-host",
979
+ "type": "option",
980
+ "description": "Database host and optional port (as HOST[:PORT])",
981
+ "multiple": false
982
+ },
983
+ "db-user": {
984
+ "name": "db-user",
985
+ "type": "option",
986
+ "description": "Database user name",
987
+ "multiple": false
988
+ },
989
+ "db-password": {
990
+ "name": "db-password",
991
+ "type": "option",
992
+ "description": "Database password",
993
+ "multiple": false
994
+ },
995
+ "db-database": {
996
+ "name": "db-database",
997
+ "type": "option",
998
+ "description": "Name of database to import",
999
+ "multiple": false
1000
+ },
1001
+ "db-schema": {
1002
+ "name": "db-schema",
1003
+ "type": "option",
1004
+ "description": "Database schema to import tables from (default: public)",
1005
+ "multiple": false
1006
+ },
1007
+ "db-link-types": {
1008
+ "name": "db-link-types",
1009
+ "type": "boolean",
1010
+ "description": "Automatically link types based on foreign key relationships using @materializer (https://stepzen.com/docs/features/linking-types)",
1011
+ "allowNo": false
1012
+ },
1013
+ "db-include": {
1014
+ "name": "db-include",
1015
+ "type": "option",
1016
+ "description": "Should the generated GraphQL schema be based only on database views, only on tables or on both",
1017
+ "multiple": false,
1018
+ "options": [
1019
+ "tables-only",
1020
+ "views-only",
1021
+ "tables-and-views"
1022
+ ]
1023
+ },
1024
+ "db-use-deprecated-2022-naming": {
1025
+ "name": "db-use-deprecated-2022-naming",
1026
+ "type": "boolean",
1027
+ "description": "Use the deprecated pre-2023 naming convention in the generated GraphQL schema:\n\t- the generated type and property names are auto-capitalized into PascalCase\n\t- the generated field names use the getCustomer and getCustomerList style.\n\nOn the other hand, when using the default naming convention:\n\t- the generated type and property names match exactly the DB table and column names\n\t- the generated field names use the customer and customerList style.",
1028
+ "allowNo": false
1029
+ },
1030
+ "ssl-connection": {
1031
+ "name": "ssl-connection",
1032
+ "type": "boolean",
1033
+ "description": "Is SSL enabled?",
1034
+ "allowNo": false
1035
+ }
1036
+ },
1037
+ "args": {
1038
+ "dsn": {
1039
+ "name": "dsn",
1040
+ "description": "(optional) Data Source Name (DSN) of a Db2 database.\nExample: 'jdbc:db2://host:port/db:user=username;password=password;schema=schema;sslConnection=true/false;'\n\nFlags, such as --db-host, override the corresponding parts of the DSN (if both are provided)."
1041
+ }
1042
+ }
1043
+ },
926
1044
  "import:flow": {
927
1045
  "id": "import:flow",
928
1046
  "description": "Import StepZen flow expression as a query field into your GraphQL API.\n\nstepzen import flow automatically introspects a GraphQL endpoint and adds a @sequence implementing the given flow expression into your GraphQL schema.",
@@ -1106,7 +1224,7 @@
1106
1224
  "args": {
1107
1225
  "source": {
1108
1226
  "name": "source",
1109
- "description": "kind of the data source: curl, graphql, mysql, postgresql, snowflake (or a full DSN string)"
1227
+ "description": "kind of the data source: curl, graphql, mysql, postgresql, snowflake, db2, oracle (or a full DSN string)"
1110
1228
  }
1111
1229
  }
1112
1230
  },
@@ -1277,6 +1395,118 @@
1277
1395
  }
1278
1396
  }
1279
1397
  },
1398
+ "import:oracle": {
1399
+ "id": "import:oracle",
1400
+ "description": "Import a schema for a oracle data source into your GraphQL API.\n\nstepzen import oracle automatically introspects an Oracle database, generates a GraphQL schema for accessing this database through a StepZen API, and merges the generated types, queries and mutations into your GraphQL schema.",
1401
+ "strict": true,
1402
+ "pluginName": "stepzen",
1403
+ "pluginAlias": "stepzen",
1404
+ "pluginType": "core",
1405
+ "aliases": [],
1406
+ "flags": {
1407
+ "help": {
1408
+ "name": "help",
1409
+ "type": "boolean",
1410
+ "char": "h",
1411
+ "description": "Show CLI help",
1412
+ "allowNo": false
1413
+ },
1414
+ "non-interactive": {
1415
+ "name": "non-interactive",
1416
+ "type": "boolean",
1417
+ "description": "Disable all interactive prompts",
1418
+ "allowNo": false
1419
+ },
1420
+ "dir": {
1421
+ "name": "dir",
1422
+ "type": "option",
1423
+ "description": "Working directory",
1424
+ "multiple": false
1425
+ },
1426
+ "silent": {
1427
+ "name": "silent",
1428
+ "type": "boolean",
1429
+ "description": "This is an internal flag passed by the (no-arg) Import command when it launches a data-source specific import command. The intent is to avoid showing a welcome message twice (if its already been shown by the (no-arg) Import command).",
1430
+ "hidden": true,
1431
+ "allowNo": false
1432
+ },
1433
+ "name": {
1434
+ "name": "name",
1435
+ "type": "option",
1436
+ "description": "Subfolder inside the workspace folder to save the imported schema files to. Defaults to the name of the imported schema.",
1437
+ "multiple": false
1438
+ },
1439
+ "overwrite": {
1440
+ "name": "overwrite",
1441
+ "type": "boolean",
1442
+ "description": "Overwrite any existing schema with the same name. Cannot be used without also providing a --name flag.",
1443
+ "hidden": true,
1444
+ "allowNo": false,
1445
+ "dependsOn": [
1446
+ "name"
1447
+ ]
1448
+ },
1449
+ "db-host": {
1450
+ "name": "db-host",
1451
+ "type": "option",
1452
+ "description": "Database host and optional port (as HOST[:PORT])",
1453
+ "multiple": false
1454
+ },
1455
+ "db-user": {
1456
+ "name": "db-user",
1457
+ "type": "option",
1458
+ "description": "Database user name",
1459
+ "multiple": false
1460
+ },
1461
+ "db-password": {
1462
+ "name": "db-password",
1463
+ "type": "option",
1464
+ "description": "Database password",
1465
+ "multiple": false
1466
+ },
1467
+ "db-database": {
1468
+ "name": "db-database",
1469
+ "type": "option",
1470
+ "description": "Name of database to import",
1471
+ "multiple": false
1472
+ },
1473
+ "db-schema": {
1474
+ "name": "db-schema",
1475
+ "type": "option",
1476
+ "description": "Database schema to import tables from (default: public)",
1477
+ "multiple": false
1478
+ },
1479
+ "db-link-types": {
1480
+ "name": "db-link-types",
1481
+ "type": "boolean",
1482
+ "description": "Automatically link types based on foreign key relationships using @materializer (https://stepzen.com/docs/features/linking-types)",
1483
+ "allowNo": false
1484
+ },
1485
+ "db-include": {
1486
+ "name": "db-include",
1487
+ "type": "option",
1488
+ "description": "Should the generated GraphQL schema be based only on database views, only on tables or on both",
1489
+ "multiple": false,
1490
+ "options": [
1491
+ "tables-only",
1492
+ "views-only",
1493
+ "tables-and-views"
1494
+ ]
1495
+ },
1496
+ "db-use-deprecated-2022-naming": {
1497
+ "name": "db-use-deprecated-2022-naming",
1498
+ "type": "boolean",
1499
+ "description": "Use the deprecated pre-2023 naming convention in the generated GraphQL schema:\n\t- the generated type and property names are auto-capitalized into PascalCase\n\t- the generated field names use the getCustomer and getCustomerList style.\n\nOn the other hand, when using the default naming convention:\n\t- the generated type and property names match exactly the DB table and column names\n\t- the generated field names use the customer and customerList style.",
1500
+ "allowNo": false
1501
+ }
1502
+ },
1503
+ "args": {
1504
+ "dsn": {
1505
+ "name": "dsn",
1506
+ "description": "(optional) Data Source Name (DSN) of an Oracle database.\nExample: 'jdbc:oracle:thin:user/password@//host:port/db?currentschema=schema'\n\nFlags, such as --db-host, override the corresponding parts of the DSN (if both are provided)."
1507
+ }
1508
+ }
1509
+ },
1280
1510
  "import:postgresql": {
1281
1511
  "id": "import:postgresql",
1282
1512
  "description": "Import a schema for a PostgreSQL data source into your GraphQL API.\n\nstepzen import postgresql automatically introspects a PostgreSQL database, generates a GraphQL schema for accessing this database through a StepZen API, and merges the generated types, queries and mutations into your GraphQL schema.",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stepzen",
3
3
  "description": "The StepZen CLI",
4
- "version": "0.43.0",
4
+ "version": "0.44.0-beta.0",
5
5
  "license": "MIT",
6
6
  "author": "Darren Waddell <darren@stepzen.com>",
7
7
  "contributors": [
@@ -30,10 +30,10 @@
30
30
  "@oclif/plugin-help": "5.2.4",
31
31
  "@oclif/plugin-version": "1.2.1",
32
32
  "@soluble/dsn-parser": "^1.7.5",
33
- "@stepzen/fetch": "0.43.0",
34
- "@stepzen/graphiql-proxy": "0.43.0",
35
- "@stepzen/sdk": "0.43.0",
36
- "@stepzen/transpiler": "0.43.0",
33
+ "@stepzen/fetch": "0.44.0-beta.0",
34
+ "@stepzen/graphiql-proxy": "0.44.0-beta.0",
35
+ "@stepzen/sdk": "0.44.0-beta.0",
36
+ "@stepzen/transpiler": "0.44.0-beta.0",
37
37
  "chalk": "^4.1.2",
38
38
  "chokidar": "^3.5.3",
39
39
  "compare-versions": "^5.0.3",
@@ -151,5 +151,5 @@
151
151
  "--comment--": "workaround for CVE-2024-4067",
152
152
  "micromatch": "^4.0.8"
153
153
  },
154
- "gitHead": "8f08f6341b296f304651fe843575eba884d2220f"
154
+ "gitHead": "d18fc3594c5d334fefe453fa22d14e0b0f1a5871"
155
155
  }