Skip to content

Commit

Permalink
Create campaign disponibility (#52)
Browse files Browse the repository at this point in the history
* Create campaign disponibility

* Applications messages
  • Loading branch information
Lucieo authored Feb 9, 2024
1 parent b859f1a commit 14a18e8
Show file tree
Hide file tree
Showing 35 changed files with 994 additions and 52 deletions.
9 changes: 9 additions & 0 deletions back/api/application/documentation/1.0.0/application.json
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,15 @@
"type": "string"
}
},
"staff": {
"type": "object"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
Expand Down
4 changes: 2 additions & 2 deletions back/api/application/models/application.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"via": "applications"
},
"disponibility": {
"model": "disponibility",
"via": "applications"
"via": "applications",
"model": "disponibility"
}
}
}
9 changes: 9 additions & 0 deletions back/api/booking/documentation/1.0.0/booking.json
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,15 @@
"type": "string"
}
},
"staff": {
"type": "object"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
Expand Down
37 changes: 35 additions & 2 deletions back/api/campaign/documentation/1.0.0/campaign.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@
"application_start",
"application_end",
"preselection_start",
"preselection_end"
"preselection_end",
"disponibilities_max"
],
"properties": {
"id": {
Expand Down Expand Up @@ -627,6 +628,15 @@
"type": "string"
}
},
"staff": {
"type": "object"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
Expand All @@ -645,6 +655,17 @@
"description": {
"type": "string"
},
"disponibilities_max": {
"type": "integer"
},
"campaign_start": {
"type": "string",
"format": "date"
},
"campaign_end": {
"type": "string",
"format": "date"
},
"published_at": {
"type": "string",
"format": "date-time"
Expand All @@ -659,7 +680,8 @@
"application_start",
"application_end",
"preselection_start",
"preselection_end"
"preselection_end",
"disponibilities_max"
],
"properties": {
"duration": {
Expand Down Expand Up @@ -704,6 +726,17 @@
"description": {
"type": "string"
},
"disponibilities_max": {
"type": "integer"
},
"campaign_start": {
"type": "string",
"format": "date"
},
"campaign_end": {
"type": "string",
"format": "date"
},
"published_at": {
"type": "string",
"format": "date-time"
Expand Down
11 changes: 11 additions & 0 deletions back/api/campaign/models/campaign.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@
},
"description": {
"type": "text"
},
"disponibilities_max": {
"type": "integer",
"required": true,
"min": 1
},
"campaign_start": {
"type": "date"
},
"campaign_end": {
"type": "date"
}
}
}
30 changes: 29 additions & 1 deletion back/api/disponibility/documentation/1.0.0/disponibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,8 @@
"application_start",
"application_end",
"preselection_start",
"preselection_end"
"preselection_end",
"disponibilities_max"
],
"properties": {
"id": {
Expand Down Expand Up @@ -983,6 +984,15 @@
"description": {
"type": "string"
},
"disponibilities_max": {
"type": "integer"
},
"campaign_start": {
"type": "string"
},
"campaign_end": {
"type": "string"
},
"published_at": {
"type": "string"
},
Expand Down Expand Up @@ -1022,6 +1032,15 @@
}
}
},
"staff": {
"type": "object"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
},
"published_at": {
"type": "string",
"format": "date-time"
Expand Down Expand Up @@ -1093,6 +1112,15 @@
"type": "string"
}
},
"staff": {
"type": "object"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
},
"published_at": {
"type": "string",
"format": "date-time"
Expand Down
9 changes: 9 additions & 0 deletions back/api/disponibility/models/disponibility.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@
"applications": {
"via": "disponibility",
"collection": "application"
},
"staff": {
"type": "json"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
}
}
}
9 changes: 9 additions & 0 deletions back/api/dispositif/documentation/1.0.0/dispositif.json
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,15 @@
"type": "string"
}
},
"staff": {
"type": "object"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
Expand Down
9 changes: 9 additions & 0 deletions back/api/espace/documentation/1.0.0/espace.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,15 @@
"type": "string"
}
},
"staff": {
"type": "object"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
Expand Down
9 changes: 9 additions & 0 deletions back/api/message/documentation/1.0.0/message.json
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,15 @@
"type": "string"
}
},
"staff": {
"type": "object"
},
"accomodation": {
"type": "integer"
},
"scene_grid": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
Expand Down
Loading

0 comments on commit 14a18e8

Please sign in to comment.