@stonecrop/graphql-client 0.2.64 → 0.2.66

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 +1 @@
1
- {"version":"5.6.2"}
1
+ {"version":"5.7.2"}
package/dist/queries.js CHANGED
@@ -1,4 +1,8 @@
1
1
  import { gql } from 'graphql-request';
2
+ /**
3
+ * Queries for the GraphQL API.
4
+ * @public
5
+ */
2
6
  const queries = {
3
7
  getMeta: gql `
4
8
  query getDoctype($doctype: String!) {
@@ -1,3 +1,7 @@
1
+ /**
2
+ * This is the schema for the GraphQL API.
3
+ * @public
4
+ */
1
5
  declare const typeDefs: string;
2
6
  export default typeDefs;
3
7
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/gql/schema.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,QAAQ,QA8Cb,CAAA;AAED,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/gql/schema.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,QAAQ,QA8Cb,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Queries for the GraphQL API.
3
+ * @public
4
+ */
1
5
  declare const queries: {
2
6
  getMeta: string;
3
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/queries.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO;;CAYZ,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/queries.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,OAAO;;CAYZ,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.9"
8
+ "packageVersion": "7.48.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,3 +1,11 @@
1
+ /**
2
+ * @file This file contains all the types that are used in the application.
3
+ * @public
4
+ */
5
+ /**
6
+ * The type of the response from the `getMeta` query.
7
+ * @public
8
+ */
1
9
  export type Meta = {
2
10
  variables: {
3
11
  doctype: string;
@@ -6,6 +14,10 @@ export type Meta = {
6
14
  getMeta: MetaResponse;
7
15
  };
8
16
  };
17
+ /**
18
+ * The type of the response from the `getRecords` query.
19
+ * @public
20
+ */
9
21
  export type MetaResponse = {
10
22
  id: string;
11
23
  name: string;
@@ -23,6 +35,10 @@ export type MetaResponse = {
23
35
  eventName: string;
24
36
  }[];
25
37
  };
38
+ /**
39
+ * The type of the response from the `getMeta` query.
40
+ * @public
41
+ */
26
42
  export type MetaParser = {
27
43
  data: Meta['response'];
28
44
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IAClB,SAAS,EAAE;QACV,OAAO,EAAE,MAAM,CAAA;KACf,CAAA;IAED,QAAQ,EAAE;QACT,OAAO,EAAE,YAAY,CAAA;KACrB,CAAA;CACD,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE;QACT,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,CAAC,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,MAAM,EAAE;QACP,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;KACb,EAAE,CAAA;IACH,OAAO,EAAE;QACR,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,MAAM,CAAA;KACjB,EAAE,CAAA;CACH,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;CACtB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG;IAClB,SAAS,EAAE;QACV,OAAO,EAAE,MAAM,CAAA;KACf,CAAA;IAED,QAAQ,EAAE;QACT,OAAO,EAAE,YAAY,CAAA;KACrB,CAAA;CACD,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE;QACT,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,CAAC,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,MAAM,EAAE;QACP,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,MAAM,CAAA;KACb,EAAE,CAAA;IACH,OAAO,EAAE;QACR,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,MAAM,CAAA;KACjB,EAAE,CAAA;CACH,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;CACtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @file This file contains all the types that are used in the application.
3
+ * @public
4
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/graphql-client",
3
- "version": "0.2.64",
3
+ "version": "0.2.66",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": {
@@ -18,13 +18,13 @@
18
18
  "exports": {
19
19
  ".": {
20
20
  "import": {
21
- "types": "./dist/graphql_client/src/index.d.ts",
21
+ "types": "./dist/src/index.d.ts",
22
22
  "default": "./dist/graphql-client.js"
23
23
  },
24
24
  "require": "./dist/graphql-client.umd.cjs"
25
25
  }
26
26
  },
27
- "typings": "./dist/graphql_client/src/index.d.ts",
27
+ "typings": "./dist/src/index.d.ts",
28
28
  "files": [
29
29
  "dist/*",
30
30
  "src/*"
@@ -33,12 +33,12 @@
33
33
  "decimal.js": "^10.4.3",
34
34
  "graphql": "~16.6.0",
35
35
  "graphql-request": "~6.0.0",
36
- "@stonecrop/stonecrop": "0.2.64"
36
+ "@stonecrop/stonecrop": "0.2.66"
37
37
  },
38
38
  "devDependencies": {
39
- "@microsoft/api-documenter": "^7.25.3",
39
+ "@microsoft/api-documenter": "^7.26.2",
40
40
  "@miragejs/graphql": "^0.1.13",
41
- "@rushstack/heft": "^0.67.2",
41
+ "@rushstack/heft": "^0.68.6",
42
42
  "@typescript-eslint/eslint-plugin": "^7.14.1",
43
43
  "@typescript-eslint/parser": "^7.14.1",
44
44
  "@vitejs/plugin-vue": "^5.1.3",
@@ -47,7 +47,7 @@
47
47
  "eslint-config-prettier": "^8.8.0",
48
48
  "eslint-plugin-vue": "^9.11.1",
49
49
  "miragejs": "^0.1.47",
50
- "typescript": "^5.5.2",
50
+ "typescript": "^5.6.3",
51
51
  "vite": "^5.4.5",
52
52
  "vue": "^3.5.11",
53
53
  "vue-router": "^4.4.0",
package/src/gql/schema.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { gql } from 'graphql-request'
2
2
 
3
+ /**
4
+ * This is the schema for the GraphQL API.
5
+ * @public
6
+ */
3
7
  const typeDefs = gql`
4
8
  type Doctype {
5
9
  id: ID!
package/src/queries.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { gql } from 'graphql-request'
2
2
 
3
+ /**
4
+ * Queries for the GraphQL API.
5
+ * @public
6
+ */
3
7
  const queries = {
4
8
  getMeta: gql`
5
9
  query getDoctype($doctype: String!) {
@@ -1,3 +1,12 @@
1
+ /**
2
+ * @file This file contains all the types that are used in the application.
3
+ * @public
4
+ */
5
+
6
+ /**
7
+ * The type of the response from the `getMeta` query.
8
+ * @public
9
+ */
1
10
  export type Meta = {
2
11
  variables: {
3
12
  doctype: string
@@ -8,6 +17,10 @@ export type Meta = {
8
17
  }
9
18
  }
10
19
 
20
+ /**
21
+ * The type of the response from the `getRecords` query.
22
+ * @public
23
+ */
11
24
  export type MetaResponse = {
12
25
  id: string
13
26
  name: string
@@ -26,6 +39,10 @@ export type MetaResponse = {
26
39
  }[]
27
40
  }
28
41
 
42
+ /**
43
+ * The type of the response from the `getMeta` query.
44
+ * @public
45
+ */
29
46
  export type MetaParser = {
30
47
  data: Meta['response']
31
48
  }