@ldsg/graphql 0.3.25 → 0.3.27

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-present Sebastian McKenzie and other contributors
3
+ Copyright (c) 2014-present Wanxger and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -1,8 +1,9 @@
1
- import { SpecificResourceSettings } from '@ldsg/types';
2
- export interface GraphqlSpecificResourceSettings extends SpecificResourceSettings {
3
- /**
4
- * GraphQL Endpoint
5
- */
6
- endpoint?: string;
7
- }
1
+ import { z } from 'zod';
2
+ export declare const GraphqlSpecificResourceSettingsSchema: z.ZodObject<{
3
+ graphqlEndpoint: z.ZodOptional<z.ZodString>;
4
+ }, z.core.$catchall<z.ZodAny>>;
5
+ export declare const SpecificResourceSettingsSchema: z.ZodObject<{
6
+ graphqlEndpoint: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$catchall<z.ZodAny>>;
8
+ export type GraphqlSpecificResourceSettings = z.infer<typeof GraphqlSpecificResourceSettingsSchema>;
8
9
  //# sourceMappingURL=specific-resource-settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,+BAAgC,SAAQ,wBAAwB;IAC/E;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"specific-resource-settings.d.ts","sourceRoot":"","sources":["../../src/types/specific-resource-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qCAAqC;;8BAO9B,CAAC;AAErB,eAAO,MAAM,8BAA8B;;8BAAwC,CAAC;AACpF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -1,2 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpecificResourceSettingsSchema = exports.GraphqlSpecificResourceSettingsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.GraphqlSpecificResourceSettingsSchema = zod_1.z
6
+ .object({
7
+ /**
8
+ * GraphQL Endpoint
9
+ */
10
+ graphqlEndpoint: zod_1.z.string().optional()
11
+ })
12
+ .catchall(zod_1.z.any());
13
+ exports.SpecificResourceSettingsSchema = exports.GraphqlSpecificResourceSettingsSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/graphql",
3
- "version": "0.3.25",
3
+ "version": "0.3.27",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,9 +15,10 @@
15
15
  "graphql-compose": "^9.1.0",
16
16
  "graphql-middleware": "^6.1.35",
17
17
  "graphql-yoga": "^5.13.4",
18
- "@ldsg/handler": "0.3.25",
19
- "@ldsg/resource-definition": "0.3.25",
20
- "@ldsg/resource": "0.3.25"
18
+ "zod": "^4.1.11",
19
+ "@ldsg/handler": "0.3.27",
20
+ "@ldsg/resource-definition": "0.3.27",
21
+ "@ldsg/resource": "0.3.27"
21
22
  },
22
23
  "devDependencies": {
23
24
  "@types/jest": "^29.5.2",
@@ -27,8 +28,8 @@
27
28
  "ts-jest": "^29.1.5",
28
29
  "ts-node": "^10.9.2",
29
30
  "typescript": "^5.8.3",
30
- "@ldsg/application": "0.3.25",
31
- "@ldsg/types": "0.3.25"
31
+ "@ldsg/application": "0.3.27",
32
+ "@ldsg/types": "0.3.27"
32
33
  },
33
34
  "publishConfig": {
34
35
  "access": "public"
@@ -36,6 +37,6 @@
36
37
  "scripts": {
37
38
  "build": "tsc --project tsconfig.build.json",
38
39
  "clean": "rm -rf dist",
39
- "test": "jest --passWithNoTests"
40
+ "test": "jest"
40
41
  }
41
42
  }