Skip to content

Commit

Permalink
Regen API and license to fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
stocaaro committed Oct 9, 2024
1 parent 7bbb583 commit c03deaa
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dependency_licenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9556,7 +9556,7 @@ The following software may be included in this product: change-case-all. A copy

MIT License

Modified work: Copyright (c) 2020 Jonas Gnioui <btxtiger@outlook.com>
Modified work: Copyright (c) 2020 Jonas Gnioui <btxtiger@icloud.com>

Original work:

Expand Down Expand Up @@ -9586,7 +9586,7 @@ The following software may be included in this product: change-case-all. A copy

MIT License

Modified work: Copyright (c) 2020 Jonas Gnioui <btxtiger@icloud.com>
Modified work: Copyright (c) 2020 Jonas Gnioui <btxtiger@outlook.com>

Original work:

Expand Down
40 changes: 40 additions & 0 deletions packages/appsync-modelgen-plugin/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
```ts

import { CodegenPlugin } from '@graphql-codegen/plugin-helpers';
import { PluginFunction } from '@graphql-codegen/plugin-helpers';
import { RawConfig } from '@graphql-codegen/visitor-plugin-common';
import { RawDocumentsConfig } from '@graphql-codegen/visitor-plugin-common';
Expand Down Expand Up @@ -142,9 +143,15 @@ export type ModelIntrospectionSchema = {
// @public (undocumented)
export const plugin: PluginFunction<RawAppSyncModelConfig>;

// @public (undocumented)
export const pluginSync: SyncTypes.PluginFunction<RawAppSyncModelConfig>;

// @public (undocumented)
export const preset: Types.OutputPreset<AppSyncModelCodeGenPresetConfig>;

// @public (undocumented)
export const presetSync: SyncTypes.OutputPreset<AppSyncModelCodeGenPresetConfig>;

// @public (undocumented)
export type PrimaryKeyInfo = {
isCustomPrimaryKey: boolean;
Expand Down Expand Up @@ -235,6 +242,39 @@ export type SchemaSubscription = SchemaQuery;
// @public (undocumented)
export type SchemaSubscriptions = Record<string, SchemaSubscription>;

// @public (undocumented)
export namespace SyncTypes {
// (undocumented)
export type CodegenPlugin<T = any> = Omit<CodegenPlugin<T>, 'plugin'> & {
plugin: PluginFunction<T>;
};
// (undocumented)
export type ConfiguredPlugin = Types.ConfiguredPlugin;
// (undocumented)
export type DocumentFile = Types.DocumentFile;
// Warning: (ae-forgotten-export) The symbol "SyncCache" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "SyncPluginMap" needs to be exported by the entry point index.d.ts
//
// (undocumented)
export type GenerateOptions = SyncCache<SyncPluginMap<Types.GenerateOptions>>;
// (undocumented)
export type OutputPreset<TPresetConfig = any> = {
buildGeneratesSection: (options: PresetFnArgs<TPresetConfig>) => GenerateOptions[];
};
// (undocumented)
export type PluginConfig = Types.PluginConfig;
// (undocumented)
export type PluginFunction<T> = (...args: Parameters<PluginFunction<T>>) => Awaited<ReturnType<PluginFunction<T>>>;
// (undocumented)
export type PluginOutput = Types.PluginOutput;
// (undocumented)
export type PresetFnArgs<Config = any, PluginConfig = {
[key: string]: any;
}> = SyncCache<SyncPluginMap<Types.PresetFnArgs<Config, PluginConfig>>>;
// (undocumented)
export type SkipDocumentsValidationOptions = Types.SkipDocumentsValidationOptions;
}

// @public (undocumented)
export type Target = 'java' | 'swift' | 'javascript' | 'typescript' | 'dart' | 'introspection';

Expand Down
3 changes: 3 additions & 0 deletions packages/graphql-generator/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export type GenerateModelsOptions = {
handleListNullabilityTransparently?: boolean;
};

// @public (undocumented)
export function generateModelsSync(options: GenerateModelsOptions): GeneratedOutput;

// @public (undocumented)
export function generateStatements(options: GenerateStatementsOptions): GeneratedOutput;

Expand Down

0 comments on commit c03deaa

Please sign in to comment.