@pgpmjs/migrate-client 1.1.2 → 1.1.3

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.
@@ -2,4 +2,4 @@
2
2
  * GraphQL SDK - auto-generated, do not edit
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  */
5
- export * from "./orm";
5
+ export * from './orm';
@@ -2,4 +2,4 @@
2
2
  * GraphQL SDK - auto-generated, do not edit
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  */
5
- export * from "./orm";
5
+ export * from './orm';
@@ -35,9 +35,7 @@ export class FetchAdapter {
35
35
  return {
36
36
  ok: false,
37
37
  data: null,
38
- errors: [
39
- { message: `HTTP ${response.status}: ${response.statusText}` },
40
- ],
38
+ errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }],
41
39
  };
42
40
  }
43
41
  const json = (await response.json());
@@ -1,12 +1,12 @@
1
- import type { OrmClientConfig } from "./client";
2
- import { AstMigrationModel } from "./models/astMigration";
3
- import { SqlActionModel } from "./models/sqlAction";
4
- export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from "./client";
5
- export { GraphQLRequestError, FetchAdapter } from "./client";
6
- export { QueryBuilder } from "./query-builder";
7
- export * from "./select-types";
8
- export * from "./models";
9
- export { createMutationOperations } from "./mutation";
1
+ import type { OrmClientConfig } from './client';
2
+ import { AstMigrationModel } from './models/astMigration';
3
+ import { SqlActionModel } from './models/sqlAction';
4
+ export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
5
+ export { GraphQLRequestError, FetchAdapter } from './client';
6
+ export { QueryBuilder } from './query-builder';
7
+ export * from './select-types';
8
+ export * from './models';
9
+ export { createMutationOperations } from './mutation';
10
10
  /**
11
11
  * Create an ORM client instance
12
12
  *
@@ -3,15 +3,15 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { OrmClient } from "./client";
7
- import { AstMigrationModel } from "./models/astMigration";
8
- import { SqlActionModel } from "./models/sqlAction";
9
- import { createMutationOperations } from "./mutation";
10
- export { GraphQLRequestError, FetchAdapter } from "./client";
11
- export { QueryBuilder } from "./query-builder";
12
- export * from "./select-types";
13
- export * from "./models";
14
- export { createMutationOperations } from "./mutation";
6
+ import { OrmClient } from './client';
7
+ import { AstMigrationModel } from './models/astMigration';
8
+ import { SqlActionModel } from './models/sqlAction';
9
+ import { createMutationOperations } from './mutation';
10
+ export { GraphQLRequestError, FetchAdapter } from './client';
11
+ export { QueryBuilder } from './query-builder';
12
+ export * from './select-types';
13
+ export * from './models';
14
+ export { createMutationOperations } from './mutation';
15
15
  /**
16
16
  * Create an ORM client instance
17
17
  *
@@ -40,6 +40,6 @@ export function createClient(config) {
40
40
  return {
41
41
  astMigration: new AstMigrationModel(client),
42
42
  sqlAction: new SqlActionModel(client),
43
- mutation: createMutationOperations(client)
43
+ mutation: createMutationOperations(client),
44
44
  };
45
45
  }
@@ -372,8 +372,8 @@ export interface SqlActionFilter {
372
372
  /** Filter by the object’s `verify` field. */
373
373
  verify?: StringFilter;
374
374
  }
