@factorialco/api-client 3.0.0-beta.2026100106 → 3.0.0-beta.2026100108

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.
@@ -1345,6 +1345,122 @@ export type CompensationsConcept = {
1345
1345
  * What the concept's amount is measured in (e.g. `money`, a quantity of units)
1346
1346
  */
1347
1347
  unit_type?: 'distance' | 'money' | 'time' | 'unit';
1348
+ /**
1349
+ * Whether the concept is enabled for the company
1350
+ */
1351
+ enabled: boolean;
1352
+ /**
1353
+ * Timestamp when the concept was created
1354
+ */
1355
+ created_at?: string;
1356
+ /**
1357
+ * Timestamp when the concept was last updated
1358
+ */
1359
+ updated_at?: string;
1360
+ };
1361
+ export type CompensationsCycle = {
1362
+ /**
1363
+ * Unique identifier of the compensation cycle
1364
+ */
1365
+ id: string;
1366
+ /**
1367
+ * ID of the company that owns the cycle
1368
+ */
1369
+ company_id: string;
1370
+ /**
1371
+ * How often the cycle recurs (e.g. `monthly`)
1372
+ */
1373
+ recurrence: string;
1374
+ /**
1375
+ * Date of the first payment in the cycle
1376
+ */
1377
+ first_payment?: string;
1378
+ /**
1379
+ * ISO 4217 currency code the cycle pays in
1380
+ */
1381
+ currency?: string;
1382
+ /**
1383
+ * ISO country code the cycle applies to
1384
+ */
1385
+ country?: string;
1386
+ /**
1387
+ * Day of the period on which the cycle's runs close
1388
+ */
1389
+ closure_day?: number;
1390
+ /**
1391
+ * Day of the period on which alerts for the cycle are dispatched
1392
+ */
1393
+ alerts_day?: number;
1394
+ /**
1395
+ * Timestamp of archival (null if active)
1396
+ */
1397
+ archived_at?: string;
1398
+ /**
1399
+ * Timestamp when the cycle record was created
1400
+ */
1401
+ created_at?: string;
1402
+ /**
1403
+ * Timestamp when the cycle record was last updated
1404
+ */
1405
+ updated_at?: string;
1406
+ };
1407
+ export type CompensationsPayrollRun = {
1408
+ /**
1409
+ * Payroll run id
1410
+ */
1411
+ id: string;
1412
+ /**
1413
+ * Localized label for the run (month and year)
1414
+ */
1415
+ label: string;
1416
+ /**
1417
+ * Start date of the run period
1418
+ */
1419
+ starts_on: string;
1420
+ /**
1421
+ * End date of the run period
1422
+ */
1423
+ ends_on: string;
1424
+ /**
1425
+ * Run status (open, in_review, completed, etc.)
1426
+ */
1427
+ status: string;
1428
+ /**
1429
+ * Whether the run is locked
1430
+ */
1431
+ locked: boolean;
1432
+ /**
1433
+ * When the run was locked, if it is locked
1434
+ */
1435
+ locked_at?: string;
1436
+ /**
1437
+ * Parent cycle id (nil for off-cycle runs)
1438
+ */
1439
+ cycle_id?: string;
1440
+ /**
1441
+ * Owning company id
1442
+ */
1443
+ company_id: string;
1444
+ /**
1445
+ * Payment type (regular / extra_pay)
1446
+ */
1447
+ payment_type?: 'regular' | 'severance' | 'extra_pay' | 'delayed_payment' | 'bonus_benefit' | 'salary_advance' | 'rate_difference';
1448
+ /**
1449
+ * Effective closure date (override if present, otherwise computed closure_date)
1450
+ */
1451
+ closure_date?: string;
1452
+ /**
1453
+ * Date when alerts are dispatched
1454
+ */
1455
+ alerts_date?: string;
1456
+ /**
1457
+ * Timestamp when the run record was created
1458
+ */
1459
+ created_at?: string;
1460
+ /**
1461
+ * Timestamp when the run record was last updated
1462
+ */
1463
+ updated_at?: string;
1348
1464
  };
