@erp-galoper/types 1.0.1972 → 1.0.1974

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 +995 -241
  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;
@@ -22738,35 +22828,6 @@ export interface paths {
22738
22828
  patch: operations["maintenance_views_partial_update_repair_order"];
22739
22829
  trace?: never;
22740
22830
  };
22741
- "/api/v1/maintenance/repair-orders/{id}/cancel/": {
22742
- parameters: {
22743
- query?: never;
22744
- header?: never;
22745
- path?: never;
22746
- cookie?: never;
22747
- };
22748
- get?: never;
22749
- put?: never;
22750
- /**
22751
- * Cancel Repair Order
22752
- * @description Endpoint for canceling a repair order.
22753
- *
22754
- * Possible Responses:
22755
- * - 200: RepairOrderDetailSchema
22756
- * - 400: cantBeCanceled, cannotCancelPaidRepairOrder
22757
- * - 403: permissionDenied, noModuleAccess, noBranchAccess, statusAlreadyCanceled
22758
- * - 404: repairOrderDoesNotExist
22759
- * - 500: serverError
22760
- *
22761
- * Permission key: `repairorder = ['cancel']`
22762
- */
22763
- post: operations["maintenance_views_cancel_repair_order"];
22764
- delete?: never;
22765
- options?: never;
22766
- head?: never;
22767
- patch?: never;
22768
- trace?: never;
22769
- };
22770
22831
  "/api/v1/maintenance/damage-types/": {
22771
22832
  parameters: {
22772
22833
  query?: never;
@@ -31304,11 +31365,6 @@ export interface components {
31304
31365
  FacilitySchema: {
31305
31366
  /** Name */
31306
31367
  name: string;
31307
- /**
31308
- * Branchid
31309
- * Format: uuid
31310
- */
31311
- branchId: string;
31312
31368
  };
31313
31369
  /** ListFacilities */
31314
31370
  ListFacilities: {
@@ -31335,6 +31391,11 @@ export interface components {
31335
31391
  /** Candelete */
31336
31392
  canDelete: boolean;
31337
31393
  };
31394
+ /** UpdateFacility */
31395
+ UpdateFacility: {
31396
+ /** Name */
31397
+ name?: string | null;
31398
+ };
31338
31399
  /** RetrieveFacility */
31339
31400
  RetrieveFacility: {
31340
31401
  /**
@@ -56074,6 +56135,16 @@ export interface components {
56074
56135
  /** Password */
56075
56136
  password?: string;
56076
56137
  };
56138
+ /** AppointmentLinkedDocumentSchema */
56139
+ AppointmentLinkedDocumentSchema: {
56140
+ /**
56141
+ * Id
56142
+ * Format: uuid
56143
+ */
56144
+ id: string;
56145
+ /** Title */
56146
+ title: string;
56147
+ };
56077
56148
  /**
56078
56149
  * OnlineOrderSummarySchema
56079
56150
  * @description Summary of online order linked to a sales invoice
@@ -56288,6 +56359,8 @@ export interface components {
56288
56359
  salesQuotation: components["schemas"]["DocumentCommonSchema"] | null;
56289
56360
  /** @description The repair order linked to this invoice, if applicable. */
56290
56361
  repairOrder: components["schemas"]["DocumentCommonSchema"] | null;
56362
+ /** @description The appointment linked to this invoice, if applicable. */
56363
+ appointment: components["schemas"]["AppointmentLinkedDocumentSchema"] | null;
56291
56364
  /**
56292
56365
  * Date
56293
56366
  * Format: date
@@ -56706,6 +56779,14 @@ export interface components {
56706
56779
  * @description get repair orders filtered by customer.id, branch, and approval status=approved or not_required
56707
56780
  */
56708
56781
  repairOrder?: string;
56782
+ /**
56783
+ * Appointment
56784
+ * Format: uuid
56785
+ * @description - get appointments from /api/v1/appointments/ filtered by branch (X-Current-Branch header)
56786
+ * - invoice customer must be one of the debtor children of the appointment parent customer
56787
+ * (get from /api/v1/customers/?type=children filtered by parent equal to appointment.customer.id)
56788
+ */
56789
+ appointment?: string;
56709
56790
  /**
56710
56791
  * Pricelist
56711
56792
  * Format: uuid
@@ -56927,6 +57008,8 @@ export interface components {
56927
57008
  salesQuotation: components["schemas"]["DocumentCommonSchema"] | null;
56928
57009
  /** @description The repair order linked to this invoice, if applicable. */
56929
57010
  repairOrder: components["schemas"]["DocumentCommonSchema"] | null;
57011
+ /** @description The appointment linked to this invoice, if applicable. */
57012
+ appointment: components["schemas"]["AppointmentLinkedDocumentSchema"] | null;
56930
57013
  /**
56931
57014
  * Date
56932
57015
  * Format: date
@@ -57212,6 +57295,8 @@ export interface components {
57212
57295
  salesQuotation: components["schemas"]["DocumentCommonSchema"] | null;
57213
57296
  /** @description The repair order linked to this invoice, if applicable. */
57214
57297
  repairOrder: components["schemas"]["DocumentCommonSchema"] | null;
57298
+ /** @description The appointment linked to this invoice, if applicable. */
57299
+ appointment: components["schemas"]["AppointmentLinkedDocumentSchema"] | null;
57215
57300
  /**
57216
57301
  * Date
57217
57302
  * Format: date
@@ -63349,6 +63434,417 @@ export interface components {
63349
63434
  /** Customfields */
63350
63435
  customFields?: components["schemas"]["CreateUpdateCustomFieldValues"][];
63351
63436
  };
63437
+ /** AppointmentConflictSchema */
63438
+ AppointmentConflictSchema: {
63439
+ /**
63440
+ * Resourcetype
63441
+ * @description Conflicted resource type: facility, employee, or service
63442
+ */
63443
+ resourceType: string;
63444
+ /**
63445
+ * Resourceid
63446
+ * @description ID of the conflicted resource
63447
+ */
63448
+ resourceId: string;
63449
+ /**
63450
+ * Resourcename
63451
+ * @description Display name of the conflicted resource
63452
+ */
63453
+ resourceName: string;
63454
+ /** @description Summary of the overlapping appointment */
63455
+ appointment: components["schemas"]["AppointmentSummarySchema"];
63456
+ };
63457
+ /** AppointmentEmployeeSummarySchema */
63458
+ AppointmentEmployeeSummarySchema: {
63459
+ /**
63460
+ * Id
63461
+ * Format: uuid
63462
+ */
63463
+ id: string;
63464
+ /** Name */
63465
+ name: string;
63466
+ /** Accountnumber */
63467
+ accountNumber?: string | null;
63468
+ };
63469
+ /** AppointmentSchema */
63470
+ AppointmentSchema: {
63471
+ /**
63472
+ * Datecreated
63473
+ * Format: date-time
63474
+ */
63475
+ dateCreated: string;
63476
+ /** Datemodified */
63477
+ dateModified: string | null;
63478
+ createdBy: components["schemas"]["RecordUserSchema"];
63479
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
63480
+ /**
63481
+ * Id
63482
+ * Format: uuid
63483
+ */
63484
+ id: string;
63485
+ /** Title */
63486
+ title: string;
63487
+ /** Description */
63488
+ description?: string | null;
63489
+ status: components["schemas"]["AppointmentStatusEnum"];
63490
+ branch: components["schemas"]["BranchSummaryInfo"];
63491
+ customer?: components["schemas"]["CustomerSharedSchema"] | null;
63492
+ /** @description Customer's default branch when the customer is a company. Computed on read, not stored on the appointment. */
63493
+ customerBranch?: components["schemas"]["CustomerBranchSharedSchema"] | null;
63494
+ /** @description Assigned facility, if any */
63495
+ facility?: components["schemas"]["FacilitySummarySchema"] | null;
63496
+ /**
63497
+ * Employees
63498
+ * @description Assigned employees
63499
+ */
63500
+ employees?: components["schemas"]["AppointmentEmployeeSummarySchema"][];
63501
+ /**
63502
+ * Services
63503
+ * @description Linked services/items
63504
+ */
63505
+ services?: components["schemas"]["ItemSummaryInfo"][];
63506
+ /**
63507
+ * Scheduleddatetime
63508
+ * Format: date-time
63509
+ */
63510
+ scheduledDatetime: string;
63511
+ /**
63512
+ * Scheduledenddatetime
63513
+ * Format: date-time
63514
+ */
63515
+ scheduledEndDatetime: string;
63516
+ /**
63517
+ * Actualstartdatetime
63518
+ * @description Recorded when status moves to in_progress
63519
+ */
63520
+ actualStartDatetime?: string | null;
63521
+ /**
63522
+ * Actualenddatetime
63523
+ * @description Recorded when status moves to completed
63524
+ */
63525
+ actualEndDatetime?: string | null;
63526
+ /**
63527
+ * Checkindatetime
63528
+ * @description Recorded when status moves to checked_in
63529
+ */
63530
+ checkInDatetime?: string | null;
63531
+ /** @description Linked sales invoice when appointment was billed. Pricing lives on the invoice. */
63532
+ salesInvoice?: components["schemas"]["SalesInvoiceSummarySchema"] | null;
63533
+ /** Cancellationreason */
63534
+ cancellationReason?: string | null;
63535
+ /**
63536
+ * Rescheduledfrom
63537
+ * @description Original appointment ID when this appointment was created from a reschedule
63538
+ */
63539
+ rescheduledFrom?: string | null;
63540
+ /**
63541
+ * Canedit
63542
+ * @description False when status is cancelled.
63543
+ * @default true
63544
+ */
63545
+ canEdit: boolean;
63546
+ /**
63547
+ * Candelete
63548
+ * @description False when linked to any sales invoice. Delete is blocked; use cancel instead.
63549
+ * @default true
63550
+ */
63551
+ canDelete: boolean;
63552
+ };
63553
+ /**
63554
+ * AppointmentStatusEnum
63555
+ * @enum {string}
63556
+ */
63557
+ AppointmentStatusEnum: "draft" | "confirmed" | "checked_in" | "in_progress" | "completed" | "cancelled" | "no_show" | "rescheduled";
63558
+ /** AppointmentSummarySchema */
63559
+ AppointmentSummarySchema: {
63560
+ /**
63561
+ * Id
63562
+ * Format: uuid
63563
+ */
63564
+ id: string;
63565
+ /** Title */
63566
+ title: string;
63567
+ status: components["schemas"]["AppointmentStatusEnum"];
63568
+ /**
63569
+ * Scheduleddatetime
63570
+ * Format: date-time
63571
+ */
63572
+ scheduledDatetime: string;
63573
+ /**
63574
+ * Scheduledenddatetime
63575
+ * Format: date-time
63576
+ */
63577
+ scheduledEndDatetime: string;
63578
+ facility?: components["schemas"]["FacilitySummarySchema"] | null;
63579
+ };
63580
+ /** AppointmentWithConflictsSchema */
63581
+ AppointmentWithConflictsSchema: {
63582
+ appointment: components["schemas"]["AppointmentSchema"];
63583
+ /**
63584
+ * Conflicts
63585
+ * @description Informational warnings only — creation/update is not blocked.
63586
+ * Returned when facility, employee, or service overlaps with another active appointment
63587
+ * (status: confirmed, checked_in, or in_progress) in the same time window.
63588
+ */
63589
+ conflicts?: components["schemas"]["AppointmentConflictSchema"][];
63590
+ };
63591
+ /** FacilitySummarySchema */
63592
+ FacilitySummarySchema: {
63593
+ /** Id */
63594
+ id: number;
63595
+ /** Name */
63596
+ name: string;
63597
+ };
63598
+ /** SalesInvoiceSummarySchema */
63599
+ SalesInvoiceSummarySchema: {
63600
+ /**
63601
+ * Id
63602
+ * Format: uuid
63603
+ */
63604
+ id: string;
63605
+ /** Serialnumber */
63606
+ serialNumber: string;
63607
+ };
63608
+ /** CreateAppointmentSchema */
63609
+ CreateAppointmentSchema: {
63610
+ /**
63611
+ * Title
63612
+ * @description Appointment title. Required.
63613
+ */
63614
+ title: string;
63615
+ /**
63616
+ * Customer
63617
+ * Format: uuid
63618
+ * @description - get customer using route /api/v1/customers/?type=parents and filter by isActive equal to true and customerType equal to debtor
63619
+ * - required on create
63620
+ */
63621
+ customer: string;
63622
+ /**
63623
+ * Description
63624
+ * @description Optional appointment description or notes for internal use
63625
+ */
63626
+ description?: string | null;
63627
+ /**
63628
+ * Facility
63629
+ * @description Facility ID. Optional. Get from /api/v1/common/facilities/ (uses X-Current-Branch header)
63630
+ */
63631
+ facility?: number | null;
63632
+ /**
63633
+ * Employees
63634
+ * @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
63635
+ */
63636
+ employees?: string[];
63637
+ /**
63638
+ * Services
63639
+ * @description Service/item IDs for this appointment. Optional. Get from /api/v1/inventory/items/
63640
+ */
63641
+ services?: string[];
63642
+ /**
63643
+ * Scheduleddatetime
63644
+ * Format: date-time
63645
+ * @description Scheduled start date and time. Must be before scheduledEndDatetime.
63646
+ */
63647
+ scheduledDatetime: string;
63648
+ /**
63649
+ * Scheduledenddatetime
63650
+ * Format: date-time
63651
+ * @description Scheduled end date and time. Must be after scheduledDatetime.
63652
+ */
63653
+ scheduledEndDatetime: string;
63654
+ /**
63655
+ * @description Initial status. Defaults to draft.
63656
+ * Status can be set to any value.
63657
+ * Cancelled appointments cannot be edited.
63658
+ * Only completed appointments can be linked to a sales invoice.
63659
+ * @default draft
63660
+ */
63661
+ status: components["schemas"]["AppointmentStatusEnum"] | null;
63662
+ };
63663
+ /** AppointmentListSchema */
63664
+ AppointmentListSchema: {
63665
+ info: components["schemas"]["PageInfoSchema"];
63666
+ /** Results */
63667
+ results: components["schemas"]["AppointmentSchema"][];
63668
+ };
63669
+ /** AppointmentConflictsListSchema */
63670
+ AppointmentConflictsListSchema: {
63671
+ /**
63672
+ * Conflicts
63673
+ * @description Informational warnings only — creation/update is not blocked.
63674
+ * Returned when facility, employee, or service overlaps with another active appointment
63675
+ * (status: confirmed, checked_in, or in_progress) in the same time window.
63676
+ */
63677
+ conflicts?: components["schemas"]["AppointmentConflictSchema"][];
63678
+ };
63679
+ /** CheckAppointmentConflictsSchema */
63680
+ CheckAppointmentConflictsSchema: {
63681
+ /**
63682
+ * Scheduleddatetime
63683
+ * Format: date-time
63684
+ * @description Scheduled start date and time to check for conflicts
63685
+ */
63686
+ scheduledDatetime: string;
63687
+ /**
63688
+ * Scheduledenddatetime
63689
+ * Format: date-time
63690
+ * @description Scheduled end date and time to check for conflicts
63691
+ */
63692
+ scheduledEndDatetime: string;
63693
+ /**
63694
+ * Facility
63695
+ * @description Facility ID to check. Get from /api/v1/common/facilities/ (uses X-Current-Branch header)
63696
+ */
63697
+ facility?: number | null;
63698
+ /**
63699
+ * Employees
63700
+ * @description Employee IDs to check. Get from /api/v1/hr/employees/ (uses X-Current-Branch header) and filter by isActive equal to true
63701
+ */
63702
+ employees?: string[];
63703
+ /**
63704
+ * Services
63705
+ * @description Service/item IDs to check. Get from /api/v1/inventory/items/
63706
+ */
63707
+ services?: string[];
63708
+ };
63709
+ /** RescheduleAppointmentSchema */
63710
+ RescheduleAppointmentSchema: {
63711
+ /**
63712
+ * Scheduleddatetime
63713
+ * Format: date-time
63714
+ * @description Scheduled start for the new appointment created when rescheduling
63715
+ */
63716
+ scheduledDatetime: string;
63717
+ /**
63718
+ * Scheduledenddatetime
63719
+ * Format: date-time
63720
+ * @description Scheduled end for the new appointment created when rescheduling
63721
+ */
63722
+ scheduledEndDatetime: string;
63723
+ /**
63724
+ * @description Status for the new appointment. Use draft or confirmed.
63725
+ * @default draft
63726
+ */
63727
+ status: components["schemas"]["AppointmentStatusEnum"];
63728
+ };
63729
+ /** UpdateAppointmentSchema */
63730
+ UpdateAppointmentSchema: {
63731
+ /**
63732
+ * Title
63733
+ * @description Appointment title
63734
+ */
63735
+ title?: string | null;
63736
+ /**
63737
+ * Customer
63738
+ * @description - get customer using route /api/v1/customers/?type=parents and filter by isActive equal to true and customerType equal to debtor
63739
+ */
63740
+ customer?: string | null;
63741
+ /**
63742
+ * Description
63743
+ * @description Appointment description
63744
+ */
63745
+ description?: string | null;
63746
+ /**
63747
+ * Facility
63748
+ * @description Facility ID. Get from /api/v1/common/facilities/ (uses X-Current-Branch header)
63749
+ */
63750
+ facility?: number | null;
63751
+ /**
63752
+ * Employees
63753
+ * @description Replaces all assigned employees when provided. Get from /api/v1/hr/employees/ (uses X-Current-Branch header)
63754
+ */
63755
+ employees?: string[] | null;
63756
+ /**
63757
+ * Services
63758
+ * @description Replaces all linked services when provided. Get from /api/v1/inventory/items/
63759
+ */
63760
+ services?: string[] | null;
63761
+ /**
63762
+ * Scheduleddatetime
63763
+ * @description Scheduled start. Re-runs conflict detection when changed.
63764
+ */
63765
+ scheduledDatetime?: string | null;
63766
+ /**
63767
+ * Scheduledenddatetime
63768
+ * @description Scheduled end. Re-runs conflict detection when changed.
63769
+ */
63770
+ scheduledEndDatetime?: string | null;
63771
+ /**
63772
+ * @description New status.
63773
+ * Status can be set to any value.
63774
+ * Cancelled appointments cannot be edited.
63775
+ * Only completed appointments can be linked to a sales invoice.
63776
+ */
63777
+ status?: components["schemas"]["AppointmentStatusEnum"] | null;
63778
+ /**
63779
+ * Cancellationreason
63780
+ * @description Optional context when setting status to cancelled.
63781
+ */
63782
+ cancellationReason?: string | null;
63783
+ /** @description Required when status is rescheduled. Creates a new appointment linked via rescheduledFrom. */
63784
+ reschedule?: components["schemas"]["RescheduleAppointmentSchema"] | null;
63785
+ };
63786
+ /** ReplaceAppointmentSchema */
63787
+ ReplaceAppointmentSchema: {
63788
+ /**
63789
+ * Title
63790
+ * @description Appointment title. Required.
63791
+ */
63792
+ title: string;
63793
+ /**
63794
+ * Customer
63795
+ * Format: uuid
63796
+ * @description - get customer using route /api/v1/customers/?type=parents and filter by isActive equal to true and customerType equal to debtor
63797
+ * - required on create
63798
+ */
63799
+ customer: string;
63800
+ /**
63801
+ * Description
63802
+ * @description Optional appointment description or notes for internal use
63803
+ */
63804
+ description?: string | null;
63805
+ /**
63806
+ * Facility
63807
+ * @description Facility ID. Optional. Get from /api/v1/common/facilities/ (uses X-Current-Branch header)
63808
+ */
63809
+ facility?: number | null;
63810
+ /**
63811
+ * Employees
63812
+ * @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
63813
+ */
63814
+ employees?: string[];
63815
+ /**
63816
+ * Services
63817
+ * @description Service/item IDs for this appointment. Optional. Get from /api/v1/inventory/items/
63818
+ */
63819
+ services?: string[];
63820
+ /**
63821
+ * Scheduleddatetime
63822
+ * Format: date-time
63823
+ * @description Scheduled start date and time. Must be before scheduledEndDatetime.
63824
+ */
63825
+ scheduledDatetime: string;
63826
+ /**
63827
+ * Scheduledenddatetime
63828
+ * Format: date-time
63829
+ * @description Scheduled end date and time. Must be after scheduledDatetime.
63830
+ */
63831
+ scheduledEndDatetime: string;
63832
+ /**
63833
+ * @description Initial status. Defaults to draft.
63834
+ * Status can be set to any value.
63835
+ * Cancelled appointments cannot be edited.
63836
+ * Only completed appointments can be linked to a sales invoice.
63837
+ * @default draft
63838
+ */
63839
+ status: components["schemas"]["AppointmentStatusEnum"] | null;
63840
+ /**
63841
+ * Cancellationreason
63842
+ * @description Optional context when setting status to cancelled.
63843
+ */
63844
+ cancellationReason?: string | null;
63845
+ /** @description Required when status is rescheduled. Creates a new appointment linked via rescheduledFrom. */
63846
+ reschedule?: components["schemas"]["RescheduleAppointmentSchema"] | null;
63847
+ };
63352
63848
  /** DamageTypeSchema */
63353
63849
  DamageTypeSchema: {
63354
63850
  /**
@@ -63411,13 +63907,13 @@ export interface components {
63411
63907
  canConvert: boolean;
63412
63908
  /**
63413
63909
  * Canmodify
63414
- * @description False when the linked sales invoice has been paid or the repair order is canceled.
63910
+ * @description False when the linked sales invoice has been paid or repair status is canceled.
63415
63911
  * @default true
63416
63912
  */
63417
63913
  canModify: boolean;
63418
63914
  /**
63419
63915
  * Cannotmodifyreason
63420
- * @description Reason editing is blocked: paid or canceled.
63916
+ * @description Reason editing is blocked: paid or repair status is canceled.
63421
63917
  */
63422
63918
  cannotModifyReason?: string | null;
63423
63919
  /**
@@ -63435,8 +63931,7 @@ export interface components {
63435
63931
  devicePassword?: string | null;
63436
63932
  /** Staffnotes */
63437
63933
  staffNotes?: string | null;
63438
- status: components["schemas"]["RetrieveInternalStatusChoices"];
63439
- approvalStatus: components["schemas"]["ApprovalChoices"];
63934
+ /** @description Repair workflow status. When canceled, the repair order can no longer be edited. */
63440
63935
  repairStatus: components["schemas"]["RepairStatusEnum"];
63441
63936
  /** @description Derived from the linked sales invoice. Paid when the linked invoice is fully paid. */
63442
63937
  paymentStatus: components["schemas"]["PaymentStatusEnum"];
@@ -63470,7 +63965,7 @@ export interface components {
63470
63965
  * RepairStatusEnum
63471
63966
  * @enum {string}
63472
63967
  */
63473
- RepairStatusEnum: "pending" | "repairing" | "completed" | "approved";
63968
+ RepairStatusEnum: "pending" | "repairing" | "completed" | "approved" | "canceled";
63474
63969
  /** CreateRepairOrderSchema */
63475
63970
  CreateRepairOrderSchema: {
63476
63971
  /**
@@ -63510,10 +64005,8 @@ export interface components {
63510
64005
  * @description Internal notes visible only to staff.
63511
64006
  */
63512
64007
  staffNotes?: string | null;
63513
- /** @default draft */
63514
- status: components["schemas"]["InternalStatusChoices"];
63515
64008
  /**
63516
- * @description Current repair workflow status.
64009
+ * @description Repair workflow status. Set to canceled to cancel the repair order; canceled orders cannot be edited.
63517
64010
  * @default pending
63518
64011
  */
63519
64012
  repairStatus: components["schemas"]["RepairStatusEnum"];
@@ -63601,8 +64094,7 @@ export interface components {
63601
64094
  * @description Internal notes visible only to staff.
63602
64095
  */
63603
64096
  staffNotes?: string | null;
63604
- status?: components["schemas"]["InternalStatusChoices"] | null;
63605
- /** @description Current repair workflow status. */
64097
+ /** @description Repair workflow status. Set to canceled to cancel the repair order; canceled orders cannot be edited. */
63606
64098
  repairStatus?: components["schemas"]["RepairStatusEnum"] | null;
63607
64099
  /**
63608
64100
  * Damagetypes
@@ -70456,8 +70948,7 @@ export interface operations {
70456
70948
  };
70457
70949
  common_facility_views_list_facilities: {
70458
70950
  parameters: {
70459
- query: {
70460
- branchId: string;
70951
+ query?: {
70461
70952
  /** @description Search by facility name */
70462
70953
  search?: string | null;
70463
70954
  };
@@ -70576,9 +71067,7 @@ export interface operations {
70576
71067
  };
70577
71068
  common_facility_views_get_facility: {
70578
71069
  parameters: {
70579
- query: {
70580
- branchId: string;
70581
- };
71070
+ query?: never;
70582
71071
  header?: never;
70583
71072
  path: {
70584
71073
  id: number;
@@ -70636,9 +71125,7 @@ export interface operations {
70636
71125
  };
70637
71126
  common_facility_views_delete_facility: {
70638
71127
  parameters: {
70639
- query: {
70640
- branchId: string;
70641
- };
71128
+ query?: never;
70642
71129
  header?: never;
70643
71130
  path: {
70644
71131
  id: number;
@@ -70703,7 +71190,7 @@ export interface operations {
70703
71190
  };
70704
71191
  requestBody: {
70705
71192
  content: {
70706
- "application/json": components["schemas"]["FacilitySchema"];
71193
+ "application/json": components["schemas"]["UpdateFacility"];
70707
71194
  };
70708
71195
  };
70709
71196
  responses: {
@@ -109456,27 +109943,389 @@ export interface operations {
109456
109943
  };
109457
109944
  };
109458
109945
  };
109459
- notification_views_batch_update_notification_status: {
109946
+ notification_views_batch_update_notification_status: {
109947
+ parameters: {
109948
+ query?: never;
109949
+ header?: never;
109950
+ path?: never;
109951
+ cookie?: never;
109952
+ };
109953
+ requestBody: {
109954
+ content: {
109955
+ "application/json": components["schemas"]["BatchUpdateStatus"];
109956
+ };
109957
+ };
109958
+ responses: {
109959
+ /** @description OK */
109960
+ 200: {
109961
+ headers: {
109962
+ [name: string]: unknown;
109963
+ };
109964
+ content: {
109965
+ "application/json": components["schemas"]["MessageResponse"];
109966
+ };
109967
+ };
109968
+ /** @description Bad Request */
109969
+ 400: {
109970
+ headers: {
109971
+ [name: string]: unknown;
109972
+ };
109973
+ content: {
109974
+ "application/json": components["schemas"]["ErrorMessages"];
109975
+ };
109976
+ };
109977
+ /** @description Forbidden */
109978
+ 403: {
109979
+ headers: {
109980
+ [name: string]: unknown;
109981
+ };
109982
+ content: {
109983
+ "application/json": components["schemas"]["MessageResponse"];
109984
+ };
109985
+ };
109986
+ /** @description Not Found */
109987
+ 404: {
109988
+ headers: {
109989
+ [name: string]: unknown;
109990
+ };
109991
+ content: {
109992
+ "application/json": components["schemas"]["MessageResponse"];
109993
+ };
109994
+ };
109995
+ /** @description Internal Server Error */
109996
+ 500: {
109997
+ headers: {
109998
+ [name: string]: unknown;
109999
+ };
110000
+ content: {
110001
+ "application/json": components["schemas"]["MessageResponse"];
110002
+ };
110003
+ };
110004
+ };
110005
+ };
110006
+ notification_views_get_notification: {
110007
+ parameters: {
110008
+ query?: never;
110009
+ header?: never;
110010
+ path: {
110011
+ id: string;
110012
+ };
110013
+ cookie?: never;
110014
+ };
110015
+ requestBody?: never;
110016
+ responses: {
110017
+ /** @description OK */
110018
+ 200: {
110019
+ headers: {
110020
+ [name: string]: unknown;
110021
+ };
110022
+ content: {
110023
+ "application/json": components["schemas"]["RetrieveNotificationRecipient"];
110024
+ };
110025
+ };
110026
+ /** @description Forbidden */
110027
+ 403: {
110028
+ headers: {
110029
+ [name: string]: unknown;
110030
+ };
110031
+ content: {
110032
+ "application/json": components["schemas"]["MessageResponse"];
110033
+ };
110034
+ };
110035
+ /** @description Not Found */
110036
+ 404: {
110037
+ headers: {
110038
+ [name: string]: unknown;
110039
+ };
110040
+ content: {
110041
+ "application/json": components["schemas"]["MessageResponse"];
110042
+ };
110043
+ };
110044
+ /** @description Internal Server Error */
110045
+ 500: {
110046
+ headers: {
110047
+ [name: string]: unknown;
110048
+ };
110049
+ content: {
110050
+ "application/json": components["schemas"]["MessageResponse"];
110051
+ };
110052
+ };
110053
+ };
110054
+ };
110055
+ event_views_list_events: {
110056
+ parameters: {
110057
+ query?: {
110058
+ /** @description Search event by title */
110059
+ search?: string | null;
110060
+ };
110061
+ header?: never;
110062
+ path?: never;
110063
+ cookie?: never;
110064
+ };
110065
+ requestBody?: never;
110066
+ responses: {
110067
+ /** @description OK */
110068
+ 200: {
110069
+ headers: {
110070
+ [name: string]: unknown;
110071
+ };
110072
+ content: {
110073
+ "application/json": components["schemas"]["EventsListSchema"];
110074
+ };
110075
+ };
110076
+ /** @description Bad Request */
110077
+ 400: {
110078
+ headers: {
110079
+ [name: string]: unknown;
110080
+ };
110081
+ content: {
110082
+ "application/json": components["schemas"]["ErrorMessages"];
110083
+ };
110084
+ };
110085
+ /** @description Forbidden */
110086
+ 403: {
110087
+ headers: {
110088
+ [name: string]: unknown;
110089
+ };
110090
+ content: {
110091
+ "application/json": components["schemas"]["MessageResponse"];
110092
+ };
110093
+ };
110094
+ /** @description Not Found */
110095
+ 404: {
110096
+ headers: {
110097
+ [name: string]: unknown;
110098
+ };
110099
+ content: {
110100
+ "application/json": components["schemas"]["MessageResponse"];
110101
+ };
110102
+ };
110103
+ /** @description Conflict */
110104
+ 409: {
110105
+ headers: {
110106
+ [name: string]: unknown;
110107
+ };
110108
+ content: {
110109
+ "application/json": components["schemas"]["MessageResponse"];
110110
+ };
110111
+ };
110112
+ /** @description Internal Server Error */
110113
+ 500: {
110114
+ headers: {
110115
+ [name: string]: unknown;
110116
+ };
110117
+ content: {
110118
+ "application/json": components["schemas"]["MessageResponse"];
110119
+ };
110120
+ };
110121
+ };
110122
+ };
110123
+ event_views_create_event: {
110124
+ parameters: {
110125
+ query?: never;
110126
+ header?: never;
110127
+ path?: never;
110128
+ cookie?: never;
110129
+ };
110130
+ requestBody: {
110131
+ content: {
110132
+ "application/json": components["schemas"]["CreateUpdateEvent"];
110133
+ };
110134
+ };
110135
+ responses: {
110136
+ /** @description Created */
110137
+ 201: {
110138
+ headers: {
110139
+ [name: string]: unknown;
110140
+ };
110141
+ content: {
110142
+ "application/json": components["schemas"]["RetrieveEvent"];
110143
+ };
110144
+ };
110145
+ /** @description Bad Request */
110146
+ 400: {
110147
+ headers: {
110148
+ [name: string]: unknown;
110149
+ };
110150
+ content: {
110151
+ "application/json": components["schemas"]["ErrorMessages"];
110152
+ };
110153
+ };
110154
+ /** @description Forbidden */
110155
+ 403: {
110156
+ headers: {
110157
+ [name: string]: unknown;
110158
+ };
110159
+ content: {
110160
+ "application/json": components["schemas"]["MessageResponse"];
110161
+ };
110162
+ };
110163
+ /** @description Not Found */
110164
+ 404: {
110165
+ headers: {
110166
+ [name: string]: unknown;
110167
+ };
110168
+ content: {
110169
+ "application/json": components["schemas"]["MessageResponse"];
110170
+ };
110171
+ };
110172
+ /** @description Conflict */
110173
+ 409: {
110174
+ headers: {
110175
+ [name: string]: unknown;
110176
+ };
110177
+ content: {
110178
+ "application/json": components["schemas"]["MessageResponse"];
110179
+ };
110180
+ };
110181
+ /** @description Internal Server Error */
110182
+ 500: {
110183
+ headers: {
110184
+ [name: string]: unknown;
110185
+ };
110186
+ content: {
110187
+ "application/json": components["schemas"]["MessageResponse"];
110188
+ };
110189
+ };
110190
+ };
110191
+ };
110192
+ event_views_get_event: {
110193
+ parameters: {
110194
+ query?: never;
110195
+ header?: never;
110196
+ path: {
110197
+ id: string;
110198
+ };
110199
+ cookie?: never;
110200
+ };
110201
+ requestBody?: never;
110202
+ responses: {
110203
+ /** @description OK */
110204
+ 200: {
110205
+ headers: {
110206
+ [name: string]: unknown;
110207
+ };
110208
+ content: {
110209
+ "application/json": components["schemas"]["RetrieveEvent"];
110210
+ };
110211
+ };
110212
+ /** @description Forbidden */
110213
+ 403: {
110214
+ headers: {
110215
+ [name: string]: unknown;
110216
+ };
110217
+ content: {
110218
+ "application/json": components["schemas"]["MessageResponse"];
110219
+ };
110220
+ };
110221
+ /** @description Not Found */
110222
+ 404: {
110223
+ headers: {
110224
+ [name: string]: unknown;
110225
+ };
110226
+ content: {
110227
+ "application/json": components["schemas"]["MessageResponse"];
110228
+ };
110229
+ };
110230
+ /** @description Internal Server Error */
110231
+ 500: {
110232
+ headers: {
110233
+ [name: string]: unknown;
110234
+ };
110235
+ content: {
110236
+ "application/json": components["schemas"]["MessageResponse"];
110237
+ };
110238
+ };
110239
+ };
110240
+ };
110241
+ event_views_edit_event: {
110242
+ parameters: {
110243
+ query?: never;
110244
+ header?: never;
110245
+ path: {
110246
+ id: string;
110247
+ };
110248
+ cookie?: never;
110249
+ };
110250
+ requestBody: {
110251
+ content: {
110252
+ "application/json": components["schemas"]["CreateUpdateEvent"];
110253
+ };
110254
+ };
110255
+ responses: {
110256
+ /** @description OK */
110257
+ 200: {
110258
+ headers: {
110259
+ [name: string]: unknown;
110260
+ };
110261
+ content: {
110262
+ "application/json": components["schemas"]["RetrieveEvent"];
110263
+ };
110264
+ };
110265
+ /** @description Bad Request */
110266
+ 400: {
110267
+ headers: {
110268
+ [name: string]: unknown;
110269
+ };
110270
+ content: {
110271
+ "application/json": components["schemas"]["ErrorMessages"];
110272
+ };
110273
+ };
110274
+ /** @description Forbidden */
110275
+ 403: {
110276
+ headers: {
110277
+ [name: string]: unknown;
110278
+ };
110279
+ content: {
110280
+ "application/json": components["schemas"]["MessageResponse"];
110281
+ };
110282
+ };
110283
+ /** @description Not Found */
110284
+ 404: {
110285
+ headers: {
110286
+ [name: string]: unknown;
110287
+ };
110288
+ content: {
110289
+ "application/json": components["schemas"]["MessageResponse"];
110290
+ };
110291
+ };
110292
+ /** @description Conflict */
110293
+ 409: {
110294
+ headers: {
110295
+ [name: string]: unknown;
110296
+ };
110297
+ content: {
110298
+ "application/json": components["schemas"]["MessageResponse"];
110299
+ };
110300
+ };
110301
+ /** @description Internal Server Error */
110302
+ 500: {
110303
+ headers: {
110304
+ [name: string]: unknown;
110305
+ };
110306
+ content: {
110307
+ "application/json": components["schemas"]["MessageResponse"];
110308
+ };
110309
+ };
110310
+ };
110311
+ };
110312
+ event_views_delete_event: {
109460
110313
  parameters: {
109461
110314
  query?: never;
109462
110315
  header?: never;
109463
- path?: never;
109464
- cookie?: never;
109465
- };
109466
- requestBody: {
109467
- content: {
109468
- "application/json": components["schemas"]["BatchUpdateStatus"];
110316
+ path: {
110317
+ id: string;
109469
110318
  };
110319
+ cookie?: never;
109470
110320
  };
110321
+ requestBody?: never;
109471
110322
  responses: {
109472
- /** @description OK */
109473
- 200: {
110323
+ /** @description No Content */
110324
+ 204: {
109474
110325
  headers: {
109475
110326
  [name: string]: unknown;
109476
110327
  };
109477
- content: {
109478
- "application/json": components["schemas"]["MessageResponse"];
109479
- };
110328
+ content?: never;
109480
110329
  };
109481
110330
  /** @description Bad Request */
109482
110331
  400: {
@@ -109505,6 +110354,15 @@ export interface operations {
109505
110354
  "application/json": components["schemas"]["MessageResponse"];
109506
110355
  };
109507
110356
  };
110357
+ /** @description Conflict */
110358
+ 409: {
110359
+ headers: {
110360
+ [name: string]: unknown;
110361
+ };
110362
+ content: {
110363
+ "application/json": components["schemas"]["MessageResponse"];
110364
+ };
110365
+ };
109508
110366
  /** @description Internal Server Error */
109509
110367
  500: {
109510
110368
  headers: {
@@ -109516,7 +110374,7 @@ export interface operations {
109516
110374
  };
109517
110375
  };
109518
110376
  };
109519
- notification_views_get_notification: {
110377
+ event_views_cancel_event: {
109520
110378
  parameters: {
109521
110379
  query?: never;
109522
110380
  header?: never;
@@ -109533,7 +110391,16 @@ export interface operations {
109533
110391
  [name: string]: unknown;
109534
110392
  };
109535
110393
  content: {
109536
- "application/json": components["schemas"]["RetrieveNotificationRecipient"];
110394
+ "application/json": components["schemas"]["RetrieveEvent"];
110395
+ };
110396
+ };
110397
+ /** @description Bad Request */
110398
+ 400: {
110399
+ headers: {
110400
+ [name: string]: unknown;
110401
+ };
110402
+ content: {
110403
+ "application/json": components["schemas"]["ErrorMessages"];
109537
110404
  };
109538
110405
  };
109539
110406
  /** @description Forbidden */
@@ -109554,6 +110421,15 @@ export interface operations {
109554
110421
  "application/json": components["schemas"]["MessageResponse"];
109555
110422
  };
109556
110423
  };
110424
+ /** @description Conflict */
110425
+ 409: {
110426
+ headers: {
110427
+ [name: string]: unknown;
110428
+ };
110429
+ content: {
110430
+ "application/json": components["schemas"]["MessageResponse"];
110431
+ };
110432
+ };
109557
110433
  /** @description Internal Server Error */
109558
110434
  500: {
109559
110435
  headers: {
@@ -109565,10 +110441,10 @@ export interface operations {
109565
110441
  };
109566
110442
  };
109567
110443
  };
109568
- event_views_list_events: {
110444
+ appointment_views_list_appointments: {
109569
110445
  parameters: {
109570
110446
  query?: {
109571
- /** @description Search event by title */
110447
+ /** @description Search appointments by title, customer, or employee */
109572
110448
  search?: string | null;
109573
110449
  };
109574
110450
  header?: never;
@@ -109583,7 +110459,7 @@ export interface operations {
109583
110459
  [name: string]: unknown;
109584
110460
  };
109585
110461
  content: {
109586
- "application/json": components["schemas"]["EventsListSchema"];
110462
+ "application/json": components["schemas"]["AppointmentListSchema"];
109587
110463
  };
109588
110464
  };
109589
110465
  /** @description Bad Request */
@@ -109604,26 +110480,41 @@ export interface operations {
109604
110480
  "application/json": components["schemas"]["MessageResponse"];
109605
110481
  };
109606
110482
  };
109607
- /** @description Not Found */
109608
- 404: {
110483
+ };
110484
+ };
110485
+ appointment_views_create_appointment: {
110486
+ parameters: {
110487
+ query?: never;
110488
+ header?: never;
110489
+ path?: never;
110490
+ cookie?: never;
110491
+ };
110492
+ requestBody: {
110493
+ content: {
110494
+ "application/json": components["schemas"]["CreateAppointmentSchema"];
110495
+ };
110496
+ };
110497
+ responses: {
110498
+ /** @description Created */
110499
+ 201: {
109609
110500
  headers: {
109610
110501
  [name: string]: unknown;
109611
110502
  };
109612
110503
  content: {
109613
- "application/json": components["schemas"]["MessageResponse"];
110504
+ "application/json": components["schemas"]["AppointmentWithConflictsSchema"];
109614
110505
  };
109615
110506
  };
109616
- /** @description Conflict */
109617
- 409: {
110507
+ /** @description Bad Request */
110508
+ 400: {
109618
110509
  headers: {
109619
110510
  [name: string]: unknown;
109620
110511
  };
109621
110512
  content: {
109622
- "application/json": components["schemas"]["MessageResponse"];
110513
+ "application/json": components["schemas"]["ErrorMessages"];
109623
110514
  };
109624
110515
  };
109625
- /** @description Internal Server Error */
109626
- 500: {
110516
+ /** @description Forbidden */
110517
+ 403: {
109627
110518
  headers: {
109628
110519
  [name: string]: unknown;
109629
110520
  };
@@ -109633,26 +110524,28 @@ export interface operations {
109633
110524
  };
109634
110525
  };
109635
110526
  };
109636
- event_views_create_event: {
110527
+ appointment_views_check_appointment_conflicts: {
109637
110528
  parameters: {
109638
110529
  query?: never;
109639
110530
  header?: never;
109640
- path?: never;
110531
+ path: {
110532
+ id: string;
110533
+ };
109641
110534
  cookie?: never;
109642
110535
  };
109643
110536
  requestBody: {
109644
110537
  content: {
109645
- "application/json": components["schemas"]["CreateUpdateEvent"];
110538
+ "application/json": components["schemas"]["CheckAppointmentConflictsSchema"];
109646
110539
  };
109647
110540
  };
109648
110541
  responses: {
109649
- /** @description Created */
109650
- 201: {
110542
+ /** @description OK */
110543
+ 200: {
109651
110544
  headers: {
109652
110545
  [name: string]: unknown;
109653
110546
  };
109654
110547
  content: {
109655
- "application/json": components["schemas"]["RetrieveEvent"];
110548
+ "application/json": components["schemas"]["AppointmentConflictsListSchema"];
109656
110549
  };
109657
110550
  };
109658
110551
  /** @description Bad Request */
@@ -109682,27 +110575,9 @@ export interface operations {
109682
110575
  "application/json": components["schemas"]["MessageResponse"];
109683
110576
  };
109684
110577
  };
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
110578
  };
109704
110579
  };
109705
- event_views_get_event: {
110580
+ appointment_views_get_appointment: {
109706
110581
  parameters: {
109707
110582
  query?: never;
109708
110583
  header?: never;
@@ -109719,7 +110594,7 @@ export interface operations {
109719
110594
  [name: string]: unknown;
109720
110595
  };
109721
110596
  content: {
109722
- "application/json": components["schemas"]["RetrieveEvent"];
110597
+ "application/json": components["schemas"]["AppointmentSchema"];
109723
110598
  };
109724
110599
  };
109725
110600
  /** @description Forbidden */
@@ -109740,18 +110615,9 @@ export interface operations {
109740
110615
  "application/json": components["schemas"]["MessageResponse"];
109741
110616
  };
109742
110617
  };
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
110618
  };
109753
110619
  };
109754
- event_views_edit_event: {
110620
+ appointment_views_replace_appointment: {
109755
110621
  parameters: {
109756
110622
  query?: never;
109757
110623
  header?: never;
@@ -109762,7 +110628,7 @@ export interface operations {
109762
110628
  };
109763
110629
  requestBody: {
109764
110630
  content: {
109765
- "application/json": components["schemas"]["CreateUpdateEvent"];
110631
+ "application/json": components["schemas"]["ReplaceAppointmentSchema"];
109766
110632
  };
109767
110633
  };
109768
110634
  responses: {
@@ -109772,7 +110638,7 @@ export interface operations {
109772
110638
  [name: string]: unknown;
109773
110639
  };
109774
110640
  content: {
109775
- "application/json": components["schemas"]["RetrieveEvent"];
110641
+ "application/json": components["schemas"]["AppointmentWithConflictsSchema"];
109776
110642
  };
109777
110643
  };
109778
110644
  /** @description Bad Request */
@@ -109802,27 +110668,9 @@ export interface operations {
109802
110668
  "application/json": components["schemas"]["MessageResponse"];
109803
110669
  };
109804
110670
  };
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
110671
  };
109824
110672
  };
109825
- event_views_delete_event: {
110673
+ appointment_views_delete_appointment: {
109826
110674
  parameters: {
109827
110675
  query?: never;
109828
110676
  header?: never;
@@ -109867,27 +110715,9 @@ export interface operations {
109867
110715
  "application/json": components["schemas"]["MessageResponse"];
109868
110716
  };
109869
110717
  };
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
110718
  };
109889
110719
  };
109890
- event_views_cancel_event: {
110720
+ appointment_views_update_appointment: {
109891
110721
  parameters: {
109892
110722
  query?: never;
109893
110723
  header?: never;
@@ -109896,7 +110726,11 @@ export interface operations {
109896
110726
  };
109897
110727
  cookie?: never;
109898
110728
  };
109899
- requestBody?: never;
110729
+ requestBody: {
110730
+ content: {
110731
+ "application/json": components["schemas"]["UpdateAppointmentSchema"];
110732
+ };
110733
+ };
109900
110734
  responses: {
109901
110735
  /** @description OK */
109902
110736
  200: {
@@ -109904,7 +110738,7 @@ export interface operations {
109904
110738
  [name: string]: unknown;
109905
110739
  };
109906
110740
  content: {
109907
- "application/json": components["schemas"]["RetrieveEvent"];
110741
+ "application/json": components["schemas"]["AppointmentWithConflictsSchema"];
109908
110742
  };
109909
110743
  };
109910
110744
  /** @description Bad Request */
@@ -109934,24 +110768,6 @@ export interface operations {
109934
110768
  "application/json": components["schemas"]["MessageResponse"];
109935
110769
  };
109936
110770
  };
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
110771
  };
109956
110772
  };
109957
110773
  maintenance_views_list_repair_orders: {
@@ -110287,68 +111103,6 @@ export interface operations {
110287
111103
  };
110288
111104
  };
110289
111105
  };
110290
- maintenance_views_cancel_repair_order: {
110291
- parameters: {
110292
- query?: never;
110293
- header?: never;
110294
- path: {
110295
- id: string;
110296
- };
110297
- cookie?: never;
110298
- };
110299
- requestBody: {
110300
- content: {
110301
- "application/json": components["schemas"]["ActionsPayloadSchemas"];
110302
- };
110303
- };
110304
- responses: {
110305
- /** @description OK */
110306
- 200: {
110307
- headers: {
110308
- [name: string]: unknown;
110309
- };
110310
- content: {
110311
- "application/json": components["schemas"]["RepairOrderDetailSchema"];
110312
- };
110313
- };
110314
- /** @description Bad Request */
110315
- 400: {
110316
- headers: {
110317
- [name: string]: unknown;
110318
- };
110319
- content: {
110320
- "application/json": components["schemas"]["ErrorMessages"];
110321
- };
110322
- };
110323
- /** @description Forbidden */
110324
- 403: {
110325
- headers: {
110326
- [name: string]: unknown;
110327
- };
110328
- content: {
110329
- "application/json": components["schemas"]["MessageResponse"];
110330
- };
110331
- };
110332
- /** @description Not Found */
110333
- 404: {
110334
- headers: {
110335
- [name: string]: unknown;
110336
- };
110337
- content: {
110338
- "application/json": components["schemas"]["MessageResponse"];
110339
- };
110340
- };
110341
- /** @description Internal Server Error */
110342
- 500: {
110343
- headers: {
110344
- [name: string]: unknown;
110345
- };
110346
- content: {
110347
- "application/json": components["schemas"]["MessageResponse"];
110348
- };
110349
- };
110350
- };
110351
- };
110352
111106
  maintenance_views_list_damage_types: {
110353
111107
  parameters: {
110354
111108
  query?: {