@erp-galoper/types 1.0.1972 → 1.0.1973

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/openapi.ts +1042 -193
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -2874,7 +2874,7 @@ export interface paths {
2874
2874
  };
2875
2875
  /**
2876
2876
  * List Facilities
2877
- * @description Endpoint for List Facilities
2877
+ * @description Endpoint for List Facilities (uses X-Current-Branch header)
2878
2878
  * - 200:
2879
2879
  * - success
2880
2880
  * - 400:
@@ -2892,7 +2892,7 @@ export interface paths {
2892
2892
  put?: never;
2893
2893
  /**
2894
2894
  * Create Facility
2895
- * @description Endpoint for create facility
2895
+ * @description Endpoint for create facility (uses X-Current-Branch header)
2896
2896
  * Possible Responses:
2897
2897
  * - 201:
2898
2898
  * - facilityCreated
@@ -2922,7 +2922,7 @@ export interface paths {
2922
2922
  };
2923
2923
  /**
2924
2924
  * Get Facility
2925
- * @description Endpoint for retrieve facility.
2925
+ * @description Endpoint for retrieve facility (uses X-Current-Branch header).
2926
2926
  * Possible Responses:
2927
2927
  * - 200:
2928
2928
  * - success
@@ -2940,7 +2940,7 @@ export interface paths {
2940
2940
  post?: never;
2941
2941
  /**
2942
2942
  * Delete Facility
2943
- * @description Endpoint for delete facility
2943
+ * @description Endpoint for delete facility (uses X-Current-Branch header)
2944
2944
  * - 404:
2945
2945
  * - facilityDoesNotExist
2946
2946
  * - branchDoesNotExist
@@ -2957,7 +2957,7 @@ export interface paths {
2957
2957
  head?: never;
2958
2958
  /**
2959
2959
  * Update Facility
2960
- * @description Endpoint for update facility
2960
+ * @description Endpoint for update facility (uses X-Current-Branch header)
2961
2961
  * Possible Responses:
2962
2962
  * - 200:
2963
2963
  * - facilityUpdated
@@ -22629,6 +22629,96 @@ export interface paths {
22629
22629
  patch: operations["event_views_cancel_event"];
22630
22630
  trace?: never;
22631
22631
  };
22632
+ "/api/v1/appointments/": {
22633
+ parameters: {
22634
+ query?: never;
22635
+ header?: never;
22636
+ path?: never;
22637
+ cookie?: never;
22638
+ };
22639
+ /**
22640
+ * List Appointments
22641
+ * @description List appointments for the current branch (X-Current-Branch header).
22642
+ *
22643
+ * Permission key: appointment = ["view"]
22644
+ */
22645
+ get: operations["appointment_views_list_appointments"];
22646
+ put?: never;
22647
+ /**
22648
+ * Create Appointment
22649
+ * @description Create an appointment for the current branch (X-Current-Branch header).
22650
+ *
22651
+ * Permission key: appointment = ["add"]
22652
+ */
22653
+ post: operations["appointment_views_create_appointment"];
22654
+ delete?: never;
22655
+ options?: never;
22656
+ head?: never;
22657
+ patch?: never;
22658
+ trace?: never;
22659
+ };
22660
+ "/api/v1/appointments/{id}/conflicts/": {
22661
+ parameters: {
22662
+ query?: never;
22663
+ header?: never;
22664
+ path?: never;
22665
+ cookie?: never;
22666
+ };
22667
+ get?: never;
22668
+ put?: never;
22669
+ /**
22670
+ * Check Appointment Conflicts
22671
+ * @description Check scheduling conflicts for an existing appointment without saving changes.
22672
+ *
22673
+ * Permission key: appointment = ["view"]
22674
+ */
22675
+ post: operations["appointment_views_check_appointment_conflicts"];
22676
+ delete?: never;
22677
+ options?: never;
22678
+ head?: never;
22679
+ patch?: never;
22680
+ trace?: never;
22681
+ };
22682
+ "/api/v1/appointments/{id}/": {
22683
+ parameters: {
22684
+ query?: never;
22685
+ header?: never;
22686
+ path?: never;
22687
+ cookie?: never;
22688
+ };
22689
+ /**
22690
+ * Get Appointment
22691
+ * @description Retrieve a single appointment by ID for the current branch.
22692
+ *
22693
+ * Permission key: appointment = ["view"]
22694
+ */
22695
+ get: operations["appointment_views_get_appointment"];
22696
+ /**
22697
+ * Replace Appointment
22698
+ * @description Fully replace an appointment. Cancelled appointments cannot be edited.
22699
+ *
22700
+ * Permission key: appointment = ["change"]
22701
+ */
22702
+ put: operations["appointment_views_replace_appointment"];
22703
+ post?: never;
22704
+ /**
22705
+ * Delete Appointment
22706
+ * @description Delete an appointment. Not allowed when linked to any sales invoice — use cancel instead.
22707
+ *
22708
+ * Permission key: appointment = ["delete"]
22709
+ */
22710
+ delete: operations["appointment_views_delete_appointment"];
22711
+ options?: never;
22712
+ head?: never;
22713
+ /**
22714
+ * Update Appointment
22715
+ * @description Partially update an appointment. Cancelled appointments cannot be edited.
22716
+ *
22717
+ * Permission key: appointment = ["change"]
22718
+ */
22719
+ patch: operations["appointment_views_update_appointment"];
22720
+ trace?: never;
22721
+ };
22632
22722
  "/api/v1/maintenance/repair-orders/": {
22633
22723
  parameters: {
22634
22724
  query?: never;
@@ -31304,11 +31394,6 @@ export interface components {
31304
31394
  FacilitySchema: {
31305
31395
  /** Name */
31306
31396
  name: string;
31307
- /**
31308
- * Branchid
31309
- * Format: uuid
31310
- */
31311
- branchId: string;
31312
31397
  };
31313
31398
  /** ListFacilities */
31314
31399
  ListFacilities: {
@@ -31335,6 +31420,11 @@ export interface components {
31335
31420
  /** Candelete */
31336
31421
  canDelete: boolean;
31337
31422
  };
31423
+ /** UpdateFacility */
31424
+ UpdateFacility: {
31425
+ /** Name */
31426
+ name?: string | null;
31427
+ };
31338
31428
  /** RetrieveFacility */
31339
31429
  RetrieveFacility: {
31340
31430
  /**
@@ -56074,6 +56164,16 @@ export interface components {
56074
56164
  /** Password */
56075
56165
  password?: string;
56076
56166
  };
56167
+ /** AppointmentLinkedDocumentSchema */
56168
+ AppointmentLinkedDocumentSchema: {
56169
+ /**
56170
+ * Id
56171
+ * Format: uuid
56172
+ */
56173
+ id: string;
56174
+ /** Title */
56175
+ title: string;
56176
+ };
56077
56177
  /**
56078
56178
  * OnlineOrderSummarySchema
56079
56179
  * @description Summary of online order linked to a sales invoice
@@ -56288,6 +56388,8 @@ export interface components {
56288
56388
  salesQuotation: components["schemas"]["DocumentCommonSchema"] | null;
56289
56389
  /** @description The repair order linked to this invoice, if applicable. */
56290
56390
  repairOrder: components["schemas"]["DocumentCommonSchema"] | null;
56391
+ /** @description The appointment linked to this invoice, if applicable. */
56392
+ appointment: components["schemas"]["AppointmentLinkedDocumentSchema"] | null;
56291
56393
  /**
56292
56394
  * Date
56293
56395
  * Format: date
@@ -56706,6 +56808,14 @@ export interface components {
56706
56808
  * @description get repair orders filtered by customer.id, branch, and approval status=approved or not_required
56707
56809
  */
56708
56810
  repairOrder?: string;
56811
+ /**
56812
+ * Appointment
56813
+ * Format: uuid
56814
+ * @description - get appointments from /api/v1/appointments/ filtered by branch (X-Current-Branch header)
56815
+ * - invoice customer must be one of the debtor children of the appointment parent customer
56816
+ * (get from /api/v1/customers/?type=children filtered by parent equal to appointment.customer.id)
56817
+ */
56818
+ appointment?: string;
56709
56819
  /**
56710
56820
  * Pricelist
56711
56821
  * Format: uuid
@@ -56927,6 +57037,8 @@ export interface components {
56927
57037
  salesQuotation: components["schemas"]["DocumentCommonSchema"] | null;
56928
57038
  /** @description The repair order linked to this invoice, if applicable. */
56929
57039
  repairOrder: components["schemas"]["DocumentCommonSchema"] | null;
57040
+ /** @description The appointment linked to this invoice, if applicable. */
57041
+ appointment: components["schemas"]["AppointmentLinkedDocumentSchema"] | null;
56930
57042
  /**
56931
57043
  * Date
56932
57044
  * Format: date
@@ -57212,6 +57324,8 @@ export interface components {
57212
57324
  salesQuotation: components["schemas"]["DocumentCommonSchema"] | null;
57213
57325
  /** @description The repair order linked to this invoice, if applicable. */
57214
57326
  repairOrder: components["schemas"]["DocumentCommonSchema"] | null;
57327
+ /** @description The appointment linked to this invoice, if applicable. */
57328
+ appointment: components["schemas"]["AppointmentLinkedDocumentSchema"] | null;
57215
57329
  /**
57216
57330
  * Date
57217
57331
  * Format: date
@@ -63349,6 +63463,417 @@ export interface components {
63349
63463
  /** Customfields */
63350
63464
  customFields?: components["schemas"]["CreateUpdateCustomFieldValues"][];
63351
63465
  };
63466
+ /** AppointmentConflictSchema */
63467
+ AppointmentConflictSchema: {
63468
+ /**
63469
+ * Resourcetype
63470
+ * @description Conflicted resource type: facility, employee, or service
63471
+ */
63472
+ resourceType: string;
63473
+ /**
63474
+ * Resourceid
63475
+ * @description ID of the conflicted resource
63476
+ */
63477
+ resourceId: string;
63478
+ /**
63479
+ * Resourcename
63480
+ * @description Display name of the conflicted resource
63481
+ */
63482
+ resourceName: string;
63483
+ /** @description Summary of the overlapping appointment */
63484
+ appointment: components["schemas"]["AppointmentSummarySchema"];
63485
+ };
63486
+ /** AppointmentEmployeeSummarySchema */
63487
+ AppointmentEmployeeSummarySchema: {
63488
+ /**
63489
+ * Id
63490
+ * Format: uuid
63491
+ */
63492
+ id: string;
63493
+ /** Name */
63494
+ name: string;
63495
+ /** Accountnumber */
63496
+ accountNumber?: string | null;
63497
+ };
63498
+ /** AppointmentSchema */
63499
+ AppointmentSchema: {
63500
+ /**
63501
+ * Datecreated
63502
+ * Format: date-time
63503
+ */
63504
+ dateCreated: string;
63505
+ /** Datemodified */
63506
+ dateModified: string | null;
63507
+ createdBy: components["schemas"]["RecordUserSchema"];
63508
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
63509
+ /**
63510
+ * Id
63511
+ * Format: uuid
63512
+ */
63513
+ id: string;
63514
+ /** Title */
63515
+ title: string;
63516
+ /** Description */
63517
+ description?: string | null;
63518
+ status: components["schemas"]["AppointmentStatusEnum"];
63519
+ branch: components["schemas"]["BranchSummaryInfo"];
63520
+ customer?: components["schemas"]["CustomerSharedSchema"] | null;
63521
+ /** @description Customer's default branch when the customer is a company. Computed on read, not stored on the appointment. */
63522
+ customerBranch?: components["schemas"]["CustomerBranchSharedSchema"] | null;
63523
+ /** @description Assigned facility, if any */
63524
+ facility?: components["schemas"]["FacilitySummarySchema"] | null;
63525
+ /**
63526
+ * Employees
63527
+ * @description Assigned employees
63528
+ */
63529
+ employees?: components["schemas"]["AppointmentEmployeeSummarySchema"][];
63530
+ /**
63531
+ * Services
63532
+ * @description Linked services/items
63533
+ */
63534
+ services?: components["schemas"]["ItemSummaryInfo"][];
63535
+ /**
63536
+ * Scheduleddatetime
63537
+ * Format: date-time
63538
+ */
63539
+ scheduledDatetime: string;
63540
+ /**
63541
+ * Scheduledenddatetime
63542
+ * Format: date-time
63543
+ */
63544
+ scheduledEndDatetime: string;
63545
+ /**
63546
+ * Actualstartdatetime
63547
+ * @description Recorded when status moves to in_progress
63548
+ */
63549
+ actualStartDatetime?: string | null;
63550
+ /**
63551
+ * Actualenddatetime
63552
+ * @description Recorded when status moves to completed
63553
+ */
63554
+ actualEndDatetime?: string | null;
63555
+ /**
63556
+ * Checkindatetime
63557
+ * @description Recorded when status moves to checked_in
63558
+ */
63559
+ checkInDatetime?: string | null;
63560
+ /** @description Linked sales invoice when appointment was billed. Pricing lives on the invoice. */
63561
+ salesInvoice?: components["schemas"]["SalesInvoiceSummarySchema"] | null;
63562
+ /** Cancellationreason */
63563
+ cancellationReason?: string | null;
63564
+ /**
63565
+ * Rescheduledfrom
63566
+ * @description Original appointment ID when this appointment was created from a reschedule
63567
+ */
63568
+ rescheduledFrom?: string | null;
63569
+ /**
63570
+ * Canedit
63571
+ * @description False when status is cancelled.
63572
+ * @default true
63573
+ */
63574
+ canEdit: boolean;
63575
+ /**
63576
+ * Candelete
63577
+ * @description False when linked to any sales invoice. Delete is blocked; use cancel instead.
63578
+ * @default true
63579
+ */
63580
+ canDelete: boolean;
63581
+ };
63582
+ /**
63583
+ * AppointmentStatusEnum
63584
+ * @enum {string}
63585
+ */
63586
+ AppointmentStatusEnum: "draft" | "confirmed" | "checked_in" | "in_progress" | "completed" | "cancelled" | "no_show" | "rescheduled";
63587
+ /** AppointmentSummarySchema */
63588
+ AppointmentSummarySchema: {
63589
+ /**
63590
+ * Id
63591
+ * Format: uuid
63592
+ */
63593
+ id: string;
63594
+ /** Title */
63595
+ title: string;
63596
+ status: components["schemas"]["AppointmentStatusEnum"];
63597
+ /**
63598
+ * Scheduleddatetime
63599
+ * Format: date-time
63600
+ */
63601
+ scheduledDatetime: string;
63602
+ /**
63603
+ * Scheduledenddatetime
63604
+ * Format: date-time
63605
+ */
63606
+ scheduledEndDatetime: string;
63607
+ facility?: components["schemas"]["FacilitySummarySchema"] | null;
63608
+ };
63609
+ /** AppointmentWithConflictsSchema */
63610
+ AppointmentWithConflictsSchema: {
63611
+ appointment: components["schemas"]["AppointmentSchema"];
63612
+ /**
63613
+ * Conflicts
63614
+ * @description Informational warnings only — creation/update is not blocked.
63615
+ * Returned when facility, employee, or service overlaps with another active appointment
63616
+ * (status: confirmed, checked_in, or in_progress) in the same time window.
63617
+ */
63618
+ conflicts?: components["schemas"]["AppointmentConflictSchema"][];
63619
+ };
63620
+ /** FacilitySummarySchema */
63621
+ FacilitySummarySchema: {
63622
+ /** Id */
63623
+ id: number;
63624
+ /** Name */
63625
+ name: string;
63626
+ };
63627
+ /** SalesInvoiceSummarySchema */
63628
+ SalesInvoiceSummarySchema: {
63629
+ /**
63630
+ * Id
63631
+ * Format: uuid
63632
+ */
63633
+ id: string;
63634
+ /** Serialnumber */
63635
+ serialNumber: string;
63636
+ };
63637
+ /** CreateAppointmentSchema */
63638
+ CreateAppointmentSchema: {
63639
+ /**
63640
+ * Title
63641
+ * @description Appointment title. Required.
63642
+ */
63643
+ title: string;
63644
+ /**
63645
+ * Customer
63646
+ * Format: uuid
63647
+ * @description - get customer using route /api/v1/customers/?type=parents and filter by isActive equal to true and customerType equal to debtor
63648
+ * - required on create
63649
+ */
63650
+ customer: string;
63651
+ /**
63652
+ * Description
63653
+ * @description Optional appointment description or notes for internal use
63654
+ */
63655
+ description?: string | null;
63656
+ /**
63657
+ * Facility
63658
+ * @description Facility ID. Optional. Get from /api/v1/common/facilities/ (uses X-Current-Branch header)
63659
+ */
63660
+ facility?: number | null;
63661
+ /**
63662
+ * Employees
63663
+ * @description Employee IDs assigned to this appointment. Optional. Get from /api/v1/hr/employees/ (uses X-Current-Branch header) and filter by isActive equal to true
63664
+ */
63665
+ employees?: string[];
63666
+ /**
63667
+ * Services
63668
+ * @description Service/item IDs for this appointment. Optional. Get from /api/v1/inventory/items/
63669
+ */
63670
+ services?: string[];
63671
+ /**
63672
+ * Scheduleddatetime
63673
+ * Format: date-time
63674
+ * @description Scheduled start date and time. Must be before scheduledEndDatetime.
63675
+ */
63676
+ scheduledDatetime: string;
63677
+ /**
63678
+ * Scheduledenddatetime
63679
+ * Format: date-time
63680
+ * @description Scheduled end date and time. Must be after scheduledDatetime.
63681
+ */
63682
+ scheduledEndDatetime: string;
63683
+ /**
63684
+ * @description Initial status. Defaults to draft.
63685
+ * Status can be set to any value.
63686
+ * Cancelled appointments cannot be edited.
63687
+ * Only completed appointments can be linked to a sales invoice.
63688
+ * @default draft
63689
+ */
63690
+ status: components["schemas"]["AppointmentStatusEnum"] | null;
63691
+ };
63692
+ /** AppointmentListSchema */
63693
+ AppointmentListSchema: {
63694
+ info: components["schemas"]["PageInfoSchema"];
63695
+ /** Results */
63696
+ results: components["schemas"]["AppointmentSchema"][];
63697
+ };
63698
+ /** AppointmentConflictsListSchema */
63699
+ AppointmentConflictsListSchema: {
63700
+ /**
63701
+ * Conflicts
63702
+ * @description Informational warnings only — creation/update is not blocked.
63703
+ * Returned when facility, employee, or service overlaps with another active appointment
63704
+ * (status: confirmed, checked_in, or in_progress) in the same time window.
63705
+ */
63706
+ conflicts?: components["schemas"]["AppointmentConflictSchema"][];
63707
+ };
63708
+ /** CheckAppointmentConflictsSchema */
63709
+ CheckAppointmentConflictsSchema: {
63710
+ /**
63711
+ * Scheduleddatetime
63712
+ * Format: date-time
63713
+ * @description Scheduled start date and time to check for conflicts
63714
+ */
63715
+ scheduledDatetime: string;
63716
+ /**
63717
+ * Scheduledenddatetime
63718
+ * Format: date-time
63719
+ * @description Scheduled end date and time to check for conflicts
63720
+ */
63721
+ scheduledEndDatetime: string;
63722
+ /**
63723
+ * Facility
63724
+ * @description Facility ID to check. Get from /api/v1/common/facilities/ (uses X-Current-Branch header)
63725
+ */
63726
+ facility?: number | null;
63727
+ /**
63728
+ * Employees
63729
+ * @description Employee IDs to check. Get from /api/v1/hr/employees/ (uses X-Current-Branch header) and filter by isActive equal to true
63730
+ */
63731
+ employees?: string[];
63732
+ /**
63733
+ * Services
63734
+ * @description Service/item IDs to check. Get from /api/v1/inventory/items/
63735
+ */
63736
+ services?: string[];
63737
+ };
63738
+ /** RescheduleAppointmentSchema */
63739
+ RescheduleAppointmentSchema: {
63740
+ /**
63741
+ * Scheduleddatetime
63742
+ * Format: date-time
63743
+ * @description Scheduled start for the new appointment created when rescheduling
63744
+ */
63745
+ scheduledDatetime: string;
63746
+ /**
63747
+ * Scheduledenddatetime
63748
+ * Format: date-time
63749
+ * @description Scheduled end for the new appointment created when rescheduling
63750
+ */
63751
+ scheduledEndDatetime: string;
63752
+ /**
63753
+ * @description Status for the new appointment. Use draft or confirmed.
63754
+ * @default draft
63755
+ */
63756
+ status: components["schemas"]["AppointmentStatusEnum"];
63757
+ };
63758
+ /** UpdateAppointmentSchema */
63759
+ UpdateAppointmentSchema: {
63760
+ /**
63761
+ * Title
63762
+ * @description Appointment title
63763
+ */
63764
+ title?: string | null;
63765
+ /**
63766
+ * Customer
63767
+ * @description - get customer using route /api/v1/customers/?type=parents and filter by isActive equal to true and customerType equal to debtor
63768
+ */
63769
+ customer?: string | null;
63770
+ /**
63771
+ * Description
63772
+ * @description Appointment description
63773
+ */
63774
+ description?: string | null;
63775
+ /**
63776
+ * Facility
63777
+ * @description Facility ID. Get from /api/v1/common/facilities/ (uses X-Current-Branch header)
63778
+ */
63779
+ facility?: number | null;
63780
+ /**
63781
+ * Employees
63782
+ * @description Replaces all assigned employees when provided. Get from /api/v1/hr/employees/ (uses X-Current-Branch header)
63783
+ */
63784
+ employees?: string[] | null;
63785
+ /**
63786
+ * Services
63787
+ * @description Replaces all linked services when provided. Get from /api/v1/inventory/items/
63788
+ */
63789
+ services?: string[] | null;
63790
+ /**
63791
+ * Scheduleddatetime
63792
+ * @description Scheduled start. Re-runs conflict detection when changed.
63793
+ */
63794
+ scheduledDatetime?: string | null;
63795
+ /**
63796
+ * Scheduledenddatetime
63797
+ * @description Scheduled end. Re-runs conflict detection when changed.
63798
+ */
63799
+ scheduledEndDatetime?: string | null;
63800
+ /**
63801
+ * @description New status.
63802
+ * Status can be set to any value.
63803
+ * Cancelled appointments cannot be edited.
63804
+ * Only completed appointments can be linked to a sales invoice.
63805
+ */
63806
+ status?: components["schemas"]["AppointmentStatusEnum"] | null;
63807
+ /**
63808
+ * Cancellationreason
63809
+ * @description Optional context when setting status to cancelled.
63810
+ */
63811
+ cancellationReason?: string | null;
63812
+ /** @description Required when status is rescheduled. Creates a new appointment linked via rescheduledFrom. */
63813
+ reschedule?: components["schemas"]["RescheduleAppointmentSchema"] | null;
63814
+ };
63815
+ /** ReplaceAppointmentSchema */
63816
+ ReplaceAppointmentSchema: {
63817
+ /**
63818
+ * Title
63819
+ * @description Appointment title. Required.
63820
+ */
63821
+ title: string;
63822
+ /**
63823
+ * Customer
63824
+ * Format: uuid
63825
+ * @description - get customer using route /api/v1/customers/?type=parents and filter by isActive equal to true and customerType equal to debtor
63826
+ * - required on create
63827
+ */
63828
+ customer: string;
63829
+ /**
63830
+ * Description
63831
+ * @description Optional appointment description or notes for internal use
63832
+ */
63833
+ description?: string | null;
63834
+ /**
63835
+ * Facility
63836
+ * @description Facility ID. Optional. Get from /api/v1/common/facilities/ (uses X-Current-Branch header)
63837
+ */
63838
+ facility?: number | null;
63839
+ /**
63840
+ * Employees
63841
+ * @description Employee IDs assigned to this appointment. Optional. Get from /api/v1/hr/employees/ (uses X-Current-Branch header) and filter by isActive equal to true
63842
+ */
63843
+ employees?: string[];
63844
+ /**
63845
+ * Services
63846
+ * @description Service/item IDs for this appointment. Optional. Get from /api/v1/inventory/items/
63847
+ */
63848
+ services?: string[];
63849
+ /**
63850
+ * Scheduleddatetime
63851
+ * Format: date-time
63852
+ * @description Scheduled start date and time. Must be before scheduledEndDatetime.
63853
+ */
63854
+ scheduledDatetime: string;
63855
+ /**
63856
+ * Scheduledenddatetime
63857
+ * Format: date-time
63858
+ * @description Scheduled end date and time. Must be after scheduledDatetime.
63859
+ */
63860
+ scheduledEndDatetime: string;
63861
+ /**
63862
+ * @description Initial status. Defaults to draft.
63863
+ * Status can be set to any value.
63864
+ * Cancelled appointments cannot be edited.
63865
+ * Only completed appointments can be linked to a sales invoice.
63866
+ * @default draft
63867
+ */
63868
+ status: components["schemas"]["AppointmentStatusEnum"] | null;
63869
+ /**
63870
+ * Cancellationreason
63871
+ * @description Optional context when setting status to cancelled.
63872
+ */
63873
+ cancellationReason?: string | null;
63874
+ /** @description Required when status is rescheduled. Creates a new appointment linked via rescheduledFrom. */
63875
+ reschedule?: components["schemas"]["RescheduleAppointmentSchema"] | null;
63876
+ };
63352
63877
  /** DamageTypeSchema */
63353
63878
  DamageTypeSchema: {
63354
63879
  /**
@@ -70456,8 +70981,7 @@ export interface operations {
70456
70981
  };
70457
70982
  common_facility_views_list_facilities: {
70458
70983
  parameters: {
70459
- query: {
70460
- branchId: string;
70984
+ query?: {
70461
70985
  /** @description Search by facility name */
70462
70986
  search?: string | null;
70463
70987
  };
@@ -70576,9 +71100,7 @@ export interface operations {
70576
71100
  };
70577
71101
  common_facility_views_get_facility: {
70578
71102
  parameters: {
70579
- query: {
70580
- branchId: string;
70581
- };
71103
+ query?: never;
70582
71104
  header?: never;
70583
71105
  path: {
70584
71106
  id: number;
@@ -70636,9 +71158,7 @@ export interface operations {
70636
71158
  };
70637
71159
  common_facility_views_delete_facility: {
70638
71160
  parameters: {
70639
- query: {
70640
- branchId: string;
70641
- };
71161
+ query?: never;
70642
71162
  header?: never;
70643
71163
  path: {
70644
71164
  id: number;
@@ -70703,7 +71223,7 @@ export interface operations {
70703
71223
  };
70704
71224
  requestBody: {
70705
71225
  content: {
70706
- "application/json": components["schemas"]["FacilitySchema"];
71226
+ "application/json": components["schemas"]["UpdateFacility"];
70707
71227
  };
70708
71228
  };
70709
71229
  responses: {
@@ -109249,25 +109769,410 @@ export interface operations {
109249
109769
  };
109250
109770
  };
109251
109771
  };
109252
- erp_settings_notificationsettings_views_list_notification_settings: {
109772
+ erp_settings_notificationsettings_views_list_notification_settings: {
109773
+ parameters: {
109774
+ query?: {
109775
+ /** @description Search notification setting by notification type */
109776
+ search?: string | null;
109777
+ };
109778
+ header?: never;
109779
+ path?: never;
109780
+ cookie?: never;
109781
+ };
109782
+ requestBody?: never;
109783
+ responses: {
109784
+ /** @description OK */
109785
+ 200: {
109786
+ headers: {
109787
+ [name: string]: unknown;
109788
+ };
109789
+ content: {
109790
+ "application/json": components["schemas"]["NotificationSettingList"];
109791
+ };
109792
+ };
109793
+ /** @description Bad Request */
109794
+ 400: {
109795
+ headers: {
109796
+ [name: string]: unknown;
109797
+ };
109798
+ content: {
109799
+ "application/json": components["schemas"]["ErrorMessages"];
109800
+ };
109801
+ };
109802
+ /** @description Forbidden */
109803
+ 403: {
109804
+ headers: {
109805
+ [name: string]: unknown;
109806
+ };
109807
+ content: {
109808
+ "application/json": components["schemas"]["MessageResponse"];
109809
+ };
109810
+ };
109811
+ /** @description Not Found */
109812
+ 404: {
109813
+ headers: {
109814
+ [name: string]: unknown;
109815
+ };
109816
+ content: {
109817
+ "application/json": components["schemas"]["MessageResponse"];
109818
+ };
109819
+ };
109820
+ /** @description Internal Server Error */
109821
+ 500: {
109822
+ headers: {
109823
+ [name: string]: unknown;
109824
+ };
109825
+ content: {
109826
+ "application/json": components["schemas"]["MessageResponse"];
109827
+ };
109828
+ };
109829
+ };
109830
+ };
109831
+ notification_views_notification_stream: {
109832
+ parameters: {
109833
+ query?: never;
109834
+ header?: never;
109835
+ path?: never;
109836
+ cookie?: never;
109837
+ };
109838
+ requestBody?: never;
109839
+ responses: {
109840
+ /** @description OK */
109841
+ 200: {
109842
+ headers: {
109843
+ [name: string]: unknown;
109844
+ };
109845
+ content?: never;
109846
+ };
109847
+ /** @description Forbidden */
109848
+ 403: {
109849
+ headers: {
109850
+ [name: string]: unknown;
109851
+ };
109852
+ content: {
109853
+ "application/json": components["schemas"]["MessageResponse"];
109854
+ };
109855
+ };
109856
+ /** @description Internal Server Error */
109857
+ 500: {
109858
+ headers: {
109859
+ [name: string]: unknown;
109860
+ };
109861
+ content: {
109862
+ "application/json": components["schemas"]["MessageResponse"];
109863
+ };
109864
+ };
109865
+ };
109866
+ };
109867
+ notification_views_list_notification: {
109868
+ parameters: {
109869
+ query?: {
109870
+ /** @description Search notification by title or message */
109871
+ search?: string | null;
109872
+ };
109873
+ header?: never;
109874
+ path?: never;
109875
+ cookie?: never;
109876
+ };
109877
+ requestBody?: never;
109878
+ responses: {
109879
+ /** @description OK */
109880
+ 200: {
109881
+ headers: {
109882
+ [name: string]: unknown;
109883
+ };
109884
+ content: {
109885
+ "application/json": components["schemas"]["NotificationsList"];
109886
+ };
109887
+ };
109888
+ /** @description Bad Request */
109889
+ 400: {
109890
+ headers: {
109891
+ [name: string]: unknown;
109892
+ };
109893
+ content: {
109894
+ "application/json": components["schemas"]["ErrorMessages"];
109895
+ };
109896
+ };
109897
+ /** @description Forbidden */
109898
+ 403: {
109899
+ headers: {
109900
+ [name: string]: unknown;
109901
+ };
109902
+ content: {
109903
+ "application/json": components["schemas"]["MessageResponse"];
109904
+ };
109905
+ };
109906
+ /** @description Internal Server Error */
109907
+ 500: {
109908
+ headers: {
109909
+ [name: string]: unknown;
109910
+ };
109911
+ content: {
109912
+ "application/json": components["schemas"]["MessageResponse"];
109913
+ };
109914
+ };
109915
+ };
109916
+ };
109917
+ notification_views_update_notification_status: {
109918
+ parameters: {
109919
+ query?: never;
109920
+ header?: never;
109921
+ path: {
109922
+ id: string;
109923
+ };
109924
+ cookie?: never;
109925
+ };
109926
+ requestBody: {
109927
+ content: {
109928
+ "application/json": components["schemas"]["MarkAsReadNotif"];
109929
+ };
109930
+ };
109931
+ responses: {
109932
+ /** @description OK */
109933
+ 200: {
109934
+ headers: {
109935
+ [name: string]: unknown;
109936
+ };
109937
+ content: {
109938
+ "application/json": components["schemas"]["RetrieveNotificationRecipient"];
109939
+ };
109940
+ };
109941
+ /** @description Bad Request */
109942
+ 400: {
109943
+ headers: {
109944
+ [name: string]: unknown;
109945
+ };
109946
+ content: {
109947
+ "application/json": components["schemas"]["ErrorMessages"];
109948
+ };
109949
+ };
109950
+ /** @description Forbidden */
109951
+ 403: {
109952
+ headers: {
109953
+ [name: string]: unknown;
109954
+ };
109955
+ content: {
109956
+ "application/json": components["schemas"]["MessageResponse"];
109957
+ };
109958
+ };
109959
+ /** @description Not Found */
109960
+ 404: {
109961
+ headers: {
109962
+ [name: string]: unknown;
109963
+ };
109964
+ content: {
109965
+ "application/json": components["schemas"]["MessageResponse"];
109966
+ };
109967
+ };
109968
+ /** @description Internal Server Error */
109969
+ 500: {
109970
+ headers: {
109971
+ [name: string]: unknown;
109972
+ };
109973
+ content: {
109974
+ "application/json": components["schemas"]["MessageResponse"];
109975
+ };
109976
+ };
109977
+ };
109978
+ };
109979
+ notification_views_batch_update_notification_status: {
109980
+ parameters: {
109981
+ query?: never;
109982
+ header?: never;
109983
+ path?: never;
109984
+ cookie?: never;
109985
+ };
109986
+ requestBody: {
109987
+ content: {
109988
+ "application/json": components["schemas"]["BatchUpdateStatus"];
109989
+ };
109990
+ };
109991
+ responses: {
109992
+ /** @description OK */
109993
+ 200: {
109994
+ headers: {
109995
+ [name: string]: unknown;
109996
+ };
109997
+ content: {
109998
+ "application/json": components["schemas"]["MessageResponse"];
109999
+ };
110000
+ };
110001
+ /** @description Bad Request */
110002
+ 400: {
110003
+ headers: {
110004
+ [name: string]: unknown;
110005
+ };
110006
+ content: {
110007
+ "application/json": components["schemas"]["ErrorMessages"];
110008
+ };
110009
+ };
110010
+ /** @description Forbidden */
110011
+ 403: {
110012
+ headers: {
110013
+ [name: string]: unknown;
110014
+ };
110015
+ content: {
110016
+ "application/json": components["schemas"]["MessageResponse"];
110017
+ };
110018
+ };
110019
+ /** @description Not Found */
110020
+ 404: {
110021
+ headers: {
110022
+ [name: string]: unknown;
110023
+ };
110024
+ content: {
110025
+ "application/json": components["schemas"]["MessageResponse"];
110026
+ };
110027
+ };
110028
+ /** @description Internal Server Error */
110029
+ 500: {
110030
+ headers: {
110031
+ [name: string]: unknown;
110032
+ };
110033
+ content: {
110034
+ "application/json": components["schemas"]["MessageResponse"];
110035
+ };
110036
+ };
110037
+ };
110038
+ };
110039
+ notification_views_get_notification: {
110040
+ parameters: {
110041
+ query?: never;
110042
+ header?: never;
110043
+ path: {
110044
+ id: string;
110045
+ };
110046
+ cookie?: never;
110047
+ };
110048
+ requestBody?: never;
110049
+ responses: {
110050
+ /** @description OK */
110051
+ 200: {
110052
+ headers: {
110053
+ [name: string]: unknown;
110054
+ };
110055
+ content: {
110056
+ "application/json": components["schemas"]["RetrieveNotificationRecipient"];
110057
+ };
110058
+ };
110059
+ /** @description Forbidden */
110060
+ 403: {
110061
+ headers: {
110062
+ [name: string]: unknown;
110063
+ };
110064
+ content: {
110065
+ "application/json": components["schemas"]["MessageResponse"];
110066
+ };
110067
+ };
110068
+ /** @description Not Found */
110069
+ 404: {
110070
+ headers: {
110071
+ [name: string]: unknown;
110072
+ };
110073
+ content: {
110074
+ "application/json": components["schemas"]["MessageResponse"];
110075
+ };
110076
+ };
110077
+ /** @description Internal Server Error */
110078
+ 500: {
110079
+ headers: {
110080
+ [name: string]: unknown;
110081
+ };
110082
+ content: {
110083
+ "application/json": components["schemas"]["MessageResponse"];
110084
+ };
110085
+ };
110086
+ };
110087
+ };
110088
+ event_views_list_events: {
110089
+ parameters: {
110090
+ query?: {
110091
+ /** @description Search event by title */
110092
+ search?: string | null;
110093
+ };
110094
+ header?: never;
110095
+ path?: never;
110096
+ cookie?: never;
110097
+ };
110098
+ requestBody?: never;
110099
+ responses: {
110100
+ /** @description OK */
110101
+ 200: {
110102
+ headers: {
110103
+ [name: string]: unknown;
110104
+ };
110105
+ content: {
110106
+ "application/json": components["schemas"]["EventsListSchema"];
110107
+ };
110108
+ };
110109
+ /** @description Bad Request */
110110
+ 400: {
110111
+ headers: {
110112
+ [name: string]: unknown;
110113
+ };
110114
+ content: {
110115
+ "application/json": components["schemas"]["ErrorMessages"];
110116
+ };
110117
+ };
110118
+ /** @description Forbidden */
110119
+ 403: {
110120
+ headers: {
110121
+ [name: string]: unknown;
110122
+ };
110123
+ content: {
110124
+ "application/json": components["schemas"]["MessageResponse"];
110125
+ };
110126
+ };
110127
+ /** @description Not Found */
110128
+ 404: {
110129
+ headers: {
110130
+ [name: string]: unknown;
110131
+ };
110132
+ content: {
110133
+ "application/json": components["schemas"]["MessageResponse"];
110134
+ };
110135
+ };
110136
+ /** @description Conflict */
110137
+ 409: {
110138
+ headers: {
110139
+ [name: string]: unknown;
110140
+ };
110141
+ content: {
110142
+ "application/json": components["schemas"]["MessageResponse"];
110143
+ };
110144
+ };
110145
+ /** @description Internal Server Error */
110146
+ 500: {
110147
+ headers: {
110148
+ [name: string]: unknown;
110149
+ };
110150
+ content: {
110151
+ "application/json": components["schemas"]["MessageResponse"];
110152
+ };
110153
+ };
110154
+ };
110155
+ };
110156
+ event_views_create_event: {
109253
110157
  parameters: {
109254
- query?: {
109255
- /** @description Search notification setting by notification type */
109256
- search?: string | null;
109257
- };
110158
+ query?: never;
109258
110159
  header?: never;
109259
110160
  path?: never;
109260
110161
  cookie?: never;
109261
110162
  };
109262
- requestBody?: never;
110163
+ requestBody: {
110164
+ content: {
110165
+ "application/json": components["schemas"]["CreateUpdateEvent"];
110166
+ };
110167
+ };
109263
110168
  responses: {
109264
- /** @description OK */
109265
- 200: {
110169
+ /** @description Created */
110170
+ 201: {
109266
110171
  headers: {
109267
110172
  [name: string]: unknown;
109268
110173
  };
109269
110174
  content: {
109270
- "application/json": components["schemas"]["NotificationSettingList"];
110175
+ "application/json": components["schemas"]["RetrieveEvent"];
109271
110176
  };
109272
110177
  };
109273
110178
  /** @description Bad Request */
@@ -109297,35 +110202,8 @@ export interface operations {
109297
110202
  "application/json": components["schemas"]["MessageResponse"];
109298
110203
  };
109299
110204
  };
109300
- /** @description Internal Server Error */
109301
- 500: {
109302
- headers: {
109303
- [name: string]: unknown;
109304
- };
109305
- content: {
109306
- "application/json": components["schemas"]["MessageResponse"];
109307
- };
109308
- };
109309
- };
109310
- };
109311
- notification_views_notification_stream: {
109312
- parameters: {
109313
- query?: never;
109314
- header?: never;
109315
- path?: never;
109316
- cookie?: never;
109317
- };
109318
- requestBody?: never;
109319
- responses: {
109320
- /** @description OK */
109321
- 200: {
109322
- headers: {
109323
- [name: string]: unknown;
109324
- };
109325
- content?: never;
109326
- };
109327
- /** @description Forbidden */
109328
- 403: {
110205
+ /** @description Conflict */
110206
+ 409: {
109329
110207
  headers: {
109330
110208
  [name: string]: unknown;
109331
110209
  };
@@ -109344,14 +110222,13 @@ export interface operations {
109344
110222
  };
109345
110223
  };
109346
110224
  };
109347
- notification_views_list_notification: {
110225
+ event_views_get_event: {
109348
110226
  parameters: {
109349
- query?: {
109350
- /** @description Search notification by title or message */
109351
- search?: string | null;
109352
- };
110227
+ query?: never;
109353
110228
  header?: never;
109354
- path?: never;
110229
+ path: {
110230
+ id: string;
110231
+ };
109355
110232
  cookie?: never;
109356
110233
  };
109357
110234
  requestBody?: never;
@@ -109362,20 +110239,20 @@ export interface operations {
109362
110239
  [name: string]: unknown;
109363
110240
  };
109364
110241
  content: {
109365
- "application/json": components["schemas"]["NotificationsList"];
110242
+ "application/json": components["schemas"]["RetrieveEvent"];
109366
110243
  };
109367
110244
  };
109368
- /** @description Bad Request */
109369
- 400: {
110245
+ /** @description Forbidden */
110246
+ 403: {
109370
110247
  headers: {
109371
110248
  [name: string]: unknown;
109372
110249
  };
109373
110250
  content: {
109374
- "application/json": components["schemas"]["ErrorMessages"];
110251
+ "application/json": components["schemas"]["MessageResponse"];
109375
110252
  };
109376
110253
  };
109377
- /** @description Forbidden */
109378
- 403: {
110254
+ /** @description Not Found */
110255
+ 404: {
109379
110256
  headers: {
109380
110257
  [name: string]: unknown;
109381
110258
  };
@@ -109394,7 +110271,7 @@ export interface operations {
109394
110271
  };
109395
110272
  };
109396
110273
  };
109397
- notification_views_update_notification_status: {
110274
+ event_views_edit_event: {
109398
110275
  parameters: {
109399
110276
  query?: never;
109400
110277
  header?: never;
@@ -109405,7 +110282,7 @@ export interface operations {
109405
110282
  };
109406
110283
  requestBody: {
109407
110284
  content: {
109408
- "application/json": components["schemas"]["MarkAsReadNotif"];
110285
+ "application/json": components["schemas"]["CreateUpdateEvent"];
109409
110286
  };
109410
110287
  };
109411
110288
  responses: {
@@ -109415,7 +110292,7 @@ export interface operations {
109415
110292
  [name: string]: unknown;
109416
110293
  };
109417
110294
  content: {
109418
- "application/json": components["schemas"]["RetrieveNotificationRecipient"];
110295
+ "application/json": components["schemas"]["RetrieveEvent"];
109419
110296
  };
109420
110297
  };
109421
110298
  /** @description Bad Request */
@@ -109445,6 +110322,15 @@ export interface operations {
109445
110322
  "application/json": components["schemas"]["MessageResponse"];
109446
110323
  };
109447
110324
  };
110325
+ /** @description Conflict */
110326
+ 409: {
110327
+ headers: {
110328
+ [name: string]: unknown;
110329
+ };
110330
+ content: {
110331
+ "application/json": components["schemas"]["MessageResponse"];
110332
+ };
110333
+ };
109448
110334
  /** @description Internal Server Error */
109449
110335
  500: {
109450
110336
  headers: {
@@ -109456,27 +110342,23 @@ export interface operations {
109456
110342
  };
109457
110343
  };
109458
110344
  };
109459
- notification_views_batch_update_notification_status: {
110345
+ event_views_delete_event: {
109460
110346
  parameters: {
109461
110347
  query?: never;
109462
110348
  header?: never;
109463
- path?: never;
109464
- cookie?: never;
109465
- };
109466
- requestBody: {
109467
- content: {
109468
- "application/json": components["schemas"]["BatchUpdateStatus"];
110349
+ path: {
110350
+ id: string;
109469
110351
  };
110352
+ cookie?: never;
109470
110353
  };
110354
+ requestBody?: never;
109471
110355
  responses: {
109472
- /** @description OK */
109473
- 200: {
110356
+ /** @description No Content */
110357
+ 204: {
109474
110358
  headers: {
109475
110359
  [name: string]: unknown;
109476
110360
  };
109477
- content: {
109478
- "application/json": components["schemas"]["MessageResponse"];
109479
- };
110361
+ content?: never;
109480
110362
  };
109481
110363
  /** @description Bad Request */
109482
110364
  400: {
@@ -109505,6 +110387,15 @@ export interface operations {
109505
110387
  "application/json": components["schemas"]["MessageResponse"];
109506
110388
  };
109507
110389
  };
110390
+ /** @description Conflict */
110391
+ 409: {
110392
+ headers: {
110393
+ [name: string]: unknown;
110394
+ };
110395
+ content: {
110396
+ "application/json": components["schemas"]["MessageResponse"];
110397
+ };
110398
+ };
109508
110399
  /** @description Internal Server Error */
109509
110400
  500: {
109510
110401
  headers: {
@@ -109516,7 +110407,7 @@ export interface operations {
109516
110407
  };
109517
110408
  };
109518
110409
  };
109519
- notification_views_get_notification: {
110410
+ event_views_cancel_event: {
109520
110411
  parameters: {
109521
110412
  query?: never;
109522
110413
  header?: never;
@@ -109533,7 +110424,16 @@ export interface operations {
109533
110424
  [name: string]: unknown;
109534
110425
  };
109535
110426
  content: {
109536
- "application/json": components["schemas"]["RetrieveNotificationRecipient"];
110427
+ "application/json": components["schemas"]["RetrieveEvent"];
110428
+ };
110429
+ };
110430
+ /** @description Bad Request */
110431
+ 400: {
110432
+ headers: {
110433
+ [name: string]: unknown;
110434
+ };
110435
+ content: {
110436
+ "application/json": components["schemas"]["ErrorMessages"];
109537
110437
  };
109538
110438
  };
109539
110439
  /** @description Forbidden */
@@ -109554,6 +110454,15 @@ export interface operations {
109554
110454
  "application/json": components["schemas"]["MessageResponse"];
109555
110455
  };
109556
110456
  };
110457
+ /** @description Conflict */
110458
+ 409: {
110459
+ headers: {
110460
+ [name: string]: unknown;
110461
+ };
110462
+ content: {
110463
+ "application/json": components["schemas"]["MessageResponse"];
110464
+ };
110465
+ };
109557
110466
  /** @description Internal Server Error */
109558
110467
  500: {
109559
110468
  headers: {
@@ -109565,10 +110474,10 @@ export interface operations {
109565
110474
  };
109566
110475
  };
109567
110476
  };
109568
- event_views_list_events: {
110477
+ appointment_views_list_appointments: {
109569
110478
  parameters: {
109570
110479
  query?: {
109571
- /** @description Search event by title */
110480
+ /** @description Search appointments by title, customer, or employee */
109572
110481
  search?: string | null;
109573
110482
  };
109574
110483
  header?: never;
@@ -109583,7 +110492,7 @@ export interface operations {
109583
110492
  [name: string]: unknown;
109584
110493
  };
109585
110494
  content: {
109586
- "application/json": components["schemas"]["EventsListSchema"];
110495
+ "application/json": components["schemas"]["AppointmentListSchema"];
109587
110496
  };
109588
110497
  };
109589
110498
  /** @description Bad Request */
@@ -109604,26 +110513,41 @@ export interface operations {
109604
110513
  "application/json": components["schemas"]["MessageResponse"];
109605
110514
  };
109606
110515
  };
109607
- /** @description Not Found */
109608
- 404: {
110516
+ };
110517
+ };
110518
+ appointment_views_create_appointment: {
110519
+ parameters: {
110520
+ query?: never;
110521
+ header?: never;
110522
+ path?: never;
110523
+ cookie?: never;
110524
+ };
110525
+ requestBody: {
110526
+ content: {
110527
+ "application/json": components["schemas"]["CreateAppointmentSchema"];
110528
+ };
110529
+ };
110530
+ responses: {
110531
+ /** @description Created */
110532
+ 201: {
109609
110533
  headers: {
109610
110534
  [name: string]: unknown;
109611
110535
  };
109612
110536
  content: {
109613
- "application/json": components["schemas"]["MessageResponse"];
110537
+ "application/json": components["schemas"]["AppointmentWithConflictsSchema"];
109614
110538
  };
109615
110539
  };
109616
- /** @description Conflict */
109617
- 409: {
110540
+ /** @description Bad Request */
110541
+ 400: {
109618
110542
  headers: {
109619
110543
  [name: string]: unknown;
109620
110544
  };
109621
110545
  content: {
109622
- "application/json": components["schemas"]["MessageResponse"];
110546
+ "application/json": components["schemas"]["ErrorMessages"];
109623
110547
  };
109624
110548
  };
109625
- /** @description Internal Server Error */
109626
- 500: {
110549
+ /** @description Forbidden */
110550
+ 403: {
109627
110551
  headers: {
109628
110552
  [name: string]: unknown;
109629
110553
  };
@@ -109633,26 +110557,28 @@ export interface operations {
109633
110557
  };
109634
110558
  };
109635
110559
  };
109636
- event_views_create_event: {
110560
+ appointment_views_check_appointment_conflicts: {
109637
110561
  parameters: {
109638
110562
  query?: never;
109639
110563
  header?: never;
109640
- path?: never;
110564
+ path: {
110565
+ id: string;
110566
+ };
109641
110567
  cookie?: never;
109642
110568
  };
109643
110569
  requestBody: {
109644
110570
  content: {
109645
- "application/json": components["schemas"]["CreateUpdateEvent"];
110571
+ "application/json": components["schemas"]["CheckAppointmentConflictsSchema"];
109646
110572
  };
109647
110573
  };
109648
110574
  responses: {
109649
- /** @description Created */
109650
- 201: {
110575
+ /** @description OK */
110576
+ 200: {
109651
110577
  headers: {
109652
110578
  [name: string]: unknown;
109653
110579
  };
109654
110580
  content: {
109655
- "application/json": components["schemas"]["RetrieveEvent"];
110581
+ "application/json": components["schemas"]["AppointmentConflictsListSchema"];
109656
110582
  };
109657
110583
  };
109658
110584
  /** @description Bad Request */
@@ -109682,27 +110608,9 @@ export interface operations {
109682
110608
  "application/json": components["schemas"]["MessageResponse"];
109683
110609
  };
109684
110610
  };
109685
- /** @description Conflict */
109686
- 409: {
109687
- headers: {
109688
- [name: string]: unknown;
109689
- };
109690
- content: {
109691
- "application/json": components["schemas"]["MessageResponse"];
109692
- };
109693
- };
109694
- /** @description Internal Server Error */
109695
- 500: {
109696
- headers: {
109697
- [name: string]: unknown;
109698
- };
109699
- content: {
109700
- "application/json": components["schemas"]["MessageResponse"];
109701
- };
109702
- };
109703
110611
  };
109704
110612
  };
109705
- event_views_get_event: {
110613
+ appointment_views_get_appointment: {
109706
110614
  parameters: {
109707
110615
  query?: never;
109708
110616
  header?: never;
@@ -109719,7 +110627,7 @@ export interface operations {
109719
110627
  [name: string]: unknown;
109720
110628
  };
109721
110629
  content: {
109722
- "application/json": components["schemas"]["RetrieveEvent"];
110630
+ "application/json": components["schemas"]["AppointmentSchema"];
109723
110631
  };
109724
110632
  };
109725
110633
  /** @description Forbidden */
@@ -109740,18 +110648,9 @@ export interface operations {
109740
110648
  "application/json": components["schemas"]["MessageResponse"];
109741
110649
  };
109742
110650
  };
109743
- /** @description Internal Server Error */
109744
- 500: {
109745
- headers: {
109746
- [name: string]: unknown;
109747
- };
109748
- content: {
109749
- "application/json": components["schemas"]["MessageResponse"];
109750
- };
109751
- };
109752
110651
  };
109753
110652
  };
109754
- event_views_edit_event: {
110653
+ appointment_views_replace_appointment: {
109755
110654
  parameters: {
109756
110655
  query?: never;
109757
110656
  header?: never;
@@ -109762,7 +110661,7 @@ export interface operations {
109762
110661
  };
109763
110662
  requestBody: {
109764
110663
  content: {
109765
- "application/json": components["schemas"]["CreateUpdateEvent"];
110664
+ "application/json": components["schemas"]["ReplaceAppointmentSchema"];
109766
110665
  };
109767
110666
  };
109768
110667
  responses: {
@@ -109772,7 +110671,7 @@ export interface operations {
109772
110671
  [name: string]: unknown;
109773
110672
  };
109774
110673
  content: {
109775
- "application/json": components["schemas"]["RetrieveEvent"];
110674
+ "application/json": components["schemas"]["AppointmentWithConflictsSchema"];
109776
110675
  };
109777
110676
  };
109778
110677
  /** @description Bad Request */
@@ -109802,27 +110701,9 @@ export interface operations {
109802
110701
  "application/json": components["schemas"]["MessageResponse"];
109803
110702
  };
109804
110703
  };
109805
- /** @description Conflict */
109806
- 409: {
109807
- headers: {
109808
- [name: string]: unknown;
109809
- };
109810
- content: {
109811
- "application/json": components["schemas"]["MessageResponse"];
109812
- };
109813
- };
109814
- /** @description Internal Server Error */
109815
- 500: {
109816
- headers: {
109817
- [name: string]: unknown;
109818
- };
109819
- content: {
109820
- "application/json": components["schemas"]["MessageResponse"];
109821
- };
109822
- };
109823
110704
  };
109824
110705
  };
109825
- event_views_delete_event: {
110706
+ appointment_views_delete_appointment: {
109826
110707
  parameters: {
109827
110708
  query?: never;
109828
110709
  header?: never;
@@ -109867,27 +110748,9 @@ export interface operations {
109867
110748
  "application/json": components["schemas"]["MessageResponse"];
109868
110749
  };
109869
110750
  };
109870
- /** @description Conflict */
109871
- 409: {
109872
- headers: {
109873
- [name: string]: unknown;
109874
- };
109875
- content: {
109876
- "application/json": components["schemas"]["MessageResponse"];
109877
- };
109878
- };
109879
- /** @description Internal Server Error */
109880
- 500: {
109881
- headers: {
109882
- [name: string]: unknown;
109883
- };
109884
- content: {
109885
- "application/json": components["schemas"]["MessageResponse"];
109886
- };
109887
- };
109888
110751
  };
109889
110752
  };
109890
- event_views_cancel_event: {
110753
+ appointment_views_update_appointment: {
109891
110754
  parameters: {
109892
110755
  query?: never;
109893
110756
  header?: never;
@@ -109896,7 +110759,11 @@ export interface operations {
109896
110759
  };
109897
110760
  cookie?: never;
109898
110761
  };
109899
- requestBody?: never;
110762
+ requestBody: {
110763
+ content: {
110764
+ "application/json": components["schemas"]["UpdateAppointmentSchema"];
110765
+ };
110766
+ };
109900
110767
  responses: {
109901
110768
  /** @description OK */
109902
110769
  200: {
@@ -109904,7 +110771,7 @@ export interface operations {
109904
110771
  [name: string]: unknown;
109905
110772
  };
109906
110773
  content: {
109907
- "application/json": components["schemas"]["RetrieveEvent"];
110774
+ "application/json": components["schemas"]["AppointmentWithConflictsSchema"];
109908
110775
  };
109909
110776
  };
109910
110777
  /** @description Bad Request */
@@ -109934,24 +110801,6 @@ export interface operations {
109934
110801
  "application/json": components["schemas"]["MessageResponse"];
109935
110802
  };
109936
110803
  };
109937
- /** @description Conflict */
109938
- 409: {
109939
- headers: {
109940
- [name: string]: unknown;
109941
- };
109942
- content: {
109943
- "application/json": components["schemas"]["MessageResponse"];
109944
- };
109945
- };
109946
- /** @description Internal Server Error */
109947
- 500: {
109948
- headers: {
109949
- [name: string]: unknown;
109950
- };
109951
- content: {
109952
- "application/json": components["schemas"]["MessageResponse"];
109953
- };
109954
- };
109955
110804
  };
109956
110805
  };
109957
110806
  maintenance_views_list_repair_orders: {