Преглед изворни кода

chore: Remove "time" plugin from graphql-code-generator

Relates to #92. Time is not needed and adds extra noise to diffs.
Michael Bromley пре 6 година
родитељ
комит
f61ea111bc

+ 27 - 28
admin-ui/src/app/common/generated-types.ts

@@ -1,5 +1,4 @@
 // tslint:disable
 // tslint:disable
-// Generated in 2019-05-07T21:25:30+02:00
 
 
 export type Maybe<T> = T | null;
 export type Maybe<T> = T | null;
 /** All built-in and custom scalars, mapped to their actual values */
 /** All built-in and custom scalars, mapped to their actual values */
@@ -1413,20 +1412,20 @@ export type Mutation = {
   updateAdministrator: Administrator,
   updateAdministrator: Administrator,
   /** Assign a Role to an Administrator */
   /** Assign a Role to an Administrator */
   assignRoleToAdministrator: Administrator,
   assignRoleToAdministrator: Administrator,
-  login: LoginResult,
-  logout: Scalars['Boolean'],
   /** Create a new Asset */
   /** Create a new Asset */
   createAssets: Array<Asset>,
   createAssets: Array<Asset>,
+  login: LoginResult,
+  logout: Scalars['Boolean'],
+  /** Create a new Channel */
+  createChannel: Channel,
+  /** Update an existing Channel */
+  updateChannel: Channel,
   /** Create a new Collection */
   /** Create a new Collection */
   createCollection: Collection,
   createCollection: Collection,
   /** Update an existing Collection */
   /** Update an existing Collection */
   updateCollection: Collection,
   updateCollection: Collection,
   /** Move a Collection to a different parent or index */
   /** Move a Collection to a different parent or index */
   moveCollection: Collection,
   moveCollection: Collection,
-  /** Create a new Channel */
-  createChannel: Channel,
-  /** Update an existing Channel */
-  updateChannel: Channel,
   /** Create a new Country */
   /** Create a new Country */
   createCountry: Country,
   createCountry: Country,
   /** Update an existing Country */
   /** Update an existing Country */
@@ -1541,6 +1540,11 @@ export type MutationAssignRoleToAdministratorArgs = {
 };
 };
 
 
 
 
+export type MutationCreateAssetsArgs = {
+  input: Array<CreateAssetInput>
+};
+
+
 export type MutationLoginArgs = {
 export type MutationLoginArgs = {
   username: Scalars['String'],
   username: Scalars['String'],
   password: Scalars['String'],
   password: Scalars['String'],
@@ -1548,8 +1552,13 @@ export type MutationLoginArgs = {
 };
 };
 
 
 
 
-export type MutationCreateAssetsArgs = {
-  input: Array<CreateAssetInput>
+export type MutationCreateChannelArgs = {
+  input: CreateChannelInput
+};
+
+
+export type MutationUpdateChannelArgs = {
+  input: UpdateChannelInput
 };
 };
 
 
 
 
@@ -1568,16 +1577,6 @@ export type MutationMoveCollectionArgs = {
 };
 };
 
 
 
 
-export type MutationCreateChannelArgs = {
-  input: CreateChannelInput
-};
-
-
-export type MutationUpdateChannelArgs = {
-  input: UpdateChannelInput
-};
-
-
 export type MutationCreateCountryArgs = {
 export type MutationCreateCountryArgs = {
   input: CreateCountryInput
   input: CreateCountryInput
 };
 };