375
- export type AstMigrationOrderBy = "ACTION_ID_ASC" | "ACTION_ID_DESC" | "ACTION_NAME_ASC" | "ACTION_NAME_DESC" | "ACTOR_ID_ASC" | "ACTOR_ID_DESC" | "CREATED_AT_ASC" | "CREATED_AT_DESC" | "DATABASE_ID_ASC" | "DATABASE_ID_DESC" | "DEPLOYS_ASC" | "DEPLOYS_DESC" | "DEPLOY_ASC" | "DEPLOY_DESC" | "ID_ASC" | "ID_DESC" | "NAME_ASC" | "NAME_DESC" | "NATURAL" | "PAYLOAD_ASC" | "PAYLOAD_DESC" | "REQUIRES_ASC" | "REQUIRES_DESC" | "REVERT_ASC" | "REVERT_DESC" | "VERIFY_ASC" | "VERIFY_DESC";
376
- export type SqlActionOrderBy = "ACTION_ID_ASC" | "ACTION_ID_DESC" | "ACTION_NAME_ASC" | "ACTION_NAME_DESC" | "ACTOR_ID_ASC" | "ACTOR_ID_DESC" | "CONTENT_ASC" | "CONTENT_DESC" | "CREATED_AT_ASC" | "CREATED_AT_DESC" | "DATABASE_ID_ASC" | "DATABASE_ID_DESC" | "DEPLOY_ASC" | "DEPLOY_DESC" | "DEPS_ASC" | "DEPS_DESC" | "ID_ASC" | "ID_DESC" | "NAME_ASC" | "NAME_DESC" | "NATURAL" | "PAYLOAD_ASC" | "PAYLOAD_DESC" | "REVERT_ASC" | "REVERT_DESC" | "VERIFY_ASC" | "VERIFY_DESC";
375
+ export type AstMigrationOrderBy = 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTION_NAME_ASC' | 'ACTION_NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOYS_ASC' | 'DEPLOYS_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'REQUIRES_ASC' | 'REQUIRES_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC';
376
+ export type SqlActionOrderBy = 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTION_NAME_ASC' | 'ACTION_NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'DEPS_ASC' | 'DEPS_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC';
377
377
  export interface CreateAstMigrationInput {
378
378
  clientMutationId?: string;
379
379
  astMigration: {
@@ -3,10 +3,10 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { OrmClient } from "../client";
7
- import { QueryBuilder } from "../query-builder";
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from "../select-types";
9
- import type { AstMigrationWithRelations, AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, CreateAstMigrationInput } from "../input-types";
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { AstMigrationWithRelations, AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, CreateAstMigrationInput } from '../input-types';
10
10
  export declare class AstMigrationModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
@@ -26,7 +26,7 @@ export declare class AstMigrationModel {
26
26
  } & StrictSelect<S, AstMigrationSelect>): QueryBuilder<{
27
27
  astMigration: InferSelectResult<AstMigrationWithRelations, S> | null;
28
28
  }>;
29
- create<S extends AstMigrationSelect>(args: CreateArgs<S, CreateAstMigrationInput["astMigration"]> & {
29
+ create<S extends AstMigrationSelect>(args: CreateArgs<S, CreateAstMigrationInput['astMigration']> & {
30
30
  select: S;
31
31
  } & StrictSelect<S, AstMigrationSelect>): QueryBuilder<{
32
32
  createAstMigration: {
@@ -1,76 +1,76 @@
1
- import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument } from "../query-builder";
2
- import { connectionFieldsMap } from "../input-types";
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
3
  export class AstMigrationModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument("AstMigration", "astMigrations", args.select, {
9
+ const { document, variables } = buildFindManyDocument('AstMigration', 'astMigrations', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
13
13
  last: args?.last,
14
14
  after: args?.after,
15
15
  before: args?.before,
16
- offset: args?.offset
17
- }, "AstMigrationFilter", "AstMigrationOrderBy", connectionFieldsMap);
16
+ offset: args?.offset,
17
+ }, 'AstMigrationFilter', 'AstMigrationOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
- operation: "query",
21
- operationName: "AstMigration",
22
- fieldName: "astMigrations",
20
+ operation: 'query',
21
+ operationName: 'AstMigration',
22
+ fieldName: 'astMigrations',
23
23
  document,
24
- variables
24
+ variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument("AstMigration", "astMigrations", args.select, {
28
+ const { document, variables } = buildFindFirstDocument('AstMigration', 'astMigrations', args.select, {
29
29
  where: args?.where,
30
- orderBy: args?.orderBy
31
- }, "AstMigrationFilter", "AstMigrationOrderBy", connectionFieldsMap);
30
+ orderBy: args?.orderBy,
31
+ }, 'AstMigrationFilter', 'AstMigrationOrderBy', connectionFieldsMap);
32
32
  return new QueryBuilder({
33
33
  client: this.client,
34
- operation: "query",
35
- operationName: "AstMigration",
36
- fieldName: "astMigration",
34
+ operation: 'query',
35
+ operationName: 'AstMigration',
36
+ fieldName: 'astMigration',
37
37
  document,
38
38
  variables,
39
39
  transform: (data) => ({
40
- "astMigration": data.astMigrations?.nodes?.[0] ?? null
41
- })
40
+ astMigration: data.astMigrations?.nodes?.[0] ?? null,
41
+ }),
42
42
  });
43
43
  }
44
44
  findOne(args) {
45
- const { document, variables } = buildFindManyDocument("AstMigration", "astMigrations", args.select, {
45
+ const { document, variables } = buildFindManyDocument('AstMigration', 'astMigrations', args.select, {
46
46
  where: {
47
47
  id: {
48
- equalTo: args.id
49
- }
48
+ equalTo: args.id,
49
+ },
50
50
  },
51
- first: 1
52
- }, "AstMigrationFilter", "AstMigrationOrderBy", connectionFieldsMap);
51
+ first: 1,
52
+ }, 'AstMigrationFilter', 'AstMigrationOrderBy', connectionFieldsMap);
53
53
  return new QueryBuilder({
54
54
  client: this.client,
55
- operation: "query",
56
- operationName: "AstMigration",
57
- fieldName: "astMigration",
55
+ operation: 'query',
56
+ operationName: 'AstMigration',
57
+ fieldName: 'astMigration',
58
58
  document,
59
59
  variables,
60
60
  transform: (data) => ({
61
- "astMigration": data.astMigrations?.nodes?.[0] ?? null
62
- })
61
+ astMigration: data.astMigrations?.nodes?.[0] ?? null,
62
+ }),
63
63
  });
64
64
  }
65
65
  create(args) {
66
- const { document, variables } = buildCreateDocument("AstMigration", "createAstMigration", "astMigration", args.select, args.data, "CreateAstMigrationInput", connectionFieldsMap);
66
+ const { document, variables } = buildCreateDocument('AstMigration', 'createAstMigration', 'astMigration', args.select, args.data, 'CreateAstMigrationInput', connectionFieldsMap);
67
67
  return new QueryBuilder({
68
68
  client: this.client,
69
- operation: "mutation",
70
- operationName: "AstMigration",
71
- fieldName: "createAstMigration",
69
+ operation: 'mutation',
70
+ operationName: 'AstMigration',
71
+ fieldName: 'createAstMigration',
72
72
  document,
73
- variables
73
+ variables,
74
74
  });
75
75
  }
