@contember/engine-actions 2.0.0-alpha.14 → 2.0.0-alpha.16
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/development/src/triggers/TriggerPayloadBuilder.cjs +1 -1
- package/dist/development/src/triggers/TriggerPayloadBuilder.cjs.map +1 -1
- package/dist/development/src/triggers/TriggerPayloadBuilder.js +1 -1
- package/dist/development/src/triggers/TriggerPayloadBuilder.js.map +1 -1
- package/dist/production/src/triggers/TriggerPayloadBuilder.cjs +1 -1
- package/dist/production/src/triggers/TriggerPayloadBuilder.cjs.map +1 -1
- package/dist/production/src/triggers/TriggerPayloadBuilder.js +1 -1
- package/dist/production/src/triggers/TriggerPayloadBuilder.js.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/dist/types/graphql/schema/index.d.ts +71 -39
- package/dist/types/graphql/schema/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/{graphql-actions.codegen.yml → graphql.codegen.yml} +1 -1
- package/package.json +18 -25
- package/src/graphql/schema/index.ts +43 -39
- package/src/triggers/TriggerPayloadBuilder.ts +1 -1
package/package.json
CHANGED
|
@@ -21,39 +21,32 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"generate": "gql-gen --config graphql-actions.codegen.yml"
|
|
26
|
-
},
|
|
27
24
|
"dependencies": {
|
|
28
|
-
"@contember/authorization": "2.0.0-alpha.
|
|
29
|
-
"@contember/database": "2.0.0-alpha.
|
|
30
|
-
"@contember/database-migrations": "2.0.0-alpha.
|
|
31
|
-
"@contember/engine-common": "2.0.0-alpha.
|
|
32
|
-
"@contember/engine-content-api": "2.0.0-alpha.
|
|
33
|
-
"@contember/engine-http": "2.0.0-alpha.
|
|
34
|
-
"@contember/engine-plugins": "2.0.0-alpha.
|
|
35
|
-
"@contember/engine-system-api": "2.0.0-alpha.
|
|
36
|
-
"@contember/engine-tenant-api": "2.0.0-alpha.
|
|
37
|
-
"@contember/graphql-utils": "2.0.0-alpha.
|
|
38
|
-
"@contember/logger": "2.0.0-alpha.
|
|
39
|
-
"@contember/schema": "2.0.0-alpha.
|
|
40
|
-
"@contember/schema-utils": "2.0.0-alpha.
|
|
41
|
-
"@contember/typesafe": "2.0.0-alpha.
|
|
42
|
-
"@graphql-tools/schema": "^10.0.
|
|
25
|
+
"@contember/authorization": "2.0.0-alpha.16",
|
|
26
|
+
"@contember/database": "2.0.0-alpha.16",
|
|
27
|
+
"@contember/database-migrations": "2.0.0-alpha.16",
|
|
28
|
+
"@contember/engine-common": "2.0.0-alpha.16",
|
|
29
|
+
"@contember/engine-content-api": "2.0.0-alpha.16",
|
|
30
|
+
"@contember/engine-http": "2.0.0-alpha.16",
|
|
31
|
+
"@contember/engine-plugins": "2.0.0-alpha.16",
|
|
32
|
+
"@contember/engine-system-api": "2.0.0-alpha.16",
|
|
33
|
+
"@contember/engine-tenant-api": "2.0.0-alpha.16",
|
|
34
|
+
"@contember/graphql-utils": "2.0.0-alpha.16",
|
|
35
|
+
"@contember/logger": "2.0.0-alpha.16",
|
|
36
|
+
"@contember/schema": "2.0.0-alpha.16",
|
|
37
|
+
"@contember/schema-utils": "2.0.0-alpha.16",
|
|
38
|
+
"@contember/typesafe": "2.0.0-alpha.16",
|
|
39
|
+
"@graphql-tools/schema": "^10.0.6",
|
|
43
40
|
"graphql-tag": "^2.12.6"
|
|
44
41
|
},
|
|
45
42
|
"devDependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"
|
|
48
|
-
"@graphql-codegen/typescript-operations": "^4.0.1",
|
|
49
|
-
"@graphql-codegen/typescript-resolvers": "^4.0.1",
|
|
50
|
-
"@types/ws": "^8.5.9",
|
|
51
|
-
"graphql": "^16.8.1"
|
|
43
|
+
"@types/ws": "^8.5.12",
|
|
44
|
+
"graphql": "^16.9.0"
|
|
52
45
|
},
|
|
53
46
|
"peerDependencies": {
|
|
54
47
|
"graphql": ">= 14.6.0",
|
|
55
48
|
"pg": "^8.5.0"
|
|
56
49
|
},
|
|
57
50
|
"type": "module",
|
|
58
|
-
"version": "2.0.0-alpha.
|
|
51
|
+
"version": "2.0.0-alpha.16"
|
|
59
52
|
}
|
|
@@ -4,39 +4,41 @@ export type InputMaybe<T> = Maybe<T>
|
|
|
4
4
|
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }
|
|
5
5
|
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> }
|
|
6
6
|
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> }
|
|
7
|
+
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never }
|
|
8
|
+
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }
|
|
7
9
|
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> }
|
|
8
10
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
9
11
|
export type Scalars = {
|
|
10
|
-
ID: string
|
|
11
|
-
String: string
|
|
12
|
-
Boolean: boolean
|
|
13
|
-
Int: number
|
|
14
|
-
Float: number
|
|
15
|
-
DateTime: Date
|
|
16
|
-
Json: any
|
|
17
|
-
Uuid: String
|
|
12
|
+
ID: { input: string; output: string }
|
|
13
|
+
String: { input: string; output: string }
|
|
14
|
+
Boolean: { input: boolean; output: boolean }
|
|
15
|
+
Int: { input: number; output: number }
|
|
16
|
+
Float: { input: number; output: number }
|
|
17
|
+
DateTime: { input: Date; output: Date }
|
|
18
|
+
Json: { input: any; output: any }
|
|
19
|
+
Uuid: { input: String; output: String }
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export type Event = {
|
|
21
23
|
readonly __typename?: 'Event'
|
|
22
|
-
readonly createdAt: Scalars['DateTime']
|
|
23
|
-
readonly id: Scalars['Uuid']
|
|
24
|
-
readonly lastStateChange: Scalars['DateTime']
|
|
25
|
-
readonly log: Scalars['Json']
|
|
26
|
-
readonly numRetries: Scalars['Int']
|
|
27
|
-
readonly payload: Scalars['Json']
|
|
28
|
-
readonly resolvedAt?: Maybe<Scalars['DateTime']>
|
|
29
|
-
readonly stage: Scalars['String']
|
|
24
|
+
readonly createdAt: Scalars['DateTime']['output']
|
|
25
|
+
readonly id: Scalars['Uuid']['output']
|
|
26
|
+
readonly lastStateChange: Scalars['DateTime']['output']
|
|
27
|
+
readonly log: Scalars['Json']['output']
|
|
28
|
+
readonly numRetries: Scalars['Int']['output']
|
|
29
|
+
readonly payload: Scalars['Json']['output']
|
|
30
|
+
readonly resolvedAt?: Maybe<Scalars['DateTime']['output']>
|
|
31
|
+
readonly stage: Scalars['String']['output']
|
|
30
32
|
readonly state: EventState
|
|
31
|
-
readonly target: Scalars['String']
|
|
32
|
-
readonly transactionId: Scalars['Uuid']
|
|
33
|
-
readonly visibleAt?: Maybe<Scalars['DateTime']>
|
|
33
|
+
readonly target: Scalars['String']['output']
|
|
34
|
+
readonly transactionId: Scalars['Uuid']['output']
|
|
35
|
+
readonly visibleAt?: Maybe<Scalars['DateTime']['output']>
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
export type EventArgs = {
|
|
37
39
|
/** Max 10000 */
|
|
38
|
-
readonly limit?: InputMaybe<Scalars['Int']>
|
|
39
|
-
readonly offset?: InputMaybe<Scalars['Int']>
|
|
40
|
+
readonly limit?: InputMaybe<Scalars['Int']['input']>
|
|
41
|
+
readonly offset?: InputMaybe<Scalars['Int']['input']>
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
export type EventState =
|
|
@@ -60,7 +62,7 @@ export type MutationSetVariablesArgs = {
|
|
|
60
62
|
|
|
61
63
|
export type ProcessBatchResponse = {
|
|
62
64
|
readonly __typename?: 'ProcessBatchResponse'
|
|
63
|
-
readonly ok: Scalars['Boolean']
|
|
65
|
+
readonly ok: Scalars['Boolean']['output']
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
export type Query = {
|
|
@@ -104,18 +106,18 @@ export type SetVariablesMode =
|
|
|
104
106
|
|
|
105
107
|
export type SetVariablesResponse = {
|
|
106
108
|
readonly __typename?: 'SetVariablesResponse'
|
|
107
|
-
readonly ok: Scalars['Boolean']
|
|
109
|
+
readonly ok: Scalars['Boolean']['output']
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
export type Variable = {
|
|
111
113
|
readonly __typename?: 'Variable'
|
|
112
|
-
readonly name: Scalars['String']
|
|
113
|
-
readonly value: Scalars['String']
|
|
114
|
+
readonly name: Scalars['String']['output']
|
|
115
|
+
readonly value: Scalars['String']['output']
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
export type VariableInput = {
|
|
117
|
-
readonly name: Scalars['String']
|
|
118
|
-
readonly value: Scalars['String']
|
|
119
|
+
readonly name: Scalars['String']['input']
|
|
120
|
+
readonly value: Scalars['String']['input']
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
|
|
@@ -185,42 +187,44 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
|
|
|
185
187
|
info: GraphQLResolveInfo
|
|
186
188
|
) => TResult | Promise<TResult>
|
|
187
189
|
|
|
190
|
+
|
|
191
|
+
|
|
188
192
|
/** Mapping between all available schema types and the resolvers types */
|
|
189
193
|
export type ResolversTypes = {
|
|
190
|
-
Boolean: ResolverTypeWrapper<Scalars['Boolean']>
|
|
191
|
-
DateTime: ResolverTypeWrapper<Scalars['DateTime']>
|
|
194
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']['output']>
|
|
195
|
+
DateTime: ResolverTypeWrapper<Scalars['DateTime']['output']>
|
|
192
196
|
Event: ResolverTypeWrapper<Event>
|
|
193
197
|
EventArgs: EventArgs
|
|
194
198
|
EventState: EventState
|
|
195
|
-
Int: ResolverTypeWrapper<Scalars['Int']>
|
|
196
|
-
Json: ResolverTypeWrapper<Scalars['Json']>
|
|
199
|
+
Int: ResolverTypeWrapper<Scalars['Int']['output']>
|
|
200
|
+
Json: ResolverTypeWrapper<Scalars['Json']['output']>
|
|
197
201
|
Mutation: ResolverTypeWrapper<{}>
|
|
198
202
|
ProcessBatchResponse: ResolverTypeWrapper<ProcessBatchResponse>
|
|
199
203
|
Query: ResolverTypeWrapper<{}>
|
|
200
204
|
SetVariablesArgs: SetVariablesArgs
|
|
201
205
|
SetVariablesMode: SetVariablesMode
|
|
202
206
|
SetVariablesResponse: ResolverTypeWrapper<SetVariablesResponse>
|
|
203
|
-
String: ResolverTypeWrapper<Scalars['String']>
|
|
204
|
-
Uuid: ResolverTypeWrapper<Scalars['Uuid']>
|
|
207
|
+
String: ResolverTypeWrapper<Scalars['String']['output']>
|
|
208
|
+
Uuid: ResolverTypeWrapper<Scalars['Uuid']['output']>
|
|
205
209
|
Variable: ResolverTypeWrapper<Variable>
|
|
206
210
|
VariableInput: VariableInput
|
|
207
211
|
}
|
|
208
212
|
|
|
209
213
|
/** Mapping between all available schema types and the resolvers parents */
|
|
210
214
|
export type ResolversParentTypes = {
|
|
211
|
-
Boolean: Scalars['Boolean']
|
|
212
|
-
DateTime: Scalars['DateTime']
|
|
215
|
+
Boolean: Scalars['Boolean']['output']
|
|
216
|
+
DateTime: Scalars['DateTime']['output']
|
|
213
217
|
Event: Event
|
|
214
218
|
EventArgs: EventArgs
|
|
215
|
-
Int: Scalars['Int']
|
|
216
|
-
Json: Scalars['Json']
|
|
219
|
+
Int: Scalars['Int']['output']
|
|
220
|
+
Json: Scalars['Json']['output']
|
|
217
221
|
Mutation: {}
|
|
218
222
|
ProcessBatchResponse: ProcessBatchResponse
|
|
219
223
|
Query: {}
|
|
220
224
|
SetVariablesArgs: SetVariablesArgs
|
|
221
225
|
SetVariablesResponse: SetVariablesResponse
|
|
222
|
-
String: Scalars['String']
|
|
223
|
-
Uuid: Scalars['Uuid']
|
|
226
|
+
String: Scalars['String']['output']
|
|
227
|
+
Uuid: Scalars['Uuid']['output']
|
|
224
228
|
Variable: Variable
|
|
225
229
|
VariableInput: VariableInput
|
|
226
230
|
}
|
|
@@ -56,7 +56,7 @@ export class TriggerPayloadBuilder {
|
|
|
56
56
|
trigger: events[0].listener.trigger.name,
|
|
57
57
|
entity: events[0].entity.name,
|
|
58
58
|
id: eventsByPrimary.primary,
|
|
59
|
-
selection: events[0].selection ?? selections[eventsByPrimary.primary],
|
|
59
|
+
selection: eventsByPrimary.events[0].selection ?? selections[eventsByPrimary.primary],
|
|
60
60
|
events: eventsByPrimary.events.map(it => this.buildBaseEventPayloads(it)),
|
|
61
61
|
})
|
|
62
62
|
}
|