@stonecrop/graphql-middleware 0.30.0 → 0.32.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.
Files changed (38) hide show
  1. package/dist/index.js +1188 -720
  2. package/dist/index.js.map +1 -1
  3. package/dist/tsdoc-metadata.json +1 -1
  4. package/package.json +33 -14
  5. package/dist/graphql_client.tsbuildinfo +0 -1
  6. package/dist/src/debug.d.ts +0 -31
  7. package/dist/src/debug.d.ts.map +0 -1
  8. package/dist/src/debug.js +0 -49
  9. package/dist/src/dispatch/transition.d.ts +0 -107
  10. package/dist/src/dispatch/transition.d.ts.map +0 -1
  11. package/dist/src/dispatch/transition.js +0 -152
  12. package/dist/src/fields.d.ts +0 -23
  13. package/dist/src/fields.d.ts.map +0 -1
  14. package/dist/src/fields.js +0 -28
  15. package/dist/src/index.d.ts +0 -16
  16. package/dist/src/index.d.ts.map +0 -1
  17. package/dist/src/index.js +0 -14
  18. package/dist/src/link-display.d.ts +0 -19
  19. package/dist/src/link-display.d.ts.map +0 -1
  20. package/dist/src/link-display.js +0 -93
  21. package/dist/src/plugin/postgraphile.d.ts +0 -174
  22. package/dist/src/plugin/postgraphile.d.ts.map +0 -1
  23. package/dist/src/plugin/postgraphile.js +0 -882
  24. package/dist/src/preset.d.ts +0 -53
  25. package/dist/src/preset.d.ts.map +0 -1
  26. package/dist/src/preset.js +0 -148
  27. package/dist/src/registry/doctypes.d.ts +0 -95
  28. package/dist/src/registry/doctypes.d.ts.map +0 -1
  29. package/dist/src/registry/doctypes.js +0 -251
  30. package/dist/src/registry/fetchHandlers.d.ts +0 -31
  31. package/dist/src/registry/fetchHandlers.d.ts.map +0 -1
  32. package/dist/src/registry/fetchHandlers.js +0 -24
  33. package/dist/src/tables.d.ts +0 -14
  34. package/dist/src/tables.d.ts.map +0 -1
  35. package/dist/src/tables.js +0 -21
  36. package/dist/src/typeDefs.d.ts +0 -7
  37. package/dist/src/typeDefs.d.ts.map +0 -1
  38. package/dist/src/typeDefs.js +0 -118
@@ -1,118 +0,0 @@
1
- import { gql } from 'postgraphile/utils';
2
- /**
3
- * GraphQL type definitions for Stonecrop's middleware API.
4
- * Includes stonecropMeta, stonecropRecord, stonecropRecords, stonecropAction, and related types.
5
- * @public
6
- */
7
- export const typeDefs = gql `
8
- type StonecropFieldMeta {
9
- kind: String!
10
- fieldname: String!
11
- component: String
12
- primaryKey: Boolean
13
- computed: Boolean
14
- language: String
15
- doctype: String
16
- label: String
17
- width: String
18
- height: String
19
- align: String
20
- edit: Boolean
21
- mask: String
22
- format: String
23
- mode: String
24
- options: JSON
25
- required: Boolean
26
- readOnly: Boolean
27
- hidden: Boolean
28
- default: JSON
29
- validation: JSON
30
- cardinality: String
31
- source: String
32
- }
33
-
34
- type StonecropWorkflowAction {
35
- label: String!
36
- requiredFields: [String!]
37
- allowedStates: [String!]
38
- nextState: String
39
- stateless: Boolean
40
- selfTransition: Boolean
41
- clientHandler: String
42
- }
43
-
44
- type StonecropWorkflowMeta {
45
- states: [String!]
46
- actions: [StonecropWorkflowAction!]
47
- }
48
-
49
- type StonecropDoctypeMeta {
50
- name: String!
51
- slug: String
52
- displayField: String
53
- fields: [StonecropFieldMeta!]!
54
- workflow: StonecropWorkflowMeta
55
- inherits: String
56
- }
57
-
58
- type StonecropRecordResult {
59
- data: JSON
60
- doctype: String!
61
- unknownLinks: [String!]
62
- """
63
- Fields whose linked rows were cut short by a row cap, so data holds a prefix of the
64
- relation rather than all of it. Null when nothing was truncated. A link cannot be paged,
65
- so a client that sees a name here must not write that relation back — the rows it never
66
- received would be deleted.
67
- """
68
- truncatedLinks: [String!]
69
- }
70
-
71
- type StonecropRecordsResult {
72
- data: [JSON!]!
73
- doctype: String!
74
- """
75
- Whether further records exist beyond this page. Always answered — it is read from the
76
- page itself (one extra row is requested and discarded), so it costs no second query.
77
- """
78
- hasMore: Boolean!
79
- """
80
- Total matching the filters, ignoring limit/offset. Null unless the query asked for it
81
- with includeTotal, because counting is a full scan on most backends.
82
- """
83
- count: Int
84
- }
85
-
86
- type StonecropActionResult {
87
- success: Boolean!
88
- data: JSON
89
- error: String
90
- """
91
- Keys the write discarded because the doctype declares no column for them, or because the
92
- value was a nested relation rather than a column value. Null when everything sent was
93
- stored. The action still succeeded — this is what it did not keep, and a client that
94
- reports an unqualified success without checking it tells the user data was saved that
95
- was not.
96
- """
97
- droppedFields: [String!]
98
- }
99
-
100
- extend type Query {
101
- stonecropMeta(doctype: String!): StonecropDoctypeMeta
102
- stonecropAllMeta: [StonecropDoctypeMeta!]!
103
- stonecropRecord(doctype: String!, id: String!, options: JSON): StonecropRecordResult
104
- stonecropRecords(
105
- doctype: String!
106
- filters: JSON
107
- orderBy: String
108
- limit: Int
109
- offset: Int
110
- includeTotal: Boolean
111
- options: JSON
112
- ): StonecropRecordsResult
113
- }
114
-
115
- extend type Mutation {
116
- stonecropAction(doctype: String!, action: String!, args: JSON): StonecropActionResult!
117
- }
118
- `;