From e3722bde13ae8f169f9ed5b196bde25f6aaa218d Mon Sep 17 00:00:00 2001 From: dsinghvi Date: Wed, 21 Feb 2024 07:46:14 -0500 Subject: [PATCH] (chore): bump java sdk version to 0.8.2 --- generators/java/sdk/VERSION | 2 +- .../__test__/__snapshots__/file-upload.txt | 843 +----------------- 2 files changed, 32 insertions(+), 813 deletions(-) diff --git a/generators/java/sdk/VERSION b/generators/java/sdk/VERSION index c18d72be303..53a48a1e8c6 100644 --- a/generators/java/sdk/VERSION +++ b/generators/java/sdk/VERSION @@ -1 +1 @@ -0.8.1 \ No newline at end of file +0.8.2 \ No newline at end of file diff --git a/packages/cli/generation/ir-generator/src/__test__/__snapshots__/file-upload.txt b/packages/cli/generation/ir-generator/src/__test__/__snapshots__/file-upload.txt index b54e31b4e19..f6fbe02187f 100644 --- a/packages/cli/generation/ir-generator/src/__test__/__snapshots__/file-upload.txt +++ b/packages/cli/generation/ir-generator/src/__test__/__snapshots__/file-upload.txt @@ -93,8 +93,6 @@ exports[`generate IR 1`] = ` "sharedTypes": [], "typesReferencedOnlyByService": { "service_service": [ - "type_service:MaybeList", - "type_service:MaybeListOrSet", "type_service:MyObject", ], }, @@ -394,533 +392,39 @@ exports[`generate IR 1`] = ` "name": { "name": { "camelCase": { - "safeName": "listOfStrings", - "unsafeName": "listOfStrings", - }, - "originalName": "listOfStrings", - "pascalCase": { - "safeName": "ListOfStrings", - "unsafeName": "ListOfStrings", - }, - "screamingSnakeCase": { - "safeName": "LIST_OF_STRINGS", - "unsafeName": "LIST_OF_STRINGS", - }, - "snakeCase": { - "safeName": "list_of_strings", - "unsafeName": "list_of_strings", - }, - }, - "wireValue": "listOfStrings", - }, - "type": "bodyProperty", - "valueType": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "setOfStrings", - "unsafeName": "setOfStrings", - }, - "originalName": "setOfStrings", - "pascalCase": { - "safeName": "SetOfStrings", - "unsafeName": "SetOfStrings", - }, - "screamingSnakeCase": { - "safeName": "SET_OF_STRINGS", - "unsafeName": "SET_OF_STRINGS", - }, - "snakeCase": { - "safeName": "set_of_strings", - "unsafeName": "set_of_strings", - }, - }, - "wireValue": "setOfStrings", - }, - "type": "bodyProperty", - "valueType": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "optionalListOfStrings", - "unsafeName": "optionalListOfStrings", - }, - "originalName": "optionalListOfStrings", - "pascalCase": { - "safeName": "OptionalListOfStrings", - "unsafeName": "OptionalListOfStrings", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_LIST_OF_STRINGS", - "unsafeName": "OPTIONAL_LIST_OF_STRINGS", - }, - "snakeCase": { - "safeName": "optional_list_of_strings", - "unsafeName": "optional_list_of_strings", - }, - }, - "wireValue": "optionalListOfStrings", - }, - "type": "bodyProperty", - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "optionalSetOfStrings", - "unsafeName": "optionalSetOfStrings", - }, - "originalName": "optionalSetOfStrings", - "pascalCase": { - "safeName": "OptionalSetOfStrings", - "unsafeName": "OptionalSetOfStrings", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_SET_OF_STRINGS", - "unsafeName": "OPTIONAL_SET_OF_STRINGS", - }, - "snakeCase": { - "safeName": "optional_set_of_strings", - "unsafeName": "optional_set_of_strings", - }, - }, - "wireValue": "optionalSetOfStrings", - }, - "type": "bodyProperty", - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "maybeList", - "unsafeName": "maybeList", - }, - "originalName": "maybeList", - "pascalCase": { - "safeName": "MaybeList", - "unsafeName": "MaybeList", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_LIST", - "unsafeName": "MAYBE_LIST", - }, - "snakeCase": { - "safeName": "maybe_list", - "unsafeName": "maybe_list", - }, - }, - "wireValue": "maybeList", - }, - "type": "bodyProperty", - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "maybeList", - "unsafeName": "maybeList", - }, - "originalName": "MaybeList", - "pascalCase": { - "safeName": "MaybeList", - "unsafeName": "MaybeList", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_LIST", - "unsafeName": "MAYBE_LIST", - }, - "snakeCase": { - "safeName": "maybe_list", - "unsafeName": "maybe_list", - }, - }, - "typeId": "type_service:MaybeList", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "optionalMaybeList", - "unsafeName": "optionalMaybeList", - }, - "originalName": "optionalMaybeList", - "pascalCase": { - "safeName": "OptionalMaybeList", - "unsafeName": "OptionalMaybeList", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_MAYBE_LIST", - "unsafeName": "OPTIONAL_MAYBE_LIST", - }, - "snakeCase": { - "safeName": "optional_maybe_list", - "unsafeName": "optional_maybe_list", - }, - }, - "wireValue": "optionalMaybeList", - }, - "type": "bodyProperty", - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "maybeList", - "unsafeName": "maybeList", - }, - "originalName": "MaybeList", - "pascalCase": { - "safeName": "MaybeList", - "unsafeName": "MaybeList", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_LIST", - "unsafeName": "MAYBE_LIST", - }, - "snakeCase": { - "safeName": "maybe_list", - "unsafeName": "maybe_list", - }, - }, - "typeId": "type_service:MaybeList", - }, - }, - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "maybeListOrSet", - "unsafeName": "maybeListOrSet", - }, - "originalName": "maybeListOrSet", - "pascalCase": { - "safeName": "MaybeListOrSet", - "unsafeName": "MaybeListOrSet", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_LIST_OR_SET", - "unsafeName": "MAYBE_LIST_OR_SET", - }, - "snakeCase": { - "safeName": "maybe_list_or_set", - "unsafeName": "maybe_list_or_set", - }, - }, - "wireValue": "maybeListOrSet", - }, - "type": "bodyProperty", - "valueType": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "maybeListOrSet", - "unsafeName": "maybeListOrSet", - }, - "originalName": "MaybeListOrSet", - "pascalCase": { - "safeName": "MaybeListOrSet", - "unsafeName": "MaybeListOrSet", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_LIST_OR_SET", - "unsafeName": "MAYBE_LIST_OR_SET", - }, - "snakeCase": { - "safeName": "maybe_list_or_set", - "unsafeName": "maybe_list_or_set", - }, - }, - "typeId": "type_service:MaybeListOrSet", - }, - }, - { - "docs": null, - "name": { - "name": { - "camelCase": { - "safeName": "optionalMaybeListOrSet", - "unsafeName": "optionalMaybeListOrSet", - }, - "originalName": "optionalMaybeListOrSet", - "pascalCase": { - "safeName": "OptionalMaybeListOrSet", - "unsafeName": "OptionalMaybeListOrSet", - }, - "screamingSnakeCase": { - "safeName": "OPTIONAL_MAYBE_LIST_OR_SET", - "unsafeName": "OPTIONAL_MAYBE_LIST_OR_SET", - }, - "snakeCase": { - "safeName": "optional_maybe_list_or_set", - "unsafeName": "optional_maybe_list_or_set", - }, - }, - "wireValue": "optionalMaybeListOrSet", - }, - "type": "bodyProperty", - "valueType": { - "_type": "container", - "container": { - "_type": "optional", - "optional": { - "_type": "named", - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "maybeListOrSet", - "unsafeName": "maybeListOrSet", - }, - "originalName": "MaybeListOrSet", - "pascalCase": { - "safeName": "MaybeListOrSet", - "unsafeName": "MaybeListOrSet", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_LIST_OR_SET", - "unsafeName": "MAYBE_LIST_OR_SET", - }, - "snakeCase": { - "safeName": "maybe_list_or_set", - "unsafeName": "maybe_list_or_set", + "safeName": "optionalListOfStrings", + "unsafeName": "optionalListOfStrings", + }, + "originalName": "optionalListOfStrings", + "pascalCase": { + "safeName": "OptionalListOfStrings", + "unsafeName": "OptionalListOfStrings", + }, + "screamingSnakeCase": { + "safeName": "OPTIONAL_LIST_OF_STRINGS", + "unsafeName": "OPTIONAL_LIST_OF_STRINGS", + }, + "snakeCase": { + "safeName": "optional_list_of_strings", + "unsafeName": "optional_list_of_strings", + }, + }, + "wireValue": "optionalListOfStrings", + }, + "type": "bodyProperty", + "valueType": { + "_type": "container", + "container": { + "_type": "optional", + "optional": { + "_type": "container", + "container": { + "_type": "list", + "list": { + "_type": "primitive", + "primitive": "STRING", }, }, - "typeId": "type_service:MaybeListOrSet", }, }, }, @@ -1703,8 +1207,6 @@ exports[`generate IR 1`] = ` "service": "service_service", "subpackages": [], "types": [ - "type_service:MaybeList", - "type_service:MaybeListOrSet", "type_service:MyObject", ], "webhooks": null, @@ -1712,289 +1214,6 @@ exports[`generate IR 1`] = ` }, }, "types": { - "type_service:MaybeList": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "maybeList", - "unsafeName": "maybeList", - }, - "originalName": "MaybeList", - "pascalCase": { - "safeName": "MaybeList", - "unsafeName": "MaybeList", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_LIST", - "unsafeName": "MAYBE_LIST", - }, - "snakeCase": { - "safeName": "maybe_list", - "unsafeName": "maybe_list", - }, - }, - "typeId": "type_service:MaybeList", - }, - "referencedTypes": [], - "shape": { - "_type": "undiscriminatedUnion", - "members": [ - { - "docs": null, - "type": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "type": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "docs": null, - "type": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "docs": null, - "type": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - }, - }, - { - "docs": null, - "type": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - }, - }, - }, - }, - ], - }, - }, - "type_service:MaybeListOrSet": { - "availability": null, - "docs": null, - "examples": [], - "name": { - "fernFilepath": { - "allParts": [ - { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - ], - "file": { - "camelCase": { - "safeName": "service", - "unsafeName": "service", - }, - "originalName": "service", - "pascalCase": { - "safeName": "Service", - "unsafeName": "Service", - }, - "screamingSnakeCase": { - "safeName": "SERVICE", - "unsafeName": "SERVICE", - }, - "snakeCase": { - "safeName": "service", - "unsafeName": "service", - }, - }, - "packagePath": [], - }, - "name": { - "camelCase": { - "safeName": "maybeListOrSet", - "unsafeName": "maybeListOrSet", - }, - "originalName": "MaybeListOrSet", - "pascalCase": { - "safeName": "MaybeListOrSet", - "unsafeName": "MaybeListOrSet", - }, - "screamingSnakeCase": { - "safeName": "MAYBE_LIST_OR_SET", - "unsafeName": "MAYBE_LIST_OR_SET", - }, - "snakeCase": { - "safeName": "maybe_list_or_set", - "unsafeName": "maybe_list_or_set", - }, - }, - "typeId": "type_service:MaybeListOrSet", - }, - "referencedTypes": [], - "shape": { - "_type": "undiscriminatedUnion", - "members": [ - { - "docs": null, - "type": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - { - "docs": null, - "type": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - { - "docs": null, - "type": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - { - "docs": null, - "type": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - }, - }, - { - "docs": null, - "type": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "container", - "container": { - "_type": "list", - "list": { - "_type": "primitive", - "primitive": "INTEGER", - }, - }, - }, - }, - }, - }, - { - "docs": null, - "type": { - "_type": "container", - "container": { - "_type": "set", - "set": { - "_type": "primitive", - "primitive": "STRING", - }, - }, - }, - }, - ], - }, - }, "type_service:MyObject": { "availability": null, "docs": null,