@luvio/generator-ts
Advanced tools
Comparing version 5.12.1 to 5.13.0
@@ -20,6 +20,3 @@ import { API, AuraController, AuraEndPoint, AuraOperation, BaseTypeRegistry, ConfigSchemaType, CacheStrategy, EndPoint, HttpMethod, ObjectType, Operation, Parameter, Payload, Property, QueryParameter, ReadOnlyTypeRegistry, Request, Response, ScalarType, Server, StatusCode, Type, TypeOfParameter } from '@luvio/model'; | ||
items?: Type | undefined; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
} & import("@luvio/model").BaseType & { | ||
items?: ScalarType | undefined; | ||
@@ -29,6 +26,3 @@ })>, required: boolean) => Record<string, Parameter<ScalarType | ({ | ||
items?: Type | undefined; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
} & import("@luvio/model").BaseType & { | ||
items?: ScalarType | undefined; | ||
@@ -126,6 +120,3 @@ })>>; | ||
items?: Type | undefined; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
} & import("@luvio/model").BaseType & { | ||
items?: ScalarType | undefined; | ||
@@ -137,6 +128,3 @@ }); | ||
items?: Type | undefined; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
} & import("@luvio/model").BaseType & { | ||
items?: ScalarType | undefined; | ||
@@ -172,11 +160,4 @@ })>>; | ||
additionalProperties: Type; | ||
discriminator: string | undefined; | ||
discriminatorValueMapping: { | ||
value: string; | ||
type: Type; | ||
}[]; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
discriminator: import("@luvio/model").Discriminator | undefined; | ||
} & import("@luvio/model").BaseType & { | ||
type: "object"; | ||
@@ -206,11 +187,4 @@ }; | ||
additionalProperties: Type; | ||
discriminator: string | undefined; | ||
discriminatorValueMapping: { | ||
value: string; | ||
type: Type; | ||
}[]; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
discriminator: import("@luvio/model").Discriminator | undefined; | ||
} & import("@luvio/model").BaseType & { | ||
type: "object"; | ||
@@ -223,11 +197,4 @@ }; | ||
additionalProperties: Type; | ||
discriminator: string | undefined; | ||
discriminatorValueMapping: { | ||
value: string; | ||
type: Type; | ||
}[]; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
discriminator: import("@luvio/model").Discriminator | undefined; | ||
} & import("@luvio/model").BaseType & { | ||
type: "object"; | ||
@@ -240,11 +207,4 @@ }; | ||
additionalProperties: Type; | ||
discriminator: string | undefined; | ||
discriminatorValueMapping: { | ||
value: string; | ||
type: Type; | ||
}[]; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
discriminator: import("@luvio/model").Discriminator | undefined; | ||
} & import("@luvio/model").BaseType & { | ||
type: "object"; | ||
@@ -251,0 +211,0 @@ }; |
import { CommandGenerator } from './command-generator'; | ||
import type { Code, ImportableReference } from '../files'; | ||
import type { EndPoint, AuraOperation, AuraMutationOperation, Request, Server, Type, AuraEndPoint } from '@luvio/model'; | ||
import type { EndPoint, AuraOperation, AuraOperationWithRequestBody, Request, Server, Type, AuraEndPoint } from '@luvio/model'; | ||
export declare class AuraCommandGenerator extends CommandGenerator { | ||
@@ -14,3 +14,3 @@ commandBaseClass: ImportableReference; | ||
endpoint: EndPoint; | ||
operation: AuraMutationOperation; | ||
operation: AuraOperationWithRequestBody; | ||
}): string; | ||
@@ -38,5 +38,5 @@ generateClassBody(config: { | ||
endpoint: EndPoint; | ||
operation: AuraMutationOperation; | ||
operation: AuraOperationWithRequestBody; | ||
}): Code | undefined; | ||
generateAuraEndpoint(endpoint: AuraEndPoint, operation: AuraOperation): Code; | ||
} |
import { AuraCommandGenerator } from './aura-command-generator'; | ||
import type { Code, ImportableReference } from '../files'; | ||
import type { Request, Server, Type, AuraEndPoint, AuraReadOperation } from '@luvio/model'; | ||
import type { Request, Server, Type, AuraEndPoint, AuraOperation } from '@luvio/model'; | ||
export declare class AuraResourceCacheControlCommandGenerator extends AuraCommandGenerator { | ||
@@ -12,10 +12,15 @@ commandBaseClass: ImportableReference; | ||
}[]; | ||
generateBuildCacheControlMetadata(operation: AuraReadOperation & { | ||
generateBuildCacheControlMetadata(operation: AuraOperation & { | ||
cacheStrategy: { | ||
type: 'resource'; | ||
}; | ||
}, outputType: Type | undefined): Code; | ||
generateCacheControlStrategyConfig(operation: AuraOperation & { | ||
cacheStrategy: { | ||
type: 'resource'; | ||
}; | ||
}): Code; | ||
generateClassBody(config: { | ||
endpoint: AuraEndPoint; | ||
operation: AuraReadOperation & { | ||
operation: AuraOperation & { | ||
cacheStrategy: { | ||
@@ -22,0 +27,0 @@ type: 'resource'; |
@@ -40,6 +40,3 @@ import type { NamedLoggerService, ServiceVersion } from '@luvio/utils'; | ||
items?: Type | undefined; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
} & import("@luvio/model").BaseType & { | ||
items?: import("@luvio/model").ScalarType | undefined; | ||
@@ -51,6 +48,3 @@ })>>[]) => { | ||
items?: Type | undefined; | ||
} & { | ||
type: string; | ||
inherits: Type[]; | ||
} & { | ||
} & import("@luvio/model").BaseType & { | ||
items?: import("@luvio/model").ScalarType | undefined; | ||
@@ -117,3 +111,3 @@ }); | ||
export declare abstract class CommandGenerator { | ||
private services; | ||
protected services: NamedAPIService & NamedFileService & NamedTypeDeclarationService & NamedLoggerService; | ||
constructor(services: NamedAPIService & NamedFileService & NamedTypeDeclarationService & NamedLoggerService); | ||
@@ -120,0 +114,0 @@ build(params: { |
@@ -7,3 +7,3 @@ import type { API, ReadOnlyTypeRegistry, TypeRegistry } from '@luvio/model'; | ||
get types(): ReadOnlyTypeRegistry; | ||
buildStringDiscriminatedType(): void; | ||
buildDiscriminatedType(): void; | ||
} |
@@ -9,2 +9,2 @@ import { type Type } from '@luvio/model'; | ||
*/ | ||
export declare function jsonSchemaFor(type: Type): Code; | ||
export declare function jsonSchemaFor(type: Type, rootType?: Type | undefined): Code; |
{ | ||
"name": "@luvio/generator-ts", | ||
"version": "5.12.1", | ||
"version": "5.13.0", | ||
"description": "Luvio TypeScript code generation", | ||
@@ -25,10 +25,10 @@ "repository": { | ||
"dependencies": { | ||
"@luvio/model": "5.12.1", | ||
"@luvio/model": "5.13.0", | ||
"prettier": "^2.7.1" | ||
}, | ||
"devDependencies": { | ||
"@luvio/service-aura-network": "5.12.1", | ||
"@luvio/service-broker": "5.12.1", | ||
"@luvio/service-fetch-network": "5.12.1", | ||
"@luvio/utils": "5.12.1", | ||
"@luvio/service-aura-network": "5.13.0", | ||
"@luvio/service-broker": "5.13.0", | ||
"@luvio/service-fetch-network": "5.13.0", | ||
"@luvio/utils": "5.13.0", | ||
"memfs": "^3.4.13" | ||
@@ -35,0 +35,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
344709
2546
+ Added@luvio/model@5.13.0(transitive)
- Removed@luvio/model@5.12.1(transitive)
Updated@luvio/model@5.13.0