diff --git a/.pnp.cjs b/.pnp.cjs index 13b9f16e807..40c594d93d6 100644 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -5994,6 +5994,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@fern-fern/ir-sdk", [\ + ["npm:0.0.16", {\ + "packageLocation": "./.yarn/cache/@fern-fern-ir-sdk-npm-0.0.16-095b3b000c-2e1f06b32d.zip/node_modules/@fern-fern/ir-sdk/",\ + "packageDependencies": [\ + ["@fern-fern/ir-sdk", "npm:0.0.16"]\ + ],\ + "linkType": "HARD"\ + }],\ ["npm:0.0.2828", {\ "packageLocation": "./.yarn/cache/@fern-fern-ir-sdk-npm-0.0.2828-43f6c61c8e-5fa0842320.zip/node_modules/@fern-fern/ir-sdk/",\ "packageDependencies": [\ @@ -6387,7 +6394,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@fern-api/fs-utils", "workspace:packages/commons/fs-utils"],\ ["@fern-api/logger", "workspace:packages/cli/logger"],\ ["@fern-fern/generator-exec-sdk", "npm:0.0.571"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@types/jest", "npm:29.0.3"],\ @@ -6484,7 +6491,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@fern-api/fs-utils", "workspace:packages/commons/fs-utils"],\ ["@fern-api/logger", "workspace:packages/cli/logger"],\ ["@fern-api/logging-execa", "workspace:packages/commons/logging-execa"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/fetcher", "workspace:generators/typescript/utils/core-utilities/fetcher"],\ ["@fern-typescript/zurg", "workspace:generators/typescript/utils/core-utilities/zurg"],\ ["@types/decompress", "npm:4.2.7"],\ @@ -6520,7 +6527,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@fern-api/logger", "workspace:packages/cli/logger"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@types/jest", "npm:29.0.3"],\ ["@types/node", "npm:18.7.18"],\ @@ -6540,7 +6547,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/sdk/endpoint-error-union-generator/",\ "packageDependencies": [\ ["@fern-typescript/endpoint-error-union-generator", "workspace:generators/typescript/sdk/endpoint-error-union-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@fern-typescript/resolvers", "workspace:generators/typescript/utils/resolvers"],\ @@ -6563,7 +6570,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/sdk/environments-generator/",\ "packageDependencies": [\ ["@fern-typescript/environments-generator", "workspace:generators/typescript/sdk/environments-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@types/jest", "npm:29.0.3"],\ @@ -6585,7 +6592,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/express-endpoint-type-schemas-generator", "workspace:generators/typescript/express/express-endpoint-type-schemas-generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-schema-generator", "workspace:generators/typescript/utils/abstract-schema-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -6607,7 +6614,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/express/express-error-generator/",\ "packageDependencies": [\ ["@fern-typescript/express-error-generator", "workspace:generators/typescript/express/express-error-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-error-class-generator", "workspace:generators/typescript/utils/abstract-error-class-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -6630,7 +6637,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/express-error-schema-generator", "workspace:generators/typescript/express/express-error-schema-generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-schema-generator", "workspace:generators/typescript/utils/abstract-schema-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -6654,7 +6661,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@fern-typescript/express-generator", "workspace:generators/typescript/express/generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ ["@fern-api/fs-utils", "workspace:packages/commons/fs-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@fern-typescript/express-endpoint-type-schemas-generator", "workspace:generators/typescript/express/express-endpoint-type-schemas-generator"],\ @@ -6690,7 +6697,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@fern-typescript/express-generator-cli", "workspace:generators/typescript/express/cli"],\ ["@fern-api/umd-compat-loader", "npm:2.1.4"],\ ["@fern-fern/generator-exec-sdk", "npm:0.0.571"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-generator-cli", "workspace:generators/typescript/utils/abstract-generator-cli"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -6724,7 +6731,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/express/express-inlined-request-body-generator/",\ "packageDependencies": [\ ["@fern-typescript/express-inlined-request-body-generator", "workspace:generators/typescript/express/express-inlined-request-body-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@types/jest", "npm:29.0.3"],\ @@ -6744,7 +6751,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/express/express-inlined-request-body-schema-generator/",\ "packageDependencies": [\ ["@fern-typescript/express-inlined-request-schema-generator", "workspace:generators/typescript/express/express-inlined-request-body-schema-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-schema-generator", "workspace:generators/typescript/utils/abstract-schema-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -6766,7 +6773,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/express/express-register-generator/",\ "packageDependencies": [\ ["@fern-typescript/express-register-generator", "workspace:generators/typescript/express/express-register-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@fern-typescript/resolvers", "workspace:generators/typescript/utils/resolvers"],\ @@ -6790,7 +6797,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/express/express-service-generator/",\ "packageDependencies": [\ ["@fern-typescript/express-service-generator", "workspace:generators/typescript/express/express-service-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@fern-typescript/resolvers", "workspace:generators/typescript/utils/resolvers"],\ @@ -6895,7 +6902,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/request-wrapper-generator", "workspace:generators/typescript/sdk/request-wrapper-generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@types/jest", "npm:29.0.3"],\ @@ -6916,7 +6923,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/utils/resolvers/",\ "packageDependencies": [\ ["@fern-typescript/resolvers", "workspace:generators/typescript/utils/resolvers"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@types/jest", "npm:29.0.3"],\ ["@types/node", "npm:18.7.18"],\ @@ -6936,7 +6943,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/sdk-client-class-generator", "workspace:generators/typescript/sdk/client-class-generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@fern-typescript/resolvers", "workspace:generators/typescript/utils/resolvers"],\ @@ -6959,7 +6966,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/sdk-endpoint-type-schemas-generator", "workspace:generators/typescript/sdk/sdk-endpoint-type-schemas-generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-schema-generator", "workspace:generators/typescript/utils/abstract-schema-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -6983,7 +6990,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/sdk/sdk-error-generator/",\ "packageDependencies": [\ ["@fern-typescript/sdk-error-generator", "workspace:generators/typescript/sdk/sdk-error-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-error-class-generator", "workspace:generators/typescript/utils/abstract-error-class-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -7006,7 +7013,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/sdk-error-schema-generator", "workspace:generators/typescript/sdk/sdk-error-schema-generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-schema-generator", "workspace:generators/typescript/utils/abstract-schema-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -7031,7 +7038,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ ["@fern-api/fs-utils", "workspace:packages/commons/fs-utils"],\ ["@fern-fern/generator-exec-sdk", "npm:0.0.571"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@fern-typescript/endpoint-error-union-generator", "workspace:generators/typescript/sdk/endpoint-error-union-generator"],\ @@ -7073,7 +7080,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@fern-api/fs-utils", "workspace:packages/commons/fs-utils"],\ ["@fern-api/umd-compat-loader", "npm:2.1.4"],\ ["@fern-fern/generator-exec-sdk", "npm:0.0.571"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-generator-cli", "workspace:generators/typescript/utils/abstract-generator-cli"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -7107,7 +7114,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/sdk/sdk-inlined-request-body-schema-generator/",\ "packageDependencies": [\ ["@fern-typescript/sdk-inlined-request-schema-generator", "workspace:generators/typescript/sdk/sdk-inlined-request-body-schema-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-schema-generator", "workspace:generators/typescript/utils/abstract-schema-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -7146,7 +7153,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/model/type-generator/",\ "packageDependencies": [\ ["@fern-typescript/type-generator", "workspace:generators/typescript/model/type-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@fern-typescript/union-generator", "workspace:generators/typescript/model/union-generator"],\ @@ -7168,7 +7175,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/model/type-reference-converters/",\ "packageDependencies": [\ ["@fern-typescript/type-reference-converters", "workspace:generators/typescript/model/type-reference-converters"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/resolvers", "workspace:generators/typescript/utils/resolvers"],\ ["@types/jest", "npm:29.0.3"],\ @@ -7190,7 +7197,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/type-reference-example-generator", "workspace:generators/typescript/model/type-reference-example-generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@types/jest", "npm:29.0.3"],\ @@ -7211,7 +7218,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/model/type-schema-generator/",\ "packageDependencies": [\ ["@fern-typescript/type-schema-generator", "workspace:generators/typescript/model/type-schema-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-schema-generator", "workspace:generators/typescript/utils/abstract-schema-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ @@ -7235,7 +7242,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageDependencies": [\ ["@fern-typescript/union-generator", "workspace:generators/typescript/model/union-generator"],\ ["@fern-api/core-utils", "workspace:packages/commons/core-utils"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ ["@types/jest", "npm:29.0.3"],\ @@ -7256,7 +7263,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "packageLocation": "./generators/typescript/model/union-schema-generator/",\ "packageDependencies": [\ ["@fern-typescript/union-schema-generator", "workspace:generators/typescript/model/union-schema-generator"],\ - ["@fern-fern/ir-sdk", "npm:0.0.3294"],\ + ["@fern-fern/ir-sdk", "npm:0.0.16"],\ ["@fern-typescript/abstract-schema-generator", "workspace:generators/typescript/utils/abstract-schema-generator"],\ ["@fern-typescript/commons", "workspace:generators/typescript/utils/commons"],\ ["@fern-typescript/contexts", "workspace:generators/typescript/utils/contexts"],\ diff --git a/.yarn/cache/@fern-fern-ir-sdk-npm-0.0.16-095b3b000c-2e1f06b32d.zip b/.yarn/cache/@fern-fern-ir-sdk-npm-0.0.16-095b3b000c-2e1f06b32d.zip new file mode 100644 index 00000000000..fd07cb53695 Binary files /dev/null and b/.yarn/cache/@fern-fern-ir-sdk-npm-0.0.16-095b3b000c-2e1f06b32d.zip differ diff --git a/generators/typescript/express/cli/package.json b/generators/typescript/express/cli/package.json index ce998ba4f1c..4e41abe5494 100644 --- a/generators/typescript/express/cli/package.json +++ b/generators/typescript/express/cli/package.json @@ -29,7 +29,7 @@ }, "dependencies": { "@fern-fern/generator-exec-sdk": "0.0.571", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-generator-cli": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/express/express-endpoint-type-schemas-generator/package.json b/generators/typescript/express/express-endpoint-type-schemas-generator/package.json index f407172db8d..281502451a6 100644 --- a/generators/typescript/express/express-endpoint-type-schemas-generator/package.json +++ b/generators/typescript/express/express-endpoint-type-schemas-generator/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-schema-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/express/express-error-generator/package.json b/generators/typescript/express/express-error-generator/package.json index 93b507dd9c0..6caa789582f 100644 --- a/generators/typescript/express/express-error-generator/package.json +++ b/generators/typescript/express/express-error-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-error-class-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/express/express-error-schema-generator/package.json b/generators/typescript/express/express-error-schema-generator/package.json index 8d18365aab5..3fca6d8f5f5 100644 --- a/generators/typescript/express/express-error-schema-generator/package.json +++ b/generators/typescript/express/express-error-schema-generator/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-schema-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/express/express-inlined-request-body-generator/package.json b/generators/typescript/express/express-inlined-request-body-generator/package.json index 3b87a6bacae..877f2e8e492 100644 --- a/generators/typescript/express/express-inlined-request-body-generator/package.json +++ b/generators/typescript/express/express-inlined-request-body-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*" }, diff --git a/generators/typescript/express/express-inlined-request-body-schema-generator/package.json b/generators/typescript/express/express-inlined-request-body-schema-generator/package.json index 2246c96710c..713a1e558be 100644 --- a/generators/typescript/express/express-inlined-request-body-schema-generator/package.json +++ b/generators/typescript/express/express-inlined-request-body-schema-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-schema-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/express/express-register-generator/package.json b/generators/typescript/express/express-register-generator/package.json index 79751e1b260..9be55235985 100644 --- a/generators/typescript/express/express-register-generator/package.json +++ b/generators/typescript/express/express-register-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "@fern-typescript/resolvers": "workspace:*", diff --git a/generators/typescript/express/express-service-generator/package.json b/generators/typescript/express/express-service-generator/package.json index cadb7173490..992bc600c0a 100644 --- a/generators/typescript/express/express-service-generator/package.json +++ b/generators/typescript/express/express-service-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "@fern-typescript/resolvers": "workspace:*", diff --git a/generators/typescript/express/generator/package.json b/generators/typescript/express/generator/package.json index 9daafc7ff4a..bfe2fbb3a69 100644 --- a/generators/typescript/express/generator/package.json +++ b/generators/typescript/express/generator/package.json @@ -28,7 +28,7 @@ "dependencies": { "@fern-api/core-utils": "workspace:*", "@fern-api/fs-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "@fern-typescript/express-endpoint-type-schemas-generator": "workspace:*", diff --git a/generators/typescript/model/type-generator/package.json b/generators/typescript/model/type-generator/package.json index eac73490d3b..e16bb22f525 100644 --- a/generators/typescript/model/type-generator/package.json +++ b/generators/typescript/model/type-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "@fern-typescript/union-generator": "workspace:*", diff --git a/generators/typescript/model/type-reference-converters/package.json b/generators/typescript/model/type-reference-converters/package.json index c25bb2f075c..2a93ac9fade 100644 --- a/generators/typescript/model/type-reference-converters/package.json +++ b/generators/typescript/model/type-reference-converters/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/resolvers": "workspace:*", "ts-morph": "^15.1.0" diff --git a/generators/typescript/model/type-reference-example-generator/package.json b/generators/typescript/model/type-reference-example-generator/package.json index 8b0bc00c5ce..e587a59d7fa 100644 --- a/generators/typescript/model/type-reference-example-generator/package.json +++ b/generators/typescript/model/type-reference-example-generator/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "ts-morph": "^15.1.0" diff --git a/generators/typescript/model/type-schema-generator/package.json b/generators/typescript/model/type-schema-generator/package.json index dff73588876..0518bdf3a0f 100644 --- a/generators/typescript/model/type-schema-generator/package.json +++ b/generators/typescript/model/type-schema-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-schema-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/model/union-generator/package.json b/generators/typescript/model/union-generator/package.json index c2333c59629..fe421f30068 100644 --- a/generators/typescript/model/union-generator/package.json +++ b/generators/typescript/model/union-generator/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "ts-morph": "^15.1.0" diff --git a/generators/typescript/model/union-schema-generator/package.json b/generators/typescript/model/union-schema-generator/package.json index 11e7198a72d..a59c69bf1a0 100644 --- a/generators/typescript/model/union-schema-generator/package.json +++ b/generators/typescript/model/union-schema-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-schema-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/sdk/CHANGELOG.md b/generators/typescript/sdk/CHANGELOG.md index d735ba080cb..134368dc8dd 100644 --- a/generators/typescript/sdk/CHANGELOG.md +++ b/generators/typescript/sdk/CHANGELOG.md @@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.12.0-rc0] - 2024-02-26 + +- Feature: support deep object query parameter serialization. If, query parameters are + objects then Fern will support serializing them. + + ```yaml + MyFoo: + properties: + bar: optional + + query-parameters: + foo: MyFoo + ``` + + will now be serialized as `?foo[bar]="...` and appear in the SDK as a regular object + + ```ts + client.doThing({ + foo: { + bar: "...", + } + }) + ``` + ## [0.11.5] - 2024-02-15 - Fix: Previously `core.Stream` would not work in the Browser. Now the generated Fern SDK diff --git a/generators/typescript/sdk/VERSION b/generators/typescript/sdk/VERSION index 62d5dbdf3c7..70c5d4c91a2 100644 --- a/generators/typescript/sdk/VERSION +++ b/generators/typescript/sdk/VERSION @@ -1 +1 @@ -0.11.5 +0.12.0-rc0 diff --git a/generators/typescript/sdk/cli/package.json b/generators/typescript/sdk/cli/package.json index 6495695e9bd..b3c7dcedbb0 100644 --- a/generators/typescript/sdk/cli/package.json +++ b/generators/typescript/sdk/cli/package.json @@ -32,7 +32,7 @@ "dependencies": { "@fern-api/fs-utils": "workspace:*", "@fern-fern/generator-exec-sdk": "0.0.571", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-generator-cli": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/sdk/client-class-generator/package.json b/generators/typescript/sdk/client-class-generator/package.json index 6450b8ab74c..845b8fca967 100644 --- a/generators/typescript/sdk/client-class-generator/package.json +++ b/generators/typescript/sdk/client-class-generator/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "@fern-typescript/resolvers": "workspace:*", diff --git a/generators/typescript/sdk/client-class-generator/src/endpoints/utils/GeneratedQueryParams.ts b/generators/typescript/sdk/client-class-generator/src/endpoints/utils/GeneratedQueryParams.ts index 16109f731dd..1b6818be9d1 100644 --- a/generators/typescript/sdk/client-class-generator/src/endpoints/utils/GeneratedQueryParams.ts +++ b/generators/typescript/sdk/client-class-generator/src/endpoints/utils/GeneratedQueryParams.ts @@ -1,3 +1,4 @@ +import { DeclaredTypeName, QueryParameter, TypeReference } from "@fern-fern/ir-sdk/api"; import { SdkContext } from "@fern-typescript/contexts"; import { ts } from "ts-morph"; import { RequestParameter } from "../../request-parameter/RequestParameter"; @@ -37,6 +38,10 @@ export class GeneratedQueryParams { ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword), ts.factory.createArrayTypeNode( ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword) + ), + ts.factory.createKeywordTypeNode(ts.SyntaxKind.ObjectKeyword), + ts.factory.createArrayTypeNode( + ts.factory.createKeywordTypeNode(ts.SyntaxKind.ObjectKeyword) ) ]) ]), @@ -53,68 +58,83 @@ export class GeneratedQueryParams { queryParameter, context, (referenceToQueryParameter) => { + let assignmentExpression: ts.Expression; + const objectType = this.getObjectType(queryParameter.valueType, context); + if (objectType != null && context.includeSerdeLayer) { + assignmentExpression = context.typeSchema + .getSchemaOfNamedType(objectType, { + isGeneratingSchema: false + }) + .jsonOrThrow(referenceToQueryParameter, { + allowUnrecognizedEnumValues: true, + allowUnrecognizedUnionMembers: true, + unrecognizedObjectKeys: "passthrough", + skipValidation: false, + breadcrumbsPrefix: [ + "request", + queryParameter.name.name.camelCase.unsafeName + ] + }); + } else if (objectType != null) { + assignmentExpression = referenceToQueryParameter; + } else { + assignmentExpression = context.type.stringify( + referenceToQueryParameter, + queryParameter.valueType, + { + includeNullCheckIfOptional: false + } + ); + } return [ - ts.factory.createExpressionStatement( - ts.factory.createBinaryExpression( - ts.factory.createElementAccessExpression( - ts.factory.createIdentifier( - GeneratedQueryParams.QUERY_PARAMS_VARIABLE_NAME - ), - ts.factory.createStringLiteral(queryParameter.name.wireValue) - ), - ts.factory.createToken(ts.SyntaxKind.EqualsToken), - context.type.stringify( - referenceToQueryParameter, - queryParameter.valueType, - { includeNullCheckIfOptional: false } - ) - ) - ) + this.getQueryParameterAssignExpression({ + queryParameter, + assignmentExpression + }) ]; }, (referenceToQueryParameter) => { - return [ - ts.factory.createExpressionStatement( - ts.factory.createBinaryExpression( - ts.factory.createElementAccessExpression( - ts.factory.createIdentifier( - GeneratedQueryParams.QUERY_PARAMS_VARIABLE_NAME - ), - ts.factory.createStringLiteral(queryParameter.name.wireValue) - ), - ts.factory.createToken(ts.SyntaxKind.EqualsToken), - ts.factory.createCallExpression( - ts.factory.createPropertyAccessExpression( - referenceToQueryParameter, - ts.factory.createIdentifier("map") - ), - undefined, - [ - ts.factory.createArrowFunction( - undefined, - undefined, - [ - ts.factory.createParameterDeclaration( - undefined, - undefined, - undefined, - ts.factory.createIdentifier("item"), - undefined, - undefined - ) - ], - undefined, - ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), - context.type.stringify( - ts.factory.createIdentifier("item"), - queryParameter.valueType, - { includeNullCheckIfOptional: false } - ) - ) + let getAssignmentExpression: (itemReference: ts.Expression) => ts.Expression; + let isAssignmentExpressionAsync = false; + const objectType = this.getObjectType( + queryParameter.valueType.type === "container" && + queryParameter.valueType.container.type === "list" + ? queryParameter.valueType.container.list + : queryParameter.valueType, + context + ); + if (objectType != null && context.includeSerdeLayer) { + isAssignmentExpressionAsync = true; + getAssignmentExpression = (itemReference) => + context.typeSchema + .getSchemaOfNamedType(objectType, { + isGeneratingSchema: false + }) + .jsonOrThrow(itemReference, { + allowUnrecognizedEnumValues: true, + allowUnrecognizedUnionMembers: true, + unrecognizedObjectKeys: "passthrough", + skipValidation: false, + breadcrumbsPrefix: [ + "request", + queryParameter.name.name.camelCase.unsafeName ] - ) - ) - ) + }); + } else if (objectType != null) { + getAssignmentExpression = (itemReference) => itemReference; + } else { + getAssignmentExpression = (itemReference) => + context.type.stringify(itemReference, queryParameter.valueType, { + includeNullCheckIfOptional: false + }); + } + return [ + this.getQueryParameterArrayAssignExpression({ + queryParameter, + referenceToQueryParameter, + getAssignmentExpression, + isAssignmentExpressionAsync + }) ]; } ) @@ -133,4 +153,98 @@ export class GeneratedQueryParams { return undefined; } } + + private getQueryParameterAssignExpression({ + queryParameter, + assignmentExpression + }: { + queryParameter: QueryParameter; + assignmentExpression: ts.Expression; + }): ts.Statement { + return ts.factory.createExpressionStatement( + ts.factory.createBinaryExpression( + ts.factory.createElementAccessExpression( + ts.factory.createIdentifier(GeneratedQueryParams.QUERY_PARAMS_VARIABLE_NAME), + ts.factory.createStringLiteral(queryParameter.name.wireValue) + ), + ts.factory.createToken(ts.SyntaxKind.EqualsToken), + assignmentExpression + ) + ); + } + + private getQueryParameterArrayAssignExpression({ + queryParameter, + referenceToQueryParameter, + getAssignmentExpression, + isAssignmentExpressionAsync + }: { + queryParameter: QueryParameter; + referenceToQueryParameter: ts.Expression; + /* Pass in itemReference and get back the serialized query parameter */ + getAssignmentExpression: (itemReference: ts.Expression) => ts.Expression; + isAssignmentExpressionAsync?: boolean; + }): ts.Statement { + const mapFunction = ts.factory.createArrowFunction( + isAssignmentExpressionAsync ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] : undefined, + undefined, + [ + ts.factory.createParameterDeclaration( + undefined, + undefined, + undefined, + ts.factory.createIdentifier("item"), + undefined, + undefined + ) + ], + undefined, + ts.factory.createToken(ts.SyntaxKind.EqualsGreaterThanToken), + getAssignmentExpression(ts.factory.createIdentifier("item")) + ); + let mapExpression: ts.Expression = ts.factory.createCallExpression( + ts.factory.createPropertyAccessExpression(referenceToQueryParameter, ts.factory.createIdentifier("map")), + undefined, + [mapFunction] + ); + if (isAssignmentExpressionAsync) { + mapExpression = ts.factory.createAwaitExpression( + ts.factory.createCallExpression( + ts.factory.createPropertyAccessExpression( + ts.factory.createIdentifier("Promise"), + ts.factory.createIdentifier("all") + ), + undefined, + [mapExpression] + ) + ); + } + + return ts.factory.createExpressionStatement( + ts.factory.createBinaryExpression( + ts.factory.createElementAccessExpression( + ts.factory.createIdentifier(GeneratedQueryParams.QUERY_PARAMS_VARIABLE_NAME), + ts.factory.createStringLiteral(queryParameter.name.wireValue) + ), + ts.factory.createToken(ts.SyntaxKind.EqualsToken), + mapExpression + ) + ); + } + + private getObjectType(typeReference: TypeReference, context: SdkContext): DeclaredTypeName | undefined { + switch (typeReference.type) { + case "named": { + const typeDeclaration = context.type.getTypeDeclaration(typeReference); + switch (typeDeclaration.shape.type) { + case "object": + return typeReference; + case "alias": { + return this.getObjectType(typeDeclaration.shape.aliasOf, context); + } + } + } + } + return undefined; + } } diff --git a/generators/typescript/sdk/endpoint-error-union-generator/package.json b/generators/typescript/sdk/endpoint-error-union-generator/package.json index 7081c62c361..978d4c0c7f1 100644 --- a/generators/typescript/sdk/endpoint-error-union-generator/package.json +++ b/generators/typescript/sdk/endpoint-error-union-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "@fern-typescript/resolvers": "workspace:*", diff --git a/generators/typescript/sdk/environments-generator/package.json b/generators/typescript/sdk/environments-generator/package.json index 9a7a8230c8e..0279e98410f 100644 --- a/generators/typescript/sdk/environments-generator/package.json +++ b/generators/typescript/sdk/environments-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "ts-morph": "^15.1.0" diff --git a/generators/typescript/sdk/generator/package.json b/generators/typescript/sdk/generator/package.json index 4dd8eb48595..adf45a251bd 100644 --- a/generators/typescript/sdk/generator/package.json +++ b/generators/typescript/sdk/generator/package.json @@ -29,7 +29,7 @@ "@fern-api/core-utils": "workspace:*", "@fern-api/fs-utils": "workspace:*", "@fern-fern/generator-exec-sdk": "0.0.571", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "@fern-typescript/endpoint-error-union-generator": "workspace:*", diff --git a/generators/typescript/sdk/generator/src/contexts/SdkContextImpl.ts b/generators/typescript/sdk/generator/src/contexts/SdkContextImpl.ts index 2764f9935af..b81f4c433c8 100644 --- a/generators/typescript/sdk/generator/src/contexts/SdkContextImpl.ts +++ b/generators/typescript/sdk/generator/src/contexts/SdkContextImpl.ts @@ -121,6 +121,7 @@ export class SdkContextImpl implements SdkContext { public readonly genericAPISdkError: GenericAPISdkErrorContext; public readonly timeoutSdkError: TimeoutSdkErrorContext; public readonly targetRuntime: JavaScriptRuntime; + public readonly includeSerdeLayer: boolean; constructor({ npmPackage, @@ -163,6 +164,7 @@ export class SdkContextImpl implements SdkContext { includeSerdeLayer, targetRuntime }: SdkContextImpl.Init) { + this.includeSerdeLayer = includeSerdeLayer; this.targetRuntime = targetRuntime; this.sdkInstanceReferenceForSnippet = ts.factory.createIdentifier( camelCase(typeDeclarationReferencer.namespaceExport) diff --git a/generators/typescript/sdk/request-wrapper-generator/package.json b/generators/typescript/sdk/request-wrapper-generator/package.json index fd765a4d4c3..fb6c79dcf2c 100644 --- a/generators/typescript/sdk/request-wrapper-generator/package.json +++ b/generators/typescript/sdk/request-wrapper-generator/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", "ts-morph": "^15.1.0" diff --git a/generators/typescript/sdk/sdk-endpoint-type-schemas-generator/package.json b/generators/typescript/sdk/sdk-endpoint-type-schemas-generator/package.json index f4522ac4c41..e4070c6bb13 100644 --- a/generators/typescript/sdk/sdk-endpoint-type-schemas-generator/package.json +++ b/generators/typescript/sdk/sdk-endpoint-type-schemas-generator/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-schema-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/sdk/sdk-error-generator/package.json b/generators/typescript/sdk/sdk-error-generator/package.json index 52a52eee846..6827777b5b4 100644 --- a/generators/typescript/sdk/sdk-error-generator/package.json +++ b/generators/typescript/sdk/sdk-error-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-error-class-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/sdk/sdk-error-schema-generator/package.json b/generators/typescript/sdk/sdk-error-schema-generator/package.json index 0c154635238..8e0f48868eb 100644 --- a/generators/typescript/sdk/sdk-error-schema-generator/package.json +++ b/generators/typescript/sdk/sdk-error-schema-generator/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/core-utils": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-schema-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/sdk/sdk-inlined-request-body-schema-generator/package.json b/generators/typescript/sdk/sdk-inlined-request-body-schema-generator/package.json index b2ce81d34af..d53327ab5c5 100644 --- a/generators/typescript/sdk/sdk-inlined-request-body-schema-generator/package.json +++ b/generators/typescript/sdk/sdk-inlined-request-body-schema-generator/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/abstract-schema-generator": "workspace:*", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*", diff --git a/generators/typescript/utils/abstract-generator-cli/package.json b/generators/typescript/utils/abstract-generator-cli/package.json index efcd69e6f26..31aa443305d 100644 --- a/generators/typescript/utils/abstract-generator-cli/package.json +++ b/generators/typescript/utils/abstract-generator-cli/package.json @@ -29,7 +29,7 @@ "@fern-api/fs-utils": "workspace:*", "@fern-api/logger": "workspace:*", "@fern-fern/generator-exec-sdk": "0.0.571", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "@fern-typescript/contexts": "workspace:*" }, diff --git a/generators/typescript/utils/commons/package.json b/generators/typescript/utils/commons/package.json index ef2b79cd85b..f466eba9868 100644 --- a/generators/typescript/utils/commons/package.json +++ b/generators/typescript/utils/commons/package.json @@ -30,7 +30,7 @@ "@fern-api/fs-utils": "workspace:*", "@fern-api/logger": "workspace:*", "@fern-api/logging-execa": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/fetcher": "workspace:*", "@fern-typescript/zurg": "workspace:*", "decompress": "^4.2.1", diff --git a/generators/typescript/utils/contexts/package.json b/generators/typescript/utils/contexts/package.json index 1cf8b574b26..b056450e403 100644 --- a/generators/typescript/utils/contexts/package.json +++ b/generators/typescript/utils/contexts/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@fern-api/logger": "workspace:*", - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*", "ts-morph": "^15.1.0" }, diff --git a/generators/typescript/utils/contexts/src/sdk-context/SdkContext.ts b/generators/typescript/utils/contexts/src/sdk-context/SdkContext.ts index ee2da15a40c..40e7363e41c 100644 --- a/generators/typescript/utils/contexts/src/sdk-context/SdkContext.ts +++ b/generators/typescript/utils/contexts/src/sdk-context/SdkContext.ts @@ -26,4 +26,5 @@ export interface SdkContext extends ModelContext { requestWrapper: RequestWrapperContext; sdkClientClass: SdkClientClassContext; targetRuntime: JavaScriptRuntime; + includeSerdeLayer: boolean; } diff --git a/generators/typescript/utils/core-utilities/fetcher/src/fetcher/Fetcher.ts b/generators/typescript/utils/core-utilities/fetcher/src/fetcher/Fetcher.ts index 667e0a8d0f3..efbde603f63 100644 --- a/generators/typescript/utils/core-utilities/fetcher/src/fetcher/Fetcher.ts +++ b/generators/typescript/utils/core-utilities/fetcher/src/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/generators/typescript/utils/resolvers/package.json b/generators/typescript/utils/resolvers/package.json index e05fe530b4c..9f4d876ae22 100644 --- a/generators/typescript/utils/resolvers/package.json +++ b/generators/typescript/utils/resolvers/package.json @@ -26,7 +26,7 @@ "depcheck": "depcheck" }, "dependencies": { - "@fern-fern/ir-sdk": "0.0.3294", + "@fern-fern/ir-sdk": "0.0.16", "@fern-typescript/commons": "workspace:*" }, "devDependencies": { diff --git a/packages/cli/generation/ir-migrations/src/migrations/v33-to-v32/migrateFromV33ToV32.ts b/packages/cli/generation/ir-migrations/src/migrations/v33-to-v32/migrateFromV33ToV32.ts index 2d659bc93f3..e186c29b595 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/v33-to-v32/migrateFromV33ToV32.ts +++ b/packages/cli/generation/ir-migrations/src/migrations/v33-to-v32/migrateFromV33ToV32.ts @@ -11,11 +11,11 @@ export const V33_TO_V32_MIGRATION: IrMigration< laterVersion: "v33", earlierVersion: "v32", firstGeneratorVersionToConsumeNewIR: { - [GeneratorName.TYPESCRIPT_NODE_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR, - [GeneratorName.TYPESCRIPT_BROWSER_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR, + [GeneratorName.TYPESCRIPT_NODE_SDK]: "0.12.0", + [GeneratorName.TYPESCRIPT_BROWSER_SDK]: "0.12.0", [GeneratorName.TYPESCRIPT]: GeneratorWasNeverUpdatedToConsumeNewIR, [GeneratorName.TYPESCRIPT_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR, - [GeneratorName.TYPESCRIPT_EXPRESS]: GeneratorWasNeverUpdatedToConsumeNewIR, + [GeneratorName.TYPESCRIPT_EXPRESS]: "0.12.0", [GeneratorName.JAVA]: GeneratorWasNeverUpdatedToConsumeNewIR, [GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR, [GeneratorName.JAVA_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR, diff --git a/packages/ir-sdk/fern/apis/ir-types-v33/generators.yml b/packages/ir-sdk/fern/apis/ir-types-v33/generators.yml index 79ce463602e..ad21ca981cd 100644 --- a/packages/ir-sdk/fern/apis/ir-types-v33/generators.yml +++ b/packages/ir-sdk/fern/apis/ir-types-v33/generators.yml @@ -7,7 +7,7 @@ groups: output: location: npm url: npm.buildwithfern.com - package-name: "@fern-fern/ir-v33-sdk" + package-name: "@fern-fern/ir-sdk" config: includeUtilsOnUnionMembers: true noOptionalProperties: true diff --git a/seed/ts-sdk/api-wide-base-path/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/api-wide-base-path/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/api-wide-base-path/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/api-wide-base-path/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/audiences/src/api/resources/foo/client/Client.ts b/seed/ts-sdk/audiences/src/api/resources/foo/client/Client.ts index efccaa327ce..2007c523330 100644 --- a/seed/ts-sdk/audiences/src/api/resources/foo/client/Client.ts +++ b/seed/ts-sdk/audiences/src/api/resources/foo/client/Client.ts @@ -26,7 +26,7 @@ export class Foo { requestOptions?: Foo.RequestOptions ): Promise { const { optionalString, ..._body } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (optionalString != null) { _queryParams["optionalString"] = optionalString; } diff --git a/seed/ts-sdk/audiences/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/audiences/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/audiences/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/audiences/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/auth-environment-variables/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/auth-environment-variables/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/auth-environment-variables/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/auth-environment-variables/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/basic-auth/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/basic-auth/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/basic-auth/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/basic-auth/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/bearer-token-environment-variable/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/bearer-token-environment-variable/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/bearer-token-environment-variable/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/bearer-token-environment-variable/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/custom-auth/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/custom-auth/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/custom-auth/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/custom-auth/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/enum/package.json b/seed/ts-sdk/enum/package.json index 1820691bee5..864b621490b 100644 --- a/seed/ts-sdk/enum/package.json +++ b/seed/ts-sdk/enum/package.json @@ -1,7 +1,5 @@ { - "name": "", "version": "0.0.1", - "private": false, "repository": "https://github.com/enum/fern", "main": "./index.js", "types": "./index.d.ts", @@ -12,7 +10,6 @@ "test": "jest" }, "dependencies": { - "url-join": "4.0.1", "form-data": "4.0.0", "node-fetch": "2.7.0", "qs": "6.11.2" @@ -24,8 +21,6 @@ "jest": "^29.7.0", "@types/jest": "^29.5.5", "ts-jest": "^29.1.1", - "@types/node": "17.0.33", - "prettier": "2.7.1", "typescript": "4.6.4" } } \ No newline at end of file diff --git a/seed/ts-sdk/error-property/union-utils/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/error-property/union-utils/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/error-property/union-utils/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/error-property/union-utils/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/Client.ts index c31d6e939a1..5bdcceff238 100644 --- a/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/bundle/src/api/resources/endpoints/resources/params/client/Client.ts @@ -70,7 +70,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise> { const { query, number: number_ } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["query"] = query; _queryParams["number"] = number_.toString(); const _response = await core.fetcher({ @@ -110,7 +110,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise> { const { query, numer } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); } else { @@ -161,7 +161,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise> { const { query } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["query"] = query; const _response = await core.fetcher({ url: urlJoin(await core.Supplier.get(this._options.environment), `/params/path/${param}`), diff --git a/seed/ts-sdk/exhaustive/bundle/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/exhaustive/bundle/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/exhaustive/bundle/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/exhaustive/bundle/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/Client.ts index c31d6e939a1..5bdcceff238 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/dev-dependencies/src/api/resources/endpoints/resources/params/client/Client.ts @@ -70,7 +70,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise> { const { query, number: number_ } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["query"] = query; _queryParams["number"] = number_.toString(); const _response = await core.fetcher({ @@ -110,7 +110,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise> { const { query, numer } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); } else { @@ -161,7 +161,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise> { const { query } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["query"] = query; const _response = await core.fetcher({ url: urlJoin(await core.Supplier.get(this._options.environment), `/params/path/${param}`), diff --git a/seed/ts-sdk/exhaustive/dev-dependencies/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/exhaustive/dev-dependencies/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/exhaustive/dev-dependencies/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/exhaustive/dev-dependencies/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/Client.ts b/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/Client.ts index 7c2b317337e..fdea591e7d7 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/Client.ts +++ b/seed/ts-sdk/exhaustive/no-custom-config/src/api/resources/endpoints/resources/params/client/Client.ts @@ -81,7 +81,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise { const { query, number: number_ } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["query"] = query; _queryParams["number"] = number_.toString(); const _response = await core.fetcher({ @@ -134,7 +134,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise { const { query, numer } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (Array.isArray(query)) { _queryParams["query"] = query.map((item) => item); } else { @@ -198,7 +198,7 @@ export class Params { requestOptions?: Params.RequestOptions ): Promise { const { query } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["query"] = query; const _response = await core.fetcher({ url: urlJoin(await core.Supplier.get(this._options.environment), `/params/path/${param}`), diff --git a/seed/ts-sdk/exhaustive/no-custom-config/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/exhaustive/no-custom-config/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/exhaustive/no-custom-config/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/exhaustive/no-custom-config/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/file-download/file-download-reponse-headers/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/file-download/no-custom-config/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/file-download/no-custom-config/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/file-download/no-custom-config/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/file-download/no-custom-config/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/file-upload/src/api/resources/service/client/Client.ts b/seed/ts-sdk/file-upload/src/api/resources/service/client/Client.ts index 0a5720700a5..cfdc9cadc52 100644 --- a/seed/ts-sdk/file-upload/src/api/resources/service/client/Client.ts +++ b/seed/ts-sdk/file-upload/src/api/resources/service/client/Client.ts @@ -151,7 +151,7 @@ export class Service { request: SeedFileUpload.JustFileWithQueryParamsRequet, requestOptions?: Service.RequestOptions ): Promise { - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (request.maybeString != null) { _queryParams["maybeString"] = request.maybeString; } diff --git a/seed/ts-sdk/file-upload/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/file-upload/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/file-upload/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/file-upload/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/folders/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/folders/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/folders/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/folders/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/idempotency-headers/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/idempotency-headers/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/idempotency-headers/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/idempotency-headers/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/imdb/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/imdb/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/imdb/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/imdb/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/literal/src/api/resources/query/client/Client.ts b/seed/ts-sdk/literal/src/api/resources/query/client/Client.ts index e6a93184dee..c59df4a9cb8 100644 --- a/seed/ts-sdk/literal/src/api/resources/query/client/Client.ts +++ b/seed/ts-sdk/literal/src/api/resources/query/client/Client.ts @@ -27,7 +27,7 @@ export class Query { requestOptions?: Query.RequestOptions ): Promise { const { prompt, query, stream } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["prompt"] = prompt; _queryParams["query"] = query; _queryParams["stream"] = stream.toString(); diff --git a/seed/ts-sdk/literal/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/literal/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/literal/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/literal/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/multi-url-environment/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/multi-url-environment/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/multi-url-environment/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/multi-url-environment/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/no-environment/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/no-environment/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/no-environment/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/no-environment/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/optional/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/optional/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/optional/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/optional/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/package-yml/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/package-yml/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/package-yml/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/package-yml/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/query-parameters/.github/workflows/ci.yml b/seed/ts-sdk/query-parameters/no-custom-config/.github/workflows/ci.yml similarity index 100% rename from seed/ts-sdk/query-parameters/.github/workflows/ci.yml rename to seed/ts-sdk/query-parameters/no-custom-config/.github/workflows/ci.yml diff --git a/seed/ts-sdk/query-parameters/.gitignore b/seed/ts-sdk/query-parameters/no-custom-config/.gitignore similarity index 100% rename from seed/ts-sdk/query-parameters/.gitignore rename to seed/ts-sdk/query-parameters/no-custom-config/.gitignore diff --git a/seed/ts-sdk/query-parameters/.npmignore b/seed/ts-sdk/query-parameters/no-custom-config/.npmignore similarity index 100% rename from seed/ts-sdk/query-parameters/.npmignore rename to seed/ts-sdk/query-parameters/no-custom-config/.npmignore diff --git a/seed/ts-sdk/query-parameters/.prettierrc.yml b/seed/ts-sdk/query-parameters/no-custom-config/.prettierrc.yml similarity index 100% rename from seed/ts-sdk/query-parameters/.prettierrc.yml rename to seed/ts-sdk/query-parameters/no-custom-config/.prettierrc.yml diff --git a/seed/ts-sdk/query-parameters/jest.config.js b/seed/ts-sdk/query-parameters/no-custom-config/jest.config.js similarity index 100% rename from seed/ts-sdk/query-parameters/jest.config.js rename to seed/ts-sdk/query-parameters/no-custom-config/jest.config.js diff --git a/seed/ts-sdk/query-parameters/package.json b/seed/ts-sdk/query-parameters/no-custom-config/package.json similarity index 100% rename from seed/ts-sdk/query-parameters/package.json rename to seed/ts-sdk/query-parameters/no-custom-config/package.json diff --git a/seed/ts-sdk/query-parameters/snippet.json b/seed/ts-sdk/query-parameters/no-custom-config/snippet.json similarity index 100% rename from seed/ts-sdk/query-parameters/snippet.json rename to seed/ts-sdk/query-parameters/no-custom-config/snippet.json diff --git a/seed/ts-sdk/query-parameters/src/Client.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/Client.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/Client.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/Client.ts diff --git a/seed/ts-sdk/query-parameters/src/api/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/api/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/index.ts diff --git a/seed/ts-sdk/query-parameters/src/api/resources/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/api/resources/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/index.ts diff --git a/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/Client.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/Client.ts new file mode 100644 index 00000000000..94154c04ece --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/Client.ts @@ -0,0 +1,126 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as core from "../../../../core"; +import * as SeedQueryParameters from "../../.."; +import * as serializers from "../../../../serialization"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors"; + +export declare namespace User { + interface Options { + environment: core.Supplier; + } + + interface RequestOptions { + timeoutInSeconds?: number; + maxRetries?: number; + } +} + +export class User { + constructor(protected readonly _options: User.Options) {} + + public async getUsername( + request: SeedQueryParameters.GetUsersRequest, + requestOptions?: User.RequestOptions + ): Promise { + const { limit, id, date, deadline, bytes, user, keyValue, optionalString, nestedUser, excludeUser, filter } = + request; + const _queryParams: Record = {}; + _queryParams["limit"] = limit.toString(); + _queryParams["id"] = id; + _queryParams["date"] = date; + _queryParams["deadline"] = deadline.toISOString(); + _queryParams["bytes"] = bytes; + _queryParams["user"] = await serializers.User.jsonOrThrow(user, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["request", "user"], + }); + _queryParams["keyValue"] = JSON.stringify(keyValue); + if (optionalString != null) { + _queryParams["optionalString"] = optionalString; + } + + _queryParams["nestedUser"] = await serializers.NestedUser.jsonOrThrow(nestedUser, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["request", "nestedUser"], + }); + if (Array.isArray(excludeUser)) { + _queryParams["excludeUser"] = await Promise.all( + excludeUser.map( + async (item) => + await serializers.User.jsonOrThrow(item, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["request", "excludeUser"], + }) + ) + ); + } else { + _queryParams["excludeUser"] = await serializers.User.jsonOrThrow(excludeUser, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["request", "excludeUser"], + }); + } + + if (Array.isArray(filter)) { + _queryParams["filter"] = filter.map((item) => item); + } else { + _queryParams["filter"] = filter; + } + + const _response = await core.fetcher({ + url: urlJoin(await core.Supplier.get(this._options.environment), "/user"), + method: "GET", + headers: { + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "", + "X-Fern-SDK-Version": "0.0.1", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + queryParameters: _queryParams, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.User.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + throw new errors.SeedQueryParametersError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.SeedQueryParametersError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.SeedQueryParametersTimeoutError(); + case "unknown": + throw new errors.SeedQueryParametersError({ + message: _response.error.errorMessage, + }); + } + } +} diff --git a/seed/ts-sdk/query-parameters/src/api/resources/user/client/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/api/resources/user/client/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/index.ts diff --git a/seed/ts-sdk/query-parameters/src/api/resources/user/client/requests/GetUsersRequest.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/requests/GetUsersRequest.ts similarity index 51% rename from seed/ts-sdk/query-parameters/src/api/resources/user/client/requests/GetUsersRequest.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/requests/GetUsersRequest.ts index f1e64153d91..b72897bb6fb 100644 --- a/seed/ts-sdk/query-parameters/src/api/resources/user/client/requests/GetUsersRequest.ts +++ b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/requests/GetUsersRequest.ts @@ -2,12 +2,18 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as SeedQueryParameters from "../../../.."; + export interface GetUsersRequest { limit: number; id: string; date: string; deadline: Date; bytes: string; + user: SeedQueryParameters.User; + keyValue: Record; optionalString?: string; + nestedUser: SeedQueryParameters.NestedUser; + excludeUser: SeedQueryParameters.User | SeedQueryParameters.User[]; filter: string | string[]; } diff --git a/seed/ts-sdk/query-parameters/src/api/resources/user/client/requests/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/requests/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/api/resources/user/client/requests/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/client/requests/index.ts diff --git a/seed/ts-sdk/query-parameters/src/api/resources/user/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/api/resources/user/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/index.ts diff --git a/seed/ts-sdk/query-parameters/src/api/resources/user/types/NestedUser.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/types/NestedUser.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/api/resources/user/types/NestedUser.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/types/NestedUser.ts diff --git a/seed/ts-sdk/query-parameters/src/api/resources/user/types/User.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/types/User.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/api/resources/user/types/User.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/types/User.ts diff --git a/seed/ts-sdk/query-parameters/src/api/resources/user/types/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/types/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/api/resources/user/types/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/api/resources/user/types/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/fetcher/APIResponse.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/APIResponse.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/fetcher/APIResponse.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/APIResponse.ts diff --git a/seed/ts-sdk/query-parameters/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/Fetcher.ts similarity index 98% rename from seed/ts-sdk/query-parameters/src/core/fetcher/Fetcher.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/query-parameters/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/query-parameters/src/core/fetcher/Supplier.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/Supplier.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/fetcher/Supplier.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/Supplier.ts diff --git a/seed/ts-sdk/query-parameters/src/core/fetcher/getHeader.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/getHeader.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/fetcher/getHeader.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/getHeader.ts diff --git a/seed/ts-sdk/query-parameters/src/core/fetcher/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/fetcher/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/fetcher/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/runtime/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/runtime/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/runtime/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/runtime/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/runtime/runtime.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/runtime/runtime.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/runtime/runtime.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/runtime/runtime.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/Schema.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/Schema.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/Schema.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/Schema.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/date/date.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/date/date.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/date/date.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/date/date.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/date/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/date/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/date/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/date/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/enum/enum.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/enum/enum.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/enum/enum.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/enum/enum.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/enum/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/enum/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/enum/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/enum/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/lazy/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/lazy/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/lazy/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/lazy/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/lazy/lazy.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/lazy/lazy.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/lazy/lazy.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/lazy/lazy.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/lazy/lazyObject.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/lazy/lazyObject.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/lazy/lazyObject.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/lazy/lazyObject.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/list/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/list/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/list/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/list/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/list/list.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/list/list.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/list/list.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/list/list.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/literals/booleanLiteral.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/literals/booleanLiteral.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/literals/booleanLiteral.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/literals/booleanLiteral.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/literals/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/literals/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/literals/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/literals/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/literals/stringLiteral.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/literals/stringLiteral.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/literals/stringLiteral.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/literals/stringLiteral.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/object-like/getObjectLikeUtils.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object-like/getObjectLikeUtils.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/object-like/getObjectLikeUtils.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object-like/getObjectLikeUtils.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/object-like/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object-like/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/object-like/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object-like/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/object-like/types.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object-like/types.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/object-like/types.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object-like/types.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/object/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/object/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/object/object.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/object.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/object/object.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/object.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/object/objectWithoutOptionalProperties.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/objectWithoutOptionalProperties.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/object/objectWithoutOptionalProperties.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/objectWithoutOptionalProperties.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/object/property.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/property.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/object/property.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/property.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/object/types.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/types.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/object/types.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/object/types.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/any.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/any.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/any.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/any.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/boolean.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/boolean.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/boolean.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/boolean.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/number.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/number.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/number.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/number.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/string.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/string.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/string.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/string.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/unknown.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/unknown.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/primitives/unknown.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/primitives/unknown.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/record/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/record/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/record/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/record/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/record/record.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/record/record.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/record/record.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/record/record.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/record/types.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/record/types.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/record/types.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/record/types.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/JsonError.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/JsonError.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/JsonError.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/JsonError.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/ParseError.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/ParseError.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/ParseError.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/ParseError.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/getSchemaUtils.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/getSchemaUtils.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/getSchemaUtils.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/getSchemaUtils.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/schema-utils/stringifyValidationErrors.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/set/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/set/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/set/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/set/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/set/set.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/set/set.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/set/set.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/set/set.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/undiscriminated-union/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/undiscriminated-union/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/undiscriminated-union/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/undiscriminated-union/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/undiscriminated-union/types.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/undiscriminated-union/types.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/undiscriminated-union/types.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/undiscriminated-union/types.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/union/discriminant.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/union/discriminant.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/union/discriminant.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/union/discriminant.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/union/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/union/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/union/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/union/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/union/types.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/union/types.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/union/types.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/union/types.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/builders/union/union.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/union/union.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/builders/union/union.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/builders/union/union.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/index.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/MaybePromise.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/MaybePromise.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/MaybePromise.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/MaybePromise.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/addQuestionMarksToNullableProperties.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/addQuestionMarksToNullableProperties.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/addQuestionMarksToNullableProperties.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/addQuestionMarksToNullableProperties.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/createIdentitySchemaCreator.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/createIdentitySchemaCreator.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/createIdentitySchemaCreator.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/createIdentitySchemaCreator.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/entries.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/entries.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/entries.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/entries.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/filterObject.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/filterObject.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/filterObject.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/filterObject.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/getErrorMessageForIncorrectType.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/getErrorMessageForIncorrectType.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/getErrorMessageForIncorrectType.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/getErrorMessageForIncorrectType.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/isPlainObject.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/isPlainObject.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/isPlainObject.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/isPlainObject.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/keys.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/keys.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/keys.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/keys.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/maybeSkipValidation.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/maybeSkipValidation.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/maybeSkipValidation.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/maybeSkipValidation.ts diff --git a/seed/ts-sdk/query-parameters/src/core/schemas/utils/partition.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/partition.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/core/schemas/utils/partition.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/core/schemas/utils/partition.ts diff --git a/seed/ts-sdk/query-parameters/src/errors/SeedQueryParametersError.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/errors/SeedQueryParametersError.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/errors/SeedQueryParametersError.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/errors/SeedQueryParametersError.ts diff --git a/seed/ts-sdk/query-parameters/src/errors/SeedQueryParametersTimeoutError.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/errors/SeedQueryParametersTimeoutError.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/errors/SeedQueryParametersTimeoutError.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/errors/SeedQueryParametersTimeoutError.ts diff --git a/seed/ts-sdk/query-parameters/src/errors/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/errors/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/errors/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/errors/index.ts diff --git a/seed/ts-sdk/query-parameters/src/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/index.ts diff --git a/seed/ts-sdk/query-parameters/src/serialization/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/serialization/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/serialization/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/serialization/index.ts diff --git a/seed/ts-sdk/query-parameters/src/serialization/resources/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/serialization/resources/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/index.ts diff --git a/seed/ts-sdk/query-parameters/src/serialization/resources/user/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/user/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/serialization/resources/user/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/user/index.ts diff --git a/seed/ts-sdk/query-parameters/src/serialization/resources/user/types/NestedUser.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/user/types/NestedUser.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/serialization/resources/user/types/NestedUser.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/user/types/NestedUser.ts diff --git a/seed/ts-sdk/query-parameters/src/serialization/resources/user/types/User.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/user/types/User.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/serialization/resources/user/types/User.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/user/types/User.ts diff --git a/seed/ts-sdk/query-parameters/src/serialization/resources/user/types/index.ts b/seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/user/types/index.ts similarity index 100% rename from seed/ts-sdk/query-parameters/src/serialization/resources/user/types/index.ts rename to seed/ts-sdk/query-parameters/no-custom-config/src/serialization/resources/user/types/index.ts diff --git a/seed/ts-sdk/query-parameters/tests/client.test.ts b/seed/ts-sdk/query-parameters/no-custom-config/tests/client.test.ts similarity index 100% rename from seed/ts-sdk/query-parameters/tests/client.test.ts rename to seed/ts-sdk/query-parameters/no-custom-config/tests/client.test.ts diff --git a/seed/ts-sdk/query-parameters/tsconfig.json b/seed/ts-sdk/query-parameters/no-custom-config/tsconfig.json similarity index 100% rename from seed/ts-sdk/query-parameters/tsconfig.json rename to seed/ts-sdk/query-parameters/no-custom-config/tsconfig.json diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/.github/workflows/ci.yml b/seed/ts-sdk/query-parameters/no-serde-layer-query/.github/workflows/ci.yml new file mode 100644 index 00000000000..d37febed852 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: ci + +on: [push] + +jobs: + compile: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Set up node + uses: actions/setup-node@v3 + + - name: Compile + run: yarn && yarn build + + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Set up node + uses: actions/setup-node@v3 + + - name: Compile + run: yarn && yarn test + + publish: + needs: [ compile, test ] + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Set up node + uses: actions/setup-node@v3 + + - name: Install dependencies + run: yarn install + + - name: Build + run: yarn build \ No newline at end of file diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/.gitignore b/seed/ts-sdk/query-parameters/no-serde-layer-query/.gitignore new file mode 100644 index 00000000000..4ac5ff1f377 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/.gitignore @@ -0,0 +1,10 @@ +node_modules +.DS_Store +/dist +/Client.d.ts +/Client.js +/index.d.ts +/index.js +/api +/core +/errors \ No newline at end of file diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/.npmignore b/seed/ts-sdk/query-parameters/no-serde-layer-query/.npmignore new file mode 100644 index 00000000000..e62938dd01d --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/.npmignore @@ -0,0 +1,8 @@ +node_modules +src +.gitignore +.github +.fernignore +.prettierrc.yml +tsconfig.json +yarn.lock \ No newline at end of file diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/.prettierrc.yml b/seed/ts-sdk/query-parameters/no-serde-layer-query/.prettierrc.yml new file mode 100644 index 00000000000..0c06786bf53 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/.prettierrc.yml @@ -0,0 +1,2 @@ +tabWidth: 4 +printWidth: 120 diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/jest.config.js b/seed/ts-sdk/query-parameters/no-serde-layer-query/jest.config.js new file mode 100644 index 00000000000..3a09892d97a --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/jest.config.js @@ -0,0 +1,5 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: "ts-jest", + testEnvironment: "node", +}; \ No newline at end of file diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/package.json b/seed/ts-sdk/query-parameters/no-serde-layer-query/package.json new file mode 100644 index 00000000000..3b033a85497 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/package.json @@ -0,0 +1,31 @@ +{ + "name": "", + "version": "0.0.1", + "private": false, + "repository": "https://github.com/query-parameters/fern", + "main": "./index.js", + "types": "./index.d.ts", + "scripts": { + "format": "prettier --write 'src/**/*.ts'", + "build": "tsc", + "prepack": "cp -rv dist/. .", + "test": "jest" + }, + "dependencies": { + "url-join": "4.0.1", + "form-data": "4.0.0", + "node-fetch": "2.7.0", + "qs": "6.11.2" + }, + "devDependencies": { + "@types/url-join": "4.0.1", + "@types/qs": "6.9.8", + "@types/node-fetch": "2.6.9", + "jest": "^29.7.0", + "@types/jest": "^29.5.5", + "ts-jest": "^29.1.1", + "@types/node": "17.0.33", + "prettier": "2.7.1", + "typescript": "4.6.4" + } +} \ No newline at end of file diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/snippet.json b/seed/ts-sdk/query-parameters/no-serde-layer-query/snippet.json new file mode 100644 index 00000000000..0614251dd46 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/snippet.json @@ -0,0 +1,4 @@ +{ + "endpoints": [], + "types": {} +} \ No newline at end of file diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/Client.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/Client.ts new file mode 100644 index 00000000000..e3641d4e90b --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/Client.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as core from "./core"; +import { User } from "./api/resources/user/client/Client"; + +export declare namespace SeedQueryParametersClient { + interface Options { + environment: core.Supplier; + } + + interface RequestOptions { + timeoutInSeconds?: number; + maxRetries?: number; + } +} + +export class SeedQueryParametersClient { + constructor(protected readonly _options: SeedQueryParametersClient.Options) {} + + protected _user: User | undefined; + + public get user(): User { + return (this._user ??= new User(this._options)); + } +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/index.ts new file mode 100644 index 00000000000..3e5335fe421 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/index.ts @@ -0,0 +1 @@ +export * from "./resources"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/index.ts new file mode 100644 index 00000000000..0671bd81e84 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/index.ts @@ -0,0 +1,3 @@ +export * as user from "./user"; +export * from "./user/types"; +export * from "./user/client/requests"; diff --git a/seed/ts-sdk/query-parameters/src/api/resources/user/client/Client.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/Client.ts similarity index 79% rename from seed/ts-sdk/query-parameters/src/api/resources/user/client/Client.ts rename to seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/Client.ts index 33faa069ca3..8814ef03518 100644 --- a/seed/ts-sdk/query-parameters/src/api/resources/user/client/Client.ts +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/Client.ts @@ -5,7 +5,6 @@ import * as core from "../../../../core"; import * as SeedQueryParameters from "../../.."; import urlJoin from "url-join"; -import * as serializers from "../../../../serialization"; import * as errors from "../../../../errors"; export declare namespace User { @@ -26,17 +25,27 @@ export class User { request: SeedQueryParameters.GetUsersRequest, requestOptions?: User.RequestOptions ): Promise { - const { limit, id, date, deadline, bytes, optionalString, filter } = request; - const _queryParams: Record = {}; + const { limit, id, date, deadline, bytes, user, keyValue, optionalString, nestedUser, excludeUser, filter } = + request; + const _queryParams: Record = {}; _queryParams["limit"] = limit.toString(); _queryParams["id"] = id; _queryParams["date"] = date; - _queryParams["deadline"] = deadline.toISOString(); + _queryParams["deadline"] = deadline; _queryParams["bytes"] = bytes; + _queryParams["user"] = user; + _queryParams["keyValue"] = JSON.stringify(keyValue); if (optionalString != null) { _queryParams["optionalString"] = optionalString; } + _queryParams["nestedUser"] = nestedUser; + if (Array.isArray(excludeUser)) { + _queryParams["excludeUser"] = excludeUser.map((item) => item); + } else { + _queryParams["excludeUser"] = excludeUser; + } + if (Array.isArray(filter)) { _queryParams["filter"] = filter.map((item) => item); } else { @@ -59,12 +68,7 @@ export class User { maxRetries: requestOptions?.maxRetries, }); if (_response.ok) { - return await serializers.User.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); + return _response.body as SeedQueryParameters.User; } if (_response.error.reason === "status-code") { diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/index.ts new file mode 100644 index 00000000000..415726b7fea --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/requests/GetUsersRequest.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/requests/GetUsersRequest.ts new file mode 100644 index 00000000000..3f260bce22e --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/requests/GetUsersRequest.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as SeedQueryParameters from "../../../.."; + +export interface GetUsersRequest { + limit: number; + id: string; + date: string; + deadline: string; + bytes: string; + user: SeedQueryParameters.User; + keyValue: Record; + optionalString?: string; + nestedUser: SeedQueryParameters.NestedUser; + excludeUser: SeedQueryParameters.User | SeedQueryParameters.User[]; + filter: string | string[]; +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/requests/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/requests/index.ts new file mode 100644 index 00000000000..acd5b42b70c --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/client/requests/index.ts @@ -0,0 +1 @@ +export { GetUsersRequest } from "./GetUsersRequest"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/index.ts new file mode 100644 index 00000000000..c9240f83b48 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/index.ts @@ -0,0 +1,2 @@ +export * from "./types"; +export * from "./client"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/NestedUser.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/NestedUser.ts new file mode 100644 index 00000000000..76ccc8763e0 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/NestedUser.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as SeedQueryParameters from "../../.."; + +export interface NestedUser { + name: string; + user: SeedQueryParameters.User; +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/User.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/User.ts new file mode 100644 index 00000000000..4e9bf453214 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/User.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface User { + name: string; + tags: string[]; +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/index.ts new file mode 100644 index 00000000000..618e931b578 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/api/resources/user/types/index.ts @@ -0,0 +1,2 @@ +export * from "./User"; +export * from "./NestedUser"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/APIResponse.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/APIResponse.ts new file mode 100644 index 00000000000..3664d09e168 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/APIResponse.ts @@ -0,0 +1,12 @@ +export type APIResponse = SuccessfulResponse | FailedResponse; + +export interface SuccessfulResponse { + ok: true; + body: T; + headers?: Record; +} + +export interface FailedResponse { + ok: false; + error: T; +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/Fetcher.ts new file mode 100644 index 00000000000..5348ac9a4b7 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/Fetcher.ts @@ -0,0 +1,189 @@ +import { default as FormData } from "form-data"; +import qs from "qs"; +import { RUNTIME } from "../runtime"; +import { APIResponse } from "./APIResponse"; + +export type FetchFunction = (args: Fetcher.Args) => Promise>; + +export declare namespace Fetcher { + export interface Args { + url: string; + method: string; + contentType?: string; + headers?: Record; + queryParameters?: Record; + body?: unknown; + timeoutMs?: number; + maxRetries?: number; + withCredentials?: boolean; + responseType?: "json" | "blob" | "streaming"; + } + + export type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError; + + export interface FailedStatusCodeError { + reason: "status-code"; + statusCode: number; + body: unknown; + } + + export interface NonJsonError { + reason: "non-json"; + statusCode: number; + rawBody: string; + } + + export interface TimeoutError { + reason: "timeout"; + } + + export interface UnknownError { + reason: "unknown"; + errorMessage: string; + } +} + +const INITIAL_RETRY_DELAY = 1; +const MAX_RETRY_DELAY = 60; +const DEFAULT_MAX_RETRIES = 2; + +async function fetcherImpl(args: Fetcher.Args): Promise> { + const headers: Record = {}; + if (args.body !== undefined && args.contentType != null) { + headers["Content-Type"] = args.contentType; + } + + if (args.headers != null) { + for (const [key, value] of Object.entries(args.headers)) { + if (value != null) { + headers[key] = value; + } + } + } + + const url = + Object.keys(args.queryParameters ?? {}).length > 0 + ? `${args.url}?${qs.stringify(args.queryParameters, { arrayFormat: "repeat" })}` + : args.url; + + let body: BodyInit | undefined = undefined; + if (args.body instanceof FormData) { + // @ts-expect-error + body = args.body; + } else if (args.body instanceof Uint8Array) { + body = args.body; + } else { + body = JSON.stringify(args.body); + } + + // In Node.js environments, the SDK always uses`node-fetch`. + // If not in Node.js the SDK uses global fetch if available, + // and falls back to node-fetch. + const fetchFn = + RUNTIME.type === "node" ? require("node-fetch") : typeof fetch == "function" ? fetch : require("node-fetch"); + + const makeRequest = async (): Promise => { + const controller = new AbortController(); + let abortId = undefined; + if (args.timeoutMs != null) { + abortId = setTimeout(() => controller.abort(), args.timeoutMs); + } + const response = await fetchFn(url, { + method: args.method, + headers, + body, + signal: controller.signal, + credentials: args.withCredentials ? "include" : undefined, + }); + if (abortId != null) { + clearTimeout(abortId); + } + return response; + }; + + try { + let response = await makeRequest(); + + for (let i = 0; i < (args.maxRetries ?? DEFAULT_MAX_RETRIES); ++i) { + if ( + response.status === 408 || + response.status === 409 || + response.status === 429 || + response.status >= 500 + ) { + const delay = Math.min(INITIAL_RETRY_DELAY * Math.pow(i, 2), MAX_RETRY_DELAY); + await new Promise((resolve) => setTimeout(resolve, delay)); + response = await makeRequest(); + } else { + break; + } + } + + let body: unknown; + if (response.body != null && args.responseType === "blob") { + body = await response.blob(); + } else if (response.body != null && args.responseType === "streaming") { + body = response.body; + } else { + const text = await response.text(); + if (text.length > 0) { + try { + body = JSON.parse(text); + } catch (err) { + return { + ok: false, + error: { + reason: "non-json", + statusCode: response.status, + rawBody: text, + }, + }; + } + } + } + + if (response.status >= 200 && response.status < 400) { + return { + ok: true, + body: body as R, + headers: response.headers, + }; + } else { + return { + ok: false, + error: { + reason: "status-code", + statusCode: response.status, + body, + }, + }; + } + } catch (error) { + if (error instanceof Error && error.name === "AbortError") { + return { + ok: false, + error: { + reason: "timeout", + }, + }; + } else if (error instanceof Error) { + return { + ok: false, + error: { + reason: "unknown", + errorMessage: error.message, + }, + }; + } + + return { + ok: false, + error: { + reason: "unknown", + errorMessage: JSON.stringify(error), + }, + }; + } +} + +export const fetcher: FetchFunction = fetcherImpl; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/Supplier.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/Supplier.ts new file mode 100644 index 00000000000..867c931c02f --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/Supplier.ts @@ -0,0 +1,11 @@ +export type Supplier = T | Promise | (() => T | Promise); + +export const Supplier = { + get: async (supplier: Supplier): Promise => { + if (typeof supplier === "function") { + return (supplier as () => T)(); + } else { + return supplier; + } + }, +}; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/getHeader.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/getHeader.ts new file mode 100644 index 00000000000..50f922b0e87 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/getHeader.ts @@ -0,0 +1,8 @@ +export function getHeader(headers: Record, header: string): string | undefined { + for (const [headerKey, headerValue] of Object.entries(headers)) { + if (headerKey.toLowerCase() === header.toLowerCase()) { + return headerValue; + } + } + return undefined; +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/index.ts new file mode 100644 index 00000000000..2d658ca48f9 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/fetcher/index.ts @@ -0,0 +1,5 @@ +export type { APIResponse } from "./APIResponse"; +export { fetcher } from "./Fetcher"; +export type { Fetcher, FetchFunction } from "./Fetcher"; +export { getHeader } from "./getHeader"; +export { Supplier } from "./Supplier"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/index.ts new file mode 100644 index 00000000000..000107d9932 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/index.ts @@ -0,0 +1,2 @@ +export * from "./fetcher"; +export * from "./runtime"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/runtime/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/runtime/index.ts new file mode 100644 index 00000000000..5c76dbb133f --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/runtime/index.ts @@ -0,0 +1 @@ +export { RUNTIME } from "./runtime"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/runtime/runtime.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/runtime/runtime.ts new file mode 100644 index 00000000000..f0692ab3d24 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/core/runtime/runtime.ts @@ -0,0 +1,112 @@ +interface DenoGlobal { + version: { + deno: string; + }; +} + +interface BunGlobal { + version: string; +} + +declare const Deno: DenoGlobal; +declare const Bun: BunGlobal; + +/** + * A constant that indicates whether the environment the code is running is a Web Browser. + */ +const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined"; + +/** + * A constant that indicates whether the environment the code is running is a Web Worker. + */ +const isWebWorker = + typeof self === "object" && + // @ts-ignore + typeof self?.importScripts === "function" && + (self.constructor?.name === "DedicatedWorkerGlobalScope" || + self.constructor?.name === "ServiceWorkerGlobalScope" || + self.constructor?.name === "SharedWorkerGlobalScope"); + +/** + * A constant that indicates whether the environment the code is running is Deno. + */ +const isDeno = + typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined"; + +/** + * A constant that indicates whether the environment the code is running is Bun.sh. + */ +const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined"; + +/** + * A constant that indicates whether the environment the code is running is Node.JS. + */ +const isNode = + typeof process !== "undefined" && + Boolean(process.version) && + Boolean(process.versions?.node) && + // Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions + !isDeno && + !isBun; + +/** + * A constant that indicates whether the environment the code is running is in React-Native. + * https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js + */ +const isReactNative = typeof navigator !== "undefined" && navigator?.product === "ReactNative"; + +/** + * A constant that indicates which environment and version the SDK is running in. + */ +export const RUNTIME: Runtime = evaluateRuntime(); + +export interface Runtime { + type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown"; + version?: string; +} + +function evaluateRuntime(): Runtime { + if (isBrowser) { + return { + type: "browser", + version: window.navigator.userAgent, + }; + } + + if (isWebWorker) { + return { + type: "web-worker", + }; + } + + if (isDeno) { + return { + type: "deno", + version: Deno.version.deno, + }; + } + + if (isBun) { + return { + type: "bun", + version: Bun.version, + }; + } + + if (isNode) { + return { + type: "node", + version: process.versions.node, + }; + } + + if (isReactNative) { + return { + type: "react-native", + }; + } + + return { + type: "unknown", + }; +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/SeedQueryParametersError.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/SeedQueryParametersError.ts new file mode 100644 index 00000000000..4ff62d96a56 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/SeedQueryParametersError.ts @@ -0,0 +1,45 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export class SeedQueryParametersError extends Error { + readonly statusCode?: number; + readonly body?: unknown; + + constructor({ message, statusCode, body }: { message?: string; statusCode?: number; body?: unknown }) { + super(buildMessage({ message, statusCode, body })); + Object.setPrototypeOf(this, SeedQueryParametersError.prototype); + if (statusCode != null) { + this.statusCode = statusCode; + } + + if (body !== undefined) { + this.body = body; + } + } +} + +function buildMessage({ + message, + statusCode, + body, +}: { + message: string | undefined; + statusCode: number | undefined; + body: unknown | undefined; +}): string { + let lines: string[] = []; + if (message != null) { + lines.push(message); + } + + if (statusCode != null) { + lines.push(`Status code: ${statusCode.toString()}`); + } + + if (body != null) { + lines.push(`Body: ${JSON.stringify(body, undefined, 2)}`); + } + + return lines.join("\n"); +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/SeedQueryParametersTimeoutError.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/SeedQueryParametersTimeoutError.ts new file mode 100644 index 00000000000..5508df6655a --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/SeedQueryParametersTimeoutError.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export class SeedQueryParametersTimeoutError extends Error { + constructor() { + super("Timeout"); + Object.setPrototypeOf(this, SeedQueryParametersTimeoutError.prototype); + } +} diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/index.ts new file mode 100644 index 00000000000..6be4e62c814 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/errors/index.ts @@ -0,0 +1,2 @@ +export { SeedQueryParametersError } from "./SeedQueryParametersError"; +export { SeedQueryParametersTimeoutError } from "./SeedQueryParametersTimeoutError"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/src/index.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/index.ts new file mode 100644 index 00000000000..352dcd13f66 --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/src/index.ts @@ -0,0 +1,3 @@ +export * as SeedQueryParameters from "./api"; +export { SeedQueryParametersClient } from "./Client"; +export { SeedQueryParametersError, SeedQueryParametersTimeoutError } from "./errors"; diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/client.test.ts b/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/client.test.ts new file mode 100644 index 00000000000..62b373b937b --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/tests/client.test.ts @@ -0,0 +1,11 @@ +/** +* This is a test file for the SDK. +* +* Add any tests here and make sure to mark this file +* in `.fernignore`. +*/ +describe("test", () => { + it("default", () => { + expect(true).toBe(true); + }); +}); \ No newline at end of file diff --git a/seed/ts-sdk/query-parameters/no-serde-layer-query/tsconfig.json b/seed/ts-sdk/query-parameters/no-serde-layer-query/tsconfig.json new file mode 100644 index 00000000000..5a306b230bd --- /dev/null +++ b/seed/ts-sdk/query-parameters/no-serde-layer-query/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "extendedDiagnostics": true, + "strict": true, + "target": "ES6", + "module": "CommonJS", + "moduleResolution": "node", + "esModuleInterop": true, + "skipLibCheck": true, + "declaration": true, + "outDir": "dist", + "rootDir": "src", + "baseUrl": "src" + }, + "include": [ + "src" + ], + "exclude": [] +} \ No newline at end of file diff --git a/seed/ts-sdk/reserved-keywords/src/api/resources/package/client/Client.ts b/seed/ts-sdk/reserved-keywords/src/api/resources/package/client/Client.ts index 54f938ad896..c998d185144 100644 --- a/seed/ts-sdk/reserved-keywords/src/api/resources/package/client/Client.ts +++ b/seed/ts-sdk/reserved-keywords/src/api/resources/package/client/Client.ts @@ -22,7 +22,7 @@ export class Package { public async test(request: SeedNurseryApi.TestRequest, requestOptions?: Package.RequestOptions): Promise { const { for: for_ } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["for"] = for_; const _response = await core.fetcher({ url: await core.Supplier.get(this._options.environment), diff --git a/seed/ts-sdk/reserved-keywords/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/reserved-keywords/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/reserved-keywords/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/reserved-keywords/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/response-property/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/response-property/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/response-property/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/response-property/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/seed.yml b/seed/ts-sdk/seed.yml index 4579abb075f..d05f3f9f9b1 100644 --- a/seed/ts-sdk/seed.yml +++ b/seed/ts-sdk/seed.yml @@ -1,4 +1,4 @@ -irVersion: v31 +irVersion: v33 docker: fernapi/fern-typescript-node-sdk:local dockerCommand: yarn workspace @fern-typescript/sdk-generator-cli dockerTagLocal:node language: typescript @@ -66,6 +66,12 @@ fixtures: - customConfig: treatUnknownAsAny: true outputFolder: unknown-as-any + query-parameters: + - customConfig: null + outputFolder: no-custom-config + - customConfig: + noSerdeLayer: true + outputFolder: no-serde-layer-query trace: - customConfig: null outputFolder: no-custom-config @@ -101,3 +107,5 @@ allowedFailures: - exhaustive:bundle - exhaustive:dev-dependencies - audiences + - enum # throws b/c of undiscriminated union examples + - examples:examples-with-api-reference # throws b/c of undiscriminated union examples diff --git a/seed/ts-sdk/single-url-environment-default/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/single-url-environment-default/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/single-url-environment-default/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/single-url-environment-default/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/single-url-environment-no-default/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/single-url-environment-no-default/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/single-url-environment-no-default/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/single-url-environment-no-default/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/streaming/allow-custom-fetcher/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/streaming/allow-custom-fetcher/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/streaming/allow-custom-fetcher/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/streaming/allow-custom-fetcher/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/streaming/no-custom-config/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/streaming/no-custom-config/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/streaming/no-custom-config/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/streaming/no-custom-config/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/trace/exhaustive/src/api/resources/playlist/client/Client.ts b/seed/ts-sdk/trace/exhaustive/src/api/resources/playlist/client/Client.ts index f13e0f484c6..3506a4713fb 100644 --- a/seed/ts-sdk/trace/exhaustive/src/api/resources/playlist/client/Client.ts +++ b/seed/ts-sdk/trace/exhaustive/src/api/resources/playlist/client/Client.ts @@ -33,7 +33,7 @@ export class Playlist { requestOptions?: Playlist.RequestOptions ): Promise> { const { datetime, optionalDatetime, body: _body } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["datetime"] = datetime.toISOString(); if (optionalDatetime != null) { _queryParams["optionalDatetime"] = optionalDatetime.toISOString(); @@ -91,7 +91,7 @@ export class Playlist { requestOptions?: Playlist.RequestOptions ): Promise> { const { limit, otherField, multiLineDocs, optionalMultipleField, multipleField } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (limit != null) { _queryParams["limit"] = limit.toString(); } diff --git a/seed/ts-sdk/trace/exhaustive/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/trace/exhaustive/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/trace/exhaustive/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/trace/exhaustive/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/trace/no-custom-config/src/api/resources/playlist/client/Client.ts b/seed/ts-sdk/trace/no-custom-config/src/api/resources/playlist/client/Client.ts index 72d2900d68f..e89397227ab 100644 --- a/seed/ts-sdk/trace/no-custom-config/src/api/resources/playlist/client/Client.ts +++ b/seed/ts-sdk/trace/no-custom-config/src/api/resources/playlist/client/Client.ts @@ -34,7 +34,7 @@ export class Playlist { requestOptions?: Playlist.RequestOptions ): Promise { const { datetime, optionalDatetime, body: _body } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["datetime"] = datetime.toISOString(); if (optionalDatetime != null) { _queryParams["optionalDatetime"] = optionalDatetime.toISOString(); @@ -104,7 +104,7 @@ export class Playlist { requestOptions?: Playlist.RequestOptions ): Promise { const { limit, otherField, multiLineDocs, optionalMultipleField, multipleField } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (limit != null) { _queryParams["limit"] = limit.toString(); } diff --git a/seed/ts-sdk/trace/no-custom-config/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/trace/no-custom-config/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/trace/no-custom-config/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/trace/no-custom-config/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/playlist/client/Client.ts b/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/playlist/client/Client.ts index d3bfcd68abd..ccf34c227ea 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/playlist/client/Client.ts +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/src/api/resources/playlist/client/Client.ts @@ -32,7 +32,7 @@ export class Playlist { requestOptions?: Playlist.RequestOptions ): Promise> { const { datetime, optionalDatetime, body: _body } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["datetime"] = datetime; if (optionalDatetime != null) { _queryParams["optionalDatetime"] = optionalDatetime; @@ -84,7 +84,7 @@ export class Playlist { requestOptions?: Playlist.RequestOptions ): Promise> { const { limit, otherField, multiLineDocs, optionalMultipleField, multipleField } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (limit != null) { _queryParams["limit"] = limit.toString(); } diff --git a/seed/ts-sdk/trace/no-zurg-no-throwing/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/trace/no-zurg-no-throwing/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/trace/no-zurg-no-throwing/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/trace/no-zurg-no-throwing/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/playlist/client/Client.ts b/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/playlist/client/Client.ts index 9990de30e5c..962a41f9a82 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/playlist/client/Client.ts +++ b/seed/ts-sdk/trace/no-zurg-trace/src/api/resources/playlist/client/Client.ts @@ -33,7 +33,7 @@ export class Playlist { requestOptions?: Playlist.RequestOptions ): Promise { const { datetime, optionalDatetime, body: _body } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; _queryParams["datetime"] = datetime; if (optionalDatetime != null) { _queryParams["optionalDatetime"] = optionalDatetime; @@ -98,7 +98,7 @@ export class Playlist { requestOptions?: Playlist.RequestOptions ): Promise { const { limit, otherField, multiLineDocs, optionalMultipleField, multipleField } = request; - const _queryParams: Record = {}; + const _queryParams: Record = {}; if (limit != null) { _queryParams["limit"] = limit.toString(); } diff --git a/seed/ts-sdk/trace/no-zurg-trace/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/trace/no-zurg-trace/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/trace/no-zurg-trace/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/trace/no-zurg-trace/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/undiscriminated-unions/no-custom-config/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/undiscriminated-unions/no-custom-config/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/undiscriminated-unions/no-custom-config/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/undiscriminated-unions/no-custom-config/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/undiscriminated-unions/skip-response-validation/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/undiscriminated-unions/skip-response-validation/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/unknown/no-custom-config/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/unknown/no-custom-config/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/unknown/no-custom-config/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/unknown/no-custom-config/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/unknown/unknown-as-any/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/unknown/unknown-as-any/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/unknown/unknown-as-any/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/unknown/unknown-as-any/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/seed/ts-sdk/variables/src/core/fetcher/Fetcher.ts b/seed/ts-sdk/variables/src/core/fetcher/Fetcher.ts index eddba46b823..5348ac9a4b7 100644 --- a/seed/ts-sdk/variables/src/core/fetcher/Fetcher.ts +++ b/seed/ts-sdk/variables/src/core/fetcher/Fetcher.ts @@ -11,7 +11,7 @@ export declare namespace Fetcher { method: string; contentType?: string; headers?: Record; - queryParameters?: Record; + queryParameters?: Record; body?: unknown; timeoutMs?: number; maxRetries?: number; diff --git a/yarn.lock b/yarn.lock index 25cb99cb615..a42ef62f3d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3762,6 +3762,13 @@ __metadata: languageName: node linkType: hard +"@fern-fern/ir-sdk@npm:0.0.16": + version: 0.0.16 + resolution: "@fern-fern/ir-sdk@npm:0.0.16" + checksum: 2e1f06b32d95c30902c8af1d5d5019b0b02208a698940af29e764709f2560e96b755a377c8fa1d4e4a17082986657c2d8b4063383035cc24ec3626056ecb2ab6 + languageName: node + linkType: hard + "@fern-fern/ir-sdk@npm:0.0.2828": version: 0.0.2828 resolution: "@fern-fern/ir-sdk@npm:0.0.2828" @@ -4078,7 +4085,7 @@ __metadata: "@fern-api/fs-utils": "workspace:*" "@fern-api/logger": "workspace:*" "@fern-fern/generator-exec-sdk": 0.0.571 - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@types/jest": ^29.0.3 @@ -4165,7 +4172,7 @@ __metadata: "@fern-api/fs-utils": "workspace:*" "@fern-api/logger": "workspace:*" "@fern-api/logging-execa": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/fetcher": "workspace:*" "@fern-typescript/zurg": "workspace:*" "@types/decompress": ^4.2.7 @@ -4199,7 +4206,7 @@ __metadata: resolution: "@fern-typescript/contexts@workspace:generators/typescript/utils/contexts" dependencies: "@fern-api/logger": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@types/jest": ^29.0.3 "@types/node": ^18.7.18 @@ -4217,7 +4224,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/endpoint-error-union-generator@workspace:generators/typescript/sdk/endpoint-error-union-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@fern-typescript/resolvers": "workspace:*" @@ -4238,7 +4245,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/environments-generator@workspace:generators/typescript/sdk/environments-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@types/jest": ^29.0.3 @@ -4258,7 +4265,7 @@ __metadata: resolution: "@fern-typescript/express-endpoint-type-schemas-generator@workspace:generators/typescript/express/express-endpoint-type-schemas-generator" dependencies: "@fern-api/core-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-schema-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4278,7 +4285,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/express-error-generator@workspace:generators/typescript/express/express-error-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-error-class-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4299,7 +4306,7 @@ __metadata: resolution: "@fern-typescript/express-error-schema-generator@workspace:generators/typescript/express/express-error-schema-generator" dependencies: "@fern-api/core-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-schema-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4321,7 +4328,7 @@ __metadata: dependencies: "@fern-api/umd-compat-loader": ^2.1.4 "@fern-fern/generator-exec-sdk": 0.0.571 - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-generator-cli": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4355,7 +4362,7 @@ __metadata: dependencies: "@fern-api/core-utils": "workspace:*" "@fern-api/fs-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@fern-typescript/express-endpoint-type-schemas-generator": "workspace:*" @@ -4387,7 +4394,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/express-inlined-request-body-generator@workspace:generators/typescript/express/express-inlined-request-body-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@types/jest": ^29.0.3 @@ -4405,7 +4412,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/express-inlined-request-schema-generator@workspace:generators/typescript/express/express-inlined-request-body-schema-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-schema-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4425,7 +4432,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/express-register-generator@workspace:generators/typescript/express/express-register-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@fern-typescript/resolvers": "workspace:*" @@ -4447,7 +4454,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/express-service-generator@workspace:generators/typescript/express/express-service-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@fern-typescript/resolvers": "workspace:*" @@ -4542,7 +4549,7 @@ __metadata: resolution: "@fern-typescript/request-wrapper-generator@workspace:generators/typescript/sdk/request-wrapper-generator" dependencies: "@fern-api/core-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@types/jest": ^29.0.3 @@ -4561,7 +4568,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/resolvers@workspace:generators/typescript/utils/resolvers" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@types/jest": ^29.0.3 "@types/node": ^18.7.18 @@ -4579,7 +4586,7 @@ __metadata: resolution: "@fern-typescript/sdk-client-class-generator@workspace:generators/typescript/sdk/client-class-generator" dependencies: "@fern-api/core-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@fern-typescript/resolvers": "workspace:*" @@ -4600,7 +4607,7 @@ __metadata: resolution: "@fern-typescript/sdk-endpoint-type-schemas-generator@workspace:generators/typescript/sdk/sdk-endpoint-type-schemas-generator" dependencies: "@fern-api/core-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-schema-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4622,7 +4629,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/sdk-error-generator@workspace:generators/typescript/sdk/sdk-error-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-error-class-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4643,7 +4650,7 @@ __metadata: resolution: "@fern-typescript/sdk-error-schema-generator@workspace:generators/typescript/sdk/sdk-error-schema-generator" dependencies: "@fern-api/core-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-schema-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4666,7 +4673,7 @@ __metadata: "@fern-api/fs-utils": "workspace:*" "@fern-api/umd-compat-loader": ^2.1.4 "@fern-fern/generator-exec-sdk": 0.0.571 - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-generator-cli": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4701,7 +4708,7 @@ __metadata: "@fern-api/core-utils": "workspace:*" "@fern-api/fs-utils": "workspace:*" "@fern-fern/generator-exec-sdk": 0.0.571 - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@fern-typescript/endpoint-error-union-generator": "workspace:*" @@ -4738,7 +4745,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/sdk-inlined-request-schema-generator@workspace:generators/typescript/sdk/sdk-inlined-request-body-schema-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-schema-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4773,7 +4780,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/type-generator@workspace:generators/typescript/model/type-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@fern-typescript/union-generator": "workspace:*" @@ -4793,7 +4800,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/type-reference-converters@workspace:generators/typescript/model/type-reference-converters" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/resolvers": "workspace:*" "@types/jest": ^29.0.3 @@ -4813,7 +4820,7 @@ __metadata: resolution: "@fern-typescript/type-reference-example-generator@workspace:generators/typescript/model/type-reference-example-generator" dependencies: "@fern-api/core-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@types/jest": ^29.0.3 @@ -4832,7 +4839,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/type-schema-generator@workspace:generators/typescript/model/type-schema-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-schema-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" @@ -4854,7 +4861,7 @@ __metadata: resolution: "@fern-typescript/union-generator@workspace:generators/typescript/model/union-generator" dependencies: "@fern-api/core-utils": "workspace:*" - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*" "@types/jest": ^29.0.3 @@ -4873,7 +4880,7 @@ __metadata: version: 0.0.0-use.local resolution: "@fern-typescript/union-schema-generator@workspace:generators/typescript/model/union-schema-generator" dependencies: - "@fern-fern/ir-sdk": 0.0.3294 + "@fern-fern/ir-sdk": 0.0.16 "@fern-typescript/abstract-schema-generator": "workspace:*" "@fern-typescript/commons": "workspace:*" "@fern-typescript/contexts": "workspace:*"