@erp-galoper/types 1.0.2098 → 1.0.2100

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 +619 -2
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -12892,6 +12892,89 @@ export interface paths {
12892
12892
  patch?: never;
12893
12893
  trace?: never;
12894
12894
  };
12895
+ "/api/v1/production/work-centers/": {
12896
+ parameters: {
12897
+ query?: never;
12898
+ header?: never;
12899
+ path?: never;
12900
+ cookie?: never;
12901
+ };
12902
+ /**
12903
+ * List Work Centers
12904
+ * @description List work centers.
12905
+ *
12906
+ * **Query**
12907
+ * - Pagination: `page`, `pageSize`
12908
+ * - Grid filters: `filters` (JSON)
12909
+ * - `search`, `wcType`, `isActive`, `sortBy`, `order`
12910
+ *
12911
+ * **Permission key:** `workcenter = [ view ]`
12912
+ *
12913
+ * ### Responses
12914
+ * - **200**: WorkCenterListSchema
12915
+ * - **400**: invalidFilterFormat, paginationError
12916
+ * - **403**: permissionDenied, noModuleAccess
12917
+ */
12918
+ get: operations["production_work_centers_views_list_work_centers"];
12919
+ put?: never;
12920
+ /**
12921
+ * Create Work Center
12922
+ * @description Create a work center.
12923
+ *
12924
+ * **Permission key:** `workcenter = [ add ]`
12925
+ *
12926
+ * ### Common 400 error codes
12927
+ * - WC_CAPACITY_INVALID, WC_EFFICIENCY_INVALID, WC_UTILIZATION_INVALID, WC_RATE_INVALID, integrityError (duplicate code)
12928
+ */
12929
+ post: operations["production_work_centers_views_create_work_center"];
12930
+ delete?: never;
12931
+ options?: never;
12932
+ head?: never;
12933
+ patch?: never;
12934
+ trace?: never;
12935
+ };
12936
+ "/api/v1/production/work-centers/{id}/": {
12937
+ parameters: {
12938
+ query?: never;
12939
+ header?: never;
12940
+ path?: never;
12941
+ cookie?: never;
12942
+ };
12943
+ /**
12944
+ * Get Work Center
12945
+ * @description Retrieve a work center by id.
12946
+ *
12947
+ * **Permission key:** `workcenter = [ view ]`
12948
+ */
12949
+ get: operations["production_work_centers_views_get_work_center"];
12950
+ /**
12951
+ * Update Work Center
12952
+ * @description Replace a work center (full PUT body, same shape as create).
12953
+ *
12954
+ * **Permission key:** `workcenter = [ change ]`
12955
+ *
12956
+ * ### Common 400 error codes
12957
+ * - WC_CAPACITY_INVALID, WC_EFFICIENCY_INVALID, WC_UTILIZATION_INVALID, WC_RATE_INVALID, integrityError (duplicate code)
12958
+ */
12959
+ put: operations["production_work_centers_views_update_work_center"];
12960
+ post?: never;
12961
+ /**
12962
+ * Delete Work Center
12963
+ * @description Delete a work center.
12964
+ *
12965
+ * **Permission key:** `workcenter = [ delete ]`
12966
+ *
12967
+ * ### Responses
12968
+ * - **204**: deleted
12969
+ * - **400**: WC_IN_USE
12970
+ * - **404**: workCenterDoesNotExist
12971
+ */
12972
+ delete: operations["production_work_centers_views_delete_work_center"];
12973
+ options?: never;
12974
+ head?: never;
12975
+ patch?: never;
12976
+ trace?: never;
12977
+ };
12895
12978
  "/api/v1/purchase/payment-vouchers/calculate-equivalents/": {
12896
12979
  parameters: {
12897
12980
  query?: never;
@@ -27122,7 +27205,7 @@ export interface components {
27122
27205
  * BasePermissionsSchema_Settings_Approval_ApprovalsettingsEnum
27123
27206
  * @enum {string}
27124
27207
  */
27125
- BasePermissionsSchema_Settings_Approval_ApprovalsettingsEnum: "addadvancepayment" | "add" | "addclosingcommission" | "addcollectiondeposit" | "addcommissionpayout" | "addcommissionstructure" | "adddownpayment" | "addgoodsdeliverynote" | "addgoodsreceiptnote" | "addinternaltransfer" | "addjournalvoucher" | "addofferandpromotion" | "addopeningquantity" | "addpaymentvoucher" | "addpurchasecreditnote" | "addpurchaseinvoice" | "addpurchaseorder" | "addpurchasequotation" | "addpurchasereturninvoice" | "addpurchasereturnorder" | "addreceiptvoucher" | "addrefundvoucher" | "addrequestforquotation" | "addrequisition" | "addreturnablepackagereconciliation" | "addreturndocument" | "addsalescreditnote" | "addsalesinvoice" | "addsalesorder" | "addsalespricelist" | "addsalesquotation" | "addsalesrefundvoucher" | "addsalesreturninvoice" | "addsalesreturnorder" | "addsalesreturnpackage" | "addstockadjustment" | "addsupplierpricelist" | "changeadvancepayment" | "change" | "changeclosingcommission" | "changecollectiondeposit" | "changecommissionpayout" | "changecommissionstructure" | "changedownpayment" | "changegoodsdeliverynote" | "changegoodsreceiptnote" | "changeinternaltransfer" | "changejournalvoucher" | "changeofferandpromotion" | "changeopeningquantity" | "changepaymentvoucher" | "changepurchasecreditnote" | "changepurchaseinvoice" | "changepurchaseorder" | "changepurchasequotation" | "changepurchasereturninvoice" | "changepurchasereturnorder" | "changepurchasinvoice" | "changereceiptvoucher" | "changerefundvoucher" | "changerequestforquotation" | "changerequisition" | "changereturnablepackagereconciliation" | "changereturndocument" | "changesalescreditnote" | "changesalesinvoice" | "changesalesorder" | "changesalespricelist" | "changesalesquotation" | "changesalesrefundvoucher" | "changesalesreturninvoice" | "changesalesreturnorder" | "changesalesreturnpackage" | "changestockadjustment" | "changesupplierpricelist" | "deleteadvancepayment" | "delete" | "deleteclosingcommission" | "deletecollectiondeposit" | "deletecommissionpayout" | "deletecommissionstructure" | "deletedownpayment" | "deletegoodsdeliverynote" | "deletegoodsreceiptnote" | "deleteinternaltransfer" | "deletejournalvoucher" | "deleteofferandpromotion" | "deleteopeningquantity" | "deletepaymentvoucher" | "deletepurchasecreditnote" | "deletepurchaseinvoice" | "deletepurchaseorder" | "deletepurchasequotation" | "deletepurchasereturninvoice" | "deletepurchasereturnorder" | "deletereceiptvoucher" | "deleterefundvoucher" | "deleterequestforquotation" | "deleterequisition" | "deletereturnablepackagereconciliation" | "deletereturndocument" | "deletesalescreditnote" | "deletesalesinvoice" | "deletesalesorder" | "deletesalespricelist" | "deletesalesquotation" | "deletesalesrefundvoucher" | "deletesalesreturninvoice" | "deletesalesreturnorder" | "deletesalesreturnpackage" | "deletestockadjustment" | "deletesupplierpricelist" | "viewadvancepayment" | "view" | "viewclosingcommission" | "viewcollectiondeposit" | "viewcommissionpayout" | "viewcommissionstructure" | "viewdownpayment" | "viewgoodsdeliverynote" | "viewgoodsreceiptnote" | "viewinternaltransfer" | "viewjournalvoucher" | "viewofferandpromotion" | "viewopeningquantity" | "viewpaymentvoucher" | "viewpurchasecreditnote" | "viewpurchaseinvoice" | "viewpurchaseorder" | "viewpurchasequotation" | "viewpurchasereturninvoice" | "viewpurchasereturnorder" | "viewreceiptvoucher" | "viewrefundvoucher" | "viewrequestforquotation" | "viewrequisition" | "viewreturnablepackagereconciliation" | "viewreturndocument" | "viewsalescreditnote" | "viewsalesinvoice" | "viewsalesorder" | "viewsalespricelist" | "viewsalesquotation" | "viewsalesrefundvoucher" | "viewsalesreturninvoice" | "viewsalesreturnorder" | "viewsalesreturnpackage" | "viewstockadjustment" | "viewsupplierpricelist";
27208
+ BasePermissionsSchema_Settings_Approval_ApprovalsettingsEnum: "addadvancepayment" | "add" | "addbillofmaterials" | "addclosingcommission" | "addcollectiondeposit" | "addcommissionpayout" | "addcommissionstructure" | "adddownpayment" | "addgoodsdeliverynote" | "addgoodsreceiptnote" | "addinternaltransfer" | "addjournalvoucher" | "addofferandpromotion" | "addopeningquantity" | "addpaymentvoucher" | "addpurchasecreditnote" | "addpurchaseinvoice" | "addpurchaseorder" | "addpurchasequotation" | "addpurchasereturninvoice" | "addpurchasereturnorder" | "addreceiptvoucher" | "addrefundvoucher" | "addrequestforquotation" | "addrequisition" | "addreturnablepackagereconciliation" | "addreturndocument" | "addsalescreditnote" | "addsalesinvoice" | "addsalesorder" | "addsalespricelist" | "addsalesquotation" | "addsalesrefundvoucher" | "addsalesreturninvoice" | "addsalesreturnorder" | "addsalesreturnpackage" | "addstockadjustment" | "addsupplierpricelist" | "changeadvancepayment" | "change" | "changebillofmaterials" | "changeclosingcommission" | "changecollectiondeposit" | "changecommissionpayout" | "changecommissionstructure" | "changedownpayment" | "changegoodsdeliverynote" | "changegoodsreceiptnote" | "changeinternaltransfer" | "changejournalvoucher" | "changeofferandpromotion" | "changeopeningquantity" | "changepaymentvoucher" | "changepurchasecreditnote" | "changepurchaseinvoice" | "changepurchaseorder" | "changepurchasequotation" | "changepurchasereturninvoice" | "changepurchasereturnorder" | "changepurchasinvoice" | "changereceiptvoucher" | "changerefundvoucher" | "changerequestforquotation" | "changerequisition" | "changereturnablepackagereconciliation" | "changereturndocument" | "changesalescreditnote" | "changesalesinvoice" | "changesalesorder" | "changesalespricelist" | "changesalesquotation" | "changesalesrefundvoucher" | "changesalesreturninvoice" | "changesalesreturnorder" | "changesalesreturnpackage" | "changestockadjustment" | "changesupplierpricelist" | "deleteadvancepayment" | "delete" | "deletebillofmaterials" | "deleteclosingcommission" | "deletecollectiondeposit" | "deletecommissionpayout" | "deletecommissionstructure" | "deletedownpayment" | "deletegoodsdeliverynote" | "deletegoodsreceiptnote" | "deleteinternaltransfer" | "deletejournalvoucher" | "deleteofferandpromotion" | "deleteopeningquantity" | "deletepaymentvoucher" | "deletepurchasecreditnote" | "deletepurchaseinvoice" | "deletepurchaseorder" | "deletepurchasequotation" | "deletepurchasereturninvoice" | "deletepurchasereturnorder" | "deletereceiptvoucher" | "deleterefundvoucher" | "deleterequestforquotation" | "deleterequisition" | "deletereturnablepackagereconciliation" | "deletereturndocument" | "deletesalescreditnote" | "deletesalesinvoice" | "deletesalesorder" | "deletesalespricelist" | "deletesalesquotation" | "deletesalesrefundvoucher" | "deletesalesreturninvoice" | "deletesalesreturnorder" | "deletesalesreturnpackage" | "deletestockadjustment" | "deletesupplierpricelist" | "viewadvancepayment" | "view" | "viewbillofmaterials" | "viewclosingcommission" | "viewcollectiondeposit" | "viewcommissionpayout" | "viewcommissionstructure" | "viewdownpayment" | "viewgoodsdeliverynote" | "viewgoodsreceiptnote" | "viewinternaltransfer" | "viewjournalvoucher" | "viewofferandpromotion" | "viewopeningquantity" | "viewpaymentvoucher" | "viewpurchasecreditnote" | "viewpurchaseinvoice" | "viewpurchaseorder" | "viewpurchasequotation" | "viewpurchasereturninvoice" | "viewpurchasereturnorder" | "viewreceiptvoucher" | "viewrefundvoucher" | "viewrequestforquotation" | "viewrequisition" | "viewreturnablepackagereconciliation" | "viewreturndocument" | "viewsalescreditnote" | "viewsalesinvoice" | "viewsalesorder" | "viewsalespricelist" | "viewsalesquotation" | "viewsalesrefundvoucher" | "viewsalesreturninvoice" | "viewsalesreturnorder" | "viewsalesreturnpackage" | "viewstockadjustment" | "viewsupplierpricelist";
27126
27209
  /**
27127
27210
  * BasePermissionsSchema_Settings_Approval_ApprovaltrackingEnum
27128
27211
  * @enum {string}
@@ -29600,7 +29683,7 @@ export interface components {
29600
29683
  /** Name */
29601
29684
  name: string;
29602
29685
  /** Percentage */
29603
- percentage: number | string;
29686
+ percentage: number | string | null;
29604
29687
  /** Type */
29605
29688
  type: components["schemas"]["TaxTypes"][];
29606
29689
  };
@@ -49451,6 +49534,312 @@ export interface components {
49451
49534
  */
49452
49535
  code: string;
49453
49536
  };
49537
+ /**
49538
+ * WorkCenterSortBy
49539
+ * @enum {string}
49540
+ */
49541
+ WorkCenterSortBy: "dateCreated" | "dateModified" | "code" | "name" | "wcType" | "capacityPerDay" | "isActive";
49542
+ /**
49543
+ * WorkCenterTypeEnum
49544
+ * @enum {string}
49545
+ */
49546
+ WorkCenterTypeEnum: "machine" | "labor" | "team" | "vessel";
49547
+ /**
49548
+ * WorkCenterListItemSchema
49549
+ * @description List row; use GET `/{id}/` for cost rates, metadata, and attachments.
49550
+ */
49551
+ WorkCenterListItemSchema: {
49552
+ /**
49553
+ * Id
49554
+ * Format: uuid
49555
+ */
49556
+ id: string;
49557
+ /**
49558
+ * Code
49559
+ * @description Unique identifier for the work center (e.g. VK-01). Used in routings and scheduling.
49560
+ */
49561
+ code: string;
49562
+ /**
49563
+ * Name
49564
+ * @description Display name of the work center.
49565
+ */
49566
+ name: string;
49567
+ /** @description Resource type: `machine`, `labor`, `team`, or `vessel` (vessel/tank). */
49568
+ wcType: components["schemas"]["WorkCenterTypeEnum"];
49569
+ /**
49570
+ * Capacityperday
49571
+ * @description Hours per day the work center is available for scheduling.
49572
+ */
49573
+ capacityPerDay: number | string;
49574
+ /**
49575
+ * Efficiencypercent
49576
+ * @description Expected efficiency of the work center when running. Send and receive as 0–100 (not a 0–1 fraction). Example: 100 means 100%, 85 means 85%.
49577
+ */
49578
+ efficiencyPercent: number | string;
49579
+ /**
49580
+ * Utilizationtarget
49581
+ * @description Target utilization used for capacity planning. Send and receive as 0–100 (not a 0–1 fraction). Example: 100 means 100%, 85 means 85%.
49582
+ */
49583
+ utilizationTarget: number | string;
49584
+ /**
49585
+ * Isactive
49586
+ * @description Inactive work centers cannot be selected on new routings or orders.
49587
+ */
49588
+ isActive: boolean;
49589
+ /** Effectivecapacityhoursperday */
49590
+ effectiveCapacityHoursPerDay: number | string;
49591
+ };
49592
+ /** WorkCenterListSchema */
49593
+ WorkCenterListSchema: {
49594
+ info: components["schemas"]["PageInfoSchema"];
49595
+ /** Results */
49596
+ results?: components["schemas"]["WorkCenterListItemSchema"][];
49597
+ };
49598
+ /** WorkCenterDetailSchema */
49599
+ WorkCenterDetailSchema: {
49600
+ /**
49601
+ * Datecreated
49602
+ * Format: date-time
49603
+ */
49604
+ dateCreated: string;
49605
+ /** Datemodified */
49606
+ dateModified: string | null;
49607
+ createdBy: components["schemas"]["RecordUserSchema"];
49608
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
49609
+ /**
49610
+ * Id
49611
+ * Format: uuid
49612
+ */
49613
+ id: string;
49614
+ /**
49615
+ * Code
49616
+ * @description Unique identifier for the work center (e.g. VK-01). Used in routings and scheduling.
49617
+ */
49618
+ code: string;
49619
+ /**
49620
+ * Name
49621
+ * @description Display name of the work center.
49622
+ */
49623
+ name: string;
49624
+ /** @description Resource type: `machine`, `labor`, `team`, or `vessel` (vessel/tank). */
49625
+ wcType: components["schemas"]["WorkCenterTypeEnum"];
49626
+ /**
49627
+ * Capacityperday
49628
+ * @description Hours per day the work center is available for scheduling.
49629
+ */
49630
+ capacityPerDay: number | string;
49631
+ /**
49632
+ * Efficiencypercent
49633
+ * @description Expected efficiency of the work center when running. Send and receive as 0–100 (not a 0–1 fraction). Example: 100 means 100%, 85 means 85%.
49634
+ */
49635
+ efficiencyPercent: number | string;
49636
+ /**
49637
+ * Utilizationtarget
49638
+ * @description Target utilization used for capacity planning. Send and receive as 0–100 (not a 0–1 fraction). Example: 100 means 100%, 85 means 85%.
49639
+ */
49640
+ utilizationTarget: number | string;
49641
+ /**
49642
+ * Finitecapacity
49643
+ * @description When true, scheduling treats capacity as limited (finite scheduling).
49644
+ */
49645
+ finiteCapacity: boolean;
49646
+ /**
49647
+ * Costratelabor
49648
+ * @description Labor cost per hour for operations run on this work center.
49649
+ */
49650
+ costRateLabor: number | string;
49651
+ /**
49652
+ * Costratemachine
49653
+ * @description Machine or equipment cost per hour for this work center.
49654
+ */
49655
+ costRateMachine: number | string;
49656
+ /**
49657
+ * Isactive
49658
+ * @description Inactive work centers cannot be selected on new routings or orders.
49659
+ */
49660
+ isActive: boolean;
49661
+ /**
49662
+ * Description
49663
+ * @description Optional detailed description shown on the work center record.
49664
+ */
49665
+ description?: string | null;
49666
+ /**
49667
+ * Notes
49668
+ * @description Free-form internal notes; not used in capacity or cost calculations.
49669
+ */
49670
+ notes?: string | null;
49671
+ /**
49672
+ * Attachments
49673
+ * @description File paths or URLs from the file upload API to attach to this work center.
49674
+ */
49675
+ attachments?: string[];
49676
+ /**
49677
+ * Effectivecapacityhoursperday
49678
+ * @description capacityPerDay × efficiencyPercent × utilizationTarget (percent fields are 0–100 in JSON).
49679
+ */
49680
+ effectiveCapacityHoursPerDay: number | string;
49681
+ };
49682
+ /** WorkCenterResponseSchema */
49683
+ WorkCenterResponseSchema: {
49684
+ /**
49685
+ * Message
49686
+ * @description Human-readable result message.
49687
+ */
49688
+ message: string;
49689
+ /**
49690
+ * Code
49691
+ * @description Machine code, e.g. workCenterCreated, workCenterUpdated.
49692
+ */
49693
+ code: string;
49694
+ /** @description Updated work center after create/update. */
49695
+ data: components["schemas"]["WorkCenterDetailSchema"];
49696
+ };
49697
+ /**
49698
+ * CreateWorkCenterSchema
49699
+ * @description Create a work center.
49700
+ *
49701
+ * Structural rules are enforced in `structural_checks` (same error codes as service-layer header validation).
49702
+ */
49703
+ CreateWorkCenterSchema: {
49704
+ /**
49705
+ * Code
49706
+ * @description Unique identifier for the work center (e.g. VK-01). Used in routings and scheduling.
49707
+ */
49708
+ code: string;
49709
+ /**
49710
+ * Name
49711
+ * @description Display name of the work center.
49712
+ */
49713
+ name: string;
49714
+ /** @description Resource type: `machine`, `labor`, `team`, or `vessel` (vessel/tank). */
49715
+ wcType: components["schemas"]["WorkCenterTypeEnum"];
49716
+ /**
49717
+ * Capacityperday
49718
+ * @description Hours per day the work center is available for scheduling.
49719
+ */
49720
+ capacityPerDay: number | string;
49721
+ /**
49722
+ * Efficiencypercent
49723
+ * @description Expected efficiency of the work center when running. Send and receive as 0–100 (not a 0–1 fraction). Example: 100 means 100%, 85 means 85%.
49724
+ * @default 100
49725
+ */
49726
+ efficiencyPercent: number | string;
49727
+ /**
49728
+ * Utilizationtarget
49729
+ * @description Target utilization used for capacity planning. Send and receive as 0–100 (not a 0–1 fraction). Example: 100 means 100%, 85 means 85%.
49730
+ * @default 100
49731
+ */
49732
+ utilizationTarget: number | string;
49733
+ /**
49734
+ * Finitecapacity
49735
+ * @description When true, scheduling treats capacity as limited (finite scheduling).
49736
+ * @default true
49737
+ */
49738
+ finiteCapacity: boolean;
49739
+ /**
49740
+ * Costratelabor
49741
+ * @description Labor cost per hour for operations run on this work center.
49742
+ * @default 0
49743
+ */
49744
+ costRateLabor: number | string;
49745
+ /**
49746
+ * Costratemachine
49747
+ * @description Machine or equipment cost per hour for this work center.
49748
+ * @default 0
49749
+ */
49750
+ costRateMachine: number | string;
49751
+ /**
49752
+ * Isactive
49753
+ * @description Inactive work centers cannot be selected on new routings or orders.
49754
+ * @default true
49755
+ */
49756
+ isActive: boolean;
49757
+ /**
49758
+ * Description
49759
+ * @description Optional detailed description shown on the work center record.
49760
+ */
49761
+ description?: string | null;
49762
+ /**
49763
+ * Notes
49764
+ * @description Free-form internal notes; not used in capacity or cost calculations.
49765
+ */
49766
+ notes?: string | null;
49767
+ /**
49768
+ * Attachments
49769
+ * @description File paths or URLs from the file upload API to attach to this work center.
49770
+ */
49771
+ attachments?: string[];
49772
+ };
49773
+ /**
49774
+ * UpdateWorkCenterSchema
49775
+ * @description Full replace of editable header fields (PUT). Send the complete work center body.
49776
+ *
49777
+ * Structural rules match create (`structural_checks`).
49778
+ */
49779
+ UpdateWorkCenterSchema: {
49780
+ /**
49781
+ * Code
49782
+ * @description Unique identifier for the work center (e.g. VK-01). Used in routings and scheduling.
49783
+ */
49784
+ code: string;
49785
+ /**
49786
+ * Name
49787
+ * @description Display name of the work center.
49788
+ */
49789
+ name: string;
49790
+ /** @description Resource type: `machine`, `labor`, `team`, or `vessel` (vessel/tank). */
49791
+ wcType: components["schemas"]["WorkCenterTypeEnum"];
49792
+ /**
49793
+ * Capacityperday
49794
+ * @description Hours per day the work center is available for scheduling.
49795
+ */
49796
+ capacityPerDay: number | string;
49797
+ /**
49798
+ * Efficiencypercent
49799
+ * @description Expected efficiency of the work center when running. Send and receive as 0–100 (not a 0–1 fraction). Example: 100 means 100%, 85 means 85%.
49800
+ */
49801
+ efficiencyPercent: number | string;
49802
+ /**
49803
+ * Utilizationtarget
49804
+ * @description Target utilization used for capacity planning. Send and receive as 0–100 (not a 0–1 fraction). Example: 100 means 100%, 85 means 85%.
49805
+ */
49806
+ utilizationTarget: number | string;
49807
+ /**
49808
+ * Finitecapacity
49809
+ * @description When true, scheduling treats capacity as limited (finite scheduling).
49810
+ */
49811
+ finiteCapacity: boolean;
49812
+ /**
49813
+ * Costratelabor
49814
+ * @description Labor cost per hour for operations run on this work center.
49815
+ */
49816
+ costRateLabor: number | string;
49817
+ /**
49818
+ * Costratemachine
49819
+ * @description Machine or equipment cost per hour for this work center.
49820
+ */
49821
+ costRateMachine: number | string;
49822
+ /**
49823
+ * Isactive
49824
+ * @description Inactive work centers cannot be selected on new routings or orders.
49825
+ */
49826
+ isActive: boolean;
49827
+ /**
49828
+ * Description
49829
+ * @description Optional detailed description shown on the work center record.
49830
+ */
49831
+ description?: string | null;
49832
+ /**
49833
+ * Notes
49834
+ * @description Free-form internal notes; not used in capacity or cost calculations.
49835
+ */
49836
+ notes?: string | null;
49837
+ /**
49838
+ * Attachments
49839
+ * @description File paths or URLs from the file upload API to attach to this work center.
49840
+ */
49841
+ attachments?: string[];
49842
+ };
49454
49843
  /** PaymentVoucherCalculateTotalResponse */
49455
49844
  PaymentVoucherCalculateTotalResponse: {
49456
49845
  /**
@@ -97700,6 +98089,234 @@ export interface operations {
97700
98089
  };
97701
98090
  };
97702
98091
  };
98092
+ production_work_centers_views_list_work_centers: {
98093
+ parameters: {
98094
+ query?: {
98095
+ /** @description Search by code or name. */
98096
+ search?: string | null;
98097
+ wcType?: components["schemas"]["WorkCenterTypeEnum"] | null;
98098
+ isActive?: boolean | null;
98099
+ sortBy?: components["schemas"]["WorkCenterSortBy"] | null;
98100
+ /** @description Sort direction when sortBy is set (asc or desc). Defaults to asc for code. */
98101
+ order?: components["schemas"]["SortOrder"] | null;
98102
+ };
98103
+ header?: never;
98104
+ path?: never;
98105
+ cookie?: never;
98106
+ };
98107
+ requestBody?: never;
98108
+ responses: {
98109
+ /** @description OK */
98110
+ 200: {
98111
+ headers: {
98112
+ [name: string]: unknown;
98113
+ };
98114
+ content: {
98115
+ "application/json": components["schemas"]["WorkCenterListSchema"];
98116
+ };
98117
+ };
98118
+ /** @description Bad Request */
98119
+ 400: {
98120
+ headers: {
98121
+ [name: string]: unknown;
98122
+ };
98123
+ content: {
98124
+ "application/json": components["schemas"]["ErrorMessages"];
98125
+ };
98126
+ };
98127
+ /** @description Forbidden */
98128
+ 403: {
98129
+ headers: {
98130
+ [name: string]: unknown;
98131
+ };
98132
+ content: {
98133
+ "application/json": components["schemas"]["MessageResponse"];
98134
+ };
98135
+ };
98136
+ };
98137
+ };
98138
+ production_work_centers_views_create_work_center: {
98139
+ parameters: {
98140
+ query?: never;
98141
+ header?: never;
98142
+ path?: never;
98143
+ cookie?: never;
98144
+ };
98145
+ requestBody: {
98146
+ content: {
98147
+ "application/json": components["schemas"]["CreateWorkCenterSchema"];
98148
+ };
98149
+ };
98150
+ responses: {
98151
+ /** @description Created */
98152
+ 201: {
98153
+ headers: {
98154
+ [name: string]: unknown;
98155
+ };
98156
+ content: {
98157
+ "application/json": components["schemas"]["WorkCenterResponseSchema"];
98158
+ };
98159
+ };
98160
+ /** @description Bad Request */
98161
+ 400: {
98162
+ headers: {
98163
+ [name: string]: unknown;
98164
+ };
98165
+ content: {
98166
+ "application/json": components["schemas"]["ErrorMessages"];
98167
+ };
98168
+ };
98169
+ /** @description Forbidden */
98170
+ 403: {
98171
+ headers: {
98172
+ [name: string]: unknown;
98173
+ };
98174
+ content: {
98175
+ "application/json": components["schemas"]["MessageResponse"];
98176
+ };
98177
+ };
98178
+ };
98179
+ };
98180
+ production_work_centers_views_get_work_center: {
98181
+ parameters: {
98182
+ query?: never;
98183
+ header?: never;
98184
+ path: {
98185
+ id: string;
98186
+ };
98187
+ cookie?: never;
98188
+ };
98189
+ requestBody?: never;
98190
+ responses: {
98191
+ /** @description OK */
98192
+ 200: {
98193
+ headers: {
98194
+ [name: string]: unknown;
98195
+ };
98196
+ content: {
98197
+ "application/json": components["schemas"]["WorkCenterDetailSchema"];
98198
+ };
98199
+ };
98200
+ /** @description Forbidden */
98201
+ 403: {
98202
+ headers: {
98203
+ [name: string]: unknown;
98204
+ };
98205
+ content: {
98206
+ "application/json": components["schemas"]["MessageResponse"];
98207
+ };
98208
+ };
98209
+ /** @description Not Found */
98210
+ 404: {
98211
+ headers: {
98212
+ [name: string]: unknown;
98213
+ };
98214
+ content: {
98215
+ "application/json": components["schemas"]["MessageResponse"];
98216
+ };
98217
+ };
98218
+ };
98219
+ };
98220
+ production_work_centers_views_update_work_center: {
98221
+ parameters: {
98222
+ query?: never;
98223
+ header?: never;
98224
+ path: {
98225
+ id: string;
98226
+ };
98227
+ cookie?: never;
98228
+ };
98229
+ requestBody: {
98230
+ content: {
98231
+ "application/json": components["schemas"]["UpdateWorkCenterSchema"];
98232
+ };
98233
+ };
98234
+ responses: {
98235
+ /** @description OK */
98236
+ 200: {
98237
+ headers: {
98238
+ [name: string]: unknown;
98239
+ };
98240
+ content: {
98241
+ "application/json": components["schemas"]["WorkCenterResponseSchema"];
98242
+ };
98243
+ };
98244
+ /** @description Bad Request */
98245
+ 400: {
98246
+ headers: {
98247
+ [name: string]: unknown;
98248
+ };
98249
+ content: {
98250
+ "application/json": components["schemas"]["ErrorMessages"];
98251
+ };
98252
+ };
98253
+ /** @description Forbidden */
98254
+ 403: {
98255
+ headers: {
98256
+ [name: string]: unknown;
98257
+ };
98258
+ content: {
98259
+ "application/json": components["schemas"]["MessageResponse"];
98260
+ };
98261
+ };
98262
+ /** @description Not Found */
98263
+ 404: {
98264
+ headers: {
98265
+ [name: string]: unknown;
98266
+ };
98267
+ content: {
98268
+ "application/json": components["schemas"]["MessageResponse"];
98269
+ };
98270
+ };
98271
+ };
98272
+ };
98273
+ production_work_centers_views_delete_work_center: {
98274
+ parameters: {
98275
+ query?: never;
98276
+ header?: never;
98277
+ path: {
98278
+ id: string;
98279
+ };
98280
+ cookie?: never;
98281
+ };
98282
+ requestBody?: never;
98283
+ responses: {
98284
+ /** @description No Content */
98285
+ 204: {
98286
+ headers: {
98287
+ [name: string]: unknown;
98288
+ };
98289
+ content?: never;
98290
+ };
98291
+ /** @description Bad Request */
98292
+ 400: {
98293
+ headers: {
98294
+ [name: string]: unknown;
98295
+ };
98296
+ content: {
98297
+ "application/json": components["schemas"]["ErrorMessages"];
98298
+ };
98299
+ };
98300
+ /** @description Forbidden */
98301
+ 403: {
98302
+ headers: {
98303
+ [name: string]: unknown;
98304
+ };
98305
+ content: {
98306
+ "application/json": components["schemas"]["MessageResponse"];
98307
+ };
98308
+ };
98309
+ /** @description Not Found */
98310
+ 404: {
98311
+ headers: {
98312
+ [name: string]: unknown;
98313
+ };
98314
+ content: {
98315
+ "application/json": components["schemas"]["MessageResponse"];
98316
+ };
98317
+ };
98318
+ };
98319
+ };
97703
98320
  purchase_payment_voucher_views_calculate_equivalents: {
97704
98321
  parameters: {
97705
98322
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.2098",
3
+ "version": "1.0.2100",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": [