@contember/engine-content-api 1.3.0-alpha.8 → 1.3.0-beta.2
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/dist/src/ExecutionContainer.d.ts +3 -3
- package/dist/src/ExecutionContainer.d.ts.map +1 -1
- package/dist/src/acl/Authorizator.d.ts +1 -1
- package/dist/src/acl/Authorizator.d.ts.map +1 -1
- package/dist/src/extensions/EntityFieldsProvider.d.ts +1 -1
- package/dist/src/extensions/EntityFieldsProvider.d.ts.map +1 -1
- package/dist/src/input-validation/InputValidator.d.ts +1 -1
- package/dist/src/input-validation/InputValidator.d.ts.map +1 -1
- package/dist/src/input-validation/ValidationContext.js +1 -2
- package/dist/src/input-validation/ValidationContext.js.map +1 -1
- package/dist/src/input-validation/ValidationPath.d.ts +1 -1
- package/dist/src/input-validation/ValidationPath.d.ts.map +1 -1
- package/dist/src/input-validation/dependencies/DependencyCollector.d.ts +1 -1
- package/dist/src/input-validation/dependencies/DependencyCollector.d.ts.map +1 -1
- package/dist/src/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts +1 -1
- package/dist/src/input-validation/preValidation/CreateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/src/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts +1 -1
- package/dist/src/input-validation/preValidation/UpdateInputPreValidationProcessor.d.ts.map +1 -1
- package/dist/src/inputProcessing/UniqueWhereExpander.d.ts +1 -1
- package/dist/src/inputProcessing/UniqueWhereExpander.d.ts.map +1 -1
- package/dist/src/introspection/content-schema.types.d.ts +22 -22
- package/dist/src/introspection/content-schema.types.d.ts.map +1 -1
- package/dist/src/introspection/content-schema.types.js +3 -3
- package/dist/src/introspection/content-schema.types.js.map +1 -1
- package/dist/src/mapper/ColumnValue.d.ts +2 -2
- package/dist/src/mapper/ColumnValue.d.ts.map +1 -1
- package/dist/src/mapper/DataManipulationBuilder.d.ts +1 -1
- package/dist/src/mapper/DataManipulationBuilder.d.ts.map +1 -1
- package/dist/src/mapper/EventManager.d.ts +4 -4
- package/dist/src/mapper/EventManager.d.ts.map +1 -1
- package/dist/src/mapper/JunctionTableManager.d.ts +2 -2
- package/dist/src/mapper/JunctionTableManager.d.ts.map +1 -1
- package/dist/src/mapper/MapperFactory.d.ts +1 -1
- package/dist/src/mapper/MapperFactory.d.ts.map +1 -1
- package/dist/src/mapper/Result.d.ts +5 -5
- package/dist/src/mapper/Result.d.ts.map +1 -1
- package/dist/src/mapper/Result.js +6 -6
- package/dist/src/mapper/Result.js.map +1 -1
- package/dist/src/mapper/delete/DeleteExecutor.d.ts.map +1 -1
- package/dist/src/mapper/delete/DeleteExecutor.js +3 -0
- package/dist/src/mapper/delete/DeleteExecutor.js.map +1 -1
- package/dist/src/mapper/delete/helpers.d.ts +3 -3
- package/dist/src/mapper/delete/helpers.d.ts.map +1 -1
- package/dist/src/mapper/relations/ManyHasManyInputProcessor.d.ts +1 -1
- package/dist/src/mapper/relations/ManyHasManyInputProcessor.d.ts.map +1 -1
- package/dist/src/mapper/select/Path.js +3 -3
- package/dist/src/mapper/select/Path.js.map +1 -1
- package/dist/src/mapper/select/RelationFetcher.d.ts +6 -6
- package/dist/src/mapper/select/RelationFetcher.d.ts.map +1 -1
- package/dist/src/mapper/select/SelectExecutionHandler.d.ts +2 -2
- package/dist/src/mapper/select/SelectExecutionHandler.d.ts.map +1 -1
- package/dist/src/mapper/select/SelectHydrator.d.ts +7 -7
- package/dist/src/mapper/select/SelectHydrator.d.ts.map +1 -1
- package/dist/src/mapper/select/WhereBuilder.d.ts +1 -1
- package/dist/src/mapper/select/WhereBuilder.d.ts.map +1 -1
- package/dist/src/mapper/types.d.ts +1 -1
- package/dist/src/mapper/types.d.ts.map +1 -1
- package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts +1 -1
- package/dist/src/resolvers/GraphQlQueryAstFactory.d.ts.map +1 -1
- package/dist/src/resolvers/MutationResolver.d.ts +2 -2
- package/dist/src/resolvers/MutationResolver.d.ts.map +1 -1
- package/dist/src/schema/ColumnTypeResolver.d.ts +1 -1
- package/dist/src/schema/ColumnTypeResolver.d.ts.map +1 -1
- package/dist/src/schema/MutationProvider.d.ts +1 -1
- package/dist/src/schema/MutationProvider.d.ts.map +1 -1
- package/dist/src/schema/ValidationQueriesProvider.d.ts +1 -1
- package/dist/src/schema/ValidationQueriesProvider.d.ts.map +1 -1
- package/dist/src/schema/mutations/EntityInputProvider.js +1 -1
- package/dist/src/schema/mutations/EntityInputProvider.js.map +1 -1
- package/dist/src/tsconfig.tsbuildinfo +1 -1
- package/dist/src/utils/Interface.d.ts +1 -1
- package/dist/src/utils/Interface.d.ts.map +1 -1
- package/dist/src/utils/object.d.ts +2 -2
- package/dist/src/utils/object.d.ts.map +1 -1
- package/dist/src/utils/uniqueWhereFields.d.ts +1 -1
- package/dist/src/utils/uniqueWhereFields.d.ts.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.js +64 -0
- package/dist/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.js +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/conditions.test.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.js +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/optionalAssert.test.js.map +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.js +1 -1
- package/dist/tests/cases/integration/graphQlRequests/validation/requiredWhen.test.js.map +1 -1
- package/dist/tests/cases/integration/graphQlSchema/model.js +2 -3
- package/dist/tests/cases/integration/graphQlSchema/model.js.map +1 -1
- package/dist/tests/src/utils.d.ts +1 -1
- package/dist/tests/src/utils.d.ts.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -14
- package/src/mapper/delete/DeleteExecutor.ts +4 -0
- package/tests/cases/integration/graphQlRequests/delete/restrictOnDelete.test.ts +54 -1
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-allowed.gql +0 -420
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-create-only.gql +0 -229
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate.gql +0 -112
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-predicate2.gql +0 -112
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-create.gql +0 -309
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-delete.gql +0 -402
- package/dist/tests/cases/integration/graphQlSchema/schema-acl-restricted-update.gql +0 -338
- package/dist/tests/cases/integration/graphQlSchema/schema-acl.gql +0 -221
- package/dist/tests/cases/integration/graphQlSchema/schema-aliased-type.gql +0 -226
- package/dist/tests/cases/integration/graphQlSchema/schema-basic.gql +0 -841
- package/dist/tests/cases/integration/graphQlSchema/schema-bug-66.gql +0 -540
- package/dist/tests/cases/integration/graphQlSchema/schema-custom-primary.gql +0 -851
- package/dist/tests/cases/integration/graphQlSchema/schema-has-many-reduction.gql +0 -453
- package/dist/tests/cases/integration/graphQlSchema/schema-new-builder.gql +0 -912
- package/dist/tests/cases/integration/graphQlSchema/schema-view-entity.gql +0 -112
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
type Query {
|
|
2
|
-
getAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): Author
|
|
3
|
-
listAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], offset: Int, limit: Int): [Author!]!
|
|
4
|
-
paginateAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], skip: Int, first: Int): AuthorConnection!
|
|
5
|
-
validateCreateAuthor(data: AuthorCreateInput!): _ValidationResult!
|
|
6
|
-
validateUpdateAuthor(by: AuthorUniqueWhere!, data: AuthorUpdateInput!): _ValidationResult!
|
|
7
|
-
transaction: QueryTransaction
|
|
8
|
-
_info: Info
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
type Author {
|
|
12
|
-
_meta: AuthorMeta
|
|
13
|
-
id: UUID!
|
|
14
|
-
name: AuthorName
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
type AuthorMeta {
|
|
18
|
-
id: FieldMeta
|
|
19
|
-
name: FieldMeta
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
type FieldMeta {
|
|
23
|
-
readable: Boolean
|
|
24
|
-
updatable: Boolean
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
scalar UUID
|
|
28
|
-
|
|
29
|
-
scalar AuthorName
|
|
30
|
-
|
|
31
|
-
input AuthorUniqueWhere {
|
|
32
|
-
id: UUID
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
input AuthorWhere {
|
|
36
|
-
id: UUIDCondition
|
|
37
|
-
name: AuthorNameCondition
|
|
38
|
-
and: [AuthorWhere]
|
|
39
|
-
or: [AuthorWhere]
|
|
40
|
-
not: AuthorWhere
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
input UUIDCondition {
|
|
44
|
-
and: [UUIDCondition!]
|
|
45
|
-
or: [UUIDCondition!]
|
|
46
|
-
not: UUIDCondition
|
|
47
|
-
null: Boolean
|
|
48
|
-
isNull: Boolean
|
|
49
|
-
eq: UUID
|
|
50
|
-
notEq: UUID
|
|
51
|
-
in: [UUID!]
|
|
52
|
-
notIn: [UUID!]
|
|
53
|
-
lt: UUID
|
|
54
|
-
lte: UUID
|
|
55
|
-
gt: UUID
|
|
56
|
-
gte: UUID
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
input AuthorNameCondition {
|
|
60
|
-
and: [AuthorNameCondition!]
|
|
61
|
-
or: [AuthorNameCondition!]
|
|
62
|
-
not: AuthorNameCondition
|
|
63
|
-
null: Boolean
|
|
64
|
-
isNull: Boolean
|
|
65
|
-
eq: AuthorName
|
|
66
|
-
notEq: AuthorName
|
|
67
|
-
in: [AuthorName!]
|
|
68
|
-
notIn: [AuthorName!]
|
|
69
|
-
lt: AuthorName
|
|
70
|
-
lte: AuthorName
|
|
71
|
-
gt: AuthorName
|
|
72
|
-
gte: AuthorName
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
input AuthorOrderBy {
|
|
76
|
-
_random: Boolean
|
|
77
|
-
_randomSeeded: Int
|
|
78
|
-
id: OrderDirection
|
|
79
|
-
name: OrderDirection
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
enum OrderDirection {
|
|
83
|
-
asc
|
|
84
|
-
desc
|
|
85
|
-
ascNullsFirst
|
|
86
|
-
descNullsLast
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
type AuthorConnection {
|
|
90
|
-
pageInfo: PageInfo!
|
|
91
|
-
edges: [AuthorEdge!]!
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
type PageInfo {
|
|
95
|
-
totalCount: Int!
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
type AuthorEdge {
|
|
99
|
-
node: Author!
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
type _ValidationResult {
|
|
103
|
-
valid: Boolean!
|
|
104
|
-
errors: [_ValidationError!]!
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
type _ValidationError {
|
|
108
|
-
path: [_PathFragment!]!
|
|
109
|
-
message: _ValidationMessage!
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
union _PathFragment = _FieldPathFragment | _IndexPathFragment
|
|
113
|
-
|
|
114
|
-
type _FieldPathFragment {
|
|
115
|
-
field: String!
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
type _IndexPathFragment {
|
|
119
|
-
index: Int!
|
|
120
|
-
alias: String
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
type _ValidationMessage {
|
|
124
|
-
text: String!
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
input AuthorCreateInput {
|
|
128
|
-
name: AuthorName
|
|
129
|
-
_dummy_field_: Boolean
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
input AuthorUpdateInput {
|
|
133
|
-
name: AuthorName
|
|
134
|
-
_dummy_field_: Boolean
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
type QueryTransaction {
|
|
138
|
-
getAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): Author
|
|
139
|
-
listAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], offset: Int, limit: Int): [Author!]!
|
|
140
|
-
paginateAuthor(filter: AuthorWhere, orderBy: [AuthorOrderBy!], skip: Int, first: Int): AuthorConnection!
|
|
141
|
-
validateCreateAuthor(data: AuthorCreateInput!): _ValidationResult!
|
|
142
|
-
validateUpdateAuthor(by: AuthorUniqueWhere!, data: AuthorUpdateInput!): _ValidationResult!
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
type Info {
|
|
146
|
-
description: String
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
type Mutation {
|
|
150
|
-
createAuthor(data: AuthorCreateInput!): AuthorCreateResult!
|
|
151
|
-
deleteAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): AuthorDeleteResult!
|
|
152
|
-
updateAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, data: AuthorUpdateInput!): AuthorUpdateResult!
|
|
153
|
-
upsertAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, update: AuthorUpdateInput!, create: AuthorCreateInput!): AuthorUpsertResult!
|
|
154
|
-
transaction(options: MutationTransactionOptions): MutationTransaction!
|
|
155
|
-
query: Query!
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
type AuthorCreateResult implements MutationResult {
|
|
159
|
-
ok: Boolean!
|
|
160
|
-
errorMessage: String
|
|
161
|
-
errors: [_MutationError!]!
|
|
162
|
-
node: Author
|
|
163
|
-
validation: _ValidationResult!
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
interface MutationResult {
|
|
167
|
-
ok: Boolean!
|
|
168
|
-
errorMessage: String
|
|
169
|
-
errors: [_MutationError!]!
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
type _MutationError {
|
|
173
|
-
path: [_PathFragment!]! @deprecated(reason: "Use `paths`.")
|
|
174
|
-
paths: [[_PathFragment!]!]!
|
|
175
|
-
type: _MutationErrorType!
|
|
176
|
-
message: String
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
enum _MutationErrorType {
|
|
180
|
-
NotNullConstraintViolation
|
|
181
|
-
UniqueConstraintViolation
|
|
182
|
-
ForeignKeyConstraintViolation
|
|
183
|
-
NotFoundOrDenied
|
|
184
|
-
NonUniqueWhereInput
|
|
185
|
-
InvalidDataInput
|
|
186
|
-
SqlError
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
type AuthorDeleteResult implements MutationResult {
|
|
190
|
-
ok: Boolean!
|
|
191
|
-
errorMessage: String
|
|
192
|
-
errors: [_MutationError!]!
|
|
193
|
-
node: Author
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
type AuthorUpdateResult implements MutationResult {
|
|
197
|
-
ok: Boolean!
|
|
198
|
-
errorMessage: String
|
|
199
|
-
errors: [_MutationError!]!
|
|
200
|
-
node: Author
|
|
201
|
-
validation: _ValidationResult!
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
type AuthorUpsertResult implements MutationResult {
|
|
205
|
-
ok: Boolean!
|
|
206
|
-
errorMessage: String
|
|
207
|
-
errors: [_MutationError!]!
|
|
208
|
-
node: Author
|
|
209
|
-
validation: _ValidationResult!
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
type MutationTransaction {
|
|
213
|
-
ok: Boolean!
|
|
214
|
-
errorMessage: String
|
|
215
|
-
errors: [_MutationError!]!
|
|
216
|
-
validation: _ValidationResult!
|
|
217
|
-
createAuthor(data: AuthorCreateInput!): AuthorCreateResult!
|
|
218
|
-
deleteAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere): AuthorDeleteResult!
|
|
219
|
-
updateAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, data: AuthorUpdateInput!): AuthorUpdateResult!
|
|
220
|
-
upsertAuthor(by: AuthorUniqueWhere!, filter: AuthorWhere, update: AuthorUpdateInput!, create: AuthorCreateInput!): AuthorUpsertResult!
|
|
221
|
-
query: Query
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
input MutationTransactionOptions {
|
|
225
|
-
deferForeignKeyConstraints: Boolean
|
|
226
|
-
}
|