Browse Source

chore: Include deprecated inputs in generated types

Michael Bromley 2 years ago
parent
commit
b53105af00

+ 4 - 0
packages/admin-ui/src/lib/core/src/common/generated-types.ts

@@ -5114,6 +5114,10 @@ export type SearchInput = {
   collectionId?: InputMaybe<Scalars['ID']>;
   collectionSlug?: InputMaybe<Scalars['String']>;
   facetValueFilters?: InputMaybe<Array<FacetValueFilterInput>>;
+  /** @deprecated Use `facetValueFilters` instead */
+  facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
+  /** @deprecated Use `facetValueFilters` instead */
+  facetValueOperator?: InputMaybe<LogicalOperator>;
   groupByProduct?: InputMaybe<Scalars['Boolean']>;
   skip?: InputMaybe<Scalars['Int']>;
   sort?: InputMaybe<SearchResultSortParameter>;

File diff suppressed because it is too large
+ 526 - 508
packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts


File diff suppressed because it is too large
+ 645 - 628
packages/common/src/generated-shop-types.ts


+ 4 - 0
packages/common/src/generated-types.ts

@@ -5043,6 +5043,10 @@ export type SearchInput = {
   collectionId?: InputMaybe<Scalars['ID']>;
   collectionSlug?: InputMaybe<Scalars['String']>;
   facetValueFilters?: InputMaybe<Array<FacetValueFilterInput>>;
+  /** @deprecated Use `facetValueFilters` instead */
+  facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
+  /** @deprecated Use `facetValueFilters` instead */
+  facetValueOperator?: InputMaybe<LogicalOperator>;
   groupByProduct?: InputMaybe<Scalars['Boolean']>;
   skip?: InputMaybe<Scalars['Int']>;
   sort?: InputMaybe<SearchResultSortParameter>;

File diff suppressed because it is too large
+ 526 - 508
packages/core/e2e/graphql/generated-e2e-admin-types.ts


+ 5 - 1
packages/core/e2e/graphql/generated-e2e-shop-types.ts

@@ -2813,6 +2813,10 @@ export type SearchInput = {
     collectionId?: InputMaybe<Scalars['ID']>;
     collectionSlug?: InputMaybe<Scalars['String']>;
     facetValueFilters?: InputMaybe<Array<FacetValueFilterInput>>;
+    /** @deprecated Use `facetValueFilters` instead */
+    facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
+    /** @deprecated Use `facetValueFilters` instead */
+    facetValueOperator?: InputMaybe<LogicalOperator>;
     groupByProduct?: InputMaybe<Scalars['Boolean']>;
     skip?: InputMaybe<Scalars['Int']>;
     sort?: InputMaybe<SearchResultSortParameter>;
@@ -3725,7 +3729,7 @@ export type SetCustomerForOrderMutation = {
     setCustomerForOrder:
         | { errorCode: ErrorCode; message: string }
         | { errorCode: ErrorCode; message: string }
-        | { errorCode: ErrorCode; message: string }
+        | { errorCode: ErrorCode; message: string; errorDetail: string }
         | { errorCode: ErrorCode; message: string }
         | {
               id: string;

File diff suppressed because it is too large
+ 526 - 508
packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts


File diff suppressed because it is too large
+ 526 - 508
packages/payments-plugin/e2e/graphql/generated-admin-types.ts


File diff suppressed because it is too large
+ 616 - 599
packages/payments-plugin/e2e/graphql/generated-shop-types.ts


File diff suppressed because it is too large
+ 649 - 632
packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts


File diff suppressed because it is too large
+ 0 - 0
schema-admin.json


File diff suppressed because it is too large
+ 0 - 0
schema-shop.json


+ 1 - 1
scripts/codegen/download-introspection-schema.ts

@@ -13,7 +13,7 @@ import { ADMIN_API_PATH, API_PORT } from '../../packages/common/src/shared-const
  * If there is an error connecting to the server, the promise resolves to false.
  */
 export function downloadIntrospectionSchema(apiPath: string, outputFilePath: string): Promise<boolean> {
-    const body = JSON.stringify({ query: getIntrospectionQuery() });
+    const body = JSON.stringify({ query: getIntrospectionQuery({ inputValueDeprecation: true }) });
 
     return new Promise((resolve, reject) => {
         const request = http.request(

+ 4 - 2
scripts/codegen/generate-graphql-types.ts

@@ -1,4 +1,5 @@
 import { generate } from '@graphql-codegen/cli';
+import { Types } from '@graphql-codegen/plugin-helpers/typings';
 import fs from 'fs';
 import { buildClientSchema } from 'graphql';
 import path from 'path';
@@ -79,7 +80,7 @@ Promise.all([
         const commonPlugins = [disableEsLintPlugin, 'typescript'];
         const clientPlugins = [...commonPlugins, 'typescript-operations'];
 
-        return generate({
+        const codegenConfig: Types.Config = {
             overwrite: true,
             generates: {
                 [path.join(
@@ -204,7 +205,8 @@ Promise.all([
                     config,
                 },
             },
-        });
+        };
+        return generate(codegenConfig);
     })
     .then(
         result => {

Some files were not shown because too many files changed in this diff