From 9e1f6bf859f915d11b1f5982c045816d197da0d2 Mon Sep 17 00:00:00 2001 From: yunho-microsoft <75456899+yunho-microsoft@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:19:58 -0700 Subject: [PATCH] add new error code: TokenRevoked (#22723) Add a new error code: TokenRevoked to InternalErrorCode enum for driver to handle token revocation scenario: should refresh token and reconnect. Co-authored-by: Yunho --- .../api-report/server-services-client.api.md | 3 +- .../packages/services-client/src/error.ts | 5 + ...alidateServerServicesPrevious.generated.ts | 624 ++++++++++++++++++ 3 files changed, 631 insertions(+), 1 deletion(-) diff --git a/server/routerlicious/packages/services-client/api-report/server-services-client.api.md b/server/routerlicious/packages/services-client/api-report/server-services-client.api.md index f36462930eed..7b3452dbd0be 100644 --- a/server/routerlicious/packages/services-client/api-report/server-services-client.api.md +++ b/server/routerlicious/packages/services-client/api-report/server-services-client.api.md @@ -395,7 +395,8 @@ export interface INormalizedWholeSummary { // @internal export enum InternalErrorCode { - ClusterDraining = "ClusterDraining" + ClusterDraining = "ClusterDraining", + TokenRevoked = "TokenRevoked" } // @internal diff --git a/server/routerlicious/packages/services-client/src/error.ts b/server/routerlicious/packages/services-client/src/error.ts index 9934757454d3..d92bf177108a 100644 --- a/server/routerlicious/packages/services-client/src/error.ts +++ b/server/routerlicious/packages/services-client/src/error.ts @@ -12,6 +12,11 @@ export enum InternalErrorCode { * The cluster is under draining. */ ClusterDraining = "ClusterDraining", + + /** + * The token has been revoked. + */ + TokenRevoked = "TokenRevoked", } /** diff --git a/server/routerlicious/packages/services/src/test/types/validateServerServicesPrevious.generated.ts b/server/routerlicious/packages/services/src/test/types/validateServerServicesPrevious.generated.ts index aab198a5ffa0..63e97bae6a4b 100644 --- a/server/routerlicious/packages/services/src/test/types/validateServerServicesPrevious.generated.ts +++ b/server/routerlicious/packages/services/src/test/types/validateServerServicesPrevious.generated.ts @@ -23,6 +23,30 @@ type TypeOnly = T extends number [P in keyof T]: TypeOnly; }; +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_BasicWebServerFactory": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_BasicWebServerFactory(): + TypeOnly; +declare function use_current_ClassDeclaration_BasicWebServerFactory( + use: TypeOnly): void; +use_current_ClassDeclaration_BasicWebServerFactory( + get_old_ClassDeclaration_BasicWebServerFactory()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_BasicWebServerFactory": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_BasicWebServerFactory(): + TypeOnly; +declare function use_old_ClassDeclaration_BasicWebServerFactory( + use: TypeOnly): void; +use_old_ClassDeclaration_BasicWebServerFactory( + get_current_ClassDeclaration_BasicWebServerFactory()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -119,6 +143,198 @@ declare function use_old_ClassDeclaration_DocumentManager( use_old_ClassDeclaration_DocumentManager( get_current_ClassDeclaration_DocumentManager()); +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_DocumentStorage": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_DocumentStorage(): + TypeOnly; +declare function use_current_ClassDeclaration_DocumentStorage( + use: TypeOnly): void; +use_current_ClassDeclaration_DocumentStorage( + get_old_ClassDeclaration_DocumentStorage()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_DocumentStorage": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_DocumentStorage(): + TypeOnly; +declare function use_old_ClassDeclaration_DocumentStorage( + use: TypeOnly): void; +use_old_ClassDeclaration_DocumentStorage( + get_current_ClassDeclaration_DocumentStorage()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_HttpServer": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_HttpServer(): + TypeOnly; +declare function use_current_ClassDeclaration_HttpServer( + use: TypeOnly): void; +use_current_ClassDeclaration_HttpServer( + get_old_ClassDeclaration_HttpServer()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_HttpServer": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_HttpServer(): + TypeOnly; +declare function use_old_ClassDeclaration_HttpServer( + use: TypeOnly): void; +use_old_ClassDeclaration_HttpServer( + get_current_ClassDeclaration_HttpServer()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_IHttpServerConfig": {"forwardCompat": false} +*/ +declare function get_old_InterfaceDeclaration_IHttpServerConfig(): + TypeOnly; +declare function use_current_InterfaceDeclaration_IHttpServerConfig( + use: TypeOnly): void; +use_current_InterfaceDeclaration_IHttpServerConfig( + get_old_InterfaceDeclaration_IHttpServerConfig()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_IHttpServerConfig": {"backCompat": false} +*/ +declare function get_current_InterfaceDeclaration_IHttpServerConfig(): + TypeOnly; +declare function use_old_InterfaceDeclaration_IHttpServerConfig( + use: TypeOnly): void; +use_old_InterfaceDeclaration_IHttpServerConfig( + get_current_InterfaceDeclaration_IHttpServerConfig()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_INodeClusterConfig": {"forwardCompat": false} +*/ +declare function get_old_InterfaceDeclaration_INodeClusterConfig(): + TypeOnly; +declare function use_current_InterfaceDeclaration_INodeClusterConfig( + use: TypeOnly): void; +use_current_InterfaceDeclaration_INodeClusterConfig( + get_old_InterfaceDeclaration_INodeClusterConfig()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_INodeClusterConfig": {"backCompat": false} +*/ +declare function get_current_InterfaceDeclaration_INodeClusterConfig(): + TypeOnly; +declare function use_old_InterfaceDeclaration_INodeClusterConfig( + use: TypeOnly): void; +use_old_InterfaceDeclaration_INodeClusterConfig( + get_current_InterfaceDeclaration_INodeClusterConfig()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_ISocketIoRedisConnection": {"forwardCompat": false} +*/ +declare function get_old_InterfaceDeclaration_ISocketIoRedisConnection(): + TypeOnly; +declare function use_current_InterfaceDeclaration_ISocketIoRedisConnection( + use: TypeOnly): void; +use_current_InterfaceDeclaration_ISocketIoRedisConnection( + get_old_InterfaceDeclaration_ISocketIoRedisConnection()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_ISocketIoRedisConnection": {"backCompat": false} +*/ +declare function get_current_InterfaceDeclaration_ISocketIoRedisConnection(): + TypeOnly; +declare function use_old_InterfaceDeclaration_ISocketIoRedisConnection( + use: TypeOnly): void; +use_old_InterfaceDeclaration_ISocketIoRedisConnection( + get_current_InterfaceDeclaration_ISocketIoRedisConnection()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_ISocketIoRedisOptions": {"forwardCompat": false} +*/ +declare function get_old_InterfaceDeclaration_ISocketIoRedisOptions(): + TypeOnly; +declare function use_current_InterfaceDeclaration_ISocketIoRedisOptions( + use: TypeOnly): void; +use_current_InterfaceDeclaration_ISocketIoRedisOptions( + get_old_InterfaceDeclaration_ISocketIoRedisOptions()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_ISocketIoRedisOptions": {"backCompat": false} +*/ +declare function get_current_InterfaceDeclaration_ISocketIoRedisOptions(): + TypeOnly; +declare function use_old_InterfaceDeclaration_ISocketIoRedisOptions( + use: TypeOnly): void; +use_old_InterfaceDeclaration_ISocketIoRedisOptions( + get_current_InterfaceDeclaration_ISocketIoRedisOptions()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_ISocketIoRedisSubscriptionConnection": {"forwardCompat": false} +*/ +declare function get_old_InterfaceDeclaration_ISocketIoRedisSubscriptionConnection(): + TypeOnly; +declare function use_current_InterfaceDeclaration_ISocketIoRedisSubscriptionConnection( + use: TypeOnly): void; +use_current_InterfaceDeclaration_ISocketIoRedisSubscriptionConnection( + get_old_InterfaceDeclaration_ISocketIoRedisSubscriptionConnection()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "InterfaceDeclaration_ISocketIoRedisSubscriptionConnection": {"backCompat": false} +*/ +declare function get_current_InterfaceDeclaration_ISocketIoRedisSubscriptionConnection(): + TypeOnly; +declare function use_old_InterfaceDeclaration_ISocketIoRedisSubscriptionConnection( + use: TypeOnly): void; +use_old_InterfaceDeclaration_ISocketIoRedisSubscriptionConnection( + get_current_InterfaceDeclaration_ISocketIoRedisSubscriptionConnection()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "VariableDeclaration_IsEphemeralContainer": {"forwardCompat": false} +*/ +declare function get_old_VariableDeclaration_IsEphemeralContainer(): + TypeOnly; +declare function use_current_VariableDeclaration_IsEphemeralContainer( + use: TypeOnly): void; +use_current_VariableDeclaration_IsEphemeralContainer( + get_old_VariableDeclaration_IsEphemeralContainer()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "VariableDeclaration_IsEphemeralContainer": {"backCompat": false} +*/ +declare function get_current_VariableDeclaration_IsEphemeralContainer(): + TypeOnly; +declare function use_old_VariableDeclaration_IsEphemeralContainer( + use: TypeOnly): void; +use_old_VariableDeclaration_IsEphemeralContainer( + get_current_VariableDeclaration_IsEphemeralContainer()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -215,6 +431,30 @@ declare function use_old_ClassDeclaration_NodeAllowList( use_old_ClassDeclaration_NodeAllowList( get_current_ClassDeclaration_NodeAllowList()); +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_NodeClusterWebServerFactory": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_NodeClusterWebServerFactory(): + TypeOnly; +declare function use_current_ClassDeclaration_NodeClusterWebServerFactory( + use: TypeOnly): void; +use_current_ClassDeclaration_NodeClusterWebServerFactory( + get_old_ClassDeclaration_NodeClusterWebServerFactory()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_NodeClusterWebServerFactory": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_NodeClusterWebServerFactory(): + TypeOnly; +declare function use_old_ClassDeclaration_NodeClusterWebServerFactory( + use: TypeOnly): void; +use_old_ClassDeclaration_NodeClusterWebServerFactory( + get_current_ClassDeclaration_NodeClusterWebServerFactory()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -263,6 +503,30 @@ declare function use_old_ClassDeclaration_RedisCache( use_old_ClassDeclaration_RedisCache( get_current_ClassDeclaration_RedisCache()); +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_RedisSocketIoAdapter": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_RedisSocketIoAdapter(): + TypeOnly; +declare function use_current_ClassDeclaration_RedisSocketIoAdapter( + use: TypeOnly): void; +use_current_ClassDeclaration_RedisSocketIoAdapter( + get_old_ClassDeclaration_RedisSocketIoAdapter()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_RedisSocketIoAdapter": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_RedisSocketIoAdapter(): + TypeOnly; +declare function use_old_ClassDeclaration_RedisSocketIoAdapter( + use: TypeOnly): void; +use_old_ClassDeclaration_RedisSocketIoAdapter( + get_current_ClassDeclaration_RedisSocketIoAdapter()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -287,6 +551,54 @@ declare function use_old_ClassDeclaration_RedisThrottleAndUsageStorageManager( use_old_ClassDeclaration_RedisThrottleAndUsageStorageManager( get_current_ClassDeclaration_RedisThrottleAndUsageStorageManager()); +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "TypeAliasDeclaration_RequestListener": {"forwardCompat": false} +*/ +declare function get_old_TypeAliasDeclaration_RequestListener(): + TypeOnly; +declare function use_current_TypeAliasDeclaration_RequestListener( + use: TypeOnly): void; +use_current_TypeAliasDeclaration_RequestListener( + get_old_TypeAliasDeclaration_RequestListener()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "TypeAliasDeclaration_RequestListener": {"backCompat": false} +*/ +declare function get_current_TypeAliasDeclaration_RequestListener(): + TypeOnly; +declare function use_old_TypeAliasDeclaration_RequestListener( + use: TypeOnly): void; +use_old_TypeAliasDeclaration_RequestListener( + get_current_TypeAliasDeclaration_RequestListener()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_RestLessServer": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_RestLessServer(): + TypeOnly; +declare function use_current_ClassDeclaration_RestLessServer( + use: TypeOnly): void; +use_current_ClassDeclaration_RestLessServer( + get_old_ClassDeclaration_RestLessServer()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_RestLessServer": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_RestLessServer(): + TypeOnly; +declare function use_old_ClassDeclaration_RestLessServer( + use: TypeOnly): void; +use_old_ClassDeclaration_RestLessServer( + get_current_ClassDeclaration_RestLessServer()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -311,6 +623,30 @@ declare function use_old_ClassDeclaration_SecretManager( use_old_ClassDeclaration_SecretManager( get_current_ClassDeclaration_SecretManager()); +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_SocketIoNodeClusterWebServerFactory": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_SocketIoNodeClusterWebServerFactory(): + TypeOnly; +declare function use_current_ClassDeclaration_SocketIoNodeClusterWebServerFactory( + use: TypeOnly): void; +use_current_ClassDeclaration_SocketIoNodeClusterWebServerFactory( + get_old_ClassDeclaration_SocketIoNodeClusterWebServerFactory()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_SocketIoNodeClusterWebServerFactory": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_SocketIoNodeClusterWebServerFactory(): + TypeOnly; +declare function use_old_ClassDeclaration_SocketIoNodeClusterWebServerFactory( + use: TypeOnly): void; +use_old_ClassDeclaration_SocketIoNodeClusterWebServerFactory( + get_current_ClassDeclaration_SocketIoNodeClusterWebServerFactory()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -359,6 +695,30 @@ declare function use_old_ClassDeclaration_SocketIoRedisTopic( use_old_ClassDeclaration_SocketIoRedisTopic( get_current_ClassDeclaration_SocketIoRedisTopic()); +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_SocketIoWebServerFactory": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_SocketIoWebServerFactory(): + TypeOnly; +declare function use_current_ClassDeclaration_SocketIoWebServerFactory( + use: TypeOnly): void; +use_current_ClassDeclaration_SocketIoWebServerFactory( + get_old_ClassDeclaration_SocketIoWebServerFactory()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_SocketIoWebServerFactory": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_SocketIoWebServerFactory(): + TypeOnly; +declare function use_old_ClassDeclaration_SocketIoWebServerFactory( + use: TypeOnly): void; +use_old_ClassDeclaration_SocketIoWebServerFactory( + get_current_ClassDeclaration_SocketIoWebServerFactory()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -479,6 +839,102 @@ declare function use_old_ClassDeclaration_ThrottlerHelper( use_old_ClassDeclaration_ThrottlerHelper( get_current_ClassDeclaration_ThrottlerHelper()); +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_WebServer": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_WebServer(): + TypeOnly; +declare function use_current_ClassDeclaration_WebServer( + use: TypeOnly): void; +use_current_ClassDeclaration_WebServer( + get_old_ClassDeclaration_WebServer()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_WebServer": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_WebServer(): + TypeOnly; +declare function use_old_ClassDeclaration_WebServer( + use: TypeOnly): void; +use_old_ClassDeclaration_WebServer( + get_current_ClassDeclaration_WebServer()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_WholeSummaryReadGitManager": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_WholeSummaryReadGitManager(): + TypeOnly; +declare function use_current_ClassDeclaration_WholeSummaryReadGitManager( + use: TypeOnly): void; +use_current_ClassDeclaration_WholeSummaryReadGitManager( + get_old_ClassDeclaration_WholeSummaryReadGitManager()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_WholeSummaryReadGitManager": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_WholeSummaryReadGitManager(): + TypeOnly; +declare function use_old_ClassDeclaration_WholeSummaryReadGitManager( + use: TypeOnly): void; +use_old_ClassDeclaration_WholeSummaryReadGitManager( + get_current_ClassDeclaration_WholeSummaryReadGitManager()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_WholeSummaryWriteGitManager": {"forwardCompat": false} +*/ +declare function get_old_ClassDeclaration_WholeSummaryWriteGitManager(): + TypeOnly; +declare function use_current_ClassDeclaration_WholeSummaryWriteGitManager( + use: TypeOnly): void; +use_current_ClassDeclaration_WholeSummaryWriteGitManager( + get_old_ClassDeclaration_WholeSummaryWriteGitManager()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "ClassDeclaration_WholeSummaryWriteGitManager": {"backCompat": false} +*/ +declare function get_current_ClassDeclaration_WholeSummaryWriteGitManager(): + TypeOnly; +declare function use_old_ClassDeclaration_WholeSummaryWriteGitManager( + use: TypeOnly): void; +use_old_ClassDeclaration_WholeSummaryWriteGitManager( + get_current_ClassDeclaration_WholeSummaryWriteGitManager()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_containsPathTraversal": {"forwardCompat": false} +*/ +declare function get_old_FunctionDeclaration_containsPathTraversal(): + TypeOnly; +declare function use_current_FunctionDeclaration_containsPathTraversal( + use: TypeOnly): void; +use_current_FunctionDeclaration_containsPathTraversal( + get_old_FunctionDeclaration_containsPathTraversal()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_containsPathTraversal": {"backCompat": false} +*/ +declare function get_current_FunctionDeclaration_containsPathTraversal(): + TypeOnly; +declare function use_old_FunctionDeclaration_containsPathTraversal( + use: TypeOnly): void; +use_old_FunctionDeclaration_containsPathTraversal( + get_current_FunctionDeclaration_containsPathTraversal()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -575,6 +1031,78 @@ declare function use_old_FunctionDeclaration_createProducer( use_old_FunctionDeclaration_createProducer( get_current_FunctionDeclaration_createProducer()); +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "VariableDeclaration_decodeHeader": {"forwardCompat": false} +*/ +declare function get_old_VariableDeclaration_decodeHeader(): + TypeOnly; +declare function use_current_VariableDeclaration_decodeHeader( + use: TypeOnly): void; +use_current_VariableDeclaration_decodeHeader( + get_old_VariableDeclaration_decodeHeader()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "VariableDeclaration_decodeHeader": {"backCompat": false} +*/ +declare function get_current_VariableDeclaration_decodeHeader(): + TypeOnly; +declare function use_old_VariableDeclaration_decodeHeader( + use: TypeOnly): void; +use_old_VariableDeclaration_decodeHeader( + get_current_VariableDeclaration_decodeHeader()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "VariableDeclaration_defaultErrorMessage": {"forwardCompat": false} +*/ +declare function get_old_VariableDeclaration_defaultErrorMessage(): + TypeOnly; +declare function use_current_VariableDeclaration_defaultErrorMessage( + use: TypeOnly): void; +use_current_VariableDeclaration_defaultErrorMessage( + get_old_VariableDeclaration_defaultErrorMessage()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "VariableDeclaration_defaultErrorMessage": {"backCompat": false} +*/ +declare function get_current_VariableDeclaration_defaultErrorMessage(): + TypeOnly; +declare function use_old_VariableDeclaration_defaultErrorMessage( + use: TypeOnly): void; +use_old_VariableDeclaration_defaultErrorMessage( + get_current_VariableDeclaration_defaultErrorMessage()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_getBooleanParam": {"forwardCompat": false} +*/ +declare function get_old_FunctionDeclaration_getBooleanParam(): + TypeOnly; +declare function use_current_FunctionDeclaration_getBooleanParam( + use: TypeOnly): void; +use_current_FunctionDeclaration_getBooleanParam( + get_old_FunctionDeclaration_getBooleanParam()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_getBooleanParam": {"backCompat": false} +*/ +declare function get_current_FunctionDeclaration_getBooleanParam(): + TypeOnly; +declare function use_old_FunctionDeclaration_getBooleanParam( + use: TypeOnly): void; +use_old_FunctionDeclaration_getBooleanParam( + get_current_FunctionDeclaration_getBooleanParam()); + /* * Validate forward compat by using old type in place of current type * If breaking change required, add in package.json under typeValidation.broken: @@ -598,3 +1126,99 @@ declare function use_old_FunctionDeclaration_getDbFactory( use: TypeOnly): void; use_old_FunctionDeclaration_getDbFactory( get_current_FunctionDeclaration_getDbFactory()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_handleResponse": {"forwardCompat": false} +*/ +declare function get_old_FunctionDeclaration_handleResponse(): + TypeOnly; +declare function use_current_FunctionDeclaration_handleResponse( + use: TypeOnly): void; +use_current_FunctionDeclaration_handleResponse( + get_old_FunctionDeclaration_handleResponse()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_handleResponse": {"backCompat": false} +*/ +declare function get_current_FunctionDeclaration_handleResponse(): + TypeOnly; +declare function use_old_FunctionDeclaration_handleResponse( + use: TypeOnly): void; +use_old_FunctionDeclaration_handleResponse( + get_current_FunctionDeclaration_handleResponse()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_run": {"forwardCompat": false} +*/ +declare function get_old_FunctionDeclaration_run(): + TypeOnly; +declare function use_current_FunctionDeclaration_run( + use: TypeOnly): void; +use_current_FunctionDeclaration_run( + get_old_FunctionDeclaration_run()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_run": {"backCompat": false} +*/ +declare function get_current_FunctionDeclaration_run(): + TypeOnly; +declare function use_old_FunctionDeclaration_run( + use: TypeOnly): void; +use_old_FunctionDeclaration_run( + get_current_FunctionDeclaration_run()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_runService": {"forwardCompat": false} +*/ +declare function get_old_FunctionDeclaration_runService(): + TypeOnly; +declare function use_current_FunctionDeclaration_runService( + use: TypeOnly): void; +use_current_FunctionDeclaration_runService( + get_old_FunctionDeclaration_runService()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_runService": {"backCompat": false} +*/ +declare function get_current_FunctionDeclaration_runService(): + TypeOnly; +declare function use_old_FunctionDeclaration_runService( + use: TypeOnly): void; +use_old_FunctionDeclaration_runService( + get_current_FunctionDeclaration_runService()); + +/* +* Validate forward compat by using old type in place of current type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_validateRequestParams": {"forwardCompat": false} +*/ +declare function get_old_FunctionDeclaration_validateRequestParams(): + TypeOnly; +declare function use_current_FunctionDeclaration_validateRequestParams( + use: TypeOnly): void; +use_current_FunctionDeclaration_validateRequestParams( + get_old_FunctionDeclaration_validateRequestParams()); + +/* +* Validate back compat by using current type in place of old type +* If breaking change required, add in package.json under typeValidation.broken: +* "FunctionDeclaration_validateRequestParams": {"backCompat": false} +*/ +declare function get_current_FunctionDeclaration_validateRequestParams(): + TypeOnly; +declare function use_old_FunctionDeclaration_validateRequestParams( + use: TypeOnly): void; +use_old_FunctionDeclaration_validateRequestParams( + get_current_FunctionDeclaration_validateRequestParams());