76
76
  }
@@ -3,5 +3,5 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- export { AstMigrationModel } from "./astMigration";
7
- export { SqlActionModel } from "./sqlAction";
6
+ export { AstMigrationModel } from './astMigration';
7
+ export { SqlActionModel } from './sqlAction';
@@ -3,5 +3,5 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- export { AstMigrationModel } from "./astMigration";
7
- export { SqlActionModel } from "./sqlAction";
6
+ export { AstMigrationModel } from './astMigration';
7
+ export { SqlActionModel } from './sqlAction';
@@ -3,10 +3,10 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { OrmClient } from "../client";
7
- import { QueryBuilder } from "../query-builder";
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from "../select-types";
9
- import type { SqlActionWithRelations, SqlActionSelect, SqlActionFilter, SqlActionOrderBy, CreateSqlActionInput } from "../input-types";
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { SqlActionWithRelations, SqlActionSelect, SqlActionFilter, SqlActionOrderBy, CreateSqlActionInput } from '../input-types';
10
10
  export declare class SqlActionModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
@@ -26,7 +26,7 @@ export declare class SqlActionModel {
26
26
  } & StrictSelect<S, SqlActionSelect>): QueryBuilder<{
27
27
  sqlAction: InferSelectResult<SqlActionWithRelations, S> | null;
28
28
  }>;
29
- create<S extends SqlActionSelect>(args: CreateArgs<S, CreateSqlActionInput["sqlAction"]> & {
29
+ create<S extends SqlActionSelect>(args: CreateArgs<S, CreateSqlActionInput['sqlAction']> & {
30
30
  select: S;
31
31
  } & StrictSelect<S, SqlActionSelect>): QueryBuilder<{
32
32
  createSqlAction: {
@@ -1,76 +1,76 @@
1
- import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument } from "../query-builder";
2
- import { connectionFieldsMap } from "../input-types";
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
3
  export class SqlActionModel {
4
4
  client;
5
5
  constructor(client) {
6
6
  this.client = client;
7
7
  }
8
8
  findMany(args) {
9
- const { document, variables } = buildFindManyDocument("SqlAction", "sqlActions", args.select, {
9
+ const { document, variables } = buildFindManyDocument('SqlAction', 'sqlActions', args.select, {
10
10
  where: args?.where,
11
11
  orderBy: args?.orderBy,
12
12
  first: args?.first,
13
13
  last: args?.last,
14
14
  after: args?.after,
15
15
  before: args?.before,
16
- offset: args?.offset
17
- }, "SqlActionFilter", "SqlActionOrderBy", connectionFieldsMap);
16
+ offset: args?.offset,
17
+ }, 'SqlActionFilter', 'SqlActionOrderBy', connectionFieldsMap);
18
18
  return new QueryBuilder({
19
19
  client: this.client,
20
- operation: "query",
21
- operationName: "SqlAction",
22
- fieldName: "sqlActions",
20
+ operation: 'query',
21
+ operationName: 'SqlAction',
22
+ fieldName: 'sqlActions',
23
23
  document,
24
- variables
24
+ variables,
25
25
  });
26
26
  }
27
27
  findFirst(args) {
28
- const { document, variables } = buildFindFirstDocument("SqlAction", "sqlActions", args.select, {
28
+ const { document, variables } = buildFindFirstDocument('SqlAction', 'sqlActions', args.select, {
29
29
  where: args?.where,
30
- orderBy: args?.orderBy
31
- }, "SqlActionFilter", "SqlActionOrderBy", connectionFieldsMap);
30
+ orderBy: args?.orderBy,
31
+ }, 'SqlActionFilter', 'SqlActionOrderBy', connectionFieldsMap);
32
32
  return new QueryBuilder({
33
33
  client: this.client,
34
- operation: "query",
35
- operationName: "SqlAction",
36
- fieldName: "sqlAction",
34
+ operation: 'query',
35
+ operationName: 'SqlAction',
36
+ fieldName: 'sqlAction',
37
37
  document,
38
38
  variables,
39
39
  transform: (data) => ({
40
- "sqlAction": data.sqlActions?.nodes?.[0] ?? null
41
- })
40
+ sqlAction: data.sqlActions?.nodes?.[0] ?? null,
41
+ }),
42
42
  });
43
43
  }
44
44
  findOne(args) {
45
- const { document, variables } = buildFindManyDocument("SqlAction", "sqlActions", args.select, {
45
+ const { document, variables } = buildFindManyDocument('SqlAction', 'sqlActions', args.select, {
46
46
  where: {
47
47
  id: {
48
- equalTo: args.id
49
- }
48
+ equalTo: args.id,
49
+ },
50
50
  },
51
- first: 1
52
- }, "SqlActionFilter", "SqlActionOrderBy", connectionFieldsMap);
51
+ first: 1,
52
+ }, 'SqlActionFilter', 'SqlActionOrderBy', connectionFieldsMap);
53
53
  return new QueryBuilder({
54
54
  client: this.client,
55
- operation: "query",
56
- operationName: "SqlAction",
57
- fieldName: "sqlAction",
55
+ operation: 'query',
56
+ operationName: 'SqlAction',
57
+ fieldName: 'sqlAction',
58
58
  document,
59
59
  variables,
60
60
  transform: (data) => ({
61
- "sqlAction": data.sqlActions?.nodes?.[0] ?? null
62
- })
61
+ sqlAction: data.sqlActions?.nodes?.[0] ?? null,
62
+ }),
63
63
  });