1349
1465
  export type ContractsCompensation = {
1350
1466
  /**
@@ -5499,6 +5615,155 @@ export type PostsPost = {
5499
5615
  posts_group_id?: string;
5500
5616
  comments_count: number;
5501
5617
  };
5618
+ export type ProcurementPoTemplate = {
5619
+ /**
5620
+ * The id of the PO template
5621
+ */
5622
+ id: string;
5623
+ /**
5624
+ * Identifier of the company that owns this template
5625
+ */
5626
+ company_id: string;
5627
+ /**
5628
+ * Name of the PO template
5629
+ */
5630
+ name: string;
5631
+ /**
5632
+ * Employee ID who created this template (null for system templates)
5633
+ */
5634
+ created_by_id?: string;
5635
+ /**
5636
+ * Time the PO template was created
5637
+ */
5638
+ created_at: string;
5639
+ /**
5640
+ * Time the PO template was last updated
5641
+ */
5642
+ updated_at: string;
5643
+ };
5644
+ export type ProcurementPoTemplateFieldDefinition = {
5645
+ /**
5646
+ * The id of the field definition
5647
+ */
5648
+ id: string;
5649
+ /**
5650
+ * The PO template version this field belongs to
5651
+ */
5652
+ po_template_version_id: string;
5653
+ /**
5654
+ * Identifier of the company
5655
+ */
5656
+ company_id: string;
5657
+ /**
5658
+ * Section this field belongs to (general_information, vendor_contact, notes_and_delivery, line_item_columns)
5659
+ */
5660
+ section_type: string;
5661
+ /**
5662
+ * Display label for the field
5663
+ */
5664
+ label: string;
5665
+ /**
5666
+ * Data type of the field, driving how its value must be supplied when creating a purchase order. Scalar types: "text", "long_text", "number", "money", "percentage", "date", "boolean". "select" is a closed list — the value must be one of the strings in the "options" array. Reference types point to another Factorial value. Most are supplied as the referenced record's id, resolved via the existing public master-data endpoints: "vendor" -> a Finance vendor/contact, "employee" -> an employee, "team" -> a team, "cost_center" -> a cost center, "project" -> a project, "legal_entity" -> a legal entity, "tax_rate" -> a tax rate. Two are supplied as codes rather than ids: "payment_method" -> a payment-method enum value, and "currency" -> an ISO 4217 currency code.
5667
+ *
5668
+ */
5669
+ field_type: string;
5670
+ /**
5671
+ * Stable machine key identifying the field within its version, unique per version. This is the key used to supply the field's value when creating or updating a purchase order via the API. May be null only for legacy rows created before the key became mandatory.
5672
+ *
5673
+ */
5674
+ field_key?: string;
5675
+ /**
5676
+ * Whether this is a system-predefined field
5677
+ */
5678
+ predefined: boolean;
5679
+ /**
5680
+ * Whether this field is visible in the PO form
5681
+ */
5682
+ visible: boolean;
5683
+ /**
5684
+ * Whether this field is required when filling out a PO
5685
+ */
5686
+ required: boolean;
5687
+ /**
5688
+ * Sort order within the section (0-based)
5689
+ */
5690
+ position: number;
5691
+ /**
5692
+ * Whether this field is auto-calculated
5693
+ */
5694
+ computed: boolean;
5695
+ /**
5696
+ * Whether this field's mandatory flag is locked (cannot be toggled by admins)
5697
+ */
5698
+ locked: boolean;
5699
+ /**
5700
+ * Whether this field appears in the PDF export
5701
+ */
5702
+ visible_in_pdf: boolean;
5703
+ /**
5704
+ * Closed list of allowed values for a "select" field_type (array of strings). Null for every other field_type. When present, a purchase order value for this field must be one of these strings.
5705
+ *
5706
+ */
5707
+ options?: Array<string>;
5708
+ /**
5709
+ * Default value for this field
5710
+ */
5711
+ default_value?: string;
5712
+ /**
5713
+ * When this field definition was created
5714
+ */
5715
+ created_at: string;
5716
+ /**
5717
+ * When this field definition was last updated
5718
+ */
5719
+ updated_at: string;
5720
+ };
5721
+ export type ProcurementPoTemplateVersion = {
5722
+ /**
5723
+ * The id of the PO template version
5724
+ */
5725
+ id: string;
5726
+ /**
5727
+ * The PO template this version belongs to
5728
+ */
5729
+ po_template_id: string;
5730
+ /**
5731
+ * Identifier of the company that owns this version
5732
+ */
5733
+ company_id: string;
5734
+ /**
5735
+ * The sequential version number
5736
+ */
5737
+ version_number: number;
5738
+ /**
5739
+ * The version this was forked from (null for original)
5740
+ */
5741
+ based_on_version_id?: string;
5742
+ /**
5743
+ * Version status (draft, active, archived)
5744
+ */
5745
+ status: string;
5746
+ /**
5747
+ * Employee ID who created this version
5748
+ */
5749
+ created_by_id?: string;
5750
+ /**
5751
+ * Employee ID who published this version (null if not published)
5752
+ */
5753
+ published_by_id?: string;
5754
+ /**
5755
+ * When this version was published (null if not published)
5756
+ */
5757
+ published_at?: string;
5758
+ /**
5759
+ * When this version was created
5760
+ */
5761
+ created_at: string;
5762
+ /**
5763
+ * When this version was last updated
5764
+ */
5765
+ updated_at: string;
5766
+ };
5502
5767
  export type ProcurementPurchaseOrder = {
5503
5768
  /**
5504
5769
  * Unique identifier of the purchase order
@@ -10397,17 +10662,25 @@ export type GetApi20261001ResourcesCompensationsConceptsData = {
10397
10662
  path?: never;
10398
10663
  query?: {
10399
10664
  /**
10400
- * The ids of the concepts
10665
+ * Filter by concept ids
10401
10666
  */
10402
10667
  'ids[]'?: Array<string>;
10403
10668
  /**
10404
- * The categories of the concept
10669
+ * Filter by concept categories
10405
10670
  */
10406
10671
  'categories[]'?: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
10407
10672
  /**
10408
- * Whether to return only active concepts
10673
+ * When true, returns only active concepts
10409
10674
  */
10410
10675
  with_active_status?: boolean;
10676
+ /**
10677
+ * When true, returns active concepts only; when false, only inactive
10678
+ */
10679
+ enabled?: boolean;
10680
+ /**
10681
+ * When true, returns only default concepts
10682
+ */
10683
+ default?: boolean;
10411
10684
  };
