@stonecrop/graphql-client 0.2.5 → 0.2.6

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/package.json CHANGED
@@ -1,8 +1,20 @@
1
1
  {
2
2
  "name": "@stonecrop/graphql-client",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
+ "author": {
7
+ "name": "Tyler Matteson",
8
+ "email": "tyler@agritheory.com"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/agritheory/stonecrop",
13
+ "directory": "graphql_client"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/agritheory/stonecrop/issues"
17
+ },
6
18
  "exports": {
7
19
  ".": {
8
20
  "import": "./dist/graphql-client.js",
@@ -11,36 +23,39 @@
11
23
  },
12
24
  "main": "dist/graphql-client.js",
13
25
  "module": "dist/graphql-client.js",
26
+ "umd": "dist/graphql-client.umd.cjs",
14
27
  "types": "src/index",
15
28
  "files": [
16
29
  "dist/*",
17
- "src/**/*.ts"
30
+ "src/*"
18
31
  ],
19
32
  "dependencies": {
20
33
  "graphql": "~16.6.0",
21
34
  "graphql-request": "~6.0.0",
22
- "@stonecrop/stonecrop": "0.2.5"
35
+ "@stonecrop/stonecrop": "0.2.6"
23
36
  },
24
37
  "devDependencies": {
25
38
  "@miragejs/graphql": "^0.1.13",
26
39
  "@types/graphql": "~14.5.0",
27
40
  "@typescript-eslint/eslint-plugin": "^5.59.5",
28
41
  "@typescript-eslint/parser": "^5.59.5",
29
- "@vitejs/plugin-vue": "^4.2.1",
42
+ "@vitejs/plugin-vue": "^5.0.4",
30
43
  "cypress": "^12.11.0",
31
44
  "eslint": "^8.40.0",
32
45
  "eslint-config-prettier": "^8.8.0",
33
46
  "eslint-plugin-vue": "^9.11.1",
34
47
  "miragejs": "^0.1.47",
35
48
  "typescript": "^5.0.4",
36
- "vite": "^4.3.5",
37
- "vue": "^3.2.47",
49
+ "vite": "^5.2.9",
50
+ "vue": "^3.4.23",
38
51
  "vue-router": "^4"
39
52
  },
53
+ "publishConfig": {
54
+ "access": "public"
55
+ },
40
56
  "engines": {
41
57
  "node": ">=20.11.0"
42
58
  },
43
- "umd": "dist/graphql-client.umd.cjs",
44
59
  "scripts": {
45
60
  "build": "vite build",
46
61
  "dev": "vite",
@@ -0,0 +1,45 @@
1
+ type Doctype {
2
+ id: ID!
3
+ name: String!
4
+ workflow: DoctypeWorkflow!
5
+ schema: [DoctypeField!]!
6
+ actions: [DoctypeActions!]!
7
+ }
8
+
9
+ type DoctypeField {
10
+ id: ID!
11
+ label: String!
12
+ fieldtype: String
13
+ component: String
14
+ required: Boolean
15
+ readonly: Boolean
16
+ }
17
+
18
+ type DoctypeWorkflow {
19
+ name: String!
20
+ machine: StateMachine!
21
+ }
22
+
23
+ type StateMachine {
24
+ id: ID!
25
+ }
26
+
27
+ type DoctypeAction {
28
+ eventName: String!
29
+ callback: String
30
+ }
31
+
32
+ type Query {
33
+ getMeta(doctype: String!): Doctype # ∪ error
34
+ getRecords(doctype: String!, filters: Filters): [Record] # ∪ error
35
+ getRecord(doctype: String!, id: ID!): Record # ∪ error
36
+ }
37
+
38
+ type Mutation {
39
+ runAction(doctype: String!, id: [ID!]!, functionName: String!): [Record!]! # ∪ error
40
+ }
41
+
42
+ schema {
43
+ query: Query
44
+ mutation: Mutation
45
+ }