64
64
  }
65
65
  create(args) {
66
- const { document, variables } = buildCreateDocument("SqlAction", "createSqlAction", "sqlAction", args.select, args.data, "CreateSqlActionInput", connectionFieldsMap);
66
+ const { document, variables } = buildCreateDocument('SqlAction', 'createSqlAction', 'sqlAction', args.select, args.data, 'CreateSqlActionInput', connectionFieldsMap);
67
67
  return new QueryBuilder({
68
68
  client: this.client,
69
- operation: "mutation",
70
- operationName: "SqlAction",
71
- fieldName: "createSqlAction",
69
+ operation: 'mutation',
70
+ operationName: 'SqlAction',
71
+ fieldName: 'createSqlAction',
72
72
  document,
73
- variables
73
+ variables,
74
74
  });
75
75
  }
76
76
  }
@@ -3,10 +3,10 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { OrmClient } from "../client";
7
- import { QueryBuilder } from "../query-builder";
8
- import type { InferSelectResult, StrictSelect } from "../select-types";
9
- import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPayloadSelect } from "../input-types";
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  /**
11
11
  * Variables for provisionBucket
12
12
  * Provision an S3 bucket for a logical bucket in the database.
@@ -1,16 +1,18 @@
1
- import { QueryBuilder, buildCustomDocument } from "../query-builder";
2
- import { connectionFieldsMap } from "../input-types";
1
+ import { QueryBuilder, buildCustomDocument } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
3
  export function createMutationOperations(client) {
4
4
  return {
5
5
  provisionBucket: (args, options) => new QueryBuilder({
6
6
  client,
7
- operation: "mutation",
8
- operationName: "ProvisionBucket",
9
- fieldName: "provisionBucket",
10
- ...buildCustomDocument("mutation", "ProvisionBucket", "provisionBucket", options.select, args, [{
11
- name: "input",
12
- type: "ProvisionBucketInput!"
13
- }], connectionFieldsMap, "ProvisionBucketPayload")
14
- })
7
+ operation: 'mutation',
8
+ operationName: 'ProvisionBucket',
9
+ fieldName: 'provisionBucket',
10
+ ...buildCustomDocument('mutation', 'ProvisionBucket', 'provisionBucket', options.select, args, [
11
+ {
12
+ name: 'input',
13
+ type: 'ProvisionBucketInput!',
14
+ },
15
+ ], connectionFieldsMap, 'ProvisionBucketPayload'),
16
+ }),
15
17
  };
16
18
  }
@@ -78,9 +78,7 @@ export function buildSelections(select, connectionFieldsMap, entityType) {
78
78
  return [];
79
79
  }
80
80
  const fields = [];
81
- const entityConnections = entityType
82
- ? connectionFieldsMap?.[entityType]
83
- : undefined;
81
+ const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined;
84
82
  for (const [key, value] of Object.entries(select)) {
85
83
  if (value === false || value === undefined) {
86
84
  continue;
@@ -184,9 +182,7 @@ export function buildFindManyDocument(operationName, queryField, select, args, f
184
182
  t.operationDefinition({
185
183
  operation: OP_QUERY,
186
184
  name: operationName + 'Query',
187
- variableDefinitions: variableDefinitions.length
188
- ? variableDefinitions
189
- : undefined,
185
+ variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined,
190
186
  selectionSet: t.selectionSet({
191
187
  selections: [
192
188
  t.field({
@@ -437,9 +433,7 @@ export function buildCustomDocument(operationType, operationName, fieldName, sel
437
433
  name: definition.name,
438
434
  value: t.variable({ name: definition.name }),
439
435
  }));
440
- const fieldSelections = isConnection
441
- ? buildConnectionSelections(selections)
442
- : selections;
436
+ const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections;
443
437
  const document = t.document({
444
438
  definitions: [
445
439
  t.operationDefinition({
@@ -477,9 +471,7 @@ function isCustomSelectionWrapper(value) {
477
471
  if (keys.some((key) => key !== 'select' && key !== 'connection')) {
478
472
  return false;
479
473
  }
480
- return (!!record.select &&
481
- typeof record.select === 'object' &&
482
- !Array.isArray(record.select));
474
+ return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select);
483
475
  }
484
476
  // ============================================================================
485
477
  // Helper Functions
@@ -491,9 +483,7 @@ function buildOptionalArg(name, value) {
491
483
  if (value === undefined) {
492
484
  return null;
493
485
  }
494
- const valueNode = typeof value === 'number'
495
- ? t.intValue({ value: value.toString() })
496
- : t.stringValue({ value });
486
+ const valueNode = typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value });
497
487
  return t.argument({ name, value: valueNode });
498
488
  }
499
489
  function buildEnumListArg(name, values) {
@@ -2,4 +2,4 @@
2
2
  * GraphQL SDK - auto-generated, do not edit
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  */
5
- export * from "./orm";
5
+ export * from './orm';
@@ -39,9 +39,7 @@ class FetchAdapter {
39
39
  return {
40
40
  ok: false,
41
41
  data: null,
42
- errors: [
43
- { message: `HTTP ${response.status}: ${response.statusText}` },
44
- ],
42
+ errors: [{ message: `HTTP ${response.status}: ${response.statusText}` }],
45
43
  };
46
44
  }
