@dmptool/types 1.2.0 → 1.2.1

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.
@@ -111,7 +111,14 @@ const questions_1 = require("../../questions");
111
111
  (0, globals_1.expect)(() => textAnswers_1.TextAreaAnswerSchema.parse(invalidData)).toThrow();
112
112
  });
113
113
  (0, globals_1.it)('should validate AffiliationSearchAnswer', () => {
114
- const validData = { type: 'affiliationSearch', answer: 'Search term', meta: { schemaVersion: questions_1.CURRENT_SCHEMA_VERSION } };
114
+ const validData = {
115
+ type: 'affiliationSearch',
116
+ answer: {
117
+ affiliationId: '12345',
118
+ affilationName: 'Search term'
119
+ },
120
+ meta: { schemaVersion: questions_1.CURRENT_SCHEMA_VERSION }
121
+ };
115
122
  (0, globals_1.expect)(() => graphQLAnswers_1.AffiliationSearchAnswerSchema.parse(validData)).not.toThrow();
116
123
  const invalidData = { type: 'affiliationSearch', answer: 12345, meta: { schemaVersion: questions_1.CURRENT_SCHEMA_VERSION } };
117
124
  (0, globals_1.expect)(() => graphQLAnswers_1.AffiliationSearchAnswerSchema.parse(invalidData)).toThrow();
@@ -17,7 +17,10 @@ describe('Get question answer defaultJSON', () => {
17
17
  const json = defaultJSON('affiliationSearch');
18
18
  const expectedJSON = {
19
19
  type: 'affiliationSearch',
20
- answer: '',
20
+ answer: {
21
+ affiliationId: '',
22
+ affiliationName: '',
23
+ },
21
24
  meta: { schemaVersion: questions_1.CURRENT_SCHEMA_VERSION },
22
25
  };
23
26
  expect(json).toEqual(expectedJSON);
@@ -33,19 +33,34 @@ export declare const AffiliationSearchAnswerSchema: z.ZodObject<{
33
33
  }>>;
34
34
  } & {
35
35
  type: z.ZodLiteral<"affiliationSearch">;
36
- answer: z.ZodDefault<z.ZodString>;
36
+ answer: z.ZodDefault<z.ZodObject<{
37
+ affiliationId: z.ZodDefault<z.ZodString>;
38
+ affiliationName: z.ZodDefault<z.ZodString>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ affiliationId: string;
41
+ affiliationName: string;
42
+ }, {
43
+ affiliationId?: string | undefined;
44
+ affiliationName?: string | undefined;
45
+ }>>;
37
46
  }, "strip", z.ZodTypeAny, {
38
47
  type: "affiliationSearch";
39
48
  meta: {
40
49
  schemaVersion: string;
41
50
  };
42
- answer: string;
51
+ answer: {
52
+ affiliationId: string;
53
+ affiliationName: string;
54
+ };
43
55
  }, {
44
56
  type: "affiliationSearch";
45
57
  meta?: {
46
58
  schemaVersion?: string | undefined;
47
59
  } | undefined;
48
- answer?: string | undefined;
60
+ answer?: {
61
+ affiliationId?: string | undefined;
62
+ affiliationName?: string | undefined;
63
+ } | undefined;
49
64
  }>;
50
65
  export type FilteredSearchAnswerType = z.infer<typeof FilteredSearchAnswerSchema>;
51
66
  export type AffiliationSearchAnswerType = z.infer<typeof AffiliationSearchAnswerSchema>;
@@ -10,5 +10,8 @@ exports.FilteredSearchAnswerSchema = answer_1.AnswerSchema.merge(zod_1.z.object(
10
10
  }));
11
11
  exports.AffiliationSearchAnswerSchema = answer_1.AnswerSchema.merge(zod_1.z.object({
12
12
  type: zod_1.z.literal('affiliationSearch'),
13
- answer: zod_1.z.string().default('') // The answer to the affiliation search (URI)
13
+ answer: zod_1.z.object({
14
+ affiliationId: zod_1.z.string().default(''), // The unique id of the affiliation (e.g. ROR URI)
15
+ affiliationName: zod_1.z.string().default('') // The name of the affiliation
16
+ }).default({})
14
17
  }));
@@ -257,19 +257,34 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
257
257
  }>>;
258
258
  } & {
259
259
  type: z.ZodLiteral<"affiliationSearch">;
260
- answer: z.ZodDefault<z.ZodString>;
260
+ answer: z.ZodDefault<z.ZodObject<{
261
+ affiliationId: z.ZodDefault<z.ZodString>;
262
+ affiliationName: z.ZodDefault<z.ZodString>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ affiliationId: string;
265
+ affiliationName: string;
266
+ }, {
267
+ affiliationId?: string | undefined;
268
+ affiliationName?: string | undefined;
269
+ }>>;
261
270
  }, "strip", z.ZodTypeAny, {
262
271
  type: "affiliationSearch";
263
272
  meta: {
264
273
  schemaVersion: string;
265
274
  };
266
- answer: string;
275
+ answer: {
276
+ affiliationId: string;
277
+ affiliationName: string;
278
+ };
267
279
  }, {
268
280
  type: "affiliationSearch";
269
281
  meta?: {
270
282
  schemaVersion?: string | undefined;
271
283
  } | undefined;
272
- answer?: string | undefined;
284
+ answer?: {
285
+ affiliationId?: string | undefined;
286
+ affiliationName?: string | undefined;
287
+ } | undefined;
273
288
  }>, z.ZodObject<{
274
289
  meta: z.ZodDefault<z.ZodObject<{
275
290
  schemaVersion: z.ZodDefault<z.ZodString>;
@@ -635,7 +650,10 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
635
650
  meta: {
636
651
  schemaVersion: string;
637
652
  };
638
- answer: string;
653
+ answer: {
654
+ affiliationId: string;
655
+ affiliationName: string;
656
+ };
639
657
  } | {
640
658
  type: "boolean";
641
659
  meta: {
@@ -730,7 +748,10 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
730
748
  meta?: {
731
749
  schemaVersion?: string | undefined;
732
750
  } | undefined;
733
- answer?: string | undefined;
751
+ answer?: {
752
+ affiliationId?: string | undefined;
753
+ affiliationName?: string | undefined;
754
+ } | undefined;
734
755
  } | {
735
756
  type: "boolean";
736
757
  meta?: {
@@ -831,7 +852,10 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
831
852
  meta: {
832
853
  schemaVersion: string;
833
854
  };
834
- answer: string;
855
+ answer: {
856
+ affiliationId: string;
857
+ affiliationName: string;
858
+ };
835
859
  } | {
836
860
  type: "boolean";
837
861
  meta: {
@@ -933,7 +957,10 @@ export declare const AnyAnswerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
933
957
  meta?: {
934
958
  schemaVersion?: string | undefined;
935
959
  } | undefined;
936
- answer?: string | undefined;
960
+ answer?: {
961
+ affiliationId?: string | undefined;
962
+ affiliationName?: string | undefined;
963
+ } | undefined;
937
964
  } | {
938
965
  type: "boolean";
939
966
  meta?: {
@@ -9,19 +9,34 @@ export declare const AnyTableColumnAnswerSchema: z.ZodDiscriminatedUnion<"type",
9
9
  }>>;
10
10
  } & {
11
11
  type: z.ZodLiteral<"affiliationSearch">;
12
- answer: z.ZodDefault<z.ZodString>;
12
+ answer: z.ZodDefault<z.ZodObject<{
13
+ affiliationId: z.ZodDefault<z.ZodString>;
14
+ affiliationName: z.ZodDefault<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ affiliationId: string;
17
+ affiliationName: string;
18
+ }, {
19
+ affiliationId?: string | undefined;
20
+ affiliationName?: string | undefined;
21
+ }>>;
13
22
  }, "strip", z.ZodTypeAny, {
14
23
  type: "affiliationSearch";
15
24
  meta: {
16
25
  schemaVersion: string;
17
26
  };
18
- answer: string;
27
+ answer: {
28
+ affiliationId: string;
29
+ affiliationName: string;
30
+ };
19
31
  }, {
20
32
  type: "affiliationSearch";
21
33
  meta?: {
22
34
  schemaVersion?: string | undefined;
23
35
  } | undefined;
24
- answer?: string | undefined;
36
+ answer?: {
37
+ affiliationId?: string | undefined;
38
+ affiliationName?: string | undefined;
39
+ } | undefined;
25
40
  }>, z.ZodObject<{
26
41
  meta: z.ZodDefault<z.ZodObject<{
27
42
  schemaVersion: z.ZodDefault<z.ZodString>;
@@ -371,19 +386,34 @@ export declare const TableRowAnswerSchema: z.ZodObject<{
371
386
  }>>;
372
387
  } & {
373
388
  type: z.ZodLiteral<"affiliationSearch">;
374
- answer: z.ZodDefault<z.ZodString>;
389
+ answer: z.ZodDefault<z.ZodObject<{
390
+ affiliationId: z.ZodDefault<z.ZodString>;
391
+ affiliationName: z.ZodDefault<z.ZodString>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ affiliationId: string;
394
+ affiliationName: string;
395
+ }, {
396
+ affiliationId?: string | undefined;
397
+ affiliationName?: string | undefined;
398
+ }>>;
375
399
  }, "strip", z.ZodTypeAny, {
376
400
  type: "affiliationSearch";
377
401
  meta: {
378
402
  schemaVersion: string;
379
403
  };
380
- answer: string;
404
+ answer: {
405
+ affiliationId: string;
406
+ affiliationName: string;
407
+ };
381
408
  }, {
382
409
  type: "affiliationSearch";
383
410
  meta?: {
384
411
  schemaVersion?: string | undefined;
385
412
  } | undefined;
386
- answer?: string | undefined;
413
+ answer?: {
414
+ affiliationId?: string | undefined;
415
+ affiliationName?: string | undefined;
416
+ } | undefined;
387
417
  }>, z.ZodObject<{
388
418
  meta: z.ZodDefault<z.ZodObject<{
389
419
  schemaVersion: z.ZodDefault<z.ZodString>;
@@ -749,7 +779,10 @@ export declare const TableRowAnswerSchema: z.ZodObject<{
749
779
  meta: {
750
780
  schemaVersion: string;
751
781
  };
752
- answer: string;
782
+ answer: {
783
+ affiliationId: string;
784
+ affiliationName: string;
785
+ };
753
786
  } | {
754
787
  type: "boolean";
755
788
  meta: {
@@ -844,7 +877,10 @@ export declare const TableRowAnswerSchema: z.ZodObject<{
844
877
  meta?: {
845
878
  schemaVersion?: string | undefined;
846
879
  } | undefined;
847
- answer?: string | undefined;
880
+ answer?: {
881
+ affiliationId?: string | undefined;
882
+ affiliationName?: string | undefined;
883
+ } | undefined;
848
884
  } | {
849
885
  type: "boolean";
850
886
  meta?: {
@@ -935,19 +971,34 @@ export declare const TableAnswerSchema: z.ZodObject<{
935
971
  }>>;
936
972
  } & {
937
973
  type: z.ZodLiteral<"affiliationSearch">;
938
- answer: z.ZodDefault<z.ZodString>;
974
+ answer: z.ZodDefault<z.ZodObject<{
975
+ affiliationId: z.ZodDefault<z.ZodString>;
976
+ affiliationName: z.ZodDefault<z.ZodString>;
977
+ }, "strip", z.ZodTypeAny, {
978
+ affiliationId: string;
979
+ affiliationName: string;
980
+ }, {
981
+ affiliationId?: string | undefined;
982
+ affiliationName?: string | undefined;
983
+ }>>;
939
984
  }, "strip", z.ZodTypeAny, {
940
985
  type: "affiliationSearch";
941
986
  meta: {
942
987
  schemaVersion: string;
943
988
  };
944
- answer: string;
989
+ answer: {
990
+ affiliationId: string;
991
+ affiliationName: string;
992
+ };
945
993
  }, {
946
994
  type: "affiliationSearch";
947
995
  meta?: {
948
996
  schemaVersion?: string | undefined;
949
997
  } | undefined;
950
- answer?: string | undefined;
998
+ answer?: {
999
+ affiliationId?: string | undefined;
1000
+ affiliationName?: string | undefined;
1001
+ } | undefined;
951
1002
  }>, z.ZodObject<{
952
1003
  meta: z.ZodDefault<z.ZodObject<{
953
1004
  schemaVersion: z.ZodDefault<z.ZodString>;
@@ -1313,7 +1364,10 @@ export declare const TableAnswerSchema: z.ZodObject<{
1313
1364
  meta: {
1314
1365
  schemaVersion: string;
1315
1366
  };
1316
- answer: string;
1367
+ answer: {
1368
+ affiliationId: string;
1369
+ affiliationName: string;
1370
+ };
1317
1371
  } | {
1318
1372
  type: "boolean";
1319
1373
  meta: {
@@ -1408,7 +1462,10 @@ export declare const TableAnswerSchema: z.ZodObject<{
1408
1462
  meta?: {
1409
1463
  schemaVersion?: string | undefined;
1410
1464
  } | undefined;
1411
- answer?: string | undefined;
1465
+ answer?: {
1466
+ affiliationId?: string | undefined;
1467
+ affiliationName?: string | undefined;
1468
+ } | undefined;
1412
1469
  } | {
1413
1470
  type: "boolean";
1414
1471
  meta?: {
@@ -1509,7 +1566,10 @@ export declare const TableAnswerSchema: z.ZodObject<{
1509
1566
  meta: {
1510
1567
  schemaVersion: string;
1511
1568
  };
1512
- answer: string;
1569
+ answer: {
1570
+ affiliationId: string;
1571
+ affiliationName: string;
1572
+ };
1513
1573
  } | {
1514
1574
  type: "boolean";
1515
1575
  meta: {
@@ -1611,7 +1671,10 @@ export declare const TableAnswerSchema: z.ZodObject<{
1611
1671
  meta?: {
1612
1672
  schemaVersion?: string | undefined;
1613
1673
  } | undefined;
1614
- answer?: string | undefined;
1674
+ answer?: {
1675
+ affiliationId?: string | undefined;
1676
+ affiliationName?: string | undefined;
1677
+ } | undefined;
1615
1678
  } | {
1616
1679
  type: "boolean";
1617
1680
  meta?: {
@@ -169,7 +169,7 @@ export declare const FilteredSearchQuestionSchema: z.ZodObject<{
169
169
  }[] | undefined;
170
170
  } | undefined;
171
171
  }>;
172
- export declare const affiliationQuery = "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
172
+ export declare const affiliationQuery: string;
173
173
  export declare const AffiliationSearchQuestionSchema: z.ZodObject<{
174
174
  meta: z.ZodDefault<z.ZodObject<{
175
175
  schemaVersion: z.ZodDefault<z.ZodString>;
@@ -202,7 +202,7 @@ export declare const AffiliationSearchQuestionSchema: z.ZodObject<{
202
202
  graphQL: z.ZodDefault<z.ZodObject<{
203
203
  localQueryId: z.ZodOptional<z.ZodString>;
204
204
  } & {
205
- query: z.ZodDefault<z.ZodLiteral<"\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}">>;
205
+ query: z.ZodDefault<z.ZodLiteral<string>>;
206
206
  queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
207
207
  variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
208
208
  name: z.ZodDefault<z.ZodLiteral<"name">>;
@@ -244,7 +244,7 @@ export declare const AffiliationSearchQuestionSchema: z.ZodObject<{
244
244
  propertyName: "displayName";
245
245
  labelTranslationKey?: string | undefined;
246
246
  }[];
247
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
247
+ query: string;
248
248
  responseField: "affiliations.items";
249
249
  variables: {
250
250
  type: string;
@@ -263,7 +263,7 @@ export declare const AffiliationSearchQuestionSchema: z.ZodObject<{
263
263
  propertyName?: "displayName" | undefined;
264
264
  }[] | undefined;
265
265
  localQueryId?: string | undefined;
266
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
266
+ query?: string | undefined;
267
267
  responseField?: "affiliations.items" | undefined;
268
268
  variables?: {
269
269
  type?: string | undefined;
@@ -293,7 +293,7 @@ export declare const AffiliationSearchQuestionSchema: z.ZodObject<{
293
293
  propertyName: "displayName";
294
294
  labelTranslationKey?: string | undefined;
295
295
  }[];
296
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
296
+ query: string;
297
297
  responseField: "affiliations.items";
298
298
  variables: {
299
299
  type: string;
@@ -325,7 +325,7 @@ export declare const AffiliationSearchQuestionSchema: z.ZodObject<{
325
325
  propertyName?: "displayName" | undefined;
326
326
  }[] | undefined;
327
327
  localQueryId?: string | undefined;
328
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
328
+ query?: string | undefined;
329
329
  responseField?: "affiliations.items" | undefined;
330
330
  variables?: {
331
331
  type?: string | undefined;
@@ -42,18 +42,18 @@ const TypeaheadSearchQuestionSchema = question_1.QuestionSchema.merge(zod_1.z.ob
42
42
  type: zod_1.z.literal('typeaheadSearch'), // The type of question
43
43
  graphQL: GraphQLQuery, // The GraphQL query options for the typeahead search
44
44
  }));
45
- exports.affiliationQuery = `
46
- query Affiliations($name: String!){
47
- affiliations(name: $name) {
48
- totalCount
49
- nextCursor
50
- items {
51
- id
52
- displayName
53
- uri
54
- }
55
- }
56
- }`;
45
+ exports.affiliationQuery = '' +
46
+ 'query Affiliations($name: String!){' +
47
+ 'affiliations(name: $name) {' +
48
+ 'totalCount' +
49
+ 'nextCursor' +
50
+ 'items {' +
51
+ 'id' +
52
+ 'displayName' +
53
+ 'uri' +
54
+ '}' +
55
+ '}' +
56
+ '}';
57
57
  exports.AffiliationSearchQuestionSchema = TypeaheadSearchQuestionSchema.merge(zod_1.z.object({
58
58
  type: zod_1.z.literal('affiliationSearch'),
59
59
  attributes: BaseAttributes.default({}),
@@ -45,7 +45,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
45
45
  graphQL: z.ZodDefault<z.ZodObject<{
46
46
  localQueryId: z.ZodOptional<z.ZodString>;
47
47
  } & {
48
- query: z.ZodDefault<z.ZodLiteral<"\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}">>;
48
+ query: z.ZodDefault<z.ZodLiteral<string>>;
49
49
  queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
50
50
  variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
51
51
  name: z.ZodDefault<z.ZodLiteral<"name">>;
@@ -87,7 +87,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
87
87
  propertyName: "displayName";
88
88
  labelTranslationKey?: string | undefined;
89
89
  }[];
90
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
90
+ query: string;
91
91
  responseField: "affiliations.items";
92
92
  variables: {
93
93
  type: string;
@@ -106,7 +106,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
106
106
  propertyName?: "displayName" | undefined;
107
107
  }[] | undefined;
108
108
  localQueryId?: string | undefined;
109
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
109
+ query?: string | undefined;
110
110
  responseField?: "affiliations.items" | undefined;
111
111
  variables?: {
112
112
  type?: string | undefined;
@@ -136,7 +136,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
136
136
  propertyName: "displayName";
137
137
  labelTranslationKey?: string | undefined;
138
138
  }[];
139
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
139
+ query: string;
140
140
  responseField: "affiliations.items";
141
141
  variables: {
142
142
  type: string;
@@ -168,7 +168,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
168
168
  propertyName?: "displayName" | undefined;
169
169
  }[] | undefined;
170
170
  localQueryId?: string | undefined;
171
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
171
+ query?: string | undefined;
172
172
  responseField?: "affiliations.items" | undefined;
173
173
  variables?: {
174
174
  type?: string | undefined;
@@ -1239,7 +1239,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1239
1239
  graphQL: z.ZodDefault<z.ZodObject<{
1240
1240
  localQueryId: z.ZodOptional<z.ZodString>;
1241
1241
  } & {
1242
- query: z.ZodDefault<z.ZodLiteral<"\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}">>;
1242
+ query: z.ZodDefault<z.ZodLiteral<string>>;
1243
1243
  queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1244
1244
  variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
1245
1245
  name: z.ZodDefault<z.ZodLiteral<"name">>;
@@ -1281,7 +1281,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1281
1281
  propertyName: "displayName";
1282
1282
  labelTranslationKey?: string | undefined;
1283
1283
  }[];
1284
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
1284
+ query: string;
1285
1285
  responseField: "affiliations.items";
1286
1286
  variables: {
1287
1287
  type: string;
@@ -1300,7 +1300,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1300
1300
  propertyName?: "displayName" | undefined;
1301
1301
  }[] | undefined;
1302
1302
  localQueryId?: string | undefined;
1303
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
1303
+ query?: string | undefined;
1304
1304
  responseField?: "affiliations.items" | undefined;
1305
1305
  variables?: {
1306
1306
  type?: string | undefined;
@@ -1330,7 +1330,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1330
1330
  propertyName: "displayName";
1331
1331
  labelTranslationKey?: string | undefined;
1332
1332
  }[];
1333
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
1333
+ query: string;
1334
1334
  responseField: "affiliations.items";
1335
1335
  variables: {
1336
1336
  type: string;
@@ -1362,7 +1362,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
1362
1362
  propertyName?: "displayName" | undefined;
1363
1363
  }[] | undefined;
1364
1364
  localQueryId?: string | undefined;
1365
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
1365
+ query?: string | undefined;
1366
1366
  responseField?: "affiliations.items" | undefined;
1367
1367
  variables?: {
1368
1368
  type?: string | undefined;
@@ -2771,7 +2771,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
2771
2771
  propertyName: "displayName";
2772
2772
  labelTranslationKey?: string | undefined;
2773
2773
  }[];
2774
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
2774
+ query: string;
2775
2775
  responseField: "affiliations.items";
2776
2776
  variables: {
2777
2777
  type: string;
@@ -3041,7 +3041,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3041
3041
  propertyName?: "displayName" | undefined;
3042
3042
  }[] | undefined;
3043
3043
  localQueryId?: string | undefined;
3044
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
3044
+ query?: string | undefined;
3045
3045
  responseField?: "affiliations.items" | undefined;
3046
3046
  variables?: {
3047
3047
  type?: string | undefined;
@@ -3356,7 +3356,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3356
3356
  propertyName: "displayName";
3357
3357
  labelTranslationKey?: string | undefined;
3358
3358
  }[];
3359
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
3359
+ query: string;
3360
3360
  responseField: "affiliations.items";
3361
3361
  variables: {
3362
3362
  type: string;
@@ -3644,7 +3644,7 @@ export declare const AnyQuestionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
3644
3644
  propertyName?: "displayName" | undefined;
3645
3645
  }[] | undefined;
3646
3646
  localQueryId?: string | undefined;
3647
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
3647
+ query?: string | undefined;
3648
3648
  responseField?: "affiliations.items" | undefined;
3649
3649
  variables?: {
3650
3650
  type?: string | undefined;
@@ -31,7 +31,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
31
31
  graphQL: z.ZodDefault<z.ZodObject<{
32
32
  localQueryId: z.ZodOptional<z.ZodString>;
33
33
  } & {
34
- query: z.ZodDefault<z.ZodLiteral<"\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}">>;
34
+ query: z.ZodDefault<z.ZodLiteral<string>>;
35
35
  queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
36
36
  variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
37
37
  name: z.ZodDefault<z.ZodLiteral<"name">>;
@@ -73,7 +73,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
73
73
  propertyName: "displayName";
74
74
  labelTranslationKey?: string | undefined;
75
75
  }[];
76
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
76
+ query: string;
77
77
  responseField: "affiliations.items";
78
78
  variables: {
79
79
  type: string;
@@ -92,7 +92,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
92
92
  propertyName?: "displayName" | undefined;
93
93
  }[] | undefined;
94
94
  localQueryId?: string | undefined;
95
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
95
+ query?: string | undefined;
96
96
  responseField?: "affiliations.items" | undefined;
97
97
  variables?: {
98
98
  type?: string | undefined;
@@ -122,7 +122,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
122
122
  propertyName: "displayName";
123
123
  labelTranslationKey?: string | undefined;
124
124
  }[];
125
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
125
+ query: string;
126
126
  responseField: "affiliations.items";
127
127
  variables: {
128
128
  type: string;
@@ -154,7 +154,7 @@ export declare const AnyTableColumnQuestionSchema: z.ZodDiscriminatedUnion<"type
154
154
  propertyName?: "displayName" | undefined;
155
155
  }[] | undefined;
156
156
  localQueryId?: string | undefined;
157
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
157
+ query?: string | undefined;
158
158
  responseField?: "affiliations.items" | undefined;
159
159
  variables?: {
160
160
  type?: string | undefined;
@@ -1342,7 +1342,7 @@ export declare const TableColumn: z.ZodObject<{
1342
1342
  graphQL: z.ZodDefault<z.ZodObject<{
1343
1343
  localQueryId: z.ZodOptional<z.ZodString>;
1344
1344
  } & {
1345
- query: z.ZodDefault<z.ZodLiteral<"\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}">>;
1345
+ query: z.ZodDefault<z.ZodLiteral<string>>;
1346
1346
  queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
1347
1347
  variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
1348
1348
  name: z.ZodDefault<z.ZodLiteral<"name">>;
@@ -1384,7 +1384,7 @@ export declare const TableColumn: z.ZodObject<{
1384
1384
  propertyName: "displayName";
1385
1385
  labelTranslationKey?: string | undefined;
1386
1386
  }[];
1387
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
1387
+ query: string;
1388
1388
  responseField: "affiliations.items";
1389
1389
  variables: {
1390
1390
  type: string;
@@ -1403,7 +1403,7 @@ export declare const TableColumn: z.ZodObject<{
1403
1403
  propertyName?: "displayName" | undefined;
1404
1404
  }[] | undefined;
1405
1405
  localQueryId?: string | undefined;
1406
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
1406
+ query?: string | undefined;
1407
1407
  responseField?: "affiliations.items" | undefined;
1408
1408
  variables?: {
1409
1409
  type?: string | undefined;
@@ -1433,7 +1433,7 @@ export declare const TableColumn: z.ZodObject<{
1433
1433
  propertyName: "displayName";
1434
1434
  labelTranslationKey?: string | undefined;
1435
1435
  }[];
1436
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
1436
+ query: string;
1437
1437
  responseField: "affiliations.items";
1438
1438
  variables: {
1439
1439
  type: string;
@@ -1465,7 +1465,7 @@ export declare const TableColumn: z.ZodObject<{
1465
1465
  propertyName?: "displayName" | undefined;
1466
1466
  }[] | undefined;
1467
1467
  localQueryId?: string | undefined;
1468
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
1468
+ query?: string | undefined;
1469
1469
  responseField?: "affiliations.items" | undefined;
1470
1470
  variables?: {
1471
1471
  type?: string | undefined;
@@ -2874,7 +2874,7 @@ export declare const TableColumn: z.ZodObject<{
2874
2874
  propertyName: "displayName";
2875
2875
  labelTranslationKey?: string | undefined;
2876
2876
  }[];
2877
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
2877
+ query: string;
2878
2878
  responseField: "affiliations.items";
2879
2879
  variables: {
2880
2880
  type: string;
@@ -3144,7 +3144,7 @@ export declare const TableColumn: z.ZodObject<{
3144
3144
  propertyName?: "displayName" | undefined;
3145
3145
  }[] | undefined;
3146
3146
  localQueryId?: string | undefined;
3147
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
3147
+ query?: string | undefined;
3148
3148
  responseField?: "affiliations.items" | undefined;
3149
3149
  variables?: {
3150
3150
  type?: string | undefined;
@@ -3208,7 +3208,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
3208
3208
  graphQL: z.ZodDefault<z.ZodObject<{
3209
3209
  localQueryId: z.ZodOptional<z.ZodString>;
3210
3210
  } & {
3211
- query: z.ZodDefault<z.ZodLiteral<"\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}">>;
3211
+ query: z.ZodDefault<z.ZodLiteral<string>>;
3212
3212
  queryId: z.ZodOptional<z.ZodDefault<z.ZodString>>;
3213
3213
  variables: z.ZodDefault<z.ZodArray<z.ZodObject<{
3214
3214
  name: z.ZodDefault<z.ZodLiteral<"name">>;
@@ -3250,7 +3250,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
3250
3250
  propertyName: "displayName";
3251
3251
  labelTranslationKey?: string | undefined;
3252
3252
  }[];
3253
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
3253
+ query: string;
3254
3254
  responseField: "affiliations.items";
3255
3255
  variables: {
3256
3256
  type: string;
@@ -3269,7 +3269,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
3269
3269
  propertyName?: "displayName" | undefined;
3270
3270
  }[] | undefined;
3271
3271
  localQueryId?: string | undefined;
3272
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
3272
+ query?: string | undefined;
3273
3273
  responseField?: "affiliations.items" | undefined;
3274
3274
  variables?: {
3275
3275
  type?: string | undefined;
@@ -3299,7 +3299,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
3299
3299
  propertyName: "displayName";
3300
3300
  labelTranslationKey?: string | undefined;
3301
3301
  }[];
3302
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
3302
+ query: string;
3303
3303
  responseField: "affiliations.items";
3304
3304
  variables: {
3305
3305
  type: string;
@@ -3331,7 +3331,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
3331
3331
  propertyName?: "displayName" | undefined;
3332
3332
  }[] | undefined;
3333
3333
  localQueryId?: string | undefined;
3334
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
3334
+ query?: string | undefined;
3335
3335
  responseField?: "affiliations.items" | undefined;
3336
3336
  variables?: {
3337
3337
  type?: string | undefined;
@@ -4740,7 +4740,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
4740
4740
  propertyName: "displayName";
4741
4741
  labelTranslationKey?: string | undefined;
4742
4742
  }[];
4743
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
4743
+ query: string;
4744
4744
  responseField: "affiliations.items";
4745
4745
  variables: {
4746
4746
  type: string;
@@ -5010,7 +5010,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
5010
5010
  propertyName?: "displayName" | undefined;
5011
5011
  }[] | undefined;
5012
5012
  localQueryId?: string | undefined;
5013
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
5013
+ query?: string | undefined;
5014
5014
  responseField?: "affiliations.items" | undefined;
5015
5015
  variables?: {
5016
5016
  type?: string | undefined;
@@ -5325,7 +5325,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
5325
5325
  propertyName: "displayName";
5326
5326
  labelTranslationKey?: string | undefined;
5327
5327
  }[];
5328
- query: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}";
5328
+ query: string;
5329
5329
  responseField: "affiliations.items";
5330
5330
  variables: {
5331
5331
  type: string;
@@ -5613,7 +5613,7 @@ export declare const TableQuestionSchema: z.ZodObject<{
5613
5613
  propertyName?: "displayName" | undefined;
5614
5614
  }[] | undefined;
5615
5615
  localQueryId?: string | undefined;
5616
- query?: "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}" | undefined;
5616
+ query?: string | undefined;
5617
5617
  responseField?: "affiliations.items" | undefined;
5618
5618
  variables?: {
5619
5619
  type?: string | undefined;
@@ -20,8 +20,19 @@
20
20
  "default": {}
21
21
  },
22
22
  "answer": {
23
- "type": "string",
24
- "default": ""
23
+ "type": "object",
24
+ "properties": {
25
+ "affiliationId": {
26
+ "type": "string",
27
+ "default": ""
28
+ },
29
+ "affiliationName": {
30
+ "type": "string",
31
+ "default": ""
32
+ }
33
+ },
34
+ "additionalProperties": false,
35
+ "default": {}
25
36
  }
26
37
  },
27
38
  "required": [
@@ -74,8 +74,8 @@
74
74
  },
75
75
  "query": {
76
76
  "type": "string",
77
- "const": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}",
78
- "default": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}"
77
+ "const": "query Affiliations($name: String!){affiliations(name: $name) {totalCountnextCursoritems {iddisplayNameuri}}}",
78
+ "default": "query Affiliations($name: String!){affiliations(name: $name) {totalCountnextCursoritems {iddisplayNameuri}}}"
79
79
  },
80
80
  "responseField": {
81
81
  "type": "string",
@@ -246,8 +246,19 @@
246
246
  "$ref": "#/definitions/AnyAnswer/anyOf/0/properties/meta"
247
247
  },
248
248
  "answer": {
249
- "type": "string",
250
- "default": ""
249
+ "type": "object",
250
+ "properties": {
251
+ "affiliationId": {
252
+ "type": "string",
253
+ "default": ""
254
+ },
255
+ "affiliationName": {
256
+ "type": "string",
257
+ "default": ""
258
+ }
259
+ },
260
+ "additionalProperties": false,
261
+ "default": {}
251
262
  }
252
263
  },
253
264
  "required": [
@@ -76,8 +76,8 @@
76
76
  },
77
77
  "query": {
78
78
  "type": "string",
79
- "const": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}",
80
- "default": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}"
79
+ "const": "query Affiliations($name: String!){affiliations(name: $name) {totalCountnextCursoritems {iddisplayNameuri}}}",
80
+ "default": "query Affiliations($name: String!){affiliations(name: $name) {totalCountnextCursoritems {iddisplayNameuri}}}"
81
81
  },
82
82
  "responseField": {
83
83
  "type": "string",
@@ -22,8 +22,19 @@
22
22
  "default": {}
23
23
  },
24
24
  "answer": {
25
- "type": "string",
26
- "default": ""
25
+ "type": "object",
26
+ "properties": {
27
+ "affiliationId": {
28
+ "type": "string",
29
+ "default": ""
30
+ },
31
+ "affiliationName": {
32
+ "type": "string",
33
+ "default": ""
34
+ }
35
+ },
36
+ "additionalProperties": false,
37
+ "default": {}
27
38
  }
28
39
  },
29
40
  "required": [
@@ -76,8 +76,8 @@
76
76
  },
77
77
  "query": {
78
78
  "type": "string",
79
- "const": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}",
80
- "default": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}"
79
+ "const": "query Affiliations($name: String!){affiliations(name: $name) {totalCountnextCursoritems {iddisplayNameuri}}}",
80
+ "default": "query Affiliations($name: String!){affiliations(name: $name) {totalCountnextCursoritems {iddisplayNameuri}}}"
81
81
  },
82
82
  "responseField": {
83
83
  "type": "string",
@@ -48,8 +48,19 @@
48
48
  "$ref": "#/definitions/TableAnswer/properties/meta"
49
49
  },
50
50
  "answer": {
51
- "type": "string",
52
- "default": ""
51
+ "type": "object",
52
+ "properties": {
53
+ "affiliationId": {
54
+ "type": "string",
55
+ "default": ""
56
+ },
57
+ "affiliationName": {
58
+ "type": "string",
59
+ "default": ""
60
+ }
61
+ },
62
+ "additionalProperties": false,
63
+ "default": {}
53
64
  }
54
65
  },
55
66
  "required": [
@@ -129,8 +129,8 @@
129
129
  },
130
130
  "query": {
131
131
  "type": "string",
132
- "const": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}",
133
- "default": "\nquery Affiliations($name: String!){\n affiliations(name: $name) {\n totalCount\n nextCursor\n items {\n id\n displayName\n uri\n }\n }\n}"
132
+ "const": "query Affiliations($name: String!){affiliations(name: $name) {totalCountnextCursoritems {iddisplayNameuri}}}",
133
+ "default": "query Affiliations($name: String!){affiliations(name: $name) {totalCountnextCursoritems {iddisplayNameuri}}}"
134
134
  },
135
135
  "responseField": {
136
136
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmptool/types",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "TypeScript types for DMPTool",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",