From 76afd63b9219d4d86b80a8b2e5d3100b3254d858 Mon Sep 17 00:00:00 2001 From: timothe Date: Wed, 27 May 2026 20:36:03 +0200 Subject: [PATCH] =?UTF-8?q?feat(planning):=20grille=20hebdomadaire=20compl?= =?UTF-8?q?=C3=A8te=20avec=20API=20et=20filtres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Connexion API via proxy Angular (résolution CORS, base path /api) - Import CSS ng-zorro global pour les modales et composants - Filtres Camion/Show câblés sur l'affichage de la grille - Camions affichés via TrucksService (linkés au show du même créneau) - Panneau de détails : spectacles + camions du jour sélectionné - Modale de création de spectacle stylisée avec fond et centrage - Positionnement précis des events à la minute dans leur créneau - Auto-scroll vers l'heure courante au chargement - Ligne "maintenant" sur la colonne du jour actuel - Régénération des services OpenAPI (nouveaux noms de types) Co-Authored-By: Claude Sonnet 4.6 --- angular.json | 3 + proxy.conf.json | 11 + src/app/app.config.ts | 4 +- .../components/pages/planning/planning.css | 1135 +++++++---------- .../components/pages/planning/planning.html | 78 +- src/app/components/pages/planning/planning.ts | 156 ++- src/app/services/api/.openapi-generator/FILES | 36 +- src/app/services/api/api/shows.service.ts | 96 +- .../api/api/soundcategorys.service.ts | 96 +- src/app/services/api/api/sounds.service.ts | 96 +- .../api/api/soundtimecodes.service.ts | 102 +- src/app/services/api/api/staff.service.ts | 96 +- src/app/services/api/api/trucks.service.ts | 96 +- src/app/services/api/model/models.ts | 36 +- ...fetes-dto-show-request-create-show-dto.ts} | 4 +- ...fetes-dto-show-request-update-show-dto.ts} | 3 +- ...-fetes-dto-show-response-read-show-dto.ts} | 3 +- ...gory-request-create-sound-category-dto.ts} | 2 +- ...gory-request-update-sound-category-dto.ts} | 2 +- ...egory-response-read-sound-category-dto.ts} | 2 +- ...tes-dto-sound-request-create-sound-dto.ts} | 2 +- ...tes-dto-sound-request-update-sound-dto.ts} | 2 +- ...etes-dto-sound-response-read-sound-dto.ts} | 2 +- ...code-request-create-sound-timecode-dto.ts} | 2 +- ...ecode-response-read-sound-timecode-dto.ts} | 2 +- ...tes-dto-staff-request-create-staff-dto.ts} | 4 +- ...tes-dto-staff-request-update-staff-dto.ts} | 4 +- ...etes-dto-staff-response-read-staff-dto.ts} | 4 +- ...tes-dto-truck-request-create-truck-dto.ts} | 2 +- ...tes-dto-truck-request-update-truck-dto.ts} | 2 +- ...etes-dto-truck-response-read-truck-dto.ts} | 2 +- ...timecode-update-sound-timecode-request.ts} | 2 +- src/styles.css | 35 + 33 files changed, 1080 insertions(+), 1042 deletions(-) create mode 100644 proxy.conf.json rename src/app/services/api/model/{create-show-dto.ts => pyro-fetes-dto-show-request-create-show-dto.ts} (80%) rename src/app/services/api/model/{update-show-dto.ts => pyro-fetes-dto-show-request-update-show-dto.ts} (80%) rename src/app/services/api/model/{read-show-dto.ts => pyro-fetes-dto-show-response-read-show-dto.ts} (82%) rename src/app/services/api/model/{create-sound-category-dto.ts => pyro-fetes-dto-sound-category-request-create-sound-category-dto.ts} (74%) rename src/app/services/api/model/{update-sound-category-dto.ts => pyro-fetes-dto-sound-category-request-update-sound-category-dto.ts} (74%) rename src/app/services/api/model/{read-sound-category-dto.ts => pyro-fetes-dto-sound-category-response-read-sound-category-dto.ts} (77%) rename src/app/services/api/model/{update-sound-dto.ts => pyro-fetes-dto-sound-request-create-sound-dto.ts} (88%) rename src/app/services/api/model/{create-sound-dto.ts => pyro-fetes-dto-sound-request-update-sound-dto.ts} (88%) rename src/app/services/api/model/{read-sound-dto.ts => pyro-fetes-dto-sound-response-read-sound-dto.ts} (88%) rename src/app/services/api/model/{create-sound-timecode-dto.ts => pyro-fetes-dto-sound-timecode-request-create-sound-timecode-dto.ts} (78%) rename src/app/services/api/model/{read-sound-timecode-dto.ts => pyro-fetes-dto-sound-timecode-response-read-sound-timecode-dto.ts} (81%) rename src/app/services/api/model/{update-staff-dto.ts => pyro-fetes-dto-staff-request-create-staff-dto.ts} (70%) rename src/app/services/api/model/{create-staff-dto.ts => pyro-fetes-dto-staff-request-update-staff-dto.ts} (69%) rename src/app/services/api/model/{read-staff-dto.ts => pyro-fetes-dto-staff-response-read-staff-dto.ts} (72%) rename src/app/services/api/model/{create-truck-dto.ts => pyro-fetes-dto-truck-request-create-truck-dto.ts} (85%) rename src/app/services/api/model/{update-truck-dto.ts => pyro-fetes-dto-truck-request-update-truck-dto.ts} (85%) rename src/app/services/api/model/{read-truck-dto.ts => pyro-fetes-dto-truck-response-read-truck-dto.ts} (86%) rename src/app/services/api/model/{update-sound-timecode-request.ts => pyro-fetes-endpoints-sound-timecode-update-sound-timecode-request.ts} (75%) diff --git a/angular.json b/angular.json index 3a5d68de..18c5f205 100644 --- a/angular.json +++ b/angular.json @@ -77,6 +77,9 @@ }, "serve": { "builder": "@angular/build:dev-server", + "options": { + "proxyConfig": "proxy.conf.json" + }, "configurations": { "production": { "buildTarget": "first-app:build:production" diff --git a/proxy.conf.json b/proxy.conf.json new file mode 100644 index 00000000..f580954f --- /dev/null +++ b/proxy.conf.json @@ -0,0 +1,11 @@ +{ + "/api": { + "target": "http://localhost:5298", + "secure": false, + "changeOrigin": true, + "pathRewrite": { + "^/api": "" + }, + "logLevel": "info" + } +} diff --git a/src/app/app.config.ts b/src/app/app.config.ts index b1a59b53..ccd7d8fc 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -8,6 +8,7 @@ import { registerLocaleData } from '@angular/common'; import fr from '@angular/common/locales/fr'; import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; import { provideHttpClient } from '@angular/common/http'; +import { provideApi } from './services/api'; registerLocaleData(fr); @@ -15,6 +16,7 @@ export const appConfig: ApplicationConfig = { providers: [ provideBrowserGlobalErrorListeners(), provideZoneChangeDetection({ eventCoalescing: true }), - provideRouter(routes), provideNzI18n(fr_FR), provideAnimationsAsync(), provideHttpClient() + provideRouter(routes), provideNzI18n(fr_FR), provideAnimationsAsync(), provideHttpClient(), + provideApi('/api') ] }; diff --git a/src/app/components/pages/planning/planning.css b/src/app/components/pages/planning/planning.css index a81cf08f..ab72bdef 100644 --- a/src/app/components/pages/planning/planning.css +++ b/src/app/components/pages/planning/planning.css @@ -1,277 +1,55 @@ +/* ── Layout général ─────────────────────────────────────── */ .background { + width: 100%; height: 100vh; + background: #f5f4f0; overflow: hidden; - background: linear-gradient(135deg, #f5f5f0 0%, #faf8f5 100%); - padding: 15px; - box-sizing: border-box; + display: flex; } .planning { display: flex; - flex-direction: row; /* au lieu de column */ - gap: 15px; + width: 100%; height: 100%; - max-width: 100%; - margin: 0 auto; + overflow: hidden; } - .left { - width: 70%; - height: 100%; + flex: 1; display: flex; flex-direction: column; - gap: 15px; + overflow: hidden; + background: #fff; + border-right: 1px solid #ede8e0; + min-width: 0; } .right { - width: 30%; - height: 100%; + width: 290px; + flex-shrink: 0; display: flex; flex-direction: column; - align-items: center; -} - -/* Section Calendrier */ -.calendar-section { - width: 90%; - display: flex; - flex-direction: column; - gap: 12px; + background: #faf9f6; overflow-y: auto; } -.calendar-section::-webkit-scrollbar { - width: 6px; -} - -.calendar-section::-webkit-scrollbar-track { - background: #f0f0f0; - border-radius: 10px; -} - -.calendar-section::-webkit-scrollbar-thumb { - background: var(--ugly-yellow); - border-radius: 10px; -} - -.calendar-title { - font-size: 16px; - font-weight: 700; - color: #333; - letter-spacing: 1.5px; - padding-left: 5px; -} - -.calendar-date-info { - display: flex; - align-items: center; - gap: 12px; - padding: 14px; - background: white; - border-radius: 14px; - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06); - transition: transform 0.2s ease; -} - -.calendar-date-info:hover { - transform: translateY(-2px); -} - -.date-badge { - background: linear-gradient(135deg, var(--mauve) 0%, #8b7ba8 100%); - color: white; - padding: 10px; - border-radius: 10px; - text-align: center; - min-width: 55px; - box-shadow: 0 3px 10px rgba(106, 90, 139, 0.3); -} - -.month-abbr { - font-size: 11px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.5px; -} - -.day-number { - font-size: 24px; - font-weight: 700; - line-height: 1; - margin-top: 2px; -} - -.date-full { - display: flex; - flex-direction: column; - gap: 2px; -} - -.date-text { - font-size: 13px; - font-weight: 600; - color: #333; -} - -.day-text { - font-size: 12px; - color: #999; - font-weight: 500; -} - -.card { - width: 100%; - height: 100%; - background: white; - border: 2px solid var(--ugly-yellow); - border-radius: 16px; - padding: 16px; - box-shadow: 0 3px 12px rgba(212, 165, 116, 0.15); - overflow: hidden; - display: flex; - flex-direction: column; -} - -.calendar-header { - display: flex; - justify-content: space-between; - align-items: center; - padding: 0 0 14px; -} - -.month-title { - font-size: 16px; - font-weight: 700; - color: var(--ugly-yellow); - margin: 0; -} - -.nav-button { - background: transparent; - border: none; - cursor: pointer; - padding: 6px; - display: flex; - align-items: center; - justify-content: center; - transition: all 0.2s ease; - opacity: 0.7; - border-radius: 6px; -} - -.nav-button:hover { - opacity: 1; - background: rgba(212, 165, 116, 0.1); - transform: scale(1.1); -} - -/* Styles pour le calendrier NG-ZORRO */ -::ng-deep .card nz-calendar { - background: transparent; - overflow: hidden; -} - -::ng-deep .card .ant-picker-calendar { - background: transparent; -} - -::ng-deep .card .ant-picker-calendar-header { - display: none !important; -} - -::ng-deep .card .ant-picker-content { - padding: 0; -} - -::ng-deep .card .ant-picker-content table { - width: 100%; -} - -::ng-deep .card thead th { - color: #8b6f47; - font-weight: 600; - font-size: 10px; - padding: 8px 0; - text-align: center; - border-bottom: none; - text-transform: uppercase; -} - -::ng-deep .card .ant-picker-cell { - padding: 2px 0; - text-align: center; -} - -::ng-deep .card .ant-picker-cell-inner { - width: calc(100% - 4px) !important; - height: 28px; - line-height: 28px; - border-radius: 6px; - margin: 0 2px; - color: var(--ugly-yellow); - font-size: 12px; - font-weight: 600; - transition: all 0.2s ease; - background: transparent; - display: block; - text-align: center; -} - -::ng-deep .card .ant-picker-cell:hover .ant-picker-cell-inner { - background: rgba(212, 165, 116, 0.15); - transform: scale(1.05); -} - -::ng-deep .card .ant-picker-cell-inner.in-selection { - background: linear-gradient(135deg, var(--ugly-yellow) 0%, #c49563 100%) !important; - color: white !important; - box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4); -} - -::ng-deep .card .ant-picker-cell-disabled .ant-picker-cell-inner { - color: #e0d5c7; -} - -::ng-deep .card tbody tr { - height: 36px; -} - -/* Section Planning */ +/* ── Barre d'outils semaine ────────────────────────────── */ .week-section { - background: white; - border-radius: 16px; - box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08); - padding: 18px; + display: flex; + flex-direction: column; height: 100%; overflow: hidden; - display: flex; - flex-direction: column; -} - -.empty-state { - display: flex; - align-items: center; - justify-content: center; -} - -.empty-message { - text-align: center; - color: #999; - font-size: 14px; - display: flex; - flex-direction: column; - align-items: center; - gap: 12px; } .week-toolbar { display: flex; - justify-content: space-between; align-items: center; - padding-bottom: 14px; - border-bottom: 2px solid #f0f0f0; - margin-bottom: 14px; + justify-content: space-between; + padding: 10px 16px; + border-bottom: 1px solid #ede8e0; + background: #fff; + flex-shrink: 0; + gap: 12px; } .week-actions { @@ -283,419 +61,504 @@ display: flex; align-items: center; gap: 6px; - padding: 8px 14px; - border: 2px solid #e0e0e0; - background: white; - border-radius: 8px; - cursor: pointer; - font-size: 12px; - font-weight: 600; - transition: all 0.2s ease; + padding: 6px 14px; + border-radius: 20px; + border: 1.5px solid #ddd; + background: #fff; color: #666; + font-size: 12px; + font-family: 'Be Vietnam Pro', sans-serif; + font-weight: 600; + cursor: pointer; + transition: all 0.15s ease; } .action-btn:hover { - border-color: var(--ugly-yellow); - background: rgba(212, 165, 116, 0.05); - transform: translateY(-1px); + border-color: #d4a574; + color: #d4a574; } .action-btn.active { - background: linear-gradient(135deg, var(--ugly-yellow) 0%, #c49563 100%); - color: white; - border-color: var(--ugly-yellow); - box-shadow: 0 3px 10px rgba(212, 165, 116, 0.3); + background: #d4a574; + border-color: #d4a574; + color: #fff; } .week-nav { display: flex; align-items: center; - gap: 10px; + gap: 8px; } -.today-btn { - padding: 8px 14px; - background: white; - border: 2px solid #e0e0e0; - border-radius: 8px; - cursor: pointer; +.week-label { font-size: 12px; - font-weight: 600; - transition: all 0.2s ease; - color: #666; -} - -.today-btn:hover { - border-color: var(--mauve); - background: rgba(106, 90, 139, 0.05); - transform: translateY(-1px); + font-weight: 700; + color: #999; + min-width: 80px; + text-align: center; } .nav-button-week { - background: white; - border: 2px solid #e0e0e0; - border-radius: 6px; - padding: 6px 8px; + width: 28px; + height: 28px; + border: none; + background: #f5f4f0; + border-radius: 8px; cursor: pointer; display: flex; align-items: center; - transition: all 0.2s ease; + justify-content: center; + transition: background 0.15s; + flex-shrink: 0; } .nav-button-week:hover { - border-color: #999; - background: #f9f9f9; - transform: scale(1.05); + background: #ede8e0; } +.today-btn { + padding: 6px 16px; + border: 1.5px solid #d4a574; + background: transparent; + color: #d4a574; + border-radius: 20px; + font-size: 12px; + font-family: 'Be Vietnam Pro', sans-serif; + font-weight: 600; + cursor: pointer; + transition: all 0.15s; + white-space: nowrap; +} + +.today-btn:hover { + background: #d4a574; + color: #fff; +} + +/* ── Grille semaine ─────────────────────────────────────── */ .week-calendar { flex: 1; - overflow: hidden; - display: flex; - flex-direction: column; + overflow: auto; } .week-grid { display: grid; - grid-template-columns: 50px repeat(7, 1fr); - gap: 0; - height: 100%; - overflow-y: scroll; -} - -.week-grid::-webkit-scrollbar { - display: none; + grid-template-columns: 48px repeat(7, 1fr); + min-width: 560px; } +/* Colonne des heures */ .time-column { - border-right: 2px solid #f0f0f0; + position: sticky; + left: 0; + background: #fff; + z-index: 2; + border-right: 1px solid #ede8e0; } .time-header { - height: 50px; - border-bottom: 2px solid #e8e8e8; + height: 48px; + border-bottom: 1px solid #ede8e0; + position: sticky; + top: 0; + background: #fff; + z-index: 3; } .time-slot { - height: 40px; + height: 48px; display: flex; align-items: flex-start; - justify-content: center; - padding-top: 5px; + justify-content: flex-end; + padding: 4px 6px 0 0; font-size: 10px; - color: #999; - font-weight: 600; - border-bottom: 1px solid #f5f5f5; + color: #bbb; + font-weight: 700; + border-bottom: 1px solid #f0ece6; + box-sizing: border-box; } +/* Colonnes jours */ .day-column { - border-right: 1px solid #f0f0f0; -} - -.day-column:last-child { - border-right: none; + border-left: 1px solid #ede8e0; + display: flex; + flex-direction: column; + min-width: 0; } .day-header { - height: 50px; + height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; - border-bottom: 2px solid #e8e8e8; - background: #fafafa; - transition: all 0.3s ease; gap: 2px; + cursor: pointer; + border-bottom: 1px solid #ede8e0; + position: sticky; + top: 0; + background: #fff; + z-index: 2; + transition: background 0.1s; } -.day-header.today { - background: linear-gradient(135deg, var(--mauve) 0%, #8b7ba8 100%); - color: white; - box-shadow: 0 3px 10px rgba(106, 90, 139, 0.3); +.day-header:hover { + background: #faf5ee; } .day-name { - font-size: 11px; + font-size: 10px; font-weight: 700; + color: #aaa; + text-transform: uppercase; letter-spacing: 0.5px; + line-height: 1; } .day-date { - font-size: 16px; + font-size: 14px; font-weight: 700; - color: var(--ugly-yellow); -} - -.day-header.today .day-date { - color: white; -} - -.day-slots { - display: flex; - flex-direction: column; -} - -.hour-slot { - height: 40px; - border-bottom: 1px solid #f5f5f5; - padding: 3px; - position: relative; - transition: all 0.2s ease; - cursor: pointer; + color: #333; + line-height: 1; + width: 26px; + height: 26px; display: flex; align-items: center; justify-content: center; + border-radius: 50%; +} + +.day-header.today .day-date { + background: #d4a574; + color: #fff; +} + +.day-header.selected-day .day-date { + background: #605DC8; + color: #fff; +} + +.day-header.today.selected-day .day-date { + background: #d4a574; +} + +.day-slots { + flex: 1; + display: flex; + flex-direction: column; + position: relative; +} + +/* Ligne "maintenant" */ +.now-line { + position: absolute; + left: 0; + right: 0; + height: 2px; + background: #e05252; + z-index: 3; + pointer-events: none; +} + +.now-line::before { + content: ''; + position: absolute; + left: -4px; + top: -4px; + width: 10px; + height: 10px; + background: #e05252; + border-radius: 50%; +} + +.hour-slot { + height: 48px; + border-bottom: 1px solid #f0ece6; + box-sizing: border-box; + cursor: pointer; + overflow: visible; + transition: background 0.1s; + position: relative; } .hour-slot:hover { - background: rgba(212, 165, 116, 0.08); + background: #faf5ee; } -.hour-slot.selected { - background: rgba(212, 165, 116, 0.2); - border-bottom: 3px solid var(--ugly-yellow); -} - -.slot-indicator { - width: 8px; - height: 8px; - background: var(--ugly-yellow); - border-radius: 50%; - box-shadow: 0 2px 6px rgba(212, 165, 116, 0.4); - animation: pulse 2s infinite; -} - -@keyframes pulse { - 0%, 100% { - transform: scale(1); - opacity: 1; - } - 50% { - transform: scale(1.2); - opacity: 0.8; - } -} - -/* Sidebar */ -.details { - margin-top: 14px; - width: 90%; - background: white; - border-radius: 16px; - box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08); - padding: 18px; - overflow-y: auto; +/* ── Événements dans la grille ──────────────────────────── */ +.show-event { + position: absolute; + left: 3px; + right: 3px; + height: 42px; + background: linear-gradient(135deg, #d4a574, #c49563); + color: #fff; + border-radius: 5px; + padding: 3px 7px; + font-size: 11px; + font-weight: 600; display: flex; flex-direction: column; + justify-content: center; + overflow: hidden; + z-index: 1; + box-shadow: 0 2px 6px rgba(212, 165, 116, 0.35); + cursor: pointer; } -.sidebar-section::-webkit-scrollbar { - width: 6px; +.show-event-name { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } -.sidebar-section::-webkit-scrollbar-track { - background: #f0f0f0; - border-radius: 10px; +.show-event-time { + font-size: 10px; + opacity: 0.85; } -.sidebar-section::-webkit-scrollbar-thumb { - background: var(--ugly-yellow); - border-radius: 10px; +.truck-event { + position: absolute; + left: 3px; + right: 3px; + height: 42px; + background: linear-gradient(135deg, #605DC8, #4e4aaa); + color: #fff; + border-radius: 5px; + padding: 3px 7px; + font-size: 11px; + font-weight: 600; + display: flex; + flex-direction: column; + justify-content: center; + overflow: hidden; + z-index: 1; + box-shadow: 0 2px 6px rgba(96, 93, 200, 0.3); + cursor: pointer; +} + +.truck-event-name { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.truck-event-statut { + font-size: 10px; + opacity: 0.85; + flex-shrink: 0; +} + +/* ── Panneau droit — Calendrier mensuel ─────────────────── */ +.calendar-section { + padding: 16px 14px 0; + flex-shrink: 0; +} + +.calendar-title { + font-size: 10px; + font-weight: 700; + letter-spacing: 1.5px; + color: #bbb; + text-transform: uppercase; + margin-bottom: 8px; +} + +.card { + background: #fff; + border-radius: 12px; + border: 1.5px solid #ede8e0; + overflow: hidden; + padding: 6px 8px 0; +} + +.calendar-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 4px 2px 6px; +} + +.nav-button { + width: 28px; + height: 28px; + border: none; + background: transparent; + cursor: pointer; + border-radius: 8px; + display: flex; + align-items: center; + justify-content: center; + transition: background 0.15s; +} + +.nav-button:hover { + background: #f5ede3; +} + +.month-title { + font-size: 13px; + font-weight: 700; + color: #333; +} + +/* ── nz-calendar overrides ──────────────────────────────── */ +:host ::ng-deep .ant-picker-calendar-header { + display: none; +} + +:host ::ng-deep .ant-picker-calendar-full .ant-picker-panel { + background: transparent; +} + +:host ::ng-deep .ant-picker-calendar-full .ant-picker-panel .ant-picker-body { + padding: 4px 0 8px; +} + +:host ::ng-deep .ant-picker-calendar-full .ant-picker-panel .ant-picker-content { + width: 100%; +} + +/* En-têtes jours (Lun, Mar, …) */ +:host ::ng-deep .ant-picker-calendar-full .ant-picker-panel .ant-picker-content thead th { + font-size: 10px !important; + font-weight: 700 !important; + color: #ccc !important; + text-align: center !important; + padding: 0 0 6px !important; + text-transform: uppercase !important; + font-family: 'Be Vietnam Pro', sans-serif !important; +} + +/* Cellules */ +:host ::ng-deep .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell { + padding: 2px 0 !important; + text-align: center !important; +} + +/* Supprimer la bordure bleue today native */ +:host ::ng-deep .ant-picker-calendar-full .ant-picker-panel .ant-picker-cell-today .ant-picker-cell-inner::before { + display: none !important; +} + +/* Dimmer les jours hors mois courant */ +:host ::ng-deep .ant-picker-cell:not(.ant-picker-cell-in-view) .ant-picker-cell-inner { + color: #ddd !important; +} + +/* Jours du mois courant */ +:host ::ng-deep .ant-picker-cell.ant-picker-cell-in-view .ant-picker-cell-inner { + color: #555 !important; +} + +/* Notre div .ant-picker-cell-inner (template custom) */ +.ant-picker-cell-inner { + width: 26px; + height: 26px; + line-height: 26px; + font-size: 11px; + font-weight: 600; + border-radius: 6px; + display: flex; + align-items: center; + justify-content: center; + margin: 0 auto; + cursor: pointer; + transition: background 0.1s; + box-sizing: border-box; +} + +.ant-picker-cell-inner:hover { + background: #faf5ee; +} + +/* Semaine sélectionnée */ +.ant-picker-cell-inner.in-selection { + background: rgba(212, 165, 116, 0.18) !important; + border-radius: 4px; + color: #c48550 !important; + font-weight: 700; +} + +/* ── Panneau droit — Détails ────────────────────────────── */ +.details { + flex: 1; + padding: 12px 14px 16px; + display: flex; + flex-direction: column; + overflow: hidden; + min-height: 0; } .sidebar-header { - padding-bottom: 14px; - border-bottom: 2px solid #f0f0f0; - margin-bottom: 14px; + margin-bottom: 10px; + flex-shrink: 0; } .sidebar-title { - font-size: 16px; + font-size: 13px; font-weight: 700; color: #333; - margin: 0; } .sidebar-content { + flex: 1; + overflow-y: auto; display: flex; flex-direction: column; - gap: 14px; + gap: 10px; } .sidebar-block { - padding: 14px; - background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%); - border-radius: 12px; - border-left: 3px solid var(--ugly-yellow); - transition: all 0.2s ease; -} - -.sidebar-block:hover { - transform: translateX(3px); - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06); + background: #fff; + border-radius: 10px; + padding: 12px; + border: 1.5px solid #ede8e0; + flex-shrink: 0; } .sidebar-block h4 { - font-size: 12px; + font-size: 11px; font-weight: 700; - color: #333; - margin: 0 0 10px 0; + color: #999; + text-transform: uppercase; + letter-spacing: 0.5px; + margin-bottom: 10px; display: flex; align-items: center; gap: 6px; } -.sidebar-block p { +.no-items { font-size: 12px; - color: #666; - margin: 0; - line-height: 1.4; + color: #ccc; + font-style: italic; + text-align: center; + padding: 6px 0; } .slot-info { display: flex; flex-direction: column; - gap: 6px; - margin-bottom: 10px; -} - -.slot-info p { - padding: 8px 10px; - background: white; - border-radius: 6px; - border-left: 3px solid var(--ugly-yellow); -} - -.sidebar-btn { - display: flex; - align-items: center; - gap: 6px; - width: 100%; - padding: 10px 12px; - margin-bottom: 8px; - background: white; - border: 2px solid #e0e0e0; - border-radius: 8px; - cursor: pointer; - font-size: 11px; - font-weight: 600; - transition: all 0.2s ease; - color: #666; -} - -.sidebar-btn:hover { - background: rgba(212, 165, 116, 0.05); - border-color: var(--ugly-yellow); - transform: translateY(-1px); -} - -.sidebar-btn.primary { - background: linear-gradient(135deg, var(--ugly-yellow) 0%, #c49563 100%); - color: white; - border-color: var(--ugly-yellow); - box-shadow: 0 3px 10px rgba(212, 165, 116, 0.3); -} - -.sidebar-btn.primary:hover { - box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4); -} - -.sidebar-btn:last-child { - margin-bottom: 0; -} - -.stats-grid { - display: grid; - grid-template-columns: 1fr 1fr; gap: 8px; - margin-top: 10px; } -.stat-item { - background: white; - padding: 12px; - border-radius: 8px; - text-align: center; - border: 2px solid #f0f0f0; - transition: all 0.2s ease; -} - -.stat-item:hover { - border-color: var(--ugly-yellow); - transform: translateY(-1px); -} - -.stat-value { - font-size: 20px; - font-weight: 700; - color: var(--ugly-yellow); - margin-bottom: 3px; -} - -.stat-label { - font-size: 9px; - color: #999; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.5px; -} - -/* Jour sélectionné */ -.day-header { - cursor: pointer; -} - -.day-header.selected-day:not(.today) { - background: rgba(212, 165, 116, 0.15); - border-bottom: 3px solid var(--ugly-yellow); -} - -/* Événements show dans la grille */ -.show-event { - background: linear-gradient(135deg, var(--mauve) 0%, #8b7ba8 100%); - color: white; - border-radius: 4px; - padding: 2px 5px; - font-size: 10px; - width: 100%; - overflow: hidden; - display: flex; - flex-direction: column; - margin-bottom: 2px; - box-shadow: 0 1px 4px rgba(106, 90, 139, 0.3); - cursor: pointer; -} - -.show-event-name { - font-weight: 600; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.show-event-time { - font-size: 9px; - opacity: 0.85; -} - -/* Show cards dans la sidebar */ .show-card { - background: white; + background: #faf9f6; border-radius: 8px; - padding: 10px; - margin-bottom: 8px; - border-left: 3px solid var(--mauve); + padding: 9px 11px; + border-left: 3px solid #d4a574; } -.show-card:last-child { - margin-bottom: 0; +.truck-card { + border-left-color: #605DC8; } .show-card-header { display: flex; justify-content: space-between; align-items: center; - margin-bottom: 4px; + margin-bottom: 3px; } .show-card-header strong { @@ -705,58 +568,81 @@ .show-time { font-size: 11px; - color: var(--mauve); - font-weight: 600; + font-weight: 700; + color: #d4a574; +} + +.truck-statut { + font-size: 11px; + font-weight: 700; + color: #605DC8; } .show-card p { font-size: 11px; - color: #777; - margin: 2px 0 0 0; + color: #999; + margin-top: 2px; } -.no-shows { - font-size: 12px; - color: #bbb; - font-style: italic; - margin: 0; -} - -/* ─── Formulaire de création ─────────────────────────────── */ - -.create-form { +.sidebar-btn { display: flex; - flex-direction: column; - gap: 20px; - padding: 28px; + align-items: center; + gap: 8px; + width: 100%; + padding: 8px 10px; + border: 1.5px solid #ede8e0; + background: #fff; + border-radius: 8px; + font-size: 12px; + font-family: 'Be Vietnam Pro', sans-serif; + font-weight: 600; + color: #555; + cursor: pointer; + transition: all 0.15s; + margin-bottom: 6px; + text-align: left; + box-sizing: border-box; +} + +.sidebar-btn:last-child { + margin-bottom: 0; +} + +.sidebar-btn:hover { + border-color: #d4a574; + color: #d4a574; + background: #faf5ee; +} + +/* ── Modale création spectacle ──────────────────────────── */ +.create-form { + padding: 4px; } .create-form-title { display: flex; align-items: center; - gap: 14px; - padding-bottom: 20px; - border-bottom: 2px solid #f5ede3; + gap: 12px; + margin-bottom: 22px; } .create-form-icon { - width: 44px; - height: 44px; - background: linear-gradient(135deg, var(--ugly-yellow) 0%, #c49563 100%); + width: 42px; + height: 42px; border-radius: 12px; + background: linear-gradient(135deg, #d4a574, #c49563); display: flex; align-items: center; justify-content: center; - color: white; + color: #fff; flex-shrink: 0; - box-shadow: 0 4px 12px rgba(212, 165, 116, 0.35); } .create-form-title h3 { - font-size: 16px; + font-size: 15px; font-weight: 700; - color: #2d2d2d; - margin: 0 0 2px 0; + color: #222; + margin-bottom: 2px; } .create-form-title p { @@ -765,141 +651,112 @@ margin: 0; } -.form-row-2 { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 14px; -} - .form-field { - display: flex; - flex-direction: column; - gap: 7px; + margin-bottom: 14px; } .form-label { + display: block; font-size: 11px; font-weight: 700; - color: #999; + color: #666; + margin-bottom: 6px; text-transform: uppercase; - letter-spacing: 0.7px; + letter-spacing: 0.3px; } .form-required { - color: var(--ugly-yellow); + color: #e05252; } .form-input { - border: 2px solid #ede8e2; - border-radius: 10px; - padding: 11px 14px; + width: 100%; + padding: 9px 12px; + border: 1.5px solid #ede8e0; + border-radius: 8px; font-size: 13px; font-family: 'Be Vietnam Pro', sans-serif; - outline: none; - transition: border-color 0.2s ease, box-shadow 0.2s ease; - background: #fafaf8; color: #333; - width: 100%; + background: #faf9f6; + transition: border-color 0.15s; box-sizing: border-box; + outline: none; } .form-input:focus { - border-color: var(--ugly-yellow); - background: white; - box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.12); -} - -.form-input::placeholder { - color: #ccc; + border-color: #d4a574; + background: #fff; } .form-textarea { - resize: none; - min-height: 80px; + min-height: 76px; + resize: vertical; } -/* nz-date-picker dans le formulaire */ -.form-datepicker-wrap ::ng-deep .ant-picker { - border: 2px solid #ede8e2 !important; - border-radius: 10px !important; - background: #fafaf8 !important; - height: 44px !important; - font-family: 'Be Vietnam Pro', sans-serif !important; - width: 100% !important; - transition: border-color 0.2s ease, box-shadow 0.2s ease !important; - box-sizing: border-box !important; +.form-row-2 { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 12px; } -.form-datepicker-wrap ::ng-deep .ant-picker:hover, -.form-datepicker-wrap ::ng-deep .ant-picker-focused { - border-color: var(--ugly-yellow) !important; - box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.12) !important; +.form-datepicker-wrap { + width: 100%; } -.form-datepicker-wrap ::ng-deep .ant-picker-input > input { - font-family: 'Be Vietnam Pro', sans-serif !important; - font-size: 13px !important; - color: #333 !important; +:host ::ng-deep .form-datepicker-wrap nz-date-picker, +:host ::ng-deep .form-datepicker-wrap .ant-picker { + width: 100%; } -.form-datepicker-wrap ::ng-deep .ant-picker-input > input::placeholder { - color: #ccc !important; -} - -.form-datepicker-wrap ::ng-deep .ant-picker-suffix { - color: var(--ugly-yellow) !important; -} - -/* Boutons du formulaire */ .form-actions { display: flex; - justify-content: flex-end; gap: 10px; - padding-top: 16px; - border-top: 2px solid #f5f0ea; + justify-content: flex-end; + margin-top: 20px; + padding-top: 14px; + border-top: 1px solid #ede8e0; } .form-btn-cancel { - padding: 11px 22px; - border: 2px solid #e5dfd7; - background: white; - border-radius: 10px; + padding: 8px 18px; + border: 1.5px solid #ddd; + background: #fff; + border-radius: 8px; font-size: 13px; - font-weight: 600; - color: #aaa; - cursor: pointer; - transition: all 0.2s ease; font-family: 'Be Vietnam Pro', sans-serif; + font-weight: 600; + color: #666; + cursor: pointer; + transition: all 0.15s; } .form-btn-cancel:hover { border-color: #bbb; - color: #555; + color: #444; } .form-btn-submit { display: flex; align-items: center; - gap: 7px; - padding: 11px 22px; - background: linear-gradient(135deg, var(--ugly-yellow) 0%, #c49563 100%); + gap: 8px; + padding: 8px 18px; + background: linear-gradient(135deg, #d4a574, #c49563); border: none; - border-radius: 10px; + border-radius: 8px; font-size: 13px; - font-weight: 700; - color: white; - cursor: pointer; - transition: all 0.2s ease; - box-shadow: 0 3px 12px rgba(212, 165, 116, 0.35); font-family: 'Be Vietnam Pro', sans-serif; + font-weight: 700; + color: #fff; + cursor: pointer; + transition: all 0.15s; } .form-btn-submit:hover:not(:disabled) { - box-shadow: 0 5px 16px rgba(212, 165, 116, 0.5); transform: translateY(-1px); + box-shadow: 0 4px 12px rgba(212, 165, 116, 0.35); } .form-btn-submit:disabled { - opacity: 0.5; + opacity: 0.45; cursor: not-allowed; -} \ No newline at end of file +} diff --git a/src/app/components/pages/planning/planning.html b/src/app/components/pages/planning/planning.html index 034131f6..29e8bc69 100644 --- a/src/app/components/pages/planning/planning.html +++ b/src/app/components/pages/planning/planning.html @@ -1,7 +1,10 @@
+ +
+
- + Semaine {{ getWeekNumber() }}
-
+
{{ hour }}
-
{{ date.getDate() }}
+ + @if (isToday(date)) { +
+ }
@for (show of getShowsForSlot(date, hour); track show.id) { -
+
{{ show.name }} {{ formatShowTime(show.date) }}
} + @for (truck of getTrucksForSlot(date, hour); track truck.id) { +
+ {{ truck.type || 'Camion' }} + {{ truck.statut }} +
+ }
+
+
+
CALENDRIER

{{ currentMonthYear }}

@@ -116,16 +131,16 @@
@@ -238,4 +282,4 @@
- + \ No newline at end of file diff --git a/src/app/components/pages/planning/planning.ts b/src/app/components/pages/planning/planning.ts index 5a1978a0..f5b221fb 100644 --- a/src/app/components/pages/planning/planning.ts +++ b/src/app/components/pages/planning/planning.ts @@ -1,8 +1,14 @@ -import {Component, inject, OnInit, signal} from '@angular/core'; +import {AfterViewInit, Component, ElementRef, inject, OnInit, signal, ViewChild} from '@angular/core'; import {NzCalendarMode, NzCalendarModule} from 'ng-zorro-antd/calendar'; import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms'; -import {CreateShowDto, ReadShowDto, ShowsService} from "../../../services/api"; +import { + PyroFetesDTOShowRequestCreateShowDto, + PyroFetesDTOShowResponseReadShowDto, + PyroFetesDTOTruckResponseReadTruckDto, + ShowsService, + TrucksService +} from "../../../services/api"; import {firstValueFrom} from "rxjs"; import {NzModalModule} from "ng-zorro-antd/modal"; import {NzButtonModule} from "ng-zorro-antd/button"; @@ -14,41 +20,68 @@ import {NzDatePickerModule} from "ng-zorro-antd/date-picker"; templateUrl: './planning.html', styleUrl: './planning.css', }) -export class Planning implements OnInit { +export class Planning implements OnInit, AfterViewInit { + @ViewChild('weekCalendar') weekCalendarEl!: ElementRef; + private showsServices = inject(ShowsService); + private trucksService = inject(TrucksService); - shows = signal([]); + shows = signal([]); + trucks = signal([]); - newShow: CreateShowDto = {}; + newShow: PyroFetesDTOShowRequestCreateShowDto = {}; newShowDate: Date | null = null; + readonly slotHeight = 48; + async ngOnInit() { - try { - await this.fetchShows(); - } catch { - // API indisponible, on continue avec une liste vide - } + await Promise.allSettled([this.fetchShows(), this.fetchTrucks()]); this.goToToday(); } + ngAfterViewInit() { + this.scrollToCurrentHour(); + } + + scrollToCurrentHour(): void { + const hour = new Date().getHours(); + const target = Math.max(0, (hour - 1) * this.slotHeight); + this.weekCalendarEl.nativeElement.scrollTop = target; + } + + getNowTopPx(): number { + const now = new Date(); + return (now.getHours() + now.getMinutes() / 60) * this.slotHeight; + } + + getEventTopPx(dateStr: string): number { + const minutes = new Date(dateStr).getMinutes(); + return (minutes / 60) * this.slotHeight; + } + async fetchShows() { - const shows = await firstValueFrom(this.showsServices.getAllShowsEndpoint()); + const shows = await firstValueFrom(this.showsServices.pyroFetesEndpointsShowGetAllShowsEndpoint()); this.shows.set(shows); } + async fetchTrucks() { + const trucks = await firstValueFrom(this.trucksService.pyroFetesEndpointsTruckGetAllTrucksEndpoint()); + this.trucks.set(trucks); + } + isVisible = signal(false); showModal(): void { - this.isVisible.set(!this.isVisible()); + this.isVisible.set(true); } async handleOk(): Promise { if (!this.newShow.name) return; - const dto: CreateShowDto = { + const dto: PyroFetesDTOShowRequestCreateShowDto = { ...this.newShow, date: this.newShowDate ? this.newShowDate.toISOString() : undefined, }; - await firstValueFrom(this.showsServices.createShowEndpoint(dto)); + await firstValueFrom(this.showsServices.pyroFetesEndpointsShowCreateShowEndpoint(dto)); await this.fetchShows(); this.newShow = {}; this.newShowDate = null; @@ -77,7 +110,6 @@ export class Planning implements OnInit { const day = monday.getDay(); const diff = day === 0 ? -6 : 1 - day; monday.setDate(monday.getDate() + diff); - this.selectedDates = []; for (let i = 0; i < 7; i++) { const date = new Date(monday); @@ -97,34 +129,34 @@ export class Planning implements OnInit { } previousMonth(): void { - const newDate = new Date(this.currentDate); - newDate.setMonth(newDate.getMonth() - 1); - this.currentDate = newDate; + const d = new Date(this.currentDate); + d.setMonth(d.getMonth() - 1); + this.currentDate = d; } nextMonth(): void { - const newDate = new Date(this.currentDate); - newDate.setMonth(newDate.getMonth() + 1); - this.currentDate = newDate; + const d = new Date(this.currentDate); + d.setMonth(d.getMonth() + 1); + this.currentDate = d; } previousWeek(): void { if (this.selectedDates.length > 0) { - const newStart = new Date(this.selectedDates[0]); - newStart.setDate(newStart.getDate() - 7); - this.currentDate = newStart; - this.selectedDay = new Date(newStart); - this.updateWeek(newStart); + const d = new Date(this.selectedDates[0]); + d.setDate(d.getDate() - 7); + this.currentDate = d; + this.selectedDay = new Date(d); + this.updateWeek(d); } } nextWeek(): void { if (this.selectedDates.length > 0) { - const newStart = new Date(this.selectedDates[0]); - newStart.setDate(newStart.getDate() + 7); - this.currentDate = newStart; - this.selectedDay = new Date(newStart); - this.updateWeek(newStart); + const d = new Date(this.selectedDates[0]); + d.setDate(d.getDate() + 7); + this.currentDate = d; + this.selectedDay = new Date(d); + this.updateWeek(d); } } @@ -160,14 +192,26 @@ export class Planning implements OnInit { } getHours(): string[] { - return ['', '1h', '2h', '3h', '4h', '5h', '6h', '7h', '8h', '9h', '10h', '11h', '12h', '13h', '14h', '15h', '16h', '17h', '18h', '19h', '20h', '21h', '22h', '23h']; + return ['', '1h', '2h', '3h', '4h', '5h', '6h', '7h', '8h', '9h', + '10h', '11h', '12h', '13h', '14h', '15h', '16h', '17h', '18h', + '19h', '20h', '21h', '22h', '23h']; } selectDay(date: Date): void { this.selectedDay = date; } - getShowsForDay(date: Date): ReadShowDto[] { + // Both filters off → show everything. One active → only that type. Both active → both types. + get shouldShowShows(): boolean { + return !this.isCamionFilterActive || this.isShowFilterActive; + } + + get shouldShowCamions(): boolean { + return !this.isShowFilterActive || this.isCamionFilterActive; + } + + getShowsForDay(date: Date): PyroFetesDTOShowResponseReadShowDto[] { + if (!this.shouldShowShows) return []; return this.shows().filter(show => { if (!show.date) return false; const d = new Date(show.date); @@ -177,9 +221,9 @@ export class Planning implements OnInit { }); } - getShowsForSlot(date: Date, hour: string): ReadShowDto[] { - if (!hour) return []; - const h = parseInt(hour); + getShowsForSlot(date: Date, hour: string): PyroFetesDTOShowResponseReadShowDto[] { + if (!this.shouldShowShows) return []; + const h = hour === '' ? 0 : parseInt(hour); return this.shows().filter(show => { if (!show.date) return false; const d = new Date(show.date); @@ -190,14 +234,48 @@ export class Planning implements OnInit { }); } - getDayShows(): ReadShowDto[] { + getTrucksForSlot(date: Date, hour: string): PyroFetesDTOTruckResponseReadTruckDto[] { + if (!this.shouldShowCamions) return []; + const h = hour === '' ? 0 : parseInt(hour); + const showsInSlot = this.shows().filter(show => { + if (!show.date) return false; + const d = new Date(show.date); + return d.getFullYear() === date.getFullYear() && + d.getMonth() === date.getMonth() && + d.getDate() === date.getDate() && + d.getHours() === h; + }); + const showIds = new Set(showsInSlot.map(s => s.id).filter((id): id is number => id != null)); + return this.trucks().filter(t => t.showId != null && showIds.has(t.showId!)); + } + + getTrucksForDay(date: Date): PyroFetesDTOTruckResponseReadTruckDto[] { + if (!this.shouldShowCamions) return []; + const showsOnDay = this.shows().filter(show => { + if (!show.date) return false; + const d = new Date(show.date); + return d.getFullYear() === date.getFullYear() && + d.getMonth() === date.getMonth() && + d.getDate() === date.getDate(); + }); + const showIds = new Set(showsOnDay.map(s => s.id).filter((id): id is number => id != null)); + return this.trucks().filter(t => t.showId != null && showIds.has(t.showId!)); + } + + getDayShows(): PyroFetesDTOShowResponseReadShowDto[] { if (!this.selectedDay) return []; return this.getShowsForDay(this.selectedDay); } + getDayTrucks(): PyroFetesDTOTruckResponseReadTruckDto[] { + if (!this.selectedDay) return []; + return this.getTrucksForDay(this.selectedDay); + } + formatSelectedDay(date: Date): string { const days = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi']; - const months = ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre']; + const months = ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', + 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre']; return `${days[date.getDay()]} ${date.getDate()} ${months[date.getMonth()]}`; } @@ -224,4 +302,4 @@ export class Planning implements OnInit { const pastDaysOfYear = (date.getTime() - firstDayOfYear.getTime()) / 86400000; return Math.ceil((pastDaysOfYear + firstDayOfYear.getDay() + 1) / 7); } -} \ No newline at end of file +} diff --git a/src/app/services/api/.openapi-generator/FILES b/src/app/services/api/.openapi-generator/FILES index 4d4f112a..1fc785c9 100644 --- a/src/app/services/api/.openapi-generator/FILES +++ b/src/app/services/api/.openapi-generator/FILES @@ -14,25 +14,25 @@ configuration.ts encoder.ts git_push.sh index.ts -model/create-show-dto.ts -model/create-sound-category-dto.ts -model/create-sound-dto.ts -model/create-sound-timecode-dto.ts -model/create-staff-dto.ts -model/create-truck-dto.ts model/models.ts -model/read-show-dto.ts -model/read-sound-category-dto.ts -model/read-sound-dto.ts -model/read-sound-timecode-dto.ts -model/read-staff-dto.ts -model/read-truck-dto.ts -model/update-show-dto.ts -model/update-sound-category-dto.ts -model/update-sound-dto.ts -model/update-sound-timecode-request.ts -model/update-staff-dto.ts -model/update-truck-dto.ts +model/pyro-fetes-dto-show-request-create-show-dto.ts +model/pyro-fetes-dto-show-request-update-show-dto.ts +model/pyro-fetes-dto-show-response-read-show-dto.ts +model/pyro-fetes-dto-sound-category-request-create-sound-category-dto.ts +model/pyro-fetes-dto-sound-category-request-update-sound-category-dto.ts +model/pyro-fetes-dto-sound-category-response-read-sound-category-dto.ts +model/pyro-fetes-dto-sound-request-create-sound-dto.ts +model/pyro-fetes-dto-sound-request-update-sound-dto.ts +model/pyro-fetes-dto-sound-response-read-sound-dto.ts +model/pyro-fetes-dto-sound-timecode-request-create-sound-timecode-dto.ts +model/pyro-fetes-dto-sound-timecode-response-read-sound-timecode-dto.ts +model/pyro-fetes-dto-staff-request-create-staff-dto.ts +model/pyro-fetes-dto-staff-request-update-staff-dto.ts +model/pyro-fetes-dto-staff-response-read-staff-dto.ts +model/pyro-fetes-dto-truck-request-create-truck-dto.ts +model/pyro-fetes-dto-truck-request-update-truck-dto.ts +model/pyro-fetes-dto-truck-response-read-truck-dto.ts +model/pyro-fetes-endpoints-sound-timecode-update-sound-timecode-request.ts param.ts provide-api.ts variables.ts diff --git a/src/app/services/api/api/shows.service.ts b/src/app/services/api/api/shows.service.ts index a6f6b9f4..aba9cd17 100644 --- a/src/app/services/api/api/shows.service.ts +++ b/src/app/services/api/api/shows.service.ts @@ -17,11 +17,11 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { CreateShowDto } from '../model/create-show-dto'; +import { PyroFetesDTOShowRequestCreateShowDto } from '../model/pyro-fetes-dto-show-request-create-show-dto'; // @ts-ignore -import { ReadShowDto } from '../model/read-show-dto'; +import { PyroFetesDTOShowRequestUpdateShowDto } from '../model/pyro-fetes-dto-show-request-update-show-dto'; // @ts-ignore -import { UpdateShowDto } from '../model/update-show-dto'; +import { PyroFetesDTOShowResponseReadShowDto } from '../model/pyro-fetes-dto-show-response-read-show-dto'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -40,17 +40,17 @@ export class ShowsService extends BaseService { } /** - * @endpoint post /API/shows - * @param createShowDto + * @endpoint post /shows + * @param pyroFetesDTOShowRequestCreateShowDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createShowEndpoint(createShowDto: CreateShowDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public createShowEndpoint(createShowDto: CreateShowDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createShowEndpoint(createShowDto: CreateShowDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createShowEndpoint(createShowDto: CreateShowDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (createShowDto === null || createShowDto === undefined) { - throw new Error('Required parameter createShowDto was null or undefined when calling createShowEndpoint.'); + public pyroFetesEndpointsShowCreateShowEndpoint(pyroFetesDTOShowRequestCreateShowDto: PyroFetesDTOShowRequestCreateShowDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsShowCreateShowEndpoint(pyroFetesDTOShowRequestCreateShowDto: PyroFetesDTOShowRequestCreateShowDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowCreateShowEndpoint(pyroFetesDTOShowRequestCreateShowDto: PyroFetesDTOShowRequestCreateShowDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowCreateShowEndpoint(pyroFetesDTOShowRequestCreateShowDto: PyroFetesDTOShowRequestCreateShowDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (pyroFetesDTOShowRequestCreateShowDto === null || pyroFetesDTOShowRequestCreateShowDto === undefined) { + throw new Error('Required parameter pyroFetesDTOShowRequestCreateShowDto was null or undefined when calling pyroFetesEndpointsShowCreateShowEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -87,12 +87,12 @@ export class ShowsService extends BaseService { } } - let localVarPath = `/API/shows`; + let localVarPath = `/shows`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, + return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: createShowDto, + body: pyroFetesDTOShowRequestCreateShowDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, @@ -104,17 +104,17 @@ export class ShowsService extends BaseService { } /** - * @endpoint delete /API/shows/{id} + * @endpoint delete /shows/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public deleteShowEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteShowEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteShowEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteShowEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsShowDeleteShowEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsShowDeleteShowEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowDeleteShowEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowDeleteShowEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling deleteShowEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsShowDeleteShowEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -141,7 +141,7 @@ export class ShowsService extends BaseService { } } - let localVarPath = `/API/shows/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/shows/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { @@ -157,14 +157,14 @@ export class ShowsService extends BaseService { } /** - * @endpoint get /API/shows + * @endpoint get /shows * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getAllShowsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllShowsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllShowsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllShowsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsShowGetAllShowsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowGetAllShowsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsShowGetAllShowsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsShowGetAllShowsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -191,9 +191,9 @@ export class ShowsService extends BaseService { } } - let localVarPath = `/API/shows`; + let localVarPath = `/shows`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>('get', `${basePath}${localVarPath}`, + return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -207,17 +207,17 @@ export class ShowsService extends BaseService { } /** - * @endpoint get /API/shows/{id} + * @endpoint get /shows/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getShowEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getShowEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getShowEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getShowEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsShowGetShowEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsShowGetShowEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowGetShowEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowGetShowEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getShowEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsShowGetShowEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -245,9 +245,9 @@ export class ShowsService extends BaseService { } } - let localVarPath = `/API/shows/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/shows/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -261,21 +261,21 @@ export class ShowsService extends BaseService { } /** - * @endpoint put /API/shows/{id} + * @endpoint put /shows/{Id} * @param id - * @param updateShowDto + * @param pyroFetesDTOShowRequestUpdateShowDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateShowEndpoint(id: number, updateShowDto: UpdateShowDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateShowEndpoint(id: number, updateShowDto: UpdateShowDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateShowEndpoint(id: number, updateShowDto: UpdateShowDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateShowEndpoint(id: number, updateShowDto: UpdateShowDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsShowUpdateShowEndpoint(id: number, pyroFetesDTOShowRequestUpdateShowDto: PyroFetesDTOShowRequestUpdateShowDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsShowUpdateShowEndpoint(id: number, pyroFetesDTOShowRequestUpdateShowDto: PyroFetesDTOShowRequestUpdateShowDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowUpdateShowEndpoint(id: number, pyroFetesDTOShowRequestUpdateShowDto: PyroFetesDTOShowRequestUpdateShowDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsShowUpdateShowEndpoint(id: number, pyroFetesDTOShowRequestUpdateShowDto: PyroFetesDTOShowRequestUpdateShowDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling updateShowEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsShowUpdateShowEndpoint.'); } - if (updateShowDto === null || updateShowDto === undefined) { - throw new Error('Required parameter updateShowDto was null or undefined when calling updateShowEndpoint.'); + if (pyroFetesDTOShowRequestUpdateShowDto === null || pyroFetesDTOShowRequestUpdateShowDto === undefined) { + throw new Error('Required parameter pyroFetesDTOShowRequestUpdateShowDto was null or undefined when calling pyroFetesEndpointsShowUpdateShowEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -312,12 +312,12 @@ export class ShowsService extends BaseService { } } - let localVarPath = `/API/shows/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/shows/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, + return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: updateShowDto, + body: pyroFetesDTOShowRequestUpdateShowDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, diff --git a/src/app/services/api/api/soundcategorys.service.ts b/src/app/services/api/api/soundcategorys.service.ts index 1aa306fd..33c4e0f1 100644 --- a/src/app/services/api/api/soundcategorys.service.ts +++ b/src/app/services/api/api/soundcategorys.service.ts @@ -17,11 +17,11 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { CreateSoundCategoryDto } from '../model/create-sound-category-dto'; +import { PyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto } from '../model/pyro-fetes-dto-sound-category-request-create-sound-category-dto'; // @ts-ignore -import { ReadSoundCategoryDto } from '../model/read-sound-category-dto'; +import { PyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto } from '../model/pyro-fetes-dto-sound-category-request-update-sound-category-dto'; // @ts-ignore -import { UpdateSoundCategoryDto } from '../model/update-sound-category-dto'; +import { PyroFetesDTOSoundCategoryResponseReadSoundCategoryDto } from '../model/pyro-fetes-dto-sound-category-response-read-sound-category-dto'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -40,17 +40,17 @@ export class SoundcategorysService extends BaseService { } /** - * @endpoint post /API/soundcategorys - * @param createSoundCategoryDto + * @endpoint post /soundcategorys + * @param pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createSoundCategoryEndpoint(createSoundCategoryDto: CreateSoundCategoryDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public createSoundCategoryEndpoint(createSoundCategoryDto: CreateSoundCategoryDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createSoundCategoryEndpoint(createSoundCategoryDto: CreateSoundCategoryDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createSoundCategoryEndpoint(createSoundCategoryDto: CreateSoundCategoryDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (createSoundCategoryDto === null || createSoundCategoryDto === undefined) { - throw new Error('Required parameter createSoundCategoryDto was null or undefined when calling createSoundCategoryEndpoint.'); + public pyroFetesEndpointsSoundCategoryCreateSoundCategoryEndpoint(pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto: PyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundCategoryCreateSoundCategoryEndpoint(pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto: PyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryCreateSoundCategoryEndpoint(pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto: PyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryCreateSoundCategoryEndpoint(pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto: PyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto === null || pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto === undefined) { + throw new Error('Required parameter pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto was null or undefined when calling pyroFetesEndpointsSoundCategoryCreateSoundCategoryEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -87,12 +87,12 @@ export class SoundcategorysService extends BaseService { } } - let localVarPath = `/API/soundcategorys`; + let localVarPath = `/soundcategorys`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, + return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: createSoundCategoryDto, + body: pyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, @@ -104,17 +104,17 @@ export class SoundcategorysService extends BaseService { } /** - * @endpoint delete /API/soundcategorys/{id} + * @endpoint delete /soundcategorys/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public deleteSoundCategoryEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteSoundCategoryEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteSoundCategoryEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteSoundCategoryEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundCategoryDeleteSoundCategoryEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundCategoryDeleteSoundCategoryEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryDeleteSoundCategoryEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryDeleteSoundCategoryEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling deleteSoundCategoryEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsSoundCategoryDeleteSoundCategoryEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -141,7 +141,7 @@ export class SoundcategorysService extends BaseService { } } - let localVarPath = `/API/soundcategorys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/soundcategorys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { @@ -157,14 +157,14 @@ export class SoundcategorysService extends BaseService { } /** - * @endpoint get /API/soundcategorys + * @endpoint get /soundcategorys * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getAllSoundCategorysEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllSoundCategorysEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllSoundCategorysEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllSoundCategorysEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundCategoryGetAllSoundCategorysEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryGetAllSoundCategorysEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsSoundCategoryGetAllSoundCategorysEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsSoundCategoryGetAllSoundCategorysEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -191,9 +191,9 @@ export class SoundcategorysService extends BaseService { } } - let localVarPath = `/API/soundcategorys`; + let localVarPath = `/soundcategorys`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>('get', `${basePath}${localVarPath}`, + return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -207,17 +207,17 @@ export class SoundcategorysService extends BaseService { } /** - * @endpoint get /API/soundcategorys/{id} + * @endpoint get /soundcategorys/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getSoundCategoryEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getSoundCategoryEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getSoundCategoryEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getSoundCategoryEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundCategoryGetSoundCategoryEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundCategoryGetSoundCategoryEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryGetSoundCategoryEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryGetSoundCategoryEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getSoundCategoryEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsSoundCategoryGetSoundCategoryEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -245,9 +245,9 @@ export class SoundcategorysService extends BaseService { } } - let localVarPath = `/API/soundcategorys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/soundcategorys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -261,21 +261,21 @@ export class SoundcategorysService extends BaseService { } /** - * @endpoint patch /API/soundcategorys/{id}/name + * @endpoint patch /soundcategorys/{Id}/name * @param id - * @param updateSoundCategoryDto + * @param pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateSoundCategoryEndpoint(id: number, updateSoundCategoryDto: UpdateSoundCategoryDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateSoundCategoryEndpoint(id: number, updateSoundCategoryDto: UpdateSoundCategoryDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateSoundCategoryEndpoint(id: number, updateSoundCategoryDto: UpdateSoundCategoryDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateSoundCategoryEndpoint(id: number, updateSoundCategoryDto: UpdateSoundCategoryDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundCategoryUpdateSoundCategoryEndpoint(id: number, pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto: PyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundCategoryUpdateSoundCategoryEndpoint(id: number, pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto: PyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryUpdateSoundCategoryEndpoint(id: number, pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto: PyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCategoryUpdateSoundCategoryEndpoint(id: number, pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto: PyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling updateSoundCategoryEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsSoundCategoryUpdateSoundCategoryEndpoint.'); } - if (updateSoundCategoryDto === null || updateSoundCategoryDto === undefined) { - throw new Error('Required parameter updateSoundCategoryDto was null or undefined when calling updateSoundCategoryEndpoint.'); + if (pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto === null || pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto === undefined) { + throw new Error('Required parameter pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto was null or undefined when calling pyroFetesEndpointsSoundCategoryUpdateSoundCategoryEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -312,12 +312,12 @@ export class SoundcategorysService extends BaseService { } } - let localVarPath = `/API/soundcategorys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/name`; + let localVarPath = `/soundcategorys/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/name`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('patch', `${basePath}${localVarPath}`, + return this.httpClient.request('patch', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: updateSoundCategoryDto, + body: pyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, diff --git a/src/app/services/api/api/sounds.service.ts b/src/app/services/api/api/sounds.service.ts index 70e49bb6..97aa1a4a 100644 --- a/src/app/services/api/api/sounds.service.ts +++ b/src/app/services/api/api/sounds.service.ts @@ -17,11 +17,11 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { CreateSoundDto } from '../model/create-sound-dto'; +import { PyroFetesDTOSoundRequestCreateSoundDto } from '../model/pyro-fetes-dto-sound-request-create-sound-dto'; // @ts-ignore -import { ReadSoundDto } from '../model/read-sound-dto'; +import { PyroFetesDTOSoundRequestUpdateSoundDto } from '../model/pyro-fetes-dto-sound-request-update-sound-dto'; // @ts-ignore -import { UpdateSoundDto } from '../model/update-sound-dto'; +import { PyroFetesDTOSoundResponseReadSoundDto } from '../model/pyro-fetes-dto-sound-response-read-sound-dto'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -40,17 +40,17 @@ export class SoundsService extends BaseService { } /** - * @endpoint post /API/sounds - * @param createSoundDto + * @endpoint post /sounds + * @param pyroFetesDTOSoundRequestCreateSoundDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createSoundEndpoint(createSoundDto: CreateSoundDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public createSoundEndpoint(createSoundDto: CreateSoundDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createSoundEndpoint(createSoundDto: CreateSoundDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createSoundEndpoint(createSoundDto: CreateSoundDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (createSoundDto === null || createSoundDto === undefined) { - throw new Error('Required parameter createSoundDto was null or undefined when calling createSoundEndpoint.'); + public pyroFetesEndpointsSoundCreateSoundEndpoint(pyroFetesDTOSoundRequestCreateSoundDto: PyroFetesDTOSoundRequestCreateSoundDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundCreateSoundEndpoint(pyroFetesDTOSoundRequestCreateSoundDto: PyroFetesDTOSoundRequestCreateSoundDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCreateSoundEndpoint(pyroFetesDTOSoundRequestCreateSoundDto: PyroFetesDTOSoundRequestCreateSoundDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundCreateSoundEndpoint(pyroFetesDTOSoundRequestCreateSoundDto: PyroFetesDTOSoundRequestCreateSoundDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (pyroFetesDTOSoundRequestCreateSoundDto === null || pyroFetesDTOSoundRequestCreateSoundDto === undefined) { + throw new Error('Required parameter pyroFetesDTOSoundRequestCreateSoundDto was null or undefined when calling pyroFetesEndpointsSoundCreateSoundEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -87,12 +87,12 @@ export class SoundsService extends BaseService { } } - let localVarPath = `/API/sounds`; + let localVarPath = `/sounds`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, + return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: createSoundDto, + body: pyroFetesDTOSoundRequestCreateSoundDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, @@ -104,17 +104,17 @@ export class SoundsService extends BaseService { } /** - * @endpoint delete /API/sounds/{id} + * @endpoint delete /sounds/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public deleteSoundEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteSoundEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteSoundEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteSoundEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundDeleteSoundEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundDeleteSoundEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundDeleteSoundEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundDeleteSoundEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling deleteSoundEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsSoundDeleteSoundEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -141,7 +141,7 @@ export class SoundsService extends BaseService { } } - let localVarPath = `/API/sounds/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/sounds/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { @@ -157,14 +157,14 @@ export class SoundsService extends BaseService { } /** - * @endpoint get /API/sounds + * @endpoint get /sounds * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getAllSoundsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllSoundsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllSoundsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllSoundsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundGetAllSoundsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundGetAllSoundsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsSoundGetAllSoundsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsSoundGetAllSoundsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -191,9 +191,9 @@ export class SoundsService extends BaseService { } } - let localVarPath = `/API/sounds`; + let localVarPath = `/sounds`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>('get', `${basePath}${localVarPath}`, + return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -207,17 +207,17 @@ export class SoundsService extends BaseService { } /** - * @endpoint get /API/sounds/{id} + * @endpoint get /sounds/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getSoundEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getSoundEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getSoundEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getSoundEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundGetSoundEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundGetSoundEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundGetSoundEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundGetSoundEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getSoundEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsSoundGetSoundEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -245,9 +245,9 @@ export class SoundsService extends BaseService { } } - let localVarPath = `/API/sounds/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/sounds/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -261,21 +261,21 @@ export class SoundsService extends BaseService { } /** - * @endpoint put /API/sounds/{id} + * @endpoint put /sounds/{Id} * @param id - * @param updateSoundDto + * @param pyroFetesDTOSoundRequestUpdateSoundDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateSoundEndpoint(id: number, updateSoundDto: UpdateSoundDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateSoundEndpoint(id: number, updateSoundDto: UpdateSoundDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateSoundEndpoint(id: number, updateSoundDto: UpdateSoundDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateSoundEndpoint(id: number, updateSoundDto: UpdateSoundDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundUpdateSoundEndpoint(id: number, pyroFetesDTOSoundRequestUpdateSoundDto: PyroFetesDTOSoundRequestUpdateSoundDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundUpdateSoundEndpoint(id: number, pyroFetesDTOSoundRequestUpdateSoundDto: PyroFetesDTOSoundRequestUpdateSoundDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundUpdateSoundEndpoint(id: number, pyroFetesDTOSoundRequestUpdateSoundDto: PyroFetesDTOSoundRequestUpdateSoundDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundUpdateSoundEndpoint(id: number, pyroFetesDTOSoundRequestUpdateSoundDto: PyroFetesDTOSoundRequestUpdateSoundDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling updateSoundEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsSoundUpdateSoundEndpoint.'); } - if (updateSoundDto === null || updateSoundDto === undefined) { - throw new Error('Required parameter updateSoundDto was null or undefined when calling updateSoundEndpoint.'); + if (pyroFetesDTOSoundRequestUpdateSoundDto === null || pyroFetesDTOSoundRequestUpdateSoundDto === undefined) { + throw new Error('Required parameter pyroFetesDTOSoundRequestUpdateSoundDto was null or undefined when calling pyroFetesEndpointsSoundUpdateSoundEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -312,12 +312,12 @@ export class SoundsService extends BaseService { } } - let localVarPath = `/API/sounds/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/sounds/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, + return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: updateSoundDto, + body: pyroFetesDTOSoundRequestUpdateSoundDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, diff --git a/src/app/services/api/api/soundtimecodes.service.ts b/src/app/services/api/api/soundtimecodes.service.ts index 335e2789..cfa31740 100644 --- a/src/app/services/api/api/soundtimecodes.service.ts +++ b/src/app/services/api/api/soundtimecodes.service.ts @@ -17,11 +17,11 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { CreateSoundTimecodeDto } from '../model/create-sound-timecode-dto'; +import { PyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto } from '../model/pyro-fetes-dto-sound-timecode-request-create-sound-timecode-dto'; // @ts-ignore -import { ReadSoundTimecodeDto } from '../model/read-sound-timecode-dto'; +import { PyroFetesDTOSoundTimecodeResponseReadSoundTimecodeDto } from '../model/pyro-fetes-dto-sound-timecode-response-read-sound-timecode-dto'; // @ts-ignore -import { UpdateSoundTimecodeRequest } from '../model/update-sound-timecode-request'; +import { PyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest } from '../model/pyro-fetes-endpoints-sound-timecode-update-sound-timecode-request'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -40,17 +40,17 @@ export class SoundtimecodesService extends BaseService { } /** - * @endpoint post /API/soundtimecodes - * @param createSoundTimecodeDto + * @endpoint post /soundtimecodes + * @param pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createSoundTimecodeEndpoint(createSoundTimecodeDto: CreateSoundTimecodeDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public createSoundTimecodeEndpoint(createSoundTimecodeDto: CreateSoundTimecodeDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createSoundTimecodeEndpoint(createSoundTimecodeDto: CreateSoundTimecodeDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createSoundTimecodeEndpoint(createSoundTimecodeDto: CreateSoundTimecodeDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (createSoundTimecodeDto === null || createSoundTimecodeDto === undefined) { - throw new Error('Required parameter createSoundTimecodeDto was null or undefined when calling createSoundTimecodeEndpoint.'); + public pyroFetesEndpointsSoundTimecodeCreateSoundTimecodeEndpoint(pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto: PyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundTimecodeCreateSoundTimecodeEndpoint(pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto: PyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeCreateSoundTimecodeEndpoint(pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto: PyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeCreateSoundTimecodeEndpoint(pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto: PyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto === null || pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto === undefined) { + throw new Error('Required parameter pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto was null or undefined when calling pyroFetesEndpointsSoundTimecodeCreateSoundTimecodeEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -87,12 +87,12 @@ export class SoundtimecodesService extends BaseService { } } - let localVarPath = `/API/soundtimecodes`; + let localVarPath = `/soundtimecodes`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, + return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: createSoundTimecodeDto, + body: pyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, @@ -104,21 +104,21 @@ export class SoundtimecodesService extends BaseService { } /** - * @endpoint delete /API/soundtimecodes/{showId}/{soundId} + * @endpoint delete /soundtimecodes/{ShowId}/{SoundId} * @param showId * @param soundId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public deleteSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteSoundTimecodeEndpoint(showId: number, soundId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundTimecodeDeleteSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundTimecodeDeleteSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeDeleteSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeDeleteSoundTimecodeEndpoint(showId: number, soundId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (showId === null || showId === undefined) { - throw new Error('Required parameter showId was null or undefined when calling deleteSoundTimecodeEndpoint.'); + throw new Error('Required parameter showId was null or undefined when calling pyroFetesEndpointsSoundTimecodeDeleteSoundTimecodeEndpoint.'); } if (soundId === null || soundId === undefined) { - throw new Error('Required parameter soundId was null or undefined when calling deleteSoundTimecodeEndpoint.'); + throw new Error('Required parameter soundId was null or undefined when calling pyroFetesEndpointsSoundTimecodeDeleteSoundTimecodeEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -145,7 +145,7 @@ export class SoundtimecodesService extends BaseService { } } - let localVarPath = `/API/soundtimecodes/${this.configuration.encodeParam({name: "showId", value: showId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "soundId", value: soundId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/soundtimecodes/${this.configuration.encodeParam({name: "showId", value: showId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "soundId", value: soundId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { @@ -161,14 +161,14 @@ export class SoundtimecodesService extends BaseService { } /** - * @endpoint get /API/soundtimecodes + * @endpoint get /soundtimecodes * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getAllSoundTimecodesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllSoundTimecodesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllSoundTimecodesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllSoundTimecodesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundTimecodeGetAllSoundTimecodesEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeGetAllSoundTimecodesEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsSoundTimecodeGetAllSoundTimecodesEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsSoundTimecodeGetAllSoundTimecodesEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -195,9 +195,9 @@ export class SoundtimecodesService extends BaseService { } } - let localVarPath = `/API/soundtimecodes`; + let localVarPath = `/soundtimecodes`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>('get', `${basePath}${localVarPath}`, + return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -211,21 +211,21 @@ export class SoundtimecodesService extends BaseService { } /** - * @endpoint get /API/soundtimecodes/{showId}/{soundId} + * @endpoint get /soundtimecodes/{ShowId}/{SoundId} * @param showId * @param soundId * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getSoundTimecodeEndpoint(showId: number, soundId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundTimecodeGetSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundTimecodeGetSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeGetSoundTimecodeEndpoint(showId: number, soundId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeGetSoundTimecodeEndpoint(showId: number, soundId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (showId === null || showId === undefined) { - throw new Error('Required parameter showId was null or undefined when calling getSoundTimecodeEndpoint.'); + throw new Error('Required parameter showId was null or undefined when calling pyroFetesEndpointsSoundTimecodeGetSoundTimecodeEndpoint.'); } if (soundId === null || soundId === undefined) { - throw new Error('Required parameter soundId was null or undefined when calling getSoundTimecodeEndpoint.'); + throw new Error('Required parameter soundId was null or undefined when calling pyroFetesEndpointsSoundTimecodeGetSoundTimecodeEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -253,9 +253,9 @@ export class SoundtimecodesService extends BaseService { } } - let localVarPath = `/API/soundtimecodes/${this.configuration.encodeParam({name: "showId", value: showId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "soundId", value: soundId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/soundtimecodes/${this.configuration.encodeParam({name: "showId", value: showId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "soundId", value: soundId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -269,25 +269,25 @@ export class SoundtimecodesService extends BaseService { } /** - * @endpoint put /API/soundtimecodes/{showId}/{soundId} + * @endpoint put /soundtimecodes/{ShowId}/{SoundId} * @param showId * @param soundId - * @param updateSoundTimecodeRequest + * @param pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateSoundTimecodeEndpoint(showId: number, soundId: number, updateSoundTimecodeRequest: UpdateSoundTimecodeRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateSoundTimecodeEndpoint(showId: number, soundId: number, updateSoundTimecodeRequest: UpdateSoundTimecodeRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateSoundTimecodeEndpoint(showId: number, soundId: number, updateSoundTimecodeRequest: UpdateSoundTimecodeRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateSoundTimecodeEndpoint(showId: number, soundId: number, updateSoundTimecodeRequest: UpdateSoundTimecodeRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeEndpoint(showId: number, soundId: number, pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest: PyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeEndpoint(showId: number, soundId: number, pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest: PyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeEndpoint(showId: number, soundId: number, pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest: PyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeEndpoint(showId: number, soundId: number, pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest: PyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (showId === null || showId === undefined) { - throw new Error('Required parameter showId was null or undefined when calling updateSoundTimecodeEndpoint.'); + throw new Error('Required parameter showId was null or undefined when calling pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeEndpoint.'); } if (soundId === null || soundId === undefined) { - throw new Error('Required parameter soundId was null or undefined when calling updateSoundTimecodeEndpoint.'); + throw new Error('Required parameter soundId was null or undefined when calling pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeEndpoint.'); } - if (updateSoundTimecodeRequest === null || updateSoundTimecodeRequest === undefined) { - throw new Error('Required parameter updateSoundTimecodeRequest was null or undefined when calling updateSoundTimecodeEndpoint.'); + if (pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest === null || pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest === undefined) { + throw new Error('Required parameter pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest was null or undefined when calling pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -324,12 +324,12 @@ export class SoundtimecodesService extends BaseService { } } - let localVarPath = `/API/soundtimecodes/${this.configuration.encodeParam({name: "showId", value: showId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "soundId", value: soundId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/soundtimecodes/${this.configuration.encodeParam({name: "showId", value: showId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "soundId", value: soundId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, + return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: updateSoundTimecodeRequest, + body: pyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, diff --git a/src/app/services/api/api/staff.service.ts b/src/app/services/api/api/staff.service.ts index f2c39a78..478e9200 100644 --- a/src/app/services/api/api/staff.service.ts +++ b/src/app/services/api/api/staff.service.ts @@ -17,11 +17,11 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { CreateStaffDto } from '../model/create-staff-dto'; +import { PyroFetesDTOStaffRequestCreateStaffDto } from '../model/pyro-fetes-dto-staff-request-create-staff-dto'; // @ts-ignore -import { ReadStaffDto } from '../model/read-staff-dto'; +import { PyroFetesDTOStaffRequestUpdateStaffDto } from '../model/pyro-fetes-dto-staff-request-update-staff-dto'; // @ts-ignore -import { UpdateStaffDto } from '../model/update-staff-dto'; +import { PyroFetesDTOStaffResponseReadStaffDto } from '../model/pyro-fetes-dto-staff-response-read-staff-dto'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -40,17 +40,17 @@ export class StaffService extends BaseService { } /** - * @endpoint post /API/staff - * @param createStaffDto + * @endpoint post /staff + * @param pyroFetesDTOStaffRequestCreateStaffDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createStaffEndpoint(createStaffDto: CreateStaffDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public createStaffEndpoint(createStaffDto: CreateStaffDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createStaffEndpoint(createStaffDto: CreateStaffDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createStaffEndpoint(createStaffDto: CreateStaffDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (createStaffDto === null || createStaffDto === undefined) { - throw new Error('Required parameter createStaffDto was null or undefined when calling createStaffEndpoint.'); + public pyroFetesEndpointsStaffCreateStaffEndpoint(pyroFetesDTOStaffRequestCreateStaffDto: PyroFetesDTOStaffRequestCreateStaffDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsStaffCreateStaffEndpoint(pyroFetesDTOStaffRequestCreateStaffDto: PyroFetesDTOStaffRequestCreateStaffDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffCreateStaffEndpoint(pyroFetesDTOStaffRequestCreateStaffDto: PyroFetesDTOStaffRequestCreateStaffDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffCreateStaffEndpoint(pyroFetesDTOStaffRequestCreateStaffDto: PyroFetesDTOStaffRequestCreateStaffDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (pyroFetesDTOStaffRequestCreateStaffDto === null || pyroFetesDTOStaffRequestCreateStaffDto === undefined) { + throw new Error('Required parameter pyroFetesDTOStaffRequestCreateStaffDto was null or undefined when calling pyroFetesEndpointsStaffCreateStaffEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -87,12 +87,12 @@ export class StaffService extends BaseService { } } - let localVarPath = `/API/staff`; + let localVarPath = `/staff`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, + return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: createStaffDto, + body: pyroFetesDTOStaffRequestCreateStaffDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, @@ -104,17 +104,17 @@ export class StaffService extends BaseService { } /** - * @endpoint delete /API/staff/{id} + * @endpoint delete /staff/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public deleteStaffEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteStaffEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteStaffEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteStaffEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsStaffDeleteStaffEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsStaffDeleteStaffEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffDeleteStaffEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffDeleteStaffEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling deleteStaffEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsStaffDeleteStaffEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -141,7 +141,7 @@ export class StaffService extends BaseService { } } - let localVarPath = `/API/staff/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/staff/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { @@ -157,14 +157,14 @@ export class StaffService extends BaseService { } /** - * @endpoint get /API/staff + * @endpoint get /staff * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getAllStaffEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllStaffEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllStaffEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllStaffEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsStaffGetAllStaffEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffGetAllStaffEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsStaffGetAllStaffEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsStaffGetAllStaffEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -191,9 +191,9 @@ export class StaffService extends BaseService { } } - let localVarPath = `/API/staff`; + let localVarPath = `/staff`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>('get', `${basePath}${localVarPath}`, + return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -207,17 +207,17 @@ export class StaffService extends BaseService { } /** - * @endpoint get /API/staff/{id} + * @endpoint get /staff/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getStaffEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getStaffEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getStaffEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getStaffEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsStaffGetStaffEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsStaffGetStaffEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffGetStaffEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffGetStaffEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getStaffEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsStaffGetStaffEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -245,9 +245,9 @@ export class StaffService extends BaseService { } } - let localVarPath = `/API/staff/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/staff/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -261,21 +261,21 @@ export class StaffService extends BaseService { } /** - * @endpoint put /API/staff/{id} + * @endpoint put /staff/{Id} * @param id - * @param updateStaffDto + * @param pyroFetesDTOStaffRequestUpdateStaffDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateStaffEndpoint(id: number, updateStaffDto: UpdateStaffDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateStaffEndpoint(id: number, updateStaffDto: UpdateStaffDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateStaffEndpoint(id: number, updateStaffDto: UpdateStaffDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateStaffEndpoint(id: number, updateStaffDto: UpdateStaffDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsStaffUpdateStaffEndpoint(id: number, pyroFetesDTOStaffRequestUpdateStaffDto: PyroFetesDTOStaffRequestUpdateStaffDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsStaffUpdateStaffEndpoint(id: number, pyroFetesDTOStaffRequestUpdateStaffDto: PyroFetesDTOStaffRequestUpdateStaffDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffUpdateStaffEndpoint(id: number, pyroFetesDTOStaffRequestUpdateStaffDto: PyroFetesDTOStaffRequestUpdateStaffDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsStaffUpdateStaffEndpoint(id: number, pyroFetesDTOStaffRequestUpdateStaffDto: PyroFetesDTOStaffRequestUpdateStaffDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling updateStaffEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsStaffUpdateStaffEndpoint.'); } - if (updateStaffDto === null || updateStaffDto === undefined) { - throw new Error('Required parameter updateStaffDto was null or undefined when calling updateStaffEndpoint.'); + if (pyroFetesDTOStaffRequestUpdateStaffDto === null || pyroFetesDTOStaffRequestUpdateStaffDto === undefined) { + throw new Error('Required parameter pyroFetesDTOStaffRequestUpdateStaffDto was null or undefined when calling pyroFetesEndpointsStaffUpdateStaffEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -312,12 +312,12 @@ export class StaffService extends BaseService { } } - let localVarPath = `/API/staff/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/staff/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, + return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: updateStaffDto, + body: pyroFetesDTOStaffRequestUpdateStaffDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, diff --git a/src/app/services/api/api/trucks.service.ts b/src/app/services/api/api/trucks.service.ts index 6fba4f1b..c0b9406a 100644 --- a/src/app/services/api/api/trucks.service.ts +++ b/src/app/services/api/api/trucks.service.ts @@ -17,11 +17,11 @@ import { CustomHttpParameterCodec } from '../encoder'; import { Observable } from 'rxjs'; // @ts-ignore -import { CreateTruckDto } from '../model/create-truck-dto'; +import { PyroFetesDTOTruckRequestCreateTruckDto } from '../model/pyro-fetes-dto-truck-request-create-truck-dto'; // @ts-ignore -import { ReadTruckDto } from '../model/read-truck-dto'; +import { PyroFetesDTOTruckRequestUpdateTruckDto } from '../model/pyro-fetes-dto-truck-request-update-truck-dto'; // @ts-ignore -import { UpdateTruckDto } from '../model/update-truck-dto'; +import { PyroFetesDTOTruckResponseReadTruckDto } from '../model/pyro-fetes-dto-truck-response-read-truck-dto'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS } from '../variables'; @@ -40,17 +40,17 @@ export class TrucksService extends BaseService { } /** - * @endpoint post /API/trucks - * @param createTruckDto + * @endpoint post /trucks + * @param pyroFetesDTOTruckRequestCreateTruckDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createTruckEndpoint(createTruckDto: CreateTruckDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public createTruckEndpoint(createTruckDto: CreateTruckDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createTruckEndpoint(createTruckDto: CreateTruckDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public createTruckEndpoint(createTruckDto: CreateTruckDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { - if (createTruckDto === null || createTruckDto === undefined) { - throw new Error('Required parameter createTruckDto was null or undefined when calling createTruckEndpoint.'); + public pyroFetesEndpointsTruckCreateTruckEndpoint(pyroFetesDTOTruckRequestCreateTruckDto: PyroFetesDTOTruckRequestCreateTruckDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsTruckCreateTruckEndpoint(pyroFetesDTOTruckRequestCreateTruckDto: PyroFetesDTOTruckRequestCreateTruckDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckCreateTruckEndpoint(pyroFetesDTOTruckRequestCreateTruckDto: PyroFetesDTOTruckRequestCreateTruckDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckCreateTruckEndpoint(pyroFetesDTOTruckRequestCreateTruckDto: PyroFetesDTOTruckRequestCreateTruckDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + if (pyroFetesDTOTruckRequestCreateTruckDto === null || pyroFetesDTOTruckRequestCreateTruckDto === undefined) { + throw new Error('Required parameter pyroFetesDTOTruckRequestCreateTruckDto was null or undefined when calling pyroFetesEndpointsTruckCreateTruckEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -87,12 +87,12 @@ export class TrucksService extends BaseService { } } - let localVarPath = `/API/trucks`; + let localVarPath = `/trucks`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('post', `${basePath}${localVarPath}`, + return this.httpClient.request('post', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: createTruckDto, + body: pyroFetesDTOTruckRequestCreateTruckDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, @@ -104,17 +104,17 @@ export class TrucksService extends BaseService { } /** - * @endpoint delete /API/trucks/{id} + * @endpoint delete /trucks/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public deleteTruckEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; - public deleteTruckEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteTruckEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; - public deleteTruckEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsTruckDeleteTruckEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsTruckDeleteTruckEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckDeleteTruckEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckDeleteTruckEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling deleteTruckEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsTruckDeleteTruckEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -141,7 +141,7 @@ export class TrucksService extends BaseService { } } - let localVarPath = `/API/trucks/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/trucks/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; return this.httpClient.request('delete', `${basePath}${localVarPath}`, { @@ -157,14 +157,14 @@ export class TrucksService extends BaseService { } /** - * @endpoint get /API/trucks + * @endpoint get /trucks * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getAllTrucksEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getAllTrucksEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllTrucksEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; - public getAllTrucksEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsTruckGetAllTrucksEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckGetAllTrucksEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsTruckGetAllTrucksEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public pyroFetesEndpointsTruckGetAllTrucksEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -191,9 +191,9 @@ export class TrucksService extends BaseService { } } - let localVarPath = `/API/trucks`; + let localVarPath = `/trucks`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request>('get', `${basePath}${localVarPath}`, + return this.httpClient.request>('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -207,17 +207,17 @@ export class TrucksService extends BaseService { } /** - * @endpoint get /API/trucks/{id} + * @endpoint get /trucks/{Id} * @param id * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public getTruckEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public getTruckEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getTruckEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public getTruckEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsTruckGetTruckEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsTruckGetTruckEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckGetTruckEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckGetTruckEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling getTruckEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsTruckGetTruckEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -245,9 +245,9 @@ export class TrucksService extends BaseService { } } - let localVarPath = `/API/trucks/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/trucks/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('get', `${basePath}${localVarPath}`, + return this.httpClient.request('get', `${basePath}${localVarPath}`, { context: localVarHttpContext, responseType: responseType_, @@ -261,21 +261,21 @@ export class TrucksService extends BaseService { } /** - * @endpoint put /API/trucks/{id} + * @endpoint put /trucks/{Id} * @param id - * @param updateTruckDto + * @param pyroFetesDTOTruckRequestUpdateTruckDto * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public updateTruckEndpoint(id: number, updateTruckDto: UpdateTruckDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; - public updateTruckEndpoint(id: number, updateTruckDto: UpdateTruckDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateTruckEndpoint(id: number, updateTruckDto: UpdateTruckDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; - public updateTruckEndpoint(id: number, updateTruckDto: UpdateTruckDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { + public pyroFetesEndpointsTruckUpdateTruckEndpoint(id: number, pyroFetesDTOTruckRequestUpdateTruckDto: PyroFetesDTOTruckRequestUpdateTruckDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public pyroFetesEndpointsTruckUpdateTruckEndpoint(id: number, pyroFetesDTOTruckRequestUpdateTruckDto: PyroFetesDTOTruckRequestUpdateTruckDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckUpdateTruckEndpoint(id: number, pyroFetesDTOTruckRequestUpdateTruckDto: PyroFetesDTOTruckRequestUpdateTruckDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public pyroFetesEndpointsTruckUpdateTruckEndpoint(id: number, pyroFetesDTOTruckRequestUpdateTruckDto: PyroFetesDTOTruckRequestUpdateTruckDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (id === null || id === undefined) { - throw new Error('Required parameter id was null or undefined when calling updateTruckEndpoint.'); + throw new Error('Required parameter id was null or undefined when calling pyroFetesEndpointsTruckUpdateTruckEndpoint.'); } - if (updateTruckDto === null || updateTruckDto === undefined) { - throw new Error('Required parameter updateTruckDto was null or undefined when calling updateTruckEndpoint.'); + if (pyroFetesDTOTruckRequestUpdateTruckDto === null || pyroFetesDTOTruckRequestUpdateTruckDto === undefined) { + throw new Error('Required parameter pyroFetesDTOTruckRequestUpdateTruckDto was null or undefined when calling pyroFetesEndpointsTruckUpdateTruckEndpoint.'); } let localVarHeaders = this.defaultHeaders; @@ -312,12 +312,12 @@ export class TrucksService extends BaseService { } } - let localVarPath = `/API/trucks/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; + let localVarPath = `/trucks/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`; const { basePath, withCredentials } = this.configuration; - return this.httpClient.request('put', `${basePath}${localVarPath}`, + return this.httpClient.request('put', `${basePath}${localVarPath}`, { context: localVarHttpContext, - body: updateTruckDto, + body: pyroFetesDTOTruckRequestUpdateTruckDto, responseType: responseType_, ...(withCredentials ? { withCredentials } : {}), headers: localVarHeaders, diff --git a/src/app/services/api/model/models.ts b/src/app/services/api/model/models.ts index fb353e0c..cfec4de1 100644 --- a/src/app/services/api/model/models.ts +++ b/src/app/services/api/model/models.ts @@ -1,18 +1,18 @@ -export * from './create-show-dto'; -export * from './create-sound-category-dto'; -export * from './create-sound-dto'; -export * from './create-sound-timecode-dto'; -export * from './create-staff-dto'; -export * from './create-truck-dto'; -export * from './read-show-dto'; -export * from './read-sound-category-dto'; -export * from './read-sound-dto'; -export * from './read-sound-timecode-dto'; -export * from './read-staff-dto'; -export * from './read-truck-dto'; -export * from './update-show-dto'; -export * from './update-sound-category-dto'; -export * from './update-sound-dto'; -export * from './update-sound-timecode-request'; -export * from './update-staff-dto'; -export * from './update-truck-dto'; +export * from './pyro-fetes-dto-show-request-create-show-dto'; +export * from './pyro-fetes-dto-show-request-update-show-dto'; +export * from './pyro-fetes-dto-show-response-read-show-dto'; +export * from './pyro-fetes-dto-sound-category-request-create-sound-category-dto'; +export * from './pyro-fetes-dto-sound-category-request-update-sound-category-dto'; +export * from './pyro-fetes-dto-sound-category-response-read-sound-category-dto'; +export * from './pyro-fetes-dto-sound-request-create-sound-dto'; +export * from './pyro-fetes-dto-sound-request-update-sound-dto'; +export * from './pyro-fetes-dto-sound-response-read-sound-dto'; +export * from './pyro-fetes-dto-sound-timecode-request-create-sound-timecode-dto'; +export * from './pyro-fetes-dto-sound-timecode-response-read-sound-timecode-dto'; +export * from './pyro-fetes-dto-staff-request-create-staff-dto'; +export * from './pyro-fetes-dto-staff-request-update-staff-dto'; +export * from './pyro-fetes-dto-staff-response-read-staff-dto'; +export * from './pyro-fetes-dto-truck-request-create-truck-dto'; +export * from './pyro-fetes-dto-truck-request-update-truck-dto'; +export * from './pyro-fetes-dto-truck-response-read-truck-dto'; +export * from './pyro-fetes-endpoints-sound-timecode-update-sound-timecode-request'; diff --git a/src/app/services/api/model/create-show-dto.ts b/src/app/services/api/model/pyro-fetes-dto-show-request-create-show-dto.ts similarity index 80% rename from src/app/services/api/model/create-show-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-show-request-create-show-dto.ts index 1defbf6c..45d5d910 100644 --- a/src/app/services/api/model/create-show-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-show-request-create-show-dto.ts @@ -9,12 +9,12 @@ */ -export interface CreateShowDto { +export interface PyroFetesDTOShowRequestCreateShowDto { name?: string | null; place?: string | null; description?: string | null; pyrotechnicImplementationPlan?: string | null; date?: string | null; - cityId?: number; + cityId?: number | null; } diff --git a/src/app/services/api/model/update-show-dto.ts b/src/app/services/api/model/pyro-fetes-dto-show-request-update-show-dto.ts similarity index 80% rename from src/app/services/api/model/update-show-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-show-request-update-show-dto.ts index 0d3f74db..281386b5 100644 --- a/src/app/services/api/model/update-show-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-show-request-update-show-dto.ts @@ -9,11 +9,12 @@ */ -export interface UpdateShowDto { +export interface PyroFetesDTOShowRequestUpdateShowDto { name?: string | null; place?: string | null; description?: string | null; pyrotechnicImplementationPlan?: string | null; date?: string | null; + cityId?: number | null; } diff --git a/src/app/services/api/model/read-show-dto.ts b/src/app/services/api/model/pyro-fetes-dto-show-response-read-show-dto.ts similarity index 82% rename from src/app/services/api/model/read-show-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-show-response-read-show-dto.ts index 7dbc13b4..643f3140 100644 --- a/src/app/services/api/model/read-show-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-show-response-read-show-dto.ts @@ -9,12 +9,13 @@ */ -export interface ReadShowDto { +export interface PyroFetesDTOShowResponseReadShowDto { id?: number | null; name?: string | null; place?: string | null; description?: string | null; pyrotechnicImplementationPlan?: string | null; date?: string | null; + cityId?: number | null; } diff --git a/src/app/services/api/model/create-sound-category-dto.ts b/src/app/services/api/model/pyro-fetes-dto-sound-category-request-create-sound-category-dto.ts similarity index 74% rename from src/app/services/api/model/create-sound-category-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-sound-category-request-create-sound-category-dto.ts index f1a56db3..45e1a9fc 100644 --- a/src/app/services/api/model/create-sound-category-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-sound-category-request-create-sound-category-dto.ts @@ -9,7 +9,7 @@ */ -export interface CreateSoundCategoryDto { +export interface PyroFetesDTOSoundCategoryRequestCreateSoundCategoryDto { name?: string | null; } diff --git a/src/app/services/api/model/update-sound-category-dto.ts b/src/app/services/api/model/pyro-fetes-dto-sound-category-request-update-sound-category-dto.ts similarity index 74% rename from src/app/services/api/model/update-sound-category-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-sound-category-request-update-sound-category-dto.ts index ccf226ae..fbe41096 100644 --- a/src/app/services/api/model/update-sound-category-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-sound-category-request-update-sound-category-dto.ts @@ -9,7 +9,7 @@ */ -export interface UpdateSoundCategoryDto { +export interface PyroFetesDTOSoundCategoryRequestUpdateSoundCategoryDto { name?: string | null; } diff --git a/src/app/services/api/model/read-sound-category-dto.ts b/src/app/services/api/model/pyro-fetes-dto-sound-category-response-read-sound-category-dto.ts similarity index 77% rename from src/app/services/api/model/read-sound-category-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-sound-category-response-read-sound-category-dto.ts index 05440d76..e2613637 100644 --- a/src/app/services/api/model/read-sound-category-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-sound-category-response-read-sound-category-dto.ts @@ -9,7 +9,7 @@ */ -export interface ReadSoundCategoryDto { +export interface PyroFetesDTOSoundCategoryResponseReadSoundCategoryDto { id?: number | null; name?: string | null; } diff --git a/src/app/services/api/model/update-sound-dto.ts b/src/app/services/api/model/pyro-fetes-dto-sound-request-create-sound-dto.ts similarity index 88% rename from src/app/services/api/model/update-sound-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-sound-request-create-sound-dto.ts index 5a139bcd..c6b25e17 100644 --- a/src/app/services/api/model/update-sound-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-sound-request-create-sound-dto.ts @@ -9,7 +9,7 @@ */ -export interface UpdateSoundDto { +export interface PyroFetesDTOSoundRequestCreateSoundDto { name?: string | null; type?: string | null; artist?: string | null; diff --git a/src/app/services/api/model/create-sound-dto.ts b/src/app/services/api/model/pyro-fetes-dto-sound-request-update-sound-dto.ts similarity index 88% rename from src/app/services/api/model/create-sound-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-sound-request-update-sound-dto.ts index a02a2d41..fc5303e8 100644 --- a/src/app/services/api/model/create-sound-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-sound-request-update-sound-dto.ts @@ -9,7 +9,7 @@ */ -export interface CreateSoundDto { +export interface PyroFetesDTOSoundRequestUpdateSoundDto { name?: string | null; type?: string | null; artist?: string | null; diff --git a/src/app/services/api/model/read-sound-dto.ts b/src/app/services/api/model/pyro-fetes-dto-sound-response-read-sound-dto.ts similarity index 88% rename from src/app/services/api/model/read-sound-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-sound-response-read-sound-dto.ts index 7f7afd95..381068c9 100644 --- a/src/app/services/api/model/read-sound-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-sound-response-read-sound-dto.ts @@ -9,7 +9,7 @@ */ -export interface ReadSoundDto { +export interface PyroFetesDTOSoundResponseReadSoundDto { id?: number | null; name?: string | null; type?: string | null; diff --git a/src/app/services/api/model/create-sound-timecode-dto.ts b/src/app/services/api/model/pyro-fetes-dto-sound-timecode-request-create-sound-timecode-dto.ts similarity index 78% rename from src/app/services/api/model/create-sound-timecode-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-sound-timecode-request-create-sound-timecode-dto.ts index 90ef1046..d38d2cc1 100644 --- a/src/app/services/api/model/create-sound-timecode-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-sound-timecode-request-create-sound-timecode-dto.ts @@ -9,7 +9,7 @@ */ -export interface CreateSoundTimecodeDto { +export interface PyroFetesDTOSoundTimecodeRequestCreateSoundTimecodeDto { showId?: number; soundId?: number; start?: number; diff --git a/src/app/services/api/model/read-sound-timecode-dto.ts b/src/app/services/api/model/pyro-fetes-dto-sound-timecode-response-read-sound-timecode-dto.ts similarity index 81% rename from src/app/services/api/model/read-sound-timecode-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-sound-timecode-response-read-sound-timecode-dto.ts index 184355c3..9aaa6a16 100644 --- a/src/app/services/api/model/read-sound-timecode-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-sound-timecode-response-read-sound-timecode-dto.ts @@ -9,7 +9,7 @@ */ -export interface ReadSoundTimecodeDto { +export interface PyroFetesDTOSoundTimecodeResponseReadSoundTimecodeDto { id?: number | null; showId?: number | null; soundId?: number | null; diff --git a/src/app/services/api/model/update-staff-dto.ts b/src/app/services/api/model/pyro-fetes-dto-staff-request-create-staff-dto.ts similarity index 70% rename from src/app/services/api/model/update-staff-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-staff-request-create-staff-dto.ts index 55dc64f1..7410f23b 100644 --- a/src/app/services/api/model/update-staff-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-staff-request-create-staff-dto.ts @@ -9,10 +9,12 @@ */ -export interface UpdateStaffDto { +export interface PyroFetesDTOStaffRequestCreateStaffDto { firstName?: string | null; lastName?: string | null; profession?: string | null; email?: string | null; + f4T2NumberApproval?: string | null; + f4T2ExpirationDate?: string; } diff --git a/src/app/services/api/model/create-staff-dto.ts b/src/app/services/api/model/pyro-fetes-dto-staff-request-update-staff-dto.ts similarity index 69% rename from src/app/services/api/model/create-staff-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-staff-request-update-staff-dto.ts index b7c57229..217f91c4 100644 --- a/src/app/services/api/model/create-staff-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-staff-request-update-staff-dto.ts @@ -9,10 +9,12 @@ */ -export interface CreateStaffDto { +export interface PyroFetesDTOStaffRequestUpdateStaffDto { firstName?: string | null; lastName?: string | null; profession?: string | null; email?: string | null; + f4T2NumberApproval?: string | null; + f4T2ExpirationDate?: string | null; } diff --git a/src/app/services/api/model/read-staff-dto.ts b/src/app/services/api/model/pyro-fetes-dto-staff-response-read-staff-dto.ts similarity index 72% rename from src/app/services/api/model/read-staff-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-staff-response-read-staff-dto.ts index 4b22e269..3abe471e 100644 --- a/src/app/services/api/model/read-staff-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-staff-response-read-staff-dto.ts @@ -9,11 +9,13 @@ */ -export interface ReadStaffDto { +export interface PyroFetesDTOStaffResponseReadStaffDto { id?: number | null; firstName?: string | null; lastName?: string | null; profession?: string | null; email?: string | null; + f4T2NumberApproval?: string | null; + f4T2ExpirationDate?: string; } diff --git a/src/app/services/api/model/create-truck-dto.ts b/src/app/services/api/model/pyro-fetes-dto-truck-request-create-truck-dto.ts similarity index 85% rename from src/app/services/api/model/create-truck-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-truck-request-create-truck-dto.ts index 07fc94f1..60e06bea 100644 --- a/src/app/services/api/model/create-truck-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-truck-request-create-truck-dto.ts @@ -9,7 +9,7 @@ */ -export interface CreateTruckDto { +export interface PyroFetesDTOTruckRequestCreateTruckDto { type?: string | null; maxExplosiveCapacity?: number | null; sizes?: string | null; diff --git a/src/app/services/api/model/update-truck-dto.ts b/src/app/services/api/model/pyro-fetes-dto-truck-request-update-truck-dto.ts similarity index 85% rename from src/app/services/api/model/update-truck-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-truck-request-update-truck-dto.ts index 65d3f9a1..414cbbc7 100644 --- a/src/app/services/api/model/update-truck-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-truck-request-update-truck-dto.ts @@ -9,7 +9,7 @@ */ -export interface UpdateTruckDto { +export interface PyroFetesDTOTruckRequestUpdateTruckDto { type?: string | null; maxExplosiveCapacity?: string | null; sizes?: string | null; diff --git a/src/app/services/api/model/read-truck-dto.ts b/src/app/services/api/model/pyro-fetes-dto-truck-response-read-truck-dto.ts similarity index 86% rename from src/app/services/api/model/read-truck-dto.ts rename to src/app/services/api/model/pyro-fetes-dto-truck-response-read-truck-dto.ts index 9e6d442f..b055e772 100644 --- a/src/app/services/api/model/read-truck-dto.ts +++ b/src/app/services/api/model/pyro-fetes-dto-truck-response-read-truck-dto.ts @@ -9,7 +9,7 @@ */ -export interface ReadTruckDto { +export interface PyroFetesDTOTruckResponseReadTruckDto { id?: number | null; type?: string | null; maxExplosiveCapacity?: number | null; diff --git a/src/app/services/api/model/update-sound-timecode-request.ts b/src/app/services/api/model/pyro-fetes-endpoints-sound-timecode-update-sound-timecode-request.ts similarity index 75% rename from src/app/services/api/model/update-sound-timecode-request.ts rename to src/app/services/api/model/pyro-fetes-endpoints-sound-timecode-update-sound-timecode-request.ts index 945bce04..726724a1 100644 --- a/src/app/services/api/model/update-sound-timecode-request.ts +++ b/src/app/services/api/model/pyro-fetes-endpoints-sound-timecode-update-sound-timecode-request.ts @@ -9,7 +9,7 @@ */ -export interface UpdateSoundTimecodeRequest { +export interface PyroFetesEndpointsSoundTimecodeUpdateSoundTimecodeRequest { start?: number; end?: number; } diff --git a/src/styles.css b/src/styles.css index 0cae841e..96d7baba 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,3 +1,5 @@ +@import 'ng-zorro-antd/ng-zorro-antd.min.css'; + /* You can add global styles to this file, and also import other style files */ :root { --mauve: #8b7b8b; @@ -121,5 +123,38 @@ button.primary { font-weight: 700 !important; } +/* ─── Modale création spectacle ──────────────────────────── */ +.create-show-modal .ant-modal-content { + border-radius: 16px !important; + overflow: hidden !important; + border: 1.5px solid #ede8e0 !important; + box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14) !important; + padding: 0 !important; +} +.create-show-modal .ant-modal-body { + padding: 28px !important; +} + +.create-show-modal .ant-modal-close { + top: 14px !important; + right: 14px !important; +} + +.create-show-modal .ant-modal-close-x { + width: 32px !important; + height: 32px !important; + line-height: 32px !important; + border-radius: 8px !important; + color: #bbb !important; + transition: all 0.15s !important; + display: flex !important; + align-items: center !important; + justify-content: center !important; +} + +.create-show-modal .ant-modal-close-x:hover { + background: #f5f4f0 !important; + color: #666 !important; +}