47
45
  const json = (await response.json());
@@ -1,12 +1,12 @@
1
- import type { OrmClientConfig } from "./client";
2
- import { AstMigrationModel } from "./models/astMigration";
3
- import { SqlActionModel } from "./models/sqlAction";
4
- export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from "./client";
5
- export { GraphQLRequestError, FetchAdapter } from "./client";
6
- export { QueryBuilder } from "./query-builder";
7
- export * from "./select-types";
8
- export * from "./models";
9
- export { createMutationOperations } from "./mutation";
1
+ import type { OrmClientConfig } from './client';
2
+ import { AstMigrationModel } from './models/astMigration';
3
+ import { SqlActionModel } from './models/sqlAction';
4
+ export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
5
+ export { GraphQLRequestError, FetchAdapter } from './client';
6
+ export { QueryBuilder } from './query-builder';
7
+ export * from './select-types';
8
+ export * from './models';
9
+ export { createMutationOperations } from './mutation';
10
10
  /**
11
11
  * Create an ORM client instance
12
12
  *
@@ -62,6 +62,6 @@ function createClient(config) {
62
62
  return {
63
63
  astMigration: new astMigration_1.AstMigrationModel(client),
64
64
  sqlAction: new sqlAction_1.SqlActionModel(client),
65
- mutation: (0, mutation_1.createMutationOperations)(client)
65
+ mutation: (0, mutation_1.createMutationOperations)(client),
66
66
  };
67
67
  }
@@ -372,8 +372,8 @@ export interface SqlActionFilter {
372
372
  /** Filter by the object’s `verify` field. */
373
373
  verify?: StringFilter;
374
374
  }
375
- export type AstMigrationOrderBy = "ACTION_ID_ASC" | "ACTION_ID_DESC" | "ACTION_NAME_ASC" | "ACTION_NAME_DESC" | "ACTOR_ID_ASC" | "ACTOR_ID_DESC" | "CREATED_AT_ASC" | "CREATED_AT_DESC" | "DATABASE_ID_ASC" | "DATABASE_ID_DESC" | "DEPLOYS_ASC" | "DEPLOYS_DESC" | "DEPLOY_ASC" | "DEPLOY_DESC" | "ID_ASC" | "ID_DESC" | "NAME_ASC" | "NAME_DESC" | "NATURAL" | "PAYLOAD_ASC" | "PAYLOAD_DESC" | "REQUIRES_ASC" | "REQUIRES_DESC" | "REVERT_ASC" | "REVERT_DESC" | "VERIFY_ASC" | "VERIFY_DESC";
376
- export type SqlActionOrderBy = "ACTION_ID_ASC" | "ACTION_ID_DESC" | "ACTION_NAME_ASC" | "ACTION_NAME_DESC" | "ACTOR_ID_ASC" | "ACTOR_ID_DESC" | "CONTENT_ASC" | "CONTENT_DESC" | "CREATED_AT_ASC" | "CREATED_AT_DESC" | "DATABASE_ID_ASC" | "DATABASE_ID_DESC" | "DEPLOY_ASC" | "DEPLOY_DESC" | "DEPS_ASC" | "DEPS_DESC" | "ID_ASC" | "ID_DESC" | "NAME_ASC" | "NAME_DESC" | "NATURAL" | "PAYLOAD_ASC" | "PAYLOAD_DESC" | "REVERT_ASC" | "REVERT_DESC" | "VERIFY_ASC" | "VERIFY_DESC";
375
+ export type AstMigrationOrderBy = 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTION_NAME_ASC' | 'ACTION_NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOYS_ASC' | 'DEPLOYS_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'REQUIRES_ASC' | 'REQUIRES_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC';
376
+ export type SqlActionOrderBy = 'ACTION_ID_ASC' | 'ACTION_ID_DESC' | 'ACTION_NAME_ASC' | 'ACTION_NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEPLOY_ASC' | 'DEPLOY_DESC' | 'DEPS_ASC' | 'DEPS_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'REVERT_ASC' | 'REVERT_DESC' | 'VERIFY_ASC' | 'VERIFY_DESC';
377
377
  export interface CreateAstMigrationInput {
378
378
  clientMutationId?: string;
379
379
  astMigration: {
@@ -3,10 +3,10 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { OrmClient } from "../client";
7
- import { QueryBuilder } from "../query-builder";
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from "../select-types";
9
- import type { AstMigrationWithRelations, AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, CreateAstMigrationInput } from "../input-types";
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { AstMigrationWithRelations, AstMigrationSelect, AstMigrationFilter, AstMigrationOrderBy, CreateAstMigrationInput } from '../input-types';
10
10
  export declare class AstMigrationModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
@@ -26,7 +26,7 @@ export declare class AstMigrationModel {
26
26
  } & StrictSelect<S, AstMigrationSelect>): QueryBuilder<{
27
27
  astMigration: InferSelectResult<AstMigrationWithRelations, S> | null;
28
28
  }>;
29
- create<S extends AstMigrationSelect>(args: CreateArgs<S, CreateAstMigrationInput["astMigration"]> & {
29
+ create<S extends AstMigrationSelect>(args: CreateArgs<S, CreateAstMigrationInput['astMigration']> & {
30
30
  select: S;
31
31
  } & StrictSelect<S, AstMigrationSelect>): QueryBuilder<{
32
32
  createAstMigration: {
@@ -9,71 +9,71 @@ class AstMigrationModel {
9
9
  this.client = client;
10
10
  }
11
11
  findMany(args) {
12
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)("AstMigration", "astMigrations", args.select, {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AstMigration', 'astMigrations', args.select, {
13
13
  where: args?.where,
14
14
  orderBy: args?.orderBy,
15
15
  first: args?.first,
16
16
  last: args?.last,
17
17
  after: args?.after,
18
18
  before: args?.before,
19
- offset: args?.offset
20
- }, "AstMigrationFilter", "AstMigrationOrderBy", input_types_1.connectionFieldsMap);
19
+ offset: args?.offset,
20
+ }, 'AstMigrationFilter', 'AstMigrationOrderBy', input_types_1.connectionFieldsMap);
21
21
  return new query_builder_1.QueryBuilder({
22
22
  client: this.client,
23
- operation: "query",
24
- operationName: "AstMigration",
25
- fieldName: "astMigrations",
23
+ operation: 'query',
24
+ operationName: 'AstMigration',
25
+ fieldName: 'astMigrations',
26
26
  document,
27
- variables
27
+ variables,
28
28
  });
29
29
  }
30
30
  findFirst(args) {
31
- const { document, variables } = (0, query_builder_1.buildFindFirstDocument)("AstMigration", "astMigrations", args.select, {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('AstMigration', 'astMigrations', args.select, {
32
32
  where: args?.where,
33
- orderBy: args?.orderBy
34
- }, "AstMigrationFilter", "AstMigrationOrderBy", input_types_1.connectionFieldsMap);
33
+ orderBy: args?.orderBy,
34
+ }, 'AstMigrationFilter', 'AstMigrationOrderBy', input_types_1.connectionFieldsMap);
35
35
  return new query_builder_1.QueryBuilder({
36
36
  client: this.client,
37
- operation: "query",
38
- operationName: "AstMigration",
39
- fieldName: "astMigration",
37
+ operation: 'query',
38
+ operationName: 'AstMigration',
39
+ fieldName: 'astMigration',
40
40
  document,
41
41
  variables,
42
42
  transform: (data) => ({
43
- "astMigration": data.astMigrations?.nodes?.[0] ?? null
44
- })
43
+ astMigration: data.astMigrations?.nodes?.[0] ?? null,
44
+ }),
45
45
  });
46
46
  }
