@vladimirdev635/gql-codegen 0.0.79 → 0.0.80

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.
@@ -15,7 +15,6 @@ const operationTypeNode = ts.factory.createInterfaceDeclaration(ts.factory.creat
15
15
  ts.factory.createPropertySignature(undefined, 'resultSchema', undefined, ts.factory.createTypeReferenceNode('z.ZodType', [
16
16
  ts.factory.createTypeReferenceNode('R')
17
17
  ])),
18
- ts.factory.createPropertySignature(undefined, 'hash', undefined, ts.factory.createTypeReferenceNode('string')),
19
18
  ]);
20
19
  export function generateClientNodes(config, context) {
21
20
  return [
@@ -23,7 +23,6 @@ function generateOperationNode(schema, operation) {
23
23
  ].join(' '))),
24
24
  ts.factory.createPropertyAssignment('variablesSchema', ts.factory.createIdentifier(generateSchemaName(operation.name + 'Variables'))),
25
25
  ts.factory.createPropertyAssignment('resultSchema', ts.factory.createIdentifier(generateSchemaName(operation.name + 'Result'))),
26
- ts.factory.createPropertyAssignment('hash', ts.factory.createStringLiteral(operation.hash))
27
26
  ], true), ts.factory.createTypeReferenceNode('const')), ts.factory.createTypeReferenceNode('Operation', [
28
27
  ts.factory.createTypeReferenceNode(operation.name + 'Variables'),
29
28
  ts.factory.createTypeReferenceNode(operation.name + 'Result'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vladimirdev635/gql-codegen",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -49,5 +49,4 @@ export declare const operationSchema: z.ZodObject<{
49
49
  selections: z.ZodArray<import("./fragment.js").UnionSelectionZodType>;
50
50
  }, z.core.$strip>]>;
51
51
  sourceText: z.ZodString;
52
- hash: z.ZodString;
53
52
  }, z.core.$strip>;
@@ -7,5 +7,4 @@ export const operationSchema = z.object({
7
7
  parameters: z.record(z.string(), inputFieldSchema),
8
8
  fragmentSpec: fragmentSpecSchema,
9
9
  sourceText: z.string(),
10
- hash: z.string()
11
10
  });
@@ -62,7 +62,6 @@ export declare const clientSchema: z.ZodObject<{
62
62
  selections: z.ZodArray<import("./fragment.js").UnionSelectionZodType>;
63
63
  }, z.core.$strip>]>;
64
64
  sourceText: z.ZodString;
65
- hash: z.ZodString;
66
65
  }, z.core.$strip>>;
67
66
  directives: z.ZodRecord<z.ZodString, z.ZodObject<{
68
67
  name: z.ZodString;
package/schema/utils.js CHANGED
@@ -262,7 +262,6 @@ function buildOperation(type, object, fieldName, field) {
262
262
  parameters: buildParameters(field.spec),
263
263
  sourceText: buildOperationSourceText(type, object, name, fieldName, field.spec),
264
264
  fragmentSpec: buildFragmentSpecFromField(type, fieldName, field),
265
- hash: ''
266
265
  };
267
266
  }
268
267
  function buildOperations(server) {