Skip to content

Commit 22d8cbe

Browse files
authored
Merge pull request #875 from aws-amplify/main
chore: release codegen packages
2 parents f428460 + 8bad73d commit 22d8cbe

File tree

13 files changed

+959
-52
lines changed

13 files changed

+959
-52
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@
131131
"glob-parent": "^6.0.2",
132132
"parse-url": "^8.1.0",
133133
"graphql": "15.8.0",
134-
"xml2js": "0.5.0"
134+
"xml2js": "0.5.0",
135+
"axios": "^1.7.4"
135136
},
136137
"config": {
137138
"commitizen": {

packages/amplify-codegen-e2e-tests/src/__tests__/backends/graphql-generator-gen2/resource.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ const schema = a.schema({
2020
'PROGRESS',
2121
'COMPLETED',
2222
]),
23-
EchoQueryStatus: a.enum([
24-
'PROGRESS',
25-
'COMPLETED',
26-
]),
2723
// Non model type
2824
EchoResponse: a.customType({
2925
content: a.string(),

packages/appsync-modelgen-plugin/API.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ export type ModelIntrospectionSchema = {
133133
mutations?: SchemaMutations;
134134
subscriptions?: SchemaSubscriptions;
135135
inputs?: SchemaInputs;
136+
generations?: SchemaGenerations;
137+
conversations?: SchemaConversationRoutes;
136138
};
137139

138140
// Warning: (ae-forgotten-export) The symbol "RawAppSyncModelConfig" needs to be exported by the entry point index.d.ts
@@ -153,6 +155,31 @@ export type PrimaryKeyInfo = {
153155
// @public (undocumented)
154156
export type ScalarType = 'ID' | 'String' | 'Int' | 'Float' | 'AWSDate' | 'AWSTime' | 'AWSDateTime' | 'AWSTimestamp' | 'AWSEmail' | 'AWSURL' | 'AWSIPAddress' | 'Boolean' | 'AWSJSON' | 'AWSPhone';
155157

158+
// @public (undocumented)
159+
export type SchemaConversation = {
160+
modelName: string;
161+
};
162+
163+
// @public (undocumented)
164+
export type SchemaConversationMessage = {
165+
modelName: string;
166+
subscribe: SchemaSubscription;
167+
send: SchemaMutation;
168+
};
169+
170+
// @public (undocumented)
171+
export type SchemaConversationRoute = {
172+
name: string;
173+
models: SchemaModels;
174+
nonModels: SchemaNonModels;
175+
enums: SchemaEnums;
176+
conversation: SchemaConversation;
177+
message: SchemaConversationMessage;
178+
};
179+
180+
// @public (undocumented)
181+
export type SchemaConversationRoutes = Record<string, SchemaConversationRoute>;
182+
156183
// @public (undocumented)
157184
export type SchemaEnum = {
158185
name: string;
@@ -162,6 +189,9 @@ export type SchemaEnum = {
162189
// @public (undocumented)
163190
export type SchemaEnums = Record<string, SchemaEnum>;
164191

192+
// @public (undocumented)
193+
export type SchemaGenerations = SchemaQueries;
194+
165195
// @public (undocumented)
166196
export type SchemaInputs = Record<string, Input>;
167197

packages/appsync-modelgen-plugin/schemas/introspection/1/ModelIntrospectionSchema.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
},
2727
"inputs": {
2828
"$ref": "#/definitions/SchemaInputs"
29+
},
30+
"generations": {
31+
"$ref": "#/definitions/SchemaGenerations"
32+
},
33+
"conversations": {
34+
"$ref": "#/definitions/SchemaConversationRoutes"
2935
}
3036
},
3137
"required": [
@@ -532,6 +538,82 @@
532538
],
533539
"additionalProperties": false,
534540
"description": "Input Definition"
541+
},
542+
"SchemaGenerations": {
543+
"$ref": "#/definitions/SchemaQueries"
544+
},
545+
"SchemaConversationRoutes": {
546+
"$ref": "#/definitions/Record%3Cstring%2CSchemaConversationRoute%3E"
547+
},
548+
"Record<string,SchemaConversationRoute>": {
549+
"type": "object",
550+
"additionalProperties": {
551+
"$ref": "#/definitions/SchemaConversationRoute"
552+
}
553+
},
554+
"SchemaConversationRoute": {
555+
"type": "object",
556+
"properties": {
557+
"name": {
558+
"type": "string"
559+
},
560+
"models": {
561+
"$ref": "#/definitions/SchemaModels"
562+
},
563+
"nonModels": {
564+
"$ref": "#/definitions/SchemaNonModels"
565+
},
566+
"enums": {
567+
"$ref": "#/definitions/SchemaEnums"
568+
},
569+
"conversation": {
570+
"$ref": "#/definitions/SchemaConversation"
571+
},
572+
"message": {
573+
"$ref": "#/definitions/SchemaConversationMessage"
574+
}
575+
},
576+
"required": [
577+
"name",
578+
"models",
579+
"nonModels",
580+
"enums",
581+
"conversation",
582+
"message"
583+
],
584+
"additionalProperties": false
585+
},
586+
"SchemaConversation": {
587+
"type": "object",
588+
"properties": {
589+
"modelName": {
590+
"type": "string"
591+
}
592+
},
593+
"required": [
594+
"modelName"
595+
],
596+
"additionalProperties": false
597+
},
598+
"SchemaConversationMessage": {
599+
"type": "object",
600+
"properties": {
601+
"modelName": {
602+
"type": "string"
603+
},
604+
"subscribe": {
605+
"$ref": "#/definitions/SchemaSubscription"
606+
},
607+
"send": {
608+
"$ref": "#/definitions/SchemaMutation"
609+
}
610+
},
611+
"required": [
612+
"modelName",
613+
"subscribe",
614+
"send"
615+
],
616+
"additionalProperties": false
535617
}
536618
}
537619
}

0 commit comments

Comments
 (0)