10412
10685
  url: '/api/2026-10-01/resources/compensations/concepts';
10413
10686
  };
@@ -10421,11 +10694,45 @@ export type GetApi20261001ResourcesCompensationsConceptsResponses = {
10421
10694
  };
10422
10695
  };
10423
10696
  export type GetApi20261001ResourcesCompensationsConceptsResponse = GetApi20261001ResourcesCompensationsConceptsResponses[keyof GetApi20261001ResourcesCompensationsConceptsResponses];
10697
+ export type PostApi20261001ResourcesCompensationsConceptsData = {
10698
+ body?: {
10699
+ /**
10700
+ * Concept category
10701
+ */
10702
+ category: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
10703
+ /**
10704
+ * Company id that owns the concept
10705
+ */
10706
+ company_id: string;
10707
+ /**
10708
+ * Concept description
10709
+ */
10710
+ description?: string;
10711
+ /**
10712
+ * Display label
10713
+ */
10714
+ label: string;
10715
+ /**
10716
+ * Unit type
10717
+ */
10718
+ unit_type?: 'distance' | 'money' | 'time' | 'unit';
10719
+ };
10720
+ path?: never;
10721
+ query?: never;
10722
+ url: '/api/2026-10-01/resources/compensations/concepts';
10723
+ };
10724
+ export type PostApi20261001ResourcesCompensationsConceptsResponses = {
10725
+ /**
10726
+ * CREATED
10727
+ */
10728
+ 201: CompensationsConcept;
10729
+ };
10730
+ export type PostApi20261001ResourcesCompensationsConceptsResponse = PostApi20261001ResourcesCompensationsConceptsResponses[keyof PostApi20261001ResourcesCompensationsConceptsResponses];
10424
10731
  export type GetApi20261001ResourcesCompensationsConceptsByIdData = {
10425
10732
  body?: never;
10426
10733
  path: {
10427
10734
  /**
10428
- * The ids of the concepts
10735
+ * Filter by concept ids
10429
10736
  */
10430
10737
  id: string;
10431
10738
  };
@@ -10439,6 +10746,187 @@ export type GetApi20261001ResourcesCompensationsConceptsByIdResponses = {
10439
10746
  200: CompensationsConcept;
10440
10747
  };
10441
10748
  export type GetApi20261001ResourcesCompensationsConceptsByIdResponse = GetApi20261001ResourcesCompensationsConceptsByIdResponses[keyof GetApi20261001ResourcesCompensationsConceptsByIdResponses];
10749
+ export type PutApi20261001ResourcesCompensationsConceptsByIdData = {
10750
+ body?: {
10751
+ /**
10752
+ * The identifier of the concept to update
10753
+ */
10754
+ id: string;
10755
+ /**
10756
+ * Concept category (custom concepts only)
10757
+ */
10758
+ category?: 'earnings_fixed_salary' | 'earnings_variable' | 'earnings_benefits_in_kind' | 'earnings_others' | 'deductions' | 'company_contribution' | 'summarized_values';
10759
+ /**
10760
+ * Concept description (custom concepts only)
10761
+ */
10762
+ description?: string;
10763
+ /**
10764
+ * Display label (custom concepts only)
10765
+ */
10766
+ label?: string;
10767
+ /**
10768
+ * Unit type (custom concepts only)
10769
+ */
10770
+ unit_type?: 'distance' | 'money' | 'time' | 'unit';
10771
+ /**
10772
+ * Marks the concept as labor cost (custom concepts only)
10773
+ */
10774
+ labor_cost?: boolean;
10775
+ /**
10776
+ * Activates / deactivates the concept (default and custom concepts)
10777
+ */
10778
+ enabled?: boolean;
10779
+ };
10780
+ path: {
10781
+ /**
10782
+ * The identifier of the concept to update
10783
+ */
10784
+ id: string;
10785
+ };
10786
+ query?: never;
10787
+ url: '/api/2026-10-01/resources/compensations/concepts/{id}';
10788
+ };
10789
+ export type PutApi20261001ResourcesCompensationsConceptsByIdResponses = {
10790
+ /**
10791
+ * OK
10792
+ */
10793
+ 200: CompensationsConcept;
10794
+ };
10795
+ export type PutApi20261001ResourcesCompensationsConceptsByIdResponse = PutApi20261001ResourcesCompensationsConceptsByIdResponses[keyof PutApi20261001ResourcesCompensationsConceptsByIdResponses];
10796
+ export type GetApi20261001ResourcesCompensationsCyclesData = {
10797
+ body?: never;
10798
+ path?: never;
10799
+ query?: {
10800
+ /**
10801
+ * Compensation cycle ids
10802
+ */
10803
+ 'ids[]'?: Array<string>;
10804
+ /**
10805
+ * Filter by single company id
10806
+ */
10807
+ company_id?: string;
10808
+ /**
10809
+ * Filter by company ids
10810
+ */
10811
+ 'company_ids[]'?: Array<string>;
10812
+ /**
10813
+ * Cycle recurrence (e.g. monthly)
10814
+ */
10815
+ recurrence?: string;
10816
+ /**
10817
+ * Cycle currency (ISO-4217)
10818
+ */
10819
+ currency?: string;
10820
+ /**
10821
+ * Cycle country (ISO-3166 alpha-2 lowercase)
10822
+ */
10823
+ country?: string;
10824
+ /**
10825
+ * Include archived cycles in the response
10826
+ */
10827
+ include_archived?: boolean;
10828
+ /**
10829
+ * Include hidden cycles in the response
10830
+ */
10831
+ include_hidden?: boolean;
10832
+ };
10833
+ url: '/api/2026-10-01/resources/compensations/cycles';
10834
+ };
10835
+ export type GetApi20261001ResourcesCompensationsCyclesResponses = {
10836
+ /**
10837
+ * OK
10838
+ */
10839
+ 200: {
10840
+ data?: Array<CompensationsCycle>;
10841
+ meta?: PagedIndexMeta;
10842
+ };
10843
+ };
10844
+ export type GetApi20261001ResourcesCompensationsCyclesResponse = GetApi20261001ResourcesCompensationsCyclesResponses[keyof GetApi20261001ResourcesCompensationsCyclesResponses];
10845
+ export type GetApi20261001ResourcesCompensationsCyclesByIdData = {
10846
+ body?: never;
10847
+ path: {
10848
+ /**
10849
+ * Compensation cycle ids
10850
+ */
10851
+ id: string;
10852
+ };
10853
+ query?: never;
10854
+ url: '/api/2026-10-01/resources/compensations/cycles/{id}';
10855
+ };
10856
+ export type GetApi20261001ResourcesCompensationsCyclesByIdResponses = {
10857
+ /**
10858
+ * OK
10859
+ */
10860
+ 200: CompensationsCycle;
10861
+ };
10862
+ export type GetApi20261001ResourcesCompensationsCyclesByIdResponse = GetApi20261001ResourcesCompensationsCyclesByIdResponses[keyof GetApi20261001ResourcesCompensationsCyclesByIdResponses];
10863
+ export type GetApi20261001ResourcesCompensationsPayrollRunsData = {
10864
+ body?: never;
10865
+ path?: never;
10866
+ query?: {
10867
+ /**
10868
+ * Filter by payroll run ids
10869
+ */
10870
+ 'ids[]'?: Array<string>;
10871
+ /**
10872
+ * Lower bound for the run end date (ends_on >= from)
10873
+ */
10874
+ from?: string;
10875
+ /**
10876
+ * Upper bound for the run start date (starts_on <= to)
10877
+ */
10878
+ to?: string;
10879
+ /**
10880
+ * Filter by company id (single)
10881
+ */
10882
+ company_id?: string;
10883
+ /**
10884
+ * Filter by parent cycle ids
10885
+ */
10886
+ 'cycle_ids[]'?: Array<string>;
10887
+ /**
10888
+ * Filter by run statuses
10889
+ */
10890
+ 'statuses[]'?: Array<string>;
10891
+ /**
10892
+ * Filter by payment types (regular, extra_pay)
10893
+ */
10894
+ 'payment_types[]'?: 'regular' | 'severance' | 'extra_pay' | 'delayed_payment' | 'bonus_benefit' | 'salary_advance' | 'rate_difference';
10895
+ /**
10896
+ * Include hidden cycles' runs in the response
10897
+ */
10898
+ include_hidden?: boolean;
10899
+ };
10900
+ url: '/api/2026-10-01/resources/compensations/payroll_runs';
10901
+ };
10902
+ export type GetApi20261001ResourcesCompensationsPayrollRunsResponses = {
10903
+ /**
10904
+ * OK
10905
+ */
10906
+ 200: {
10907
+ data?: Array<CompensationsPayrollRun>;
10908
+ meta?: PagedIndexMeta;
10909
+ };
10910
+ };
10911
+ export type GetApi20261001ResourcesCompensationsPayrollRunsResponse = GetApi20261001ResourcesCompensationsPayrollRunsResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunsResponses];
10912
+ export type GetApi20261001ResourcesCompensationsPayrollRunsByIdData = {
10913
+ body?: never;
10914
+ path: {
10915
+ /**
10916
+ * Filter by payroll run ids
10917
+ */
10918
+ id: string;
10919
+ };
10920
+ query?: never;
10921
+ url: '/api/2026-10-01/resources/compensations/payroll_runs/{id}';
10922
+ };
10923
+ export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses = {
10924
+ /**
10925
+ * OK
10926
+ */
10927
+ 200: CompensationsPayrollRun;
10928
+ };
10929
+ export type GetApi20261001ResourcesCompensationsPayrollRunsByIdResponse = GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses[keyof GetApi20261001ResourcesCompensationsPayrollRunsByIdResponses];
10442
10930
  export type GetApi20261001ResourcesContractsCompensationsData = {
10443
10931
  body?: never;
10444
10932
  path?: never;
@@ -14203,6 +14691,76 @@ export type GetApi20261001ResourcesFinanceFinancialDocumentsResponses = {
14203
14691
  };
14204
14692
  };
