@conduit-client/generator-ts 3.12.0 → 3.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/v1/api-module-generator-service.d.ts +2 -1
- package/dist/types/v1/generators/bindings-generator.d.ts +4 -4
- package/dist/types/v1/generators/cache-control-generator.d.ts +1 -1
- package/dist/types/v1/generators/graphql-imperative-binding-generator.d.ts +1 -1
- package/dist/types/v1/generators/graphql-imperative-legacy-binding-generator.d.ts +1 -1
- package/dist/types/v1/generators/graphql-mutation-binding-generator.d.ts +1 -1
- package/dist/types/v1/generators/graphql-wire-binding-generator.d.ts +1 -1
- package/dist/types/v1/generators/imperative-binding-generator.d.ts +1 -1
- package/dist/types/v1/generators/imperative-legacy-binding-generator.d.ts +1 -1
- package/dist/types/v1/generators/normalized-cache-control-generator-mixin.d.ts +1 -1
- package/dist/types/v1/generators/utils.d.ts +2 -2
- package/dist/types/v1/generators/wire-binding-generator.d.ts +1 -1
- package/dist/types/v1/model/aura-graphql-command-model.d.ts +2 -2
- package/dist/types/v1/model/graphql-schema-model.d.ts +2 -2
- package/dist/types/v1/model/http-graphql-command-model.d.ts +2 -2
- package/dist/types/v1/normalization/graphql/base-type-generator.d.ts +1 -1
- package/dist/types/v1/normalization/graphql/cursor-connection-type-generator.d.ts +4 -3
- package/dist/types/v1/normalization/graphql/document-root-type-generator.d.ts +4 -4
- package/dist/types/v1/normalization/graphql/identifiable-type-generator.d.ts +5 -4
- package/dist/types/v1/normalization/graphql/interface-type-generator.d.ts +3 -2
- package/dist/types/v1/normalization/graphql/unidentifiable-type-generator.d.ts +4 -3
- package/dist/types/v1/normalization/graphql/union-type-generator.d.ts +3 -2
- package/dist/types/v1/normalization/graphql-type-generator.d.ts +6 -6
- package/dist/types/v1/normalization/graphql-type-registry-generator.d.ts +1 -1
- package/dist/types/v1/normalization/identifiable-type-generator.d.ts +1 -1
- package/dist/types/v1/normalization/normalize-code-gen/normalize-generator-service.d.ts +3 -3
- package/dist/types/v1/normalization/normalized-type-generator.d.ts +2 -2
- package/dist/types/v1/normalization/type-registry-generator.d.ts +3 -2
- package/dist/types/v1/normalization/unidentifiable-type-generator.d.ts +1 -1
- package/dist/types/v1/types/normalized-type-definition.d.ts +4 -4
- package/dist/types/v1/types/resolve-all-of-type.d.ts +2 -2
- package/dist/v1/index.js +6451 -4282
- package/dist/v1/index.js.map +1 -1
- package/package.json +8 -7
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ApiFamilyModuleGenerator
|
|
1
|
+
import { ApiFamilyModuleGenerator } from './generators';
|
|
2
|
+
import type { IApiFamilyModuleGenerator } from './generators';
|
|
2
3
|
import type { NamedLoggerService } from '@conduit-client/utils';
|
|
3
4
|
import type { NamedFileService } from './files';
|
|
4
5
|
import type { NamedAPIService } from '@conduit-client/model/v1';
|
|
@@ -4,13 +4,13 @@ import { ImperativeAdapterBindingGenerator } from './imperative-binding-generato
|
|
|
4
4
|
import { ImperativeAdapterLegacyBindingGenerator } from './imperative-legacy-binding-generator';
|
|
5
5
|
import { GraphQLImperativeAdapterLegacyBindingGenerator } from './graphql-imperative-legacy-binding-generator';
|
|
6
6
|
import { WireAdapterBindingGenerator } from './wire-binding-generator';
|
|
7
|
-
import type { ICommandModel, ServiceDependency } from '../model/base-command-model';
|
|
8
|
-
import type { NamedTypeRegistryGeneratorService, TypeRegistryGenerator } from '../normalization/type-registry-generator';
|
|
9
|
-
import type { NamedGraphQLTypeRegistryGeneratorService } from '../normalization/graphql-type-registry-generator';
|
|
10
|
-
import { Binding, NamedAPIService } from '@conduit-client/model/v1';
|
|
11
7
|
import { GraphQLImperativeAdapterBindingGenerator } from './graphql-imperative-binding-generator';
|
|
12
8
|
import { GraphQLWireAdapterBindingGenerator } from './graphql-wire-binding-generator';
|
|
13
9
|
import { GraphQLMutationAdapterBindingGenerator } from './graphql-mutation-binding-generator';
|
|
10
|
+
import type { ICommandModel, ServiceDependency } from '../model/base-command-model';
|
|
11
|
+
import type { NamedTypeRegistryGeneratorService, TypeRegistryGenerator } from '../normalization/type-registry-generator';
|
|
12
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from '../normalization/graphql-type-registry-generator';
|
|
13
|
+
import type { Binding, NamedAPIService } from '@conduit-client/model/v1';
|
|
14
14
|
export type IBindingsGenerator = {
|
|
15
15
|
build(): void;
|
|
16
16
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TypeCacheControlExtension } from '@conduit-client/model/v1';
|
|
1
|
+
import type { TypeCacheControlExtension } from '@conduit-client/model/v1';
|
|
2
2
|
export declare function generateCacheControl(cacheControl: TypeCacheControlExtension): import("..").Code;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ImportableReference } from '../files';
|
|
2
2
|
import { type NamedTypeDefinitionService } from '../types';
|
|
3
|
+
import type { Binding } from '@conduit-client/model/v1';
|
|
3
4
|
import type { ICommandModel } from '../model/base-command-model';
|
|
4
|
-
import { Binding } from '@conduit-client/model/v1';
|
|
5
5
|
export declare class GraphQLImperativeAdapterBindingGenerator {
|
|
6
6
|
protected services: NamedTypeDefinitionService;
|
|
7
7
|
protected commandModel: ICommandModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ImportableReference } from '../files';
|
|
2
2
|
import { type NamedTypeDefinitionService } from '../types';
|
|
3
|
+
import type { Binding } from '@conduit-client/model/v1';
|
|
3
4
|
import type { ICommandModel } from '../model/base-command-model';
|
|
4
|
-
import { Binding } from '@conduit-client/model/v1';
|
|
5
5
|
export declare class GraphQLImperativeAdapterLegacyBindingGenerator {
|
|
6
6
|
protected services: NamedTypeDefinitionService;
|
|
7
7
|
protected commandModel: ICommandModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ImportableReference } from '../files';
|
|
2
2
|
import { type NamedTypeDefinitionService } from '../types';
|
|
3
|
+
import type { Binding } from '@conduit-client/model/v1';
|
|
3
4
|
import type { ICommandModel } from '../model/base-command-model';
|
|
4
|
-
import { Binding } from '@conduit-client/model/v1';
|
|
5
5
|
export declare class GraphQLMutationAdapterBindingGenerator {
|
|
6
6
|
protected services: NamedTypeDefinitionService;
|
|
7
7
|
protected commandModel: ICommandModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Code, type ImportableReference } from '../files';
|
|
2
2
|
import { type NamedTypeDefinitionService } from '../types';
|
|
3
|
+
import type { Binding } from '@conduit-client/model/v1';
|
|
3
4
|
import type { ICommandModel } from '../model/base-command-model';
|
|
4
|
-
import { Binding } from '@conduit-client/model/v1';
|
|
5
5
|
export declare class GraphQLWireAdapterBindingGenerator {
|
|
6
6
|
protected services: NamedTypeDefinitionService;
|
|
7
7
|
protected commandModel: ICommandModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ImportableReference } from '../files';
|
|
2
2
|
import { type NamedTypeDefinitionService } from '../types';
|
|
3
|
+
import type { Binding } from '@conduit-client/model/v1';
|
|
3
4
|
import type { ICommandModel } from '../model/base-command-model';
|
|
4
|
-
import { Binding } from '@conduit-client/model/v1';
|
|
5
5
|
export declare class ImperativeAdapterBindingGenerator {
|
|
6
6
|
protected services: NamedTypeDefinitionService;
|
|
7
7
|
protected commandModel: ICommandModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ImportableReference } from '../files';
|
|
2
2
|
import { type NamedTypeDefinitionService } from '../types';
|
|
3
|
+
import type { Binding } from '@conduit-client/model/v1';
|
|
3
4
|
import type { ICommandModel } from '../model/base-command-model';
|
|
4
|
-
import { Binding } from '@conduit-client/model/v1';
|
|
5
5
|
export declare class ImperativeAdapterLegacyBindingGenerator {
|
|
6
6
|
protected services: NamedTypeDefinitionService;
|
|
7
7
|
protected commandModel: ICommandModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Code, ImportableTypeReference } from '../files';
|
|
1
|
+
import type { Code, ImportableTypeReference } from '../files';
|
|
2
2
|
import type { CommandGenerator } from './base-command-generator';
|
|
3
3
|
export interface NormalizedCacheControlGenerator {
|
|
4
4
|
generateCacheControlStrategyConfig(): Code;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Code } from '../files';
|
|
2
|
-
import { ICommandModel } from '../model/base-command-model';
|
|
3
1
|
import { type Type } from '@conduit-client/model/v1';
|
|
2
|
+
import { type Code } from '../files';
|
|
3
|
+
import type { ICommandModel } from '../model/base-command-model';
|
|
4
4
|
/**
|
|
5
5
|
* Generates a destructuring assignment code block for a given property name, ensuring that the variable names are valid TypeScript identifiers.
|
|
6
6
|
* This function is particularly useful when dealing with property names that may not directly translate into valid TypeScript variable names,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Code, type ImportableReference } from '../files';
|
|
2
2
|
import { type NamedTypeDefinitionService } from '../types';
|
|
3
|
+
import type { Binding } from '@conduit-client/model/v1';
|
|
3
4
|
import type { ICommandModel } from '../model/base-command-model';
|
|
4
|
-
import { Binding } from '@conduit-client/model/v1';
|
|
5
5
|
export declare class WireAdapterBindingGenerator {
|
|
6
6
|
protected services: NamedTypeDefinitionService;
|
|
7
7
|
protected commandModel: ICommandModel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GraphQLSchemaModel } from './graphql-schema-model';
|
|
2
1
|
import { AuraNormalizedCachingCommandModel } from './aura-normalized-caching-command-model';
|
|
3
|
-
import {
|
|
2
|
+
import type { GraphQLSchemaModel } from './graphql-schema-model';
|
|
3
|
+
import type { AuraGraphQLOperation } from '@conduit-client/model/v1';
|
|
4
4
|
import type { IGraphQLCommandModel } from './graphql-command-model-interface';
|
|
5
5
|
export declare class AuraGraphQLCommandModel extends AuraNormalizedCachingCommandModel implements IGraphQLCommandModel {
|
|
6
6
|
private schemaModel?;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TypeCacheControlExtension } from '@conduit-client/model/v1';
|
|
2
|
-
import { GraphQLSchema, GraphQLType, GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLField, GraphQLInputField } from 'graphql';
|
|
1
|
+
import type { TypeCacheControlExtension } from '@conduit-client/model/v1';
|
|
2
|
+
import type { GraphQLSchema, GraphQLType, GraphQLObjectType, GraphQLInterfaceType, GraphQLInputObjectType, GraphQLField, GraphQLInputField } from 'graphql';
|
|
3
3
|
export type BaseGraphQLTypeMetadata = {
|
|
4
4
|
typename: string;
|
|
5
5
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GraphQLSchemaModel } from './graphql-schema-model';
|
|
2
1
|
import { HttpNormalizedCachingCommandModel } from './http-normalized-caching-command-model';
|
|
3
|
-
import {
|
|
2
|
+
import type { GraphQLSchemaModel } from './graphql-schema-model';
|
|
3
|
+
import type { HttpGraphQLOperation } from '@conduit-client/model/v1';
|
|
4
4
|
import type { IGraphQLCommandModel } from './graphql-command-model-interface';
|
|
5
5
|
export declare class HttpGraphQLCommandModel extends HttpNormalizedCachingCommandModel implements IGraphQLCommandModel {
|
|
6
6
|
private schemaModel?;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Code } from '../../files';
|
|
2
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
2
3
|
import type { ImportableReference, NamedFileService } from '../../files';
|
|
3
4
|
import type { GraphQLFieldType, GraphQLSchemaModel, GraphQLTypeModel } from '../../model/graphql-schema-model';
|
|
4
|
-
import { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
5
5
|
export declare const BASE_SCALAR_FIELD_DEF: ImportableReference;
|
|
6
6
|
export declare const BASE_OBJECT_FIELD_DEF: ImportableReference;
|
|
7
7
|
export declare const BASE_ARRAY_FIELD_DEF: ImportableReference;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseGraphQLTypeGenerator } from './base-type-generator';
|
|
2
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
3
|
+
import type { Code } from '../../files';
|
|
2
4
|
import type { NamedFileService } from '../../files';
|
|
3
5
|
import type { GraphQLObjectTypeModel, GraphQLSchemaModel } from '../../model/graphql-schema-model';
|
|
4
|
-
import {
|
|
5
|
-
import { BaseGraphQLTypeGenerator, GenerationOptions } from './base-type-generator';
|
|
6
|
+
import type { GenerationOptions } from './base-type-generator';
|
|
6
7
|
export type CursorConnectionGraphQLObjectType = GraphQLObjectTypeModel & {
|
|
7
8
|
category: 'cursor-connection';
|
|
8
9
|
defaultPageSize?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { NamedFileService } from '../../files';
|
|
1
|
+
import { BaseGraphQLTypeGenerator } from './base-type-generator';
|
|
2
|
+
import type { NamedFileService, Code } from '../../files';
|
|
3
3
|
import type { GraphQLObjectTypeModel, GraphQLSchemaModel } from '../../model/graphql-schema-model';
|
|
4
|
-
import { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
5
|
-
import {
|
|
4
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
5
|
+
import type { GenerationOptions } from './base-type-generator';
|
|
6
6
|
/**
|
|
7
7
|
* Query Type MUST be an Object Type according to the GraphQL spec.
|
|
8
8
|
* https://spec.graphql.org/October2021/#sec-Query
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import { BaseGraphQLTypeGenerator } from './base-type-generator';
|
|
2
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
3
|
+
import type { GenerationOptions } from './base-type-generator';
|
|
3
4
|
import type { GraphQLObjectTypeModel, GraphQLSchemaModel } from '../../model/graphql-schema-model';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
5
|
+
import type { Code } from '../../files';
|
|
6
|
+
import type { NamedFileService } from '../../files';
|
|
6
7
|
export type IdentifiableGraphQLObjectType = GraphQLObjectTypeModel & {
|
|
7
8
|
category: 'identifiable';
|
|
8
9
|
idField: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Code } from '../../files';
|
|
2
|
+
import { BaseGraphQLTypeGenerator } from './base-type-generator';
|
|
3
|
+
import type { GenerationOptions } from './base-type-generator';
|
|
4
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
2
5
|
import type { NamedFileService } from '../../files';
|
|
3
6
|
import type { GraphQLSchemaModel, GraphQLInterfaceTypeModel } from '../../model/graphql-schema-model';
|
|
4
|
-
import { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
5
|
-
import { BaseGraphQLTypeGenerator, GenerationOptions } from './base-type-generator';
|
|
6
7
|
export type InterfaceGraphQLObjectType = GraphQLInterfaceTypeModel;
|
|
7
8
|
export declare class InterfaceGraphQLTypeGenerator extends BaseGraphQLTypeGenerator<InterfaceGraphQLObjectType> {
|
|
8
9
|
generate(type: InterfaceGraphQLObjectType, schemaModel: GraphQLSchemaModel, options: GenerationOptions): Code;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseGraphQLTypeGenerator } from './base-type-generator';
|
|
2
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
3
|
+
import type { Code } from '../../files';
|
|
2
4
|
import type { NamedFileService } from '../../files';
|
|
3
5
|
import type { GraphQLSchemaModel, GraphQLTypeModel } from '../../model/graphql-schema-model';
|
|
4
|
-
import {
|
|
5
|
-
import { BaseGraphQLTypeGenerator, GenerationOptions } from './base-type-generator';
|
|
6
|
+
import type { GenerationOptions } from './base-type-generator';
|
|
6
7
|
export type UnidentifiableGraphQLObjectType = GraphQLTypeModel & {
|
|
7
8
|
kind: 'object';
|
|
8
9
|
category: 'unidentifiable';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Code } from '../../files';
|
|
2
|
+
import { BaseGraphQLTypeGenerator } from './base-type-generator';
|
|
3
|
+
import type { GenerationOptions } from './base-type-generator';
|
|
2
4
|
import type { NamedFileService } from '../../files';
|
|
3
5
|
import type { GraphQLSchemaModel, GraphQLUnionTypeModel } from '../../model/graphql-schema-model';
|
|
4
|
-
import {
|
|
5
|
-
import { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
6
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from '../graphql-type-registry-generator';
|
|
6
7
|
export type UnionGraphQLObjectType = GraphQLUnionTypeModel;
|
|
7
8
|
export declare class UnionGraphQLTypeGenerator extends BaseGraphQLTypeGenerator<UnionGraphQLObjectType> {
|
|
8
9
|
generate(type: UnionGraphQLObjectType, schemaModel: GraphQLSchemaModel, options: GenerationOptions): Code;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IdentifiableGraphQLObjectType } from './graphql/identifiable-type-generator';
|
|
2
|
-
import { UnidentifiableGraphQLObjectType } from './graphql/unidentifiable-type-generator';
|
|
3
|
-
import { CursorConnectionGraphQLObjectType } from './graphql/cursor-connection-type-generator';
|
|
4
|
-
import { InterfaceGraphQLObjectType } from './graphql/interface-type-generator';
|
|
5
|
-
import { UnionGraphQLObjectType } from './graphql/union-type-generator';
|
|
1
|
+
import type { IdentifiableGraphQLObjectType } from './graphql/identifiable-type-generator';
|
|
2
|
+
import type { UnidentifiableGraphQLObjectType } from './graphql/unidentifiable-type-generator';
|
|
3
|
+
import type { CursorConnectionGraphQLObjectType } from './graphql/cursor-connection-type-generator';
|
|
4
|
+
import type { InterfaceGraphQLObjectType } from './graphql/interface-type-generator';
|
|
5
|
+
import type { UnionGraphQLObjectType } from './graphql/union-type-generator';
|
|
6
|
+
import type { NamedGraphQLTypeRegistryGeneratorService } from './graphql-type-registry-generator';
|
|
6
7
|
import type { ImportableValueReference, NamedFileService, Code } from '../files';
|
|
7
8
|
import type { GraphQLSchemaModel, GraphQLTypeModel } from '../model/graphql-schema-model';
|
|
8
9
|
import type { GenerationOptions } from './graphql/base-type-generator';
|
|
9
|
-
import { NamedGraphQLTypeRegistryGeneratorService } from './graphql-type-registry-generator';
|
|
10
10
|
export declare const FILE_PER_GRAPHQL_TYPE: (typename: string) => string;
|
|
11
11
|
export interface IGraphQLTypeGenerator {
|
|
12
12
|
build(options: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GraphQLTypeGenerator } from './graphql-type-generator';
|
|
2
|
+
import type { NamedAPIService } from '@conduit-client/model/v1';
|
|
2
3
|
import type { NamedFileService, File, ImportableValueReference, ImportableReference } from '../files';
|
|
3
4
|
import type { NamedService } from '@conduit-client/utils';
|
|
4
5
|
import type { GraphQLSchemaModel } from '../model/graphql-schema-model';
|
|
5
6
|
import type { GraphQLObjectType } from './graphql-type-generator';
|
|
6
|
-
import { NamedAPIService } from '@conduit-client/model/v1';
|
|
7
7
|
type GraphQLTypeRepositoryReference = {
|
|
8
8
|
propertyName: string;
|
|
9
9
|
typeClassRef: ImportableValueReference;
|
|
@@ -2,7 +2,7 @@ import { Code } from '../files';
|
|
|
2
2
|
import type { IdentifiableType, Type } from '@conduit-client/model/v1';
|
|
3
3
|
import type { NamedNormalizedTypeDefinitionService, NamedTypeDefinitionService } from '../types';
|
|
4
4
|
import type { NamedTypeRegistryGeneratorService } from './type-registry-generator';
|
|
5
|
-
import { NamedNormalizeGeneratorService } from './normalize-code-gen/normalize-generator-service';
|
|
5
|
+
import type { NamedNormalizeGeneratorService } from './normalize-code-gen/normalize-generator-service';
|
|
6
6
|
/**
|
|
7
7
|
* Generates the normalizer class for an identifiable type
|
|
8
8
|
* @param services The services required for this function. TypeDefinitionService is used to generate utility types.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type NamedService } from '@conduit-client/utils';
|
|
2
|
-
import { Code } from '../../files';
|
|
3
2
|
import { type ObjectType, type Type } from '@conduit-client/model/v1';
|
|
3
|
+
import { Code } from '../../files';
|
|
4
4
|
import type { DiscriminatedObjectType, NamedAPIService, OneOf } from '@conduit-client/model/v1';
|
|
5
|
-
import { NamedTypeRegistryGeneratorService } from '../type-registry-generator';
|
|
6
|
-
import { NamedJSONSchemaDeclarationService, NamedNormalizedTypeDefinitionService, NamedTypeDefinitionService } from '../../types';
|
|
5
|
+
import type { NamedTypeRegistryGeneratorService } from '../type-registry-generator';
|
|
6
|
+
import type { NamedJSONSchemaDeclarationService, NamedNormalizedTypeDefinitionService, NamedTypeDefinitionService } from '../../types';
|
|
7
7
|
/**
|
|
8
8
|
* The input options for the normalize generator service. Includes all the
|
|
9
9
|
* data and code references required to build an implementation of normalize & denormalize method bodies
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ImportableValueReference, NamedFileService } from '../files';
|
|
2
1
|
import { type Type } from '@conduit-client/model/v1';
|
|
2
|
+
import type { ImportableValueReference, NamedFileService } from '../files';
|
|
3
3
|
import type { NamedNormalizedTypeDefinitionService, NamedTypeDefinitionService } from '../types';
|
|
4
4
|
import type { NamedTypeRegistryGeneratorService } from './type-registry-generator';
|
|
5
|
-
import { NamedNormalizeGeneratorService } from './normalize-code-gen/normalize-generator-service';
|
|
5
|
+
import type { NamedNormalizeGeneratorService } from './normalize-code-gen/normalize-generator-service';
|
|
6
6
|
export type INormalizedTypeGenerator = {
|
|
7
7
|
build(options: {
|
|
8
8
|
namespace: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { type Type } from '@conduit-client/model/v1';
|
|
1
2
|
import { Code } from '../files';
|
|
3
|
+
import type { NamedAPIService } from '@conduit-client/model/v1';
|
|
2
4
|
import type { NamedJSONSchemaDeclarationService, NamedNormalizedTypeDefinitionService, NamedTypeDefinitionService } from '../types';
|
|
3
5
|
import type { INormalizedTypeGenerator } from './normalized-type-generator';
|
|
4
6
|
import type { NamedService } from '@conduit-client/utils';
|
|
5
7
|
import type { File, ImportableValueReference, NamedFileService } from '../files';
|
|
6
|
-
import {
|
|
7
|
-
import { NamedNormalizeGeneratorService } from './normalize-code-gen/normalize-generator-service';
|
|
8
|
+
import type { NamedNormalizeGeneratorService } from './normalize-code-gen/normalize-generator-service';
|
|
8
9
|
type TypeRepositoryReference = {
|
|
9
10
|
propertyName: string;
|
|
10
11
|
typeClassRef: ImportableValueReference;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { NamedNormalizeGeneratorService } from './normalize-code-gen/normalize-generator-service';
|
|
1
2
|
import type { UnidentifiableType } from '@conduit-client/model/v1';
|
|
2
3
|
import type { NamedNormalizedTypeDefinitionService, NamedTypeDefinitionService } from '../types';
|
|
3
4
|
import type { NamedTypeRegistryGeneratorService } from './type-registry-generator';
|
|
4
|
-
import { NamedNormalizeGeneratorService } from './normalize-code-gen/normalize-generator-service';
|
|
5
5
|
/**
|
|
6
6
|
* Generates the normalizer class for an unidentifiable type
|
|
7
7
|
* @param services The services required for this function. TypeDefinitionService is used to generate utility types.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Type } from '@conduit-client/model/v1';
|
|
2
|
-
import { Code } from '../files';
|
|
3
|
-
import { TypeDefinitionForOptions, TypeDefinitionService } from './type-definition';
|
|
4
1
|
import { type NamedService } from '@conduit-client/utils';
|
|
5
|
-
import
|
|
2
|
+
import { Code } from '../files';
|
|
3
|
+
import { TypeDefinitionService } from './type-definition';
|
|
4
|
+
import type { TypeDefinitionForOptions } from './type-definition';
|
|
5
|
+
import type { AllOfType, DiscriminatedObjectType, NamedAPIService, OneOf, Type } from '@conduit-client/model/v1';
|
|
6
6
|
import type { NamedFileService } from '../files';
|
|
7
7
|
export type INormalizedTypeDefinitionService = {
|
|
8
8
|
buildReference(type: Type): Code;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AllOfType, Type } from '@conduit-client/model/v1';
|
|
2
|
-
import { Result } from '@conduit-client/utils';
|
|
1
|
+
import type { AllOfType, Type } from '@conduit-client/model/v1';
|
|
2
|
+
import type { Result } from '@conduit-client/utils';
|
|
3
3
|
/**
|
|
4
4
|
* This function is intended to collapse an allOf type into it's concrete type
|
|
5
5
|
* This is allows code generation to operate on a single, canonical type definition
|