joist-graphql-resolver-utils 1.119.0 → 1.120.0

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.
@@ -1,11 +1,11 @@
1
- import { BaseEntity, DeepPartialOrNull, EntityConstructor, OptsOf } from "joist-orm";
1
+ import { DeepPartialOrNull, Entity, EntityConstructor, OptsOf } from "joist-orm";
2
2
  import { Context } from "./context";
3
3
  /** Given an GraphQL input, creates-or-updates an entity of `type`. */
4
- export declare function saveEntity<T extends BaseEntity>(ctx: Context, type: EntityConstructor<T>, input: DeepPartialOrNull<T>, opts?: {
4
+ export declare function saveEntity<T extends Entity>(ctx: Context, type: EntityConstructor<T>, input: DeepPartialOrNull<T>, opts?: {
5
5
  flush?: boolean;
6
6
  }): Promise<T>;
7
7
  /** Given GraphQL inputs, creates-or-updates multiple entities of `type`. */
8
- export declare function saveEntities<T extends BaseEntity>(ctx: Context, type: EntityConstructor<T>, input: readonly DeepPartialOrNull<T>[], opts?: {
8
+ export declare function saveEntities<T extends Entity>(ctx: Context, type: EntityConstructor<T>, input: readonly DeepPartialOrNull<T>[], opts?: {
9
9
  flush?: boolean;
10
10
  opts?: Partial<OptsOf<T>>;
11
11
  }): Promise<T[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"saveEntity.d.ts","sourceRoot":"","sources":["../src/saveEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,sEAAsE;AACtE,wBAAsB,UAAU,CAAC,CAAC,SAAS,UAAU,EACnD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC1B,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC3B,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO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AAE,CAAC,CAQd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joist-graphql-resolver-utils",
3
- "version": "1.119.0",
3
+ "version": "1.120.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "graphql": "^16.8.1",
24
- "joist-orm": "1.119.0",
25
- "joist-test-utils": "1.119.0"
24
+ "joist-orm": "1.120.0",
25
+ "joist-test-utils": "1.120.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@swc/core": "^1.3.95",