14205
14693
  export type GetApi20261001ResourcesFinanceFinancialDocumentsResponse = GetApi20261001ResourcesFinanceFinancialDocumentsResponses[keyof GetApi20261001ResourcesFinanceFinancialDocumentsResponses];
14694
+ export type PostApi20261001ResourcesFinanceFinancialDocumentsData = {
14695
+ body?: {
14696
+ /**
14697
+ * Company identifier, refers to /api/me endpoint.
14698
+ */
14699
+ company_id: string;
14700
+ /**
14701
+ * Type of the financial document. One of `invoice`, `credit_note`, `receipt`.
14702
+ */
14703
+ document_type: 'invoice' | 'credit_note' | 'receipt';
14704
+ /**
14705
+ * Vendor identifier (Finance contact).
14706
+ */
14707
+ vendor_id?: string;
14708
+ /**
14709
+ * Legal entity identifier of the financial document.
14710
+ */
14711
+ legal_entity_id?: string;
14712
+ /**
14713
+ * Document number. Must be unique per vendor for purchases; a duplicate returns a 422 with a machine-readable invoice_number error.
14714
+ */
14715
+ invoice_number?: string;
14716
+ /**
14717
+ * Document date.
14718
+ */
14719
+ invoice_date?: string;
14720
+ /**
14721
+ * Due date.
14722
+ */
14723
+ due_date?: string;
14724
+ /**
14725
+ * Document currency (ISO 4217).
14726
+ */
14727
+ currency?: string;
14728
+ /**
14729
+ * Total amount in cents. Ignored when line_items are provided, since the line items own the totals.
14730
+ */
14731
+ total_amount_cents?: number;
14732
+ /**
14733
+ * Free-text internal notes about the financial document.
14734
+ */
14735
+ additional_information?: string;
14736
+ /**
14737
+ * For credit notes, the referenced original document by internal id (exposed as parent_financial_document_id to match the read contract). Provide this or original_invoice_number.
14738
+ */
14739
+ parent_financial_document_id?: string;
14740
+ /**
14741
+ * For credit notes, the referenced original document by invoice number (resolved together with the vendor).
14742
+ */
14743
+ original_invoice_number?: string;
14744
+ /**
14745
+ * Purchase-invoice line items. When present they own the document totals.
14746
+ */
14747
+ 'line_items[]'?: Array<unknown>;
14748
+ /**
14749
+ * The document file to upload, the binary file. Required for purchase documents.
14750
+ */
14751
+ file: Blob | File;
14752
+ };
14753
+ path?: never;
14754
+ query?: never;
14755
+ url: '/api/2026-10-01/resources/finance/financial_documents';
14756
+ };
14757
+ export type PostApi20261001ResourcesFinanceFinancialDocumentsResponses = {
14758
+ /**
14759
+ * CREATED
14760
+ */
14761
+ 201: FinanceFinancialDocument;
14762
+ };
14763
+ export type PostApi20261001ResourcesFinanceFinancialDocumentsResponse = PostApi20261001ResourcesFinanceFinancialDocumentsResponses[keyof PostApi20261001ResourcesFinanceFinancialDocumentsResponses];
14206
14764
  export type GetApi20261001ResourcesFinanceFinancialDocumentsByIdData = {
14207
14765
  body?: never;
14208
14766
  path: {
@@ -14782,14 +15340,6 @@ export type GetApi20261001ResourcesIntegrationsSyncRunsData = {
14782
15340
  body?: never;
14783
15341
  path?: never;
14784
15342
  query: {
14785
- /**
14786
- * Identifier of the company
14787
- */
14788
- company_id: string;
14789
- /**
14790
- * UUIDs of the marketplace integrations to filter by
14791
- */
14792
- 'integration_uuids[]': Array<string>;
14793
15343
  /**
14794
15344
  * Filter sync runs by their creation timestamp (`created_at`), on or after this timestamp (inclusive).
14795
15345
  */
@@ -18197,6 +18747,144 @@ export type PutApi20261001ResourcesPostsPostsByIdResponses = {
18197
18747
  200: PostsPost;
18198
18748
  };
18199
18749
  export type PutApi20261001ResourcesPostsPostsByIdResponse = PutApi20261001ResourcesPostsPostsByIdResponses[keyof PutApi20261001ResourcesPostsPostsByIdResponses];
18750
+ export type GetApi20261001ResourcesProcurementPoTemplatesData = {
18751
+ body?: never;
18752
+ path?: never;
18753
+ query?: {
18754
+ /**
18755
+ * An array of PO template IDs to filter by.
18756
+ */
18757
+ 'ids[]'?: Array<string>;
18758
+ };
18759
+ url: '/api/2026-10-01/resources/procurement/po_templates';
18760
+ };
18761
+ export type GetApi20261001ResourcesProcurementPoTemplatesResponses = {
18762
+ /**
18763
+ * OK
18764
+ */
18765
+ 200: {
18766
+ data?: Array<ProcurementPoTemplate>;
18767
+ meta?: PagedIndexMeta;
18768
+ };
18769
+ };
18770
+ export type GetApi20261001ResourcesProcurementPoTemplatesResponse = GetApi20261001ResourcesProcurementPoTemplatesResponses[keyof GetApi20261001ResourcesProcurementPoTemplatesResponses];
18771
+ export type GetApi20261001ResourcesProcurementPoTemplatesByIdData = {
18772
+ body?: never;
18773
+ path: {
18774
+ /**
18775
+ * An array of PO template IDs to filter by.
18776
+ */
18777
+ id: string;
18778
+ };
18779
+ query?: never;
18780
+ url: '/api/2026-10-01/resources/procurement/po_templates/{id}';
18781
+ };
18782
+ export type GetApi20261001ResourcesProcurementPoTemplatesByIdResponses = {
18783
+ /**
18784
+ * OK
18785
+ */
18786
+ 200: ProcurementPoTemplate;
18787
+ };
18788
+ export type GetApi20261001ResourcesProcurementPoTemplatesByIdResponse = GetApi20261001ResourcesProcurementPoTemplatesByIdResponses[keyof GetApi20261001ResourcesProcurementPoTemplatesByIdResponses];
18789
+ export type GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsData = {
18790
+ body?: never;
18791
+ path?: never;
18792
+ query?: {
18793
+ /**
18794
+ * An array of field definition IDs to filter by.
18795
+ */
18796
+ 'ids[]'?: Array<string>;
18797
+ /**
18798
+ * An array of PO template version IDs to filter fields for. This is the primary way to introspect a version's schema: pass the id of the active version (or a historical one) to obtain all its fields.
18799
+ *
18800
+ */
18801
+ 'po_template_version_ids[]'?: Array<string>;
18802
+ /**
18803
+ * Filter by section type. "general_information", "vendor_contact" and "notes_and_delivery" are header-level (one value per PO); "line_item_columns" describes the per-line-item columns.
18804
+ *
18805
+ */
18806
+ 'section_type[]'?: 'general_information' | 'vendor_contact' | 'notes_and_delivery' | 'line_item_columns';
18807
+ };
18808
+ url: '/api/2026-10-01/resources/procurement/po_template_field_definitions';
18809
+ };
18810
+ export type GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsResponses = {
18811
+ /**
18812
+ * OK
18813
+ */
18814
+ 200: {
18815
+ data?: Array<ProcurementPoTemplateFieldDefinition>;
18816
+ meta?: PagedIndexMeta;
18817
+ };
18818
+ };
18819
+ export type GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsResponse = GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsResponses[keyof GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsResponses];
18820
+ export type GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsByIdData = {
18821
+ body?: never;
18822
+ path: {
18823
+ /**
18824
+ * An array of field definition IDs to filter by.
18825
+ */
18826
+ id: string;
18827
+ };
18828
+ query?: never;
18829
+ url: '/api/2026-10-01/resources/procurement/po_template_field_definitions/{id}';
18830
+ };
18831
+ export type GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsByIdResponses = {
18832
+ /**
18833
+ * OK
18834
+ */
18835
+ 200: ProcurementPoTemplateFieldDefinition;
18836
+ };
18837
+ export type GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsByIdResponse = GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsByIdResponses[keyof GetApi20261001ResourcesProcurementPoTemplateFieldDefinitionsByIdResponses];
18838
+ export type GetApi20261001ResourcesProcurementPoTemplateVersionsData = {
18839
+ body?: never;
18840
+ path?: never;
18841
+ query?: {
18842
+ /**
18843
+ * An array of PO template version IDs to filter by. Use the po_template_version_id pinned on a purchase order to retrieve the exact (possibly historical, non-active) schema it was created with.
18844
+ *
18845
+ */
18846
+ 'ids[]'?: Array<string>;
18847
+ /**
18848
+ * An array of PO template IDs to filter versions for.
18849
+ */
18850
+ 'po_template_ids[]'?: Array<string>;
18851
+ /**
18852
+ * Filter by version status. Use "active" to retrieve the single currently-active version of each template (the schema new POs are created against). Other values: "draft", "archived".
18853
+ *
18854
+ */
18855
+ 'status[]'?: 'draft' | 'active' | 'archived';
18856
+ };
18857
+ url: '/api/2026-10-01/resources/procurement/po_template_versions';
18858
+ };
18859
+ export type GetApi20261001ResourcesProcurementPoTemplateVersionsResponses = {
18860
+ /**
18861
+ * OK
18862
+ */
18863
+ 200: {
18864
+ data?: Array<ProcurementPoTemplateVersion>;
18865
+ meta?: PagedIndexMeta;
18866
+ };
18867
+ };
18868
+ export type GetApi20261001ResourcesProcurementPoTemplateVersionsResponse = GetApi20261001ResourcesProcurementPoTemplateVersionsResponses[keyof GetApi20261001ResourcesProcurementPoTemplateVersionsResponses];
18869
+ export type GetApi20261001ResourcesProcurementPoTemplateVersionsByIdData = {
18870
+ body?: never;
18871
+ path: {
18872
+ /**
18873
+ * An array of PO template version IDs to filter by. Use the po_template_version_id pinned on a purchase order to retrieve the exact (possibly historical, non-active) schema it was created with.
18874
+ *
18875
+ */
18876
+ id: string;
18877
+ };
18878
+ query?: never;
18879
+ url: '/api/2026-10-01/resources/procurement/po_template_versions/{id}';
18880
+ };
18881
+ export type GetApi20261001ResourcesProcurementPoTemplateVersionsByIdResponses = {
18882
+ /**
18883
+ * OK
18884
+ */
18885
+ 200: ProcurementPoTemplateVersion;
18886
+ };
18887
+ export type GetApi20261001ResourcesProcurementPoTemplateVersionsByIdResponse = GetApi20261001ResourcesProcurementPoTemplateVersionsByIdResponses[keyof GetApi20261001ResourcesProcurementPoTemplateVersionsByIdResponses];
18200
18888
  export type GetApi20261001ResourcesProcurementPurchaseOrdersData = {
18201
18889
  body?: never;
18202
18890
  path?: never;