47
47
  findOne(args) {
48
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)("AstMigration", "astMigrations", args.select, {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('AstMigration', 'astMigrations', args.select, {
49
49
  where: {
50
50
  id: {
51
- equalTo: args.id
52
- }
51
+ equalTo: args.id,
52
+ },
53
53
  },
54
- first: 1
55
- }, "AstMigrationFilter", "AstMigrationOrderBy", input_types_1.connectionFieldsMap);
54
+ first: 1,
55
+ }, 'AstMigrationFilter', 'AstMigrationOrderBy', input_types_1.connectionFieldsMap);
56
56
  return new query_builder_1.QueryBuilder({
57
57
  client: this.client,
58
- operation: "query",
59
- operationName: "AstMigration",
60
- fieldName: "astMigration",
58
+ operation: 'query',
59
+ operationName: 'AstMigration',
60
+ fieldName: 'astMigration',
61
61
  document,
62
62
  variables,
63
63
  transform: (data) => ({
64
- "astMigration": data.astMigrations?.nodes?.[0] ?? null
65
- })
64
+ astMigration: data.astMigrations?.nodes?.[0] ?? null,
65
+ }),
66
66
  });
67
67
  }
68
68
  create(args) {
69
- const { document, variables } = (0, query_builder_1.buildCreateDocument)("AstMigration", "createAstMigration", "astMigration", args.select, args.data, "CreateAstMigrationInput", input_types_1.connectionFieldsMap);
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('AstMigration', 'createAstMigration', 'astMigration', args.select, args.data, 'CreateAstMigrationInput', input_types_1.connectionFieldsMap);
70
70
  return new query_builder_1.QueryBuilder({
71
71
  client: this.client,
72
- operation: "mutation",
73
- operationName: "AstMigration",
74
- fieldName: "createAstMigration",
72
+ operation: 'mutation',
73
+ operationName: 'AstMigration',
74
+ fieldName: 'createAstMigration',
75
75
  document,
76
- variables
76
+ variables,
77
77
  });
78
78
  }
79
79
  }