@@ -2293,15 +2292,15 @@ export type PromotionSortParameter = {
 export type Query = {
 export type Query = {
   administrators: AdministratorList,
   administrators: AdministratorList,
   administrator?: Maybe<Administrator>,
   administrator?: Maybe<Administrator>,
-  me?: Maybe<CurrentUser>,
   assets: AssetList,
   assets: AssetList,
   asset?: Maybe<Asset>,
   asset?: Maybe<Asset>,
-  collections: CollectionList,
-  collection?: Maybe<Collection>,
-  collectionFilters: Array<ConfigurableOperation>,
+  me?: Maybe<CurrentUser>,
   channels: Array<Channel>,
   channels: Array<Channel>,
   channel?: Maybe<Channel>,
   channel?: Maybe<Channel>,
   activeChannel: Channel,
   activeChannel: Channel,
+  collections: CollectionList,
+  collection?: Maybe<Collection>,
+  collectionFilters: Array<ConfigurableOperation>,
   countries: CountryList,
   countries: CountryList,
   country?: Maybe<Country>,
   country?: Maybe<Country>,
   customerGroups: Array<CustomerGroup>,
   customerGroups: Array<CustomerGroup>,
@@ -2362,6 +2361,11 @@ export type QueryAssetArgs = {
 };
 };
 
 
 
 
+export type QueryChannelArgs = {
+  id: Scalars['ID']
+};
+
+
 export type QueryCollectionsArgs = {
 export type QueryCollectionsArgs = {
   languageCode?: Maybe<LanguageCode>,
   languageCode?: Maybe<LanguageCode>,
   options?: Maybe<CollectionListOptions>
   options?: Maybe<CollectionListOptions>
@@ -2374,11 +2378,6 @@ export type QueryCollectionArgs = {
 };
 };
 
 
 
 
-export type QueryChannelArgs = {
-  id: Scalars['ID']
-};
-
-
 export type QueryCountriesArgs = {
 export type QueryCountriesArgs = {
   options?: Maybe<CountryListOptions>
   options?: Maybe<CountryListOptions>
 };
 };

+ 0 - 1
package.json

@@ -33,7 +33,6 @@
   "devDependencies": {
   "devDependencies": {
     "@graphql-codegen/add": "^1.1.3",
     "@graphql-codegen/add": "^1.1.3",
     "@graphql-codegen/cli": "^1.1.3",
     "@graphql-codegen/cli": "^1.1.3",
-    "@graphql-codegen/time": "^1.1.3",
     "@graphql-codegen/typescript": "^1.1.3",
     "@graphql-codegen/typescript": "^1.1.3",
     "@graphql-codegen/typescript-compatibility": "^1.1.3",
     "@graphql-codegen/typescript-compatibility": "^1.1.3",
     "@graphql-codegen/typescript-operations": "^1.1.3",
     "@graphql-codegen/typescript-operations": "^1.1.3",

+ 0 - 1
packages/common/src/generated-shop-types.ts

@@ -1,5 +1,4 @@
 // tslint:disable
 // tslint:disable
-// Generated in 2019-05-07T21:25:29+02:00
 
 
 export type Maybe<T> = T | null;
 export type Maybe<T> = T | null;
 /** All built-in and custom scalars, mapped to their actual values */
 /** All built-in and custom scalars, mapped to their actual values */

+ 27 - 28
packages/common/src/generated-types.ts

@@ -1,5 +1,4 @@
 // tslint:disable
 // tslint:disable
-// Generated in 2019-05-07T21:25:27+02:00
 
 
 export type Maybe<T> = T | null;
 export type Maybe<T> = T | null;
 /** All built-in and custom scalars, mapped to their actual values */
 /** All built-in and custom scalars, mapped to their actual values */
@@ -1412,20 +1411,20 @@ export type Mutation = {
   updateAdministrator: Administrator,
   updateAdministrator: Administrator,
   /** Assign a Role to an Administrator */
   /** Assign a Role to an Administrator */
   assignRoleToAdministrator: Administrator,
   assignRoleToAdministrator: Administrator,
-  login: LoginResult,
-  logout: Scalars['Boolean'],
   /** Create a new Asset */
   /** Create a new Asset */
   createAssets: Array<Asset>,
   createAssets: Array<Asset>,
+  login: LoginResult,
+  logout: Scalars['Boolean'],
+  /** Create a new Channel */
+  createChannel: Channel,
+  /** Update an existing Channel */
+  updateChannel: Channel,
   /** Create a new Collection */
   /** Create a new Collection */
   createCollection: Collection,
   createCollection: Collection,
   /** Update an existing Collection */
   /** Update an existing Collection */
   updateCollection: Collection,
   updateCollection: Collection,
   /** Move a Collection to a different parent or index */
   /** Move a Collection to a different parent or index */
   moveCollection: Collection,
   moveCollection: Collection,
-  /** Create a new Channel */
-  createChannel: Channel,
-  /** Update an existing Channel */
-  updateChannel: Channel,
   /** Create a new Country */
   /** Create a new Country */
   createCountry: Country,
   createCountry: Country,
   /** Update an existing Country */
   /** Update an existing Country */
@@ -1535,6 +1534,11 @@ export type MutationAssignRoleToAdministratorArgs = {
 };
 };
 
 
 
 
+export type MutationCreateAssetsArgs = {
+  input: Array<CreateAssetInput>
+};
+
+
 export type MutationLoginArgs = {
 export type MutationLoginArgs = {
   username: Scalars['String'],
   username: Scalars['String'],
   password: Scalars['String'],
   password: Scalars['String'],
@@ -1542,8 +1546,13 @@ export type MutationLoginArgs = {
 };
 };
 
 
 
 
-export type MutationCreateAssetsArgs = {
-  input: Array<CreateAssetInput>
+export type MutationCreateChannelArgs = {
+  input: CreateChannelInput
+};
+
+
+export type MutationUpdateChannelArgs = {
+  input: UpdateChannelInput
 };
 };
 
 
 
 
@@ -1562,16 +1571,6 @@ export type MutationMoveCollectionArgs = {
 };
 };
 
 
 
 
-export type MutationCreateChannelArgs = {
-  input: CreateChannelInput
-};
-
-
-export type MutationUpdateChannelArgs = {
-  input: UpdateChannelInput
-};
-
-
 export type MutationCreateCountryArgs = {
 export type MutationCreateCountryArgs = {
   input: CreateCountryInput
   input: CreateCountryInput
 };
 };
@@ -2272,15 +2271,15 @@ export type PromotionSortParameter = {
 export type Query = {
 export type Query = {
   administrators: AdministratorList,
   administrators: AdministratorList,
   administrator?: Maybe<Administrator>,
   administrator?: Maybe<Administrator>,
-  me?: Maybe<CurrentUser>,
   assets: AssetList,
   assets: AssetList,
   asset?: Maybe<Asset>,
   asset?: Maybe<Asset>,
-  collections: CollectionList,
-  collection?: Maybe<Collection>,
-  collectionFilters: Array<ConfigurableOperation>,
+  me?: Maybe<CurrentUser>,
   channels: Array<Channel>,
   channels: Array<Channel>,
   channel?: Maybe<Channel>,
   channel?: Maybe<Channel>,
   activeChannel: Channel,
   activeChannel: Channel,
+  collections: CollectionList,
+  collection?: Maybe<Collection>,
+  collectionFilters: Array<ConfigurableOperation>,
   countries: CountryList,
   countries: CountryList,
   country?: Maybe<Country>,
   country?: Maybe<Country>,
   customerGroups: Array<CustomerGroup>,
   customerGroups: Array<CustomerGroup>,
@@ -2338,6 +2337,11 @@ export type QueryAssetArgs = {
 };
 };
 
 
 
 
+export type QueryChannelArgs = {
+  id: Scalars['ID']
+};
+
+
 export type QueryCollectionsArgs = {
 export type QueryCollectionsArgs = {
   languageCode?: Maybe<LanguageCode>,
   languageCode?: Maybe<LanguageCode>,
   options?: Maybe<CollectionListOptions>
   options?: Maybe<CollectionListOptions>
@@ -2350,11 +2354,6 @@ export type QueryCollectionArgs = {
 };
 };
 
 
 
 
-export type QueryChannelArgs = {
-  id: Scalars['ID']
-};
-
-
 export type QueryCountriesArgs = {
 export type QueryCountriesArgs = {
   options?: Maybe<CountryListOptions>
   options?: Maybe<CountryListOptions>
 };
 };

+ 24 - 25
packages/core/e2e/graphql/generated-e2e-admin-types.ts

@@ -1,5 +1,4 @@
 // tslint:disable
 // tslint:disable
-// Generated in 2019-05-07T21:25:31+02:00
 
 
 export type Maybe<T> = T | null;
 export type Maybe<T> = T | null;
 /** All built-in and custom scalars, mapped to their actual values */
 /** All built-in and custom scalars, mapped to their actual values */
@@ -1409,20 +1408,20 @@ export type Mutation = {
     updateAdministrator: Administrator;
     updateAdministrator: Administrator;
     /** Assign a Role to an Administrator */
     /** Assign a Role to an Administrator */
     assignRoleToAdministrator: Administrator;
     assignRoleToAdministrator: Administrator;
-    login: LoginResult;
-    logout: Scalars['Boolean'];
     /** Create a new Asset */
     /** Create a new Asset */
     createAssets: Array<Asset>;
     createAssets: Array<Asset>;
+    login: LoginResult;
+    logout: Scalars['Boolean'];
+    /** Create a new Channel */
+    createChannel: Channel;
+    /** Update an existing Channel */
+    updateChannel: Channel;
     /** Create a new Collection */
     /** Create a new Collection */
     createCollection: Collection;
     createCollection: Collection;
     /** Update an existing Collection */
     /** Update an existing Collection */
     updateCollection: Collection;
     updateCollection: Collection;
     /** Move a Collection to a different parent or index */
     /** Move a Collection to a different parent or index */
     moveCollection: Collection;
     moveCollection: Collection;
-    /** Create a new Channel */
-    createChannel: Channel;
-    /** Update an existing Channel */
-    updateChannel: Channel;
     /** Create a new Country */
     /** Create a new Country */
     createCountry: Country;
     createCountry: Country;
     /** Update an existing Country */
     /** Update an existing Country */
@@ -1528,14 +1527,22 @@ export type MutationAssignRoleToAdministratorArgs = {
     roleId: Scalars['ID'];
     roleId: Scalars['ID'];
 };
 };
 
 
+export type MutationCreateAssetsArgs = {
+    input: Array<CreateAssetInput>;
+};
+
 export type MutationLoginArgs = {
 export type MutationLoginArgs = {
     username: Scalars['String'];
     username: Scalars['String'];
     password: Scalars['String'];
     password: Scalars['String'];
     rememberMe?: Maybe<Scalars['Boolean']>;
     rememberMe?: Maybe<Scalars['Boolean']>;
 };
 };
 
 
-export type MutationCreateAssetsArgs = {
-    input: Array<CreateAssetInput>;
+export type MutationCreateChannelArgs = {
+    input: CreateChannelInput;
+};
+
+export type MutationUpdateChannelArgs = {
+    input: UpdateChannelInput;
 };
 };
 
 
 export type MutationCreateCollectionArgs = {
 export type MutationCreateCollectionArgs = {
@@ -1550,14 +1557,6 @@ export type MutationMoveCollectionArgs = {
     input: MoveCollectionInput;
     input: MoveCollectionInput;
 };
 };
 
 
-export type MutationCreateChannelArgs = {
-    input: CreateChannelInput;
-};
-
-export type MutationUpdateChannelArgs = {
-    input: UpdateChannelInput;
-};
-
 export type MutationCreateCountryArgs = {
 export type MutationCreateCountryArgs = {
     input: CreateCountryInput;
     input: CreateCountryInput;
 };
 };
@@ -2211,15 +2210,15 @@ export type PromotionSortParameter = {
 export type Query = {
 export type Query = {
     administrators: AdministratorList;
     administrators: AdministratorList;
     administrator?: Maybe<Administrator>;
     administrator?: Maybe<Administrator>;
-    me?: Maybe<CurrentUser>;
     assets: AssetList;
     assets: AssetList;
     asset?: Maybe<Asset>;
     asset?: Maybe<Asset>;
-    collections: CollectionList;
-    collection?: Maybe<Collection>;
-    collectionFilters: Array<ConfigurableOperation>;
+    me?: Maybe<CurrentUser>;
     channels: Array<Channel>;
     channels: Array<Channel>;
     channel?: Maybe<Channel>;
     channel?: Maybe<Channel>;
     activeChannel: Channel;
     activeChannel: Channel;
+    collections: CollectionList;
+    collection?: Maybe<Collection>;
+    collectionFilters: Array<ConfigurableOperation>;
     countries: CountryList;
     countries: CountryList;
     country?: Maybe<Country>;
     country?: Maybe<Country>;
     customerGroups: Array<CustomerGroup>;
     customerGroups: Array<CustomerGroup>;
@@ -2272,6 +2271,10 @@ export type QueryAssetArgs = {
     id: Scalars['ID'];
     id: Scalars['ID'];
 };
 };
 
 
+export type QueryChannelArgs = {
+    id: Scalars['ID'];
+};
+
 export type QueryCollectionsArgs = {
 export type QueryCollectionsArgs = {
     languageCode?: Maybe<LanguageCode>;
     languageCode?: Maybe<LanguageCode>;
     options?: Maybe<CollectionListOptions>;
     options?: Maybe<CollectionListOptions>;
@@ -2282,10 +2285,6 @@ export type QueryCollectionArgs = {
     languageCode?: Maybe<LanguageCode>;
     languageCode?: Maybe<LanguageCode>;
 };
 };
 
 
-export type QueryChannelArgs = {
-    id: Scalars['ID'];
-};
-
 export type QueryCountriesArgs = {
 export type QueryCountriesArgs = {
     options?: Maybe<CountryListOptions>;
     options?: Maybe<CountryListOptions>;
 };
 };

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

@@ -1,5 +1,4 @@
 // tslint:disable
 // tslint:disable
-// Generated in 2019-05-07T21:25:29+02:00
 
 
 export type Maybe<T> = T | null;
 export type Maybe<T> = T | null;
 /** All built-in and custom scalars, mapped to their actual values */
 /** All built-in and custom scalars, mapped to their actual values */

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
schema-admin.json


+ 0 - 1
scripts/codegen/generate-graphql-types.ts

@@ -41,7 +41,6 @@ Promise.all([
         };
         };
         const commonPlugins = [
         const commonPlugins = [
             { add: '// tslint:disable' },
             { add: '// tslint:disable' },
-            'time',
             'typescript',
             'typescript',
         ];
         ];
         const clientPlugins = [
         const clientPlugins = [

+ 0 - 13
yarn.lock

@@ -276,14 +276,6 @@
     import-from "3.0.0"
     import-from "3.0.0"
     tslib "1.9.3"
     tslib "1.9.3"
 
 
-"@graphql-codegen/time@^1.1.3":
-  version "1.1.3"
-  resolved "https://registry.yarnpkg.com/@graphql-codegen/time/-/time-1.1.3.tgz#c1aab48f72204441575d6acb58074ce3bb475a8f"
-  integrity sha512-TJJigrqLK3DBbLuNCZRZWhnwh6tklXXEfiuO0QpnoTTlRG6rJWKpdvE7RKfgS+Z0HyQTprRDgapYVpZk6nixAw==
-  dependencies:
-    "@graphql-codegen/plugin-helpers" "1.1.3"
-    moment "2.24.0"
-
 "@graphql-codegen/typescript-compatibility@^1.1.3":
 "@graphql-codegen/typescript-compatibility@^1.1.3":
   version "1.1.3"
   version "1.1.3"
   resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-compatibility/-/typescript-compatibility-1.1.3.tgz#5d9acfed5c0d49bba09b5a0bf5ef87b433f1f0a1"
   resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-compatibility/-/typescript-compatibility-1.1.3.tgz#5d9acfed5c0d49bba09b5a0bf5ef87b433f1f0a1"
@@ -7868,11 +7860,6 @@ modify-values@^1.0.0:
   resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022"
   resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022"
   integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==
   integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==
 
 
-moment@2.24.0:
-  version "2.24.0"
-  resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
-  integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==
-
 move-concurrently@^1.0.1:
 move-concurrently@^1.0.1:
   version "1.0.1"
   version "1.0.1"
   resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"
   resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"

Неке датотеке нису приказане због велике количине промена