@@ -35,6 +35,8 @@ export type Access = {
35
35
granter : Scalars [ 'String' ]
36
36
/** id for the access entry */
37
37
id : Scalars [ 'ID' ]
38
+ /** polly is the documentation for the access grant */
39
+ polly ?: Maybe < PollyResult >
38
40
/** revoked is timestamp for when access was revoked */
39
41
revoked ?: Maybe < Scalars [ 'Time' ] >
40
42
/** subject to grant access */
@@ -264,10 +266,7 @@ export type MutationDummyArgs = {
264
266
}
265
267
266
268
export type MutationGrantAccessToDataproductArgs = {
267
- dataproductID : Scalars [ 'ID' ]
268
- expires ?: Maybe < Scalars [ 'Time' ] >
269
- subject ?: Maybe < Scalars [ 'String' ] >
270
- subjectType ?: Maybe < SubjectType >
269
+ input : NewGrant
271
270
}
272
271
273
272
export type MutationMapDataproductArgs = {
@@ -332,6 +331,20 @@ export type NewDataproduct = {
332
331
teamkatalogenURL ?: Maybe < Scalars [ 'String' ] >
333
332
}
334
333
334
+ /** NewGrant contains metadata on a dataproduct grant */
335
+ export type NewGrant = {
336
+ /** id of dataproduct. */
337
+ dataproductID : Scalars [ 'ID' ]
338
+ /** expires is a timestamp for when the access expires. */
339
+ expires ?: Maybe < Scalars [ 'Time' ] >
340
+ /** polly is the process policy attached to this grant */
341
+ polly ?: Maybe < PollyInput >
342
+ /** subject to be granted access. */
343
+ subject ?: Maybe < Scalars [ 'String' ] >
344
+ /** subjectType is the type of entity which should be granted access (user, group or service account). */
345
+ subjectType ?: Maybe < SubjectType >
346
+ }
347
+
335
348
export type NewStory = {
336
349
/** group is the owner group for the story. */
337
350
group : Scalars [ 'String' ]
@@ -354,6 +367,25 @@ export type Owner = {
354
367
teamkatalogenURL ?: Maybe < Scalars [ 'String' ] >
355
368
}
356
369
370
+ export type PollyInput = {
371
+ /** id from polly */
372
+ id : Scalars [ 'String' ]
373
+ /** name from polly */
374
+ name : Scalars [ 'String' ]
375
+ /** url from polly */
376
+ url : Scalars [ 'String' ]
377
+ }
378
+
379
+ export type PollyResult = {
380
+ __typename ?: 'PollyResult'
381
+ /** id from polly */
382
+ id : Scalars [ 'String' ]
383
+ /** name from polly */
384
+ name : Scalars [ 'String' ]
385
+ /** url from polly */
386
+ url : Scalars [ 'String' ]
387
+ }
388
+
357
389
export type Query = {
358
390
__typename ?: 'Query'
359
391
/** dataproduct returns the given dataproduct. */
@@ -376,6 +408,8 @@ export type Query = {
376
408
groupStats : Array < GroupStats >
377
409
/** Keywords returns all keywords, with an optional filter */
378
410
keywords : Array < Keyword >
411
+ /** searches polly for process purposes matching query input */
412
+ polly : Array < PollyResult >
379
413
/** search through existing dataproducts. */
380
414
search : Array < SearchResultRow >
381
415
/** stories returns all either draft or published stories depending on the draft boolean. */
@@ -426,6 +460,10 @@ export type QueryKeywordsArgs = {
426
460
prefix ?: Maybe < Scalars [ 'String' ] >
427
461
}
428
462
463
+ export type QueryPollyArgs = {
464
+ q : Scalars [ 'String' ]
465
+ }
466
+
429
467
export type QuerySearchArgs = {
430
468
options ?: Maybe < SearchOptions >
431
469
q ?: Maybe < SearchQuery >
@@ -696,10 +734,7 @@ export type DataproductAccessQuery = {
696
734
}
697
735
698
736
export type GrantAccessMutationVariables = Exact < {
699
- dataproductID : Scalars [ 'ID' ]
700
- subject : Scalars [ 'String' ]
701
- subjectType : SubjectType
702
- expires ?: Maybe < Scalars [ 'Time' ] >
737
+ input : NewGrant
703
738
} >
704
739
705
740
export type GrantAccessMutation = {
@@ -1279,18 +1314,8 @@ export type DataproductAccessQueryResult = Apollo.QueryResult<
1279
1314
DataproductAccessQueryVariables
1280
1315
>
1281
1316
export const GrantAccessDocument = gql `
1282
- mutation GrantAccess(
1283
- $dataproductID: ID!
1284
- $subject: String!
1285
- $subjectType: SubjectType!
1286
- $expires: Time
1287
- ) {
1288
- grantAccessToDataproduct(
1289
- dataproductID: $dataproductID
1290
- subject: $subject
1291
- subjectType: $subjectType
1292
- expires: $expires
1293
- ) {
1317
+ mutation GrantAccess($input: NewGrant!) {
1318
+ grantAccessToDataproduct(input: $input) {
1294
1319
id
1295
1320
}
1296
1321
}
@@ -1313,10 +1338,7 @@ export type GrantAccessMutationFn = Apollo.MutationFunction<
1313
1338
* @example
1314
1339
* const [grantAccessMutation, { data, loading, error }] = useGrantAccessMutation({
1315
1340
* variables: {
1316
- * dataproductID: // value for 'dataproductID'
1317
- * subject: // value for 'subject'
1318
- * subjectType: // value for 'subjectType'
1319
- * expires: // value for 'expires'
1341
+ * input: // value for 'input'
1320
1342
* },
1321
1343
* });
1322
1344
*/
0 commit comments