@@ -3,5 +3,5 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- export { AstMigrationModel } from "./astMigration";
7
- export { SqlActionModel } from "./sqlAction";
6
+ export { AstMigrationModel } from './astMigration';
7
+ export { SqlActionModel } from './sqlAction';
@@ -3,10 +3,10 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { OrmClient } from "../client";
7
- import { QueryBuilder } from "../query-builder";
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from "../select-types";
9
- import type { SqlActionWithRelations, SqlActionSelect, SqlActionFilter, SqlActionOrderBy, CreateSqlActionInput } from "../input-types";
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { SqlActionWithRelations, SqlActionSelect, SqlActionFilter, SqlActionOrderBy, CreateSqlActionInput } from '../input-types';
10
10
  export declare class SqlActionModel {
11
11
  private client;
12
12
  constructor(client: OrmClient);
@@ -26,7 +26,7 @@ export declare class SqlActionModel {
26
26
  } & StrictSelect<S, SqlActionSelect>): QueryBuilder<{
27
27
  sqlAction: InferSelectResult<SqlActionWithRelations, S> | null;
28
28
  }>;
29
- create<S extends SqlActionSelect>(args: CreateArgs<S, CreateSqlActionInput["sqlAction"]> & {
29
+ create<S extends SqlActionSelect>(args: CreateArgs<S, CreateSqlActionInput['sqlAction']> & {
30
30
  select: S;
31
31
  } & StrictSelect<S, SqlActionSelect>): QueryBuilder<{
32
32
  createSqlAction: {
@@ -9,71 +9,71 @@ class SqlActionModel {
9
9
  this.client = client;
10
10
  }
11
11
  findMany(args) {
12
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)("SqlAction", "sqlActions", args.select, {
12
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SqlAction', 'sqlActions', args.select, {
13
13
  where: args?.where,
14
14
  orderBy: args?.orderBy,
15
15
  first: args?.first,
16
16
  last: args?.last,
17
17
  after: args?.after,
18
18
  before: args?.before,
19
- offset: args?.offset
20
- }, "SqlActionFilter", "SqlActionOrderBy", input_types_1.connectionFieldsMap);
19
+ offset: args?.offset,
20
+ }, 'SqlActionFilter', 'SqlActionOrderBy', input_types_1.connectionFieldsMap);
21
21
  return new query_builder_1.QueryBuilder({
22
22
  client: this.client,
23
- operation: "query",
24
- operationName: "SqlAction",
25
- fieldName: "sqlActions",
23
+ operation: 'query',
24
+ operationName: 'SqlAction',
25
+ fieldName: 'sqlActions',
26
26
  document,
27
- variables
27
+ variables,
28
28
  });
29
29
  }
30
30
  findFirst(args) {
31
- const { document, variables } = (0, query_builder_1.buildFindFirstDocument)("SqlAction", "sqlActions", args.select, {
31
+ const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('SqlAction', 'sqlActions', args.select, {
32
32
  where: args?.where,
33
- orderBy: args?.orderBy
34
- }, "SqlActionFilter", "SqlActionOrderBy", input_types_1.connectionFieldsMap);
33
+ orderBy: args?.orderBy,
34
+ }, 'SqlActionFilter', 'SqlActionOrderBy', input_types_1.connectionFieldsMap);
35
35
  return new query_builder_1.QueryBuilder({
36
36
  client: this.client,
37
- operation: "query",
38
- operationName: "SqlAction",
39
- fieldName: "sqlAction",
37
+ operation: 'query',
38
+ operationName: 'SqlAction',
39
+ fieldName: 'sqlAction',
40
40
  document,
41
41
  variables,
42
42
  transform: (data) => ({
43
- "sqlAction": data.sqlActions?.nodes?.[0] ?? null
44
- })
43
+ sqlAction: data.sqlActions?.nodes?.[0] ?? null,
44
+ }),
45
45
  });
46
46
  }
47
47
  findOne(args) {
48
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)("SqlAction", "sqlActions", args.select, {
48
+ const { document, variables } = (0, query_builder_1.buildFindManyDocument)('SqlAction', 'sqlActions', args.select, {
49
49
  where: {
50
50
  id: {
51
- equalTo: args.id
52
- }
51
+ equalTo: args.id,
52
+ },
53
53
  },
54
- first: 1
55
- }, "SqlActionFilter", "SqlActionOrderBy", input_types_1.connectionFieldsMap);
54
+ first: 1,
55
+ }, 'SqlActionFilter', 'SqlActionOrderBy', input_types_1.connectionFieldsMap);
56
56
  return new query_builder_1.QueryBuilder({
57
57
  client: this.client,
58
- operation: "query",
59
- operationName: "SqlAction",
60
- fieldName: "sqlAction",
58
+ operation: 'query',
59
+ operationName: 'SqlAction',
60
+ fieldName: 'sqlAction',
61
61
  document,
62
62
  variables,
63
63
  transform: (data) => ({
64
- "sqlAction": data.sqlActions?.nodes?.[0] ?? null
65
- })
64
+ sqlAction: data.sqlActions?.nodes?.[0] ?? null,
65
+ }),
66
66
  });
67
67
  }
