arri-codegen-utils
Advanced tools
Comparing version 0.30.0 to 0.31.0
@@ -1,2 +0,2 @@ | ||
import { SchemaFormProperties, SchemaFormDiscriminator, SchemaFormValues } from 'jtd-utils'; | ||
import { SchemaFormProperties, SchemaFormDiscriminator } from 'jtd-utils'; | ||
export * from 'jtd-utils'; | ||
@@ -10,3 +10,3 @@ export * from 'scule'; | ||
declare const isRpcHttpMethod: (input: any) => input is RpcHttpMethod; | ||
declare const SCHEMA_VERSION: "0.0.3"; | ||
declare const SCHEMA_VERSION: "0.0.4"; | ||
interface AppDefinition { | ||
@@ -24,8 +24,7 @@ arriSchemaVersion: typeof SCHEMA_VERSION; | ||
procedures: Record<string, RpcDefinition>; | ||
models: Record<string, SchemaFormProperties | SchemaFormDiscriminator | SchemaFormValues>; | ||
models: Record<string, SchemaFormProperties | SchemaFormDiscriminator>; | ||
} | ||
declare function isAppDefinition(input: unknown): input is AppDefinition; | ||
interface RpcDefinition { | ||
interface RpcDefinitionBase { | ||
path: string; | ||
method: RpcHttpMethod; | ||
params?: string; | ||
@@ -35,4 +34,17 @@ response?: string; | ||
isDeprecated?: boolean; | ||
} | ||
interface HttpRpcDefinition extends RpcDefinitionBase { | ||
transport: "http"; | ||
method: RpcHttpMethod; | ||
isEventStream?: boolean; | ||
} | ||
interface WsRpcDefinition extends RpcDefinitionBase { | ||
transport: "ws"; | ||
} | ||
interface CustomRpcDefinition extends RpcDefinitionBase { | ||
transport: `custom:${string}`; | ||
[key: string]: unknown; | ||
} | ||
type RpcDefinition = HttpRpcDefinition | WsRpcDefinition | CustomRpcDefinition; | ||
declare function isRpcDefinitionBase(input: unknown): input is RpcDefinitionBase; | ||
declare function isRpcDefinition(input: unknown): input is RpcDefinition; | ||
@@ -55,2 +67,2 @@ interface ServiceDefinition { | ||
export { type AppDefinition, type ClientGenerator, type ClientGeneratorPlugin, type HttpMethod, HttpMethodValues, type RpcDefinition, type RpcHttpMethod, SCHEMA_VERSION, type ServiceDefinition, defineClientGeneratorPlugin, isAppDefinition, isHttpMethod, isRpcDefinition, isRpcHttpMethod, isServiceDefinition, normalizeWhitespace, removeDisallowedChars, setNestedObjectProperty, unflattenObject, unflattenProcedures }; | ||
export { type AppDefinition, type ClientGenerator, type ClientGeneratorPlugin, type CustomRpcDefinition, type HttpMethod, HttpMethodValues, type HttpRpcDefinition, type RpcDefinition, type RpcDefinitionBase, type RpcHttpMethod, SCHEMA_VERSION, type ServiceDefinition, type WsRpcDefinition, defineClientGeneratorPlugin, isAppDefinition, isHttpMethod, isRpcDefinition, isRpcDefinitionBase, isRpcHttpMethod, isServiceDefinition, normalizeWhitespace, removeDisallowedChars, setNestedObjectProperty, unflattenObject, unflattenProcedures }; |
{ | ||
"name": "arri-codegen-utils", | ||
"version": "0.30.0", | ||
"version": "0.31.0", | ||
"license": "MIT", | ||
@@ -26,5 +26,5 @@ "author": { | ||
"scule": "^1.3.0", | ||
"arri-validate": "0.30.0", | ||
"jtd-utils": "0.30.0" | ||
"arri-validate": "0.31.0", | ||
"jtd-utils": "0.31.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38733
780
+ Addedarri-validate@0.31.0(transitive)
+ Addedjtd-utils@0.31.0(transitive)
- Removedajv@8.17.1(transitive)
- Removedarri-validate@0.30.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-uri@3.0.6(transitive)
- Removedjson-schema-traverse@1.0.0(transitive)
- Removedjtd-utils@0.30.0(transitive)
- Removedrequire-from-string@2.0.2(transitive)
Updatedarri-validate@0.31.0
Updatedjtd-utils@0.31.0