Skip to content

Commit ce04628

Browse files
committed
split createRc and rc types
1 parent 9288f3a commit ce04628

File tree

2 files changed

+53
-34
lines changed

2 files changed

+53
-34
lines changed

infrastructure/terraform/modules/backend-api/spec.tmpl.json

Lines changed: 48 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -600,41 +600,56 @@
600600
"type": "object"
601601
},
602602
"RoutingConfig": {
603-
"allOf": [
604-
{
605-
"$ref": "#/components/schemas/CreateUpdateRoutingConfig"
603+
"properties": {
604+
"campaignId": {
605+
"type": "string"
606606
},
607-
{
608-
"properties": {
609-
"clientId": {
610-
"type": "string"
611-
},
612-
"createdAt": {
613-
"format": "date-time",
614-
"type": "string"
615-
},
616-
"id": {
617-
"format": "uuid",
618-
"type": "string"
619-
},
620-
"status": {
621-
"$ref": "#/components/schemas/RoutingConfigStatus"
622-
},
623-
"updatedAt": {
624-
"format": "date-time",
625-
"type": "string"
626-
}
607+
"cascade": {
608+
"items": {
609+
"$ref": "#/components/schemas/CascadeItem"
627610
},
628-
"required": [
629-
"clientId",
630-
"createdAt",
631-
"id",
632-
"status",
633-
"updatedAt"
634-
],
635-
"type": "object"
611+
"type": "array"
612+
},
613+
"cascadeGroupOverrides": {
614+
"items": {
615+
"$ref": "#/components/schemas/CascadeGroup"
616+
},
617+
"type": "array"
618+
},
619+
"clientId": {
620+
"type": "string"
621+
},
622+
"createdAt": {
623+
"format": "date-time",
624+
"type": "string"
625+
},
626+
"id": {
627+
"format": "uuid",
628+
"type": "string"
629+
},
630+
"name": {
631+
"type": "string"
632+
},
633+
"status": {
634+
"$ref": "#/components/schemas/RoutingConfigStatus"
635+
},
636+
"updatedAt": {
637+
"format": "date-time",
638+
"type": "string"
636639
}
637-
]
640+
},
641+
"required": [
642+
"campaignId",
643+
"cascadeGroupOverrides",
644+
"cascade",
645+
"clientId",
646+
"createdAt",
647+
"id",
648+
"name",
649+
"status",
650+
"updatedAt"
651+
],
652+
"type": "object"
638653
},
639654
"RoutingConfigStatus": {
640655
"anyOf": [
@@ -1635,4 +1650,4 @@
16351650
}
16361651
}
16371652
}
1638-
}
1653+
}

lambdas/backend-client/src/types/generated/types.gen.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,14 @@ export type ProofFileDetails = {
181181
virusScanStatus: VirusScanStatus;
182182
};
183183

184-
export type RoutingConfig = CreateUpdateRoutingConfig & {
184+
export type RoutingConfig = {
185+
campaignId: string;
186+
cascade: Array<CascadeItem>;
187+
cascadeGroupOverrides: Array<CascadeGroup>;
185188
clientId: string;
186189
createdAt: string;
187190
id: string;
191+
name: string;
188192
status: RoutingConfigStatus;
189193
updatedAt: string;
190194
};

0 commit comments

Comments
 (0)