68
68
  create(args) {
69
- const { document, variables } = (0, query_builder_1.buildCreateDocument)("SqlAction", "createSqlAction", "sqlAction", args.select, args.data, "CreateSqlActionInput", input_types_1.connectionFieldsMap);
69
+ const { document, variables } = (0, query_builder_1.buildCreateDocument)('SqlAction', 'createSqlAction', 'sqlAction', args.select, args.data, 'CreateSqlActionInput', input_types_1.connectionFieldsMap);
70
70
  return new query_builder_1.QueryBuilder({
71
71
  client: this.client,
72
- operation: "mutation",
73
- operationName: "SqlAction",
74
- fieldName: "createSqlAction",
72
+ operation: 'mutation',
73
+ operationName: 'SqlAction',
74
+ fieldName: 'createSqlAction',
75
75
  document,
76
- variables
76
+ variables,
77
77
  });
78
78
  }
79
79
  }
@@ -3,10 +3,10 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { OrmClient } from "../client";
7
- import { QueryBuilder } from "../query-builder";
8
- import type { InferSelectResult, StrictSelect } from "../select-types";
9
- import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPayloadSelect } from "../input-types";
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  /**
11
11
  * Variables for provisionBucket
12
12
  * Provision an S3 bucket for a logical bucket in the database.
@@ -7,13 +7,15 @@ function createMutationOperations(client) {
7
7
  return {
8
8
  provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
9
9
  client,
10
- operation: "mutation",
11
- operationName: "ProvisionBucket",
12
- fieldName: "provisionBucket",
13
- ...(0, query_builder_1.buildCustomDocument)("mutation", "ProvisionBucket", "provisionBucket", options.select, args, [{
14
- name: "input",
15
- type: "ProvisionBucketInput!"
16
- }], input_types_1.connectionFieldsMap, "ProvisionBucketPayload")
17
- })
10
+ operation: 'mutation',
11
+ operationName: 'ProvisionBucket',
12
+ fieldName: 'provisionBucket',
13
+ ...(0, query_builder_1.buildCustomDocument)('mutation', 'ProvisionBucket', 'provisionBucket', options.select, args, [
14
+ {
15
+ name: 'input',
16
+ type: 'ProvisionBucketInput!',
17
+ },
18
+ ], input_types_1.connectionFieldsMap, 'ProvisionBucketPayload'),
19
+ }),
18
20
  };
19
21
  }
@@ -130,9 +130,7 @@ function buildSelections(select, connectionFieldsMap, entityType) {
130
130
  return [];
131
131
  }
132
132
  const fields = [];
133
- const entityConnections = entityType
134
- ? connectionFieldsMap?.[entityType]
135
- : undefined;
133
+ const entityConnections = entityType ? connectionFieldsMap?.[entityType] : undefined;
136
134
  for (const [key, value] of Object.entries(select)) {
137
135
  if (value === false || value === undefined) {
138
136
  continue;
@@ -236,9 +234,7 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
236
234
  t.operationDefinition({
237
235
  operation: OP_QUERY,
238
236
  name: operationName + 'Query',
239
- variableDefinitions: variableDefinitions.length
240
- ? variableDefinitions
241
- : undefined,
237
+ variableDefinitions: variableDefinitions.length ? variableDefinitions : undefined,
242
238
  selectionSet: t.selectionSet({
243
239
  selections: [
244
240
  t.field({
@@ -489,9 +485,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
489
485
  name: definition.name,
490
486
  value: t.variable({ name: definition.name }),
491
487
  }));
492
- const fieldSelections = isConnection
493
- ? buildConnectionSelections(selections)
494
- : selections;
488
+ const fieldSelections = isConnection ? buildConnectionSelections(selections) : selections;
495
489
  const document = t.document({
496
490
  definitions: [
497
491
  t.operationDefinition({
@@ -529,9 +523,7 @@ function isCustomSelectionWrapper(value) {
529
523
  if (keys.some((key) => key !== 'select' && key !== 'connection')) {
530
524
  return false;
531
525
  }
532
- return (!!record.select &&
533
- typeof record.select === 'object' &&
534
- !Array.isArray(record.select));
526
+ return !!record.select && typeof record.select === 'object' && !Array.isArray(record.select);
535
527
  }
536
528
  // ============================================================================
537
529
  // Helper Functions
@@ -543,9 +535,7 @@ function buildOptionalArg(name, value) {
543
535
  if (value === undefined) {
544
536
  return null;
545
537
  }
546
- const valueNode = typeof value === 'number'
547
- ? t.intValue({ value: value.toString() })
548
- : t.stringValue({ value });
538
+ const valueNode = typeof value === 'number' ? t.intValue({ value: value.toString() }) : t.stringValue({ value });
549
539
  return t.argument({ name, value: valueNode });
550
540
  }
551
541
  function buildEnumListArg(name, values) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/migrate-client",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Typed GraphQL ORM client for the Constructive Migrate API (db_migrate schema)",
6
6
  "main": "index.js",
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@0no-co/graphql.web": "^1.1.2",
43
- "@constructive-io/graphql-query": "^4.1.2",
43
+ "@constructive-io/graphql-query": "^4.1.3",
44
44
  "@constructive-io/graphql-types": "^3.18.2",
45
45
  "gql-ast": "^3.14.2",
46
46
  "graphql": "16.13.0"
@@ -50,5 +50,5 @@
50
50
  "makage": "^0.3.0",
51
51
  "typescript": "^5.9.3"
52
52
  },
53
- "gitHead": "08741ce3a6897192c2dbc7d1da48b9f456ffb59f"
53
+ "gitHead": "0e3ee42c44c9b35ffac4bf1faa6775eb69311ec4"
54
54
  }