diff --git a/examples/01-simple-model/generated/binding.ts b/examples/01-simple-model/generated/binding.ts index 8abcd372..8a1eabf1 100644 --- a/examples/01-simple-model/generated/binding.ts +++ b/examples/01-simple-model/generated/binding.ts @@ -210,6 +210,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface StandardDeleteResponse { id: ID_Output } diff --git a/examples/01-simple-model/generated/schema.graphql b/examples/01-simple-model/generated/schema.graphql index 62e9adf5..da62a444 100644 --- a/examples/01-simple-model/generated/schema.graphql +++ b/examples/01-simple-model/generated/schema.graphql @@ -70,6 +70,14 @@ type Mutation { deleteUser(where: UserWhereUniqueInput!): StandardDeleteResponse! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Query { users(offset: Int, limit: Int = 50, where: UserWhereInput, orderBy: UserOrderByInput): [User!]! user(where: UserWhereUniqueInput!): User! diff --git a/examples/01-simple-model/package.json b/examples/01-simple-model/package.json index cdb45cdc..9053d234 100644 --- a/examples/01-simple-model/package.json +++ b/examples/01-simple-model/package.json @@ -20,7 +20,7 @@ "@types/isomorphic-fetch": "^0.0.34", "@types/node": "^10.17.5", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1", + "ts-node": "^8.10.2", "ts-node-dev": "^1.0.0-pre.44" } } diff --git a/examples/01-simple-model/yarn.lock b/examples/01-simple-model/yarn.lock index 57f342f5..034755f9 100644 --- a/examples/01-simple-model/yarn.lock +++ b/examples/01-simple-model/yarn.lock @@ -32,11 +32,6 @@ array-find-index@^1.0.1: resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= -arrify@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= - balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" @@ -57,7 +52,7 @@ bs-logger@0.x: dependencies: fast-json-stable-stringify "2.x" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -110,11 +105,6 @@ decamelize@^1.1.2: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= -diff@^3.1.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" - integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== - diff@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.1.tgz#0c667cb467ebbb5cea7f14f135cc2dba7780a8ff" @@ -471,6 +461,14 @@ source-map-support@^0.5.12, source-map-support@^0.5.6: buffer-from "^1.0.0" source-map "^0.6.0" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map@^0.6.0: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" @@ -580,19 +578,16 @@ ts-node@*: source-map-support "^0.5.6" yn "^3.0.0" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tsconfig@^7.0.0: version "7.0.0" @@ -636,12 +631,7 @@ yargs-parser@10.x: dependencies: camelcase "^4.1.0" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= - -yn@^3.0.0: +yn@3.1.1, yn@^3.0.0: version "3.1.1" - resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/02-complex-example/generated/binding.ts b/examples/02-complex-example/generated/binding.ts index b330fa61..9dad4a55 100644 --- a/examples/02-complex-example/generated/binding.ts +++ b/examples/02-complex-example/generated/binding.ts @@ -147,7 +147,7 @@ export interface UserCreateInput { bigIntField?: Float | null jsonField?: JSONObject | null jsonFieldNoFilter?: JSONObject | null - stringField?: String | null + stringField: String noFilterField?: String | null noSortField?: String | null noFilterOrSortField?: String | null @@ -466,7 +466,7 @@ export interface User extends BaseGraphQLObject { bigIntField?: Int | null jsonField?: JSONObject | null jsonFieldNoFilter?: JSONObject | null - stringField?: String | null + stringField: String noFilterField?: String | null noSortField?: String | null noFilterOrSortField?: String | null diff --git a/examples/02-complex-example/generated/classes.ts b/examples/02-complex-example/generated/classes.ts index dc95fa62..8f3cc055 100644 --- a/examples/02-complex-example/generated/classes.ts +++ b/examples/02-complex-example/generated/classes.ts @@ -711,8 +711,8 @@ export class UserCreateInput { @TypeGraphQLField(() => GraphQLJSONObject, { nullable: true }) jsonFieldNoFilter?: JsonObject; - @TypeGraphQLField({ nullable: true }) - stringField?: string; + @TypeGraphQLField() + stringField!: string; @TypeGraphQLField({ nullable: true }) noFilterField?: string; diff --git a/examples/02-complex-example/generated/schema.graphql b/examples/02-complex-example/generated/schema.graphql index 697c5d3f..8846f76b 100644 --- a/examples/02-complex-example/generated/schema.graphql +++ b/examples/02-complex-example/generated/schema.graphql @@ -120,7 +120,7 @@ type User implements BaseGraphQLObject { jsonFieldNoFilter: JSONObject """This is a string field""" - stringField: String + stringField: String! noFilterField: String noSortField: String noFilterOrSortField: String @@ -157,7 +157,7 @@ input UserCreateInput { bigIntField: Float jsonField: JSONObject jsonFieldNoFilter: JSONObject - stringField: String + stringField: String! noFilterField: String noSortField: String noFilterOrSortField: String diff --git a/examples/02-complex-example/package.json b/examples/02-complex-example/package.json index 3420f1c5..46f2a6f7 100644 --- a/examples/02-complex-example/package.json +++ b/examples/02-complex-example/package.json @@ -32,7 +32,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1" + "ts-node": "^8.10.2" }, "jest": { "transform": { diff --git a/examples/02-complex-example/yarn.lock b/examples/02-complex-example/yarn.lock index 673a71a4..a9b9bdb5 100644 --- a/examples/02-complex-example/yarn.lock +++ b/examples/02-complex-example/yarn.lock @@ -136,6 +136,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -180,7 +185,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -484,7 +489,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -797,11 +802,16 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + domexception@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -3180,6 +3190,14 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-support@^0.5.6: version "0.5.16" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" @@ -3489,19 +3507,16 @@ ts-jest@^23.10.5: semver "^5.5" yargs-parser "10.x" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tunnel-agent@^0.6.0: version "0.6.0" @@ -3767,7 +3782,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/03-one-to-many-relationship/generated/binding.ts b/examples/03-one-to-many-relationship/generated/binding.ts index 86ea125e..c9d376f0 100644 --- a/examples/03-one-to-many-relationship/generated/binding.ts +++ b/examples/03-one-to-many-relationship/generated/binding.ts @@ -220,6 +220,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface Post extends BaseGraphQLObject { id: ID_Output createdAt: DateTime @@ -261,6 +269,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/03-one-to-many-relationship/generated/schema.graphql b/examples/03-one-to-many-relationship/generated/schema.graphql index 36e04b96..b2c8a00e 100644 --- a/examples/03-one-to-many-relationship/generated/schema.graphql +++ b/examples/03-one-to-many-relationship/generated/schema.graphql @@ -73,6 +73,14 @@ type Mutation { deleteUser(where: UserWhereUniqueInput!): StandardDeleteResponse! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Post implements BaseGraphQLObject { id: ID! createdAt: DateTime! diff --git a/examples/03-one-to-many-relationship/package.json b/examples/03-one-to-many-relationship/package.json index 713b2380..e4f8dbaf 100644 --- a/examples/03-one-to-many-relationship/package.json +++ b/examples/03-one-to-many-relationship/package.json @@ -27,7 +27,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1" + "ts-node": "^8.10.2" }, "jest": { "transform": { diff --git a/examples/03-one-to-many-relationship/yarn.lock b/examples/03-one-to-many-relationship/yarn.lock index 8ae8ef53..9faa281a 100644 --- a/examples/03-one-to-many-relationship/yarn.lock +++ b/examples/03-one-to-many-relationship/yarn.lock @@ -136,6 +136,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -180,7 +185,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -484,7 +489,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -790,11 +795,16 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + domexception@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -3173,6 +3183,14 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-support@^0.5.6: version "0.5.16" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" @@ -3482,19 +3500,16 @@ ts-jest@^23.10.5: semver "^5.5" yargs-parser "10.x" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tunnel-agent@^0.6.0: version "0.6.0" @@ -3760,7 +3775,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/04-many-to-many-relationship/generated/binding.ts b/examples/04-many-to-many-relationship/generated/binding.ts index e3e3a07c..1955219e 100644 --- a/examples/04-many-to-many-relationship/generated/binding.ts +++ b/examples/04-many-to-many-relationship/generated/binding.ts @@ -389,6 +389,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface Post extends BaseGraphQLObject { id: ID_Output createdAt: DateTime @@ -459,6 +467,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/04-many-to-many-relationship/generated/schema.graphql b/examples/04-many-to-many-relationship/generated/schema.graphql index 3f8530ee..ba24a394 100644 --- a/examples/04-many-to-many-relationship/generated/schema.graphql +++ b/examples/04-many-to-many-relationship/generated/schema.graphql @@ -141,6 +141,14 @@ type Mutation { createPost(data: PostCreateInput!): Post! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Post implements BaseGraphQLObject { id: ID! createdAt: DateTime! diff --git a/examples/04-many-to-many-relationship/package.json b/examples/04-many-to-many-relationship/package.json index c6c39863..24e4685c 100644 --- a/examples/04-many-to-many-relationship/package.json +++ b/examples/04-many-to-many-relationship/package.json @@ -27,7 +27,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1" + "ts-node": "^8.10.2" }, "jest": { "transform": { diff --git a/examples/04-many-to-many-relationship/yarn.lock b/examples/04-many-to-many-relationship/yarn.lock index 8ae8ef53..9faa281a 100644 --- a/examples/04-many-to-many-relationship/yarn.lock +++ b/examples/04-many-to-many-relationship/yarn.lock @@ -136,6 +136,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -180,7 +185,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -484,7 +489,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -790,11 +795,16 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + domexception@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -3173,6 +3183,14 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-support@^0.5.6: version "0.5.16" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" @@ -3482,19 +3500,16 @@ ts-jest@^23.10.5: semver "^5.5" yargs-parser "10.x" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tunnel-agent@^0.6.0: version "0.6.0" @@ -3760,7 +3775,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/05-migrations/generated/binding.ts b/examples/05-migrations/generated/binding.ts index 61ed846f..3a711906 100644 --- a/examples/05-migrations/generated/binding.ts +++ b/examples/05-migrations/generated/binding.ts @@ -170,6 +170,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface StandardDeleteResponse { id: ID_Output } @@ -198,6 +206,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/05-migrations/generated/schema.graphql b/examples/05-migrations/generated/schema.graphql index b68ded31..b75608ff 100644 --- a/examples/05-migrations/generated/schema.graphql +++ b/examples/05-migrations/generated/schema.graphql @@ -64,6 +64,14 @@ interface DeleteResponse { id: ID! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Query { users(offset: Int, limit: Int = 50, where: UserWhereInput, orderBy: UserOrderByInput): [User!]! } diff --git a/examples/05-migrations/package.json b/examples/05-migrations/package.json index 3e3799a4..9fbd8bda 100644 --- a/examples/05-migrations/package.json +++ b/examples/05-migrations/package.json @@ -32,7 +32,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1", + "ts-node": "^8.10.2", "ts-node-dev": "^1.0.0-pre.44" }, "jest": { diff --git a/examples/05-migrations/yarn.lock b/examples/05-migrations/yarn.lock index c0e62736..39b714d7 100644 --- a/examples/05-migrations/yarn.lock +++ b/examples/05-migrations/yarn.lock @@ -200,7 +200,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -504,7 +504,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -843,7 +843,7 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== @@ -3302,6 +3302,14 @@ source-map-support@^0.5.12, source-map-support@^0.5.6: buffer-from "^1.0.0" source-map "^0.6.0" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-url@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" @@ -3649,19 +3657,16 @@ ts-node@*: source-map-support "^0.5.6" yn "^3.0.0" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tsconfig@^7.0.0: version "7.0.0" @@ -3942,12 +3947,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= - -yn@^3.0.0: +yn@3.1.1, yn@^3.0.0: version "3.1.1" - resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/06-base-service/generated/binding.ts b/examples/06-base-service/generated/binding.ts index 8856d181..99d191c8 100644 --- a/examples/06-base-service/generated/binding.ts +++ b/examples/06-base-service/generated/binding.ts @@ -165,6 +165,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface StandardDeleteResponse { id: ID_Output } @@ -192,6 +200,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/06-base-service/generated/schema.graphql b/examples/06-base-service/generated/schema.graphql index 2815ff1a..e1d49380 100644 --- a/examples/06-base-service/generated/schema.graphql +++ b/examples/06-base-service/generated/schema.graphql @@ -70,6 +70,14 @@ type Mutation { deleteUser(where: UserWhereUniqueInput!): StandardDeleteResponse! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Query { users(offset: Int, limit: Int = 50, where: UserWhereInput, orderBy: UserOrderByInput): [User!]! user(where: UserWhereUniqueInput!): User! diff --git a/examples/06-base-service/package.json b/examples/06-base-service/package.json index 18a4e535..3fbfeade 100644 --- a/examples/06-base-service/package.json +++ b/examples/06-base-service/package.json @@ -32,7 +32,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1" + "ts-node": "^8.10.2" }, "jest": { "transform": { diff --git a/examples/06-base-service/yarn.lock b/examples/06-base-service/yarn.lock index 673a71a4..a9b9bdb5 100644 --- a/examples/06-base-service/yarn.lock +++ b/examples/06-base-service/yarn.lock @@ -136,6 +136,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -180,7 +185,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -484,7 +489,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -797,11 +802,16 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + domexception@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -3180,6 +3190,14 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-support@^0.5.6: version "0.5.16" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" @@ -3489,19 +3507,16 @@ ts-jest@^23.10.5: semver "^5.5" yargs-parser "10.x" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tunnel-agent@^0.6.0: version "0.6.0" @@ -3767,7 +3782,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/07-feature-flags/generated/binding.ts b/examples/07-feature-flags/generated/binding.ts index 533ffc78..24ed042e 100644 --- a/examples/07-feature-flags/generated/binding.ts +++ b/examples/07-feature-flags/generated/binding.ts @@ -900,6 +900,14 @@ export interface FeatureFlagUser extends BaseGraphQLObject { environmentId?: String | null } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface Project extends BaseGraphQLObject { id: ID_Output createdAt: DateTime @@ -992,6 +1000,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/07-feature-flags/generated/schema.graphql b/examples/07-feature-flags/generated/schema.graphql index 8f2e2a90..2158a56a 100644 --- a/examples/07-feature-flags/generated/schema.graphql +++ b/examples/07-feature-flags/generated/schema.graphql @@ -548,6 +548,14 @@ type Mutation { deleteUserSegment(where: UserSegmentWhereUniqueInput!): StandardDeleteResponse! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Project implements BaseGraphQLObject { id: ID! createdAt: DateTime! diff --git a/examples/07-feature-flags/package.json b/examples/07-feature-flags/package.json index 381a2ef8..45fe12c5 100644 --- a/examples/07-feature-flags/package.json +++ b/examples/07-feature-flags/package.json @@ -24,7 +24,7 @@ "@types/jest": "^23.3.14", "@types/node": "^10.17.5", "jest": "^23.6.0", - "ts-node": "^7.0.1" + "ts-node": "^8.10.2" }, "jest": { "transform": { diff --git a/examples/07-feature-flags/yarn.lock b/examples/07-feature-flags/yarn.lock index a37fe1e3..ceb8f17f 100644 --- a/examples/07-feature-flags/yarn.lock +++ b/examples/07-feature-flags/yarn.lock @@ -136,6 +136,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -180,7 +185,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -477,7 +482,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -783,11 +788,16 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + domexception@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -3149,6 +3159,14 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-support@^0.5.6: version "0.5.16" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" @@ -3443,19 +3461,16 @@ trim-right@^1.0.1: resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tunnel-agent@^0.6.0: version "0.6.0" @@ -3709,7 +3724,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/08-performance/generated/binding.ts b/examples/08-performance/generated/binding.ts index b9fdd779..1093a230 100644 --- a/examples/08-performance/generated/binding.ts +++ b/examples/08-performance/generated/binding.ts @@ -223,6 +223,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface Post extends BaseGraphQLObject { id: ID_Output createdAt: DateTime @@ -264,6 +272,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/08-performance/generated/schema.graphql b/examples/08-performance/generated/schema.graphql index 9c67d245..dd64745d 100644 --- a/examples/08-performance/generated/schema.graphql +++ b/examples/08-performance/generated/schema.graphql @@ -74,6 +74,14 @@ type Mutation { deleteUser(where: UserWhereUniqueInput!): StandardDeleteResponse! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Post implements BaseGraphQLObject { id: ID! createdAt: DateTime! diff --git a/examples/08-performance/package.json b/examples/08-performance/package.json index 7e25273d..6f9f94c9 100644 --- a/examples/08-performance/package.json +++ b/examples/08-performance/package.json @@ -28,7 +28,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1" + "ts-node": "^8.10.2" }, "jest": { "transform": { diff --git a/examples/08-performance/yarn.lock b/examples/08-performance/yarn.lock index 8ae8ef53..9faa281a 100644 --- a/examples/08-performance/yarn.lock +++ b/examples/08-performance/yarn.lock @@ -136,6 +136,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -180,7 +185,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -484,7 +489,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -790,11 +795,16 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + domexception@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -3173,6 +3183,14 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-support@^0.5.6: version "0.5.16" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" @@ -3482,19 +3500,16 @@ ts-jest@^23.10.5: semver "^5.5" yargs-parser "10.x" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tunnel-agent@^0.6.0: version "0.6.0" @@ -3760,7 +3775,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/09-production/generated/binding.ts b/examples/09-production/generated/binding.ts index 18806874..8f1910fa 100644 --- a/examples/09-production/generated/binding.ts +++ b/examples/09-production/generated/binding.ts @@ -221,6 +221,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface Post extends BaseGraphQLObject { id: ID_Output createdAt: DateTime @@ -262,6 +270,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/09-production/generated/schema.graphql b/examples/09-production/generated/schema.graphql index a015a5c3..ba66f327 100644 --- a/examples/09-production/generated/schema.graphql +++ b/examples/09-production/generated/schema.graphql @@ -74,6 +74,14 @@ type Mutation { deleteUser(where: UserWhereUniqueInput!): StandardDeleteResponse! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Post implements BaseGraphQLObject { id: ID! createdAt: DateTime! diff --git a/examples/09-production/package.json b/examples/09-production/package.json index dfac1e4c..753c977e 100644 --- a/examples/09-production/package.json +++ b/examples/09-production/package.json @@ -28,7 +28,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1" + "ts-node": "^8.10.2" }, "jest": { "transform": { diff --git a/examples/09-production/yarn.lock b/examples/09-production/yarn.lock index 8ae8ef53..9faa281a 100644 --- a/examples/09-production/yarn.lock +++ b/examples/09-production/yarn.lock @@ -136,6 +136,11 @@ are-we-there-yet@~1.1.2: delegates "^1.0.0" readable-stream "^2.0.6" +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + argparse@^1.0.7: version "1.0.10" resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" @@ -180,7 +185,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -484,7 +489,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -790,11 +795,16 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + domexception@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" @@ -3173,6 +3183,14 @@ source-map-support@^0.4.15: dependencies: source-map "^0.5.6" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-support@^0.5.6: version "0.5.16" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042" @@ -3482,19 +3500,16 @@ ts-jest@^23.10.5: semver "^5.5" yargs-parser "10.x" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tunnel-agent@^0.6.0: version "0.6.0" @@ -3760,7 +3775,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= +yn@3.1.1: + version "3.1.1" + resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/10-subscriptions/generated/binding.ts b/examples/10-subscriptions/generated/binding.ts index 0c3d300e..4672bb49 100644 --- a/examples/10-subscriptions/generated/binding.ts +++ b/examples/10-subscriptions/generated/binding.ts @@ -167,6 +167,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface StandardDeleteResponse { id: ID_Output } @@ -194,6 +202,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/10-subscriptions/generated/schema.graphql b/examples/10-subscriptions/generated/schema.graphql index 24b6f214..4820ce7d 100644 --- a/examples/10-subscriptions/generated/schema.graphql +++ b/examples/10-subscriptions/generated/schema.graphql @@ -70,6 +70,14 @@ type Mutation { deleteUser(where: UserWhereUniqueInput!): StandardDeleteResponse! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Query { users(offset: Int, limit: Int = 50, where: UserWhereInput, orderBy: UserOrderByInput): [User!]! user(where: UserWhereUniqueInput!): User! diff --git a/examples/10-subscriptions/package.json b/examples/10-subscriptions/package.json index 6096bb70..b84348c9 100644 --- a/examples/10-subscriptions/package.json +++ b/examples/10-subscriptions/package.json @@ -33,7 +33,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1", + "ts-node": "^8.10.2", "ts-node-dev": "^1.0.0-pre.44" }, "jest": { diff --git a/examples/10-subscriptions/yarn.lock b/examples/10-subscriptions/yarn.lock index 8f6fb78d..1af2fdf7 100644 --- a/examples/10-subscriptions/yarn.lock +++ b/examples/10-subscriptions/yarn.lock @@ -200,7 +200,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -504,7 +504,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -850,7 +850,7 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== @@ -3328,6 +3328,14 @@ source-map-support@^0.5.12, source-map-support@^0.5.6: buffer-from "^1.0.0" source-map "^0.6.0" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-url@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" @@ -3675,19 +3683,16 @@ ts-node@*: source-map-support "^0.5.6" yn "^3.0.0" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tsconfig@^7.0.0: version "7.0.0" @@ -3968,12 +3973,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= - -yn@^3.0.0: +yn@3.1.1, yn@^3.0.0: version "3.1.1" resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/examples/11-transactions/generated/binding.ts b/examples/11-transactions/generated/binding.ts index 35bc789e..3fb1ad66 100644 --- a/examples/11-transactions/generated/binding.ts +++ b/examples/11-transactions/generated/binding.ts @@ -163,6 +163,14 @@ export interface BaseModelUUID extends BaseGraphQLObject { version: Int } +export interface PageInfo { + limit: Float + offset: Float + totalCount: Float + hasNextPage: Boolean + hasPreviousPage: Boolean +} + export interface StandardDeleteResponse { id: ID_Output } @@ -190,6 +198,11 @@ The javascript `Date` as string. Type represents date and time as the ISO Date s */ export type DateTime = Date | string +/* +The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). +*/ +export type Float = number + /* The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID. */ diff --git a/examples/11-transactions/generated/schema.graphql b/examples/11-transactions/generated/schema.graphql index c7db3f9c..e3eb6ca4 100644 --- a/examples/11-transactions/generated/schema.graphql +++ b/examples/11-transactions/generated/schema.graphql @@ -69,6 +69,14 @@ type Mutation { failedTransaction(data: UserCreateInput!): [User!]! } +type PageInfo { + limit: Float! + offset: Float! + totalCount: Float! + hasNextPage: Boolean! + hasPreviousPage: Boolean! +} + type Query { users(offset: Int, limit: Int = 50, where: UserWhereInput, orderBy: UserOrderByInput): [User!]! } diff --git a/examples/11-transactions/package.json b/examples/11-transactions/package.json index d87ccb90..0830bdff 100644 --- a/examples/11-transactions/package.json +++ b/examples/11-transactions/package.json @@ -36,7 +36,7 @@ "faker": "^4.1.0", "jest": "^23.6.0", "ts-jest": "^23.10.5", - "ts-node": "^7.0.1", + "ts-node": "^8.10.2", "ts-node-dev": "^1.0.0-pre.44" }, "jest": { diff --git a/examples/11-transactions/yarn.lock b/examples/11-transactions/yarn.lock index 8f6fb78d..1af2fdf7 100644 --- a/examples/11-transactions/yarn.lock +++ b/examples/11-transactions/yarn.lock @@ -200,7 +200,7 @@ array-unique@^0.3.2: resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= -arrify@^1.0.0, arrify@^1.0.1: +arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= @@ -504,7 +504,7 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -buffer-from@1.x, buffer-from@^1.0.0, buffer-from@^1.1.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -850,7 +850,7 @@ detect-newline@^2.1.0: resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= -diff@^3.1.0, diff@^3.2.0: +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== @@ -3328,6 +3328,14 @@ source-map-support@^0.5.12, source-map-support@^0.5.6: buffer-from "^1.0.0" source-map "^0.6.0" +source-map-support@^0.5.17: + version "0.5.19" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-url@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" @@ -3675,19 +3683,16 @@ ts-node@*: source-map-support "^0.5.6" yn "^3.0.0" -ts-node@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-7.0.1.tgz#9562dc2d1e6d248d24bc55f773e3f614337d9baf" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== +ts-node@^8.10.2: + version "8.10.2" + resolved "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz#eee03764633b1234ddd37f8db9ec10b75ec7fb8d" + integrity sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA== dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" + arg "^4.1.0" + diff "^4.0.1" make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" + source-map-support "^0.5.17" + yn "3.1.1" tsconfig@^7.0.0: version "7.0.0" @@ -3968,12 +3973,7 @@ yargs@^11.0.0: y18n "^3.2.1" yargs-parser "^9.0.2" -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" - integrity sha1-5a2ryKz0CPY4X8dklWhMiOavaJo= - -yn@^3.0.0: +yn@3.1.1, yn@^3.0.0: version "3.1.1" resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/package.json b/package.json index d9038105..17e6702f 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,7 @@ "typedi": "^0.8.0", "typeorm": "^0.2.20", "typeorm-typedi-extensions": "^0.2.3", - "typescript": "^3.7.2" + "typescript": "^3.9.7" }, "devDependencies": { "@commitlint/cli": "^8.3.5", @@ -132,7 +132,7 @@ "semantic-release": "^16.0.0-beta.31", "supertest": "^4.0.2", "ts-jest": "^24.1.0", - "ts-node": "^8.5.2", + "ts-node": "^8.10.2", "ts-node-dev": "^1.0.0-pre.60" }, "lint-staged": { diff --git a/src/cli/templates/new/package.json.ejs b/src/cli/templates/new/package.json.ejs index f651d09d..4106d192 100644 --- a/src/cli/templates/new/package.json.ejs +++ b/src/cli/templates/new/package.json.ejs @@ -92,8 +92,5 @@ "prettier": { "printWidth": 100, "singleQuote": true - }, - "resolutions": { - "ts-node": "7.0.1" } } diff --git a/src/core/BaseService.ts b/src/core/BaseService.ts index 0e011308..cb13ca6d 100644 --- a/src/core/BaseService.ts +++ b/src/core/BaseService.ts @@ -166,7 +166,7 @@ export class BaseService { return qb; } - async findOne>(where: W): Promise { + async findOne(where: W): Promise { const items = await this.find(where); if (!items.length) { throw new Error(`Unable to find ${this.entityClass.name} where ${JSON.stringify(where)}`); @@ -259,7 +259,7 @@ export class BaseService { deletedById: userId }; - const found = await manager.findOneOrFail(this.entityClass, where); + const found = await manager.findOneOrFail(this.entityClass, where as any); const idData = ({ id: found.id } as any) as DeepPartial; const entity = manager.merge(this.entityClass, new this.entityClass(), data as any, idData); diff --git a/src/decorators/Model.ts b/src/decorators/Model.ts index 47045002..d6bdcde5 100644 --- a/src/decorators/Model.ts +++ b/src/decorators/Model.ts @@ -28,7 +28,7 @@ export function Model({ api = {}, db = {} }: ModelOptions = {}) { getMetadataStorage().addModel(target.name, target, relativeFilePath); }; - const factories = []; + const factories: any[] = []; if (db !== false) { factories.push(Entity(db) as ClassDecoratorFactory); } diff --git a/src/decorators/getCombinedDecorator.ts b/src/decorators/getCombinedDecorator.ts index 7a18dfee..077fb028 100644 --- a/src/decorators/getCombinedDecorator.ts +++ b/src/decorators/getCombinedDecorator.ts @@ -43,7 +43,7 @@ export function getCombinedDecorator({ // Warthog: start with the Warthog decorator that adds metadata for generating the GraphQL schema // for sorting, filtering, args, where inputs, etc... - const decorators = []; + const decorators: any[] = []; if (exposeAPI) { decorators.push(WarthogField(fieldType, warthogColumnMeta)); diff --git a/src/tgql/index.ts b/src/tgql/index.ts index d0f4ca0c..2b713d8e 100644 --- a/src/tgql/index.ts +++ b/src/tgql/index.ts @@ -1,3 +1,5 @@ +import { StandardDeleteResponse } from './DeleteResponse'; + export { authChecker } from './authChecker'; export { BaseModel } from '../core/BaseModel'; export * from './BaseResolver'; @@ -5,5 +7,6 @@ export * from './BaseWhereInput'; export * from './DeleteResponse'; export * from './PageInfo'; export * from './PaginationArgs'; -export { StandardDeleteResponse } from './DeleteResponse'; export { loadFromGlobArray } from './loadGlobs'; + +export { StandardDeleteResponse }; diff --git a/yarn.lock b/yarn.lock index fbef0fcb..ee1de04d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9648,17 +9648,6 @@ ts-node@^8.10.2: source-map-support "^0.5.17" yn "3.1.1" -ts-node@^8.5.2: - version "8.5.2" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.5.2.tgz#434f6c893bafe501a30b32ac94ee36809ba2adce" - integrity sha512-W1DK/a6BGoV/D4x/SXXm6TSQx6q3blECUzd5TN+j56YEMX3yPVMpHsICLedUw3DvGF3aTQ8hfdR9AKMaHjIi+A== - dependencies: - arg "^4.1.0" - diff "^4.0.1" - make-error "^1.1.1" - source-map-support "^0.5.6" - yn "^3.0.0" - tsconfig@^7.0.0: version "7.0.0" resolved "https://registry.npmjs.org/tsconfig/-/tsconfig-7.0.0.tgz#84538875a4dc216e5c4a5432b3a4dec3d54e91b7" @@ -9774,10 +9763,10 @@ typeorm@^0.2.20: yargonaut "^1.1.2" yargs "^13.2.1" -typescript@^3.7.2: - version "3.7.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" - integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== +typescript@^3.9.7: + version "3.9.7" + resolved "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa" + integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6" @@ -10452,7 +10441,7 @@ yargs@^8.0.2: y18n "^3.2.1" yargs-parser "^7.0.0" -yn@3.1.1, yn@^3.0.0: +yn@3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==