diff --git a/.mock/definition/accounting/__package__.yml b/.mock/definition/accounting/__package__.yml index 934343709..048e0080b 100644 --- a/.mock/definition/accounting/__package__.yml +++ b/.mock/definition/accounting/__package__.yml @@ -10,8 +10,8 @@ types: * `LIABILITY` - LIABILITY * `REVENUE` - REVENUE union: - - ClassificationEnum - string + - ClassificationEnum source: openapi: openapi/openapi.yml inline: true @@ -48,8 +48,8 @@ types: * `NON_POSTING` - NON_POSTING union: - - AccountAccountTypeEnum - string + - AccountAccountTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -62,8 +62,8 @@ types: * `PENDING` - PENDING * `INACTIVE` - INACTIVE union: - - AccountStatusEnum - string + - AccountStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -686,8 +686,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -1482,8 +1482,8 @@ types: AccountDetailsCategory: discriminated: false union: - - CategoryEnum - string + - CategoryEnum source: openapi: openapi/openapi.yml inline: true @@ -1539,16 +1539,16 @@ types: AccountDetailsAndActionsCategory: discriminated: false union: - - CategoryEnum - string + - CategoryEnum source: openapi: openapi/openapi.yml inline: true AccountDetailsAndActionsStatus: discriminated: false union: - - AccountDetailsAndActionsStatusEnum - string + - AccountDetailsAndActionsStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -1590,10 +1590,18 @@ types: integration_specific_fields: optional> source: openapi: openapi/openapi.yml + AccountDetailsAndActionsIntegrationCategoriesItem: + discriminated: false + union: + - string + - CategoriesEnum + source: + openapi: openapi/openapi.yml + inline: true AccountDetailsAndActionsIntegration: properties: name: string - categories: list + categories: list> image: optional square_image: optional color: string @@ -1615,6 +1623,14 @@ types: * `IDLE` - IDLE source: openapi: openapi/openapi.yml + AccountIntegrationCategoriesItem: + discriminated: false + union: + - string + - CategoriesEnum + source: + openapi: openapi/openapi.yml + inline: true AccountIntegration: properties: name: @@ -1628,7 +1644,7 @@ types: menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) categories: - type: optional> + type: optional>> docs: >- Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. @@ -1684,8 +1700,8 @@ types: * `LIABILITY` - LIABILITY * `REVENUE` - REVENUE union: - - ClassificationEnum - string + - ClassificationEnum source: openapi: openapi/openapi.yml inline: true @@ -1722,8 +1738,8 @@ types: * `NON_POSTING` - NON_POSTING union: - - AccountAccountTypeEnum - string + - AccountAccountTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -1736,8 +1752,8 @@ types: * `PENDING` - PENDING * `INACTIVE` - INACTIVE union: - - AccountStatusEnum - string + - AccountStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -2360,8 +2376,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -3233,8 +3249,8 @@ types: AccountingPeriodStatus: discriminated: false union: - - Status895Enum - string + - Status895Enum source: openapi: openapi/openapi.yml inline: true @@ -3357,8 +3373,8 @@ types: * `BILLING` - BILLING * `SHIPPING` - SHIPPING union: - - AddressTypeEnum - string + - AddressTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -3617,8 +3633,8 @@ types: * `ZM` - Zambia * `ZW` - Zimbabwe union: - - CountryEnum - string + - CountryEnum source: openapi: openapi/openapi.yml inline: true @@ -3934,8 +3950,8 @@ types: * `BILLING` - BILLING * `SHIPPING` - SHIPPING union: - - AddressTypeEnum - string + - AddressTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -4194,8 +4210,8 @@ types: * `ZM` - Zambia * `ZW` - Zimbabwe union: - - CountryEnum - string + - CountryEnum source: openapi: openapi/openapi.yml inline: true @@ -4531,8 +4547,8 @@ types: AsyncPostTaskStatus: discriminated: false union: - - AsyncPostTaskStatusEnum - string + - AsyncPostTaskStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -4580,8 +4596,8 @@ types: * `MERGE_TEAM` - MERGE_TEAM union: - - RoleEnum - string + - RoleEnum source: openapi: openapi/openapi.yml inline: true @@ -4691,8 +4707,8 @@ types: * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED union: - - EventTypeEnum - string + - EventTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -5487,8 +5503,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -6815,8 +6831,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -6828,8 +6844,8 @@ types: * `ACTIVE` - ACTIVE * `INACTIVE` - INACTIVE union: - - FeedStatusEnum - string + - FeedStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -6841,8 +6857,8 @@ types: * `BANK` - BANK * `CREDIT_CARD` - CREDIT_CARD union: - - BankFeedAccountAccountTypeEnum - string + - BankFeedAccountAccountTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -8190,8 +8206,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -8203,8 +8219,8 @@ types: * `ACTIVE` - ACTIVE * `INACTIVE` - INACTIVE union: - - FeedStatusEnum - string + - FeedStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -8216,8 +8232,8 @@ types: * `BANK` - BANK * `CREDIT_CARD` - CREDIT_CARD union: - - BankFeedAccountAccountTypeEnum - string + - BankFeedAccountAccountTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -8942,8 +8958,8 @@ types: * `CREDIT` - CREDIT * `DEBIT` - DEBIT union: - - CreditOrDebitEnum - string + - CreditOrDebitEnum source: openapi: openapi/openapi.yml inline: true @@ -9057,8 +9073,8 @@ types: * `CREDIT` - CREDIT * `DEBIT` - DEBIT union: - - CreditOrDebitEnum - string + - CreditOrDebitEnum source: openapi: openapi/openapi.yml inline: true @@ -9754,8 +9770,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -11171,8 +11187,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -11889,8 +11905,8 @@ types: * `ACTIVE` - ACTIVE * `ARCHIVED` - ARCHIVED union: - - Status7D1Enum - string + - Status7D1Enum source: openapi: openapi/openapi.yml inline: true @@ -12007,8 +12023,8 @@ types: * `ACTIVE` - ACTIVE * `ARCHIVED` - ARCHIVED union: - - Status7D1Enum - string + - Status7D1Enum source: openapi: openapi/openapi.yml inline: true @@ -12609,8 +12625,8 @@ types: * `AUTHORIZED` - AUTHORIZED * `PAID` - PAID union: - - CreditNoteStatusEnum - string + - CreditNoteStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -12639,10 +12655,10 @@ types: CreditNoteTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -13265,18 +13281,18 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true CreditNotePaymentsItem: discriminated: false union: + - Payment - type: string validation: format: uuid - - Payment source: openapi: openapi/openapi.yml inline: true @@ -14362,7 +14378,7 @@ types: - type: string validation: format: uuid - - Contact + - Project source: openapi: openapi/openapi.yml inline: true @@ -14452,8 +14468,8 @@ types: * `AUTHORIZED` - AUTHORIZED * `PAID` - PAID union: - - CreditNoteStatusEnum - string + - CreditNoteStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -14492,10 +14508,10 @@ types: CreditNoteRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -15118,18 +15134,18 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true CreditNoteRequestPaymentsItem: discriminated: false union: + - Payment - type: string validation: format: uuid - - Payment source: openapi: openapi/openapi.yml inline: true @@ -15886,8 +15902,8 @@ types: DataPassthroughRequestMethod: discriminated: false union: - - MethodEnum - string + - MethodEnum source: openapi: openapi/openapi.yml inline: true @@ -15978,8 +15994,8 @@ types: * `ACTIVE` - ACTIVE * `INACTIVE` - INACTIVE union: - - Status895Enum - string + - Status895Enum source: openapi: openapi/openapi.yml inline: true @@ -16883,8 +16899,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -16913,10 +16929,10 @@ types: ExpenseTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -17676,10 +17692,10 @@ types: ExpenseLineTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -18313,8 +18329,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -19068,10 +19084,10 @@ types: ExpenseLineRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -19705,8 +19721,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -19738,7 +19754,7 @@ types: - type: string validation: format: uuid - - Contact + - Project source: openapi: openapi/openapi.yml inline: true @@ -20438,8 +20454,632 @@ types: * `REJECTED` - REJECTED union: + - string - ExpenseReportStatusEnum + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportCurrency: + discriminated: false + docs: >- + Currency code for the expense report + + + * `XUA` - ADB Unit of Account + + * `AFN` - Afghan Afghani + + * `AFA` - Afghan Afghani (1927–2002) + + * `ALL` - Albanian Lek + + * `ALK` - Albanian Lek (1946–1965) + + * `DZD` - Algerian Dinar + + * `ADP` - Andorran Peseta + + * `AOA` - Angolan Kwanza + + * `AOK` - Angolan Kwanza (1977–1991) + + * `AON` - Angolan New Kwanza (1990–2000) + + * `AOR` - Angolan Readjusted Kwanza (1995–1999) + + * `ARA` - Argentine Austral + + * `ARS` - Argentine Peso + + * `ARM` - Argentine Peso (1881–1970) + + * `ARP` - Argentine Peso (1983–1985) + + * `ARL` - Argentine Peso Ley (1970–1983) + + * `AMD` - Armenian Dram + + * `AWG` - Aruban Florin + + * `AUD` - Australian Dollar + + * `ATS` - Austrian Schilling + + * `AZN` - Azerbaijani Manat + + * `AZM` - Azerbaijani Manat (1993–2006) + + * `BSD` - Bahamian Dollar + + * `BHD` - Bahraini Dinar + + * `BDT` - Bangladeshi Taka + + * `BBD` - Barbadian Dollar + + * `BYN` - Belarusian Ruble + + * `BYB` - Belarusian Ruble (1994–1999) + + * `BYR` - Belarusian Ruble (2000–2016) + + * `BEF` - Belgian Franc + + * `BEC` - Belgian Franc (convertible) + + * `BEL` - Belgian Franc (financial) + + * `BZD` - Belize Dollar + + * `BMD` - Bermudan Dollar + + * `BTN` - Bhutanese Ngultrum + + * `BOB` - Bolivian Boliviano + + * `BOL` - Bolivian Boliviano (1863–1963) + + * `BOV` - Bolivian Mvdol + + * `BOP` - Bolivian Peso + + * `BAM` - Bosnia-Herzegovina Convertible Mark + + * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + + * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + + * `BWP` - Botswanan Pula + + * `BRC` - Brazilian Cruzado (1986–1989) + + * `BRZ` - Brazilian Cruzeiro (1942–1967) + + * `BRE` - Brazilian Cruzeiro (1990–1993) + + * `BRR` - Brazilian Cruzeiro (1993–1994) + + * `BRN` - Brazilian New Cruzado (1989–1990) + + * `BRB` - Brazilian New Cruzeiro (1967–1986) + + * `BRL` - Brazilian Real + + * `GBP` - British Pound + + * `BND` - Brunei Dollar + + * `BGL` - Bulgarian Hard Lev + + * `BGN` - Bulgarian Lev + + * `BGO` - Bulgarian Lev (1879–1952) + + * `BGM` - Bulgarian Socialist Lev + + * `BUK` - Burmese Kyat + + * `BIF` - Burundian Franc + + * `XPF` - CFP Franc + + * `KHR` - Cambodian Riel + + * `CAD` - Canadian Dollar + + * `CVE` - Cape Verdean Escudo + + * `KYD` - Cayman Islands Dollar + + * `XAF` - Central African CFA Franc + + * `CLE` - Chilean Escudo + + * `CLP` - Chilean Peso + + * `CLF` - Chilean Unit of Account (UF) + + * `CNX` - Chinese People’s Bank Dollar + + * `CNY` - Chinese Yuan + + * `CNH` - Chinese Yuan (offshore) + + * `COP` - Colombian Peso + + * `COU` - Colombian Real Value Unit + + * `KMF` - Comorian Franc + + * `CDF` - Congolese Franc + + * `CRC` - Costa Rican Colón + + * `HRD` - Croatian Dinar + + * `HRK` - Croatian Kuna + + * `CUC` - Cuban Convertible Peso + + * `CUP` - Cuban Peso + + * `CYP` - Cypriot Pound + + * `CZK` - Czech Koruna + + * `CSK` - Czechoslovak Hard Koruna + + * `DKK` - Danish Krone + + * `DJF` - Djiboutian Franc + + * `DOP` - Dominican Peso + + * `NLG` - Dutch Guilder + + * `XCD` - East Caribbean Dollar + + * `DDM` - East German Mark + + * `ECS` - Ecuadorian Sucre + + * `ECV` - Ecuadorian Unit of Constant Value + + * `EGP` - Egyptian Pound + + * `GQE` - Equatorial Guinean Ekwele + + * `ERN` - Eritrean Nakfa + + * `EEK` - Estonian Kroon + + * `ETB` - Ethiopian Birr + + * `EUR` - Euro + + * `XBA` - European Composite Unit + + * `XEU` - European Currency Unit + + * `XBB` - European Monetary Unit + + * `XBC` - European Unit of Account (XBC) + + * `XBD` - European Unit of Account (XBD) + + * `FKP` - Falkland Islands Pound + + * `FJD` - Fijian Dollar + + * `FIM` - Finnish Markka + + * `FRF` - French Franc + + * `XFO` - French Gold Franc + + * `XFU` - French UIC-Franc + + * `GMD` - Gambian Dalasi + + * `GEK` - Georgian Kupon Larit + + * `GEL` - Georgian Lari + + * `DEM` - German Mark + + * `GHS` - Ghanaian Cedi + + * `GHC` - Ghanaian Cedi (1979–2007) + + * `GIP` - Gibraltar Pound + + * `XAU` - Gold + + * `GRD` - Greek Drachma + + * `GTQ` - Guatemalan Quetzal + + * `GWP` - Guinea-Bissau Peso + + * `GNF` - Guinean Franc + + * `GNS` - Guinean Syli + + * `GYD` - Guyanaese Dollar + + * `HTG` - Haitian Gourde + + * `HNL` - Honduran Lempira + + * `HKD` - Hong Kong Dollar + + * `HUF` - Hungarian Forint + + * `IMP` - IMP + + * `ISK` - Icelandic Króna + + * `ISJ` - Icelandic Króna (1918–1981) + + * `INR` - Indian Rupee + + * `IDR` - Indonesian Rupiah + + * `IRR` - Iranian Rial + + * `IQD` - Iraqi Dinar + + * `IEP` - Irish Pound + + * `ILS` - Israeli New Shekel + + * `ILP` - Israeli Pound + + * `ILR` - Israeli Shekel (1980–1985) + + * `ITL` - Italian Lira + + * `JMD` - Jamaican Dollar + + * `JPY` - Japanese Yen + + * `JOD` - Jordanian Dinar + + * `KZT` - Kazakhstani Tenge + + * `KES` - Kenyan Shilling + + * `KWD` - Kuwaiti Dinar + + * `KGS` - Kyrgystani Som + + * `LAK` - Laotian Kip + + * `LVL` - Latvian Lats + + * `LVR` - Latvian Ruble + + * `LBP` - Lebanese Pound + + * `LSL` - Lesotho Loti + + * `LRD` - Liberian Dollar + + * `LYD` - Libyan Dinar + + * `LTL` - Lithuanian Litas + + * `LTT` - Lithuanian Talonas + + * `LUL` - Luxembourg Financial Franc + + * `LUC` - Luxembourgian Convertible Franc + + * `LUF` - Luxembourgian Franc + + * `MOP` - Macanese Pataca + + * `MKD` - Macedonian Denar + + * `MKN` - Macedonian Denar (1992–1993) + + * `MGA` - Malagasy Ariary + + * `MGF` - Malagasy Franc + + * `MWK` - Malawian Kwacha + + * `MYR` - Malaysian Ringgit + + * `MVR` - Maldivian Rufiyaa + + * `MVP` - Maldivian Rupee (1947–1981) + + * `MLF` - Malian Franc + + * `MTL` - Maltese Lira + + * `MTP` - Maltese Pound + + * `MRU` - Mauritanian Ouguiya + + * `MRO` - Mauritanian Ouguiya (1973–2017) + + * `MUR` - Mauritian Rupee + + * `MXV` - Mexican Investment Unit + + * `MXN` - Mexican Peso + + * `MXP` - Mexican Silver Peso (1861–1992) + + * `MDC` - Moldovan Cupon + + * `MDL` - Moldovan Leu + + * `MCF` - Monegasque Franc + + * `MNT` - Mongolian Tugrik + + * `MAD` - Moroccan Dirham + + * `MAF` - Moroccan Franc + + * `MZE` - Mozambican Escudo + + * `MZN` - Mozambican Metical + + * `MZM` - Mozambican Metical (1980–2006) + + * `MMK` - Myanmar Kyat + + * `NAD` - Namibian Dollar + + * `NPR` - Nepalese Rupee + + * `ANG` - Netherlands Antillean Guilder + + * `TWD` - New Taiwan Dollar + + * `NZD` - New Zealand Dollar + + * `NIO` - Nicaraguan Córdoba + + * `NIC` - Nicaraguan Córdoba (1988–1991) + + * `NGN` - Nigerian Naira + + * `KPW` - North Korean Won + + * `NOK` - Norwegian Krone + + * `OMR` - Omani Rial + + * `PKR` - Pakistani Rupee + + * `XPD` - Palladium + + * `PAB` - Panamanian Balboa + + * `PGK` - Papua New Guinean Kina + + * `PYG` - Paraguayan Guarani + + * `PEI` - Peruvian Inti + + * `PEN` - Peruvian Sol + + * `PES` - Peruvian Sol (1863–1965) + + * `PHP` - Philippine Peso + + * `XPT` - Platinum + + * `PLN` - Polish Zloty + + * `PLZ` - Polish Zloty (1950–1995) + + * `PTE` - Portuguese Escudo + + * `GWE` - Portuguese Guinea Escudo + + * `QAR` - Qatari Rial + + * `XRE` - RINET Funds + + * `RHD` - Rhodesian Dollar + + * `RON` - Romanian Leu + + * `ROL` - Romanian Leu (1952–2006) + + * `RUB` - Russian Ruble + + * `RUR` - Russian Ruble (1991–1998) + + * `RWF` - Rwandan Franc + + * `SVC` - Salvadoran Colón + + * `WST` - Samoan Tala + + * `SAR` - Saudi Riyal + + * `RSD` - Serbian Dinar + + * `CSD` - Serbian Dinar (2002–2006) + + * `SCR` - Seychellois Rupee + + * `SLL` - Sierra Leonean Leone + + * `XAG` - Silver + + * `SGD` - Singapore Dollar + + * `SKK` - Slovak Koruna + + * `SIT` - Slovenian Tolar + + * `SBD` - Solomon Islands Dollar + + * `SOS` - Somali Shilling + + * `ZAR` - South African Rand + + * `ZAL` - South African Rand (financial) + + * `KRH` - South Korean Hwan (1953–1962) + + * `KRW` - South Korean Won + + * `KRO` - South Korean Won (1945–1953) + + * `SSP` - South Sudanese Pound + + * `SUR` - Soviet Rouble + + * `ESP` - Spanish Peseta + + * `ESA` - Spanish Peseta (A account) + + * `ESB` - Spanish Peseta (convertible account) + + * `XDR` - Special Drawing Rights + + * `LKR` - Sri Lankan Rupee + + * `SHP` - St. Helena Pound + + * `XSU` - Sucre + + * `SDD` - Sudanese Dinar (1992–2007) + + * `SDG` - Sudanese Pound + + * `SDP` - Sudanese Pound (1957–1998) + + * `SRD` - Surinamese Dollar + + * `SRG` - Surinamese Guilder + + * `SZL` - Swazi Lilangeni + + * `SEK` - Swedish Krona + + * `CHF` - Swiss Franc + + * `SYP` - Syrian Pound + + * `STN` - São Tomé & Príncipe Dobra + + * `STD` - São Tomé & Príncipe Dobra (1977–2017) + + * `TVD` - TVD + + * `TJR` - Tajikistani Ruble + + * `TJS` - Tajikistani Somoni + + * `TZS` - Tanzanian Shilling + + * `XTS` - Testing Currency Code + + * `THB` - Thai Baht + + * `XXX` - The codes assigned for transactions where no currency is + involved + + * `TPE` - Timorese Escudo + + * `TOP` - Tongan Paʻanga + + * `TTD` - Trinidad & Tobago Dollar + + * `TND` - Tunisian Dinar + + * `TRY` - Turkish Lira + + * `TRL` - Turkish Lira (1922–2005) + + * `TMT` - Turkmenistani Manat + + * `TMM` - Turkmenistani Manat (1993–2009) + + * `USD` - US Dollar + + * `USN` - US Dollar (Next day) + + * `USS` - US Dollar (Same day) + + * `UGX` - Ugandan Shilling + + * `UGS` - Ugandan Shilling (1966–1987) + + * `UAH` - Ukrainian Hryvnia + + * `UAK` - Ukrainian Karbovanets + + * `AED` - United Arab Emirates Dirham + + * `UYW` - Uruguayan Nominal Wage Index Unit + + * `UYU` - Uruguayan Peso + + * `UYP` - Uruguayan Peso (1975–1993) + + * `UYI` - Uruguayan Peso (Indexed Units) + + * `UZS` - Uzbekistani Som + + * `VUV` - Vanuatu Vatu + + * `VES` - Venezuelan Bolívar + + * `VEB` - Venezuelan Bolívar (1871–2008) + + * `VEF` - Venezuelan Bolívar (2008–2018) + + * `VND` - Vietnamese Dong + + * `VNN` - Vietnamese Dong (1978–1985) + + * `CHE` - WIR Euro + + * `CHW` - WIR Franc + + * `XOF` - West African CFA Franc + + * `YDD` - Yemeni Dinar + + * `YER` - Yemeni Rial + + * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + + * `YUD` - Yugoslavian Hard Dinar (1966–1990) + + * `YUM` - Yugoslavian New Dinar (1994–2002) + + * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + + * `ZWN` - ZWN + + * `ZRN` - Zairean New Zaire (1993–1998) + + * `ZRZ` - Zairean Zaire (1971–1993) + + * `ZMW` - Zambian Kwacha + + * `ZMK` - Zambian Kwacha (1968–2012) + + * `ZWD` - Zimbabwean Dollar (1980–2008) + + * `ZWR` - Zimbabwean Dollar (2008) + + * `ZWL` - Zimbabwean Dollar (2009) + union: - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -20524,7 +21164,7 @@ types: type: optional> access: read-only currency: - type: optional + type: optional docs: >- Currency code for the expense report @@ -24113,8 +24753,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -24143,10 +24783,10 @@ types: ExpenseRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -25870,8 +26510,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -26494,8 +27134,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -28444,8 +29084,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -29848,8 +30488,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -31377,8 +32017,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -32780,8 +33420,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -32818,10 +33458,10 @@ types: InvoiceLineItemRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -33525,8 +34165,8 @@ types: * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE union: - - InvoiceTypeEnum - string + - InvoiceTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -33564,8 +34204,8 @@ types: * `OPEN` - OPEN * `VOID` - VOID union: - - InvoiceStatusEnum - string + - InvoiceStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -34199,8 +34839,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -34218,30 +34858,30 @@ types: InvoiceRequestPaymentsItem: discriminated: false union: + - Payment - type: string validation: format: uuid - - Payment source: openapi: openapi/openapi.yml inline: true InvoiceRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true InvoiceRequestPurchaseOrdersItem: discriminated: false union: + - PurchaseOrder - type: string validation: format: uuid - - PurchaseOrder source: openapi: openapi/openapi.yml inline: true @@ -35015,8 +35655,8 @@ types: * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED union: - - IssueStatusEnum - string + - IssueStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -35065,8 +35705,8 @@ types: * `ACTIVE` - ACTIVE * `ARCHIVED` - ARCHIVED union: - - Status7D1Enum - string + - Status7D1Enum source: openapi: openapi/openapi.yml inline: true @@ -35080,8 +35720,8 @@ types: * `SERVICE` - SERVICE * `UNKNOWN` - UNKNOWN union: - - Type2BbEnum - string + - Type2BbEnum source: openapi: openapi/openapi.yml inline: true @@ -35250,8 +35890,8 @@ types: * `ACTIVE` - ACTIVE * `ARCHIVED` - ARCHIVED union: - - Status7D1Enum - string + - Status7D1Enum source: openapi: openapi/openapi.yml inline: true @@ -35265,8 +35905,8 @@ types: * `SERVICE` - SERVICE * `UNKNOWN` - UNKNOWN union: - - Type2BbEnum - string + - Type2BbEnum source: openapi: openapi/openapi.yml inline: true @@ -35417,10 +36057,10 @@ types: JournalEntryPaymentsItem: discriminated: false union: + - Payment - type: string validation: format: uuid - - Payment source: openapi: openapi/openapi.yml inline: true @@ -36053,8 +36693,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -36072,10 +36712,10 @@ types: JournalEntryTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -36087,8 +36727,8 @@ types: * `UNPOSTED` - UNPOSTED * `POSTED` - POSTED union: - - PostingStatusEnum - string + - PostingStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -36837,10 +37477,10 @@ types: JournalEntryRequestPaymentsItem: discriminated: false union: + - Payment - type: string validation: format: uuid - - Payment source: openapi: openapi/openapi.yml inline: true @@ -37463,8 +38103,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -37482,10 +38122,10 @@ types: JournalEntryRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -37497,8 +38137,8 @@ types: * `UNPOSTED` - UNPOSTED * `POSTED` - POSTED union: - - PostingStatusEnum - string + - PostingStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -38214,10 +38854,10 @@ types: JournalLineTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -38840,8 +39480,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -39578,10 +40218,10 @@ types: JournalLineRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -40204,8 +40844,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -41024,8 +41664,8 @@ types: * `BASE64` - BASE64 * `GZIP_BASE64` - GZIP_BASE64 union: - - EncodingEnum - string + - EncodingEnum source: openapi: openapi/openapi.yml inline: true @@ -41304,6 +41944,19 @@ types: results: optional> source: openapi: openapi/openapi.yml + PatchedContactRequestStatus: + discriminated: false + docs: |- + The contact's status + + * `ACTIVE` - ACTIVE + * `ARCHIVED` - ARCHIVED + union: + - string + - Status7D1Enum + source: + openapi: openapi/openapi.yml + inline: true PatchedContactRequestAddressesItem: discriminated: false union: @@ -41350,7 +42003,7 @@ types: type: optional docs: The contact's tax number. status: - type: optional + type: optional docs: |- The contact's status @@ -41389,8 +42042,8 @@ types: * `ACTIVE` - ACTIVE * `ARCHIVED` - ARCHIVED union: - - Status7D1Enum - string + - Status7D1Enum source: openapi: openapi/openapi.yml inline: true @@ -41404,8 +42057,8 @@ types: * `SERVICE` - SERVICE * `UNKNOWN` - UNKNOWN union: - - Type2BbEnum - string + - Type2BbEnum source: openapi: openapi/openapi.yml inline: true @@ -42128,8 +42781,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -42152,8 +42805,8 @@ types: * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE union: - - PaymentTypeEnum - string + - PaymentTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -43522,8 +44175,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -43546,18 +44199,18 @@ types: * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE union: - - PaymentTypeEnum - string + - PaymentTypeEnum source: openapi: openapi/openapi.yml inline: true PaymentTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -44409,8 +45062,8 @@ types: * `CASH` - CASH * `CHECK` - CHECK union: - - MethodTypeEnum - string + - MethodTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -44446,7 +45099,7 @@ types: docs: The datetime that this object was modified by Merge. access: read-only method_type: - type: PaymentMethodMethodType + type: optional docs: |- The type of the payment method. @@ -45126,8 +45779,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -45150,18 +45803,18 @@ types: * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE union: - - PaymentTypeEnum - string + - PaymentTypeEnum source: openapi: openapi/openapi.yml inline: true PaymentRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -46061,8 +46714,8 @@ types: * `BILLED` - BILLED * `DELETED` - DELETED union: - - PurchaseOrderStatusEnum - string + - PurchaseOrderStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -46718,8 +47371,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -46737,10 +47390,10 @@ types: PurchaseOrderTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -48128,8 +48781,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -49474,8 +50127,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -50186,8 +50839,8 @@ types: * `BILLED` - BILLED * `DELETED` - DELETED union: - - PurchaseOrderStatusEnum - string + - PurchaseOrderStatusEnum source: openapi: openapi/openapi.yml inline: true @@ -50854,18 +51507,18 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true PurchaseOrderRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -51662,6 +52315,7 @@ types: CreditNote: optional> Item: optional> PurchaseOrder: optional> + ExpenseReport: optional> TrackingCategory: optional> JournalEntry: optional> TaxRate: optional> @@ -51885,8 +52539,8 @@ types: SyncStatusStatus: discriminated: false union: - - StatusFd5Enum - string + - StatusFd5Enum source: openapi: openapi/openapi.yml inline: true @@ -51927,8 +52581,8 @@ types: * `PURCHASE` - PURCHASE union: - - ComponentTypeEnum - string + - ComponentTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -52021,8 +52675,8 @@ types: * `ARCHIVED` - ARCHIVED union: - - Status7D1Enum - string + - Status7D1Enum source: openapi: openapi/openapi.yml inline: true @@ -52137,8 +52791,8 @@ types: * `ACTIVE` - ACTIVE * `ARCHIVED` - ARCHIVED union: - - Status7D1Enum - string + - Status7D1Enum source: openapi: openapi/openapi.yml inline: true @@ -52150,8 +52804,8 @@ types: * `CLASS` - CLASS * `DEPARTMENT` - DEPARTMENT union: - - CategoryTypeEnum - string + - CategoryTypeEnum source: openapi: openapi/openapi.yml inline: true @@ -52878,8 +53532,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -55182,8 +55836,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -56564,8 +57218,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -56583,10 +57237,10 @@ types: VendorCreditTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true @@ -58293,8 +58947,8 @@ types: * `ZWL` - Zimbabwean Dollar (2009) union: - - TransactionCurrencyEnum - string + - TransactionCurrencyEnum source: openapi: openapi/openapi.yml inline: true @@ -58312,10 +58966,10 @@ types: VendorCreditRequestTrackingCategoriesItem: discriminated: false union: + - TrackingCategory - type: string validation: format: uuid - - TrackingCategory source: openapi: openapi/openapi.yml inline: true diff --git a/.mock/definition/accounting/accountDetails.yml b/.mock/definition/accounting/accountDetails.yml index 300d24e09..95229ddb4 100644 --- a/.mock/definition/accounting/accountDetails.yml +++ b/.mock/definition/accounting/accountDetails.yml @@ -23,7 +23,7 @@ service: id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd integration: BambooHR integration_slug: bamboohr - category: hris + category: category end_user_origin_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 end_user_organization_name: Waystar Royco end_user_email_address: kendall.roy@waystar-royco.com diff --git a/.mock/definition/accounting/accountToken.yml b/.mock/definition/accounting/accountToken.yml index 0f3134f8d..2effedae7 100644 --- a/.mock/definition/accounting/accountToken.yml +++ b/.mock/definition/accounting/accountToken.yml @@ -31,7 +31,7 @@ service: name: name abbreviated_name: abbreviated_name categories: - - hris + - categories image: image square_image: square_image color: color diff --git a/.mock/definition/accounting/accountingPeriods.yml b/.mock/definition/accounting/accountingPeriods.yml index 4adc5e1ba..38c3957bc 100644 --- a/.mock/definition/accounting/accountingPeriods.yml +++ b/.mock/definition/accounting/accountingPeriods.yml @@ -57,7 +57,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: April 2020 Financials - status: ACTIVE + status: status start_date: '2020-03-31T00:00:00Z' end_date: '2020-05-01T00:00:00Z' field_mappings: @@ -107,7 +107,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: April 2020 Financials - status: ACTIVE + status: status start_date: '2020-03-31T00:00:00Z' end_date: '2020-05-01T00:00:00Z' field_mappings: diff --git a/.mock/definition/accounting/accounts.yml b/.mock/definition/accounting/accounts.yml index 7f5c1aac6..a8a5d7350 100644 --- a/.mock/definition/accounting/accounts.yml +++ b/.mock/definition/accounting/accounts.yml @@ -142,12 +142,12 @@ service: modified_at: '2021-10-16T00:00:00Z' name: Cash description: Cash - classification: ASSET + classification: classification type: Asset - account_type: BANK - status: ACTIVE + account_type: account_type + status: status current_balance: 1.1 - currency: XUA + currency: currency account_number: X12Y9AB parent_account: 22d92d6c-22f9-11ed-861d-0242ac120002 company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 @@ -201,12 +201,12 @@ service: modified_at: '2021-10-16T00:00:00Z' name: Cash description: Cash - classification: ASSET + classification: classification type: Asset - account_type: BANK - status: ACTIVE + account_type: account_type + status: status current_balance: 1.1 - currency: XUA + currency: currency account_number: X12Y9AB parent_account: 22d92d6c-22f9-11ed-861d-0242ac120002 company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 @@ -294,12 +294,12 @@ service: modified_at: '2021-10-16T00:00:00Z' name: Cash description: Cash - classification: ASSET + classification: classification type: Asset - account_type: BANK - status: ACTIVE + account_type: account_type + status: status current_balance: 1.1 - currency: XUA + currency: currency account_number: X12Y9AB parent_account: 22d92d6c-22f9-11ed-861d-0242ac120002 company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 diff --git a/.mock/definition/accounting/addresses.yml b/.mock/definition/accounting/addresses.yml index c8ae76263..6f06eabc1 100644 --- a/.mock/definition/accounting/addresses.yml +++ b/.mock/definition/accounting/addresses.yml @@ -49,14 +49,14 @@ service: body: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - type: BILLING + type: type street_1: 2920 Broadway street_2: 2nd Floor city: New York state: key: value country_subdivision: NY - country: AF + country: country zip_code: '10027' source: openapi: openapi/openapi.yml diff --git a/.mock/definition/accounting/asyncPassthrough.yml b/.mock/definition/accounting/asyncPassthrough.yml index 2a665ed2e..c04fda001 100644 --- a/.mock/definition/accounting/asyncPassthrough.yml +++ b/.mock/definition/accounting/asyncPassthrough.yml @@ -24,7 +24,7 @@ service: - headers: X-Account-Token: X-Account-Token request: - method: GET + method: method path: /scooters response: body: diff --git a/.mock/definition/accounting/asyncTasks.yml b/.mock/definition/accounting/asyncTasks.yml index ae58d9982..5c9caa940 100644 --- a/.mock/definition/accounting/asyncTasks.yml +++ b/.mock/definition/accounting/asyncTasks.yml @@ -24,7 +24,7 @@ service: X-Account-Token: X-Account-Token response: body: - status: QUEUED + status: status result: status_code: 201 response: diff --git a/.mock/definition/accounting/auditTrail.yml b/.mock/definition/accounting/auditTrail.yml index 0dcfb0861..1d07ac07d 100644 --- a/.mock/definition/accounting/auditTrail.yml +++ b/.mock/definition/accounting/auditTrail.yml @@ -87,9 +87,9 @@ service: - id: b5ceea2a-7171-47ce-8090-165cfce5572c user_name: Gil Feig user_email: hello@merge.dev - role: ADMIN + role: role ip_address: 192.0.2.123 - event_type: CREATED_REMOTE_PRODUCTION_API_KEY + event_type: event_type event_description: >- Organization-wide Scopes for model hris.Employee updated from Read to Read+Write diff --git a/.mock/definition/accounting/availableActions.yml b/.mock/definition/accounting/availableActions.yml index e7a930def..f24f3598a 100644 --- a/.mock/definition/accounting/availableActions.yml +++ b/.mock/definition/accounting/availableActions.yml @@ -24,7 +24,7 @@ service: name: name abbreviated_name: abbreviated_name categories: - - hris + - categories image: image square_image: square_image color: color diff --git a/.mock/definition/accounting/balanceSheets.yml b/.mock/definition/accounting/balanceSheets.yml index 28152b37e..6006ead8b 100644 --- a/.mock/definition/accounting/balanceSheets.yml +++ b/.mock/definition/accounting/balanceSheets.yml @@ -86,7 +86,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: BalanceSheet - currency: XUA + currency: currency company: company date: '2021-10-01T00:00:00Z' net_assets: 1000 @@ -181,7 +181,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: BalanceSheet - currency: XUA + currency: currency company: company date: '2021-10-01T00:00:00Z' net_assets: 1000 diff --git a/.mock/definition/accounting/bankFeedAccounts.yml b/.mock/definition/accounting/bankFeedAccounts.yml index a5d6ed067..79129a4bf 100644 --- a/.mock/definition/accounting/bankFeedAccounts.yml +++ b/.mock/definition/accounting/bankFeedAccounts.yml @@ -61,11 +61,11 @@ service: source_account_name: Travel Bank Account source_account_number: '12567' target_account_name: Netsuite Travel Bank Account - currency: XUA - feed_status: ACTIVE + currency: currency + feed_status: feed_status feed_start_date: '2024-02-02T00:00:00Z' source_account_balance: 123.94 - account_type: BANK + account_type: account_type remote_was_deleted: true field_mappings: organization_defined_targets: @@ -115,11 +115,11 @@ service: source_account_name: Travel Bank Account source_account_number: '12567' target_account_name: Netsuite Travel Bank Account - currency: XUA - feed_status: ACTIVE + currency: currency + feed_status: feed_status feed_start_date: '2024-02-02T00:00:00Z' source_account_balance: 123.94 - account_type: BANK + account_type: account_type remote_was_deleted: true field_mappings: organization_defined_targets: @@ -190,11 +190,11 @@ service: source_account_name: Travel Bank Account source_account_number: '12567' target_account_name: Netsuite Travel Bank Account - currency: XUA - feed_status: ACTIVE + currency: currency + feed_status: feed_status feed_start_date: '2024-02-02T00:00:00Z' source_account_balance: 123.94 - account_type: BANK + account_type: account_type remote_was_deleted: true field_mappings: organization_defined_targets: diff --git a/.mock/definition/accounting/bankFeedTransactions.yml b/.mock/definition/accounting/bankFeedTransactions.yml index 7a1d41c9e..15fd94347 100644 --- a/.mock/definition/accounting/bankFeedTransactions.yml +++ b/.mock/definition/accounting/bankFeedTransactions.yml @@ -94,7 +94,7 @@ service: description: Lunch expense transaction_type: payment payee: Elmo's diner - credit_or_debit: CREDIT + credit_or_debit: credit_or_debit source_transaction_id: '124569' remote_was_deleted: true is_processed: true @@ -143,7 +143,7 @@ service: description: Lunch expense transaction_type: payment payee: Elmo's diner - credit_or_debit: CREDIT + credit_or_debit: credit_or_debit source_transaction_id: '124569' remote_was_deleted: true is_processed: true @@ -216,7 +216,7 @@ service: description: Lunch expense transaction_type: payment payee: Elmo's diner - credit_or_debit: CREDIT + credit_or_debit: credit_or_debit source_transaction_id: '124569' remote_was_deleted: true is_processed: true diff --git a/.mock/definition/accounting/cashFlowStatements.yml b/.mock/definition/accounting/cashFlowStatements.yml index 2db3914f7..55c4c142a 100644 --- a/.mock/definition/accounting/cashFlowStatements.yml +++ b/.mock/definition/accounting/cashFlowStatements.yml @@ -88,7 +88,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: CashFlow - currency: XUA + currency: currency company: company start_period: '2020-01-01T00:00:00Z' end_period: '2020-03-31T00:00:00Z' @@ -182,7 +182,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: CashFlow - currency: XUA + currency: currency company: company start_period: '2020-01-01T00:00:00Z' end_period: '2020-03-31T00:00:00Z' diff --git a/.mock/definition/accounting/companyInfo.yml b/.mock/definition/accounting/companyInfo.yml index 339533064..5d364078a 100644 --- a/.mock/definition/accounting/companyInfo.yml +++ b/.mock/definition/accounting/companyInfo.yml @@ -104,7 +104,7 @@ service: tax_number: 11-0011000 fiscal_year_end_month: 12 fiscal_year_end_day: 31 - currency: XUA + currency: currency remote_created_at: '2020-03-31T00:00:00Z' addresses: - created_at: '2021-09-15T00:00:00Z' @@ -175,14 +175,14 @@ service: tax_number: 11-0011000 fiscal_year_end_month: 12 fiscal_year_end_day: 31 - currency: XUA + currency: currency remote_created_at: '2020-03-31T00:00:00Z' urls: - urls addresses: - created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - type: BILLING + type: type street_1: 2920 Broadway street_2: 2nd Floor city: New York diff --git a/.mock/definition/accounting/contacts.yml b/.mock/definition/accounting/contacts.yml index c03c58805..e4e9589cb 100644 --- a/.mock/definition/accounting/contacts.yml +++ b/.mock/definition/accounting/contacts.yml @@ -155,7 +155,7 @@ service: is_customer: true email_address: pickleball@merge.dev tax_number: 12-3456789 - status: ACTIVE + status: status currency: USD remote_updated_at: '2020-03-31T00:00:00Z' company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 @@ -222,7 +222,7 @@ service: is_customer: true email_address: pickleball@merge.dev tax_number: 12-3456789 - status: ACTIVE + status: status currency: USD remote_updated_at: '2020-03-31T00:00:00Z' company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 @@ -328,7 +328,7 @@ service: is_customer: true email_address: pickleball@merge.dev tax_number: 12-3456789 - status: ACTIVE + status: status currency: USD remote_updated_at: '2020-03-31T00:00:00Z' company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 @@ -401,7 +401,7 @@ service: is_customer: true email_address: pickleball@merge.dev tax_number: 12-3456789 - status: ACTIVE + status: status currency: USD remote_updated_at: '2020-03-31T00:00:00Z' company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 diff --git a/.mock/definition/accounting/creditNotes.yml b/.mock/definition/accounting/creditNotes.yml index 880ab2477..b5c55bfc1 100644 --- a/.mock/definition/accounting/creditNotes.yml +++ b/.mock/definition/accounting/creditNotes.yml @@ -673,7 +673,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' transaction_date: '2020-03-31T00:00:00Z' - status: SUBMITTED + status: status number: CN-29 contact: contact company: company @@ -707,7 +707,7 @@ service: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 - a47e11b6-c73b-4a0c-be31-130fc48177fa - currency: XUA + currency: currency remote_created_at: '2020-03-31T00:00:00Z' remote_updated_at: '2020-03-31T00:00:00Z' payments: @@ -770,7 +770,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' transaction_date: '2020-03-31T00:00:00Z' - status: SUBMITTED + status: status number: CN-29 contact: contact company: company @@ -804,7 +804,7 @@ service: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 - a47e11b6-c73b-4a0c-be31-130fc48177fa - currency: XUA + currency: currency remote_created_at: '2020-03-31T00:00:00Z' remote_updated_at: '2020-03-31T00:00:00Z' payments: @@ -901,7 +901,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' transaction_date: '2020-03-31T00:00:00Z' - status: SUBMITTED + status: status number: CN-29 contact: contact company: company @@ -935,7 +935,7 @@ service: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 - a47e11b6-c73b-4a0c-be31-130fc48177fa - currency: XUA + currency: currency remote_created_at: '2020-03-31T00:00:00Z' remote_updated_at: '2020-03-31T00:00:00Z' payments: diff --git a/.mock/definition/accounting/employees.yml b/.mock/definition/accounting/employees.yml index d77b43e34..27d63b778 100644 --- a/.mock/definition/accounting/employees.yml +++ b/.mock/definition/accounting/employees.yml @@ -91,7 +91,7 @@ service: employee_number: '325462' email_address: johnsmith@merge.dev company: company - status: ACTIVE + status: status remote_was_deleted: true field_mappings: organization_defined_targets: @@ -150,7 +150,7 @@ service: employee_number: '325462' email_address: johnsmith@merge.dev company: company - status: ACTIVE + status: status remote_was_deleted: true field_mappings: organization_defined_targets: diff --git a/.mock/definition/accounting/expenseReports.yml b/.mock/definition/accounting/expenseReports.yml index 66977e4f4..f09613d02 100644 --- a/.mock/definition/accounting/expenseReports.yml +++ b/.mock/definition/accounting/expenseReports.yml @@ -278,7 +278,7 @@ service: report_date: '2024-01-31T00:00:00Z' report_identifier: EXP-2024-001 employee: b9a9b824-6172-4d63-9d90-1c8a86c4f3b1 - status: DRAFT + status: status total_amount: 150 lines: - id: '1234' @@ -306,7 +306,7 @@ service: inclusive_of_tax: false tax_rate: tax-1234 remote_was_deleted: false - currency: XUA + currency: currency description: January 2024 Travel Expenses accounting_period: 7d793c67-9f72-4a6b-9256-3936f237b0d9 company: company @@ -369,7 +369,7 @@ service: report_date: '2024-01-31T00:00:00Z' report_identifier: EXP-2024-001 employee: b9a9b824-6172-4d63-9d90-1c8a86c4f3b1 - status: DRAFT + status: status total_amount: 150 lines: - id: '1234' @@ -397,7 +397,7 @@ service: inclusive_of_tax: false tax_rate: tax-1234 remote_was_deleted: false - currency: XUA + currency: currency description: January 2024 Travel Expenses accounting_period: 7d793c67-9f72-4a6b-9256-3936f237b0d9 company: company @@ -577,7 +577,7 @@ service: report_date: '2024-01-31T00:00:00Z' report_identifier: EXP-2024-001 employee: b9a9b824-6172-4d63-9d90-1c8a86c4f3b1 - status: DRAFT + status: status total_amount: 150 lines: - id: '1234' @@ -607,7 +607,7 @@ service: remote_was_deleted: false remote_fields: - remote_field_class: remote_field_class - currency: XUA + currency: currency description: January 2024 Travel Expenses accounting_period: 7d793c67-9f72-4a6b-9256-3936f237b0d9 company: company diff --git a/.mock/definition/accounting/expenses.yml b/.mock/definition/accounting/expenses.yml index 4a409f715..40c5a7887 100644 --- a/.mock/definition/accounting/expenses.yml +++ b/.mock/definition/accounting/expenses.yml @@ -354,7 +354,7 @@ service: total_amount: 10000 sub_total: 1.1 total_tax_amount: 1.1 - currency: XUA + currency: currency exchange_rate: '2.9' inclusive_of_tax: true company: company @@ -454,7 +454,7 @@ service: total_amount: 10000 sub_total: 1.1 total_tax_amount: 1.1 - currency: XUA + currency: currency exchange_rate: '2.9' inclusive_of_tax: true company: company @@ -583,7 +583,7 @@ service: total_amount: 10000 sub_total: 1.1 total_tax_amount: 1.1 - currency: XUA + currency: currency exchange_rate: '2.9' inclusive_of_tax: true company: company @@ -602,7 +602,7 @@ service: - a47e11b6-c73b-4a0c-be31-130fc48177fa company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 employee: 7442f0d5-722d-45bd-b807-6e38489d37fe - currency: XUA + currency: currency account: 2a56344a-a491-11ec-b909-0242ac120002 contact: c640b80b-fac9-409f-aa19-1f9221aec445 project: 22e65a5d-2df5-4e6e-884a-e538d0339000 @@ -622,7 +622,7 @@ service: - a47e11b6-c73b-4a0c-be31-130fc48177fa company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 employee: employee - currency: XUA + currency: currency account: 2a56344a-a491-11ec-b909-0242ac120002 contact: contact project: project diff --git a/.mock/definition/accounting/fieldMapping.yml b/.mock/definition/accounting/fieldMapping.yml index 70f7267f0..80824f25d 100644 --- a/.mock/definition/accounting/fieldMapping.yml +++ b/.mock/definition/accounting/fieldMapping.yml @@ -885,6 +885,20 @@ service: advanced_metadata: id: id coverage: 1 + ExpenseReport: + - schema: + type: string + remote_key_name: example_remote_key_name + remote_endpoint_info: + method: GET + url_path: /example-url-path + field_traversal_path: + - example_key_name + example_values: + - example + advanced_metadata: + id: id + coverage: 1 TrackingCategory: - schema: type: string diff --git a/.mock/definition/accounting/forceResync.yml b/.mock/definition/accounting/forceResync.yml index 23d80d647..6f7150f10 100644 --- a/.mock/definition/accounting/forceResync.yml +++ b/.mock/definition/accounting/forceResync.yml @@ -31,7 +31,7 @@ service: next_sync_start: '2021-03-30T20:44:18Z' last_sync_result: SYNCING last_sync_finished: '2021-03-30T19:55:18Z' - status: SYNCING + status: status is_initial_sync: true selective_sync_configurations_usage: IN_NEXT_SYNC source: diff --git a/.mock/definition/accounting/incomeStatements.yml b/.mock/definition/accounting/incomeStatements.yml index f1da1a7bb..b784d7225 100644 --- a/.mock/definition/accounting/incomeStatements.yml +++ b/.mock/definition/accounting/incomeStatements.yml @@ -86,7 +86,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: IncomeStatement - currency: XUA + currency: currency company: company start_period: '2024-01-15T09:30:00Z' end_period: '2024-01-15T09:30:00Z' @@ -195,7 +195,7 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: IncomeStatement - currency: XUA + currency: currency company: company start_period: '2024-01-15T09:30:00Z' end_period: '2024-01-15T09:30:00Z' diff --git a/.mock/definition/accounting/invoices.yml b/.mock/definition/accounting/invoices.yml index 963f67bb5..64550b614 100644 --- a/.mock/definition/accounting/invoices.yml +++ b/.mock/definition/accounting/invoices.yml @@ -27098,7 +27098,7 @@ service: memo: Weekly Payment company: company employee: employee - currency: XUA + currency: currency exchange_rate: '2.9' payment_term: payment_term total_discount: 1.1 @@ -27218,7 +27218,7 @@ service: memo: Weekly Payment company: company employee: employee - currency: XUA + currency: currency exchange_rate: '2.9' payment_term: payment_term total_discount: 1.1 @@ -27374,7 +27374,7 @@ service: memo: Weekly Payment company: company employee: employee - currency: XUA + currency: currency exchange_rate: '2.9' payment_term: payment_term total_discount: 1.1 @@ -27509,7 +27509,7 @@ service: memo: Weekly Payment company: company employee: employee - currency: XUA + currency: currency exchange_rate: '2.9' payment_term: payment_term total_discount: 1.1 diff --git a/.mock/definition/accounting/issues.yml b/.mock/definition/accounting/issues.yml index f75687391..c8c483f88 100644 --- a/.mock/definition/accounting/issues.yml +++ b/.mock/definition/accounting/issues.yml @@ -90,7 +90,7 @@ service: previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - status: ONGOING + status: status error_description: Missing Permissions end_user: key: value @@ -121,7 +121,7 @@ service: response: body: id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 - status: ONGOING + status: status error_description: Missing Permissions end_user: key: value diff --git a/.mock/definition/accounting/items.yml b/.mock/definition/accounting/items.yml index 67a784e9d..233ea62dc 100644 --- a/.mock/definition/accounting/items.yml +++ b/.mock/definition/accounting/items.yml @@ -221,8 +221,8 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: Pickleball Paddle - status: ACTIVE - type: INVENTORY + status: status + type: type unit_price: 10 purchase_price: 25 purchase_account: purchase_account @@ -280,8 +280,8 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: Pickleball Paddle - status: ACTIVE - type: INVENTORY + status: status + type: type unit_price: 10 purchase_price: 25 purchase_account: purchase_account @@ -373,8 +373,8 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: Pickleball Paddle - status: ACTIVE - type: INVENTORY + status: status + type: type unit_price: 10 purchase_price: 25 purchase_account: purchase_account @@ -436,8 +436,8 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: Pickleball Paddle - status: ACTIVE - type: INVENTORY + status: status + type: type unit_price: 10 purchase_price: 25 purchase_account: purchase_account diff --git a/.mock/definition/accounting/journalEntries.yml b/.mock/definition/accounting/journalEntries.yml index e471027d9..33d923ea7 100644 --- a/.mock/definition/accounting/journalEntries.yml +++ b/.mock/definition/accounting/journalEntries.yml @@ -357,7 +357,7 @@ service: applied_payments: - 4311155d-f236-4a5d-9e0f-1cb167e38f95 memo: Weekly Payment - currency: XUA + currency: currency exchange_rate: '2.9' company: company inclusive_of_tax: true @@ -392,7 +392,7 @@ service: - 9b840d2-686a-465a-8a8e-7b028498f8e4 - a47e11b6-c73b-4a0c-be31-130fc48177fa remote_was_deleted: true - posting_status: UNPOSTED + posting_status: posting_status accounting_period: accounting_period remote_created_at: '2020-03-31T00:00:00Z' remote_updated_at: '2020-03-31T00:00:00Z' @@ -451,7 +451,7 @@ service: applied_payments: - 4311155d-f236-4a5d-9e0f-1cb167e38f95 memo: Weekly Payment - currency: XUA + currency: currency exchange_rate: '2.9' company: company inclusive_of_tax: true @@ -486,7 +486,7 @@ service: - 9b840d2-686a-465a-8a8e-7b028498f8e4 - a47e11b6-c73b-4a0c-be31-130fc48177fa remote_was_deleted: true - posting_status: UNPOSTED + posting_status: posting_status accounting_period: accounting_period remote_created_at: '2020-03-31T00:00:00Z' remote_updated_at: '2020-03-31T00:00:00Z' @@ -574,7 +574,7 @@ service: applied_payments: - 4311155d-f236-4a5d-9e0f-1cb167e38f95 memo: Weekly Payment - currency: XUA + currency: currency exchange_rate: '2.9' company: company inclusive_of_tax: true @@ -589,7 +589,7 @@ service: - d25d609b-945f-4762-b55a-1c8fb220c43c - 9b840d2-686a-465a-8a8e-7b028498f8e4 - a47e11b6-c73b-4a0c-be31-130fc48177fa - currency: XUA + currency: currency company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 employee: 123c8r35-5kf5-12x5-r833-99bwf35210b5 project: 22e65a5d-2df5-4e6e-884a-e538d0339000 @@ -610,7 +610,7 @@ service: - d25d609b-945f-4762-b55a-1c8fb220c43c - 9b840d2-686a-465a-8a8e-7b028498f8e4 - a47e11b6-c73b-4a0c-be31-130fc48177fa - currency: XUA + currency: currency company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 employee: 123c8r35-5kf5-12x5-r833-99bwf35210b5 project: project @@ -627,7 +627,7 @@ service: - 9b840d2-686a-465a-8a8e-7b028498f8e4 - a47e11b6-c73b-4a0c-be31-130fc48177fa remote_was_deleted: true - posting_status: UNPOSTED + posting_status: posting_status accounting_period: accounting_period remote_created_at: '2020-03-31T00:00:00Z' remote_updated_at: '2020-03-31T00:00:00Z' diff --git a/.mock/definition/accounting/linkToken.yml b/.mock/definition/accounting/linkToken.yml index 1d7aa0a0a..ca9270b7f 100644 --- a/.mock/definition/accounting/linkToken.yml +++ b/.mock/definition/accounting/linkToken.yml @@ -1,6 +1,14 @@ imports: root: __package__.yml types: + EndUserDetailsRequestCategoriesItem: + discriminated: false + union: + - string + - root.CategoriesEnum + source: + openapi: openapi/openapi.yml + inline: true EndUserDetailsRequestLanguage: discriminated: false docs: >- @@ -12,8 +20,8 @@ types: * `de` - de union: - - root.LanguageEnum - string + - root.LanguageEnum source: openapi: openapi/openapi.yml inline: true @@ -58,7 +66,7 @@ service: maxLength: 100 categories: docs: The integration categories to show in Merge Link. - type: list + type: list> integration: type: optional docs: >- diff --git a/.mock/definition/accounting/linkedAccounts.yml b/.mock/definition/accounting/linkedAccounts.yml index a831126a6..c3b7ae1dd 100644 --- a/.mock/definition/accounting/linkedAccounts.yml +++ b/.mock/definition/accounting/linkedAccounts.yml @@ -117,8 +117,8 @@ service: previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - id: e59b1821-f85c-4e28-a6b3-1804156f3563 - category: hris - status: COMPLETE + category: category + status: status status_detail: Invalid login credentials end_user_origin_id: 3ac95cde-6c7f-4eef-afec-be710b42308d end_user_organization_name: Foo Bar, LLC @@ -129,8 +129,7 @@ service: is_duplicate: true integration: name: name - categories: - - hris + categories: [] color: color slug: slug passthrough_available: true diff --git a/.mock/definition/accounting/passthrough.yml b/.mock/definition/accounting/passthrough.yml index db79aa9e1..f612ac11a 100644 --- a/.mock/definition/accounting/passthrough.yml +++ b/.mock/definition/accounting/passthrough.yml @@ -22,7 +22,7 @@ service: - headers: X-Account-Token: X-Account-Token request: - method: GET + method: method path: /scooters response: body: diff --git a/.mock/definition/accounting/paymentMethods.yml b/.mock/definition/accounting/paymentMethods.yml index 844d0b854..7dde36e1c 100644 --- a/.mock/definition/accounting/paymentMethods.yml +++ b/.mock/definition/accounting/paymentMethods.yml @@ -56,7 +56,7 @@ service: remote_id: '088899' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - method_type: CREDIT_CARD + method_type: method_type name: John Smith's Credit Card is_active: true remote_updated_at: '2021-09-15T00:00:00Z' @@ -106,7 +106,7 @@ service: remote_id: '088899' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - method_type: CREDIT_CARD + method_type: method_type name: John Smith's Credit Card is_active: true remote_updated_at: '2021-09-15T00:00:00Z' diff --git a/.mock/definition/accounting/payments.yml b/.mock/definition/accounting/payments.yml index 8a628d653..dc9ffccbb 100644 --- a/.mock/definition/accounting/payments.yml +++ b/.mock/definition/accounting/payments.yml @@ -641,11 +641,11 @@ service: contact: contact account: account payment_method: payment_method - currency: XUA + currency: currency exchange_rate: '2.9' company: company total_amount: 50 - type: ACCOUNTS_PAYABLE + type: type tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -723,11 +723,11 @@ service: contact: contact account: account payment_method: payment_method - currency: XUA + currency: currency exchange_rate: '2.9' company: company total_amount: 50 - type: ACCOUNTS_PAYABLE + type: type tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -834,11 +834,11 @@ service: contact: contact account: account payment_method: payment_method - currency: XUA + currency: currency exchange_rate: '2.9' company: company total_amount: 50 - type: ACCOUNTS_PAYABLE + type: type tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -922,11 +922,11 @@ service: contact: contact account: account payment_method: payment_method - currency: XUA + currency: currency exchange_rate: '2.9' company: company total_amount: 50 - type: ACCOUNTS_PAYABLE + type: type tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 diff --git a/.mock/definition/accounting/purchaseOrders.yml b/.mock/definition/accounting/purchaseOrders.yml index bc57e698c..61bc3ef70 100644 --- a/.mock/definition/accounting/purchaseOrders.yml +++ b/.mock/definition/accounting/purchaseOrders.yml @@ -647,7 +647,7 @@ service: remote_id: '239741' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - status: DRAFT + status: status issue_date: '2020-03-31T00:00:00Z' purchase_order_number: PO1234 delivery_date: '2020-04-15T00:00:00Z' @@ -657,7 +657,7 @@ service: memo: private note company: company total_amount: 260 - currency: XUA + currency: currency exchange_rate: '2.9' payment_term: payment_term line_items: @@ -751,7 +751,7 @@ service: remote_id: '239741' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - status: DRAFT + status: status issue_date: '2020-03-31T00:00:00Z' purchase_order_number: PO1234 delivery_date: '2020-04-15T00:00:00Z' @@ -761,7 +761,7 @@ service: memo: private note company: company total_amount: 260 - currency: XUA + currency: currency exchange_rate: '2.9' payment_term: payment_term line_items: @@ -894,7 +894,7 @@ service: remote_id: '239741' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - status: DRAFT + status: status issue_date: '2020-03-31T00:00:00Z' purchase_order_number: PO1234 delivery_date: '2020-04-15T00:00:00Z' @@ -904,7 +904,7 @@ service: memo: private note company: company total_amount: 260 - currency: XUA + currency: currency exchange_rate: '2.9' payment_term: payment_term line_items: @@ -945,7 +945,7 @@ service: - a47e11b6-c73b-4a0c-be31-130fc48177fa tax_amount: tax_amount total_line_amount: total_line_amount - currency: XUA + currency: currency tax_rate: a12e7c20-1922-9df7-s75n-edfeewnn7384 exchange_rate: '2.9' company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 diff --git a/.mock/definition/accounting/syncStatus.yml b/.mock/definition/accounting/syncStatus.yml index 2a5e4eb4f..927673032 100644 --- a/.mock/definition/accounting/syncStatus.yml +++ b/.mock/definition/accounting/syncStatus.yml @@ -51,7 +51,7 @@ service: next_sync_start: '2021-03-30T20:44:18Z' last_sync_result: SYNCING last_sync_finished: '2021-03-30T19:55:18Z' - status: SYNCING + status: status is_initial_sync: true selective_sync_configurations_usage: IN_NEXT_SYNC source: diff --git a/.mock/definition/accounting/taxRates.yml b/.mock/definition/accounting/taxRates.yml index c2695fb63..b4854f614 100644 --- a/.mock/definition/accounting/taxRates.yml +++ b/.mock/definition/accounting/taxRates.yml @@ -92,7 +92,7 @@ service: code: '890' name: State tax rate description: Sales Tax - status: ACTIVE + status: status country: US total_tax_rate: 15 effective_tax_rate: 15 @@ -161,7 +161,7 @@ service: code: '890' name: State tax rate description: Sales Tax - status: ACTIVE + status: status country: US total_tax_rate: 15 effective_tax_rate: 15 diff --git a/.mock/definition/accounting/trackingCategories.yml b/.mock/definition/accounting/trackingCategories.yml index b63996f95..7d23577c3 100644 --- a/.mock/definition/accounting/trackingCategories.yml +++ b/.mock/definition/accounting/trackingCategories.yml @@ -109,8 +109,8 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: Marketing Department - status: ACTIVE - category_type: CLASS + status: status + category_type: category_type parent_category: d25d609b-945f-4762-b55a-1c8fb220c43c company: company remote_was_deleted: true @@ -172,8 +172,8 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' name: Marketing Department - status: ACTIVE - category_type: CLASS + status: status + category_type: category_type parent_category: d25d609b-945f-4762-b55a-1c8fb220c43c company: company remote_was_deleted: true diff --git a/.mock/definition/accounting/transactions.yml b/.mock/definition/accounting/transactions.yml index 672ad121d..60ea25b7e 100644 --- a/.mock/definition/accounting/transactions.yml +++ b/.mock/definition/accounting/transactions.yml @@ -353,7 +353,7 @@ service: contact: contact inclusive_of_tax: true total_amount: total_amount - currency: XUA + currency: currency exchange_rate: '2.9' company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 tracking_categories: @@ -454,7 +454,7 @@ service: contact: contact inclusive_of_tax: true total_amount: total_amount - currency: XUA + currency: currency exchange_rate: '2.9' company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 tracking_categories: @@ -496,7 +496,7 @@ service: - a47e11b6-c73b-4a0c-be31-130fc48177fa total_line_amount: total_line_amount tax_rate: a12e7c20-1922-9df7-s75n-edfeewnn7384 - currency: XUA + currency: currency exchange_rate: '2.9' company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 remote_was_deleted: true diff --git a/.mock/definition/accounting/vendorCredits.yml b/.mock/definition/accounting/vendorCredits.yml index b8507e7c3..7e5c09d3b 100644 --- a/.mock/definition/accounting/vendorCredits.yml +++ b/.mock/definition/accounting/vendorCredits.yml @@ -220,7 +220,7 @@ service: transaction_date: '2020-03-31T00:00:00Z' vendor: vendor total_amount: 10000 - currency: XUA + currency: currency exchange_rate: '2.9' inclusive_of_tax: true company: company @@ -316,7 +316,7 @@ service: transaction_date: '2020-03-31T00:00:00Z' vendor: vendor total_amount: 10000 - currency: XUA + currency: currency exchange_rate: '2.9' inclusive_of_tax: true company: company @@ -436,7 +436,7 @@ service: transaction_date: '2020-03-31T00:00:00Z' vendor: vendor total_amount: 10000 - currency: XUA + currency: currency exchange_rate: '2.9' inclusive_of_tax: true company: company diff --git a/reference.md b/reference.md index 87e66a192..a063ebec8 100644 --- a/reference.md +++ b/reference.md @@ -1,8 +1,8 @@ # Reference -## Ats AccountDetails +## Crm AccountDetails -
client.ats.accountDetails.retrieve() -> Merge.AccountDetails +
client.crm.accountDetails.retrieve() -> Merge.AccountDetails
@@ -30,7 +30,7 @@ Get details for a linked account.
```typescript -await client.ats.accountDetails.retrieve(); +await client.crm.accountDetails.retrieve(); ```
@@ -57,9 +57,9 @@ await client.ats.accountDetails.retrieve();
-## Ats AccountToken +## Crm AccountToken -
client.ats.accountToken.retrieve(publicToken) -> Merge.AccountToken +
client.crm.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -87,7 +87,7 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.ats.accountToken.retrieve("public_token"); +await client.crm.accountToken.retrieve("public_token"); ```
@@ -122,9 +122,9 @@ await client.ats.accountToken.retrieve("public_token");
-## Ats Activities +## Crm Accounts -
client.ats.activities.list({ ...params }) -> Merge.PaginatedActivityList +
client.crm.accounts.list({ ...params }) -> Merge.PaginatedAccountList
@@ -136,7 +136,7 @@ await client.ats.accountToken.retrieve("public_token");
-Returns a list of `Activity` objects. +Returns a list of `Account` objects.
@@ -152,7 +152,7 @@ Returns a list of `Activity` objects.
```typescript -await client.ats.activities.list({ +await client.crm.accounts.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -170,7 +170,7 @@ await client.ats.activities.list({
-**request:** `Merge.ats.ActivitiesListRequest` +**request:** `Merge.crm.AccountsListRequest`
@@ -178,7 +178,7 @@ await client.ats.activities.list({
-**requestOptions:** `Activities.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -189,7 +189,7 @@ await client.ats.activities.list({
-
client.ats.activities.create({ ...params }) -> Merge.ActivityResponse +
client.crm.accounts.create({ ...params }) -> Merge.CrmAccountResponse
@@ -201,7 +201,7 @@ await client.ats.activities.list({
-Creates an `Activity` object with the given values. +Creates an `Account` object with the given values.
@@ -217,9 +217,8 @@ Creates an `Activity` object with the given values.
```typescript -await client.ats.activities.create({ +await client.crm.accounts.create({ model: {}, - remoteUserId: "remote_user_id", }); ``` @@ -236,7 +235,7 @@ await client.ats.activities.create({
-**request:** `Merge.ats.ActivityEndpointRequest` +**request:** `Merge.crm.CrmAccountEndpointRequest`
@@ -244,7 +243,7 @@ await client.ats.activities.create({
-**requestOptions:** `Activities.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -255,7 +254,7 @@ await client.ats.activities.create({
-
client.ats.activities.retrieve(id, { ...params }) -> Merge.Activity +
client.crm.accounts.retrieve(id, { ...params }) -> Merge.Account
@@ -267,7 +266,7 @@ await client.ats.activities.create({
-Returns an `Activity` object with the given `id`. +Returns an `Account` object with the given `id`.
@@ -283,7 +282,7 @@ Returns an `Activity` object with the given `id`.
```typescript -await client.ats.activities.retrieve("id"); +await client.crm.accounts.retrieve("id"); ```
@@ -307,7 +306,7 @@ await client.ats.activities.retrieve("id");
-**request:** `Merge.ats.ActivitiesRetrieveRequest` +**request:** `Merge.crm.AccountsRetrieveRequest`
@@ -315,7 +314,7 @@ await client.ats.activities.retrieve("id");
-**requestOptions:** `Activities.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -326,7 +325,7 @@ await client.ats.activities.retrieve("id");
-
client.ats.activities.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.accounts.partialUpdate(id, { ...params }) -> Merge.CrmAccountResponse
@@ -338,7 +337,7 @@ await client.ats.activities.retrieve("id");
-Returns metadata for `Activity` POSTs. +Updates an `Account` object with the given `id`.
@@ -354,7 +353,9 @@ Returns metadata for `Activity` POSTs.
```typescript -await client.ats.activities.metaPostRetrieve(); +await client.crm.accounts.partialUpdate("id", { + model: {}, +}); ```
@@ -370,7 +371,23 @@ await client.ats.activities.metaPostRetrieve();
-**requestOptions:** `Activities.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.PatchedCrmAccountEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Accounts.RequestOptions`
@@ -381,9 +398,7 @@ await client.ats.activities.metaPostRetrieve();
-## Ats Applications - -
client.ats.applications.list({ ...params }) -> Merge.PaginatedApplicationList +
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -395,7 +410,7 @@ await client.ats.activities.metaPostRetrieve();
-Returns a list of `Application` objects. +Returns metadata for `CRMAccount` PATCHs.
@@ -411,9 +426,7 @@ Returns a list of `Application` objects.
```typescript -await client.ats.applications.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.accounts.metaPatchRetrieve("id"); ```
@@ -429,7 +442,7 @@ await client.ats.applications.list({
-**request:** `Merge.ats.ApplicationsListRequest` +**id:** `string`
@@ -437,7 +450,7 @@ await client.ats.applications.list({
-**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -448,7 +461,7 @@ await client.ats.applications.list({
-
client.ats.applications.create({ ...params }) -> Merge.ApplicationResponse +
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse
@@ -460,10 +473,7 @@ await client.ats.applications.list({
-Creates an `Application` object with the given values. -For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. - -See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration. +Returns metadata for `CRMAccount` POSTs.
@@ -479,10 +489,7 @@ See our [Help Center article](https://help.merge.dev/en/articles/10012366-update
```typescript -await client.ats.applications.create({ - model: {}, - remoteUserId: "remote_user_id", -}); +await client.crm.accounts.metaPostRetrieve(); ```
@@ -498,15 +505,7 @@ await client.ats.applications.create({
-**request:** `Merge.ats.ApplicationEndpointRequest` - -
-
- -
-
- -**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -517,7 +516,7 @@ await client.ats.applications.create({
-
client.ats.applications.retrieve(id, { ...params }) -> Merge.Application +
client.crm.accounts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -529,7 +528,7 @@ await client.ats.applications.create({
-Returns an `Application` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -545,7 +544,9 @@ Returns an `Application` object with the given `id`.
```typescript -await client.ats.applications.retrieve("id"); +await client.crm.accounts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -561,15 +562,7 @@ await client.ats.applications.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.ApplicationsRetrieveRequest` +**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest`
@@ -577,7 +570,7 @@ await client.ats.applications.retrieve("id");
-**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `Accounts.RequestOptions`
@@ -588,7 +581,9 @@ await client.ats.applications.retrieve("id");
-
client.ats.applications.changeStageCreate(id, { ...params }) -> Merge.ApplicationResponse +## Crm AsyncPassthrough + +
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -600,7 +595,7 @@ await client.ats.applications.retrieve("id");
-Updates the `current_stage` field of an `Application` object +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -616,7 +611,10 @@ Updates the `current_stage` field of an `Application` object
```typescript -await client.ats.applications.changeStageCreate("id"); +await client.crm.asyncPassthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -632,15 +630,7 @@ await client.ats.applications.changeStageCreate("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.UpdateApplicationStageRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -648,7 +638,7 @@ await client.ats.applications.changeStageCreate("id");
-**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -659,7 +649,7 @@ await client.ats.applications.changeStageCreate("id");
-
client.ats.applications.metaPostRetrieve({ ...params }) -> Merge.MetaResponse +
client.crm.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -671,7 +661,7 @@ await client.ats.applications.changeStageCreate("id");
-Returns metadata for `Application` POSTs. +Retrieves data from earlier async-passthrough POST request
@@ -687,7 +677,7 @@ Returns metadata for `Application` POSTs.
```typescript -await client.ats.applications.metaPostRetrieve(); +await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -703,7 +693,7 @@ await client.ats.applications.metaPostRetrieve();
-**request:** `Merge.ats.ApplicationsMetaPostRetrieveRequest` +**asyncPassthroughReceiptId:** `string`
@@ -711,7 +701,7 @@ await client.ats.applications.metaPostRetrieve();
-**requestOptions:** `Applications.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -722,9 +712,9 @@ await client.ats.applications.metaPostRetrieve();
-## Ats AsyncPassthrough +## Crm AuditTrail -
client.ats.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.crm.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
@@ -736,7 +726,7 @@ await client.ats.applications.metaPostRetrieve();
-Asynchronously pull data from an endpoint not currently supported by Merge. +Gets a list of audit trail events.
@@ -752,9 +742,8 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.ats.asyncPassthrough.create({ - method: "GET", - path: "/scooters", +await client.crm.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -771,7 +760,7 @@ await client.ats.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.crm.AuditTrailListRequest`
@@ -779,7 +768,7 @@ await client.ats.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -790,7 +779,9 @@ await client.ats.asyncPassthrough.create({
-
client.ats.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse +## Crm AvailableActions + +
client.crm.availableActions.retrieve() -> Merge.AvailableActions
@@ -802,7 +793,7 @@ await client.ats.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns a list of models and actions available for an account.
@@ -818,7 +809,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.crm.availableActions.retrieve(); ```
@@ -834,15 +825,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**asyncPassthroughReceiptId:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `AvailableActions.RequestOptions`
@@ -853,9 +836,9 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Ats Attachments +## Crm Contacts -
client.ats.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList +
client.crm.contacts.list({ ...params }) -> Merge.PaginatedContactList
@@ -867,7 +850,7 @@ await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Returns a list of `Attachment` objects. +Returns a list of `Contact` objects.
@@ -883,7 +866,7 @@ Returns a list of `Attachment` objects.
```typescript -await client.ats.attachments.list({ +await client.crm.contacts.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -901,7 +884,7 @@ await client.ats.attachments.list({
-**request:** `Merge.ats.AttachmentsListRequest` +**request:** `Merge.crm.ContactsListRequest`
@@ -909,7 +892,7 @@ await client.ats.attachments.list({
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -920,7 +903,7 @@ await client.ats.attachments.list({
-
client.ats.attachments.create({ ...params }) -> Merge.AttachmentResponse +
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse
@@ -932,7 +915,7 @@ await client.ats.attachments.list({
-Creates an `Attachment` object with the given values. +Creates a `Contact` object with the given values.
@@ -948,9 +931,8 @@ Creates an `Attachment` object with the given values.
```typescript -await client.ats.attachments.create({ +await client.crm.contacts.create({ model: {}, - remoteUserId: "remote_user_id", }); ``` @@ -967,7 +949,7 @@ await client.ats.attachments.create({
-**request:** `Merge.ats.AttachmentEndpointRequest` +**request:** `Merge.crm.CrmContactEndpointRequest`
@@ -975,7 +957,7 @@ await client.ats.attachments.create({
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -986,7 +968,7 @@ await client.ats.attachments.create({
-
client.ats.attachments.retrieve(id, { ...params }) -> Merge.Attachment +
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact
@@ -998,7 +980,7 @@ await client.ats.attachments.create({
-Returns an `Attachment` object with the given `id`. +Returns a `Contact` object with the given `id`.
@@ -1014,7 +996,7 @@ Returns an `Attachment` object with the given `id`.
```typescript -await client.ats.attachments.retrieve("id"); +await client.crm.contacts.retrieve("id"); ```
@@ -1038,7 +1020,7 @@ await client.ats.attachments.retrieve("id");
-**request:** `Merge.ats.AttachmentsRetrieveRequest` +**request:** `Merge.crm.ContactsRetrieveRequest`
@@ -1046,7 +1028,7 @@ await client.ats.attachments.retrieve("id");
-**requestOptions:** `Attachments.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -1057,7 +1039,7 @@ await client.ats.attachments.retrieve("id");
-
client.ats.attachments.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse
@@ -1069,7 +1051,7 @@ await client.ats.attachments.retrieve("id");
-Returns metadata for `Attachment` POSTs. +Updates a `Contact` object with the given `id`.
@@ -1085,7 +1067,9 @@ Returns metadata for `Attachment` POSTs.
```typescript -await client.ats.attachments.metaPostRetrieve(); +await client.crm.contacts.partialUpdate("id", { + model: {}, +}); ```
@@ -1101,7 +1085,23 @@ await client.ats.attachments.metaPostRetrieve();
-**requestOptions:** `Attachments.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.PatchedCrmContactEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Contacts.RequestOptions`
@@ -1112,9 +1112,7 @@ await client.ats.attachments.metaPostRetrieve();
-## Ats AuditTrail - -
client.ats.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.crm.contacts.ignoreCreate(modelId, { ...params }) -> void
@@ -1126,7 +1124,7 @@ await client.ats.attachments.metaPostRetrieve();
-Gets a list of audit trail events. +Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes.
@@ -1142,8 +1140,8 @@ Gets a list of audit trail events.
```typescript -await client.ats.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.crm.contacts.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", }); ``` @@ -1160,7 +1158,7 @@ await client.ats.auditTrail.list({
-**request:** `Merge.ats.AuditTrailListRequest` +**modelId:** `string`
@@ -1168,7 +1166,15 @@ await client.ats.auditTrail.list({
-**requestOptions:** `AuditTrail.RequestOptions` +**request:** `Merge.IgnoreCommonModelRequest` + +
+
+ +
+
+ +**requestOptions:** `Contacts.RequestOptions`
@@ -1179,9 +1185,7 @@ await client.ats.auditTrail.list({
-## Ats AvailableActions - -
client.ats.availableActions.retrieve() -> Merge.AvailableActions +
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -1193,7 +1197,7 @@ await client.ats.auditTrail.list({
-Returns a list of models and actions available for an account. +Returns metadata for `CRMContact` PATCHs.
@@ -1209,7 +1213,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.ats.availableActions.retrieve(); +await client.crm.contacts.metaPatchRetrieve("id"); ```
@@ -1225,7 +1229,15 @@ await client.ats.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**requestOptions:** `Contacts.RequestOptions`
@@ -1236,9 +1248,7 @@ await client.ats.availableActions.retrieve();
-## Ats Candidates - -
client.ats.candidates.list({ ...params }) -> Merge.PaginatedCandidateList +
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse
@@ -1250,7 +1260,7 @@ await client.ats.availableActions.retrieve();
-Returns a list of `Candidate` objects. +Returns metadata for `CRMContact` POSTs.
@@ -1266,9 +1276,7 @@ Returns a list of `Candidate` objects.
```typescript -await client.ats.candidates.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.contacts.metaPostRetrieve(); ```
@@ -1284,15 +1292,7 @@ await client.ats.candidates.list({
-**request:** `Merge.ats.CandidatesListRequest` - -
-
- -
-
- -**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -1303,7 +1303,7 @@ await client.ats.candidates.list({
-
client.ats.candidates.create({ ...params }) -> Merge.CandidateResponse +
client.crm.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -1315,7 +1315,7 @@ await client.ats.candidates.list({
-Creates a `Candidate` object with the given values. +Returns a list of `RemoteFieldClass` objects.
@@ -1331,9 +1331,8 @@ Creates a `Candidate` object with the given values.
```typescript -await client.ats.candidates.create({ - model: {}, - remoteUserId: "remote_user_id", +await client.crm.contacts.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -1350,7 +1349,7 @@ await client.ats.candidates.create({
-**request:** `Merge.ats.CandidateEndpointRequest` +**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest`
@@ -1358,7 +1357,7 @@ await client.ats.candidates.create({
-**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `Contacts.RequestOptions`
@@ -1369,7 +1368,9 @@ await client.ats.candidates.create({
-
client.ats.candidates.retrieve(id, { ...params }) -> Merge.Candidate +## Crm CustomObjectClasses + +
client.crm.customObjectClasses.list({ ...params }) -> Merge.PaginatedCustomObjectClassList
@@ -1381,7 +1382,7 @@ await client.ats.candidates.create({
-Returns a `Candidate` object with the given `id`. +Returns a list of `CustomObjectClass` objects.
@@ -1397,7 +1398,9 @@ Returns a `Candidate` object with the given `id`.
```typescript -await client.ats.candidates.retrieve("id"); +await client.crm.customObjectClasses.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -1413,15 +1416,7 @@ await client.ats.candidates.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.CandidatesRetrieveRequest` +**request:** `Merge.crm.CustomObjectClassesListRequest`
@@ -1429,7 +1424,7 @@ await client.ats.candidates.retrieve("id");
-**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `CustomObjectClasses.RequestOptions`
@@ -1440,7 +1435,7 @@ await client.ats.candidates.retrieve("id");
-
client.ats.candidates.partialUpdate(id, { ...params }) -> Merge.CandidateResponse +
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass
@@ -1452,7 +1447,7 @@ await client.ats.candidates.retrieve("id");
-Updates a `Candidate` object with the given `id`. +Returns a `CustomObjectClass` object with the given `id`.
@@ -1468,10 +1463,7 @@ Updates a `Candidate` object with the given `id`.
```typescript -await client.ats.candidates.partialUpdate("id", { - model: {}, - remoteUserId: "remote_user_id", -}); +await client.crm.customObjectClasses.retrieve("id"); ```
@@ -1495,7 +1487,7 @@ await client.ats.candidates.partialUpdate("id", {
-**request:** `Merge.ats.PatchedCandidateEndpointRequest` +**request:** `Merge.crm.CustomObjectClassesRetrieveRequest`
@@ -1503,7 +1495,7 @@ await client.ats.candidates.partialUpdate("id", {
-**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `CustomObjectClasses.RequestOptions`
@@ -1514,7 +1506,9 @@ await client.ats.candidates.partialUpdate("id", {
-
client.ats.candidates.ignoreCreate(modelId, { ...params }) -> void +## Crm AssociationTypes + +
client.crm.associationTypes.customObjectClassesAssociationTypesList(customObjectClassId, { ...params }) -> Merge.PaginatedAssociationTypeList
@@ -1526,7 +1520,7 @@ await client.ats.candidates.partialUpdate("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns a list of `AssociationType` objects.
@@ -1542,8 +1536,8 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.ats.candidates.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", +await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -1560,7 +1554,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-**modelId:** `string` +**customObjectClassId:** `string`
@@ -1568,7 +1562,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-**request:** `Merge.ats.IgnoreCommonModelRequest` +**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest`
@@ -1576,7 +1570,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-**requestOptions:** `Candidates.RequestOptions` +**requestOptions:** `AssociationTypes.RequestOptions`
@@ -1587,7 +1581,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-
client.ats.candidates.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(customObjectClassId, { ...params }) -> Merge.CrmAssociationTypeResponse
@@ -1599,7 +1593,7 @@ await client.ats.candidates.ignoreCreate("model_id", {
-Returns metadata for `Candidate` PATCHs. +Creates an `AssociationType` object with the given values.
@@ -1615,7 +1609,21 @@ Returns metadata for `Candidate` PATCHs.
```typescript -await client.ats.candidates.metaPatchRetrieve("id"); +await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("custom_object_class_id", { + model: { + sourceObjectClass: { + id: "id", + originType: "CUSTOM_OBJECT", + }, + targetObjectClasses: [ + { + id: "id", + originType: "CUSTOM_OBJECT", + }, + ], + remoteKeyName: "remote_key_name", + }, +}); ```
@@ -1631,7 +1639,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-**id:** `string` +**customObjectClassId:** `string`
@@ -1639,7 +1647,15 @@ await client.ats.candidates.metaPatchRetrieve("id");
-**requestOptions:** `Candidates.RequestOptions` +**request:** `Merge.crm.CrmAssociationTypeEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypes.RequestOptions`
@@ -1650,7 +1666,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-
client.ats.candidates.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(customObjectClassId, id, { ...params }) -> Merge.AssociationType
@@ -1662,7 +1678,7 @@ await client.ats.candidates.metaPatchRetrieve("id");
-Returns metadata for `Candidate` POSTs. +Returns an `AssociationType` object with the given `id`.
@@ -1678,7 +1694,7 @@ Returns metadata for `Candidate` POSTs.
```typescript -await client.ats.candidates.metaPostRetrieve(); +await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id"); ```
@@ -1694,20 +1710,42 @@ await client.ats.candidates.metaPostRetrieve();
-**requestOptions:** `Candidates.RequestOptions` +**customObjectClassId:** `string`
+ +
+
+ +**id:** `string` +
+
+
+ +**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest` +
-
-## Ats Scopes +
+
-
client.ats.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +**requestOptions:** `AssociationTypes.RequestOptions` + +
+
+ + + + + +
+ +
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(customObjectClassId) -> Merge.MetaResponse
@@ -1719,7 +1757,7 @@ await client.ats.candidates.metaPostRetrieve();
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns metadata for `CRMAssociationType` POSTs.
@@ -1735,7 +1773,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.ats.scopes.defaultScopesRetrieve(); +await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); ```
@@ -1751,7 +1789,15 @@ await client.ats.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**customObjectClassId:** `string` + +
+
+ +
+
+ +**requestOptions:** `AssociationTypes.RequestOptions`
@@ -1762,7 +1808,9 @@ await client.ats.scopes.defaultScopesRetrieve();
-
client.ats.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +## Crm CustomObjects + +
client.crm.customObjects.customObjectClassesCustomObjectsList(customObjectClassId, { ...params }) -> Merge.PaginatedCustomObjectList
@@ -1774,7 +1822,7 @@ await client.ats.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `CustomObject` objects.
@@ -1790,7 +1838,9 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.ats.scopes.linkedAccountScopesRetrieve(); +await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -1806,7 +1856,23 @@ await client.ats.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**customObjectClassId:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjects.RequestOptions`
@@ -1817,7 +1883,7 @@ await client.ats.scopes.linkedAccountScopesRetrieve();
-
client.ats.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.crm.customObjects.customObjectClassesCustomObjectsCreate(customObjectClassId, { ...params }) -> Merge.CrmCustomObjectResponse
@@ -1829,7 +1895,7 @@ await client.ats.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Creates a `CustomObject` object with the given values.
@@ -1845,32 +1911,12 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.ats.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"], - }, +await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { + model: { + fields: { + test_field: "hello", }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], + }, }); ``` @@ -1887,7 +1933,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-**request:** `Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest` +**customObjectClassId:** `string`
@@ -1895,7 +1941,15 @@ await client.ats.scopes.linkedAccountScopesCreate({
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.crm.CrmCustomObjectEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `CustomObjects.RequestOptions`
@@ -1906,9 +1960,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-## Ats DeleteAccount - -
client.ats.deleteAccount.delete() -> void +
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(customObjectClassId, id, { ...params }) -> Merge.CustomObject
@@ -1920,7 +1972,7 @@ await client.ats.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a `CustomObject` object with the given `id`.
@@ -1936,7 +1988,7 @@ Delete a linked account.
```typescript -await client.ats.deleteAccount.delete(); +await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id"); ```
@@ -1952,66 +2004,23 @@ await client.ats.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` - -
-
- -
- - - -
- -## Ats Departments - -
client.ats.departments.list({ ...params }) -> Merge.PaginatedDepartmentList -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a list of `Department` objects. +**customObjectClassId:** `string`
-
-
- -#### 🔌 Usage
-
-
- -```typescript -await client.ats.departments.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); -``` +**id:** `string`
-
-
- -#### ⚙️ Parameters
-
-
- -**request:** `Merge.ats.DepartmentsListRequest` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest`
@@ -2019,7 +2028,7 @@ await client.ats.departments.list({
-**requestOptions:** `Departments.RequestOptions` +**requestOptions:** `CustomObjects.RequestOptions`
@@ -2030,7 +2039,7 @@ await client.ats.departments.list({
-
client.ats.departments.retrieve(id, { ...params }) -> Merge.Department +
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(customObjectClassId) -> Merge.MetaResponse
@@ -2042,7 +2051,7 @@ await client.ats.departments.list({
-Returns a `Department` object with the given `id`. +Returns metadata for `CRMCustomObject` POSTs.
@@ -2058,7 +2067,7 @@ Returns a `Department` object with the given `id`.
```typescript -await client.ats.departments.retrieve("id"); +await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); ```
@@ -2074,15 +2083,7 @@ await client.ats.departments.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.DepartmentsRetrieveRequest` +**customObjectClassId:** `string`
@@ -2090,7 +2091,7 @@ await client.ats.departments.retrieve("id");
-**requestOptions:** `Departments.RequestOptions` +**requestOptions:** `CustomObjects.RequestOptions`
@@ -2101,9 +2102,7 @@ await client.ats.departments.retrieve("id");
-## Ats Eeocs - -
client.ats.eeocs.list({ ...params }) -> Merge.PaginatedEeocList +
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -2115,7 +2114,7 @@ await client.ats.departments.retrieve("id");
-Returns a list of `EEOC` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -2131,7 +2130,7 @@ Returns a list of `EEOC` objects.
```typescript -await client.ats.eeocs.list({ +await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -2149,7 +2148,7 @@ await client.ats.eeocs.list({
-**request:** `Merge.ats.EeocsListRequest` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest`
@@ -2157,7 +2156,7 @@ await client.ats.eeocs.list({
-**requestOptions:** `Eeocs.RequestOptions` +**requestOptions:** `CustomObjects.RequestOptions`
@@ -2168,7 +2167,9 @@ await client.ats.eeocs.list({
-
client.ats.eeocs.retrieve(id, { ...params }) -> Merge.Eeoc +## Crm Associations + +
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(customObjectClassId, objectId, { ...params }) -> Merge.PaginatedAssociationList
@@ -2180,7 +2181,7 @@ await client.ats.eeocs.list({
-Returns an `EEOC` object with the given `id`. +Returns a list of `Association` objects.
@@ -2196,7 +2197,9 @@ Returns an `EEOC` object with the given `id`.
```typescript -await client.ats.eeocs.retrieve("id"); +await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("custom_object_class_id", "object_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -2212,7 +2215,7 @@ await client.ats.eeocs.retrieve("id");
-**id:** `string` +**customObjectClassId:** `string`
@@ -2220,7 +2223,7 @@ await client.ats.eeocs.retrieve("id");
-**request:** `Merge.ats.EeocsRetrieveRequest` +**objectId:** `string`
@@ -2228,7 +2231,15 @@ await client.ats.eeocs.retrieve("id");
-**requestOptions:** `Eeocs.RequestOptions` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest` + +
+
+ +
+
+ +**requestOptions:** `Associations.RequestOptions`
@@ -2239,9 +2250,7 @@ await client.ats.eeocs.retrieve("id");
-## Ats FieldMapping - -
client.ats.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +
client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate(associationTypeId, sourceClassId, sourceObjectId, targetClassId, targetObjectId, { ...params }) -> Merge.Association
@@ -2253,7 +2262,7 @@ await client.ats.eeocs.retrieve("id");
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`.
@@ -2269,7 +2278,13 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.ats.fieldMapping.fieldMappingsRetrieve(); +await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate( + "association_type_id", + "source_class_id", + "source_object_id", + "target_class_id", + "target_object_id", +); ```
@@ -2285,7 +2300,7 @@ await client.ats.fieldMapping.fieldMappingsRetrieve();
-**request:** `Merge.ats.FieldMappingsRetrieveRequest` +**associationTypeId:** `string`
@@ -2293,69 +2308,39 @@ await client.ats.fieldMapping.fieldMappingsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` - -
-
- -
+**sourceClassId:** `string` -
-
client.ats.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
-#### 📝 Description +**sourceObjectId:** `string` -
-
+
+
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +**targetClassId:** `string`
-
-
- -#### 🔌 Usage - -
-
-```typescript -await client.ats.fieldMapping.fieldMappingsCreate({ - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", -}); -``` +**targetObjectId:** `string` -
-
-#### ⚙️ Parameters -
-
-
- -**request:** `Merge.ats.CreateFieldMappingRequest` +**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest`
@@ -2363,7 +2348,7 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Associations.RequestOptions`
@@ -2374,7 +2359,9 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-
client.ats.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +## Crm Scopes + +
client.crm.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -2386,7 +2373,7 @@ await client.ats.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -2402,7 +2389,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.crm.scopes.defaultScopesRetrieve(); ```
@@ -2418,15 +2405,7 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**fieldMappingId:** `string` - -
-
- -
-
- -**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -2437,7 +2416,7 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.ats.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -2449,7 +2428,7 @@ await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -2465,7 +2444,7 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.crm.scopes.linkedAccountScopesRetrieve(); ```
@@ -2481,23 +2460,7 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**fieldMappingId:** `string` - -
-
- -
-
- -**request:** `Merge.ats.PatchedEditFieldMappingRequest` - -
-
- -
-
- -**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -2508,7 +2471,7 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.ats.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.crm.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -2520,7 +2483,7 @@ await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -2536,7 +2499,33 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.ats.fieldMapping.remoteFieldsRetrieve(); +await client.crm.scopes.linkedAccountScopesCreate({ + commonModels: [ + { + modelName: "Employee", + modelPermissions: { + READ: { + isEnabled: true, + }, + WRITE: { + isEnabled: false, + }, + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"], + }, + }, + { + modelName: "Benefit", + modelPermissions: { + WRITE: { + isEnabled: false, + }, + }, + }, + ], +}); ```
@@ -2552,7 +2541,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.ats.RemoteFieldsRetrieveRequest` +**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -2560,7 +2549,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -2571,7 +2560,9 @@ await client.ats.fieldMapping.remoteFieldsRetrieve();
-
client.ats.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Crm DeleteAccount + +
client.crm.deleteAccount.delete() -> void
@@ -2583,7 +2574,7 @@ await client.ats.fieldMapping.remoteFieldsRetrieve();
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Delete a linked account.
@@ -2599,7 +2590,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.ats.fieldMapping.targetFieldsRetrieve(); +await client.crm.deleteAccount.delete(); ```
@@ -2615,7 +2606,7 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -2626,9 +2617,9 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-## Ats GenerateKey +## Crm EngagementTypes -
client.ats.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.engagementTypes.list({ ...params }) -> Merge.PaginatedEngagementTypeList
@@ -2640,7 +2631,7 @@ await client.ats.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Returns a list of `EngagementType` objects.
@@ -2656,8 +2647,8 @@ Create a remote key.
```typescript -await client.ats.generateKey.create({ - name: "Remote Deployment Key 1", +await client.crm.engagementTypes.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -2674,7 +2665,7 @@ await client.ats.generateKey.create({
-**request:** `Merge.ats.GenerateRemoteKeyRequest` +**request:** `Merge.crm.EngagementTypesListRequest`
@@ -2682,7 +2673,7 @@ await client.ats.generateKey.create({
-**requestOptions:** `GenerateKey.RequestOptions` +**requestOptions:** `EngagementTypes.RequestOptions`
@@ -2693,9 +2684,7 @@ await client.ats.generateKey.create({
-## Ats Interviews - -
client.ats.interviews.list({ ...params }) -> Merge.PaginatedScheduledInterviewList +
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType
@@ -2707,7 +2696,7 @@ await client.ats.generateKey.create({
-Returns a list of `ScheduledInterview` objects. +Returns an `EngagementType` object with the given `id`.
@@ -2723,9 +2712,7 @@ Returns a list of `ScheduledInterview` objects.
```typescript -await client.ats.interviews.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.engagementTypes.retrieve("id"); ```
@@ -2741,7 +2728,7 @@ await client.ats.interviews.list({
-**request:** `Merge.ats.InterviewsListRequest` +**id:** `string`
@@ -2749,7 +2736,15 @@ await client.ats.interviews.list({
-**requestOptions:** `Interviews.RequestOptions` +**request:** `Merge.crm.EngagementTypesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EngagementTypes.RequestOptions`
@@ -2760,7 +2755,7 @@ await client.ats.interviews.list({
-
client.ats.interviews.create({ ...params }) -> Merge.ScheduledInterviewResponse +
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -2772,7 +2767,7 @@ await client.ats.interviews.list({
-Creates a `ScheduledInterview` object with the given values. +Returns a list of `RemoteFieldClass` objects.
@@ -2788,9 +2783,8 @@ Creates a `ScheduledInterview` object with the given values.
```typescript -await client.ats.interviews.create({ - model: {}, - remoteUserId: "remote_user_id", +await client.crm.engagementTypes.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -2807,7 +2801,7 @@ await client.ats.interviews.create({
-**request:** `Merge.ats.ScheduledInterviewEndpointRequest` +**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest`
@@ -2815,7 +2809,7 @@ await client.ats.interviews.create({
-**requestOptions:** `Interviews.RequestOptions` +**requestOptions:** `EngagementTypes.RequestOptions`
@@ -2826,7 +2820,9 @@ await client.ats.interviews.create({
-
client.ats.interviews.retrieve(id, { ...params }) -> Merge.ScheduledInterview +## Crm Engagements + +
client.crm.engagements.list({ ...params }) -> Merge.PaginatedEngagementList
@@ -2838,7 +2834,7 @@ await client.ats.interviews.create({
-Returns a `ScheduledInterview` object with the given `id`. +Returns a list of `Engagement` objects.
@@ -2854,7 +2850,9 @@ Returns a `ScheduledInterview` object with the given `id`.
```typescript -await client.ats.interviews.retrieve("id"); +await client.crm.engagements.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -2870,15 +2868,7 @@ await client.ats.interviews.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.InterviewsRetrieveRequest` +**request:** `Merge.crm.EngagementsListRequest`
@@ -2886,7 +2876,7 @@ await client.ats.interviews.retrieve("id");
-**requestOptions:** `Interviews.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -2897,7 +2887,7 @@ await client.ats.interviews.retrieve("id");
-
client.ats.interviews.metaPostRetrieve() -> Merge.MetaResponse +
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse
@@ -2909,7 +2899,7 @@ await client.ats.interviews.retrieve("id");
-Returns metadata for `ScheduledInterview` POSTs. +Creates an `Engagement` object with the given values.
@@ -2925,7 +2915,9 @@ Returns metadata for `ScheduledInterview` POSTs.
```typescript -await client.ats.interviews.metaPostRetrieve(); +await client.crm.engagements.create({ + model: {}, +}); ```
@@ -2941,7 +2933,15 @@ await client.ats.interviews.metaPostRetrieve();
-**requestOptions:** `Interviews.RequestOptions` +**request:** `Merge.crm.EngagementEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Engagements.RequestOptions`
@@ -2952,9 +2952,7 @@ await client.ats.interviews.metaPostRetrieve();
-## Ats Issues - -
client.ats.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement
@@ -2966,7 +2964,7 @@ await client.ats.interviews.metaPostRetrieve();
-Gets all issues for Organization. +Returns an `Engagement` object with the given `id`.
@@ -2982,9 +2980,7 @@ Gets all issues for Organization.
```typescript -await client.ats.issues.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.engagements.retrieve("id"); ```
@@ -3000,7 +2996,7 @@ await client.ats.issues.list({
-**request:** `Merge.ats.IssuesListRequest` +**id:** `string`
@@ -3008,7 +3004,15 @@ await client.ats.issues.list({
-**requestOptions:** `Issues.RequestOptions` +**request:** `Merge.crm.EngagementsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Engagements.RequestOptions`
@@ -3019,7 +3023,7 @@ await client.ats.issues.list({
-
client.ats.issues.retrieve(id) -> Merge.Issue +
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse
@@ -3031,7 +3035,7 @@ await client.ats.issues.list({
-Get a specific issue. +Updates an `Engagement` object with the given `id`.
@@ -3047,7 +3051,9 @@ Get a specific issue.
```typescript -await client.ats.issues.retrieve("id"); +await client.crm.engagements.partialUpdate("id", { + model: {}, +}); ```
@@ -3071,7 +3077,15 @@ await client.ats.issues.retrieve("id");
-**requestOptions:** `Issues.RequestOptions` +**request:** `Merge.crm.PatchedEngagementEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Engagements.RequestOptions`
@@ -3082,9 +3096,7 @@ await client.ats.issues.retrieve("id");
-## Ats JobInterviewStages - -
client.ats.jobInterviewStages.list({ ...params }) -> Merge.PaginatedJobInterviewStageList +
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -3096,7 +3108,7 @@ await client.ats.issues.retrieve("id");
-Returns a list of `JobInterviewStage` objects. +Returns metadata for `Engagement` PATCHs.
@@ -3112,9 +3124,7 @@ Returns a list of `JobInterviewStage` objects.
```typescript -await client.ats.jobInterviewStages.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.engagements.metaPatchRetrieve("id"); ```
@@ -3130,7 +3140,7 @@ await client.ats.jobInterviewStages.list({
-**request:** `Merge.ats.JobInterviewStagesListRequest` +**id:** `string`
@@ -3138,7 +3148,7 @@ await client.ats.jobInterviewStages.list({
-**requestOptions:** `JobInterviewStages.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -3149,7 +3159,7 @@ await client.ats.jobInterviewStages.list({
-
client.ats.jobInterviewStages.retrieve(id, { ...params }) -> Merge.JobInterviewStage +
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse
@@ -3161,7 +3171,7 @@ await client.ats.jobInterviewStages.list({
-Returns a `JobInterviewStage` object with the given `id`. +Returns metadata for `Engagement` POSTs.
@@ -3177,7 +3187,7 @@ Returns a `JobInterviewStage` object with the given `id`.
```typescript -await client.ats.jobInterviewStages.retrieve("id"); +await client.crm.engagements.metaPostRetrieve(); ```
@@ -3193,23 +3203,7 @@ await client.ats.jobInterviewStages.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobInterviewStagesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `JobInterviewStages.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -3220,9 +3214,7 @@ await client.ats.jobInterviewStages.retrieve("id");
-## Ats JobPostings - -
client.ats.jobPostings.list({ ...params }) -> Merge.PaginatedJobPostingList +
client.crm.engagements.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -3234,7 +3226,7 @@ await client.ats.jobInterviewStages.retrieve("id");
-Returns a list of `JobPosting` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -3250,7 +3242,7 @@ Returns a list of `JobPosting` objects.
```typescript -await client.ats.jobPostings.list({ +await client.crm.engagements.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -3268,7 +3260,7 @@ await client.ats.jobPostings.list({
-**request:** `Merge.ats.JobPostingsListRequest` +**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest`
@@ -3276,7 +3268,7 @@ await client.ats.jobPostings.list({
-**requestOptions:** `JobPostings.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -3287,7 +3279,9 @@ await client.ats.jobPostings.list({
-
client.ats.jobPostings.retrieve(id, { ...params }) -> Merge.JobPosting +## Crm FieldMapping + +
client.crm.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -3299,7 +3293,7 @@ await client.ats.jobPostings.list({
-Returns a `JobPosting` object with the given `id`. +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -3315,7 +3309,7 @@ Returns a `JobPosting` object with the given `id`.
```typescript -await client.ats.jobPostings.retrieve("id"); +await client.crm.fieldMapping.fieldMappingsRetrieve(); ```
@@ -3331,15 +3325,7 @@ await client.ats.jobPostings.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobPostingsRetrieveRequest` +**request:** `Merge.crm.FieldMappingsRetrieveRequest`
@@ -3347,7 +3333,7 @@ await client.ats.jobPostings.retrieve("id");
-**requestOptions:** `JobPostings.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -3358,9 +3344,7 @@ await client.ats.jobPostings.retrieve("id");
-## Ats Jobs - -
client.ats.jobs.list({ ...params }) -> Merge.PaginatedJobList +
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -3372,7 +3356,7 @@ await client.ats.jobPostings.retrieve("id");
-Returns a list of `Job` objects. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -3388,8 +3372,13 @@ Returns a list of `Job` objects.
```typescript -await client.ats.jobs.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.crm.fieldMapping.fieldMappingsCreate({ + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", }); ``` @@ -3406,7 +3395,7 @@ await client.ats.jobs.list({
-**request:** `Merge.ats.JobsListRequest` +**request:** `Merge.crm.CreateFieldMappingRequest`
@@ -3414,7 +3403,7 @@ await client.ats.jobs.list({
-**requestOptions:** `Jobs.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -3425,7 +3414,7 @@ await client.ats.jobs.list({
-
client.ats.jobs.retrieve(id, { ...params }) -> Merge.Job +
client.crm.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -3437,7 +3426,7 @@ await client.ats.jobs.list({
-Returns a `Job` object with the given `id`. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -3453,7 +3442,7 @@ Returns a `Job` object with the given `id`.
```typescript -await client.ats.jobs.retrieve("id"); +await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -3469,15 +3458,7 @@ await client.ats.jobs.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.JobsRetrieveRequest` +**fieldMappingId:** `string`
@@ -3485,7 +3466,7 @@ await client.ats.jobs.retrieve("id");
-**requestOptions:** `Jobs.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -3496,7 +3477,7 @@ await client.ats.jobs.retrieve("id");
-
client.ats.jobs.screeningQuestionsList(jobId, { ...params }) -> Merge.PaginatedScreeningQuestionList +
client.crm.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -3508,7 +3489,7 @@ await client.ats.jobs.retrieve("id");
-Returns a list of `ScreeningQuestion` objects. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -3524,9 +3505,7 @@ Returns a list of `ScreeningQuestion` objects.
```typescript -await client.ats.jobs.screeningQuestionsList("job_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -3542,7 +3521,7 @@ await client.ats.jobs.screeningQuestionsList("job_id", {
-**jobId:** `string` +**fieldMappingId:** `string`
@@ -3550,7 +3529,7 @@ await client.ats.jobs.screeningQuestionsList("job_id", {
-**request:** `Merge.ats.JobsScreeningQuestionsListRequest` +**request:** `Merge.crm.PatchedEditFieldMappingRequest`
@@ -3558,7 +3537,7 @@ await client.ats.jobs.screeningQuestionsList("job_id", {
-**requestOptions:** `Jobs.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -3569,9 +3548,7 @@ await client.ats.jobs.screeningQuestionsList("job_id", {
-## Ats LinkToken - -
client.ats.linkToken.create({ ...params }) -> Merge.LinkToken +
client.crm.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -3583,7 +3560,7 @@ await client.ats.jobs.screeningQuestionsList("job_id", {
-Creates a link token to be used when linking a new end user. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -3599,12 +3576,7 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.ats.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], -}); +await client.crm.fieldMapping.remoteFieldsRetrieve(); ```
@@ -3620,7 +3592,7 @@ await client.ats.linkToken.create({
-**request:** `Merge.ats.EndUserDetailsRequest` +**request:** `Merge.crm.RemoteFieldsRetrieveRequest`
@@ -3628,7 +3600,7 @@ await client.ats.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -3639,9 +3611,7 @@ await client.ats.linkToken.create({
-## Ats LinkedAccounts - -
client.ats.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -3653,7 +3623,7 @@ await client.ats.linkToken.create({
-List linked accounts for your organization. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -3669,9 +3639,7 @@ List linked accounts for your organization.
```typescript -await client.ats.linkedAccounts.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.fieldMapping.targetFieldsRetrieve(); ```
@@ -3687,15 +3655,7 @@ await client.ats.linkedAccounts.list({
-**request:** `Merge.ats.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccounts.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -3706,9 +3666,9 @@ await client.ats.linkedAccounts.list({
-## Ats Offers +## Crm GenerateKey -
client.ats.offers.list({ ...params }) -> Merge.PaginatedOfferList +
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -3720,7 +3680,7 @@ await client.ats.linkedAccounts.list({
-Returns a list of `Offer` objects. +Create a remote key.
@@ -3736,8 +3696,8 @@ Returns a list of `Offer` objects.
```typescript -await client.ats.offers.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.crm.generateKey.create({ + name: "Remote Deployment Key 1", }); ``` @@ -3754,7 +3714,7 @@ await client.ats.offers.list({
-**request:** `Merge.ats.OffersListRequest` +**request:** `Merge.crm.GenerateRemoteKeyRequest`
@@ -3762,7 +3722,7 @@ await client.ats.offers.list({
-**requestOptions:** `Offers.RequestOptions` +**requestOptions:** `GenerateKey.RequestOptions`
@@ -3773,7 +3733,9 @@ await client.ats.offers.list({
-
client.ats.offers.retrieve(id, { ...params }) -> Merge.Offer +## Crm Issues + +
client.crm.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -3785,7 +3747,7 @@ await client.ats.offers.list({
-Returns an `Offer` object with the given `id`. +Gets all issues for Organization.
@@ -3801,7 +3763,9 @@ Returns an `Offer` object with the given `id`.
```typescript -await client.ats.offers.retrieve("id"); +await client.crm.issues.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -3817,15 +3781,7 @@ await client.ats.offers.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.OffersRetrieveRequest` +**request:** `Merge.crm.IssuesListRequest`
@@ -3833,7 +3789,7 @@ await client.ats.offers.retrieve("id");
-**requestOptions:** `Offers.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -3844,9 +3800,7 @@ await client.ats.offers.retrieve("id");
-## Ats Offices - -
client.ats.offices.list({ ...params }) -> Merge.PaginatedOfficeList +
client.crm.issues.retrieve(id) -> Merge.Issue
@@ -3858,7 +3812,7 @@ await client.ats.offers.retrieve("id");
-Returns a list of `Office` objects. +Get a specific issue.
@@ -3874,9 +3828,7 @@ Returns a list of `Office` objects.
```typescript -await client.ats.offices.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.issues.retrieve("id"); ```
@@ -3892,7 +3844,7 @@ await client.ats.offices.list({
-**request:** `Merge.ats.OfficesListRequest` +**id:** `string`
@@ -3900,7 +3852,7 @@ await client.ats.offices.list({
-**requestOptions:** `Offices.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -3911,7 +3863,9 @@ await client.ats.offices.list({
-
client.ats.offices.retrieve(id, { ...params }) -> Merge.Office +## Crm Leads + +
client.crm.leads.list({ ...params }) -> Merge.PaginatedLeadList
@@ -3923,7 +3877,7 @@ await client.ats.offices.list({
-Returns an `Office` object with the given `id`. +Returns a list of `Lead` objects.
@@ -3939,7 +3893,9 @@ Returns an `Office` object with the given `id`.
```typescript -await client.ats.offices.retrieve("id"); +await client.crm.leads.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -3955,15 +3911,7 @@ await client.ats.offices.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.OfficesRetrieveRequest` +**request:** `Merge.crm.LeadsListRequest`
@@ -3971,7 +3919,7 @@ await client.ats.offices.retrieve("id");
-**requestOptions:** `Offices.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -3982,9 +3930,7 @@ await client.ats.offices.retrieve("id");
-## Ats Passthrough - -
client.ats.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.crm.leads.create({ ...params }) -> Merge.LeadResponse
@@ -3996,7 +3942,7 @@ await client.ats.offices.retrieve("id");
-Pull data from an endpoint not currently supported by Merge. +Creates a `Lead` object with the given values.
@@ -4012,9 +3958,8 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.ats.passthrough.create({ - method: "GET", - path: "/scooters", +await client.crm.leads.create({ + model: {}, }); ``` @@ -4031,7 +3976,7 @@ await client.ats.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.crm.LeadEndpointRequest`
@@ -4039,7 +3984,7 @@ await client.ats.passthrough.create({
-**requestOptions:** `Passthrough.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -4050,9 +3995,7 @@ await client.ats.passthrough.create({
-## Ats RegenerateKey - -
client.ats.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead
@@ -4064,7 +4007,7 @@ await client.ats.passthrough.create({
-Exchange remote keys. +Returns a `Lead` object with the given `id`.
@@ -4080,9 +4023,7 @@ Exchange remote keys.
```typescript -await client.ats.regenerateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.crm.leads.retrieve("id"); ```
@@ -4098,7 +4039,15 @@ await client.ats.regenerateKey.create({
-**request:** `Merge.ats.RemoteKeyForRegenerationRequest` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.LeadsRetrieveRequest`
@@ -4106,7 +4055,7 @@ await client.ats.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -4117,9 +4066,7 @@ await client.ats.regenerateKey.create({
-## Ats RejectReasons - -
client.ats.rejectReasons.list({ ...params }) -> Merge.PaginatedRejectReasonList +
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse
@@ -4131,7 +4078,7 @@ await client.ats.regenerateKey.create({
-Returns a list of `RejectReason` objects. +Returns metadata for `Lead` POSTs.
@@ -4147,9 +4094,7 @@ Returns a list of `RejectReason` objects.
```typescript -await client.ats.rejectReasons.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.leads.metaPostRetrieve(); ```
@@ -4165,15 +4110,7 @@ await client.ats.rejectReasons.list({
-**request:** `Merge.ats.RejectReasonsListRequest` - -
-
- -
-
- -**requestOptions:** `RejectReasons.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -4184,7 +4121,7 @@ await client.ats.rejectReasons.list({
-
client.ats.rejectReasons.retrieve(id, { ...params }) -> Merge.RejectReason +
client.crm.leads.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -4196,7 +4133,7 @@ await client.ats.rejectReasons.list({
-Returns a `RejectReason` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -4212,7 +4149,9 @@ Returns a `RejectReason` object with the given `id`.
```typescript -await client.ats.rejectReasons.retrieve("id"); +await client.crm.leads.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -4228,15 +4167,7 @@ await client.ats.rejectReasons.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.RejectReasonsRetrieveRequest` +**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest`
@@ -4244,7 +4175,7 @@ await client.ats.rejectReasons.retrieve("id");
-**requestOptions:** `RejectReasons.RequestOptions` +**requestOptions:** `Leads.RequestOptions`
@@ -4255,9 +4186,9 @@ await client.ats.rejectReasons.retrieve("id");
-## Ats Scorecards +## Crm LinkToken -
client.ats.scorecards.list({ ...params }) -> Merge.PaginatedScorecardList +
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -4269,7 +4200,7 @@ await client.ats.rejectReasons.retrieve("id");
-Returns a list of `Scorecard` objects. +Creates a link token to be used when linking a new end user.
@@ -4285,8 +4216,11 @@ Returns a list of `Scorecard` objects.
```typescript -await client.ats.scorecards.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.crm.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], }); ``` @@ -4303,7 +4237,7 @@ await client.ats.scorecards.list({
-**request:** `Merge.ats.ScorecardsListRequest` +**request:** `Merge.crm.EndUserDetailsRequest`
@@ -4311,7 +4245,7 @@ await client.ats.scorecards.list({
-**requestOptions:** `Scorecards.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -4322,7 +4256,9 @@ await client.ats.scorecards.list({
-
client.ats.scorecards.retrieve(id, { ...params }) -> Merge.Scorecard +## Crm LinkedAccounts + +
client.crm.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -4334,7 +4270,7 @@ await client.ats.scorecards.list({
-Returns a `Scorecard` object with the given `id`. +List linked accounts for your organization.
@@ -4350,7 +4286,9 @@ Returns a `Scorecard` object with the given `id`.
```typescript -await client.ats.scorecards.retrieve("id"); +await client.crm.linkedAccounts.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -4366,15 +4304,7 @@ await client.ats.scorecards.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.ScorecardsRetrieveRequest` +**request:** `Merge.crm.LinkedAccountsListRequest`
@@ -4382,7 +4312,7 @@ await client.ats.scorecards.retrieve("id");
-**requestOptions:** `Scorecards.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -4393,9 +4323,9 @@ await client.ats.scorecards.retrieve("id");
-## Ats SyncStatus +## Crm Notes -
client.ats.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.crm.notes.list({ ...params }) -> Merge.PaginatedNoteList
@@ -4407,7 +4337,7 @@ await client.ats.scorecards.retrieve("id");
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns a list of `Note` objects.
@@ -4423,7 +4353,7 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.ats.syncStatus.list({ +await client.crm.notes.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -4441,7 +4371,7 @@ await client.ats.syncStatus.list({
-**request:** `Merge.ats.SyncStatusListRequest` +**request:** `Merge.crm.NotesListRequest`
@@ -4449,7 +4379,7 @@ await client.ats.syncStatus.list({
-**requestOptions:** `SyncStatus.RequestOptions` +**requestOptions:** `Notes.RequestOptions`
@@ -4460,9 +4390,7 @@ await client.ats.syncStatus.list({
-## Ats ForceResync - -
client.ats.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.crm.notes.create({ ...params }) -> Merge.NoteResponse
@@ -4474,7 +4402,7 @@ await client.ats.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Creates a `Note` object with the given values.
@@ -4490,7 +4418,9 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.ats.forceResync.syncStatusResyncCreate(); +await client.crm.notes.create({ + model: {}, +}); ```
@@ -4506,7 +4436,15 @@ await client.ats.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**request:** `Merge.crm.NoteEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Notes.RequestOptions`
@@ -4517,9 +4455,7 @@ await client.ats.forceResync.syncStatusResyncCreate();
-## Ats Tags - -
client.ats.tags.list({ ...params }) -> Merge.PaginatedTagList +
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note
@@ -4531,7 +4467,7 @@ await client.ats.forceResync.syncStatusResyncCreate();
-Returns a list of `Tag` objects. +Returns a `Note` object with the given `id`.
@@ -4547,9 +4483,7 @@ Returns a list of `Tag` objects.
```typescript -await client.ats.tags.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.notes.retrieve("id"); ```
@@ -4565,7 +4499,7 @@ await client.ats.tags.list({
-**request:** `Merge.ats.TagsListRequest` +**id:** `string`
@@ -4573,7 +4507,15 @@ await client.ats.tags.list({
-**requestOptions:** `Tags.RequestOptions` +**request:** `Merge.crm.NotesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Notes.RequestOptions`
@@ -4584,9 +4526,7 @@ await client.ats.tags.list({
-## Ats Users - -
client.ats.users.list({ ...params }) -> Merge.PaginatedRemoteUserList +
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse
@@ -4598,7 +4538,7 @@ await client.ats.tags.list({
-Returns a list of `RemoteUser` objects. +Returns metadata for `Note` POSTs.
@@ -4614,9 +4554,7 @@ Returns a list of `RemoteUser` objects.
```typescript -await client.ats.users.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.crm.notes.metaPostRetrieve(); ```
@@ -4632,15 +4570,7 @@ await client.ats.users.list({
-**request:** `Merge.ats.UsersListRequest` - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Notes.RequestOptions`
@@ -4651,7 +4581,7 @@ await client.ats.users.list({
-
client.ats.users.retrieve(id, { ...params }) -> Merge.RemoteUser +
client.crm.notes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -4663,7 +4593,7 @@ await client.ats.users.list({
-Returns a `RemoteUser` object with the given `id`. +Returns a list of `RemoteFieldClass` objects.
@@ -4679,7 +4609,9 @@ Returns a `RemoteUser` object with the given `id`.
```typescript -await client.ats.users.retrieve("id"); +await client.crm.notes.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -4695,15 +4627,7 @@ await client.ats.users.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.ats.UsersRetrieveRequest` +**request:** `Merge.crm.NotesRemoteFieldClassesListRequest`
@@ -4711,7 +4635,7 @@ await client.ats.users.retrieve("id");
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Notes.RequestOptions`
@@ -4722,9 +4646,9 @@ await client.ats.users.retrieve("id");
-## Ats WebhookReceivers +## Crm Opportunities -
client.ats.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.crm.opportunities.list({ ...params }) -> Merge.PaginatedOpportunityList
@@ -4736,7 +4660,7 @@ await client.ats.users.retrieve("id");
-Returns a list of `WebhookReceiver` objects. +Returns a list of `Opportunity` objects.
@@ -4752,7 +4676,9 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.ats.webhookReceivers.list(); +await client.crm.opportunities.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -4768,7 +4694,15 @@ await client.ats.webhookReceivers.list();
-**requestOptions:** `WebhookReceivers.RequestOptions` +**request:** `Merge.crm.OpportunitiesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Opportunities.RequestOptions`
@@ -4779,7 +4713,7 @@ await client.ats.webhookReceivers.list();
-
client.ats.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse
@@ -4791,7 +4725,7 @@ await client.ats.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Creates an `Opportunity` object with the given values.
@@ -4807,9 +4741,8 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.ats.webhookReceivers.create({ - event: "event", - isActive: true, +await client.crm.opportunities.create({ + model: {}, }); ``` @@ -4826,7 +4759,7 @@ await client.ats.webhookReceivers.create({
-**request:** `Merge.ats.WebhookReceiverRequest` +**request:** `Merge.crm.OpportunityEndpointRequest`
@@ -4834,7 +4767,7 @@ await client.ats.webhookReceivers.create({
-**requestOptions:** `WebhookReceivers.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -4845,9 +4778,7 @@ await client.ats.webhookReceivers.create({
-## Filestorage AccountDetails - -
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails +
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity
@@ -4859,7 +4790,7 @@ await client.ats.webhookReceivers.create({
-Get details for a linked account. +Returns an `Opportunity` object with the given `id`.
@@ -4875,7 +4806,7 @@ Get details for a linked account.
```typescript -await client.filestorage.accountDetails.retrieve(); +await client.crm.opportunities.retrieve("id"); ```
@@ -4891,7 +4822,23 @@ await client.filestorage.accountDetails.retrieve();
-**requestOptions:** `AccountDetails.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.OpportunitiesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Opportunities.RequestOptions`
@@ -4902,9 +4849,7 @@ await client.filestorage.accountDetails.retrieve();
-## Filestorage AccountToken - -
client.filestorage.accountToken.retrieve(publicToken) -> Merge.AccountToken +
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse
@@ -4916,7 +4861,7 @@ await client.filestorage.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Updates an `Opportunity` object with the given `id`.
@@ -4932,7 +4877,9 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.filestorage.accountToken.retrieve("public_token"); +await client.crm.opportunities.partialUpdate("id", { + model: {}, +}); ```
@@ -4948,7 +4895,15 @@ await client.filestorage.accountToken.retrieve("public_token");
-**publicToken:** `string` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.crm.PatchedOpportunityEndpointRequest`
@@ -4956,7 +4911,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-**requestOptions:** `AccountToken.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -4967,9 +4922,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-## Filestorage AsyncPassthrough - -
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -4981,7 +4934,7 @@ await client.filestorage.accountToken.retrieve("public_token");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns metadata for `Opportunity` PATCHs.
@@ -4997,10 +4950,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.filestorage.asyncPassthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.crm.opportunities.metaPatchRetrieve("id"); ```
@@ -5016,7 +4966,7 @@ await client.filestorage.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -5024,7 +4974,7 @@ await client.filestorage.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -5035,7 +4985,7 @@ await client.filestorage.asyncPassthrough.create({
-
client.filestorage.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse +
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse
@@ -5047,7 +4997,7 @@ await client.filestorage.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Returns metadata for `Opportunity` POSTs.
@@ -5063,7 +5013,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.crm.opportunities.metaPostRetrieve(); ```
@@ -5079,15 +5029,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-**asyncPassthroughReceiptId:** `string` - -
-
- -
-
- -**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -5098,9 +5040,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-## Filestorage AuditTrail - -
client.filestorage.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -5112,7 +5052,7 @@ await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id
-Gets a list of audit trail events. +Returns a list of `RemoteFieldClass` objects.
@@ -5128,7 +5068,7 @@ Gets a list of audit trail events.
```typescript -await client.filestorage.auditTrail.list({ +await client.crm.opportunities.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -5146,7 +5086,7 @@ await client.filestorage.auditTrail.list({
-**request:** `Merge.filestorage.AuditTrailListRequest` +**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest`
@@ -5154,7 +5094,7 @@ await client.filestorage.auditTrail.list({
-**requestOptions:** `AuditTrail.RequestOptions` +**requestOptions:** `Opportunities.RequestOptions`
@@ -5165,9 +5105,9 @@ await client.filestorage.auditTrail.list({
-## Filestorage AvailableActions +## Crm Passthrough -
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions +
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -5179,7 +5119,7 @@ await client.filestorage.auditTrail.list({
-Returns a list of models and actions available for an account. +Pull data from an endpoint not currently supported by Merge.
@@ -5195,7 +5135,10 @@ Returns a list of models and actions available for an account.
```typescript -await client.filestorage.availableActions.retrieve(); +await client.crm.passthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -5211,7 +5154,15 @@ await client.filestorage.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `Passthrough.RequestOptions`
@@ -5222,9 +5173,9 @@ await client.filestorage.availableActions.retrieve();
-## Filestorage Scopes +## Crm RegenerateKey -
client.filestorage.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -5236,7 +5187,7 @@ await client.filestorage.availableActions.retrieve();
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Exchange remote keys.
@@ -5252,7 +5203,9 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.filestorage.scopes.defaultScopesRetrieve(); +await client.crm.regenerateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -5268,7 +5221,15 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.crm.RemoteKeyForRegenerationRequest` + +
+
+ +
+
+ +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -5279,7 +5240,9 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +## Crm Stages + +
client.crm.stages.list({ ...params }) -> Merge.PaginatedStageList
@@ -5291,7 +5254,7 @@ await client.filestorage.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `Stage` objects.
@@ -5307,7 +5270,9 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.filestorage.scopes.linkedAccountScopesRetrieve(); +await client.crm.stages.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -5323,7 +5288,15 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.crm.StagesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Stages.RequestOptions`
@@ -5334,7 +5307,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage
@@ -5346,7 +5319,7 @@ await client.filestorage.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Returns a `Stage` object with the given `id`.
@@ -5362,33 +5335,7 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.filestorage.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"], - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], -}); +await client.crm.stages.retrieve("id"); ```
@@ -5404,7 +5351,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest` +**id:** `string`
@@ -5412,7 +5359,15 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.crm.StagesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Stages.RequestOptions`
@@ -5423,9 +5378,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-## Filestorage DeleteAccount - -
client.filestorage.deleteAccount.delete() -> void +
client.crm.stages.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -5437,7 +5390,7 @@ await client.filestorage.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a list of `RemoteFieldClass` objects.
@@ -5453,7 +5406,9 @@ Delete a linked account.
```typescript -await client.filestorage.deleteAccount.delete(); +await client.crm.stages.remoteFieldClassesList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -5469,7 +5424,15 @@ await client.filestorage.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` +**request:** `Merge.crm.StagesRemoteFieldClassesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Stages.RequestOptions`
@@ -5480,9 +5443,9 @@ await client.filestorage.deleteAccount.delete();
-## Filestorage Drives +## Crm SyncStatus -
client.filestorage.drives.list({ ...params }) -> Merge.PaginatedDriveList +
client.crm.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -5494,7 +5457,7 @@ await client.filestorage.deleteAccount.delete();
-Returns a list of `Drive` objects. +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -5510,7 +5473,7 @@ Returns a list of `Drive` objects.
```typescript -await client.filestorage.drives.list({ +await client.crm.syncStatus.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -5528,7 +5491,7 @@ await client.filestorage.drives.list({
-**request:** `Merge.filestorage.DrivesListRequest` +**request:** `Merge.crm.SyncStatusListRequest`
@@ -5536,7 +5499,7 @@ await client.filestorage.drives.list({
-**requestOptions:** `Drives.RequestOptions` +**requestOptions:** `SyncStatus.RequestOptions`
@@ -5547,7 +5510,9 @@ await client.filestorage.drives.list({
-
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive +## Crm ForceResync + +
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -5559,7 +5524,7 @@ await client.filestorage.drives.list({
-Returns a `Drive` object with the given `id`. +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
@@ -5575,7 +5540,7 @@ Returns a `Drive` object with the given `id`.
```typescript -await client.filestorage.drives.retrieve("id"); +await client.crm.forceResync.syncStatusResyncCreate(); ```
@@ -5591,23 +5556,7 @@ await client.filestorage.drives.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.DrivesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Drives.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -5618,9 +5567,9 @@ await client.filestorage.drives.retrieve("id");
-## Filestorage FieldMapping +## Crm Tasks -
client.filestorage.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +
client.crm.tasks.list({ ...params }) -> Merge.PaginatedTaskList
@@ -5632,7 +5581,7 @@ await client.filestorage.drives.retrieve("id");
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns a list of `Task` objects.
@@ -5648,7 +5597,9 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.filestorage.fieldMapping.fieldMappingsRetrieve(); +await client.crm.tasks.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -5664,7 +5615,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve();
-**request:** `Merge.filestorage.FieldMappingsRetrieveRequest` +**request:** `Merge.crm.TasksListRequest`
@@ -5672,7 +5623,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -5683,7 +5634,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve();
-
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse
@@ -5695,7 +5646,7 @@ await client.filestorage.fieldMapping.fieldMappingsRetrieve();
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Creates a `Task` object with the given values.
@@ -5711,13 +5662,8 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.filestorage.fieldMapping.fieldMappingsCreate({ - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", +await client.crm.tasks.create({ + model: {}, }); ``` @@ -5734,7 +5680,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.filestorage.CreateFieldMappingRequest` +**request:** `Merge.crm.TaskEndpointRequest`
@@ -5742,7 +5688,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -5753,7 +5699,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-
client.filestorage.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task
@@ -5765,7 +5711,7 @@ await client.filestorage.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a `Task` object with the given `id`.
@@ -5781,7 +5727,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.crm.tasks.retrieve("id"); ```
@@ -5791,13 +5737,21 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); #### ⚙️ Parameters -
-
+
+
+ +
+
+ +**id:** `string` + +
+
-**fieldMappingId:** `string` +**request:** `Merge.crm.TasksRetrieveRequest`
@@ -5805,7 +5759,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -5816,7 +5770,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse
@@ -5828,7 +5782,7 @@ await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Updates a `Task` object with the given `id`.
@@ -5844,7 +5798,9 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.crm.tasks.partialUpdate("id", { + model: {}, +}); ```
@@ -5860,7 +5816,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**fieldMappingId:** `string` +**id:** `string`
@@ -5868,7 +5824,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**request:** `Merge.filestorage.PatchedEditFieldMappingRequest` +**request:** `Merge.crm.PatchedTaskEndpointRequest`
@@ -5876,7 +5832,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -5887,7 +5843,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.crm.tasks.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -5899,7 +5855,7 @@ await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns metadata for `Task` PATCHs.
@@ -5915,7 +5871,7 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.filestorage.fieldMapping.remoteFieldsRetrieve(); +await client.crm.tasks.metaPatchRetrieve("id"); ```
@@ -5931,7 +5887,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest` +**id:** `string`
@@ -5939,7 +5895,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -5950,7 +5906,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve();
-
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +
client.crm.tasks.metaPostRetrieve() -> Merge.MetaResponse
@@ -5962,7 +5918,7 @@ await client.filestorage.fieldMapping.remoteFieldsRetrieve();
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Returns metadata for `Task` POSTs.
@@ -5978,7 +5934,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.filestorage.fieldMapping.targetFieldsRetrieve(); +await client.crm.tasks.metaPostRetrieve(); ```
@@ -5994,7 +5950,7 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -6005,9 +5961,7 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-## Filestorage Files - -
client.filestorage.files.list({ ...params }) -> Merge.PaginatedFileList +
client.crm.tasks.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -6019,7 +5973,7 @@ await client.filestorage.fieldMapping.targetFieldsRetrieve();
-Returns a list of `File` objects. +Returns a list of `RemoteFieldClass` objects.
@@ -6035,7 +5989,7 @@ Returns a list of `File` objects.
```typescript -await client.filestorage.files.list({ +await client.crm.tasks.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -6053,7 +6007,7 @@ await client.filestorage.files.list({
-**request:** `Merge.filestorage.FilesListRequest` +**request:** `Merge.crm.TasksRemoteFieldClassesListRequest`
@@ -6061,7 +6015,7 @@ await client.filestorage.files.list({
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `Tasks.RequestOptions`
@@ -6072,7 +6026,9 @@ await client.filestorage.files.list({
-
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse +## Crm Users + +
client.crm.users.list({ ...params }) -> Merge.PaginatedUserList
@@ -6084,7 +6040,7 @@ await client.filestorage.files.list({
-Creates a `File` object with the given values. +Returns a list of `User` objects.
@@ -6100,8 +6056,8 @@ Creates a `File` object with the given values.
```typescript -await client.filestorage.files.create({ - model: {}, +await client.crm.users.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -6118,7 +6074,7 @@ await client.filestorage.files.create({
-**request:** `Merge.filestorage.FileStorageFileEndpointRequest` +**request:** `Merge.crm.UsersListRequest`
@@ -6126,7 +6082,7 @@ await client.filestorage.files.create({
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -6137,7 +6093,7 @@ await client.filestorage.files.create({
-
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_ +
client.crm.users.retrieve(id, { ...params }) -> Merge.User
@@ -6149,7 +6105,7 @@ await client.filestorage.files.create({
-Returns a `File` object with the given `id`. +Returns a `User` object with the given `id`.
@@ -6165,7 +6121,7 @@ Returns a `File` object with the given `id`.
```typescript -await client.filestorage.files.retrieve("id"); +await client.crm.users.retrieve("id"); ```
@@ -6189,7 +6145,7 @@ await client.filestorage.files.retrieve("id");
-**request:** `Merge.filestorage.FilesRetrieveRequest` +**request:** `Merge.crm.UsersRetrieveRequest`
@@ -6197,7 +6153,7 @@ await client.filestorage.files.retrieve("id");
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -6208,7 +6164,7 @@ await client.filestorage.files.retrieve("id");
-
client.filestorage.files.downloadRequestMetaRetrieve(id, { ...params }) -> Merge.DownloadRequestMeta +
client.crm.users.ignoreCreate(modelId, { ...params }) -> void
@@ -6220,7 +6176,7 @@ await client.filestorage.files.retrieve("id");
-Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party. +Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes.
@@ -6236,7 +6192,9 @@ Returns metadata to construct an authenticated file download request for a singu
```typescript -await client.filestorage.files.downloadRequestMetaRetrieve("id"); +await client.crm.users.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", +}); ```
@@ -6252,7 +6210,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id");
-**id:** `string` +**modelId:** `string`
@@ -6260,7 +6218,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id");
-**request:** `Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest` +**request:** `Merge.IgnoreCommonModelRequest`
@@ -6268,7 +6226,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id");
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -6279,7 +6237,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id");
-
client.filestorage.files.downloadRequestMetaList({ ...params }) -> Merge.PaginatedDownloadRequestMetaList +
client.crm.users.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList
@@ -6291,7 +6249,7 @@ await client.filestorage.files.downloadRequestMetaRetrieve("id");
-Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party. +Returns a list of `RemoteFieldClass` objects.
@@ -6307,7 +6265,7 @@ Returns metadata to construct authenticated file download requests, allowing you
```typescript -await client.filestorage.files.downloadRequestMetaList({ +await client.crm.users.remoteFieldClassesList({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -6325,7 +6283,7 @@ await client.filestorage.files.downloadRequestMetaList({
-**request:** `Merge.filestorage.FilesDownloadRequestMetaListRequest` +**request:** `Merge.crm.UsersRemoteFieldClassesListRequest`
@@ -6333,7 +6291,7 @@ await client.filestorage.files.downloadRequestMetaList({
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -6344,7 +6302,9 @@ await client.filestorage.files.downloadRequestMetaList({
-
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse +## Crm WebhookReceivers + +
client.crm.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -6356,7 +6316,7 @@ await client.filestorage.files.downloadRequestMetaList({
-Returns metadata for `FileStorageFile` POSTs. +Returns a list of `WebhookReceiver` objects.
@@ -6372,7 +6332,7 @@ Returns metadata for `FileStorageFile` POSTs.
```typescript -await client.filestorage.files.metaPostRetrieve(); +await client.crm.webhookReceivers.list(); ```
@@ -6388,7 +6348,7 @@ await client.filestorage.files.metaPostRetrieve();
-**requestOptions:** `Files.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -6399,9 +6359,7 @@ await client.filestorage.files.metaPostRetrieve();
-## Filestorage Folders - -
client.filestorage.folders.list({ ...params }) -> Merge.PaginatedFolderList +
client.crm.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -6413,7 +6371,7 @@ await client.filestorage.files.metaPostRetrieve();
-Returns a list of `Folder` objects. +Creates a `WebhookReceiver` object with the given values.
@@ -6429,8 +6387,9 @@ Returns a list of `Folder` objects.
```typescript -await client.filestorage.folders.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.crm.webhookReceivers.create({ + event: "event", + isActive: true, }); ``` @@ -6447,7 +6406,7 @@ await client.filestorage.folders.list({
-**request:** `Merge.filestorage.FoldersListRequest` +**request:** `Merge.crm.WebhookReceiverRequest`
@@ -6455,7 +6414,7 @@ await client.filestorage.folders.list({
-**requestOptions:** `Folders.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -6466,7 +6425,9 @@ await client.filestorage.folders.list({
-
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse +## Filestorage AccountDetails + +
client.filestorage.accountDetails.retrieve() -> Merge.AccountDetails
@@ -6478,7 +6439,7 @@ await client.filestorage.folders.list({
-Creates a `Folder` object with the given values. +Get details for a linked account.
@@ -6494,9 +6455,7 @@ Creates a `Folder` object with the given values.
```typescript -await client.filestorage.folders.create({ - model: {}, -}); +await client.filestorage.accountDetails.retrieve(); ```
@@ -6512,15 +6471,7 @@ await client.filestorage.folders.create({
-**request:** `Merge.filestorage.FileStorageFolderEndpointRequest` - -
-
- -
-
- -**requestOptions:** `Folders.RequestOptions` +**requestOptions:** `AccountDetails.RequestOptions`
@@ -6531,7 +6482,9 @@ await client.filestorage.folders.create({
-
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder +## Filestorage AccountToken + +
client.filestorage.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -6543,7 +6496,7 @@ await client.filestorage.folders.create({
-Returns a `Folder` object with the given `id`. +Returns the account token for the end user with the provided public token.
@@ -6559,7 +6512,7 @@ Returns a `Folder` object with the given `id`.
```typescript -await client.filestorage.folders.retrieve("id"); +await client.filestorage.accountToken.retrieve("public_token"); ```
@@ -6575,15 +6528,7 @@ await client.filestorage.folders.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.FoldersRetrieveRequest` +**publicToken:** `string`
@@ -6591,7 +6536,7 @@ await client.filestorage.folders.retrieve("id");
-**requestOptions:** `Folders.RequestOptions` +**requestOptions:** `AccountToken.RequestOptions`
@@ -6602,7 +6547,9 @@ await client.filestorage.folders.retrieve("id");
-
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage AsyncPassthrough + +
client.filestorage.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -6614,7 +6561,7 @@ await client.filestorage.folders.retrieve("id");
-Returns metadata for `FileStorageFolder` POSTs. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -6630,7 +6577,10 @@ Returns metadata for `FileStorageFolder` POSTs.
```typescript -await client.filestorage.folders.metaPostRetrieve(); +await client.filestorage.asyncPassthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -6646,7 +6596,15 @@ await client.filestorage.folders.metaPostRetrieve();
-**requestOptions:** `Folders.RequestOptions` +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -6657,9 +6615,7 @@ await client.filestorage.folders.metaPostRetrieve();
-## Filestorage GenerateKey - -
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.filestorage.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -6671,7 +6627,7 @@ await client.filestorage.folders.metaPostRetrieve();
-Create a remote key. +Retrieves data from earlier async-passthrough POST request
@@ -6687,9 +6643,7 @@ Create a remote key.
```typescript -await client.filestorage.generateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.filestorage.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -6705,7 +6659,7 @@ await client.filestorage.generateKey.create({
-**request:** `Merge.filestorage.GenerateRemoteKeyRequest` +**asyncPassthroughReceiptId:** `string`
@@ -6713,7 +6667,7 @@ await client.filestorage.generateKey.create({
-**requestOptions:** `GenerateKey.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -6724,9 +6678,9 @@ await client.filestorage.generateKey.create({
-## Filestorage Groups +## Filestorage AuditTrail -
client.filestorage.groups.list({ ...params }) -> Merge.PaginatedGroupList +
client.filestorage.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
@@ -6738,7 +6692,7 @@ await client.filestorage.generateKey.create({
-Returns a list of `Group` objects. +Gets a list of audit trail events.
@@ -6754,7 +6708,7 @@ Returns a list of `Group` objects.
```typescript -await client.filestorage.groups.list({ +await client.filestorage.auditTrail.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -6772,7 +6726,7 @@ await client.filestorage.groups.list({
-**request:** `Merge.filestorage.GroupsListRequest` +**request:** `Merge.filestorage.AuditTrailListRequest`
@@ -6780,7 +6734,7 @@ await client.filestorage.groups.list({
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -6791,7 +6745,9 @@ await client.filestorage.groups.list({
-
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group +## Filestorage AvailableActions + +
client.filestorage.availableActions.retrieve() -> Merge.AvailableActions
@@ -6803,7 +6759,7 @@ await client.filestorage.groups.list({
-Returns a `Group` object with the given `id`. +Returns a list of models and actions available for an account.
@@ -6819,7 +6775,7 @@ Returns a `Group` object with the given `id`.
```typescript -await client.filestorage.groups.retrieve("id"); +await client.filestorage.availableActions.retrieve(); ```
@@ -6835,23 +6791,7 @@ await client.filestorage.groups.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.filestorage.GroupsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `AvailableActions.RequestOptions`
@@ -6862,9 +6802,9 @@ await client.filestorage.groups.retrieve("id");
-## Filestorage Issues +## Filestorage Scopes -
client.filestorage.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.filestorage.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -6876,7 +6816,7 @@ await client.filestorage.groups.retrieve("id");
-Gets all issues for Organization. +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -6892,9 +6832,7 @@ Gets all issues for Organization.
```typescript -await client.filestorage.issues.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.filestorage.scopes.defaultScopesRetrieve(); ```
@@ -6910,15 +6848,7 @@ await client.filestorage.issues.list({
-**request:** `Merge.filestorage.IssuesListRequest` - -
-
- -
-
- -**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -6929,7 +6859,7 @@ await client.filestorage.issues.list({
-
client.filestorage.issues.retrieve(id) -> Merge.Issue +
client.filestorage.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -6941,7 +6871,7 @@ await client.filestorage.issues.list({
-Get a specific issue. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -6957,7 +6887,7 @@ Get a specific issue.
```typescript -await client.filestorage.issues.retrieve("id"); +await client.filestorage.scopes.linkedAccountScopesRetrieve(); ```
@@ -6973,15 +6903,7 @@ await client.filestorage.issues.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -6992,9 +6914,7 @@ await client.filestorage.issues.retrieve("id");
-## Filestorage LinkToken - -
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken +
client.filestorage.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -7006,7 +6926,7 @@ await client.filestorage.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -7022,11 +6942,32 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.filestorage.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], +await client.filestorage.scopes.linkedAccountScopesCreate({ + commonModels: [ + { + modelName: "Employee", + modelPermissions: { + READ: { + isEnabled: true, + }, + WRITE: { + isEnabled: false, + }, + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"], + }, + }, + { + modelName: "Benefit", + modelPermissions: { + WRITE: { + isEnabled: false, + }, + }, + }, + ], }); ``` @@ -7043,7 +6984,7 @@ await client.filestorage.linkToken.create({
-**request:** `Merge.filestorage.EndUserDetailsRequest` +**request:** `Merge.filestorage.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -7051,7 +6992,7 @@ await client.filestorage.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -7062,9 +7003,9 @@ await client.filestorage.linkToken.create({
-## Filestorage LinkedAccounts +## Filestorage DeleteAccount -
client.filestorage.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.filestorage.deleteAccount.delete() -> void
@@ -7076,7 +7017,7 @@ await client.filestorage.linkToken.create({
-List linked accounts for your organization. +Delete a linked account.
@@ -7092,9 +7033,7 @@ List linked accounts for your organization.
```typescript -await client.filestorage.linkedAccounts.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.filestorage.deleteAccount.delete(); ```
@@ -7110,15 +7049,7 @@ await client.filestorage.linkedAccounts.list({
-**request:** `Merge.filestorage.LinkedAccountsListRequest` - -
-
- -
-
- -**requestOptions:** `LinkedAccounts.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -7129,9 +7060,9 @@ await client.filestorage.linkedAccounts.list({
-## Filestorage Passthrough +## Filestorage Drives -
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.filestorage.drives.list({ ...params }) -> Merge.PaginatedDriveList
@@ -7143,7 +7074,7 @@ await client.filestorage.linkedAccounts.list({
-Pull data from an endpoint not currently supported by Merge. +Returns a list of `Drive` objects.
@@ -7159,9 +7090,8 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.filestorage.passthrough.create({ - method: "GET", - path: "/scooters", +await client.filestorage.drives.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -7178,7 +7108,7 @@ await client.filestorage.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.filestorage.DrivesListRequest`
@@ -7186,7 +7116,7 @@ await client.filestorage.passthrough.create({
-**requestOptions:** `Passthrough.RequestOptions` +**requestOptions:** `Drives.RequestOptions`
@@ -7197,9 +7127,7 @@ await client.filestorage.passthrough.create({
-## Filestorage RegenerateKey - -
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.filestorage.drives.retrieve(id, { ...params }) -> Merge.Drive
@@ -7211,7 +7139,7 @@ await client.filestorage.passthrough.create({
-Exchange remote keys. +Returns a `Drive` object with the given `id`.
@@ -7227,9 +7155,7 @@ Exchange remote keys.
```typescript -await client.filestorage.regenerateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.filestorage.drives.retrieve("id"); ```
@@ -7245,7 +7171,7 @@ await client.filestorage.regenerateKey.create({
-**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest` +**id:** `string`
@@ -7253,7 +7179,15 @@ await client.filestorage.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**request:** `Merge.filestorage.DrivesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Drives.RequestOptions`
@@ -7264,9 +7198,9 @@ await client.filestorage.regenerateKey.create({
-## Filestorage SyncStatus +## Filestorage FieldMapping -
client.filestorage.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.filestorage.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -7278,7 +7212,7 @@ await client.filestorage.regenerateKey.create({
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -7294,9 +7228,7 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.filestorage.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.filestorage.fieldMapping.fieldMappingsRetrieve(); ```
@@ -7312,7 +7244,7 @@ await client.filestorage.syncStatus.list({
-**request:** `Merge.filestorage.SyncStatusListRequest` +**request:** `Merge.filestorage.FieldMappingsRetrieveRequest`
@@ -7320,7 +7252,7 @@ await client.filestorage.syncStatus.list({
-**requestOptions:** `SyncStatus.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -7331,9 +7263,7 @@ await client.filestorage.syncStatus.list({
-## Filestorage ForceResync - -
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.filestorage.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -7345,7 +7275,7 @@ await client.filestorage.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -7361,7 +7291,14 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.filestorage.forceResync.syncStatusResyncCreate(); +await client.filestorage.fieldMapping.fieldMappingsCreate({ + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", +}); ```
@@ -7377,7 +7314,15 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**request:** `Merge.filestorage.CreateFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMapping.RequestOptions`
@@ -7388,9 +7333,7 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-## Filestorage Users - -
client.filestorage.users.list({ ...params }) -> Merge.PaginatedUserList +
client.filestorage.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -7402,7 +7345,7 @@ await client.filestorage.forceResync.syncStatusResyncCreate();
-Returns a list of `User` objects. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -7418,9 +7361,7 @@ Returns a list of `User` objects.
```typescript -await client.filestorage.users.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.filestorage.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -7436,7 +7377,7 @@ await client.filestorage.users.list({
-**request:** `Merge.filestorage.UsersListRequest` +**fieldMappingId:** `string`
@@ -7444,7 +7385,7 @@ await client.filestorage.users.list({
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -7455,7 +7396,7 @@ await client.filestorage.users.list({
-
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User +
client.filestorage.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -7467,7 +7408,7 @@ await client.filestorage.users.list({
-Returns a `User` object with the given `id`. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -7483,7 +7424,7 @@ Returns a `User` object with the given `id`.
```typescript -await client.filestorage.users.retrieve("id"); +await client.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -7499,7 +7440,7 @@ await client.filestorage.users.retrieve("id");
-**id:** `string` +**fieldMappingId:** `string`
@@ -7507,7 +7448,7 @@ await client.filestorage.users.retrieve("id");
-**request:** `Merge.filestorage.UsersRetrieveRequest` +**request:** `Merge.filestorage.PatchedEditFieldMappingRequest`
@@ -7515,7 +7456,7 @@ await client.filestorage.users.retrieve("id");
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -7526,9 +7467,7 @@ await client.filestorage.users.retrieve("id");
-## Filestorage WebhookReceivers - -
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.filestorage.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -7540,7 +7479,7 @@ await client.filestorage.users.retrieve("id");
-Returns a list of `WebhookReceiver` objects. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -7556,7 +7495,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.filestorage.webhookReceivers.list(); +await client.filestorage.fieldMapping.remoteFieldsRetrieve(); ```
@@ -7572,7 +7511,15 @@ await client.filestorage.webhookReceivers.list();
-**requestOptions:** `WebhookReceivers.RequestOptions` +**request:** `Merge.filestorage.RemoteFieldsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMapping.RequestOptions`
@@ -7583,7 +7530,7 @@ await client.filestorage.webhookReceivers.list();
-
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.filestorage.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -7595,7 +7542,7 @@ await client.filestorage.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -7611,10 +7558,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.filestorage.webhookReceivers.create({ - event: "event", - isActive: true, -}); +await client.filestorage.fieldMapping.targetFieldsRetrieve(); ```
@@ -7630,15 +7574,7 @@ await client.filestorage.webhookReceivers.create({
-**request:** `Merge.filestorage.WebhookReceiverRequest` - -
-
- -
-
- -**requestOptions:** `WebhookReceivers.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -7649,9 +7585,9 @@ await client.filestorage.webhookReceivers.create({
-## Crm AccountDetails +## Filestorage Files -
client.crm.accountDetails.retrieve() -> Merge.AccountDetails +
client.filestorage.files.list({ ...params }) -> Merge.PaginatedFileList
@@ -7663,7 +7599,7 @@ await client.filestorage.webhookReceivers.create({
-Get details for a linked account. +Returns a list of `File` objects.
@@ -7679,7 +7615,9 @@ Get details for a linked account.
```typescript -await client.crm.accountDetails.retrieve(); +await client.filestorage.files.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -7695,7 +7633,15 @@ await client.crm.accountDetails.retrieve();
-**requestOptions:** `AccountDetails.RequestOptions` +**request:** `Merge.filestorage.FilesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Files.RequestOptions`
@@ -7706,9 +7652,7 @@ await client.crm.accountDetails.retrieve();
-## Crm AccountToken - -
client.crm.accountToken.retrieve(publicToken) -> Merge.AccountToken +
client.filestorage.files.create({ ...params }) -> Merge.FileStorageFileResponse
@@ -7720,7 +7664,7 @@ await client.crm.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Creates a `File` object with the given values.
@@ -7736,7 +7680,9 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.crm.accountToken.retrieve("public_token"); +await client.filestorage.files.create({ + model: {}, +}); ```
@@ -7752,7 +7698,7 @@ await client.crm.accountToken.retrieve("public_token");
-**publicToken:** `string` +**request:** `Merge.filestorage.FileStorageFileEndpointRequest`
@@ -7760,7 +7706,7 @@ await client.crm.accountToken.retrieve("public_token");
-**requestOptions:** `AccountToken.RequestOptions` +**requestOptions:** `Files.RequestOptions`
@@ -7771,9 +7717,7 @@ await client.crm.accountToken.retrieve("public_token");
-## Crm Accounts - -
client.crm.accounts.list({ ...params }) -> Merge.PaginatedAccountList +
client.filestorage.files.retrieve(id, { ...params }) -> Merge.File_
@@ -7785,7 +7729,7 @@ await client.crm.accountToken.retrieve("public_token");
-Returns a list of `Account` objects. +Returns a `File` object with the given `id`.
@@ -7801,9 +7745,7 @@ Returns a list of `Account` objects.
```typescript -await client.crm.accounts.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.filestorage.files.retrieve("id"); ```
@@ -7819,7 +7761,7 @@ await client.crm.accounts.list({
-**request:** `Merge.crm.AccountsListRequest` +**id:** `string`
@@ -7827,7 +7769,15 @@ await client.crm.accounts.list({
-**requestOptions:** `Accounts.RequestOptions` +**request:** `Merge.filestorage.FilesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Files.RequestOptions`
@@ -7838,7 +7788,7 @@ await client.crm.accounts.list({
-
client.crm.accounts.create({ ...params }) -> Merge.CrmAccountResponse +
client.filestorage.files.downloadRequestMetaRetrieve(id, { ...params }) -> Merge.DownloadRequestMeta
@@ -7850,7 +7800,7 @@ await client.crm.accounts.list({
-Creates an `Account` object with the given values. +Returns metadata to construct an authenticated file download request for a singular file, allowing you to download file directly from the third-party.
@@ -7866,9 +7816,7 @@ Creates an `Account` object with the given values.
```typescript -await client.crm.accounts.create({ - model: {}, -}); +await client.filestorage.files.downloadRequestMetaRetrieve("id"); ```
@@ -7884,7 +7832,7 @@ await client.crm.accounts.create({
-**request:** `Merge.crm.CrmAccountEndpointRequest` +**id:** `string`
@@ -7892,7 +7840,15 @@ await client.crm.accounts.create({
-**requestOptions:** `Accounts.RequestOptions` +**request:** `Merge.filestorage.FilesDownloadRequestMetaRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Files.RequestOptions`
@@ -7903,7 +7859,7 @@ await client.crm.accounts.create({
-
client.crm.accounts.retrieve(id, { ...params }) -> Merge.Account +
client.filestorage.files.downloadRequestMetaList({ ...params }) -> Merge.PaginatedDownloadRequestMetaList
@@ -7915,7 +7871,7 @@ await client.crm.accounts.create({
-Returns an `Account` object with the given `id`. +Returns metadata to construct authenticated file download requests, allowing you to download files directly from the third-party.
@@ -7931,7 +7887,9 @@ Returns an `Account` object with the given `id`.
```typescript -await client.crm.accounts.retrieve("id"); +await client.filestorage.files.downloadRequestMetaList({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -7947,15 +7905,7 @@ await client.crm.accounts.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.AccountsRetrieveRequest` +**request:** `Merge.filestorage.FilesDownloadRequestMetaListRequest`
@@ -7963,7 +7913,7 @@ await client.crm.accounts.retrieve("id");
-**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `Files.RequestOptions`
@@ -7974,7 +7924,7 @@ await client.crm.accounts.retrieve("id");
-
client.crm.accounts.partialUpdate(id, { ...params }) -> Merge.CrmAccountResponse +
client.filestorage.files.metaPostRetrieve() -> Merge.MetaResponse
@@ -7986,7 +7936,7 @@ await client.crm.accounts.retrieve("id");
-Updates an `Account` object with the given `id`. +Returns metadata for `FileStorageFile` POSTs.
@@ -8002,9 +7952,7 @@ Updates an `Account` object with the given `id`.
```typescript -await client.crm.accounts.partialUpdate("id", { - model: {}, -}); +await client.filestorage.files.metaPostRetrieve(); ```
@@ -8020,23 +7968,7 @@ await client.crm.accounts.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedCrmAccountEndpointRequest` - -
-
- -
-
- -**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `Files.RequestOptions`
@@ -8047,7 +7979,9 @@ await client.crm.accounts.partialUpdate("id", {
-
client.crm.accounts.metaPatchRetrieve(id) -> Merge.MetaResponse +## Filestorage Folders + +
client.filestorage.folders.list({ ...params }) -> Merge.PaginatedFolderList
@@ -8059,7 +7993,7 @@ await client.crm.accounts.partialUpdate("id", {
-Returns metadata for `CRMAccount` PATCHs. +Returns a list of `Folder` objects.
@@ -8075,7 +8009,9 @@ Returns metadata for `CRMAccount` PATCHs.
```typescript -await client.crm.accounts.metaPatchRetrieve("id"); +await client.filestorage.folders.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -8091,7 +8027,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.filestorage.FoldersListRequest`
@@ -8099,7 +8035,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-**requestOptions:** `Accounts.RequestOptions` +**requestOptions:** `Folders.RequestOptions`
@@ -8110,7 +8046,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-
client.crm.accounts.metaPostRetrieve() -> Merge.MetaResponse +
client.filestorage.folders.create({ ...params }) -> Merge.FileStorageFolderResponse
@@ -8122,7 +8058,7 @@ await client.crm.accounts.metaPatchRetrieve("id");
-Returns metadata for `CRMAccount` POSTs. +Creates a `Folder` object with the given values.
@@ -8138,7 +8074,9 @@ Returns metadata for `CRMAccount` POSTs.
```typescript -await client.crm.accounts.metaPostRetrieve(); +await client.filestorage.folders.create({ + model: {}, +}); ```
@@ -8154,7 +8092,15 @@ await client.crm.accounts.metaPostRetrieve();
-**requestOptions:** `Accounts.RequestOptions` +**request:** `Merge.filestorage.FileStorageFolderEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Folders.RequestOptions`
@@ -8165,7 +8111,7 @@ await client.crm.accounts.metaPostRetrieve();
-
client.crm.accounts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.filestorage.folders.retrieve(id, { ...params }) -> Merge.Folder
@@ -8177,7 +8123,7 @@ await client.crm.accounts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a `Folder` object with the given `id`.
@@ -8193,9 +8139,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.accounts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.filestorage.folders.retrieve("id"); ```
@@ -8211,7 +8155,7 @@ await client.crm.accounts.remoteFieldClassesList({
-**request:** `Merge.crm.AccountsRemoteFieldClassesListRequest` +**id:** `string`
@@ -8219,7 +8163,15 @@ await client.crm.accounts.remoteFieldClassesList({
-**requestOptions:** `Accounts.RequestOptions` +**request:** `Merge.filestorage.FoldersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Folders.RequestOptions`
@@ -8230,9 +8182,7 @@ await client.crm.accounts.remoteFieldClassesList({
-## Crm AsyncPassthrough - -
client.crm.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.filestorage.folders.metaPostRetrieve() -> Merge.MetaResponse
@@ -8244,7 +8194,7 @@ await client.crm.accounts.remoteFieldClassesList({
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns metadata for `FileStorageFolder` POSTs.
@@ -8260,10 +8210,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.crm.asyncPassthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.filestorage.folders.metaPostRetrieve(); ```
@@ -8279,15 +8226,7 @@ await client.crm.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` - -
-
- -
-
- -**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `Folders.RequestOptions`
@@ -8298,7 +8237,9 @@ await client.crm.asyncPassthrough.create({
-
client.crm.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse +## Filestorage GenerateKey + +
client.filestorage.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -8310,7 +8251,7 @@ await client.crm.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Create a remote key.
@@ -8326,7 +8267,9 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.filestorage.generateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -8342,7 +8285,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**asyncPassthroughReceiptId:** `string` +**request:** `Merge.filestorage.GenerateRemoteKeyRequest`
@@ -8350,7 +8293,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**requestOptions:** `GenerateKey.RequestOptions`
@@ -8361,9 +8304,9 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Crm AuditTrail +## Filestorage Groups -
client.crm.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.filestorage.groups.list({ ...params }) -> Merge.PaginatedGroupList
@@ -8375,7 +8318,7 @@ await client.crm.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Gets a list of audit trail events. +Returns a list of `Group` objects.
@@ -8391,7 +8334,7 @@ Gets a list of audit trail events.
```typescript -await client.crm.auditTrail.list({ +await client.filestorage.groups.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -8409,7 +8352,7 @@ await client.crm.auditTrail.list({
-**request:** `Merge.crm.AuditTrailListRequest` +**request:** `Merge.filestorage.GroupsListRequest`
@@ -8417,7 +8360,7 @@ await client.crm.auditTrail.list({
-**requestOptions:** `AuditTrail.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -8428,9 +8371,7 @@ await client.crm.auditTrail.list({
-## Crm AvailableActions - -
client.crm.availableActions.retrieve() -> Merge.AvailableActions +
client.filestorage.groups.retrieve(id, { ...params }) -> Merge.Group
@@ -8442,7 +8383,7 @@ await client.crm.auditTrail.list({
-Returns a list of models and actions available for an account. +Returns a `Group` object with the given `id`.
@@ -8458,7 +8399,7 @@ Returns a list of models and actions available for an account.
```typescript -await client.crm.availableActions.retrieve(); +await client.filestorage.groups.retrieve("id"); ```
@@ -8474,7 +8415,23 @@ await client.crm.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.filestorage.GroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Groups.RequestOptions`
@@ -8485,9 +8442,9 @@ await client.crm.availableActions.retrieve();
-## Crm Contacts +## Filestorage Issues -
client.crm.contacts.list({ ...params }) -> Merge.PaginatedContactList +
client.filestorage.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -8499,7 +8456,7 @@ await client.crm.availableActions.retrieve();
-Returns a list of `Contact` objects. +Gets all issues for Organization.
@@ -8515,7 +8472,7 @@ Returns a list of `Contact` objects.
```typescript -await client.crm.contacts.list({ +await client.filestorage.issues.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -8533,7 +8490,7 @@ await client.crm.contacts.list({
-**request:** `Merge.crm.ContactsListRequest` +**request:** `Merge.filestorage.IssuesListRequest`
@@ -8541,7 +8498,7 @@ await client.crm.contacts.list({
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -8552,7 +8509,7 @@ await client.crm.contacts.list({
-
client.crm.contacts.create({ ...params }) -> Merge.CrmContactResponse +
client.filestorage.issues.retrieve(id) -> Merge.Issue
@@ -8564,7 +8521,7 @@ await client.crm.contacts.list({
-Creates a `Contact` object with the given values. +Get a specific issue.
@@ -8580,9 +8537,7 @@ Creates a `Contact` object with the given values.
```typescript -await client.crm.contacts.create({ - model: {}, -}); +await client.filestorage.issues.retrieve("id"); ```
@@ -8598,7 +8553,7 @@ await client.crm.contacts.create({
-**request:** `Merge.crm.CrmContactEndpointRequest` +**id:** `string`
@@ -8606,7 +8561,7 @@ await client.crm.contacts.create({
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -8617,7 +8572,9 @@ await client.crm.contacts.create({
-
client.crm.contacts.retrieve(id, { ...params }) -> Merge.Contact +## Filestorage LinkToken + +
client.filestorage.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -8629,7 +8586,7 @@ await client.crm.contacts.create({
-Returns a `Contact` object with the given `id`. +Creates a link token to be used when linking a new end user.
@@ -8645,7 +8602,12 @@ Returns a `Contact` object with the given `id`.
```typescript -await client.crm.contacts.retrieve("id"); +await client.filestorage.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], +}); ```
@@ -8655,21 +8617,13 @@ await client.crm.contacts.retrieve("id"); #### ⚙️ Parameters -
-
- -
-
- -**id:** `string` - -
-
+
+
-**request:** `Merge.crm.ContactsRetrieveRequest` +**request:** `Merge.filestorage.EndUserDetailsRequest`
@@ -8677,7 +8631,7 @@ await client.crm.contacts.retrieve("id");
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -8688,7 +8642,9 @@ await client.crm.contacts.retrieve("id");
-
client.crm.contacts.partialUpdate(id, { ...params }) -> Merge.CrmContactResponse +## Filestorage LinkedAccounts + +
client.filestorage.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -8700,7 +8656,7 @@ await client.crm.contacts.retrieve("id");
-Updates a `Contact` object with the given `id`. +List linked accounts for your organization.
@@ -8716,8 +8672,8 @@ Updates a `Contact` object with the given `id`.
```typescript -await client.crm.contacts.partialUpdate("id", { - model: {}, +await client.filestorage.linkedAccounts.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -8734,15 +8690,7 @@ await client.crm.contacts.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedCrmContactEndpointRequest` +**request:** `Merge.filestorage.LinkedAccountsListRequest`
@@ -8750,7 +8698,7 @@ await client.crm.contacts.partialUpdate("id", {
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -8761,7 +8709,9 @@ await client.crm.contacts.partialUpdate("id", {
-
client.crm.contacts.ignoreCreate(modelId, { ...params }) -> void +## Filestorage Passthrough + +
client.filestorage.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -8773,7 +8723,7 @@ await client.crm.contacts.partialUpdate("id", {
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Pull data from an endpoint not currently supported by Merge.
@@ -8789,8 +8739,9 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.crm.contacts.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", +await client.filestorage.passthrough.create({ + method: "GET", + path: "/scooters", }); ``` @@ -8807,15 +8758,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**modelId:** `string` - -
-
- -
-
- -**request:** `Merge.IgnoreCommonModelRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -8823,7 +8766,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `Passthrough.RequestOptions`
@@ -8834,7 +8777,9 @@ await client.crm.contacts.ignoreCreate("model_id", {
-
client.crm.contacts.metaPatchRetrieve(id) -> Merge.MetaResponse +## Filestorage RegenerateKey + +
client.filestorage.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -8846,7 +8791,7 @@ await client.crm.contacts.ignoreCreate("model_id", {
-Returns metadata for `CRMContact` PATCHs. +Exchange remote keys.
@@ -8862,7 +8807,9 @@ Returns metadata for `CRMContact` PATCHs.
```typescript -await client.crm.contacts.metaPatchRetrieve("id"); +await client.filestorage.regenerateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -8878,7 +8825,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.filestorage.RemoteKeyForRegenerationRequest`
@@ -8886,7 +8833,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -8897,7 +8844,9 @@ await client.crm.contacts.metaPatchRetrieve("id");
-
client.crm.contacts.metaPostRetrieve() -> Merge.MetaResponse +## Filestorage SyncStatus + +
client.filestorage.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -8909,7 +8858,7 @@ await client.crm.contacts.metaPatchRetrieve("id");
-Returns metadata for `CRMContact` POSTs. +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -8925,7 +8874,9 @@ Returns metadata for `CRMContact` POSTs.
```typescript -await client.crm.contacts.metaPostRetrieve(); +await client.filestorage.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -8941,7 +8892,15 @@ await client.crm.contacts.metaPostRetrieve();
-**requestOptions:** `Contacts.RequestOptions` +**request:** `Merge.filestorage.SyncStatusListRequest` + +
+
+ +
+
+ +**requestOptions:** `SyncStatus.RequestOptions`
@@ -8952,7 +8911,9 @@ await client.crm.contacts.metaPostRetrieve();
-
client.crm.contacts.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Filestorage ForceResync + +
client.filestorage.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -8964,7 +8925,7 @@ await client.crm.contacts.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
@@ -8980,9 +8941,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.contacts.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.filestorage.forceResync.syncStatusResyncCreate(); ```
@@ -8998,15 +8957,7 @@ await client.crm.contacts.remoteFieldClassesList({
-**request:** `Merge.crm.ContactsRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `Contacts.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -9017,9 +8968,9 @@ await client.crm.contacts.remoteFieldClassesList({
-## Crm CustomObjectClasses +## Filestorage Users -
client.crm.customObjectClasses.list({ ...params }) -> Merge.PaginatedCustomObjectClassList +
client.filestorage.users.list({ ...params }) -> Merge.PaginatedUserList
@@ -9031,7 +8982,7 @@ await client.crm.contacts.remoteFieldClassesList({
-Returns a list of `CustomObjectClass` objects. +Returns a list of `User` objects.
@@ -9047,7 +8998,7 @@ Returns a list of `CustomObjectClass` objects.
```typescript -await client.crm.customObjectClasses.list({ +await client.filestorage.users.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -9065,7 +9016,7 @@ await client.crm.customObjectClasses.list({
-**request:** `Merge.crm.CustomObjectClassesListRequest` +**request:** `Merge.filestorage.UsersListRequest`
@@ -9073,7 +9024,7 @@ await client.crm.customObjectClasses.list({
-**requestOptions:** `CustomObjectClasses.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -9084,7 +9035,7 @@ await client.crm.customObjectClasses.list({
-
client.crm.customObjectClasses.retrieve(id, { ...params }) -> Merge.CustomObjectClass +
client.filestorage.users.retrieve(id, { ...params }) -> Merge.User
@@ -9096,7 +9047,7 @@ await client.crm.customObjectClasses.list({
-Returns a `CustomObjectClass` object with the given `id`. +Returns a `User` object with the given `id`.
@@ -9112,7 +9063,7 @@ Returns a `CustomObjectClass` object with the given `id`.
```typescript -await client.crm.customObjectClasses.retrieve("id"); +await client.filestorage.users.retrieve("id"); ```
@@ -9136,7 +9087,7 @@ await client.crm.customObjectClasses.retrieve("id");
-**request:** `Merge.crm.CustomObjectClassesRetrieveRequest` +**request:** `Merge.filestorage.UsersRetrieveRequest`
@@ -9144,7 +9095,7 @@ await client.crm.customObjectClasses.retrieve("id");
-**requestOptions:** `CustomObjectClasses.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -9155,9 +9106,9 @@ await client.crm.customObjectClasses.retrieve("id");
-## Crm AssociationTypes +## Filestorage WebhookReceivers -
client.crm.associationTypes.customObjectClassesAssociationTypesList(customObjectClassId, { ...params }) -> Merge.PaginatedAssociationTypeList +
client.filestorage.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -9169,7 +9120,7 @@ await client.crm.customObjectClasses.retrieve("id");
-Returns a list of `AssociationType` objects. +Returns a list of `WebhookReceiver` objects.
@@ -9185,9 +9136,7 @@ Returns a list of `AssociationType` objects.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesList("custom_object_class_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.filestorage.webhookReceivers.list(); ```
@@ -9203,23 +9152,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-**customObjectClassId:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesAssociationTypesListRequest` - -
-
- -
-
- -**requestOptions:** `AssociationTypes.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -9230,7 +9163,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-
client.crm.associationTypes.customObjectClassesAssociationTypesCreate(customObjectClassId, { ...params }) -> Merge.CrmAssociationTypeResponse +
client.filestorage.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -9242,7 +9175,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesList("custo
-Creates an `AssociationType` object with the given values. +Creates a `WebhookReceiver` object with the given values.
@@ -9258,20 +9191,9 @@ Creates an `AssociationType` object with the given values.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("custom_object_class_id", { - model: { - sourceObjectClass: { - id: "id", - originType: "CUSTOM_OBJECT", - }, - targetObjectClasses: [ - { - id: "id", - originType: "CUSTOM_OBJECT", - }, - ], - remoteKeyName: "remote_key_name", - }, +await client.filestorage.webhookReceivers.create({ + event: "event", + isActive: true, }); ``` @@ -9288,15 +9210,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-**customObjectClassId:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CrmAssociationTypeEndpointRequest` +**request:** `Merge.filestorage.WebhookReceiverRequest`
@@ -9304,7 +9218,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-**requestOptions:** `AssociationTypes.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -9315,7 +9229,9 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-
client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve(customObjectClassId, id, { ...params }) -> Merge.AssociationType +## Hris AccountDetails + +
client.hris.accountDetails.retrieve() -> Merge.AccountDetails
@@ -9327,7 +9243,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesCreate("cus
-Returns an `AssociationType` object with the given `id`. +Get details for a linked account.
@@ -9343,7 +9259,7 @@ Returns an `AssociationType` object with the given `id`.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("custom_object_class_id", "id"); +await client.hris.accountDetails.retrieve(); ```
@@ -9359,31 +9275,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-**customObjectClassId:** `string` - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesAssociationTypesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `AssociationTypes.RequestOptions` +**requestOptions:** `AccountDetails.RequestOptions`
@@ -9394,7 +9286,9 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-
client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve(customObjectClassId) -> Merge.MetaResponse +## Hris AccountToken + +
client.hris.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -9406,7 +9300,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesRetrieve("c
-Returns metadata for `CRMAssociationType` POSTs. +Returns the account token for the end user with the provided public token.
@@ -9422,7 +9316,7 @@ Returns metadata for `CRMAssociationType` POSTs.
```typescript -await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRetrieve("custom_object_class_id"); +await client.hris.accountToken.retrieve("public_token"); ```
@@ -9438,7 +9332,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-**customObjectClassId:** `string` +**publicToken:** `string`
@@ -9446,7 +9340,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-**requestOptions:** `AssociationTypes.RequestOptions` +**requestOptions:** `AccountToken.RequestOptions`
@@ -9457,9 +9351,9 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-## Crm CustomObjects +## Hris AsyncPassthrough -
client.crm.customObjects.customObjectClassesCustomObjectsList(customObjectClassId, { ...params }) -> Merge.PaginatedCustomObjectList +
client.hris.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -9471,7 +9365,7 @@ await client.crm.associationTypes.customObjectClassesAssociationTypesMetaPostRet
-Returns a list of `CustomObject` objects. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -9487,8 +9381,9 @@ Returns a list of `CustomObject` objects.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_object_class_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.hris.asyncPassthrough.create({ + method: "GET", + path: "/scooters", }); ``` @@ -9502,18 +9397,10 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-
-
- -**customObjectClassId:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsListRequest` +
+
+ +**request:** `Merge.DataPassthroughRequest`
@@ -9521,7 +9408,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -9532,7 +9419,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-
client.crm.customObjects.customObjectClassesCustomObjectsCreate(customObjectClassId, { ...params }) -> Merge.CrmCustomObjectResponse +
client.hris.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -9544,7 +9431,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsList("custom_obje
-Creates a `CustomObject` object with the given values. +Retrieves data from earlier async-passthrough POST request
@@ -9560,13 +9447,7 @@ Creates a `CustomObject` object with the given values.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_object_class_id", { - model: { - fields: { - test_field: "hello", - }, - }, -}); +await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -9582,15 +9463,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**customObjectClassId:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CrmCustomObjectEndpointRequest` +**asyncPassthroughReceiptId:** `string`
@@ -9598,7 +9471,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -9609,7 +9482,9 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-
client.crm.customObjects.customObjectClassesCustomObjectsRetrieve(customObjectClassId, id, { ...params }) -> Merge.CustomObject +## Hris AuditTrail + +
client.hris.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
@@ -9621,7 +9496,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsCreate("custom_ob
-Returns a `CustomObject` object with the given `id`. +Gets a list of audit trail events.
@@ -9637,7 +9512,9 @@ Returns a `CustomObject` object with the given `id`.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_object_class_id", "id"); +await client.hris.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -9653,23 +9530,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**customObjectClassId:** `string` - -
-
- -
-
- -**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.CustomObjectClassesCustomObjectsRetrieveRequest` +**request:** `Merge.hris.AuditTrailListRequest`
@@ -9677,7 +9538,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -9688,7 +9549,9 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-
client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(customObjectClassId) -> Merge.MetaResponse +## Hris AvailableActions + +
client.hris.availableActions.retrieve() -> Merge.AvailableActions
@@ -9700,7 +9563,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRetrieve("custom_
-Returns metadata for `CRMCustomObject` POSTs. +Returns a list of models and actions available for an account.
@@ -9716,7 +9579,7 @@ Returns metadata for `CRMCustomObject` POSTs.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve("custom_object_class_id"); +await client.hris.availableActions.retrieve(); ```
@@ -9732,15 +9595,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-**customObjectClassId:** `string` - -
-
- -
-
- -**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `AvailableActions.RequestOptions`
@@ -9751,7 +9606,9 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-
client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Hris BankInfo + +
client.hris.bankInfo.list({ ...params }) -> Merge.PaginatedBankInfoList
@@ -9763,7 +9620,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsMetaPostRetrieve(
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `BankInfo` objects.
@@ -9779,7 +9636,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClassesList({ +await client.hris.bankInfo.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -9797,7 +9654,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest` +**request:** `Merge.hris.BankInfoListRequest`
@@ -9805,7 +9662,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-**requestOptions:** `CustomObjects.RequestOptions` +**requestOptions:** `BankInfo.RequestOptions`
@@ -9816,9 +9673,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-## Crm Associations - -
client.crm.associations.customObjectClassesCustomObjectsAssociationsList(customObjectClassId, objectId, { ...params }) -> Merge.PaginatedAssociationList +
client.hris.bankInfo.retrieve(id, { ...params }) -> Merge.BankInfo
@@ -9830,7 +9685,7 @@ await client.crm.customObjects.customObjectClassesCustomObjectsRemoteFieldClasse
-Returns a list of `Association` objects. +Returns a `BankInfo` object with the given `id`.
@@ -9846,9 +9701,7 @@ Returns a list of `Association` objects.
```typescript -await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("custom_object_class_id", "object_id", { - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.bankInfo.retrieve("id"); ```
@@ -9864,15 +9717,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**customObjectClassId:** `string` - -
-
- -
-
- -**objectId:** `string` +**id:** `string`
@@ -9880,7 +9725,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsListRequest` +**request:** `Merge.hris.BankInfoRetrieveRequest`
@@ -9888,7 +9733,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-**requestOptions:** `Associations.RequestOptions` +**requestOptions:** `BankInfo.RequestOptions`
@@ -9899,7 +9744,9 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-
client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate(associationTypeId, sourceClassId, sourceObjectId, targetClassId, targetObjectId, { ...params }) -> Merge.Association +## Hris Benefits + +
client.hris.benefits.list({ ...params }) -> Merge.PaginatedBenefitList
@@ -9911,7 +9758,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsList("
-Creates an Association between `source_object_id` and `target_object_id` of type `association_type_id`. +Returns a list of `Benefit` objects.
@@ -9927,13 +9774,9 @@ Creates an Association between `source_object_id` and `target_object_id` of type
```typescript -await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate( - "association_type_id", - "source_class_id", - "source_object_id", - "target_class_id", - "target_object_id", -); +await client.hris.benefits.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -9949,7 +9792,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**associationTypeId:** `string` +**request:** `Merge.hris.BenefitsListRequest`
@@ -9957,31 +9800,62 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**sourceClassId:** `string` +**requestOptions:** `Benefits.RequestOptions` + +
+
+ +
+
+
client.hris.benefits.retrieve(id, { ...params }) -> Merge.Benefit
-**sourceObjectId:** `string` +#### 📝 Description + +
+
+ +
+
+ +Returns a `Benefit` object with the given `id`.
+
+
+ +#### 🔌 Usage
-**targetClassId:** `string` +
+
+ +```typescript +await client.hris.benefits.retrieve("id"); +```
+
+
+ +#### ⚙️ Parameters
-**targetObjectId:** `string` +
+
+ +**id:** `string`
@@ -9989,7 +9863,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**request:** `Merge.crm.CustomObjectClassesCustomObjectsAssociationsUpdateRequest` +**request:** `Merge.hris.BenefitsRetrieveRequest`
@@ -9997,7 +9871,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-**requestOptions:** `Associations.RequestOptions` +**requestOptions:** `Benefits.RequestOptions`
@@ -10008,9 +9882,9 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-## Crm Scopes +## Hris Companies -
client.crm.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.hris.companies.list({ ...params }) -> Merge.PaginatedCompanyList
@@ -10022,7 +9896,7 @@ await client.crm.associations.customObjectClassesCustomObjectsAssociationsUpdate
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `Company` objects.
@@ -10038,7 +9912,9 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.crm.scopes.defaultScopesRetrieve(); +await client.hris.companies.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -10054,7 +9930,15 @@ await client.crm.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.hris.CompaniesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Companies.RequestOptions`
@@ -10065,7 +9949,7 @@ await client.crm.scopes.defaultScopesRetrieve();
-
client.crm.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +
client.hris.companies.retrieve(id, { ...params }) -> Merge.Company
@@ -10077,7 +9961,7 @@ await client.crm.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a `Company` object with the given `id`.
@@ -10093,7 +9977,7 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.crm.scopes.linkedAccountScopesRetrieve(); +await client.hris.companies.retrieve("id"); ```
@@ -10109,7 +9993,23 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.CompaniesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Companies.RequestOptions`
@@ -10120,7 +10020,9 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-
client.crm.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +## Hris Scopes + +
client.hris.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -10132,7 +10034,7 @@ await client.crm.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -10145,36 +10047,10 @@ Update permissions for any Common Model or field for a single Linked Account. An
-
- -```typescript -await client.crm.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"], - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], -}); +
+ +```typescript +await client.hris.scopes.defaultScopesRetrieve(); ```
@@ -10190,14 +10066,6 @@ await client.crm.scopes.linkedAccountScopesCreate({
-**request:** `Merge.crm.LinkedAccountCommonModelScopeDeserializerRequest` - -
-
- -
-
- **requestOptions:** `Scopes.RequestOptions`
@@ -10209,9 +10077,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-## Crm DeleteAccount - -
client.crm.deleteAccount.delete() -> void +
client.hris.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -10223,7 +10089,7 @@ await client.crm.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -10239,7 +10105,7 @@ Delete a linked account.
```typescript -await client.crm.deleteAccount.delete(); +await client.hris.scopes.linkedAccountScopesRetrieve(); ```
@@ -10255,7 +10121,7 @@ await client.crm.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -10266,9 +10132,7 @@ await client.crm.deleteAccount.delete();
-## Crm EngagementTypes - -
client.crm.engagementTypes.list({ ...params }) -> Merge.PaginatedEngagementTypeList +
client.hris.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -10280,7 +10144,7 @@ await client.crm.deleteAccount.delete();
-Returns a list of `EngagementType` objects. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -10296,8 +10160,32 @@ Returns a list of `EngagementType` objects.
```typescript -await client.crm.engagementTypes.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.hris.scopes.linkedAccountScopesCreate({ + commonModels: [ + { + modelName: "Employee", + modelPermissions: { + READ: { + isEnabled: true, + }, + WRITE: { + isEnabled: false, + }, + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"], + }, + }, + { + modelName: "Benefit", + modelPermissions: { + WRITE: { + isEnabled: false, + }, + }, + }, + ], }); ``` @@ -10314,7 +10202,7 @@ await client.crm.engagementTypes.list({
-**request:** `Merge.crm.EngagementTypesListRequest` +**request:** `Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -10322,7 +10210,7 @@ await client.crm.engagementTypes.list({
-**requestOptions:** `EngagementTypes.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -10333,7 +10221,9 @@ await client.crm.engagementTypes.list({
-
client.crm.engagementTypes.retrieve(id, { ...params }) -> Merge.EngagementType +## Hris DeleteAccount + +
client.hris.deleteAccount.delete() -> void
@@ -10345,7 +10235,7 @@ await client.crm.engagementTypes.list({
-Returns an `EngagementType` object with the given `id`. +Delete a linked account.
@@ -10361,7 +10251,7 @@ Returns an `EngagementType` object with the given `id`.
```typescript -await client.crm.engagementTypes.retrieve("id"); +await client.hris.deleteAccount.delete(); ```
@@ -10377,23 +10267,7 @@ await client.crm.engagementTypes.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.EngagementTypesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `EngagementTypes.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -10404,7 +10278,9 @@ await client.crm.engagementTypes.retrieve("id");
-
client.crm.engagementTypes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Hris Dependents + +
client.hris.dependents.list({ ...params }) -> Merge.PaginatedDependentList
@@ -10416,7 +10292,7 @@ await client.crm.engagementTypes.retrieve("id");
-Returns a list of `RemoteFieldClass` objects. +Returns a list of `Dependent` objects.
@@ -10432,7 +10308,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.engagementTypes.remoteFieldClassesList({ +await client.hris.dependents.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -10450,7 +10326,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-**request:** `Merge.crm.EngagementTypesRemoteFieldClassesListRequest` +**request:** `Merge.hris.DependentsListRequest`
@@ -10458,7 +10334,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-**requestOptions:** `EngagementTypes.RequestOptions` +**requestOptions:** `Dependents.RequestOptions`
@@ -10469,9 +10345,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-## Crm Engagements - -
client.crm.engagements.list({ ...params }) -> Merge.PaginatedEngagementList +
client.hris.dependents.retrieve(id, { ...params }) -> Merge.Dependent
@@ -10483,7 +10357,7 @@ await client.crm.engagementTypes.remoteFieldClassesList({
-Returns a list of `Engagement` objects. +Returns a `Dependent` object with the given `id`.
@@ -10499,9 +10373,7 @@ Returns a list of `Engagement` objects.
```typescript -await client.crm.engagements.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.dependents.retrieve("id"); ```
@@ -10517,7 +10389,7 @@ await client.crm.engagements.list({
-**request:** `Merge.crm.EngagementsListRequest` +**id:** `string`
@@ -10525,7 +10397,15 @@ await client.crm.engagements.list({
-**requestOptions:** `Engagements.RequestOptions` +**request:** `Merge.hris.DependentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Dependents.RequestOptions`
@@ -10536,7 +10416,9 @@ await client.crm.engagements.list({
-
client.crm.engagements.create({ ...params }) -> Merge.EngagementResponse +## Hris EmployeePayrollRuns + +
client.hris.employeePayrollRuns.list({ ...params }) -> Merge.PaginatedEmployeePayrollRunList
@@ -10548,7 +10430,7 @@ await client.crm.engagements.list({
-Creates an `Engagement` object with the given values. +Returns a list of `EmployeePayrollRun` objects.
@@ -10564,8 +10446,8 @@ Creates an `Engagement` object with the given values.
```typescript -await client.crm.engagements.create({ - model: {}, +await client.hris.employeePayrollRuns.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -10582,7 +10464,7 @@ await client.crm.engagements.create({
-**request:** `Merge.crm.EngagementEndpointRequest` +**request:** `Merge.hris.EmployeePayrollRunsListRequest`
@@ -10590,7 +10472,7 @@ await client.crm.engagements.create({
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `EmployeePayrollRuns.RequestOptions`
@@ -10601,7 +10483,7 @@ await client.crm.engagements.create({
-
client.crm.engagements.retrieve(id, { ...params }) -> Merge.Engagement +
client.hris.employeePayrollRuns.retrieve(id, { ...params }) -> Merge.EmployeePayrollRun
@@ -10613,7 +10495,7 @@ await client.crm.engagements.create({
-Returns an `Engagement` object with the given `id`. +Returns an `EmployeePayrollRun` object with the given `id`.
@@ -10629,7 +10511,7 @@ Returns an `Engagement` object with the given `id`.
```typescript -await client.crm.engagements.retrieve("id"); +await client.hris.employeePayrollRuns.retrieve("id"); ```
@@ -10653,7 +10535,7 @@ await client.crm.engagements.retrieve("id");
-**request:** `Merge.crm.EngagementsRetrieveRequest` +**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest`
@@ -10661,7 +10543,7 @@ await client.crm.engagements.retrieve("id");
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `EmployeePayrollRuns.RequestOptions`
@@ -10672,7 +10554,9 @@ await client.crm.engagements.retrieve("id");
-
client.crm.engagements.partialUpdate(id, { ...params }) -> Merge.EngagementResponse +## Hris Employees + +
client.hris.employees.list({ ...params }) -> Merge.PaginatedEmployeeList
@@ -10684,7 +10568,7 @@ await client.crm.engagements.retrieve("id");
-Updates an `Engagement` object with the given `id`. +Returns a list of `Employee` objects.
@@ -10700,8 +10584,8 @@ Updates an `Engagement` object with the given `id`.
```typescript -await client.crm.engagements.partialUpdate("id", { - model: {}, +await client.hris.employees.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -10718,15 +10602,7 @@ await client.crm.engagements.partialUpdate("id", {
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedEngagementEndpointRequest` +**request:** `Merge.hris.EmployeesListRequest`
@@ -10734,7 +10610,7 @@ await client.crm.engagements.partialUpdate("id", {
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `Employees.RequestOptions`
@@ -10745,7 +10621,7 @@ await client.crm.engagements.partialUpdate("id", {
-
client.crm.engagements.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse
@@ -10757,7 +10633,7 @@ await client.crm.engagements.partialUpdate("id", {
-Returns metadata for `Engagement` PATCHs. +Creates an `Employee` object with the given values.
@@ -10773,7 +10649,9 @@ Returns metadata for `Engagement` PATCHs.
```typescript -await client.crm.engagements.metaPatchRetrieve("id"); +await client.hris.employees.create({ + model: {}, +}); ```
@@ -10789,7 +10667,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.hris.EmployeeEndpointRequest`
@@ -10797,7 +10675,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `Employees.RequestOptions`
@@ -10808,7 +10686,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-
client.crm.engagements.metaPostRetrieve() -> Merge.MetaResponse +
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee
@@ -10820,7 +10698,7 @@ await client.crm.engagements.metaPatchRetrieve("id");
-Returns metadata for `Engagement` POSTs. +Returns an `Employee` object with the given `id`.
@@ -10836,7 +10714,7 @@ Returns metadata for `Engagement` POSTs.
```typescript -await client.crm.engagements.metaPostRetrieve(); +await client.hris.employees.retrieve("id"); ```
@@ -10852,7 +10730,23 @@ await client.crm.engagements.metaPostRetrieve();
-**requestOptions:** `Engagements.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.EmployeesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Employees.RequestOptions`
@@ -10863,7 +10757,7 @@ await client.crm.engagements.metaPostRetrieve();
-
client.crm.engagements.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.hris.employees.ignoreCreate(modelId, { ...params }) -> void
@@ -10875,7 +10769,7 @@ await client.crm.engagements.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes.
@@ -10891,8 +10785,8 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.engagements.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.hris.employees.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", }); ``` @@ -10909,7 +10803,7 @@ await client.crm.engagements.remoteFieldClassesList({
-**request:** `Merge.crm.EngagementsRemoteFieldClassesListRequest` +**modelId:** `string`
@@ -10917,7 +10811,15 @@ await client.crm.engagements.remoteFieldClassesList({
-**requestOptions:** `Engagements.RequestOptions` +**request:** `Merge.hris.IgnoreCommonModelRequest` + +
+
+ +
+
+ +**requestOptions:** `Employees.RequestOptions`
@@ -10928,9 +10830,7 @@ await client.crm.engagements.remoteFieldClassesList({
-## Crm FieldMapping - -
client.crm.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +
client.hris.employees.metaPostRetrieve() -> Merge.MetaResponse
@@ -10942,7 +10842,7 @@ await client.crm.engagements.remoteFieldClassesList({
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns metadata for `Employee` POSTs.
@@ -10958,7 +10858,7 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.crm.fieldMapping.fieldMappingsRetrieve(); +await client.hris.employees.metaPostRetrieve(); ```
@@ -10974,15 +10874,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve();
-**request:** `Merge.crm.FieldMappingsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Employees.RequestOptions`
@@ -10993,7 +10885,9 @@ await client.crm.fieldMapping.fieldMappingsRetrieve();
-
client.crm.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +## Hris EmployerBenefits + +
client.hris.employerBenefits.list({ ...params }) -> Merge.PaginatedEmployerBenefitList
@@ -11005,7 +10899,7 @@ await client.crm.fieldMapping.fieldMappingsRetrieve();
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a list of `EmployerBenefit` objects.
@@ -11018,16 +10912,11 @@ Create new Field Mappings that will be available after the next scheduled sync.
-
- -```typescript -await client.crm.fieldMapping.fieldMappingsCreate({ - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", +
+ +```typescript +await client.hris.employerBenefits.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -11044,7 +10933,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.crm.CreateFieldMappingRequest` +**request:** `Merge.hris.EmployerBenefitsListRequest`
@@ -11052,7 +10941,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `EmployerBenefits.RequestOptions`
@@ -11063,7 +10952,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-
client.crm.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit
@@ -11075,7 +10964,7 @@ await client.crm.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns an `EmployerBenefit` object with the given `id`.
@@ -11091,7 +10980,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.hris.employerBenefits.retrieve("id"); ```
@@ -11107,7 +10996,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**fieldMappingId:** `string` +**id:** `string`
@@ -11115,7 +11004,15 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.hris.EmployerBenefitsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `EmployerBenefits.RequestOptions`
@@ -11126,7 +11023,9 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.crm.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +## Hris Employments + +
client.hris.employments.list({ ...params }) -> Merge.PaginatedEmploymentList
@@ -11138,7 +11037,7 @@ await client.crm.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Returns a list of `Employment` objects.
@@ -11154,7 +11053,9 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.hris.employments.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -11170,15 +11071,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**fieldMappingId:** `string` - -
-
- -
-
- -**request:** `Merge.crm.PatchedEditFieldMappingRequest` +**request:** `Merge.hris.EmploymentsListRequest`
@@ -11186,7 +11079,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `Employments.RequestOptions`
@@ -11197,7 +11090,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.crm.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +
client.hris.employments.retrieve(id, { ...params }) -> Merge.Employment
@@ -11209,7 +11102,7 @@ await client.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Returns an `Employment` object with the given `id`.
@@ -11225,7 +11118,7 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.crm.fieldMapping.remoteFieldsRetrieve(); +await client.hris.employments.retrieve("id"); ```
@@ -11241,7 +11134,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.crm.RemoteFieldsRetrieveRequest` +**id:** `string`
@@ -11249,7 +11142,15 @@ await client.crm.fieldMapping.remoteFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.hris.EmploymentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Employments.RequestOptions`
@@ -11260,7 +11161,9 @@ await client.crm.fieldMapping.remoteFieldsRetrieve();
-
client.crm.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Hris FieldMapping + +
client.hris.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -11272,7 +11175,7 @@ await client.crm.fieldMapping.remoteFieldsRetrieve();
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -11288,7 +11191,7 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.crm.fieldMapping.targetFieldsRetrieve(); +await client.hris.fieldMapping.fieldMappingsRetrieve(); ```
@@ -11304,6 +11207,14 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
+**request:** `Merge.hris.FieldMappingsRetrieveRequest` + +
+
+ +
+
+ **requestOptions:** `FieldMapping.RequestOptions`
@@ -11315,9 +11226,7 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-## Crm GenerateKey - -
client.crm.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -11329,7 +11238,7 @@ await client.crm.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -11345,8 +11254,13 @@ Create a remote key.
```typescript -await client.crm.generateKey.create({ - name: "Remote Deployment Key 1", +await client.hris.fieldMapping.fieldMappingsCreate({ + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", }); ``` @@ -11363,7 +11277,7 @@ await client.crm.generateKey.create({
-**request:** `Merge.crm.GenerateRemoteKeyRequest` +**request:** `Merge.hris.CreateFieldMappingRequest`
@@ -11371,7 +11285,7 @@ await client.crm.generateKey.create({
-**requestOptions:** `GenerateKey.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -11382,9 +11296,7 @@ await client.crm.generateKey.create({
-## Crm Issues - -
client.crm.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.hris.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -11396,7 +11308,7 @@ await client.crm.generateKey.create({
-Gets all issues for Organization. +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -11412,9 +11324,7 @@ Gets all issues for Organization.
```typescript -await client.crm.issues.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -11430,7 +11340,7 @@ await client.crm.issues.list({
-**request:** `Merge.crm.IssuesListRequest` +**fieldMappingId:** `string`
@@ -11438,7 +11348,7 @@ await client.crm.issues.list({
-**requestOptions:** `Issues.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -11449,7 +11359,7 @@ await client.crm.issues.list({
-
client.crm.issues.retrieve(id) -> Merge.Issue +
client.hris.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -11461,7 +11371,7 @@ await client.crm.issues.list({
-Get a specific issue. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -11477,7 +11387,7 @@ Get a specific issue.
```typescript -await client.crm.issues.retrieve("id"); +await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -11493,7 +11403,7 @@ await client.crm.issues.retrieve("id");
-**id:** `string` +**fieldMappingId:** `string`
@@ -11501,7 +11411,15 @@ await client.crm.issues.retrieve("id");
-**requestOptions:** `Issues.RequestOptions` +**request:** `Merge.hris.PatchedEditFieldMappingRequest` + +
+
+ +
+
+ +**requestOptions:** `FieldMapping.RequestOptions`
@@ -11512,9 +11430,7 @@ await client.crm.issues.retrieve("id");
-## Crm Leads - -
client.crm.leads.list({ ...params }) -> Merge.PaginatedLeadList +
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -11526,7 +11442,7 @@ await client.crm.issues.retrieve("id");
-Returns a list of `Lead` objects. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -11542,9 +11458,7 @@ Returns a list of `Lead` objects.
```typescript -await client.crm.leads.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.fieldMapping.remoteFieldsRetrieve(); ```
@@ -11560,7 +11474,7 @@ await client.crm.leads.list({
-**request:** `Merge.crm.LeadsListRequest` +**request:** `Merge.hris.RemoteFieldsRetrieveRequest`
@@ -11568,7 +11482,7 @@ await client.crm.leads.list({
-**requestOptions:** `Leads.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -11579,7 +11493,7 @@ await client.crm.leads.list({
-
client.crm.leads.create({ ...params }) -> Merge.LeadResponse +
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -11591,7 +11505,7 @@ await client.crm.leads.list({
-Creates a `Lead` object with the given values. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -11607,9 +11521,7 @@ Creates a `Lead` object with the given values.
```typescript -await client.crm.leads.create({ - model: {}, -}); +await client.hris.fieldMapping.targetFieldsRetrieve(); ```
@@ -11625,15 +11537,7 @@ await client.crm.leads.create({
-**request:** `Merge.crm.LeadEndpointRequest` - -
-
- -
-
- -**requestOptions:** `Leads.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -11644,7 +11548,9 @@ await client.crm.leads.create({
-
client.crm.leads.retrieve(id, { ...params }) -> Merge.Lead +## Hris GenerateKey + +
client.hris.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -11656,7 +11562,7 @@ await client.crm.leads.create({
-Returns a `Lead` object with the given `id`. +Create a remote key.
@@ -11672,7 +11578,9 @@ Returns a `Lead` object with the given `id`.
```typescript -await client.crm.leads.retrieve("id"); +await client.hris.generateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -11688,15 +11596,7 @@ await client.crm.leads.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.LeadsRetrieveRequest` +**request:** `Merge.hris.GenerateRemoteKeyRequest`
@@ -11704,7 +11604,7 @@ await client.crm.leads.retrieve("id");
-**requestOptions:** `Leads.RequestOptions` +**requestOptions:** `GenerateKey.RequestOptions`
@@ -11715,7 +11615,9 @@ await client.crm.leads.retrieve("id");
-
client.crm.leads.metaPostRetrieve() -> Merge.MetaResponse +## Hris Groups + +
client.hris.groups.list({ ...params }) -> Merge.PaginatedGroupList
@@ -11727,7 +11629,7 @@ await client.crm.leads.retrieve("id");
-Returns metadata for `Lead` POSTs. +Returns a list of `Group` objects.
@@ -11743,7 +11645,9 @@ Returns metadata for `Lead` POSTs.
```typescript -await client.crm.leads.metaPostRetrieve(); +await client.hris.groups.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -11759,7 +11663,15 @@ await client.crm.leads.metaPostRetrieve();
-**requestOptions:** `Leads.RequestOptions` +**request:** `Merge.hris.GroupsListRequest` + +
+
+ +
+
+ +**requestOptions:** `Groups.RequestOptions`
@@ -11770,7 +11682,7 @@ await client.crm.leads.metaPostRetrieve();
-
client.crm.leads.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group
@@ -11782,7 +11694,7 @@ await client.crm.leads.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Returns a `Group` object with the given `id`.
@@ -11798,9 +11710,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.leads.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.groups.retrieve("id"); ```
@@ -11816,7 +11726,7 @@ await client.crm.leads.remoteFieldClassesList({
-**request:** `Merge.crm.LeadsRemoteFieldClassesListRequest` +**id:** `string`
@@ -11824,7 +11734,15 @@ await client.crm.leads.remoteFieldClassesList({
-**requestOptions:** `Leads.RequestOptions` +**request:** `Merge.hris.GroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Groups.RequestOptions`
@@ -11835,9 +11753,9 @@ await client.crm.leads.remoteFieldClassesList({
-## Crm LinkToken +## Hris Issues -
client.crm.linkToken.create({ ...params }) -> Merge.LinkToken +
client.hris.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -11849,7 +11767,7 @@ await client.crm.leads.remoteFieldClassesList({
-Creates a link token to be used when linking a new end user. +Gets all issues for Organization.
@@ -11865,11 +11783,8 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.crm.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], +await client.hris.issues.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -11886,7 +11801,7 @@ await client.crm.linkToken.create({
-**request:** `Merge.crm.EndUserDetailsRequest` +**request:** `Merge.hris.IssuesListRequest`
@@ -11894,7 +11809,7 @@ await client.crm.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -11905,9 +11820,7 @@ await client.crm.linkToken.create({
-## Crm LinkedAccounts - -
client.crm.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.hris.issues.retrieve(id) -> Merge.Issue
@@ -11919,7 +11832,7 @@ await client.crm.linkToken.create({
-List linked accounts for your organization. +Get a specific issue.
@@ -11935,9 +11848,7 @@ List linked accounts for your organization.
```typescript -await client.crm.linkedAccounts.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.issues.retrieve("id"); ```
@@ -11953,7 +11864,7 @@ await client.crm.linkedAccounts.list({
-**request:** `Merge.crm.LinkedAccountsListRequest` +**id:** `string`
@@ -11961,7 +11872,7 @@ await client.crm.linkedAccounts.list({
-**requestOptions:** `LinkedAccounts.RequestOptions` +**requestOptions:** `Issues.RequestOptions`
@@ -11972,9 +11883,9 @@ await client.crm.linkedAccounts.list({
-## Crm Notes +## Hris LinkToken -
client.crm.notes.list({ ...params }) -> Merge.PaginatedNoteList +
client.hris.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -11986,7 +11897,7 @@ await client.crm.linkedAccounts.list({
-Returns a list of `Note` objects. +Creates a link token to be used when linking a new end user.
@@ -12002,8 +11913,11 @@ Returns a list of `Note` objects.
```typescript -await client.crm.notes.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.hris.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], }); ``` @@ -12020,7 +11934,7 @@ await client.crm.notes.list({
-**request:** `Merge.crm.NotesListRequest` +**request:** `Merge.hris.EndUserDetailsRequest`
@@ -12028,7 +11942,7 @@ await client.crm.notes.list({
-**requestOptions:** `Notes.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -12039,7 +11953,9 @@ await client.crm.notes.list({
-
client.crm.notes.create({ ...params }) -> Merge.NoteResponse +## Hris LinkedAccounts + +
client.hris.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -12051,7 +11967,7 @@ await client.crm.notes.list({
-Creates a `Note` object with the given values. +List linked accounts for your organization.
@@ -12067,8 +11983,8 @@ Creates a `Note` object with the given values.
```typescript -await client.crm.notes.create({ - model: {}, +await client.hris.linkedAccounts.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -12085,7 +12001,7 @@ await client.crm.notes.create({
-**request:** `Merge.crm.NoteEndpointRequest` +**request:** `Merge.hris.LinkedAccountsListRequest`
@@ -12093,7 +12009,7 @@ await client.crm.notes.create({
-**requestOptions:** `Notes.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -12104,7 +12020,9 @@ await client.crm.notes.create({
-
client.crm.notes.retrieve(id, { ...params }) -> Merge.Note +## Hris Locations + +
client.hris.locations.list({ ...params }) -> Merge.PaginatedLocationList
@@ -12116,7 +12034,7 @@ await client.crm.notes.create({
-Returns a `Note` object with the given `id`. +Returns a list of `Location` objects.
@@ -12132,7 +12050,9 @@ Returns a `Note` object with the given `id`.
```typescript -await client.crm.notes.retrieve("id"); +await client.hris.locations.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -12148,15 +12068,7 @@ await client.crm.notes.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.NotesRetrieveRequest` +**request:** `Merge.hris.LocationsListRequest`
@@ -12164,7 +12076,7 @@ await client.crm.notes.retrieve("id");
-**requestOptions:** `Notes.RequestOptions` +**requestOptions:** `Locations.RequestOptions`
@@ -12175,7 +12087,7 @@ await client.crm.notes.retrieve("id");
-
client.crm.notes.metaPostRetrieve() -> Merge.MetaResponse +
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location
@@ -12187,7 +12099,7 @@ await client.crm.notes.retrieve("id");
-Returns metadata for `Note` POSTs. +Returns a `Location` object with the given `id`.
@@ -12203,7 +12115,7 @@ Returns metadata for `Note` POSTs.
```typescript -await client.crm.notes.metaPostRetrieve(); +await client.hris.locations.retrieve("id"); ```
@@ -12219,7 +12131,23 @@ await client.crm.notes.metaPostRetrieve();
-**requestOptions:** `Notes.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.hris.LocationsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Locations.RequestOptions`
@@ -12230,7 +12158,9 @@ await client.crm.notes.metaPostRetrieve();
-
client.crm.notes.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Hris Passthrough + +
client.hris.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -12242,7 +12172,7 @@ await client.crm.notes.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Pull data from an endpoint not currently supported by Merge.
@@ -12258,8 +12188,9 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.notes.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.hris.passthrough.create({ + method: "GET", + path: "/scooters", }); ``` @@ -12276,7 +12207,7 @@ await client.crm.notes.remoteFieldClassesList({
-**request:** `Merge.crm.NotesRemoteFieldClassesListRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -12284,7 +12215,7 @@ await client.crm.notes.remoteFieldClassesList({
-**requestOptions:** `Notes.RequestOptions` +**requestOptions:** `Passthrough.RequestOptions`
@@ -12295,9 +12226,9 @@ await client.crm.notes.remoteFieldClassesList({
-## Crm Opportunities +## Hris PayGroups -
client.crm.opportunities.list({ ...params }) -> Merge.PaginatedOpportunityList +
client.hris.payGroups.list({ ...params }) -> Merge.PaginatedPayGroupList
@@ -12309,7 +12240,7 @@ await client.crm.notes.remoteFieldClassesList({
-Returns a list of `Opportunity` objects. +Returns a list of `PayGroup` objects.
@@ -12325,7 +12256,7 @@ Returns a list of `Opportunity` objects.
```typescript -await client.crm.opportunities.list({ +await client.hris.payGroups.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -12343,7 +12274,7 @@ await client.crm.opportunities.list({
-**request:** `Merge.crm.OpportunitiesListRequest` +**request:** `Merge.hris.PayGroupsListRequest`
@@ -12351,7 +12282,7 @@ await client.crm.opportunities.list({
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `PayGroups.RequestOptions`
@@ -12362,7 +12293,7 @@ await client.crm.opportunities.list({
-
client.crm.opportunities.create({ ...params }) -> Merge.OpportunityResponse +
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup
@@ -12374,7 +12305,7 @@ await client.crm.opportunities.list({
-Creates an `Opportunity` object with the given values. +Returns a `PayGroup` object with the given `id`.
@@ -12390,9 +12321,7 @@ Creates an `Opportunity` object with the given values.
```typescript -await client.crm.opportunities.create({ - model: {}, -}); +await client.hris.payGroups.retrieve("id"); ```
@@ -12408,7 +12337,7 @@ await client.crm.opportunities.create({
-**request:** `Merge.crm.OpportunityEndpointRequest` +**id:** `string`
@@ -12416,7 +12345,15 @@ await client.crm.opportunities.create({
-**requestOptions:** `Opportunities.RequestOptions` +**request:** `Merge.hris.PayGroupsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `PayGroups.RequestOptions`
@@ -12427,7 +12364,9 @@ await client.crm.opportunities.create({
-
client.crm.opportunities.retrieve(id, { ...params }) -> Merge.Opportunity +## Hris PayrollRuns + +
client.hris.payrollRuns.list({ ...params }) -> Merge.PaginatedPayrollRunList
@@ -12439,7 +12378,7 @@ await client.crm.opportunities.create({
-Returns an `Opportunity` object with the given `id`. +Returns a list of `PayrollRun` objects.
@@ -12455,7 +12394,9 @@ Returns an `Opportunity` object with the given `id`.
```typescript -await client.crm.opportunities.retrieve("id"); +await client.hris.payrollRuns.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -12471,15 +12412,7 @@ await client.crm.opportunities.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.OpportunitiesRetrieveRequest` +**request:** `Merge.hris.PayrollRunsListRequest`
@@ -12487,7 +12420,7 @@ await client.crm.opportunities.retrieve("id");
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `PayrollRuns.RequestOptions`
@@ -12498,7 +12431,7 @@ await client.crm.opportunities.retrieve("id");
-
client.crm.opportunities.partialUpdate(id, { ...params }) -> Merge.OpportunityResponse +
client.hris.payrollRuns.retrieve(id, { ...params }) -> Merge.PayrollRun
@@ -12510,7 +12443,7 @@ await client.crm.opportunities.retrieve("id");
-Updates an `Opportunity` object with the given `id`. +Returns a `PayrollRun` object with the given `id`.
@@ -12526,9 +12459,7 @@ Updates an `Opportunity` object with the given `id`.
```typescript -await client.crm.opportunities.partialUpdate("id", { - model: {}, -}); +await client.hris.payrollRuns.retrieve("id"); ```
@@ -12552,7 +12483,7 @@ await client.crm.opportunities.partialUpdate("id", {
-**request:** `Merge.crm.PatchedOpportunityEndpointRequest` +**request:** `Merge.hris.PayrollRunsRetrieveRequest`
@@ -12560,7 +12491,7 @@ await client.crm.opportunities.partialUpdate("id", {
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `PayrollRuns.RequestOptions`
@@ -12571,7 +12502,9 @@ await client.crm.opportunities.partialUpdate("id", {
-
client.crm.opportunities.metaPatchRetrieve(id) -> Merge.MetaResponse +## Hris RegenerateKey + +
client.hris.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -12583,7 +12516,7 @@ await client.crm.opportunities.partialUpdate("id", {
-Returns metadata for `Opportunity` PATCHs. +Exchange remote keys.
@@ -12599,7 +12532,9 @@ Returns metadata for `Opportunity` PATCHs.
```typescript -await client.crm.opportunities.metaPatchRetrieve("id"); +await client.hris.regenerateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -12615,7 +12550,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-**id:** `string` +**request:** `Merge.hris.RemoteKeyForRegenerationRequest`
@@ -12623,7 +12558,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -12634,7 +12569,9 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-
client.crm.opportunities.metaPostRetrieve() -> Merge.MetaResponse +## Hris SyncStatus + +
client.hris.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -12646,7 +12583,7 @@ await client.crm.opportunities.metaPatchRetrieve("id");
-Returns metadata for `Opportunity` POSTs. +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -12662,7 +12599,9 @@ Returns metadata for `Opportunity` POSTs.
```typescript -await client.crm.opportunities.metaPostRetrieve(); +await client.hris.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -12678,7 +12617,15 @@ await client.crm.opportunities.metaPostRetrieve();
-**requestOptions:** `Opportunities.RequestOptions` +**request:** `Merge.hris.SyncStatusListRequest` + +
+
+ +
+
+ +**requestOptions:** `SyncStatus.RequestOptions`
@@ -12689,7 +12636,9 @@ await client.crm.opportunities.metaPostRetrieve();
-
client.crm.opportunities.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +## Hris ForceResync + +
client.hris.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -12701,7 +12650,7 @@ await client.crm.opportunities.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
@@ -12717,9 +12666,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.opportunities.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.forceResync.syncStatusResyncCreate(); ```
@@ -12735,15 +12682,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-**request:** `Merge.crm.OpportunitiesRemoteFieldClassesListRequest` - -
-
- -
-
- -**requestOptions:** `Opportunities.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -12754,9 +12693,9 @@ await client.crm.opportunities.remoteFieldClassesList({
-## Crm Passthrough +## Hris Teams -
client.crm.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.hris.teams.list({ ...params }) -> Merge.PaginatedTeamList
@@ -12768,7 +12707,7 @@ await client.crm.opportunities.remoteFieldClassesList({
-Pull data from an endpoint not currently supported by Merge. +Returns a list of `Team` objects.
@@ -12784,9 +12723,8 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.crm.passthrough.create({ - method: "GET", - path: "/scooters", +await client.hris.teams.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -12803,7 +12741,7 @@ await client.crm.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.hris.TeamsListRequest`
@@ -12811,7 +12749,7 @@ await client.crm.passthrough.create({
-**requestOptions:** `Passthrough.RequestOptions` +**requestOptions:** `Teams.RequestOptions`
@@ -12822,9 +12760,7 @@ await client.crm.passthrough.create({
-## Crm RegenerateKey - -
client.crm.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team
@@ -12836,7 +12772,7 @@ await client.crm.passthrough.create({
-Exchange remote keys. +Returns a `Team` object with the given `id`.
@@ -12852,9 +12788,7 @@ Exchange remote keys.
```typescript -await client.crm.regenerateKey.create({ - name: "Remote Deployment Key 1", -}); +await client.hris.teams.retrieve("id"); ```
@@ -12870,7 +12804,7 @@ await client.crm.regenerateKey.create({
-**request:** `Merge.crm.RemoteKeyForRegenerationRequest` +**id:** `string`
@@ -12878,7 +12812,15 @@ await client.crm.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**request:** `Merge.hris.TeamsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Teams.RequestOptions`
@@ -12889,9 +12831,9 @@ await client.crm.regenerateKey.create({
-## Crm Stages +## Hris TimeOff -
client.crm.stages.list({ ...params }) -> Merge.PaginatedStageList +
client.hris.timeOff.list({ ...params }) -> Merge.PaginatedTimeOffList
@@ -12903,7 +12845,7 @@ await client.crm.regenerateKey.create({
-Returns a list of `Stage` objects. +Returns a list of `TimeOff` objects.
@@ -12919,7 +12861,7 @@ Returns a list of `Stage` objects.
```typescript -await client.crm.stages.list({ +await client.hris.timeOff.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -12937,7 +12879,7 @@ await client.crm.stages.list({
-**request:** `Merge.crm.StagesListRequest` +**request:** `Merge.hris.TimeOffListRequest`
@@ -12945,7 +12887,7 @@ await client.crm.stages.list({
-**requestOptions:** `Stages.RequestOptions` +**requestOptions:** `TimeOff.RequestOptions`
@@ -12956,7 +12898,7 @@ await client.crm.stages.list({
-
client.crm.stages.retrieve(id, { ...params }) -> Merge.Stage +
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse
@@ -12968,7 +12910,7 @@ await client.crm.stages.list({
-Returns a `Stage` object with the given `id`. +Creates a `TimeOff` object with the given values.
@@ -12984,7 +12926,9 @@ Returns a `Stage` object with the given `id`.
```typescript -await client.crm.stages.retrieve("id"); +await client.hris.timeOff.create({ + model: {}, +}); ```
@@ -13000,15 +12944,7 @@ await client.crm.stages.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.StagesRetrieveRequest` +**request:** `Merge.hris.TimeOffEndpointRequest`
@@ -13016,7 +12952,7 @@ await client.crm.stages.retrieve("id");
-**requestOptions:** `Stages.RequestOptions` +**requestOptions:** `TimeOff.RequestOptions`
@@ -13027,7 +12963,7 @@ await client.crm.stages.retrieve("id");
-
client.crm.stages.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.hris.timeOff.retrieve(id, { ...params }) -> Merge.TimeOff
@@ -13039,7 +12975,7 @@ await client.crm.stages.retrieve("id");
-Returns a list of `RemoteFieldClass` objects. +Returns a `TimeOff` object with the given `id`.
@@ -13055,9 +12991,7 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.stages.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.timeOff.retrieve("id"); ```
@@ -13073,7 +13007,7 @@ await client.crm.stages.remoteFieldClassesList({
-**request:** `Merge.crm.StagesRemoteFieldClassesListRequest` +**id:** `string`
@@ -13081,7 +13015,15 @@ await client.crm.stages.remoteFieldClassesList({
-**requestOptions:** `Stages.RequestOptions` +**request:** `Merge.hris.TimeOffRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TimeOff.RequestOptions`
@@ -13092,9 +13034,7 @@ await client.crm.stages.remoteFieldClassesList({
-## Crm SyncStatus - -
client.crm.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse
@@ -13106,7 +13046,7 @@ await client.crm.stages.remoteFieldClassesList({
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns metadata for `TimeOff` POSTs.
@@ -13122,9 +13062,7 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.crm.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.timeOff.metaPostRetrieve(); ```
@@ -13140,15 +13078,7 @@ await client.crm.syncStatus.list({
-**request:** `Merge.crm.SyncStatusListRequest` - -
-
- -
-
- -**requestOptions:** `SyncStatus.RequestOptions` +**requestOptions:** `TimeOff.RequestOptions`
@@ -13159,9 +13089,9 @@ await client.crm.syncStatus.list({
-## Crm ForceResync +## Hris TimeOffBalances -
client.crm.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.hris.timeOffBalances.list({ ...params }) -> Merge.PaginatedTimeOffBalanceList
@@ -13173,7 +13103,7 @@ await client.crm.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Returns a list of `TimeOffBalance` objects.
@@ -13189,7 +13119,9 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.crm.forceResync.syncStatusResyncCreate(); +await client.hris.timeOffBalances.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -13205,7 +13137,15 @@ await client.crm.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**request:** `Merge.hris.TimeOffBalancesListRequest` + +
+
+ +
+
+ +**requestOptions:** `TimeOffBalances.RequestOptions`
@@ -13216,9 +13156,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-## Crm Tasks - -
client.crm.tasks.list({ ...params }) -> Merge.PaginatedTaskList +
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance
@@ -13230,7 +13168,7 @@ await client.crm.forceResync.syncStatusResyncCreate();
-Returns a list of `Task` objects. +Returns a `TimeOffBalance` object with the given `id`.
@@ -13246,9 +13184,7 @@ Returns a list of `Task` objects.
```typescript -await client.crm.tasks.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.hris.timeOffBalances.retrieve("id"); ```
@@ -13264,7 +13200,7 @@ await client.crm.tasks.list({
-**request:** `Merge.crm.TasksListRequest` +**id:** `string`
@@ -13272,7 +13208,15 @@ await client.crm.tasks.list({
-**requestOptions:** `Tasks.RequestOptions` +**request:** `Merge.hris.TimeOffBalancesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `TimeOffBalances.RequestOptions`
@@ -13283,7 +13227,9 @@ await client.crm.tasks.list({
-
client.crm.tasks.create({ ...params }) -> Merge.TaskResponse +## Hris TimesheetEntries + +
client.hris.timesheetEntries.list({ ...params }) -> Merge.PaginatedTimesheetEntryList
@@ -13295,7 +13241,7 @@ await client.crm.tasks.list({
-Creates a `Task` object with the given values. +Returns a list of `TimesheetEntry` objects.
@@ -13311,8 +13257,8 @@ Creates a `Task` object with the given values.
```typescript -await client.crm.tasks.create({ - model: {}, +await client.hris.timesheetEntries.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -13329,7 +13275,7 @@ await client.crm.tasks.create({
-**request:** `Merge.crm.TaskEndpointRequest` +**request:** `Merge.hris.TimesheetEntriesListRequest`
@@ -13337,7 +13283,7 @@ await client.crm.tasks.create({
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `TimesheetEntries.RequestOptions`
@@ -13348,7 +13294,7 @@ await client.crm.tasks.create({
-
client.crm.tasks.retrieve(id, { ...params }) -> Merge.Task +
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse
@@ -13360,7 +13306,7 @@ await client.crm.tasks.create({
-Returns a `Task` object with the given `id`. +Creates a `TimesheetEntry` object with the given values.
@@ -13376,7 +13322,9 @@ Returns a `Task` object with the given `id`.
```typescript -await client.crm.tasks.retrieve("id"); +await client.hris.timesheetEntries.create({ + model: {}, +}); ```
@@ -13392,15 +13340,7 @@ await client.crm.tasks.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.TasksRetrieveRequest` +**request:** `Merge.hris.TimesheetEntryEndpointRequest`
@@ -13408,7 +13348,7 @@ await client.crm.tasks.retrieve("id");
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `TimesheetEntries.RequestOptions`
@@ -13419,7 +13359,7 @@ await client.crm.tasks.retrieve("id");
-
client.crm.tasks.partialUpdate(id, { ...params }) -> Merge.TaskResponse +
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry
@@ -13431,7 +13371,7 @@ await client.crm.tasks.retrieve("id");
-Updates a `Task` object with the given `id`. +Returns a `TimesheetEntry` object with the given `id`.
@@ -13447,9 +13387,7 @@ Updates a `Task` object with the given `id`.
```typescript -await client.crm.tasks.partialUpdate("id", { - model: {}, -}); +await client.hris.timesheetEntries.retrieve("id"); ```
@@ -13473,7 +13411,7 @@ await client.crm.tasks.partialUpdate("id", {
-**request:** `Merge.crm.PatchedTaskEndpointRequest` +**request:** `Merge.hris.TimesheetEntriesRetrieveRequest`
@@ -13481,7 +13419,7 @@ await client.crm.tasks.partialUpdate("id", {
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `TimesheetEntries.RequestOptions`
@@ -13492,7 +13430,7 @@ await client.crm.tasks.partialUpdate("id", {
-
client.crm.tasks.metaPatchRetrieve(id) -> Merge.MetaResponse +
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse
@@ -13504,7 +13442,7 @@ await client.crm.tasks.partialUpdate("id", {
-Returns metadata for `Task` PATCHs. +Returns metadata for `TimesheetEntry` POSTs.
@@ -13520,7 +13458,7 @@ Returns metadata for `Task` PATCHs.
```typescript -await client.crm.tasks.metaPatchRetrieve("id"); +await client.hris.timesheetEntries.metaPostRetrieve(); ```
@@ -13536,15 +13474,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-**id:** `string` - -
-
- -
-
- -**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `TimesheetEntries.RequestOptions`
@@ -13555,7 +13485,9 @@ await client.crm.tasks.metaPatchRetrieve("id");
-
client.crm.tasks.metaPostRetrieve() -> Merge.MetaResponse +## Hris WebhookReceivers + +
client.hris.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -13567,7 +13499,7 @@ await client.crm.tasks.metaPatchRetrieve("id");
-Returns metadata for `Task` POSTs. +Returns a list of `WebhookReceiver` objects.
@@ -13583,7 +13515,7 @@ Returns metadata for `Task` POSTs.
```typescript -await client.crm.tasks.metaPostRetrieve(); +await client.hris.webhookReceivers.list(); ```
@@ -13599,7 +13531,7 @@ await client.crm.tasks.metaPostRetrieve();
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -13610,7 +13542,7 @@ await client.crm.tasks.metaPostRetrieve();
-
client.crm.tasks.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -13622,7 +13554,7 @@ await client.crm.tasks.metaPostRetrieve();
-Returns a list of `RemoteFieldClass` objects. +Creates a `WebhookReceiver` object with the given values.
@@ -13638,8 +13570,9 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.tasks.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.hris.webhookReceivers.create({ + event: "event", + isActive: true, }); ``` @@ -13656,7 +13589,7 @@ await client.crm.tasks.remoteFieldClassesList({
-**request:** `Merge.crm.TasksRemoteFieldClassesListRequest` +**request:** `Merge.hris.WebhookReceiverRequest`
@@ -13664,7 +13597,7 @@ await client.crm.tasks.remoteFieldClassesList({
-**requestOptions:** `Tasks.RequestOptions` +**requestOptions:** `WebhookReceivers.RequestOptions`
@@ -13675,9 +13608,9 @@ await client.crm.tasks.remoteFieldClassesList({
-## Crm Users +## Ats AccountDetails -
client.crm.users.list({ ...params }) -> Merge.PaginatedUserList +
client.ats.accountDetails.retrieve() -> Merge.AccountDetails
@@ -13689,7 +13622,7 @@ await client.crm.tasks.remoteFieldClassesList({
-Returns a list of `User` objects. +Get details for a linked account.
@@ -13705,9 +13638,7 @@ Returns a list of `User` objects.
```typescript -await client.crm.users.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.accountDetails.retrieve(); ```
@@ -13723,15 +13654,7 @@ await client.crm.users.list({
-**request:** `Merge.crm.UsersListRequest` - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` +**requestOptions:** `AccountDetails.RequestOptions`
@@ -13742,7 +13665,9 @@ await client.crm.users.list({
-
client.crm.users.retrieve(id, { ...params }) -> Merge.User +## Ats AccountToken + +
client.ats.accountToken.retrieve(publicToken) -> Merge.AccountToken
@@ -13754,7 +13679,7 @@ await client.crm.users.list({
-Returns a `User` object with the given `id`. +Returns the account token for the end user with the provided public token.
@@ -13770,7 +13695,7 @@ Returns a `User` object with the given `id`.
```typescript -await client.crm.users.retrieve("id"); +await client.ats.accountToken.retrieve("public_token"); ```
@@ -13786,15 +13711,7 @@ await client.crm.users.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.crm.UsersRetrieveRequest` +**publicToken:** `string`
@@ -13802,7 +13719,7 @@ await client.crm.users.retrieve("id");
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `AccountToken.RequestOptions`
@@ -13813,7 +13730,9 @@ await client.crm.users.retrieve("id");
-
client.crm.users.ignoreCreate(modelId, { ...params }) -> void +## Ats Activities + +
client.ats.activities.list({ ...params }) -> Merge.PaginatedActivityList
@@ -13825,7 +13744,7 @@ await client.crm.users.retrieve("id");
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns a list of `Activity` objects.
@@ -13841,8 +13760,8 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.crm.users.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", +await client.ats.activities.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -13859,15 +13778,7 @@ await client.crm.users.ignoreCreate("model_id", {
-**modelId:** `string` - -
-
- -
-
- -**request:** `Merge.IgnoreCommonModelRequest` +**request:** `Merge.ats.ActivitiesListRequest`
@@ -13875,7 +13786,7 @@ await client.crm.users.ignoreCreate("model_id", {
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Activities.RequestOptions`
@@ -13886,7 +13797,7 @@ await client.crm.users.ignoreCreate("model_id", {
-
client.crm.users.remoteFieldClassesList({ ...params }) -> Merge.PaginatedRemoteFieldClassList +
client.ats.activities.create({ ...params }) -> Merge.ActivityResponse
@@ -13898,7 +13809,7 @@ await client.crm.users.ignoreCreate("model_id", {
-Returns a list of `RemoteFieldClass` objects. +Creates an `Activity` object with the given values.
@@ -13914,8 +13825,9 @@ Returns a list of `RemoteFieldClass` objects.
```typescript -await client.crm.users.remoteFieldClassesList({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.ats.activities.create({ + model: {}, + remoteUserId: "remote_user_id", }); ``` @@ -13932,7 +13844,7 @@ await client.crm.users.remoteFieldClassesList({
-**request:** `Merge.crm.UsersRemoteFieldClassesListRequest` +**request:** `Merge.ats.ActivityEndpointRequest`
@@ -13940,7 +13852,7 @@ await client.crm.users.remoteFieldClassesList({
-**requestOptions:** `Users.RequestOptions` +**requestOptions:** `Activities.RequestOptions`
@@ -13951,9 +13863,7 @@ await client.crm.users.remoteFieldClassesList({
-## Crm WebhookReceivers - -
client.crm.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.ats.activities.retrieve(id, { ...params }) -> Merge.Activity
@@ -13965,7 +13875,7 @@ await client.crm.users.remoteFieldClassesList({
-Returns a list of `WebhookReceiver` objects. +Returns an `Activity` object with the given `id`.
@@ -13981,7 +13891,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.crm.webhookReceivers.list(); +await client.ats.activities.retrieve("id"); ```
@@ -13997,7 +13907,23 @@ await client.crm.webhookReceivers.list();
-**requestOptions:** `WebhookReceivers.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ats.ActivitiesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Activities.RequestOptions`
@@ -14008,7 +13934,7 @@ await client.crm.webhookReceivers.list();
-
client.crm.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.ats.activities.metaPostRetrieve() -> Merge.MetaResponse
@@ -14020,7 +13946,7 @@ await client.crm.webhookReceivers.list();
-Creates a `WebhookReceiver` object with the given values. +Returns metadata for `Activity` POSTs.
@@ -14036,10 +13962,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.crm.webhookReceivers.create({ - event: "event", - isActive: true, -}); +await client.ats.activities.metaPostRetrieve(); ```
@@ -14055,15 +13978,7 @@ await client.crm.webhookReceivers.create({
-**request:** `Merge.crm.WebhookReceiverRequest` - -
-
- -
-
- -**requestOptions:** `WebhookReceivers.RequestOptions` +**requestOptions:** `Activities.RequestOptions`
@@ -14074,9 +13989,9 @@ await client.crm.webhookReceivers.create({
-## Hris AccountDetails +## Ats Applications -
client.hris.accountDetails.retrieve() -> Merge.AccountDetails +
client.ats.applications.list({ ...params }) -> Merge.PaginatedApplicationList
@@ -14088,7 +14003,7 @@ await client.crm.webhookReceivers.create({
-Get details for a linked account. +Returns a list of `Application` objects.
@@ -14104,7 +14019,9 @@ Get details for a linked account.
```typescript -await client.hris.accountDetails.retrieve(); +await client.ats.applications.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -14120,7 +14037,15 @@ await client.hris.accountDetails.retrieve();
-**requestOptions:** `AccountDetails.RequestOptions` +**request:** `Merge.ats.ApplicationsListRequest` + +
+
+ +
+
+ +**requestOptions:** `Applications.RequestOptions`
@@ -14131,9 +14056,7 @@ await client.hris.accountDetails.retrieve();
-## Hris AccountToken - -
client.hris.accountToken.retrieve(publicToken) -> Merge.AccountToken +
client.ats.applications.create({ ...params }) -> Merge.ApplicationResponse
@@ -14145,7 +14068,10 @@ await client.hris.accountDetails.retrieve();
-Returns the account token for the end user with the provided public token. +Creates an `Application` object with the given values. +For certain integrations, but not all, our API detects duplicate candidates and will associate applications with existing records in the third-party. New candidates are created and automatically linked to the application. + +See our [Help Center article](https://help.merge.dev/en/articles/10012366-updates-to-post-applications-oct-2024) for detailed support per integration.
@@ -14161,7 +14087,10 @@ Returns the account token for the end user with the provided public token.
```typescript -await client.hris.accountToken.retrieve("public_token"); +await client.ats.applications.create({ + model: {}, + remoteUserId: "remote_user_id", +}); ```
@@ -14177,7 +14106,7 @@ await client.hris.accountToken.retrieve("public_token");
-**publicToken:** `string` +**request:** `Merge.ats.ApplicationEndpointRequest`
@@ -14185,7 +14114,7 @@ await client.hris.accountToken.retrieve("public_token");
-**requestOptions:** `AccountToken.RequestOptions` +**requestOptions:** `Applications.RequestOptions`
@@ -14196,9 +14125,7 @@ await client.hris.accountToken.retrieve("public_token");
-## Hris AsyncPassthrough - -
client.hris.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept +
client.ats.applications.retrieve(id, { ...params }) -> Merge.Application
@@ -14210,7 +14137,7 @@ await client.hris.accountToken.retrieve("public_token");
-Asynchronously pull data from an endpoint not currently supported by Merge. +Returns an `Application` object with the given `id`.
@@ -14226,10 +14153,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge.
```typescript -await client.hris.asyncPassthrough.create({ - method: "GET", - path: "/scooters", -}); +await client.ats.applications.retrieve("id"); ```
@@ -14245,7 +14169,7 @@ await client.hris.asyncPassthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**id:** `string`
@@ -14253,7 +14177,15 @@ await client.hris.asyncPassthrough.create({
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**request:** `Merge.ats.ApplicationsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Applications.RequestOptions`
@@ -14264,7 +14196,7 @@ await client.hris.asyncPassthrough.create({
-
client.hris.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse +
client.ats.applications.changeStageCreate(id, { ...params }) -> Merge.ApplicationResponse
@@ -14276,7 +14208,7 @@ await client.hris.asyncPassthrough.create({
-Retrieves data from earlier async-passthrough POST request +Updates the `current_stage` field of an `Application` object
@@ -14292,7 +14224,7 @@ Retrieves data from earlier async-passthrough POST request
```typescript -await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id"); +await client.ats.applications.changeStageCreate("id"); ```
@@ -14308,7 +14240,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**asyncPassthroughReceiptId:** `string` +**id:** `string`
@@ -14316,7 +14248,15 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-**requestOptions:** `AsyncPassthrough.RequestOptions` +**request:** `Merge.ats.UpdateApplicationStageRequest` + +
+
+ +
+
+ +**requestOptions:** `Applications.RequestOptions`
@@ -14327,9 +14267,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-## Hris AuditTrail - -
client.hris.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList +
client.ats.applications.metaPostRetrieve({ ...params }) -> Merge.MetaResponse
@@ -14341,7 +14279,7 @@ await client.hris.asyncPassthrough.retrieve("async_passthrough_receipt_id");
-Gets a list of audit trail events. +Returns metadata for `Application` POSTs.
@@ -14357,9 +14295,7 @@ Gets a list of audit trail events.
```typescript -await client.hris.auditTrail.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.applications.metaPostRetrieve(); ```
@@ -14375,7 +14311,7 @@ await client.hris.auditTrail.list({
-**request:** `Merge.hris.AuditTrailListRequest` +**request:** `Merge.ats.ApplicationsMetaPostRetrieveRequest`
@@ -14383,7 +14319,7 @@ await client.hris.auditTrail.list({
-**requestOptions:** `AuditTrail.RequestOptions` +**requestOptions:** `Applications.RequestOptions`
@@ -14394,9 +14330,9 @@ await client.hris.auditTrail.list({
-## Hris AvailableActions +## Ats AsyncPassthrough -
client.hris.availableActions.retrieve() -> Merge.AvailableActions +
client.ats.asyncPassthrough.create({ ...params }) -> Merge.AsyncPassthroughReciept
@@ -14408,7 +14344,7 @@ await client.hris.auditTrail.list({
-Returns a list of models and actions available for an account. +Asynchronously pull data from an endpoint not currently supported by Merge.
@@ -14424,7 +14360,10 @@ Returns a list of models and actions available for an account.
```typescript -await client.hris.availableActions.retrieve(); +await client.ats.asyncPassthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -14440,7 +14379,15 @@ await client.hris.availableActions.retrieve();
-**requestOptions:** `AvailableActions.RequestOptions` +**request:** `Merge.DataPassthroughRequest` + +
+
+ +
+
+ +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -14451,9 +14398,7 @@ await client.hris.availableActions.retrieve();
-## Hris BankInfo - -
client.hris.bankInfo.list({ ...params }) -> Merge.PaginatedBankInfoList +
client.ats.asyncPassthrough.retrieve(asyncPassthroughReceiptId) -> Merge.AsyncPassthroughRetrieveResponse
@@ -14465,7 +14410,7 @@ await client.hris.availableActions.retrieve();
-Returns a list of `BankInfo` objects. +Retrieves data from earlier async-passthrough POST request
@@ -14481,9 +14426,7 @@ Returns a list of `BankInfo` objects.
```typescript -await client.hris.bankInfo.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.asyncPassthrough.retrieve("async_passthrough_receipt_id"); ```
@@ -14499,7 +14442,7 @@ await client.hris.bankInfo.list({
-**request:** `Merge.hris.BankInfoListRequest` +**asyncPassthroughReceiptId:** `string`
@@ -14507,7 +14450,7 @@ await client.hris.bankInfo.list({
-**requestOptions:** `BankInfo.RequestOptions` +**requestOptions:** `AsyncPassthrough.RequestOptions`
@@ -14518,7 +14461,9 @@ await client.hris.bankInfo.list({
-
client.hris.bankInfo.retrieve(id, { ...params }) -> Merge.BankInfo +## Ats Attachments + +
client.ats.attachments.list({ ...params }) -> Merge.PaginatedAttachmentList
@@ -14530,7 +14475,7 @@ await client.hris.bankInfo.list({
-Returns a `BankInfo` object with the given `id`. +Returns a list of `Attachment` objects.
@@ -14546,7 +14491,9 @@ Returns a `BankInfo` object with the given `id`.
```typescript -await client.hris.bankInfo.retrieve("id"); +await client.ats.attachments.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -14562,15 +14509,7 @@ await client.hris.bankInfo.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.BankInfoRetrieveRequest` +**request:** `Merge.ats.AttachmentsListRequest`
@@ -14578,7 +14517,7 @@ await client.hris.bankInfo.retrieve("id");
-**requestOptions:** `BankInfo.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -14589,9 +14528,7 @@ await client.hris.bankInfo.retrieve("id");
-## Hris Benefits - -
client.hris.benefits.list({ ...params }) -> Merge.PaginatedBenefitList +
client.ats.attachments.create({ ...params }) -> Merge.AttachmentResponse
@@ -14603,7 +14540,7 @@ await client.hris.bankInfo.retrieve("id");
-Returns a list of `Benefit` objects. +Creates an `Attachment` object with the given values.
@@ -14619,8 +14556,9 @@ Returns a list of `Benefit` objects.
```typescript -await client.hris.benefits.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.ats.attachments.create({ + model: {}, + remoteUserId: "remote_user_id", }); ``` @@ -14637,7 +14575,7 @@ await client.hris.benefits.list({
-**request:** `Merge.hris.BenefitsListRequest` +**request:** `Merge.ats.AttachmentEndpointRequest`
@@ -14645,7 +14583,7 @@ await client.hris.benefits.list({
-**requestOptions:** `Benefits.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -14656,7 +14594,7 @@ await client.hris.benefits.list({
-
client.hris.benefits.retrieve(id, { ...params }) -> Merge.Benefit +
client.ats.attachments.retrieve(id, { ...params }) -> Merge.Attachment
@@ -14668,7 +14606,7 @@ await client.hris.benefits.list({
-Returns a `Benefit` object with the given `id`. +Returns an `Attachment` object with the given `id`.
@@ -14684,7 +14622,7 @@ Returns a `Benefit` object with the given `id`.
```typescript -await client.hris.benefits.retrieve("id"); +await client.ats.attachments.retrieve("id"); ```
@@ -14708,7 +14646,7 @@ await client.hris.benefits.retrieve("id");
-**request:** `Merge.hris.BenefitsRetrieveRequest` +**request:** `Merge.ats.AttachmentsRetrieveRequest`
@@ -14716,7 +14654,7 @@ await client.hris.benefits.retrieve("id");
-**requestOptions:** `Benefits.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -14727,9 +14665,7 @@ await client.hris.benefits.retrieve("id");
-## Hris Companies - -
client.hris.companies.list({ ...params }) -> Merge.PaginatedCompanyList +
client.ats.attachments.metaPostRetrieve() -> Merge.MetaResponse
@@ -14741,7 +14677,7 @@ await client.hris.benefits.retrieve("id");
-Returns a list of `Company` objects. +Returns metadata for `Attachment` POSTs.
@@ -14757,9 +14693,7 @@ Returns a list of `Company` objects.
```typescript -await client.hris.companies.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.attachments.metaPostRetrieve(); ```
@@ -14775,15 +14709,7 @@ await client.hris.companies.list({
-**request:** `Merge.hris.CompaniesListRequest` - -
-
- -
-
- -**requestOptions:** `Companies.RequestOptions` +**requestOptions:** `Attachments.RequestOptions`
@@ -14794,7 +14720,9 @@ await client.hris.companies.list({
-
client.hris.companies.retrieve(id, { ...params }) -> Merge.Company +## Ats AuditTrail + +
client.ats.auditTrail.list({ ...params }) -> Merge.PaginatedAuditLogEventList
@@ -14806,7 +14734,7 @@ await client.hris.companies.list({
-Returns a `Company` object with the given `id`. +Gets a list of audit trail events.
@@ -14822,7 +14750,9 @@ Returns a `Company` object with the given `id`.
```typescript -await client.hris.companies.retrieve("id"); +await client.ats.auditTrail.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -14838,15 +14768,7 @@ await client.hris.companies.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.CompaniesRetrieveRequest` +**request:** `Merge.ats.AuditTrailListRequest`
@@ -14854,7 +14776,7 @@ await client.hris.companies.retrieve("id");
-**requestOptions:** `Companies.RequestOptions` +**requestOptions:** `AuditTrail.RequestOptions`
@@ -14865,9 +14787,9 @@ await client.hris.companies.retrieve("id");
-## Hris Scopes +## Ats AvailableActions -
client.hris.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi +
client.ats.availableActions.retrieve() -> Merge.AvailableActions
@@ -14879,7 +14801,7 @@ await client.hris.companies.retrieve("id");
-Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of models and actions available for an account.
@@ -14895,7 +14817,7 @@ Get the default permissions for Merge Common Models and fields across all Linked
```typescript -await client.hris.scopes.defaultScopesRetrieve(); +await client.ats.availableActions.retrieve(); ```
@@ -14911,7 +14833,7 @@ await client.hris.scopes.defaultScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `AvailableActions.RequestOptions`
@@ -14922,7 +14844,9 @@ await client.hris.scopes.defaultScopesRetrieve();
-
client.hris.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi +## Ats Candidates + +
client.ats.candidates.list({ ...params }) -> Merge.PaginatedCandidateList
@@ -14934,7 +14858,7 @@ await client.hris.scopes.defaultScopesRetrieve();
-Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). +Returns a list of `Candidate` objects.
@@ -14950,7 +14874,9 @@ Get all available permissions for Merge Common Models and fields for a single Li
```typescript -await client.hris.scopes.linkedAccountScopesRetrieve(); +await client.ats.candidates.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -14966,7 +14892,15 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-**requestOptions:** `Scopes.RequestOptions` +**request:** `Merge.ats.CandidatesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Candidates.RequestOptions`
@@ -14977,7 +14911,7 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-
client.hris.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi +
client.ats.candidates.create({ ...params }) -> Merge.CandidateResponse
@@ -14989,7 +14923,7 @@ await client.hris.scopes.linkedAccountScopesRetrieve();
-Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes) +Creates a `Candidate` object with the given values.
@@ -15005,32 +14939,9 @@ Update permissions for any Common Model or field for a single Linked Account. An
```typescript -await client.hris.scopes.linkedAccountScopesCreate({ - commonModels: [ - { - modelName: "Employee", - modelPermissions: { - READ: { - isEnabled: true, - }, - WRITE: { - isEnabled: false, - }, - }, - fieldPermissions: { - enabledFields: ["avatar", "home_location"], - disabledFields: ["work_location"], - }, - }, - { - modelName: "Benefit", - modelPermissions: { - WRITE: { - isEnabled: false, - }, - }, - }, - ], +await client.ats.candidates.create({ + model: {}, + remoteUserId: "remote_user_id", }); ``` @@ -15047,7 +14958,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-**request:** `Merge.hris.LinkedAccountCommonModelScopeDeserializerRequest` +**request:** `Merge.ats.CandidateEndpointRequest`
@@ -15055,7 +14966,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-**requestOptions:** `Scopes.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -15066,9 +14977,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-## Hris DeleteAccount - -
client.hris.deleteAccount.delete() -> void +
client.ats.candidates.retrieve(id, { ...params }) -> Merge.Candidate
@@ -15080,7 +14989,7 @@ await client.hris.scopes.linkedAccountScopesCreate({
-Delete a linked account. +Returns a `Candidate` object with the given `id`.
@@ -15096,7 +15005,7 @@ Delete a linked account.
```typescript -await client.hris.deleteAccount.delete(); +await client.ats.candidates.retrieve("id"); ```
@@ -15112,20 +15021,34 @@ await client.hris.deleteAccount.delete();
-**requestOptions:** `DeleteAccount.RequestOptions` +**id:** `string`
+ +
+
+ +**request:** `Merge.ats.CandidatesRetrieveRequest` +
+
+
+ +**requestOptions:** `Candidates.RequestOptions` + +
+
-
-## Hris Dependents + + +
-
client.hris.dependents.list({ ...params }) -> Merge.PaginatedDependentList +
client.ats.candidates.partialUpdate(id, { ...params }) -> Merge.CandidateResponse
@@ -15137,7 +15060,7 @@ await client.hris.deleteAccount.delete();
-Returns a list of `Dependent` objects. +Updates a `Candidate` object with the given `id`.
@@ -15153,8 +15076,9 @@ Returns a list of `Dependent` objects.
```typescript -await client.hris.dependents.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.ats.candidates.partialUpdate("id", { + model: {}, + remoteUserId: "remote_user_id", }); ``` @@ -15171,7 +15095,7 @@ await client.hris.dependents.list({
-**request:** `Merge.hris.DependentsListRequest` +**id:** `string`
@@ -15179,7 +15103,15 @@ await client.hris.dependents.list({
-**requestOptions:** `Dependents.RequestOptions` +**request:** `Merge.ats.PatchedCandidateEndpointRequest` + +
+
+ +
+
+ +**requestOptions:** `Candidates.RequestOptions`
@@ -15190,7 +15122,7 @@ await client.hris.dependents.list({
-
client.hris.dependents.retrieve(id, { ...params }) -> Merge.Dependent +
client.ats.candidates.ignoreCreate(modelId, { ...params }) -> void
@@ -15202,7 +15134,7 @@ await client.hris.dependents.list({
-Returns a `Dependent` object with the given `id`. +Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes.
@@ -15218,7 +15150,9 @@ Returns a `Dependent` object with the given `id`.
```typescript -await client.hris.dependents.retrieve("id"); +await client.ats.candidates.ignoreCreate("model_id", { + reason: "GENERAL_CUSTOMER_REQUEST", +}); ```
@@ -15234,7 +15168,7 @@ await client.hris.dependents.retrieve("id");
-**id:** `string` +**modelId:** `string`
@@ -15242,7 +15176,7 @@ await client.hris.dependents.retrieve("id");
-**request:** `Merge.hris.DependentsRetrieveRequest` +**request:** `Merge.ats.IgnoreCommonModelRequest`
@@ -15250,7 +15184,7 @@ await client.hris.dependents.retrieve("id");
-**requestOptions:** `Dependents.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -15261,9 +15195,7 @@ await client.hris.dependents.retrieve("id");
-## Hris EmployeePayrollRuns - -
client.hris.employeePayrollRuns.list({ ...params }) -> Merge.PaginatedEmployeePayrollRunList +
client.ats.candidates.metaPatchRetrieve(id) -> Merge.MetaResponse
@@ -15275,7 +15207,7 @@ await client.hris.dependents.retrieve("id");
-Returns a list of `EmployeePayrollRun` objects. +Returns metadata for `Candidate` PATCHs.
@@ -15291,9 +15223,7 @@ Returns a list of `EmployeePayrollRun` objects.
```typescript -await client.hris.employeePayrollRuns.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.candidates.metaPatchRetrieve("id"); ```
@@ -15309,7 +15239,7 @@ await client.hris.employeePayrollRuns.list({
-**request:** `Merge.hris.EmployeePayrollRunsListRequest` +**id:** `string`
@@ -15317,7 +15247,7 @@ await client.hris.employeePayrollRuns.list({
-**requestOptions:** `EmployeePayrollRuns.RequestOptions` +**requestOptions:** `Candidates.RequestOptions`
@@ -15328,7 +15258,7 @@ await client.hris.employeePayrollRuns.list({
-
client.hris.employeePayrollRuns.retrieve(id, { ...params }) -> Merge.EmployeePayrollRun +
client.ats.candidates.metaPostRetrieve() -> Merge.MetaResponse
@@ -15340,7 +15270,7 @@ await client.hris.employeePayrollRuns.list({
-Returns an `EmployeePayrollRun` object with the given `id`. +Returns metadata for `Candidate` POSTs.
@@ -15356,7 +15286,7 @@ Returns an `EmployeePayrollRun` object with the given `id`.
```typescript -await client.hris.employeePayrollRuns.retrieve("id"); +await client.ats.candidates.metaPostRetrieve(); ```
@@ -15372,23 +15302,64 @@ await client.hris.employeePayrollRuns.retrieve("id");
-**id:** `string` +**requestOptions:** `Candidates.RequestOptions` + +
+
+ +
+
+ +## Ats Scopes +
client.ats.scopes.defaultScopesRetrieve() -> Merge.CommonModelScopeApi
-**request:** `Merge.hris.EmployeePayrollRunsRetrieveRequest` +#### 📝 Description + +
+
+ +
+
+ +Get the default permissions for Merge Common Models and fields across all Linked Accounts of a given category. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes). + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.ats.scopes.defaultScopesRetrieve(); +```
+
+
+ +#### ⚙️ Parameters
-**requestOptions:** `EmployeePayrollRuns.RequestOptions` +
+
+ +**requestOptions:** `Scopes.RequestOptions`
@@ -15399,9 +15370,7 @@ await client.hris.employeePayrollRuns.retrieve("id");
-## Hris Employees - -
client.hris.employees.list({ ...params }) -> Merge.PaginatedEmployeeList +
client.ats.scopes.linkedAccountScopesRetrieve() -> Merge.CommonModelScopeApi
@@ -15413,7 +15382,7 @@ await client.hris.employeePayrollRuns.retrieve("id");
-Returns a list of `Employee` objects. +Get all available permissions for Merge Common Models and fields for a single Linked Account. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes).
@@ -15429,9 +15398,7 @@ Returns a list of `Employee` objects.
```typescript -await client.hris.employees.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.scopes.linkedAccountScopesRetrieve(); ```
@@ -15447,15 +15414,7 @@ await client.hris.employees.list({
-**request:** `Merge.hris.EmployeesListRequest` - -
-
- -
-
- -**requestOptions:** `Employees.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -15466,7 +15425,7 @@ await client.hris.employees.list({
-
client.hris.employees.create({ ...params }) -> Merge.EmployeeResponse +
client.ats.scopes.linkedAccountScopesCreate({ ...params }) -> Merge.CommonModelScopeApi
@@ -15478,7 +15437,7 @@ await client.hris.employees.list({
-Creates an `Employee` object with the given values. +Update permissions for any Common Model or field for a single Linked Account. Any Scopes not set in this POST request will inherit the default Scopes. [Learn more](https://help.merge.dev/en/articles/5950052-common-model-and-field-scopes)
@@ -15494,8 +15453,32 @@ Creates an `Employee` object with the given values.
```typescript -await client.hris.employees.create({ - model: {}, +await client.ats.scopes.linkedAccountScopesCreate({ + commonModels: [ + { + modelName: "Employee", + modelPermissions: { + READ: { + isEnabled: true, + }, + WRITE: { + isEnabled: false, + }, + }, + fieldPermissions: { + enabledFields: ["avatar", "home_location"], + disabledFields: ["work_location"], + }, + }, + { + modelName: "Benefit", + modelPermissions: { + WRITE: { + isEnabled: false, + }, + }, + }, + ], }); ``` @@ -15512,7 +15495,7 @@ await client.hris.employees.create({
-**request:** `Merge.hris.EmployeeEndpointRequest` +**request:** `Merge.ats.LinkedAccountCommonModelScopeDeserializerRequest`
@@ -15520,7 +15503,7 @@ await client.hris.employees.create({
-**requestOptions:** `Employees.RequestOptions` +**requestOptions:** `Scopes.RequestOptions`
@@ -15531,7 +15514,9 @@ await client.hris.employees.create({
-
client.hris.employees.retrieve(id, { ...params }) -> Merge.Employee +## Ats DeleteAccount + +
client.ats.deleteAccount.delete() -> void
@@ -15543,7 +15528,7 @@ await client.hris.employees.create({
-Returns an `Employee` object with the given `id`. +Delete a linked account.
@@ -15559,7 +15544,7 @@ Returns an `Employee` object with the given `id`.
```typescript -await client.hris.employees.retrieve("id"); +await client.ats.deleteAccount.delete(); ```
@@ -15575,23 +15560,7 @@ await client.hris.employees.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmployeesRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Employees.RequestOptions` +**requestOptions:** `DeleteAccount.RequestOptions`
@@ -15602,7 +15571,9 @@ await client.hris.employees.retrieve("id");
-
client.hris.employees.ignoreCreate(modelId, { ...params }) -> void +## Ats Departments + +
client.ats.departments.list({ ...params }) -> Merge.PaginatedDepartmentList
@@ -15614,7 +15585,7 @@ await client.hris.employees.retrieve("id");
-Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The "reason" and "message" fields in the request body will be stored for audit purposes. +Returns a list of `Department` objects.
@@ -15630,8 +15601,8 @@ Ignores a specific row based on the `model_id` in the url. These records will ha
```typescript -await client.hris.employees.ignoreCreate("model_id", { - reason: "GENERAL_CUSTOMER_REQUEST", +await client.ats.departments.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -15648,15 +15619,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-**modelId:** `string` - -
-
- -
-
- -**request:** `Merge.hris.IgnoreCommonModelRequest` +**request:** `Merge.ats.DepartmentsListRequest`
@@ -15664,7 +15627,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-**requestOptions:** `Employees.RequestOptions` +**requestOptions:** `Departments.RequestOptions`
@@ -15675,7 +15638,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-
client.hris.employees.metaPostRetrieve() -> Merge.MetaResponse +
client.ats.departments.retrieve(id, { ...params }) -> Merge.Department
@@ -15687,7 +15650,7 @@ await client.hris.employees.ignoreCreate("model_id", {
-Returns metadata for `Employee` POSTs. +Returns a `Department` object with the given `id`.
@@ -15703,7 +15666,7 @@ Returns metadata for `Employee` POSTs.
```typescript -await client.hris.employees.metaPostRetrieve(); +await client.ats.departments.retrieve("id"); ```
@@ -15719,7 +15682,23 @@ await client.hris.employees.metaPostRetrieve();
-**requestOptions:** `Employees.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ats.DepartmentsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Departments.RequestOptions`
@@ -15730,9 +15709,9 @@ await client.hris.employees.metaPostRetrieve();
-## Hris EmployerBenefits +## Ats Eeocs -
client.hris.employerBenefits.list({ ...params }) -> Merge.PaginatedEmployerBenefitList +
client.ats.eeocs.list({ ...params }) -> Merge.PaginatedEeocList
@@ -15744,7 +15723,7 @@ await client.hris.employees.metaPostRetrieve();
-Returns a list of `EmployerBenefit` objects. +Returns a list of `EEOC` objects.
@@ -15760,7 +15739,7 @@ Returns a list of `EmployerBenefit` objects.
```typescript -await client.hris.employerBenefits.list({ +await client.ats.eeocs.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -15778,7 +15757,7 @@ await client.hris.employerBenefits.list({
-**request:** `Merge.hris.EmployerBenefitsListRequest` +**request:** `Merge.ats.EeocsListRequest`
@@ -15786,7 +15765,7 @@ await client.hris.employerBenefits.list({
-**requestOptions:** `EmployerBenefits.RequestOptions` +**requestOptions:** `Eeocs.RequestOptions`
@@ -15797,7 +15776,7 @@ await client.hris.employerBenefits.list({
-
client.hris.employerBenefits.retrieve(id, { ...params }) -> Merge.EmployerBenefit +
client.ats.eeocs.retrieve(id, { ...params }) -> Merge.Eeoc
@@ -15809,7 +15788,7 @@ await client.hris.employerBenefits.list({
-Returns an `EmployerBenefit` object with the given `id`. +Returns an `EEOC` object with the given `id`.
@@ -15825,7 +15804,7 @@ Returns an `EmployerBenefit` object with the given `id`.
```typescript -await client.hris.employerBenefits.retrieve("id"); +await client.ats.eeocs.retrieve("id"); ```
@@ -15849,7 +15828,7 @@ await client.hris.employerBenefits.retrieve("id");
-**request:** `Merge.hris.EmployerBenefitsRetrieveRequest` +**request:** `Merge.ats.EeocsRetrieveRequest`
@@ -15857,7 +15836,7 @@ await client.hris.employerBenefits.retrieve("id");
-**requestOptions:** `EmployerBenefits.RequestOptions` +**requestOptions:** `Eeocs.RequestOptions`
@@ -15868,9 +15847,9 @@ await client.hris.employerBenefits.retrieve("id");
-## Hris Employments +## Ats FieldMapping -
client.hris.employments.list({ ...params }) -> Merge.PaginatedEmploymentList +
client.ats.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse
@@ -15882,7 +15861,7 @@ await client.hris.employerBenefits.retrieve("id");
-Returns a list of `Employment` objects. +Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -15898,9 +15877,7 @@ Returns a list of `Employment` objects.
```typescript -await client.hris.employments.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.fieldMapping.fieldMappingsRetrieve(); ```
@@ -15916,7 +15893,7 @@ await client.hris.employments.list({
-**request:** `Merge.hris.EmploymentsListRequest` +**request:** `Merge.ats.FieldMappingsRetrieveRequest`
@@ -15924,7 +15901,7 @@ await client.hris.employments.list({
-**requestOptions:** `Employments.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -15935,7 +15912,7 @@ await client.hris.employments.list({
-
client.hris.employments.retrieve(id, { ...params }) -> Merge.Employment +
client.ats.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse
@@ -15947,7 +15924,7 @@ await client.hris.employments.list({
-Returns an `Employment` object with the given `id`. +Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -15963,7 +15940,14 @@ Returns an `Employment` object with the given `id`.
```typescript -await client.hris.employments.retrieve("id"); +await client.ats.fieldMapping.fieldMappingsCreate({ + targetFieldName: "example_target_field_name", + targetFieldDescription: "this is a example description of the target field", + remoteFieldTraversalPath: ["example_remote_field"], + remoteMethod: "GET", + remoteUrlPath: "/example-url-path", + commonModelName: "ExampleCommonModel", +}); ```
@@ -15979,15 +15963,7 @@ await client.hris.employments.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.EmploymentsRetrieveRequest` +**request:** `Merge.ats.CreateFieldMappingRequest`
@@ -15995,7 +15971,7 @@ await client.hris.employments.retrieve("id");
-**requestOptions:** `Employments.RequestOptions` +**requestOptions:** `FieldMapping.RequestOptions`
@@ -16006,9 +15982,7 @@ await client.hris.employments.retrieve("id");
-## Hris FieldMapping - -
client.hris.fieldMapping.fieldMappingsRetrieve({ ...params }) -> Merge.FieldMappingApiInstanceResponse +
client.ats.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse
@@ -16020,7 +15994,7 @@ await client.hris.employments.retrieve("id");
-Get all Field Mappings for this Linked Account. Field Mappings are mappings between third-party Remote Fields and user defined Merge fields. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -16036,7 +16010,7 @@ Get all Field Mappings for this Linked Account. Field Mappings are mappings betw
```typescript -await client.hris.fieldMapping.fieldMappingsRetrieve(); +await client.ats.fieldMapping.fieldMappingsDestroy("field_mapping_id"); ```
@@ -16052,7 +16026,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve();
-**request:** `Merge.hris.FieldMappingsRetrieveRequest` +**fieldMappingId:** `string`
@@ -16071,7 +16045,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve();
-
client.hris.fieldMapping.fieldMappingsCreate({ ...params }) -> Merge.FieldMappingInstanceResponse +
client.ats.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse
@@ -16083,7 +16057,7 @@ await client.hris.fieldMapping.fieldMappingsRetrieve();
-Create new Field Mappings that will be available after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start.
@@ -16099,14 +16073,7 @@ Create new Field Mappings that will be available after the next scheduled sync.
```typescript -await client.hris.fieldMapping.fieldMappingsCreate({ - targetFieldName: "example_target_field_name", - targetFieldDescription: "this is a example description of the target field", - remoteFieldTraversalPath: ["example_remote_field"], - remoteMethod: "GET", - remoteUrlPath: "/example-url-path", - commonModelName: "ExampleCommonModel", -}); +await client.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); ```
@@ -16122,7 +16089,15 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-**request:** `Merge.hris.CreateFieldMappingRequest` +**fieldMappingId:** `string` + +
+
+ +
+
+ +**request:** `Merge.ats.PatchedEditFieldMappingRequest`
@@ -16141,7 +16116,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-
client.hris.fieldMapping.fieldMappingsDestroy(fieldMappingId) -> Merge.FieldMappingInstanceResponse +
client.ats.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse
@@ -16153,7 +16128,7 @@ await client.hris.fieldMapping.fieldMappingsCreate({
-Deletes Field Mappings for a Linked Account. All data related to this Field Mapping will be deleted and these changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/).
@@ -16169,7 +16144,7 @@ Deletes Field Mappings for a Linked Account. All data related to this Field Mapp
```typescript -await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id"); +await client.ats.fieldMapping.remoteFieldsRetrieve(); ```
@@ -16185,7 +16160,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-**fieldMappingId:** `string` +**request:** `Merge.ats.RemoteFieldsRetrieveRequest`
@@ -16204,7 +16179,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-
client.hris.fieldMapping.fieldMappingsPartialUpdate(fieldMappingId, { ...params }) -> Merge.FieldMappingInstanceResponse +
client.ats.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse
@@ -16216,7 +16191,7 @@ await client.hris.fieldMapping.fieldMappingsDestroy("field_mapping_id");
-Create or update existing Field Mappings for a Linked Account. Changes will be reflected after the next scheduled sync. This will cause the next sync for this Linked Account to sync **ALL** data from start. +Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/).
@@ -16232,7 +16207,7 @@ Create or update existing Field Mappings for a Linked Account. Changes will be r
```typescript -await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id"); +await client.ats.fieldMapping.targetFieldsRetrieve(); ```
@@ -16248,22 +16223,6 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-**fieldMappingId:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PatchedEditFieldMappingRequest` - -
-
- -
-
- **requestOptions:** `FieldMapping.RequestOptions`
@@ -16275,7 +16234,9 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-
client.hris.fieldMapping.remoteFieldsRetrieve({ ...params }) -> Merge.RemoteFieldApiResponse +## Ats GenerateKey + +
client.ats.generateKey.create({ ...params }) -> Merge.RemoteKey
@@ -16287,7 +16248,7 @@ await client.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id");
-Get all remote fields for a Linked Account. Remote fields are third-party fields that are accessible after initial sync if remote_data is enabled. You can use remote fields to override existing Merge fields or map a new Merge field. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/overview/). +Create a remote key.
@@ -16303,7 +16264,9 @@ Get all remote fields for a Linked Account. Remote fields are third-party fields
```typescript -await client.hris.fieldMapping.remoteFieldsRetrieve(); +await client.ats.generateKey.create({ + name: "Remote Deployment Key 1", +}); ```
@@ -16319,7 +16282,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve();
-**request:** `Merge.hris.RemoteFieldsRetrieveRequest` +**request:** `Merge.ats.GenerateRemoteKeyRequest`
@@ -16327,7 +16290,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**requestOptions:** `GenerateKey.RequestOptions`
@@ -16338,7 +16301,9 @@ await client.hris.fieldMapping.remoteFieldsRetrieve();
-
client.hris.fieldMapping.targetFieldsRetrieve() -> Merge.ExternalTargetFieldApiResponse +## Ats Interviews + +
client.ats.interviews.list({ ...params }) -> Merge.PaginatedScheduledInterviewList
@@ -16350,7 +16315,7 @@ await client.hris.fieldMapping.remoteFieldsRetrieve();
-Get all organization-wide Target Fields, this will not include any Linked Account specific Target Fields. Organization-wide Target Fields are additional fields appended to the Merge Common Model for all Linked Accounts in a category. [Learn more](https://docs.merge.dev/supplemental-data/field-mappings/target-fields/). +Returns a list of `ScheduledInterview` objects.
@@ -16366,7 +16331,9 @@ Get all organization-wide Target Fields, this will not include any Linked Accoun
```typescript -await client.hris.fieldMapping.targetFieldsRetrieve(); +await client.ats.interviews.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -16382,7 +16349,15 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-**requestOptions:** `FieldMapping.RequestOptions` +**request:** `Merge.ats.InterviewsListRequest` + +
+
+ +
+
+ +**requestOptions:** `Interviews.RequestOptions`
@@ -16393,9 +16368,7 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-## Hris GenerateKey - -
client.hris.generateKey.create({ ...params }) -> Merge.RemoteKey +
client.ats.interviews.create({ ...params }) -> Merge.ScheduledInterviewResponse
@@ -16407,7 +16380,7 @@ await client.hris.fieldMapping.targetFieldsRetrieve();
-Create a remote key. +Creates a `ScheduledInterview` object with the given values.
@@ -16423,8 +16396,9 @@ Create a remote key.
```typescript -await client.hris.generateKey.create({ - name: "Remote Deployment Key 1", +await client.ats.interviews.create({ + model: {}, + remoteUserId: "remote_user_id", }); ``` @@ -16441,7 +16415,7 @@ await client.hris.generateKey.create({
-**request:** `Merge.hris.GenerateRemoteKeyRequest` +**request:** `Merge.ats.ScheduledInterviewEndpointRequest`
@@ -16449,7 +16423,7 @@ await client.hris.generateKey.create({
-**requestOptions:** `GenerateKey.RequestOptions` +**requestOptions:** `Interviews.RequestOptions`
@@ -16460,9 +16434,7 @@ await client.hris.generateKey.create({
-## Hris Groups - -
client.hris.groups.list({ ...params }) -> Merge.PaginatedGroupList +
client.ats.interviews.retrieve(id, { ...params }) -> Merge.ScheduledInterview
@@ -16474,7 +16446,7 @@ await client.hris.generateKey.create({
-Returns a list of `Group` objects. +Returns a `ScheduledInterview` object with the given `id`.
@@ -16490,9 +16462,7 @@ Returns a list of `Group` objects.
```typescript -await client.hris.groups.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.interviews.retrieve("id"); ```
@@ -16508,7 +16478,7 @@ await client.hris.groups.list({
-**request:** `Merge.hris.GroupsListRequest` +**id:** `string`
@@ -16516,7 +16486,15 @@ await client.hris.groups.list({
-**requestOptions:** `Groups.RequestOptions` +**request:** `Merge.ats.InterviewsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Interviews.RequestOptions`
@@ -16527,7 +16505,7 @@ await client.hris.groups.list({
-
client.hris.groups.retrieve(id, { ...params }) -> Merge.Group +
client.ats.interviews.metaPostRetrieve() -> Merge.MetaResponse
@@ -16539,7 +16517,7 @@ await client.hris.groups.list({
-Returns a `Group` object with the given `id`. +Returns metadata for `ScheduledInterview` POSTs.
@@ -16555,7 +16533,7 @@ Returns a `Group` object with the given `id`.
```typescript -await client.hris.groups.retrieve("id"); +await client.ats.interviews.metaPostRetrieve(); ```
@@ -16571,23 +16549,7 @@ await client.hris.groups.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.GroupsRetrieveRequest` - -
-
- -
-
- -**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `Interviews.RequestOptions`
@@ -16598,9 +16560,9 @@ await client.hris.groups.retrieve("id");
-## Hris Issues +## Ats Issues -
client.hris.issues.list({ ...params }) -> Merge.PaginatedIssueList +
client.ats.issues.list({ ...params }) -> Merge.PaginatedIssueList
@@ -16628,7 +16590,7 @@ Gets all issues for Organization.
```typescript -await client.hris.issues.list({ +await client.ats.issues.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -16646,7 +16608,7 @@ await client.hris.issues.list({
-**request:** `Merge.hris.IssuesListRequest` +**request:** `Merge.ats.IssuesListRequest`
@@ -16665,7 +16627,7 @@ await client.hris.issues.list({
-
client.hris.issues.retrieve(id) -> Merge.Issue +
client.ats.issues.retrieve(id) -> Merge.Issue
@@ -16693,7 +16655,7 @@ Get a specific issue.
```typescript -await client.hris.issues.retrieve("id"); +await client.ats.issues.retrieve("id"); ```
@@ -16728,9 +16690,9 @@ await client.hris.issues.retrieve("id");
-## Hris LinkToken +## Ats JobInterviewStages -
client.hris.linkToken.create({ ...params }) -> Merge.LinkToken +
client.ats.jobInterviewStages.list({ ...params }) -> Merge.PaginatedJobInterviewStageList
@@ -16742,7 +16704,7 @@ await client.hris.issues.retrieve("id");
-Creates a link token to be used when linking a new end user. +Returns a list of `JobInterviewStage` objects.
@@ -16758,11 +16720,8 @@ Creates a link token to be used when linking a new end user.
```typescript -await client.hris.linkToken.create({ - endUserEmailAddress: "example@gmail.com", - endUserOrganizationName: "Test Organization", - endUserOriginId: "12345", - categories: ["hris", "ats"], +await client.ats.jobInterviewStages.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -16779,7 +16738,7 @@ await client.hris.linkToken.create({
-**request:** `Merge.hris.EndUserDetailsRequest` +**request:** `Merge.ats.JobInterviewStagesListRequest`
@@ -16787,7 +16746,7 @@ await client.hris.linkToken.create({
-**requestOptions:** `LinkToken.RequestOptions` +**requestOptions:** `JobInterviewStages.RequestOptions`
@@ -16798,9 +16757,7 @@ await client.hris.linkToken.create({
-## Hris LinkedAccounts - -
client.hris.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList +
client.ats.jobInterviewStages.retrieve(id, { ...params }) -> Merge.JobInterviewStage
@@ -16812,7 +16769,7 @@ await client.hris.linkToken.create({
-List linked accounts for your organization. +Returns a `JobInterviewStage` object with the given `id`.
@@ -16828,9 +16785,7 @@ List linked accounts for your organization.
```typescript -await client.hris.linkedAccounts.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.jobInterviewStages.retrieve("id"); ```
@@ -16846,7 +16801,7 @@ await client.hris.linkedAccounts.list({
-**request:** `Merge.hris.LinkedAccountsListRequest` +**id:** `string`
@@ -16854,7 +16809,15 @@ await client.hris.linkedAccounts.list({
-**requestOptions:** `LinkedAccounts.RequestOptions` +**request:** `Merge.ats.JobInterviewStagesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `JobInterviewStages.RequestOptions`
@@ -16865,9 +16828,9 @@ await client.hris.linkedAccounts.list({
-## Hris Locations +## Ats JobPostings -
client.hris.locations.list({ ...params }) -> Merge.PaginatedLocationList +
client.ats.jobPostings.list({ ...params }) -> Merge.PaginatedJobPostingList
@@ -16879,7 +16842,7 @@ await client.hris.linkedAccounts.list({
-Returns a list of `Location` objects. +Returns a list of `JobPosting` objects.
@@ -16895,7 +16858,7 @@ Returns a list of `Location` objects.
```typescript -await client.hris.locations.list({ +await client.ats.jobPostings.list({ cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -16913,7 +16876,7 @@ await client.hris.locations.list({
-**request:** `Merge.hris.LocationsListRequest` +**request:** `Merge.ats.JobPostingsListRequest`
@@ -16921,7 +16884,7 @@ await client.hris.locations.list({
-**requestOptions:** `Locations.RequestOptions` +**requestOptions:** `JobPostings.RequestOptions`
@@ -16932,7 +16895,7 @@ await client.hris.locations.list({
-
client.hris.locations.retrieve(id, { ...params }) -> Merge.Location +
client.ats.jobPostings.retrieve(id, { ...params }) -> Merge.JobPosting
@@ -16944,7 +16907,7 @@ await client.hris.locations.list({
-Returns a `Location` object with the given `id`. +Returns a `JobPosting` object with the given `id`.
@@ -16960,7 +16923,7 @@ Returns a `Location` object with the given `id`.
```typescript -await client.hris.locations.retrieve("id"); +await client.ats.jobPostings.retrieve("id"); ```
@@ -16984,7 +16947,7 @@ await client.hris.locations.retrieve("id");
-**request:** `Merge.hris.LocationsRetrieveRequest` +**request:** `Merge.ats.JobPostingsRetrieveRequest`
@@ -16992,7 +16955,7 @@ await client.hris.locations.retrieve("id");
-**requestOptions:** `Locations.RequestOptions` +**requestOptions:** `JobPostings.RequestOptions`
@@ -17003,9 +16966,9 @@ await client.hris.locations.retrieve("id");
-## Hris Passthrough +## Ats Jobs -
client.hris.passthrough.create({ ...params }) -> Merge.RemoteResponse +
client.ats.jobs.list({ ...params }) -> Merge.PaginatedJobList
@@ -17017,7 +16980,7 @@ await client.hris.locations.retrieve("id");
-Pull data from an endpoint not currently supported by Merge. +Returns a list of `Job` objects.
@@ -17033,9 +16996,8 @@ Pull data from an endpoint not currently supported by Merge.
```typescript -await client.hris.passthrough.create({ - method: "GET", - path: "/scooters", +await client.ats.jobs.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -17052,7 +17014,7 @@ await client.hris.passthrough.create({
-**request:** `Merge.DataPassthroughRequest` +**request:** `Merge.ats.JobsListRequest`
@@ -17060,7 +17022,7 @@ await client.hris.passthrough.create({
-**requestOptions:** `Passthrough.RequestOptions` +**requestOptions:** `Jobs.RequestOptions`
@@ -17071,9 +17033,7 @@ await client.hris.passthrough.create({
-## Hris PayGroups - -
client.hris.payGroups.list({ ...params }) -> Merge.PaginatedPayGroupList +
client.ats.jobs.retrieve(id, { ...params }) -> Merge.Job
@@ -17085,7 +17045,7 @@ await client.hris.passthrough.create({
-Returns a list of `PayGroup` objects. +Returns a `Job` object with the given `id`.
@@ -17101,9 +17061,7 @@ Returns a list of `PayGroup` objects.
```typescript -await client.hris.payGroups.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.jobs.retrieve("id"); ```
@@ -17119,7 +17077,7 @@ await client.hris.payGroups.list({
-**request:** `Merge.hris.PayGroupsListRequest` +**id:** `string`
@@ -17127,7 +17085,15 @@ await client.hris.payGroups.list({
-**requestOptions:** `PayGroups.RequestOptions` +**request:** `Merge.ats.JobsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Jobs.RequestOptions`
@@ -17138,7 +17104,7 @@ await client.hris.payGroups.list({
-
client.hris.payGroups.retrieve(id, { ...params }) -> Merge.PayGroup +
client.ats.jobs.screeningQuestionsList(jobId, { ...params }) -> Merge.PaginatedScreeningQuestionList
@@ -17150,7 +17116,7 @@ await client.hris.payGroups.list({
-Returns a `PayGroup` object with the given `id`. +Returns a list of `ScreeningQuestion` objects.
@@ -17166,7 +17132,9 @@ Returns a `PayGroup` object with the given `id`.
```typescript -await client.hris.payGroups.retrieve("id"); +await client.ats.jobs.screeningQuestionsList("job_id", { + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -17182,7 +17150,7 @@ await client.hris.payGroups.retrieve("id");
-**id:** `string` +**jobId:** `string`
@@ -17190,7 +17158,7 @@ await client.hris.payGroups.retrieve("id");
-**request:** `Merge.hris.PayGroupsRetrieveRequest` +**request:** `Merge.ats.JobsScreeningQuestionsListRequest`
@@ -17198,7 +17166,7 @@ await client.hris.payGroups.retrieve("id");
-**requestOptions:** `PayGroups.RequestOptions` +**requestOptions:** `Jobs.RequestOptions`
@@ -17209,9 +17177,9 @@ await client.hris.payGroups.retrieve("id");
-## Hris PayrollRuns +## Ats LinkToken -
client.hris.payrollRuns.list({ ...params }) -> Merge.PaginatedPayrollRunList +
client.ats.linkToken.create({ ...params }) -> Merge.LinkToken
@@ -17223,7 +17191,7 @@ await client.hris.payGroups.retrieve("id");
-Returns a list of `PayrollRun` objects. +Creates a link token to be used when linking a new end user.
@@ -17239,8 +17207,11 @@ Returns a list of `PayrollRun` objects.
```typescript -await client.hris.payrollRuns.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.ats.linkToken.create({ + endUserEmailAddress: "example@gmail.com", + endUserOrganizationName: "Test Organization", + endUserOriginId: "12345", + categories: ["hris", "ats"], }); ``` @@ -17257,7 +17228,7 @@ await client.hris.payrollRuns.list({
-**request:** `Merge.hris.PayrollRunsListRequest` +**request:** `Merge.ats.EndUserDetailsRequest`
@@ -17265,7 +17236,7 @@ await client.hris.payrollRuns.list({
-**requestOptions:** `PayrollRuns.RequestOptions` +**requestOptions:** `LinkToken.RequestOptions`
@@ -17276,7 +17247,9 @@ await client.hris.payrollRuns.list({
-
client.hris.payrollRuns.retrieve(id, { ...params }) -> Merge.PayrollRun +## Ats LinkedAccounts + +
client.ats.linkedAccounts.list({ ...params }) -> Merge.PaginatedAccountDetailsAndActionsList
@@ -17288,7 +17261,7 @@ await client.hris.payrollRuns.list({
-Returns a `PayrollRun` object with the given `id`. +List linked accounts for your organization.
@@ -17304,7 +17277,9 @@ Returns a `PayrollRun` object with the given `id`.
```typescript -await client.hris.payrollRuns.retrieve("id"); +await client.ats.linkedAccounts.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -17320,15 +17295,7 @@ await client.hris.payrollRuns.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.PayrollRunsRetrieveRequest` +**request:** `Merge.ats.LinkedAccountsListRequest`
@@ -17336,7 +17303,7 @@ await client.hris.payrollRuns.retrieve("id");
-**requestOptions:** `PayrollRuns.RequestOptions` +**requestOptions:** `LinkedAccounts.RequestOptions`
@@ -17347,9 +17314,9 @@ await client.hris.payrollRuns.retrieve("id");
-## Hris RegenerateKey +## Ats Offers -
client.hris.regenerateKey.create({ ...params }) -> Merge.RemoteKey +
client.ats.offers.list({ ...params }) -> Merge.PaginatedOfferList
@@ -17361,7 +17328,7 @@ await client.hris.payrollRuns.retrieve("id");
-Exchange remote keys. +Returns a list of `Offer` objects.
@@ -17377,8 +17344,8 @@ Exchange remote keys.
```typescript -await client.hris.regenerateKey.create({ - name: "Remote Deployment Key 1", +await client.ats.offers.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -17395,7 +17362,7 @@ await client.hris.regenerateKey.create({
-**request:** `Merge.hris.RemoteKeyForRegenerationRequest` +**request:** `Merge.ats.OffersListRequest`
@@ -17403,7 +17370,7 @@ await client.hris.regenerateKey.create({
-**requestOptions:** `RegenerateKey.RequestOptions` +**requestOptions:** `Offers.RequestOptions`
@@ -17414,9 +17381,7 @@ await client.hris.regenerateKey.create({
-## Hris SyncStatus - -
client.hris.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList +
client.ats.offers.retrieve(id, { ...params }) -> Merge.Offer
@@ -17428,7 +17393,7 @@ await client.hris.regenerateKey.create({
-Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses). +Returns an `Offer` object with the given `id`.
@@ -17444,9 +17409,7 @@ Get sync status for the current sync and the most recently finished sync. `last_
```typescript -await client.hris.syncStatus.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.offers.retrieve("id"); ```
@@ -17462,7 +17425,7 @@ await client.hris.syncStatus.list({
-**request:** `Merge.hris.SyncStatusListRequest` +**id:** `string`
@@ -17470,7 +17433,15 @@ await client.hris.syncStatus.list({
-**requestOptions:** `SyncStatus.RequestOptions` +**request:** `Merge.ats.OffersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Offers.RequestOptions`
@@ -17481,9 +17452,9 @@ await client.hris.syncStatus.list({
-## Hris ForceResync +## Ats Offices -
client.hris.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[] +
client.ats.offices.list({ ...params }) -> Merge.PaginatedOfficeList
@@ -17495,7 +17466,7 @@ await client.hris.syncStatus.list({
-Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers. +Returns a list of `Office` objects.
@@ -17511,7 +17482,9 @@ Force re-sync of all models. This endpoint is available for monthly, quarterly,
```typescript -await client.hris.forceResync.syncStatusResyncCreate(); +await client.ats.offices.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -17527,7 +17500,15 @@ await client.hris.forceResync.syncStatusResyncCreate();
-**requestOptions:** `ForceResync.RequestOptions` +**request:** `Merge.ats.OfficesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Offices.RequestOptions`
@@ -17538,9 +17519,7 @@ await client.hris.forceResync.syncStatusResyncCreate();
-## Hris Teams - -
client.hris.teams.list({ ...params }) -> Merge.PaginatedTeamList +
client.ats.offices.retrieve(id, { ...params }) -> Merge.Office
@@ -17552,7 +17531,7 @@ await client.hris.forceResync.syncStatusResyncCreate();
-Returns a list of `Team` objects. +Returns an `Office` object with the given `id`.
@@ -17568,9 +17547,7 @@ Returns a list of `Team` objects.
```typescript -await client.hris.teams.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.offices.retrieve("id"); ```
@@ -17586,7 +17563,7 @@ await client.hris.teams.list({
-**request:** `Merge.hris.TeamsListRequest` +**id:** `string`
@@ -17594,7 +17571,15 @@ await client.hris.teams.list({
-**requestOptions:** `Teams.RequestOptions` +**request:** `Merge.ats.OfficesRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Offices.RequestOptions`
@@ -17605,7 +17590,9 @@ await client.hris.teams.list({
-
client.hris.teams.retrieve(id, { ...params }) -> Merge.Team +## Ats Passthrough + +
client.ats.passthrough.create({ ...params }) -> Merge.RemoteResponse
@@ -17617,7 +17604,7 @@ await client.hris.teams.list({
-Returns a `Team` object with the given `id`. +Pull data from an endpoint not currently supported by Merge.
@@ -17633,7 +17620,10 @@ Returns a `Team` object with the given `id`.
```typescript -await client.hris.teams.retrieve("id"); +await client.ats.passthrough.create({ + method: "GET", + path: "/scooters", +}); ```
@@ -17649,15 +17639,7 @@ await client.hris.teams.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TeamsRetrieveRequest` +**request:** `Merge.DataPassthroughRequest`
@@ -17665,7 +17647,7 @@ await client.hris.teams.retrieve("id");
-**requestOptions:** `Teams.RequestOptions` +**requestOptions:** `Passthrough.RequestOptions`
@@ -17676,9 +17658,9 @@ await client.hris.teams.retrieve("id");
-## Hris TimeOff +## Ats RegenerateKey -
client.hris.timeOff.list({ ...params }) -> Merge.PaginatedTimeOffList +
client.ats.regenerateKey.create({ ...params }) -> Merge.RemoteKey
@@ -17690,7 +17672,7 @@ await client.hris.teams.retrieve("id");
-Returns a list of `TimeOff` objects. +Exchange remote keys.
@@ -17706,8 +17688,8 @@ Returns a list of `TimeOff` objects.
```typescript -await client.hris.timeOff.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +await client.ats.regenerateKey.create({ + name: "Remote Deployment Key 1", }); ``` @@ -17724,7 +17706,7 @@ await client.hris.timeOff.list({
-**request:** `Merge.hris.TimeOffListRequest` +**request:** `Merge.ats.RemoteKeyForRegenerationRequest`
@@ -17732,7 +17714,7 @@ await client.hris.timeOff.list({
-**requestOptions:** `TimeOff.RequestOptions` +**requestOptions:** `RegenerateKey.RequestOptions`
@@ -17743,7 +17725,9 @@ await client.hris.timeOff.list({
-
client.hris.timeOff.create({ ...params }) -> Merge.TimeOffResponse +## Ats RejectReasons + +
client.ats.rejectReasons.list({ ...params }) -> Merge.PaginatedRejectReasonList
@@ -17755,7 +17739,7 @@ await client.hris.timeOff.list({
-Creates a `TimeOff` object with the given values. +Returns a list of `RejectReason` objects.
@@ -17771,8 +17755,8 @@ Creates a `TimeOff` object with the given values.
```typescript -await client.hris.timeOff.create({ - model: {}, +await client.ats.rejectReasons.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -17789,7 +17773,7 @@ await client.hris.timeOff.create({
-**request:** `Merge.hris.TimeOffEndpointRequest` +**request:** `Merge.ats.RejectReasonsListRequest`
@@ -17797,7 +17781,7 @@ await client.hris.timeOff.create({
-**requestOptions:** `TimeOff.RequestOptions` +**requestOptions:** `RejectReasons.RequestOptions`
@@ -17808,7 +17792,7 @@ await client.hris.timeOff.create({
-
client.hris.timeOff.retrieve(id, { ...params }) -> Merge.TimeOff +
client.ats.rejectReasons.retrieve(id, { ...params }) -> Merge.RejectReason
@@ -17820,7 +17804,7 @@ await client.hris.timeOff.create({
-Returns a `TimeOff` object with the given `id`. +Returns a `RejectReason` object with the given `id`.
@@ -17836,7 +17820,7 @@ Returns a `TimeOff` object with the given `id`.
```typescript -await client.hris.timeOff.retrieve("id"); +await client.ats.rejectReasons.retrieve("id"); ```
@@ -17860,7 +17844,7 @@ await client.hris.timeOff.retrieve("id");
-**request:** `Merge.hris.TimeOffRetrieveRequest` +**request:** `Merge.ats.RejectReasonsRetrieveRequest`
@@ -17868,7 +17852,7 @@ await client.hris.timeOff.retrieve("id");
-**requestOptions:** `TimeOff.RequestOptions` +**requestOptions:** `RejectReasons.RequestOptions`
@@ -17879,7 +17863,9 @@ await client.hris.timeOff.retrieve("id");
-
client.hris.timeOff.metaPostRetrieve() -> Merge.MetaResponse +## Ats Scorecards + +
client.ats.scorecards.list({ ...params }) -> Merge.PaginatedScorecardList
@@ -17891,7 +17877,7 @@ await client.hris.timeOff.retrieve("id");
-Returns metadata for `TimeOff` POSTs. +Returns a list of `Scorecard` objects.
@@ -17907,7 +17893,9 @@ Returns metadata for `TimeOff` POSTs.
```typescript -await client.hris.timeOff.metaPostRetrieve(); +await client.ats.scorecards.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -17923,7 +17911,15 @@ await client.hris.timeOff.metaPostRetrieve();
-**requestOptions:** `TimeOff.RequestOptions` +**request:** `Merge.ats.ScorecardsListRequest` + +
+
+ +
+
+ +**requestOptions:** `Scorecards.RequestOptions`
@@ -17934,9 +17930,7 @@ await client.hris.timeOff.metaPostRetrieve();
-## Hris TimeOffBalances - -
client.hris.timeOffBalances.list({ ...params }) -> Merge.PaginatedTimeOffBalanceList +
client.ats.scorecards.retrieve(id, { ...params }) -> Merge.Scorecard
@@ -17948,7 +17942,7 @@ await client.hris.timeOff.metaPostRetrieve();
-Returns a list of `TimeOffBalance` objects. +Returns a `Scorecard` object with the given `id`.
@@ -17964,9 +17958,7 @@ Returns a list of `TimeOffBalance` objects.
```typescript -await client.hris.timeOffBalances.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.scorecards.retrieve("id"); ```
@@ -17982,7 +17974,7 @@ await client.hris.timeOffBalances.list({
-**request:** `Merge.hris.TimeOffBalancesListRequest` +**id:** `string`
@@ -17990,7 +17982,15 @@ await client.hris.timeOffBalances.list({
-**requestOptions:** `TimeOffBalances.RequestOptions` +**request:** `Merge.ats.ScorecardsRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Scorecards.RequestOptions`
@@ -18001,7 +18001,9 @@ await client.hris.timeOffBalances.list({
-
client.hris.timeOffBalances.retrieve(id, { ...params }) -> Merge.TimeOffBalance +## Ats SyncStatus + +
client.ats.syncStatus.list({ ...params }) -> Merge.PaginatedSyncStatusList
@@ -18013,7 +18015,7 @@ await client.hris.timeOffBalances.list({
-Returns a `TimeOffBalance` object with the given `id`. +Get sync status for the current sync and the most recently finished sync. `last_sync_start` represents the most recent time any sync began. `last_sync_finished` represents the most recent time any sync completed. These timestamps may correspond to different sync instances which may result in a sync start time being later than a separate sync completed time. To ensure you are retrieving the latest available data reference the `last_sync_finished` timestamp where `last_sync_result` is `DONE`. Possible values for `status` and `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
@@ -18029,7 +18031,9 @@ Returns a `TimeOffBalance` object with the given `id`.
```typescript -await client.hris.timeOffBalances.retrieve("id"); +await client.ats.syncStatus.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -18045,15 +18049,7 @@ await client.hris.timeOffBalances.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TimeOffBalancesRetrieveRequest` +**request:** `Merge.ats.SyncStatusListRequest`
@@ -18061,7 +18057,7 @@ await client.hris.timeOffBalances.retrieve("id");
-**requestOptions:** `TimeOffBalances.RequestOptions` +**requestOptions:** `SyncStatus.RequestOptions`
@@ -18072,9 +18068,9 @@ await client.hris.timeOffBalances.retrieve("id");
-## Hris TimesheetEntries +## Ats ForceResync -
client.hris.timesheetEntries.list({ ...params }) -> Merge.PaginatedTimesheetEntryList +
client.ats.forceResync.syncStatusResyncCreate() -> Merge.SyncStatus[]
@@ -18086,7 +18082,7 @@ await client.hris.timeOffBalances.retrieve("id");
-Returns a list of `TimesheetEntry` objects. +Force re-sync of all models. This endpoint is available for monthly, quarterly, and highest sync frequency customers on the Professional or Enterprise plans. Doing so will consume a sync credit for the relevant linked account. Force re-syncs can also be triggered manually in the Merge Dashboard and is available for all customers.
@@ -18102,9 +18098,7 @@ Returns a list of `TimesheetEntry` objects.
```typescript -await client.hris.timesheetEntries.list({ - cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", -}); +await client.ats.forceResync.syncStatusResyncCreate(); ```
@@ -18120,15 +18114,7 @@ await client.hris.timesheetEntries.list({
-**request:** `Merge.hris.TimesheetEntriesListRequest` - -
-
- -
-
- -**requestOptions:** `TimesheetEntries.RequestOptions` +**requestOptions:** `ForceResync.RequestOptions`
@@ -18139,7 +18125,9 @@ await client.hris.timesheetEntries.list({
-
client.hris.timesheetEntries.create({ ...params }) -> Merge.TimesheetEntryResponse +## Ats Tags + +
client.ats.tags.list({ ...params }) -> Merge.PaginatedTagList
@@ -18151,7 +18139,7 @@ await client.hris.timesheetEntries.list({
-Creates a `TimesheetEntry` object with the given values. +Returns a list of `Tag` objects.
@@ -18167,8 +18155,8 @@ Creates a `TimesheetEntry` object with the given values.
```typescript -await client.hris.timesheetEntries.create({ - model: {}, +await client.ats.tags.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", }); ``` @@ -18185,7 +18173,7 @@ await client.hris.timesheetEntries.create({
-**request:** `Merge.hris.TimesheetEntryEndpointRequest` +**request:** `Merge.ats.TagsListRequest`
@@ -18193,7 +18181,7 @@ await client.hris.timesheetEntries.create({
-**requestOptions:** `TimesheetEntries.RequestOptions` +**requestOptions:** `Tags.RequestOptions`
@@ -18204,7 +18192,9 @@ await client.hris.timesheetEntries.create({
-
client.hris.timesheetEntries.retrieve(id, { ...params }) -> Merge.TimesheetEntry +## Ats Users + +
client.ats.users.list({ ...params }) -> Merge.PaginatedRemoteUserList
@@ -18216,7 +18206,7 @@ await client.hris.timesheetEntries.create({
-Returns a `TimesheetEntry` object with the given `id`. +Returns a list of `RemoteUser` objects.
@@ -18232,7 +18222,9 @@ Returns a `TimesheetEntry` object with the given `id`.
```typescript -await client.hris.timesheetEntries.retrieve("id"); +await client.ats.users.list({ + cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw", +}); ```
@@ -18248,15 +18240,7 @@ await client.hris.timesheetEntries.retrieve("id");
-**id:** `string` - -
-
- -
-
- -**request:** `Merge.hris.TimesheetEntriesRetrieveRequest` +**request:** `Merge.ats.UsersListRequest`
@@ -18264,7 +18248,7 @@ await client.hris.timesheetEntries.retrieve("id");
-**requestOptions:** `TimesheetEntries.RequestOptions` +**requestOptions:** `Users.RequestOptions`
@@ -18275,7 +18259,7 @@ await client.hris.timesheetEntries.retrieve("id");
-
client.hris.timesheetEntries.metaPostRetrieve() -> Merge.MetaResponse +
client.ats.users.retrieve(id, { ...params }) -> Merge.RemoteUser
@@ -18287,7 +18271,7 @@ await client.hris.timesheetEntries.retrieve("id");
-Returns metadata for `TimesheetEntry` POSTs. +Returns a `RemoteUser` object with the given `id`.
@@ -18303,7 +18287,7 @@ Returns metadata for `TimesheetEntry` POSTs.
```typescript -await client.hris.timesheetEntries.metaPostRetrieve(); +await client.ats.users.retrieve("id"); ```
@@ -18319,7 +18303,23 @@ await client.hris.timesheetEntries.metaPostRetrieve();
-**requestOptions:** `TimesheetEntries.RequestOptions` +**id:** `string` + +
+
+ +
+
+ +**request:** `Merge.ats.UsersRetrieveRequest` + +
+
+ +
+
+ +**requestOptions:** `Users.RequestOptions`
@@ -18330,9 +18330,9 @@ await client.hris.timesheetEntries.metaPostRetrieve();
-## Hris WebhookReceivers +## Ats WebhookReceivers -
client.hris.webhookReceivers.list() -> Merge.WebhookReceiver[] +
client.ats.webhookReceivers.list() -> Merge.WebhookReceiver[]
@@ -18360,7 +18360,7 @@ Returns a list of `WebhookReceiver` objects.
```typescript -await client.hris.webhookReceivers.list(); +await client.ats.webhookReceivers.list(); ```
@@ -18387,7 +18387,7 @@ await client.hris.webhookReceivers.list();
-
client.hris.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver +
client.ats.webhookReceivers.create({ ...params }) -> Merge.WebhookReceiver
@@ -18415,7 +18415,7 @@ Creates a `WebhookReceiver` object with the given values.
```typescript -await client.hris.webhookReceivers.create({ +await client.ats.webhookReceivers.create({ event: "event", isActive: true, }); @@ -18434,7 +18434,7 @@ await client.hris.webhookReceivers.create({
-**request:** `Merge.hris.WebhookReceiverRequest` +**request:** `Merge.ats.WebhookReceiverRequest`
@@ -23239,7 +23239,7 @@ Asynchronously pull data from an endpoint not currently supported by Merge. ```typescript await client.accounting.asyncPassthrough.create({ - method: "GET", + method: "method", path: "/scooters", }); ``` @@ -29015,7 +29015,7 @@ Pull data from an endpoint not currently supported by Merge. ```typescript await client.accounting.passthrough.create({ - method: "GET", + method: "method", path: "/scooters", }); ``` diff --git a/src/Client.ts b/src/Client.ts index bff806794..e0677b8f6 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -5,10 +5,10 @@ import * as environments from "./environments"; import * as core from "./core"; import { mergeHeaders } from "./core/headers"; -import { Ats } from "./api/resources/ats/client/Client"; -import { Filestorage } from "./api/resources/filestorage/client/Client"; import { Crm } from "./api/resources/crm/client/Client"; +import { Filestorage } from "./api/resources/filestorage/client/Client"; import { Hris } from "./api/resources/hris/client/Client"; +import { Ats } from "./api/resources/ats/client/Client"; import { Ticketing } from "./api/resources/ticketing/client/Client"; import { Accounting } from "./api/resources/accounting/client/Client"; @@ -43,10 +43,10 @@ export declare namespace MergeClient { export class MergeClient { protected readonly _options: MergeClient.Options; - protected _ats: Ats | undefined; - protected _filestorage: Filestorage | undefined; protected _crm: Crm | undefined; + protected _filestorage: Filestorage | undefined; protected _hris: Hris | undefined; + protected _ats: Ats | undefined; protected _ticketing: Ticketing | undefined; protected _accounting: Accounting | undefined; @@ -68,22 +68,22 @@ export class MergeClient { }; } - public get ats(): Ats { - return (this._ats ??= new Ats(this._options)); + public get crm(): Crm { + return (this._crm ??= new Crm(this._options)); } public get filestorage(): Filestorage { return (this._filestorage ??= new Filestorage(this._options)); } - public get crm(): Crm { - return (this._crm ??= new Crm(this._options)); - } - public get hris(): Hris { return (this._hris ??= new Hris(this._options)); } + public get ats(): Ats { + return (this._ats ??= new Ats(this._options)); + } + public get ticketing(): Ticketing { return (this._ticketing ??= new Ticketing(this._options)); } diff --git a/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts b/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts index f425ff236..c2eb50c6d 100644 --- a/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts @@ -53,7 +53,7 @@ export class AsyncPassthrough { * * @example * await client.accounting.asyncPassthrough.create({ - * method: "GET", + * method: "method", * path: "/scooters" * }) */ diff --git a/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 3655c9917..1058c4c36 100644 --- a/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -21,7 +21,7 @@ export interface EndUserDetailsRequest { /** This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. */ endUserOriginId: string; /** The integration categories to show in Merge Link. */ - categories: Merge.accounting.CategoriesEnum[]; + categories: (Merge.accounting.EndUserDetailsRequestCategoriesItem | undefined)[]; /** The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/. */ integration?: string; /** An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30. */ diff --git a/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCategoriesItem.ts b/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCategoriesItem.ts new file mode 100644 index 000000000..660d8880e --- /dev/null +++ b/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCategoriesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../../../index"; + +export type EndUserDetailsRequestCategoriesItem = string | Merge.accounting.CategoriesEnum; diff --git a/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts index 290dbc6fa..0416d90ee 100644 --- a/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts +++ b/src/api/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../../../index"; * * `en` - en * * `de` - de */ -export type EndUserDetailsRequestLanguage = Merge.accounting.LanguageEnum | string; +export type EndUserDetailsRequestLanguage = string | Merge.accounting.LanguageEnum; diff --git a/src/api/resources/accounting/resources/linkToken/types/index.ts b/src/api/resources/accounting/resources/linkToken/types/index.ts index c90e13c37..33ceb8921 100644 --- a/src/api/resources/accounting/resources/linkToken/types/index.ts +++ b/src/api/resources/accounting/resources/linkToken/types/index.ts @@ -1 +1,2 @@ +export * from "./EndUserDetailsRequestCategoriesItem"; export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/api/resources/accounting/resources/passthrough/client/Client.ts b/src/api/resources/accounting/resources/passthrough/client/Client.ts index 4ed9c5077..de234e5a2 100644 --- a/src/api/resources/accounting/resources/passthrough/client/Client.ts +++ b/src/api/resources/accounting/resources/passthrough/client/Client.ts @@ -53,7 +53,7 @@ export class Passthrough { * * @example * await client.accounting.passthrough.create({ - * method: "GET", + * method: "method", * path: "/scooters" * }) */ diff --git a/src/api/resources/accounting/types/AccountAccountType.ts b/src/api/resources/accounting/types/AccountAccountType.ts index ae9881578..482896f59 100644 --- a/src/api/resources/accounting/types/AccountAccountType.ts +++ b/src/api/resources/accounting/types/AccountAccountType.ts @@ -21,4 +21,4 @@ import * as Merge from "../../../index"; * * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY * * `NON_POSTING` - NON_POSTING */ -export type AccountAccountType = Merge.accounting.AccountAccountTypeEnum | string; +export type AccountAccountType = string | Merge.accounting.AccountAccountTypeEnum; diff --git a/src/api/resources/accounting/types/AccountClassification.ts b/src/api/resources/accounting/types/AccountClassification.ts index 4dadb1d9e..43cb28fb3 100644 --- a/src/api/resources/accounting/types/AccountClassification.ts +++ b/src/api/resources/accounting/types/AccountClassification.ts @@ -13,4 +13,4 @@ import * as Merge from "../../../index"; * * `LIABILITY` - LIABILITY * * `REVENUE` - REVENUE */ -export type AccountClassification = Merge.accounting.ClassificationEnum | string; +export type AccountClassification = string | Merge.accounting.ClassificationEnum; diff --git a/src/api/resources/accounting/types/AccountCurrency.ts b/src/api/resources/accounting/types/AccountCurrency.ts index 041f4d42c..83dce6ac4 100644 --- a/src/api/resources/accounting/types/AccountCurrency.ts +++ b/src/api/resources/accounting/types/AccountCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type AccountCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type AccountCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/AccountDetailsAndActionsCategory.ts b/src/api/resources/accounting/types/AccountDetailsAndActionsCategory.ts index 2d47dfe4d..ed2fab121 100644 --- a/src/api/resources/accounting/types/AccountDetailsAndActionsCategory.ts +++ b/src/api/resources/accounting/types/AccountDetailsAndActionsCategory.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type AccountDetailsAndActionsCategory = Merge.accounting.CategoryEnum | string; +export type AccountDetailsAndActionsCategory = string | Merge.accounting.CategoryEnum; diff --git a/src/api/resources/accounting/types/AccountDetailsAndActionsIntegration.ts b/src/api/resources/accounting/types/AccountDetailsAndActionsIntegration.ts index 46ca80737..0262eec69 100644 --- a/src/api/resources/accounting/types/AccountDetailsAndActionsIntegration.ts +++ b/src/api/resources/accounting/types/AccountDetailsAndActionsIntegration.ts @@ -6,7 +6,7 @@ import * as Merge from "../../../index"; export interface AccountDetailsAndActionsIntegration { name: string; - categories: Merge.accounting.CategoriesEnum[]; + categories: (Merge.accounting.AccountDetailsAndActionsIntegrationCategoriesItem | undefined)[]; image?: string; squareImage?: string; color: string; diff --git a/src/api/resources/accounting/types/AccountDetailsAndActionsIntegrationCategoriesItem.ts b/src/api/resources/accounting/types/AccountDetailsAndActionsIntegrationCategoriesItem.ts new file mode 100644 index 000000000..c10a7f6e2 --- /dev/null +++ b/src/api/resources/accounting/types/AccountDetailsAndActionsIntegrationCategoriesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +export type AccountDetailsAndActionsIntegrationCategoriesItem = string | Merge.accounting.CategoriesEnum; diff --git a/src/api/resources/accounting/types/AccountDetailsAndActionsStatus.ts b/src/api/resources/accounting/types/AccountDetailsAndActionsStatus.ts index 9aec4a687..a48efd63d 100644 --- a/src/api/resources/accounting/types/AccountDetailsAndActionsStatus.ts +++ b/src/api/resources/accounting/types/AccountDetailsAndActionsStatus.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type AccountDetailsAndActionsStatus = Merge.accounting.AccountDetailsAndActionsStatusEnum | string; +export type AccountDetailsAndActionsStatus = string | Merge.accounting.AccountDetailsAndActionsStatusEnum; diff --git a/src/api/resources/accounting/types/AccountDetailsCategory.ts b/src/api/resources/accounting/types/AccountDetailsCategory.ts index 76daa7eb4..3c42fa3f9 100644 --- a/src/api/resources/accounting/types/AccountDetailsCategory.ts +++ b/src/api/resources/accounting/types/AccountDetailsCategory.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type AccountDetailsCategory = Merge.accounting.CategoryEnum | string; +export type AccountDetailsCategory = string | Merge.accounting.CategoryEnum; diff --git a/src/api/resources/accounting/types/AccountIntegration.ts b/src/api/resources/accounting/types/AccountIntegration.ts index c52723fce..17dba3c56 100644 --- a/src/api/resources/accounting/types/AccountIntegration.ts +++ b/src/api/resources/accounting/types/AccountIntegration.ts @@ -10,7 +10,7 @@ export interface AccountIntegration { /** Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).

Example: Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors) */ abbreviatedName?: string; /** Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris]. */ - categories?: Merge.accounting.CategoriesEnum[]; + categories?: (Merge.accounting.AccountIntegrationCategoriesItem | undefined)[]; /** Company logo in rectangular shape. */ image?: string; /** Company logo in square shape. */ diff --git a/src/api/resources/accounting/types/AccountIntegrationCategoriesItem.ts b/src/api/resources/accounting/types/AccountIntegrationCategoriesItem.ts new file mode 100644 index 000000000..be88d6393 --- /dev/null +++ b/src/api/resources/accounting/types/AccountIntegrationCategoriesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +export type AccountIntegrationCategoriesItem = string | Merge.accounting.CategoriesEnum; diff --git a/src/api/resources/accounting/types/AccountRequestAccountType.ts b/src/api/resources/accounting/types/AccountRequestAccountType.ts index 4d3e82c8d..6a61bdf73 100644 --- a/src/api/resources/accounting/types/AccountRequestAccountType.ts +++ b/src/api/resources/accounting/types/AccountRequestAccountType.ts @@ -21,4 +21,4 @@ import * as Merge from "../../../index"; * * `LONG_TERM_LIABILITY` - LONG_TERM_LIABILITY * * `NON_POSTING` - NON_POSTING */ -export type AccountRequestAccountType = Merge.accounting.AccountAccountTypeEnum | string; +export type AccountRequestAccountType = string | Merge.accounting.AccountAccountTypeEnum; diff --git a/src/api/resources/accounting/types/AccountRequestClassification.ts b/src/api/resources/accounting/types/AccountRequestClassification.ts index 15702a550..15efdcf73 100644 --- a/src/api/resources/accounting/types/AccountRequestClassification.ts +++ b/src/api/resources/accounting/types/AccountRequestClassification.ts @@ -13,4 +13,4 @@ import * as Merge from "../../../index"; * * `LIABILITY` - LIABILITY * * `REVENUE` - REVENUE */ -export type AccountRequestClassification = Merge.accounting.ClassificationEnum | string; +export type AccountRequestClassification = string | Merge.accounting.ClassificationEnum; diff --git a/src/api/resources/accounting/types/AccountRequestCurrency.ts b/src/api/resources/accounting/types/AccountRequestCurrency.ts index 16a09f6d5..899d9a169 100644 --- a/src/api/resources/accounting/types/AccountRequestCurrency.ts +++ b/src/api/resources/accounting/types/AccountRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type AccountRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type AccountRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/AccountRequestStatus.ts b/src/api/resources/accounting/types/AccountRequestStatus.ts index 5bb07737f..f660fedab 100644 --- a/src/api/resources/accounting/types/AccountRequestStatus.ts +++ b/src/api/resources/accounting/types/AccountRequestStatus.ts @@ -11,4 +11,4 @@ import * as Merge from "../../../index"; * * `PENDING` - PENDING * * `INACTIVE` - INACTIVE */ -export type AccountRequestStatus = Merge.accounting.AccountStatusEnum | string; +export type AccountRequestStatus = string | Merge.accounting.AccountStatusEnum; diff --git a/src/api/resources/accounting/types/AccountStatus.ts b/src/api/resources/accounting/types/AccountStatus.ts index 3ecc8481b..54487cc33 100644 --- a/src/api/resources/accounting/types/AccountStatus.ts +++ b/src/api/resources/accounting/types/AccountStatus.ts @@ -11,4 +11,4 @@ import * as Merge from "../../../index"; * * `PENDING` - PENDING * * `INACTIVE` - INACTIVE */ -export type AccountStatus = Merge.accounting.AccountStatusEnum | string; +export type AccountStatus = string | Merge.accounting.AccountStatusEnum; diff --git a/src/api/resources/accounting/types/AccountingPeriodStatus.ts b/src/api/resources/accounting/types/AccountingPeriodStatus.ts index d65b739ae..20369ccad 100644 --- a/src/api/resources/accounting/types/AccountingPeriodStatus.ts +++ b/src/api/resources/accounting/types/AccountingPeriodStatus.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type AccountingPeriodStatus = Merge.accounting.Status895Enum | string; +export type AccountingPeriodStatus = string | Merge.accounting.Status895Enum; diff --git a/src/api/resources/accounting/types/AddressCountry.ts b/src/api/resources/accounting/types/AddressCountry.ts index eaff86d2f..7ab56c968 100644 --- a/src/api/resources/accounting/types/AddressCountry.ts +++ b/src/api/resources/accounting/types/AddressCountry.ts @@ -257,4 +257,4 @@ import * as Merge from "../../../index"; * * `ZM` - Zambia * * `ZW` - Zimbabwe */ -export type AddressCountry = Merge.accounting.CountryEnum | string; +export type AddressCountry = string | Merge.accounting.CountryEnum; diff --git a/src/api/resources/accounting/types/AddressRequestCountry.ts b/src/api/resources/accounting/types/AddressRequestCountry.ts index 8d0839d7d..a9e4334c9 100644 --- a/src/api/resources/accounting/types/AddressRequestCountry.ts +++ b/src/api/resources/accounting/types/AddressRequestCountry.ts @@ -257,4 +257,4 @@ import * as Merge from "../../../index"; * * `ZM` - Zambia * * `ZW` - Zimbabwe */ -export type AddressRequestCountry = Merge.accounting.CountryEnum | string; +export type AddressRequestCountry = string | Merge.accounting.CountryEnum; diff --git a/src/api/resources/accounting/types/AddressRequestType.ts b/src/api/resources/accounting/types/AddressRequestType.ts index aaff10167..c5bb35d49 100644 --- a/src/api/resources/accounting/types/AddressRequestType.ts +++ b/src/api/resources/accounting/types/AddressRequestType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `BILLING` - BILLING * * `SHIPPING` - SHIPPING */ -export type AddressRequestType = Merge.accounting.AddressTypeEnum | string; +export type AddressRequestType = string | Merge.accounting.AddressTypeEnum; diff --git a/src/api/resources/accounting/types/AddressType.ts b/src/api/resources/accounting/types/AddressType.ts index 271e19480..d4c4f6599 100644 --- a/src/api/resources/accounting/types/AddressType.ts +++ b/src/api/resources/accounting/types/AddressType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `BILLING` - BILLING * * `SHIPPING` - SHIPPING */ -export type AddressType = Merge.accounting.AddressTypeEnum | string; +export type AddressType = string | Merge.accounting.AddressTypeEnum; diff --git a/src/api/resources/accounting/types/AsyncPostTaskStatus.ts b/src/api/resources/accounting/types/AsyncPostTaskStatus.ts index 62a9f4b47..cf494641b 100644 --- a/src/api/resources/accounting/types/AsyncPostTaskStatus.ts +++ b/src/api/resources/accounting/types/AsyncPostTaskStatus.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type AsyncPostTaskStatus = Merge.accounting.AsyncPostTaskStatusEnum | string; +export type AsyncPostTaskStatus = string | Merge.accounting.AsyncPostTaskStatusEnum; diff --git a/src/api/resources/accounting/types/AuditLogEventEventType.ts b/src/api/resources/accounting/types/AuditLogEventEventType.ts index 5633932f7..fe874dd56 100644 --- a/src/api/resources/accounting/types/AuditLogEventEventType.ts +++ b/src/api/resources/accounting/types/AuditLogEventEventType.ts @@ -51,4 +51,4 @@ import * as Merge from "../../../index"; * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED */ -export type AuditLogEventEventType = Merge.accounting.EventTypeEnum | string; +export type AuditLogEventEventType = string | Merge.accounting.EventTypeEnum; diff --git a/src/api/resources/accounting/types/AuditLogEventRole.ts b/src/api/resources/accounting/types/AuditLogEventRole.ts index 51e894f19..2cedfcf8e 100644 --- a/src/api/resources/accounting/types/AuditLogEventRole.ts +++ b/src/api/resources/accounting/types/AuditLogEventRole.ts @@ -14,4 +14,4 @@ import * as Merge from "../../../index"; * * `SYSTEM` - SYSTEM * * `MERGE_TEAM` - MERGE_TEAM */ -export type AuditLogEventRole = Merge.accounting.RoleEnum | string; +export type AuditLogEventRole = string | Merge.accounting.RoleEnum; diff --git a/src/api/resources/accounting/types/BalanceSheetCurrency.ts b/src/api/resources/accounting/types/BalanceSheetCurrency.ts index da6b4b5ce..1048c027a 100644 --- a/src/api/resources/accounting/types/BalanceSheetCurrency.ts +++ b/src/api/resources/accounting/types/BalanceSheetCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type BalanceSheetCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type BalanceSheetCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/BankFeedAccountAccountType.ts b/src/api/resources/accounting/types/BankFeedAccountAccountType.ts index 0407c0dbb..9fe98813a 100644 --- a/src/api/resources/accounting/types/BankFeedAccountAccountType.ts +++ b/src/api/resources/accounting/types/BankFeedAccountAccountType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `BANK` - BANK * * `CREDIT_CARD` - CREDIT_CARD */ -export type BankFeedAccountAccountType = Merge.accounting.BankFeedAccountAccountTypeEnum | string; +export type BankFeedAccountAccountType = string | Merge.accounting.BankFeedAccountAccountTypeEnum; diff --git a/src/api/resources/accounting/types/BankFeedAccountCurrency.ts b/src/api/resources/accounting/types/BankFeedAccountCurrency.ts index 2f5c795ad..ca934562b 100644 --- a/src/api/resources/accounting/types/BankFeedAccountCurrency.ts +++ b/src/api/resources/accounting/types/BankFeedAccountCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type BankFeedAccountCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type BankFeedAccountCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/BankFeedAccountFeedStatus.ts b/src/api/resources/accounting/types/BankFeedAccountFeedStatus.ts index fa809a8a6..9e4f56245 100644 --- a/src/api/resources/accounting/types/BankFeedAccountFeedStatus.ts +++ b/src/api/resources/accounting/types/BankFeedAccountFeedStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `INACTIVE` - INACTIVE */ -export type BankFeedAccountFeedStatus = Merge.accounting.FeedStatusEnum | string; +export type BankFeedAccountFeedStatus = string | Merge.accounting.FeedStatusEnum; diff --git a/src/api/resources/accounting/types/BankFeedAccountRequestAccountType.ts b/src/api/resources/accounting/types/BankFeedAccountRequestAccountType.ts index f3f14d612..e23d6aab5 100644 --- a/src/api/resources/accounting/types/BankFeedAccountRequestAccountType.ts +++ b/src/api/resources/accounting/types/BankFeedAccountRequestAccountType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `BANK` - BANK * * `CREDIT_CARD` - CREDIT_CARD */ -export type BankFeedAccountRequestAccountType = Merge.accounting.BankFeedAccountAccountTypeEnum | string; +export type BankFeedAccountRequestAccountType = string | Merge.accounting.BankFeedAccountAccountTypeEnum; diff --git a/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts b/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts index e973bdc0c..9ee55e38f 100644 --- a/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts +++ b/src/api/resources/accounting/types/BankFeedAccountRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type BankFeedAccountRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type BankFeedAccountRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts b/src/api/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts index 6bac54fa4..703858e20 100644 --- a/src/api/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts +++ b/src/api/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `INACTIVE` - INACTIVE */ -export type BankFeedAccountRequestFeedStatus = Merge.accounting.FeedStatusEnum | string; +export type BankFeedAccountRequestFeedStatus = string | Merge.accounting.FeedStatusEnum; diff --git a/src/api/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts b/src/api/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts index 6ee369e96..6c9e7a8bc 100644 --- a/src/api/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts +++ b/src/api/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `CREDIT` - CREDIT * * `DEBIT` - DEBIT */ -export type BankFeedTransactionCreditOrDebit = Merge.accounting.CreditOrDebitEnum | string; +export type BankFeedTransactionCreditOrDebit = string | Merge.accounting.CreditOrDebitEnum; diff --git a/src/api/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts b/src/api/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts index ead80e779..68c36ffc8 100644 --- a/src/api/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts +++ b/src/api/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `CREDIT` - CREDIT * * `DEBIT` - DEBIT */ -export type BankFeedTransactionRequestRequestCreditOrDebit = Merge.accounting.CreditOrDebitEnum | string; +export type BankFeedTransactionRequestRequestCreditOrDebit = string | Merge.accounting.CreditOrDebitEnum; diff --git a/src/api/resources/accounting/types/CashFlowStatementCurrency.ts b/src/api/resources/accounting/types/CashFlowStatementCurrency.ts index a42cd1034..237321732 100644 --- a/src/api/resources/accounting/types/CashFlowStatementCurrency.ts +++ b/src/api/resources/accounting/types/CashFlowStatementCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type CashFlowStatementCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type CashFlowStatementCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/CompanyInfoCurrency.ts b/src/api/resources/accounting/types/CompanyInfoCurrency.ts index e771ec819..49a0b53f5 100644 --- a/src/api/resources/accounting/types/CompanyInfoCurrency.ts +++ b/src/api/resources/accounting/types/CompanyInfoCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type CompanyInfoCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type CompanyInfoCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/ContactRequestStatus.ts b/src/api/resources/accounting/types/ContactRequestStatus.ts index 011517a49..35a439313 100644 --- a/src/api/resources/accounting/types/ContactRequestStatus.ts +++ b/src/api/resources/accounting/types/ContactRequestStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ -export type ContactRequestStatus = Merge.accounting.Status7D1Enum | string; +export type ContactRequestStatus = string | Merge.accounting.Status7D1Enum; diff --git a/src/api/resources/accounting/types/ContactStatus.ts b/src/api/resources/accounting/types/ContactStatus.ts index 8aa838548..0c28f4cf5 100644 --- a/src/api/resources/accounting/types/ContactStatus.ts +++ b/src/api/resources/accounting/types/ContactStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ -export type ContactStatus = Merge.accounting.Status7D1Enum | string; +export type ContactStatus = string | Merge.accounting.Status7D1Enum; diff --git a/src/api/resources/accounting/types/CreditNoteCurrency.ts b/src/api/resources/accounting/types/CreditNoteCurrency.ts index 6af3e19da..030b49aec 100644 --- a/src/api/resources/accounting/types/CreditNoteCurrency.ts +++ b/src/api/resources/accounting/types/CreditNoteCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type CreditNoteCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type CreditNoteCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts b/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts index 93c3f5b33..cdf006d2a 100644 --- a/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts +++ b/src/api/resources/accounting/types/CreditNoteLineItemRequestProject.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type CreditNoteLineItemRequestProject = string | Merge.accounting.Contact; +export type CreditNoteLineItemRequestProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/CreditNotePaymentsItem.ts b/src/api/resources/accounting/types/CreditNotePaymentsItem.ts index ee3214b5b..ca2e35136 100644 --- a/src/api/resources/accounting/types/CreditNotePaymentsItem.ts +++ b/src/api/resources/accounting/types/CreditNotePaymentsItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type CreditNotePaymentsItem = string | Merge.accounting.Payment; +export type CreditNotePaymentsItem = Merge.accounting.Payment | string; diff --git a/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts b/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts index 8a91e7903..1d1efbb85 100644 --- a/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts +++ b/src/api/resources/accounting/types/CreditNoteRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type CreditNoteRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type CreditNoteRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/CreditNoteRequestPaymentsItem.ts b/src/api/resources/accounting/types/CreditNoteRequestPaymentsItem.ts index ac0e813e0..6b15ef86c 100644 --- a/src/api/resources/accounting/types/CreditNoteRequestPaymentsItem.ts +++ b/src/api/resources/accounting/types/CreditNoteRequestPaymentsItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type CreditNoteRequestPaymentsItem = string | Merge.accounting.Payment; +export type CreditNoteRequestPaymentsItem = Merge.accounting.Payment | string; diff --git a/src/api/resources/accounting/types/CreditNoteRequestStatus.ts b/src/api/resources/accounting/types/CreditNoteRequestStatus.ts index 833c4016f..d73fbe93a 100644 --- a/src/api/resources/accounting/types/CreditNoteRequestStatus.ts +++ b/src/api/resources/accounting/types/CreditNoteRequestStatus.ts @@ -11,4 +11,4 @@ import * as Merge from "../../../index"; * * `AUTHORIZED` - AUTHORIZED * * `PAID` - PAID */ -export type CreditNoteRequestStatus = Merge.accounting.CreditNoteStatusEnum | string; +export type CreditNoteRequestStatus = string | Merge.accounting.CreditNoteStatusEnum; diff --git a/src/api/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts index 37d330af5..abcef9e2c 100644 --- a/src/api/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type CreditNoteRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type CreditNoteRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/CreditNoteStatus.ts b/src/api/resources/accounting/types/CreditNoteStatus.ts index e0fbaa44f..1fca55526 100644 --- a/src/api/resources/accounting/types/CreditNoteStatus.ts +++ b/src/api/resources/accounting/types/CreditNoteStatus.ts @@ -11,4 +11,4 @@ import * as Merge from "../../../index"; * * `AUTHORIZED` - AUTHORIZED * * `PAID` - PAID */ -export type CreditNoteStatus = Merge.accounting.CreditNoteStatusEnum | string; +export type CreditNoteStatus = string | Merge.accounting.CreditNoteStatusEnum; diff --git a/src/api/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts b/src/api/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts index f7c503616..143c654ad 100644 --- a/src/api/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type CreditNoteTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type CreditNoteTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts b/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts index 0ab1dfdc9..10c8bcdb0 100644 --- a/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts +++ b/src/api/resources/accounting/types/DataPassthroughRequestMethod.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type DataPassthroughRequestMethod = Merge.accounting.MethodEnum | string; +export type DataPassthroughRequestMethod = string | Merge.accounting.MethodEnum; diff --git a/src/api/resources/accounting/types/EmployeeStatus.ts b/src/api/resources/accounting/types/EmployeeStatus.ts index 7dfe4475e..7f985f058 100644 --- a/src/api/resources/accounting/types/EmployeeStatus.ts +++ b/src/api/resources/accounting/types/EmployeeStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `INACTIVE` - INACTIVE */ -export type EmployeeStatus = Merge.accounting.Status895Enum | string; +export type EmployeeStatus = string | Merge.accounting.Status895Enum; diff --git a/src/api/resources/accounting/types/ExpenseCurrency.ts b/src/api/resources/accounting/types/ExpenseCurrency.ts index 9dd1ee0b5..6ca644bc2 100644 --- a/src/api/resources/accounting/types/ExpenseCurrency.ts +++ b/src/api/resources/accounting/types/ExpenseCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type ExpenseCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type ExpenseCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/ExpenseLineCurrency.ts b/src/api/resources/accounting/types/ExpenseLineCurrency.ts index d9be7d3a6..ab2d81b77 100644 --- a/src/api/resources/accounting/types/ExpenseLineCurrency.ts +++ b/src/api/resources/accounting/types/ExpenseLineCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type ExpenseLineCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type ExpenseLineCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts b/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts index 4ac74acaf..9b38785c4 100644 --- a/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts +++ b/src/api/resources/accounting/types/ExpenseLineRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type ExpenseLineRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type ExpenseLineRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestProject.ts b/src/api/resources/accounting/types/ExpenseLineRequestProject.ts index 0f8803619..aef0f0ae6 100644 --- a/src/api/resources/accounting/types/ExpenseLineRequestProject.ts +++ b/src/api/resources/accounting/types/ExpenseLineRequestProject.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type ExpenseLineRequestProject = string | Merge.accounting.Contact; +export type ExpenseLineRequestProject = string | Merge.accounting.Project; diff --git a/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts index 8a1dd3bc2..87037fd21 100644 --- a/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type ExpenseLineRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type ExpenseLineRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts index 8eb1cba6c..92cdb8b38 100644 --- a/src/api/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type ExpenseLineTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type ExpenseLineTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/ExpenseReport.ts b/src/api/resources/accounting/types/ExpenseReport.ts index 0c414df81..9e1b83875 100644 --- a/src/api/resources/accounting/types/ExpenseReport.ts +++ b/src/api/resources/accounting/types/ExpenseReport.ts @@ -349,7 +349,7 @@ export interface ExpenseReport { * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ - currency?: Merge.accounting.TransactionCurrencyEnum; + currency?: Merge.accounting.ExpenseReportCurrency; /** A brief description or purpose for the expense report */ description?: string; /** The accounting period the report was posted in */ diff --git a/src/api/resources/accounting/types/ExpenseReportCurrency.ts b/src/api/resources/accounting/types/ExpenseReportCurrency.ts new file mode 100644 index 000000000..f4125dff3 --- /dev/null +++ b/src/api/resources/accounting/types/ExpenseReportCurrency.ts @@ -0,0 +1,317 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +/** + * Currency code for the expense report + * + * * `XUA` - ADB Unit of Account + * * `AFN` - Afghan Afghani + * * `AFA` - Afghan Afghani (1927–2002) + * * `ALL` - Albanian Lek + * * `ALK` - Albanian Lek (1946–1965) + * * `DZD` - Algerian Dinar + * * `ADP` - Andorran Peseta + * * `AOA` - Angolan Kwanza + * * `AOK` - Angolan Kwanza (1977–1991) + * * `AON` - Angolan New Kwanza (1990–2000) + * * `AOR` - Angolan Readjusted Kwanza (1995–1999) + * * `ARA` - Argentine Austral + * * `ARS` - Argentine Peso + * * `ARM` - Argentine Peso (1881–1970) + * * `ARP` - Argentine Peso (1983–1985) + * * `ARL` - Argentine Peso Ley (1970–1983) + * * `AMD` - Armenian Dram + * * `AWG` - Aruban Florin + * * `AUD` - Australian Dollar + * * `ATS` - Austrian Schilling + * * `AZN` - Azerbaijani Manat + * * `AZM` - Azerbaijani Manat (1993–2006) + * * `BSD` - Bahamian Dollar + * * `BHD` - Bahraini Dinar + * * `BDT` - Bangladeshi Taka + * * `BBD` - Barbadian Dollar + * * `BYN` - Belarusian Ruble + * * `BYB` - Belarusian Ruble (1994–1999) + * * `BYR` - Belarusian Ruble (2000–2016) + * * `BEF` - Belgian Franc + * * `BEC` - Belgian Franc (convertible) + * * `BEL` - Belgian Franc (financial) + * * `BZD` - Belize Dollar + * * `BMD` - Bermudan Dollar + * * `BTN` - Bhutanese Ngultrum + * * `BOB` - Bolivian Boliviano + * * `BOL` - Bolivian Boliviano (1863–1963) + * * `BOV` - Bolivian Mvdol + * * `BOP` - Bolivian Peso + * * `BAM` - Bosnia-Herzegovina Convertible Mark + * * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + * * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + * * `BWP` - Botswanan Pula + * * `BRC` - Brazilian Cruzado (1986–1989) + * * `BRZ` - Brazilian Cruzeiro (1942–1967) + * * `BRE` - Brazilian Cruzeiro (1990–1993) + * * `BRR` - Brazilian Cruzeiro (1993–1994) + * * `BRN` - Brazilian New Cruzado (1989–1990) + * * `BRB` - Brazilian New Cruzeiro (1967–1986) + * * `BRL` - Brazilian Real + * * `GBP` - British Pound + * * `BND` - Brunei Dollar + * * `BGL` - Bulgarian Hard Lev + * * `BGN` - Bulgarian Lev + * * `BGO` - Bulgarian Lev (1879–1952) + * * `BGM` - Bulgarian Socialist Lev + * * `BUK` - Burmese Kyat + * * `BIF` - Burundian Franc + * * `XPF` - CFP Franc + * * `KHR` - Cambodian Riel + * * `CAD` - Canadian Dollar + * * `CVE` - Cape Verdean Escudo + * * `KYD` - Cayman Islands Dollar + * * `XAF` - Central African CFA Franc + * * `CLE` - Chilean Escudo + * * `CLP` - Chilean Peso + * * `CLF` - Chilean Unit of Account (UF) + * * `CNX` - Chinese People’s Bank Dollar + * * `CNY` - Chinese Yuan + * * `CNH` - Chinese Yuan (offshore) + * * `COP` - Colombian Peso + * * `COU` - Colombian Real Value Unit + * * `KMF` - Comorian Franc + * * `CDF` - Congolese Franc + * * `CRC` - Costa Rican Colón + * * `HRD` - Croatian Dinar + * * `HRK` - Croatian Kuna + * * `CUC` - Cuban Convertible Peso + * * `CUP` - Cuban Peso + * * `CYP` - Cypriot Pound + * * `CZK` - Czech Koruna + * * `CSK` - Czechoslovak Hard Koruna + * * `DKK` - Danish Krone + * * `DJF` - Djiboutian Franc + * * `DOP` - Dominican Peso + * * `NLG` - Dutch Guilder + * * `XCD` - East Caribbean Dollar + * * `DDM` - East German Mark + * * `ECS` - Ecuadorian Sucre + * * `ECV` - Ecuadorian Unit of Constant Value + * * `EGP` - Egyptian Pound + * * `GQE` - Equatorial Guinean Ekwele + * * `ERN` - Eritrean Nakfa + * * `EEK` - Estonian Kroon + * * `ETB` - Ethiopian Birr + * * `EUR` - Euro + * * `XBA` - European Composite Unit + * * `XEU` - European Currency Unit + * * `XBB` - European Monetary Unit + * * `XBC` - European Unit of Account (XBC) + * * `XBD` - European Unit of Account (XBD) + * * `FKP` - Falkland Islands Pound + * * `FJD` - Fijian Dollar + * * `FIM` - Finnish Markka + * * `FRF` - French Franc + * * `XFO` - French Gold Franc + * * `XFU` - French UIC-Franc + * * `GMD` - Gambian Dalasi + * * `GEK` - Georgian Kupon Larit + * * `GEL` - Georgian Lari + * * `DEM` - German Mark + * * `GHS` - Ghanaian Cedi + * * `GHC` - Ghanaian Cedi (1979–2007) + * * `GIP` - Gibraltar Pound + * * `XAU` - Gold + * * `GRD` - Greek Drachma + * * `GTQ` - Guatemalan Quetzal + * * `GWP` - Guinea-Bissau Peso + * * `GNF` - Guinean Franc + * * `GNS` - Guinean Syli + * * `GYD` - Guyanaese Dollar + * * `HTG` - Haitian Gourde + * * `HNL` - Honduran Lempira + * * `HKD` - Hong Kong Dollar + * * `HUF` - Hungarian Forint + * * `IMP` - IMP + * * `ISK` - Icelandic Króna + * * `ISJ` - Icelandic Króna (1918–1981) + * * `INR` - Indian Rupee + * * `IDR` - Indonesian Rupiah + * * `IRR` - Iranian Rial + * * `IQD` - Iraqi Dinar + * * `IEP` - Irish Pound + * * `ILS` - Israeli New Shekel + * * `ILP` - Israeli Pound + * * `ILR` - Israeli Shekel (1980–1985) + * * `ITL` - Italian Lira + * * `JMD` - Jamaican Dollar + * * `JPY` - Japanese Yen + * * `JOD` - Jordanian Dinar + * * `KZT` - Kazakhstani Tenge + * * `KES` - Kenyan Shilling + * * `KWD` - Kuwaiti Dinar + * * `KGS` - Kyrgystani Som + * * `LAK` - Laotian Kip + * * `LVL` - Latvian Lats + * * `LVR` - Latvian Ruble + * * `LBP` - Lebanese Pound + * * `LSL` - Lesotho Loti + * * `LRD` - Liberian Dollar + * * `LYD` - Libyan Dinar + * * `LTL` - Lithuanian Litas + * * `LTT` - Lithuanian Talonas + * * `LUL` - Luxembourg Financial Franc + * * `LUC` - Luxembourgian Convertible Franc + * * `LUF` - Luxembourgian Franc + * * `MOP` - Macanese Pataca + * * `MKD` - Macedonian Denar + * * `MKN` - Macedonian Denar (1992–1993) + * * `MGA` - Malagasy Ariary + * * `MGF` - Malagasy Franc + * * `MWK` - Malawian Kwacha + * * `MYR` - Malaysian Ringgit + * * `MVR` - Maldivian Rufiyaa + * * `MVP` - Maldivian Rupee (1947–1981) + * * `MLF` - Malian Franc + * * `MTL` - Maltese Lira + * * `MTP` - Maltese Pound + * * `MRU` - Mauritanian Ouguiya + * * `MRO` - Mauritanian Ouguiya (1973–2017) + * * `MUR` - Mauritian Rupee + * * `MXV` - Mexican Investment Unit + * * `MXN` - Mexican Peso + * * `MXP` - Mexican Silver Peso (1861–1992) + * * `MDC` - Moldovan Cupon + * * `MDL` - Moldovan Leu + * * `MCF` - Monegasque Franc + * * `MNT` - Mongolian Tugrik + * * `MAD` - Moroccan Dirham + * * `MAF` - Moroccan Franc + * * `MZE` - Mozambican Escudo + * * `MZN` - Mozambican Metical + * * `MZM` - Mozambican Metical (1980–2006) + * * `MMK` - Myanmar Kyat + * * `NAD` - Namibian Dollar + * * `NPR` - Nepalese Rupee + * * `ANG` - Netherlands Antillean Guilder + * * `TWD` - New Taiwan Dollar + * * `NZD` - New Zealand Dollar + * * `NIO` - Nicaraguan Córdoba + * * `NIC` - Nicaraguan Córdoba (1988–1991) + * * `NGN` - Nigerian Naira + * * `KPW` - North Korean Won + * * `NOK` - Norwegian Krone + * * `OMR` - Omani Rial + * * `PKR` - Pakistani Rupee + * * `XPD` - Palladium + * * `PAB` - Panamanian Balboa + * * `PGK` - Papua New Guinean Kina + * * `PYG` - Paraguayan Guarani + * * `PEI` - Peruvian Inti + * * `PEN` - Peruvian Sol + * * `PES` - Peruvian Sol (1863–1965) + * * `PHP` - Philippine Peso + * * `XPT` - Platinum + * * `PLN` - Polish Zloty + * * `PLZ` - Polish Zloty (1950–1995) + * * `PTE` - Portuguese Escudo + * * `GWE` - Portuguese Guinea Escudo + * * `QAR` - Qatari Rial + * * `XRE` - RINET Funds + * * `RHD` - Rhodesian Dollar + * * `RON` - Romanian Leu + * * `ROL` - Romanian Leu (1952–2006) + * * `RUB` - Russian Ruble + * * `RUR` - Russian Ruble (1991–1998) + * * `RWF` - Rwandan Franc + * * `SVC` - Salvadoran Colón + * * `WST` - Samoan Tala + * * `SAR` - Saudi Riyal + * * `RSD` - Serbian Dinar + * * `CSD` - Serbian Dinar (2002–2006) + * * `SCR` - Seychellois Rupee + * * `SLL` - Sierra Leonean Leone + * * `XAG` - Silver + * * `SGD` - Singapore Dollar + * * `SKK` - Slovak Koruna + * * `SIT` - Slovenian Tolar + * * `SBD` - Solomon Islands Dollar + * * `SOS` - Somali Shilling + * * `ZAR` - South African Rand + * * `ZAL` - South African Rand (financial) + * * `KRH` - South Korean Hwan (1953–1962) + * * `KRW` - South Korean Won + * * `KRO` - South Korean Won (1945–1953) + * * `SSP` - South Sudanese Pound + * * `SUR` - Soviet Rouble + * * `ESP` - Spanish Peseta + * * `ESA` - Spanish Peseta (A account) + * * `ESB` - Spanish Peseta (convertible account) + * * `XDR` - Special Drawing Rights + * * `LKR` - Sri Lankan Rupee + * * `SHP` - St. Helena Pound + * * `XSU` - Sucre + * * `SDD` - Sudanese Dinar (1992–2007) + * * `SDG` - Sudanese Pound + * * `SDP` - Sudanese Pound (1957–1998) + * * `SRD` - Surinamese Dollar + * * `SRG` - Surinamese Guilder + * * `SZL` - Swazi Lilangeni + * * `SEK` - Swedish Krona + * * `CHF` - Swiss Franc + * * `SYP` - Syrian Pound + * * `STN` - São Tomé & Príncipe Dobra + * * `STD` - São Tomé & Príncipe Dobra (1977–2017) + * * `TVD` - TVD + * * `TJR` - Tajikistani Ruble + * * `TJS` - Tajikistani Somoni + * * `TZS` - Tanzanian Shilling + * * `XTS` - Testing Currency Code + * * `THB` - Thai Baht + * * `XXX` - The codes assigned for transactions where no currency is involved + * * `TPE` - Timorese Escudo + * * `TOP` - Tongan Paʻanga + * * `TTD` - Trinidad & Tobago Dollar + * * `TND` - Tunisian Dinar + * * `TRY` - Turkish Lira + * * `TRL` - Turkish Lira (1922–2005) + * * `TMT` - Turkmenistani Manat + * * `TMM` - Turkmenistani Manat (1993–2009) + * * `USD` - US Dollar + * * `USN` - US Dollar (Next day) + * * `USS` - US Dollar (Same day) + * * `UGX` - Ugandan Shilling + * * `UGS` - Ugandan Shilling (1966–1987) + * * `UAH` - Ukrainian Hryvnia + * * `UAK` - Ukrainian Karbovanets + * * `AED` - United Arab Emirates Dirham + * * `UYW` - Uruguayan Nominal Wage Index Unit + * * `UYU` - Uruguayan Peso + * * `UYP` - Uruguayan Peso (1975–1993) + * * `UYI` - Uruguayan Peso (Indexed Units) + * * `UZS` - Uzbekistani Som + * * `VUV` - Vanuatu Vatu + * * `VES` - Venezuelan Bolívar + * * `VEB` - Venezuelan Bolívar (1871–2008) + * * `VEF` - Venezuelan Bolívar (2008–2018) + * * `VND` - Vietnamese Dong + * * `VNN` - Vietnamese Dong (1978–1985) + * * `CHE` - WIR Euro + * * `CHW` - WIR Franc + * * `XOF` - West African CFA Franc + * * `YDD` - Yemeni Dinar + * * `YER` - Yemeni Rial + * * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + * * `YUD` - Yugoslavian Hard Dinar (1966–1990) + * * `YUM` - Yugoslavian New Dinar (1994–2002) + * * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + * * `ZWN` - ZWN + * * `ZRN` - Zairean New Zaire (1993–1998) + * * `ZRZ` - Zairean Zaire (1971–1993) + * * `ZMW` - Zambian Kwacha + * * `ZMK` - Zambian Kwacha (1968–2012) + * * `ZWD` - Zimbabwean Dollar (1980–2008) + * * `ZWR` - Zimbabwean Dollar (2008) + * * `ZWL` - Zimbabwean Dollar (2009) + */ +export type ExpenseReportCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/ExpenseReportStatus.ts b/src/api/resources/accounting/types/ExpenseReportStatus.ts index bbf6ac634..3847a3cce 100644 --- a/src/api/resources/accounting/types/ExpenseReportStatus.ts +++ b/src/api/resources/accounting/types/ExpenseReportStatus.ts @@ -12,4 +12,4 @@ import * as Merge from "../../../index"; * * `APPROVED` - APPROVED * * `REJECTED` - REJECTED */ -export type ExpenseReportStatus = Merge.accounting.ExpenseReportStatusEnum | string; +export type ExpenseReportStatus = string | Merge.accounting.ExpenseReportStatusEnum; diff --git a/src/api/resources/accounting/types/ExpenseRequestCurrency.ts b/src/api/resources/accounting/types/ExpenseRequestCurrency.ts index 9423d80e5..5048aae7a 100644 --- a/src/api/resources/accounting/types/ExpenseRequestCurrency.ts +++ b/src/api/resources/accounting/types/ExpenseRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type ExpenseRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type ExpenseRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts index fd45f6525..002923396 100644 --- a/src/api/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type ExpenseRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type ExpenseRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/ExpenseTrackingCategoriesItem.ts b/src/api/resources/accounting/types/ExpenseTrackingCategoriesItem.ts index 63ab30822..87f07c01c 100644 --- a/src/api/resources/accounting/types/ExpenseTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/ExpenseTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type ExpenseTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type ExpenseTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts index 2eb69b373..350d13d57 100644 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type GeneralLedgerTransactionLineBaseCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type GeneralLedgerTransactionLineBaseCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts b/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts index 76ab2acd2..f1ea67eed 100644 --- a/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts +++ b/src/api/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type GeneralLedgerTransactionLineTransactionCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type GeneralLedgerTransactionLineTransactionCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/IncomeStatementCurrency.ts b/src/api/resources/accounting/types/IncomeStatementCurrency.ts index 483e76c36..57d04c987 100644 --- a/src/api/resources/accounting/types/IncomeStatementCurrency.ts +++ b/src/api/resources/accounting/types/IncomeStatementCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type IncomeStatementCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type IncomeStatementCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/InvoiceCurrency.ts b/src/api/resources/accounting/types/InvoiceCurrency.ts index a701cbbe5..11396ca9d 100644 --- a/src/api/resources/accounting/types/InvoiceCurrency.ts +++ b/src/api/resources/accounting/types/InvoiceCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type InvoiceCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type InvoiceCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts b/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts index f2c2fb94b..b89b8723d 100644 --- a/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts +++ b/src/api/resources/accounting/types/InvoiceLineItemCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type InvoiceLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type InvoiceLineItemCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts index c34e48860..d6541033f 100644 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts +++ b/src/api/resources/accounting/types/InvoiceLineItemRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type InvoiceLineItemRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type InvoiceLineItemRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts index 3ba333170..ec3008fc8 100644 --- a/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type InvoiceLineItemRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type InvoiceLineItemRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/InvoiceRequestCurrency.ts b/src/api/resources/accounting/types/InvoiceRequestCurrency.ts index bddb0fe03..c38413ebf 100644 --- a/src/api/resources/accounting/types/InvoiceRequestCurrency.ts +++ b/src/api/resources/accounting/types/InvoiceRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type InvoiceRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type InvoiceRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/InvoiceRequestPaymentsItem.ts b/src/api/resources/accounting/types/InvoiceRequestPaymentsItem.ts index 7b3dc7fc7..8a2f8ba67 100644 --- a/src/api/resources/accounting/types/InvoiceRequestPaymentsItem.ts +++ b/src/api/resources/accounting/types/InvoiceRequestPaymentsItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type InvoiceRequestPaymentsItem = string | Merge.accounting.Payment; +export type InvoiceRequestPaymentsItem = Merge.accounting.Payment | string; diff --git a/src/api/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts b/src/api/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts index 0804c7a9b..9f2dbaa09 100644 --- a/src/api/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts +++ b/src/api/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type InvoiceRequestPurchaseOrdersItem = string | Merge.accounting.PurchaseOrder; +export type InvoiceRequestPurchaseOrdersItem = Merge.accounting.PurchaseOrder | string; diff --git a/src/api/resources/accounting/types/InvoiceRequestStatus.ts b/src/api/resources/accounting/types/InvoiceRequestStatus.ts index 93b714afa..b7bf9e649 100644 --- a/src/api/resources/accounting/types/InvoiceRequestStatus.ts +++ b/src/api/resources/accounting/types/InvoiceRequestStatus.ts @@ -14,4 +14,4 @@ import * as Merge from "../../../index"; * * `OPEN` - OPEN * * `VOID` - VOID */ -export type InvoiceRequestStatus = Merge.accounting.InvoiceStatusEnum | string; +export type InvoiceRequestStatus = string | Merge.accounting.InvoiceStatusEnum; diff --git a/src/api/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts index c421fe042..ed34005e4 100644 --- a/src/api/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type InvoiceRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type InvoiceRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/InvoiceRequestType.ts b/src/api/resources/accounting/types/InvoiceRequestType.ts index bd62b49db..ea20b3a44 100644 --- a/src/api/resources/accounting/types/InvoiceRequestType.ts +++ b/src/api/resources/accounting/types/InvoiceRequestType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE */ -export type InvoiceRequestType = Merge.accounting.InvoiceTypeEnum | string; +export type InvoiceRequestType = string | Merge.accounting.InvoiceTypeEnum; diff --git a/src/api/resources/accounting/types/IssueStatus.ts b/src/api/resources/accounting/types/IssueStatus.ts index 1707a6de8..bf7f2dff9 100644 --- a/src/api/resources/accounting/types/IssueStatus.ts +++ b/src/api/resources/accounting/types/IssueStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ONGOING` - ONGOING * * `RESOLVED` - RESOLVED */ -export type IssueStatus = Merge.accounting.IssueStatusEnum | string; +export type IssueStatus = string | Merge.accounting.IssueStatusEnum; diff --git a/src/api/resources/accounting/types/ItemRequestRequestStatus.ts b/src/api/resources/accounting/types/ItemRequestRequestStatus.ts index 34a40eab4..896ae648a 100644 --- a/src/api/resources/accounting/types/ItemRequestRequestStatus.ts +++ b/src/api/resources/accounting/types/ItemRequestRequestStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ -export type ItemRequestRequestStatus = Merge.accounting.Status7D1Enum | string; +export type ItemRequestRequestStatus = string | Merge.accounting.Status7D1Enum; diff --git a/src/api/resources/accounting/types/ItemRequestRequestType.ts b/src/api/resources/accounting/types/ItemRequestRequestType.ts index 8167d7c19..3d11fccfb 100644 --- a/src/api/resources/accounting/types/ItemRequestRequestType.ts +++ b/src/api/resources/accounting/types/ItemRequestRequestType.ts @@ -12,4 +12,4 @@ import * as Merge from "../../../index"; * * `SERVICE` - SERVICE * * `UNKNOWN` - UNKNOWN */ -export type ItemRequestRequestType = Merge.accounting.Type2BbEnum | string; +export type ItemRequestRequestType = string | Merge.accounting.Type2BbEnum; diff --git a/src/api/resources/accounting/types/ItemStatus.ts b/src/api/resources/accounting/types/ItemStatus.ts index aacf978f9..1f8179bb4 100644 --- a/src/api/resources/accounting/types/ItemStatus.ts +++ b/src/api/resources/accounting/types/ItemStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ -export type ItemStatus = Merge.accounting.Status7D1Enum | string; +export type ItemStatus = string | Merge.accounting.Status7D1Enum; diff --git a/src/api/resources/accounting/types/ItemType.ts b/src/api/resources/accounting/types/ItemType.ts index 5303acd29..ac5e56624 100644 --- a/src/api/resources/accounting/types/ItemType.ts +++ b/src/api/resources/accounting/types/ItemType.ts @@ -12,4 +12,4 @@ import * as Merge from "../../../index"; * * `SERVICE` - SERVICE * * `UNKNOWN` - UNKNOWN */ -export type ItemType = Merge.accounting.Type2BbEnum | string; +export type ItemType = string | Merge.accounting.Type2BbEnum; diff --git a/src/api/resources/accounting/types/JournalEntryCurrency.ts b/src/api/resources/accounting/types/JournalEntryCurrency.ts index 6281b0af3..cc9fa9302 100644 --- a/src/api/resources/accounting/types/JournalEntryCurrency.ts +++ b/src/api/resources/accounting/types/JournalEntryCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type JournalEntryCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type JournalEntryCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/JournalEntryPaymentsItem.ts b/src/api/resources/accounting/types/JournalEntryPaymentsItem.ts index 46db764a6..ace885372 100644 --- a/src/api/resources/accounting/types/JournalEntryPaymentsItem.ts +++ b/src/api/resources/accounting/types/JournalEntryPaymentsItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type JournalEntryPaymentsItem = string | Merge.accounting.Payment; +export type JournalEntryPaymentsItem = Merge.accounting.Payment | string; diff --git a/src/api/resources/accounting/types/JournalEntryPostingStatus.ts b/src/api/resources/accounting/types/JournalEntryPostingStatus.ts index 2e06ee8f9..7743cbbc4 100644 --- a/src/api/resources/accounting/types/JournalEntryPostingStatus.ts +++ b/src/api/resources/accounting/types/JournalEntryPostingStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `UNPOSTED` - UNPOSTED * * `POSTED` - POSTED */ -export type JournalEntryPostingStatus = Merge.accounting.PostingStatusEnum | string; +export type JournalEntryPostingStatus = string | Merge.accounting.PostingStatusEnum; diff --git a/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts b/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts index 62b8872d1..9397d4ef4 100644 --- a/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts +++ b/src/api/resources/accounting/types/JournalEntryRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type JournalEntryRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type JournalEntryRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/JournalEntryRequestPaymentsItem.ts b/src/api/resources/accounting/types/JournalEntryRequestPaymentsItem.ts index fd99f0904..2827f8a13 100644 --- a/src/api/resources/accounting/types/JournalEntryRequestPaymentsItem.ts +++ b/src/api/resources/accounting/types/JournalEntryRequestPaymentsItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type JournalEntryRequestPaymentsItem = string | Merge.accounting.Payment; +export type JournalEntryRequestPaymentsItem = Merge.accounting.Payment | string; diff --git a/src/api/resources/accounting/types/JournalEntryRequestPostingStatus.ts b/src/api/resources/accounting/types/JournalEntryRequestPostingStatus.ts index 3b1a5d071..ec290d532 100644 --- a/src/api/resources/accounting/types/JournalEntryRequestPostingStatus.ts +++ b/src/api/resources/accounting/types/JournalEntryRequestPostingStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `UNPOSTED` - UNPOSTED * * `POSTED` - POSTED */ -export type JournalEntryRequestPostingStatus = Merge.accounting.PostingStatusEnum | string; +export type JournalEntryRequestPostingStatus = string | Merge.accounting.PostingStatusEnum; diff --git a/src/api/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts index 140281d0d..d379b90e4 100644 --- a/src/api/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type JournalEntryRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type JournalEntryRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts b/src/api/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts index 0ca210561..a0b30f5c9 100644 --- a/src/api/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type JournalEntryTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type JournalEntryTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/JournalLineCurrency.ts b/src/api/resources/accounting/types/JournalLineCurrency.ts index a7552fe0b..74ff2c525 100644 --- a/src/api/resources/accounting/types/JournalLineCurrency.ts +++ b/src/api/resources/accounting/types/JournalLineCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type JournalLineCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type JournalLineCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/JournalLineRequestCurrency.ts b/src/api/resources/accounting/types/JournalLineRequestCurrency.ts index 0e7ed78ca..0885d1d9b 100644 --- a/src/api/resources/accounting/types/JournalLineRequestCurrency.ts +++ b/src/api/resources/accounting/types/JournalLineRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type JournalLineRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type JournalLineRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts index 0edb6c590..ddad1c6cc 100644 --- a/src/api/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type JournalLineRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type JournalLineRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/JournalLineTrackingCategoriesItem.ts b/src/api/resources/accounting/types/JournalLineTrackingCategoriesItem.ts index 46b6bc26b..a678ac46d 100644 --- a/src/api/resources/accounting/types/JournalLineTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/JournalLineTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type JournalLineTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type JournalLineTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/MultipartFormFieldRequestEncoding.ts b/src/api/resources/accounting/types/MultipartFormFieldRequestEncoding.ts index a7a046b40..9e7726c10 100644 --- a/src/api/resources/accounting/types/MultipartFormFieldRequestEncoding.ts +++ b/src/api/resources/accounting/types/MultipartFormFieldRequestEncoding.ts @@ -11,4 +11,4 @@ import * as Merge from "../../../index"; * * `BASE64` - BASE64 * * `GZIP_BASE64` - GZIP_BASE64 */ -export type MultipartFormFieldRequestEncoding = Merge.accounting.EncodingEnum | string; +export type MultipartFormFieldRequestEncoding = string | Merge.accounting.EncodingEnum; diff --git a/src/api/resources/accounting/types/PatchedContactRequest.ts b/src/api/resources/accounting/types/PatchedContactRequest.ts index 1f9ad106b..48f6b4eee 100644 --- a/src/api/resources/accounting/types/PatchedContactRequest.ts +++ b/src/api/resources/accounting/types/PatchedContactRequest.ts @@ -31,7 +31,7 @@ export interface PatchedContactRequest { * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ - status?: string; + status?: Merge.accounting.PatchedContactRequestStatus; /** The currency the contact's transactions are in. */ currency?: string; /** The company the contact belongs to. */ diff --git a/src/api/resources/accounting/types/PatchedContactRequestStatus.ts b/src/api/resources/accounting/types/PatchedContactRequestStatus.ts new file mode 100644 index 000000000..be2b93338 --- /dev/null +++ b/src/api/resources/accounting/types/PatchedContactRequestStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../index"; + +/** + * The contact's status + * + * * `ACTIVE` - ACTIVE + * * `ARCHIVED` - ARCHIVED + */ +export type PatchedContactRequestStatus = string | Merge.accounting.Status7D1Enum; diff --git a/src/api/resources/accounting/types/PatchedItemRequestRequestStatus.ts b/src/api/resources/accounting/types/PatchedItemRequestRequestStatus.ts index dc5492a70..5606496c1 100644 --- a/src/api/resources/accounting/types/PatchedItemRequestRequestStatus.ts +++ b/src/api/resources/accounting/types/PatchedItemRequestRequestStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ -export type PatchedItemRequestRequestStatus = Merge.accounting.Status7D1Enum | string; +export type PatchedItemRequestRequestStatus = string | Merge.accounting.Status7D1Enum; diff --git a/src/api/resources/accounting/types/PatchedItemRequestRequestType.ts b/src/api/resources/accounting/types/PatchedItemRequestRequestType.ts index 129543221..4386103c7 100644 --- a/src/api/resources/accounting/types/PatchedItemRequestRequestType.ts +++ b/src/api/resources/accounting/types/PatchedItemRequestRequestType.ts @@ -12,4 +12,4 @@ import * as Merge from "../../../index"; * * `SERVICE` - SERVICE * * `UNKNOWN` - UNKNOWN */ -export type PatchedItemRequestRequestType = Merge.accounting.Type2BbEnum | string; +export type PatchedItemRequestRequestType = string | Merge.accounting.Type2BbEnum; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts b/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts index f953a37f7..912e84663 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts +++ b/src/api/resources/accounting/types/PatchedPaymentRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type PatchedPaymentRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type PatchedPaymentRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestType.ts b/src/api/resources/accounting/types/PatchedPaymentRequestType.ts index 90ef4f12f..de84dc421 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequestType.ts +++ b/src/api/resources/accounting/types/PatchedPaymentRequestType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE */ -export type PatchedPaymentRequestType = Merge.accounting.PaymentTypeEnum | string; +export type PatchedPaymentRequestType = string | Merge.accounting.PaymentTypeEnum; diff --git a/src/api/resources/accounting/types/PaymentCurrency.ts b/src/api/resources/accounting/types/PaymentCurrency.ts index ea694de86..58ca6b396 100644 --- a/src/api/resources/accounting/types/PaymentCurrency.ts +++ b/src/api/resources/accounting/types/PaymentCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type PaymentCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type PaymentCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/PaymentMethod.ts b/src/api/resources/accounting/types/PaymentMethod.ts index d4a9b7bd8..730f7b5fd 100644 --- a/src/api/resources/accounting/types/PaymentMethod.ts +++ b/src/api/resources/accounting/types/PaymentMethod.ts @@ -29,7 +29,7 @@ export interface PaymentMethod { * * `CASH` - CASH * * `CHECK` - CHECK */ - methodType: Merge.accounting.PaymentMethodMethodType; + methodType?: Merge.accounting.PaymentMethodMethodType; /** The payment method’s name */ name: string; /** `True` if the payment method is active, `False` if not. */ diff --git a/src/api/resources/accounting/types/PaymentMethodMethodType.ts b/src/api/resources/accounting/types/PaymentMethodMethodType.ts index 137dadebe..888eeeccd 100644 --- a/src/api/resources/accounting/types/PaymentMethodMethodType.ts +++ b/src/api/resources/accounting/types/PaymentMethodMethodType.ts @@ -13,4 +13,4 @@ import * as Merge from "../../../index"; * * `CASH` - CASH * * `CHECK` - CHECK */ -export type PaymentMethodMethodType = Merge.accounting.MethodTypeEnum | string; +export type PaymentMethodMethodType = string | Merge.accounting.MethodTypeEnum; diff --git a/src/api/resources/accounting/types/PaymentRequestCurrency.ts b/src/api/resources/accounting/types/PaymentRequestCurrency.ts index 36d7c7fdb..98d4d0a44 100644 --- a/src/api/resources/accounting/types/PaymentRequestCurrency.ts +++ b/src/api/resources/accounting/types/PaymentRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type PaymentRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type PaymentRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts index 1120b8538..8901b06d5 100644 --- a/src/api/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type PaymentRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type PaymentRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/PaymentRequestType.ts b/src/api/resources/accounting/types/PaymentRequestType.ts index 6c88c4686..9477da07d 100644 --- a/src/api/resources/accounting/types/PaymentRequestType.ts +++ b/src/api/resources/accounting/types/PaymentRequestType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE */ -export type PaymentRequestType = Merge.accounting.PaymentTypeEnum | string; +export type PaymentRequestType = string | Merge.accounting.PaymentTypeEnum; diff --git a/src/api/resources/accounting/types/PaymentTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PaymentTrackingCategoriesItem.ts index 19e0c499a..18dfbbcfa 100644 --- a/src/api/resources/accounting/types/PaymentTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/PaymentTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type PaymentTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type PaymentTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/PaymentType.ts b/src/api/resources/accounting/types/PaymentType.ts index 00f8de770..4e2d00cbc 100644 --- a/src/api/resources/accounting/types/PaymentType.ts +++ b/src/api/resources/accounting/types/PaymentType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE * * `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE */ -export type PaymentType = Merge.accounting.PaymentTypeEnum | string; +export type PaymentType = string | Merge.accounting.PaymentTypeEnum; diff --git a/src/api/resources/accounting/types/PurchaseOrderCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderCurrency.ts index 4f859c22f..395fbf32f 100644 --- a/src/api/resources/accounting/types/PurchaseOrderCurrency.ts +++ b/src/api/resources/accounting/types/PurchaseOrderCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type PurchaseOrderCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type PurchaseOrderCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts index 62b92f8fe..f50fc27ac 100644 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts +++ b/src/api/resources/accounting/types/PurchaseOrderLineItemCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type PurchaseOrderLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type PurchaseOrderLineItemCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts index 22aae0878..42a3b9326 100644 --- a/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts +++ b/src/api/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type PurchaseOrderLineItemRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type PurchaseOrderLineItemRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts b/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts index bebf7a807..10fdeeea5 100644 --- a/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts +++ b/src/api/resources/accounting/types/PurchaseOrderRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type PurchaseOrderRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type PurchaseOrderRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestStatus.ts b/src/api/resources/accounting/types/PurchaseOrderRequestStatus.ts index 2883a0071..1df9c4e0e 100644 --- a/src/api/resources/accounting/types/PurchaseOrderRequestStatus.ts +++ b/src/api/resources/accounting/types/PurchaseOrderRequestStatus.ts @@ -13,4 +13,4 @@ import * as Merge from "../../../index"; * * `BILLED` - BILLED * * `DELETED` - DELETED */ -export type PurchaseOrderRequestStatus = Merge.accounting.PurchaseOrderStatusEnum | string; +export type PurchaseOrderRequestStatus = string | Merge.accounting.PurchaseOrderStatusEnum; diff --git a/src/api/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts index f5f5fc693..31fb8f053 100644 --- a/src/api/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type PurchaseOrderRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type PurchaseOrderRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/PurchaseOrderStatus.ts b/src/api/resources/accounting/types/PurchaseOrderStatus.ts index 4ff231503..c42a62692 100644 --- a/src/api/resources/accounting/types/PurchaseOrderStatus.ts +++ b/src/api/resources/accounting/types/PurchaseOrderStatus.ts @@ -13,4 +13,4 @@ import * as Merge from "../../../index"; * * `BILLED` - BILLED * * `DELETED` - DELETED */ -export type PurchaseOrderStatus = Merge.accounting.PurchaseOrderStatusEnum | string; +export type PurchaseOrderStatus = string | Merge.accounting.PurchaseOrderStatusEnum; diff --git a/src/api/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts b/src/api/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts index bb48930c7..d357e8c5d 100644 --- a/src/api/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type PurchaseOrderTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type PurchaseOrderTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/RemoteFieldApiResponse.ts b/src/api/resources/accounting/types/RemoteFieldApiResponse.ts index b5e8c6368..15c202f81 100644 --- a/src/api/resources/accounting/types/RemoteFieldApiResponse.ts +++ b/src/api/resources/accounting/types/RemoteFieldApiResponse.ts @@ -15,6 +15,7 @@ export interface RemoteFieldApiResponse { creditNote?: Merge.accounting.RemoteFieldApi[]; item?: Merge.accounting.RemoteFieldApi[]; purchaseOrder?: Merge.accounting.RemoteFieldApi[]; + expenseReport?: Merge.accounting.RemoteFieldApi[]; trackingCategory?: Merge.accounting.RemoteFieldApi[]; journalEntry?: Merge.accounting.RemoteFieldApi[]; taxRate?: Merge.accounting.RemoteFieldApi[]; diff --git a/src/api/resources/accounting/types/SyncStatusStatus.ts b/src/api/resources/accounting/types/SyncStatusStatus.ts index dd2052ea6..34b633199 100644 --- a/src/api/resources/accounting/types/SyncStatusStatus.ts +++ b/src/api/resources/accounting/types/SyncStatusStatus.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type SyncStatusStatus = Merge.accounting.StatusFd5Enum | string; +export type SyncStatusStatus = string | Merge.accounting.StatusFd5Enum; diff --git a/src/api/resources/accounting/types/TaxComponentComponentType.ts b/src/api/resources/accounting/types/TaxComponentComponentType.ts index 8304832e2..4f5e7c2e0 100644 --- a/src/api/resources/accounting/types/TaxComponentComponentType.ts +++ b/src/api/resources/accounting/types/TaxComponentComponentType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `SALES` - SALES * * `PURCHASE` - PURCHASE */ -export type TaxComponentComponentType = Merge.accounting.ComponentTypeEnum | string; +export type TaxComponentComponentType = string | Merge.accounting.ComponentTypeEnum; diff --git a/src/api/resources/accounting/types/TaxRateStatus.ts b/src/api/resources/accounting/types/TaxRateStatus.ts index 4f63c73e8..925ac4286 100644 --- a/src/api/resources/accounting/types/TaxRateStatus.ts +++ b/src/api/resources/accounting/types/TaxRateStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ -export type TaxRateStatus = Merge.accounting.Status7D1Enum | string; +export type TaxRateStatus = string | Merge.accounting.Status7D1Enum; diff --git a/src/api/resources/accounting/types/TrackingCategoryCategoryType.ts b/src/api/resources/accounting/types/TrackingCategoryCategoryType.ts index 9dec20a8c..d02dd36ab 100644 --- a/src/api/resources/accounting/types/TrackingCategoryCategoryType.ts +++ b/src/api/resources/accounting/types/TrackingCategoryCategoryType.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `CLASS` - CLASS * * `DEPARTMENT` - DEPARTMENT */ -export type TrackingCategoryCategoryType = Merge.accounting.CategoryTypeEnum | string; +export type TrackingCategoryCategoryType = string | Merge.accounting.CategoryTypeEnum; diff --git a/src/api/resources/accounting/types/TrackingCategoryStatus.ts b/src/api/resources/accounting/types/TrackingCategoryStatus.ts index 48eabd55c..2500fc278 100644 --- a/src/api/resources/accounting/types/TrackingCategoryStatus.ts +++ b/src/api/resources/accounting/types/TrackingCategoryStatus.ts @@ -10,4 +10,4 @@ import * as Merge from "../../../index"; * * `ACTIVE` - ACTIVE * * `ARCHIVED` - ARCHIVED */ -export type TrackingCategoryStatus = Merge.accounting.Status7D1Enum | string; +export type TrackingCategoryStatus = string | Merge.accounting.Status7D1Enum; diff --git a/src/api/resources/accounting/types/TransactionCurrency.ts b/src/api/resources/accounting/types/TransactionCurrency.ts index 939188e93..b018e954b 100644 --- a/src/api/resources/accounting/types/TransactionCurrency.ts +++ b/src/api/resources/accounting/types/TransactionCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type TransactionCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type TransactionCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/TransactionLineItemCurrency.ts b/src/api/resources/accounting/types/TransactionLineItemCurrency.ts index c19786f8e..4f469d137 100644 --- a/src/api/resources/accounting/types/TransactionLineItemCurrency.ts +++ b/src/api/resources/accounting/types/TransactionLineItemCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type TransactionLineItemCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type TransactionLineItemCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/VendorCreditCurrency.ts b/src/api/resources/accounting/types/VendorCreditCurrency.ts index 4972848cd..efa67f654 100644 --- a/src/api/resources/accounting/types/VendorCreditCurrency.ts +++ b/src/api/resources/accounting/types/VendorCreditCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type VendorCreditCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type VendorCreditCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts b/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts index eeba3fa2a..79dd11840 100644 --- a/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts +++ b/src/api/resources/accounting/types/VendorCreditRequestCurrency.ts @@ -314,4 +314,4 @@ import * as Merge from "../../../index"; * * `ZWR` - Zimbabwean Dollar (2008) * * `ZWL` - Zimbabwean Dollar (2009) */ -export type VendorCreditRequestCurrency = Merge.accounting.TransactionCurrencyEnum | string; +export type VendorCreditRequestCurrency = string | Merge.accounting.TransactionCurrencyEnum; diff --git a/src/api/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts b/src/api/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts index 7183a4479..20f5ca4b1 100644 --- a/src/api/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type VendorCreditRequestTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type VendorCreditRequestTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts b/src/api/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts index eeadf9b8d..b47f24087 100644 --- a/src/api/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts +++ b/src/api/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts @@ -4,4 +4,4 @@ import * as Merge from "../../../index"; -export type VendorCreditTrackingCategoriesItem = string | Merge.accounting.TrackingCategory; +export type VendorCreditTrackingCategoriesItem = Merge.accounting.TrackingCategory | string; diff --git a/src/api/resources/accounting/types/index.ts b/src/api/resources/accounting/types/index.ts index 73f02eb79..4fa61bb7c 100644 --- a/src/api/resources/accounting/types/index.ts +++ b/src/api/resources/accounting/types/index.ts @@ -9,8 +9,10 @@ export * from "./AccountDetails"; export * from "./AccountDetailsAndActionsCategory"; export * from "./AccountDetailsAndActionsStatus"; export * from "./AccountDetailsAndActions"; +export * from "./AccountDetailsAndActionsIntegrationCategoriesItem"; export * from "./AccountDetailsAndActionsIntegration"; export * from "./AccountDetailsAndActionsStatusEnum"; +export * from "./AccountIntegrationCategoriesItem"; export * from "./AccountIntegration"; export * from "./AccountRequestClassification"; export * from "./AccountRequestAccountType"; @@ -160,6 +162,7 @@ export * from "./ExpenseLineRequestContact"; export * from "./ExpenseLineRequestProject"; export * from "./ExpenseLineRequest"; export * from "./ExpenseReportStatus"; +export * from "./ExpenseReportCurrency"; export * from "./ExpenseReportCompany"; export * from "./ExpenseReport"; export * from "./ExpenseReportLineAccount"; @@ -367,6 +370,7 @@ export * from "./PaginatedTaxRateList"; export * from "./PaginatedTrackingCategoryList"; export * from "./PaginatedTransactionList"; export * from "./PaginatedVendorCreditList"; +export * from "./PatchedContactRequestStatus"; export * from "./PatchedContactRequestAddressesItem"; export * from "./PatchedContactRequest"; export * from "./PatchedItemRequestRequestStatus"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 7df440533..4fa43ea12 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,6 +1,6 @@ -export * as ats from "./ats"; -export * as filestorage from "./filestorage"; export * as crm from "./crm"; +export * as filestorage from "./filestorage"; export * as hris from "./hris"; +export * as ats from "./ats"; export * as ticketing from "./ticketing"; export * as accounting from "./accounting"; diff --git a/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts index ba7e83870..4e26a883a 100644 --- a/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -5,7 +5,7 @@ import * as serializers from "../../../../../../index"; import * as Merge from "../../../../../../../api/index"; import * as core from "../../../../../../../core"; -import { CategoriesEnum } from "../../../../types/CategoriesEnum"; +import { EndUserDetailsRequestCategoriesItem } from "../../types/EndUserDetailsRequestCategoriesItem"; import { CommonModelScopesBodyRequest } from "../../../../types/CommonModelScopesBodyRequest"; import { IndividualCommonModelScopeDeserializerRequest } from "../../../../types/IndividualCommonModelScopeDeserializerRequest"; import { EndUserDetailsRequestLanguage } from "../../types/EndUserDetailsRequestLanguage"; @@ -17,7 +17,7 @@ export const EndUserDetailsRequest: core.serialization.Schema< endUserEmailAddress: core.serialization.property("end_user_email_address", core.serialization.string()), endUserOrganizationName: core.serialization.property("end_user_organization_name", core.serialization.string()), endUserOriginId: core.serialization.property("end_user_origin_id", core.serialization.string()), - categories: core.serialization.list(CategoriesEnum), + categories: core.serialization.list(EndUserDetailsRequestCategoriesItem.optional()), integration: core.serialization.string().optional(), linkExpiryMins: core.serialization.property("link_expiry_mins", core.serialization.number().optional()), shouldCreateMagicLinkUrl: core.serialization.property( @@ -51,7 +51,7 @@ export declare namespace EndUserDetailsRequest { end_user_email_address: string; end_user_organization_name: string; end_user_origin_id: string; - categories: CategoriesEnum.Raw[]; + categories: (EndUserDetailsRequestCategoriesItem.Raw | null | undefined)[]; integration?: string | null; link_expiry_mins?: number | null; should_create_magic_link_url?: boolean | null; diff --git a/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCategoriesItem.ts b/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCategoriesItem.ts new file mode 100644 index 000000000..e08b5a1b1 --- /dev/null +++ b/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestCategoriesItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../index"; +import * as Merge from "../../../../../../api/index"; +import * as core from "../../../../../../core"; +import { CategoriesEnum } from "../../../types/CategoriesEnum"; + +export const EndUserDetailsRequestCategoriesItem: core.serialization.Schema< + serializers.accounting.EndUserDetailsRequestCategoriesItem.Raw, + Merge.accounting.EndUserDetailsRequestCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CategoriesEnum]); + +export declare namespace EndUserDetailsRequestCategoriesItem { + export type Raw = string | CategoriesEnum.Raw; +} diff --git a/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts b/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts index f244e60b4..1a6bfc49f 100644 --- a/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts +++ b/src/serialization/resources/accounting/resources/linkToken/types/EndUserDetailsRequestLanguage.ts @@ -10,8 +10,8 @@ import { LanguageEnum } from "../../../types/LanguageEnum"; export const EndUserDetailsRequestLanguage: core.serialization.Schema< serializers.accounting.EndUserDetailsRequestLanguage.Raw, Merge.accounting.EndUserDetailsRequestLanguage -> = core.serialization.undiscriminatedUnion([LanguageEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), LanguageEnum]); export declare namespace EndUserDetailsRequestLanguage { - export type Raw = LanguageEnum.Raw | string; + export type Raw = string | LanguageEnum.Raw; } diff --git a/src/serialization/resources/accounting/resources/linkToken/types/index.ts b/src/serialization/resources/accounting/resources/linkToken/types/index.ts index c90e13c37..33ceb8921 100644 --- a/src/serialization/resources/accounting/resources/linkToken/types/index.ts +++ b/src/serialization/resources/accounting/resources/linkToken/types/index.ts @@ -1 +1,2 @@ +export * from "./EndUserDetailsRequestCategoriesItem"; export * from "./EndUserDetailsRequestLanguage"; diff --git a/src/serialization/resources/accounting/types/AccountAccountType.ts b/src/serialization/resources/accounting/types/AccountAccountType.ts index a13f396c5..8738cdc5f 100644 --- a/src/serialization/resources/accounting/types/AccountAccountType.ts +++ b/src/serialization/resources/accounting/types/AccountAccountType.ts @@ -10,8 +10,8 @@ import { AccountAccountTypeEnum } from "./AccountAccountTypeEnum"; export const AccountAccountType: core.serialization.Schema< serializers.accounting.AccountAccountType.Raw, Merge.accounting.AccountAccountType -> = core.serialization.undiscriminatedUnion([AccountAccountTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountAccountTypeEnum]); export declare namespace AccountAccountType { - export type Raw = AccountAccountTypeEnum.Raw | string; + export type Raw = string | AccountAccountTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountClassification.ts b/src/serialization/resources/accounting/types/AccountClassification.ts index 6455e111d..313595df3 100644 --- a/src/serialization/resources/accounting/types/AccountClassification.ts +++ b/src/serialization/resources/accounting/types/AccountClassification.ts @@ -10,8 +10,8 @@ import { ClassificationEnum } from "./ClassificationEnum"; export const AccountClassification: core.serialization.Schema< serializers.accounting.AccountClassification.Raw, Merge.accounting.AccountClassification -> = core.serialization.undiscriminatedUnion([ClassificationEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), ClassificationEnum]); export declare namespace AccountClassification { - export type Raw = ClassificationEnum.Raw | string; + export type Raw = string | ClassificationEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountCurrency.ts b/src/serialization/resources/accounting/types/AccountCurrency.ts index b277628de..58efcb0df 100644 --- a/src/serialization/resources/accounting/types/AccountCurrency.ts +++ b/src/serialization/resources/accounting/types/AccountCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const AccountCurrency: core.serialization.Schema< serializers.accounting.AccountCurrency.Raw, Merge.accounting.AccountCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace AccountCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActionsCategory.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActionsCategory.ts index d10690fc3..0e084eb09 100644 --- a/src/serialization/resources/accounting/types/AccountDetailsAndActionsCategory.ts +++ b/src/serialization/resources/accounting/types/AccountDetailsAndActionsCategory.ts @@ -10,8 +10,8 @@ import { CategoryEnum } from "./CategoryEnum"; export const AccountDetailsAndActionsCategory: core.serialization.Schema< serializers.accounting.AccountDetailsAndActionsCategory.Raw, Merge.accounting.AccountDetailsAndActionsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CategoryEnum]); export declare namespace AccountDetailsAndActionsCategory { - export type Raw = CategoryEnum.Raw | string; + export type Raw = string | CategoryEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegration.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegration.ts index a2e5bda8a..9d3e9e790 100644 --- a/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegration.ts +++ b/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegration.ts @@ -5,7 +5,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CategoriesEnum } from "./CategoriesEnum"; +import { AccountDetailsAndActionsIntegrationCategoriesItem } from "./AccountDetailsAndActionsIntegrationCategoriesItem"; import { ModelOperation } from "./ModelOperation"; export const AccountDetailsAndActionsIntegration: core.serialization.ObjectSchema< @@ -13,7 +13,7 @@ export const AccountDetailsAndActionsIntegration: core.serialization.ObjectSchem Merge.accounting.AccountDetailsAndActionsIntegration > = core.serialization.object({ name: core.serialization.string(), - categories: core.serialization.list(CategoriesEnum), + categories: core.serialization.list(AccountDetailsAndActionsIntegrationCategoriesItem.optional()), image: core.serialization.string().optional(), squareImage: core.serialization.property("square_image", core.serialization.string().optional()), color: core.serialization.string(), @@ -28,7 +28,7 @@ export const AccountDetailsAndActionsIntegration: core.serialization.ObjectSchem export declare namespace AccountDetailsAndActionsIntegration { export interface Raw { name: string; - categories: CategoriesEnum.Raw[]; + categories: (AccountDetailsAndActionsIntegrationCategoriesItem.Raw | null | undefined)[]; image?: string | null; square_image?: string | null; color: string; diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegrationCategoriesItem.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegrationCategoriesItem.ts new file mode 100644 index 000000000..b1b1f8a52 --- /dev/null +++ b/src/serialization/resources/accounting/types/AccountDetailsAndActionsIntegrationCategoriesItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { CategoriesEnum } from "./CategoriesEnum"; + +export const AccountDetailsAndActionsIntegrationCategoriesItem: core.serialization.Schema< + serializers.accounting.AccountDetailsAndActionsIntegrationCategoriesItem.Raw, + Merge.accounting.AccountDetailsAndActionsIntegrationCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CategoriesEnum]); + +export declare namespace AccountDetailsAndActionsIntegrationCategoriesItem { + export type Raw = string | CategoriesEnum.Raw; +} diff --git a/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatus.ts b/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatus.ts index 6f27ff1cb..f97b655f2 100644 --- a/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatus.ts +++ b/src/serialization/resources/accounting/types/AccountDetailsAndActionsStatus.ts @@ -10,8 +10,8 @@ import { AccountDetailsAndActionsStatusEnum } from "./AccountDetailsAndActionsSt export const AccountDetailsAndActionsStatus: core.serialization.Schema< serializers.accounting.AccountDetailsAndActionsStatus.Raw, Merge.accounting.AccountDetailsAndActionsStatus -> = core.serialization.undiscriminatedUnion([AccountDetailsAndActionsStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountDetailsAndActionsStatusEnum]); export declare namespace AccountDetailsAndActionsStatus { - export type Raw = AccountDetailsAndActionsStatusEnum.Raw | string; + export type Raw = string | AccountDetailsAndActionsStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountDetailsCategory.ts b/src/serialization/resources/accounting/types/AccountDetailsCategory.ts index 66f4ddb60..a762e6665 100644 --- a/src/serialization/resources/accounting/types/AccountDetailsCategory.ts +++ b/src/serialization/resources/accounting/types/AccountDetailsCategory.ts @@ -10,8 +10,8 @@ import { CategoryEnum } from "./CategoryEnum"; export const AccountDetailsCategory: core.serialization.Schema< serializers.accounting.AccountDetailsCategory.Raw, Merge.accounting.AccountDetailsCategory -> = core.serialization.undiscriminatedUnion([CategoryEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CategoryEnum]); export declare namespace AccountDetailsCategory { - export type Raw = CategoryEnum.Raw | string; + export type Raw = string | CategoryEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountIntegration.ts b/src/serialization/resources/accounting/types/AccountIntegration.ts index d703215a2..df9c3647a 100644 --- a/src/serialization/resources/accounting/types/AccountIntegration.ts +++ b/src/serialization/resources/accounting/types/AccountIntegration.ts @@ -5,7 +5,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { CategoriesEnum } from "./CategoriesEnum"; +import { AccountIntegrationCategoriesItem } from "./AccountIntegrationCategoriesItem"; export const AccountIntegration: core.serialization.ObjectSchema< serializers.accounting.AccountIntegration.Raw, @@ -13,7 +13,7 @@ export const AccountIntegration: core.serialization.ObjectSchema< > = core.serialization.object({ name: core.serialization.string(), abbreviatedName: core.serialization.property("abbreviated_name", core.serialization.string().optional()), - categories: core.serialization.list(CategoriesEnum).optional(), + categories: core.serialization.list(AccountIntegrationCategoriesItem.optional()).optional(), image: core.serialization.string().optional(), squareImage: core.serialization.property("square_image", core.serialization.string().optional()), color: core.serialization.string().optional(), @@ -36,7 +36,7 @@ export declare namespace AccountIntegration { export interface Raw { name: string; abbreviated_name?: string | null; - categories?: CategoriesEnum.Raw[] | null; + categories?: (AccountIntegrationCategoriesItem.Raw | null | undefined)[] | null; image?: string | null; square_image?: string | null; color?: string | null; diff --git a/src/serialization/resources/accounting/types/AccountIntegrationCategoriesItem.ts b/src/serialization/resources/accounting/types/AccountIntegrationCategoriesItem.ts new file mode 100644 index 000000000..b772ef2ce --- /dev/null +++ b/src/serialization/resources/accounting/types/AccountIntegrationCategoriesItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { CategoriesEnum } from "./CategoriesEnum"; + +export const AccountIntegrationCategoriesItem: core.serialization.Schema< + serializers.accounting.AccountIntegrationCategoriesItem.Raw, + Merge.accounting.AccountIntegrationCategoriesItem +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CategoriesEnum]); + +export declare namespace AccountIntegrationCategoriesItem { + export type Raw = string | CategoriesEnum.Raw; +} diff --git a/src/serialization/resources/accounting/types/AccountRequestAccountType.ts b/src/serialization/resources/accounting/types/AccountRequestAccountType.ts index e677d431b..49d4d1f90 100644 --- a/src/serialization/resources/accounting/types/AccountRequestAccountType.ts +++ b/src/serialization/resources/accounting/types/AccountRequestAccountType.ts @@ -10,8 +10,8 @@ import { AccountAccountTypeEnum } from "./AccountAccountTypeEnum"; export const AccountRequestAccountType: core.serialization.Schema< serializers.accounting.AccountRequestAccountType.Raw, Merge.accounting.AccountRequestAccountType -> = core.serialization.undiscriminatedUnion([AccountAccountTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountAccountTypeEnum]); export declare namespace AccountRequestAccountType { - export type Raw = AccountAccountTypeEnum.Raw | string; + export type Raw = string | AccountAccountTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountRequestClassification.ts b/src/serialization/resources/accounting/types/AccountRequestClassification.ts index 97859c26a..2586d7aec 100644 --- a/src/serialization/resources/accounting/types/AccountRequestClassification.ts +++ b/src/serialization/resources/accounting/types/AccountRequestClassification.ts @@ -10,8 +10,8 @@ import { ClassificationEnum } from "./ClassificationEnum"; export const AccountRequestClassification: core.serialization.Schema< serializers.accounting.AccountRequestClassification.Raw, Merge.accounting.AccountRequestClassification -> = core.serialization.undiscriminatedUnion([ClassificationEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), ClassificationEnum]); export declare namespace AccountRequestClassification { - export type Raw = ClassificationEnum.Raw | string; + export type Raw = string | ClassificationEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountRequestCurrency.ts b/src/serialization/resources/accounting/types/AccountRequestCurrency.ts index e5614ed65..b5ab78366 100644 --- a/src/serialization/resources/accounting/types/AccountRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/AccountRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const AccountRequestCurrency: core.serialization.Schema< serializers.accounting.AccountRequestCurrency.Raw, Merge.accounting.AccountRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace AccountRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountRequestStatus.ts b/src/serialization/resources/accounting/types/AccountRequestStatus.ts index 149e2da0e..4ad846393 100644 --- a/src/serialization/resources/accounting/types/AccountRequestStatus.ts +++ b/src/serialization/resources/accounting/types/AccountRequestStatus.ts @@ -10,8 +10,8 @@ import { AccountStatusEnum } from "./AccountStatusEnum"; export const AccountRequestStatus: core.serialization.Schema< serializers.accounting.AccountRequestStatus.Raw, Merge.accounting.AccountRequestStatus -> = core.serialization.undiscriminatedUnion([AccountStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountStatusEnum]); export declare namespace AccountRequestStatus { - export type Raw = AccountStatusEnum.Raw | string; + export type Raw = string | AccountStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountStatus.ts b/src/serialization/resources/accounting/types/AccountStatus.ts index c565c375c..a96051383 100644 --- a/src/serialization/resources/accounting/types/AccountStatus.ts +++ b/src/serialization/resources/accounting/types/AccountStatus.ts @@ -10,8 +10,8 @@ import { AccountStatusEnum } from "./AccountStatusEnum"; export const AccountStatus: core.serialization.Schema< serializers.accounting.AccountStatus.Raw, Merge.accounting.AccountStatus -> = core.serialization.undiscriminatedUnion([AccountStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AccountStatusEnum]); export declare namespace AccountStatus { - export type Raw = AccountStatusEnum.Raw | string; + export type Raw = string | AccountStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AccountingPeriodStatus.ts b/src/serialization/resources/accounting/types/AccountingPeriodStatus.ts index a9e737ead..9fe8ea94d 100644 --- a/src/serialization/resources/accounting/types/AccountingPeriodStatus.ts +++ b/src/serialization/resources/accounting/types/AccountingPeriodStatus.ts @@ -10,8 +10,8 @@ import { Status895Enum } from "./Status895Enum"; export const AccountingPeriodStatus: core.serialization.Schema< serializers.accounting.AccountingPeriodStatus.Raw, Merge.accounting.AccountingPeriodStatus -> = core.serialization.undiscriminatedUnion([Status895Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status895Enum]); export declare namespace AccountingPeriodStatus { - export type Raw = Status895Enum.Raw | string; + export type Raw = string | Status895Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/AddressCountry.ts b/src/serialization/resources/accounting/types/AddressCountry.ts index 1a7dcf406..7b33f5e1b 100644 --- a/src/serialization/resources/accounting/types/AddressCountry.ts +++ b/src/serialization/resources/accounting/types/AddressCountry.ts @@ -10,8 +10,8 @@ import { CountryEnum } from "./CountryEnum"; export const AddressCountry: core.serialization.Schema< serializers.accounting.AddressCountry.Raw, Merge.accounting.AddressCountry -> = core.serialization.undiscriminatedUnion([CountryEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CountryEnum]); export declare namespace AddressCountry { - export type Raw = CountryEnum.Raw | string; + export type Raw = string | CountryEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AddressRequestCountry.ts b/src/serialization/resources/accounting/types/AddressRequestCountry.ts index b67e9c69f..97b66c538 100644 --- a/src/serialization/resources/accounting/types/AddressRequestCountry.ts +++ b/src/serialization/resources/accounting/types/AddressRequestCountry.ts @@ -10,8 +10,8 @@ import { CountryEnum } from "./CountryEnum"; export const AddressRequestCountry: core.serialization.Schema< serializers.accounting.AddressRequestCountry.Raw, Merge.accounting.AddressRequestCountry -> = core.serialization.undiscriminatedUnion([CountryEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CountryEnum]); export declare namespace AddressRequestCountry { - export type Raw = CountryEnum.Raw | string; + export type Raw = string | CountryEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AddressRequestType.ts b/src/serialization/resources/accounting/types/AddressRequestType.ts index 46860a074..7b8e7200e 100644 --- a/src/serialization/resources/accounting/types/AddressRequestType.ts +++ b/src/serialization/resources/accounting/types/AddressRequestType.ts @@ -10,8 +10,8 @@ import { AddressTypeEnum } from "./AddressTypeEnum"; export const AddressRequestType: core.serialization.Schema< serializers.accounting.AddressRequestType.Raw, Merge.accounting.AddressRequestType -> = core.serialization.undiscriminatedUnion([AddressTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AddressTypeEnum]); export declare namespace AddressRequestType { - export type Raw = AddressTypeEnum.Raw | string; + export type Raw = string | AddressTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AddressType.ts b/src/serialization/resources/accounting/types/AddressType.ts index e9b48d789..016133c25 100644 --- a/src/serialization/resources/accounting/types/AddressType.ts +++ b/src/serialization/resources/accounting/types/AddressType.ts @@ -10,8 +10,8 @@ import { AddressTypeEnum } from "./AddressTypeEnum"; export const AddressType: core.serialization.Schema< serializers.accounting.AddressType.Raw, Merge.accounting.AddressType -> = core.serialization.undiscriminatedUnion([AddressTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AddressTypeEnum]); export declare namespace AddressType { - export type Raw = AddressTypeEnum.Raw | string; + export type Raw = string | AddressTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AsyncPostTaskStatus.ts b/src/serialization/resources/accounting/types/AsyncPostTaskStatus.ts index ffb28a639..f1df7f2be 100644 --- a/src/serialization/resources/accounting/types/AsyncPostTaskStatus.ts +++ b/src/serialization/resources/accounting/types/AsyncPostTaskStatus.ts @@ -10,8 +10,8 @@ import { AsyncPostTaskStatusEnum } from "./AsyncPostTaskStatusEnum"; export const AsyncPostTaskStatus: core.serialization.Schema< serializers.accounting.AsyncPostTaskStatus.Raw, Merge.accounting.AsyncPostTaskStatus -> = core.serialization.undiscriminatedUnion([AsyncPostTaskStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), AsyncPostTaskStatusEnum]); export declare namespace AsyncPostTaskStatus { - export type Raw = AsyncPostTaskStatusEnum.Raw | string; + export type Raw = string | AsyncPostTaskStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AuditLogEventEventType.ts b/src/serialization/resources/accounting/types/AuditLogEventEventType.ts index c9c561a7f..a10c49e17 100644 --- a/src/serialization/resources/accounting/types/AuditLogEventEventType.ts +++ b/src/serialization/resources/accounting/types/AuditLogEventEventType.ts @@ -10,8 +10,8 @@ import { EventTypeEnum } from "./EventTypeEnum"; export const AuditLogEventEventType: core.serialization.Schema< serializers.accounting.AuditLogEventEventType.Raw, Merge.accounting.AuditLogEventEventType -> = core.serialization.undiscriminatedUnion([EventTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), EventTypeEnum]); export declare namespace AuditLogEventEventType { - export type Raw = EventTypeEnum.Raw | string; + export type Raw = string | EventTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/AuditLogEventRole.ts b/src/serialization/resources/accounting/types/AuditLogEventRole.ts index 333b63bea..6056915fa 100644 --- a/src/serialization/resources/accounting/types/AuditLogEventRole.ts +++ b/src/serialization/resources/accounting/types/AuditLogEventRole.ts @@ -10,8 +10,8 @@ import { RoleEnum } from "./RoleEnum"; export const AuditLogEventRole: core.serialization.Schema< serializers.accounting.AuditLogEventRole.Raw, Merge.accounting.AuditLogEventRole -> = core.serialization.undiscriminatedUnion([RoleEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), RoleEnum]); export declare namespace AuditLogEventRole { - export type Raw = RoleEnum.Raw | string; + export type Raw = string | RoleEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts b/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts index fba146558..98273a3cb 100644 --- a/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts +++ b/src/serialization/resources/accounting/types/BalanceSheetCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const BalanceSheetCurrency: core.serialization.Schema< serializers.accounting.BalanceSheetCurrency.Raw, Merge.accounting.BalanceSheetCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace BalanceSheetCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BankFeedAccountAccountType.ts b/src/serialization/resources/accounting/types/BankFeedAccountAccountType.ts index e32497639..11fdf68b2 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccountAccountType.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccountAccountType.ts @@ -10,8 +10,8 @@ import { BankFeedAccountAccountTypeEnum } from "./BankFeedAccountAccountTypeEnum export const BankFeedAccountAccountType: core.serialization.Schema< serializers.accounting.BankFeedAccountAccountType.Raw, Merge.accounting.BankFeedAccountAccountType -> = core.serialization.undiscriminatedUnion([BankFeedAccountAccountTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), BankFeedAccountAccountTypeEnum]); export declare namespace BankFeedAccountAccountType { - export type Raw = BankFeedAccountAccountTypeEnum.Raw | string; + export type Raw = string | BankFeedAccountAccountTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts b/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts index 01d0588f4..cae63a96c 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccountCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const BankFeedAccountCurrency: core.serialization.Schema< serializers.accounting.BankFeedAccountCurrency.Raw, Merge.accounting.BankFeedAccountCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace BankFeedAccountCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BankFeedAccountFeedStatus.ts b/src/serialization/resources/accounting/types/BankFeedAccountFeedStatus.ts index 4ca9b0ac4..2e9bfff4a 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccountFeedStatus.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccountFeedStatus.ts @@ -10,8 +10,8 @@ import { FeedStatusEnum } from "./FeedStatusEnum"; export const BankFeedAccountFeedStatus: core.serialization.Schema< serializers.accounting.BankFeedAccountFeedStatus.Raw, Merge.accounting.BankFeedAccountFeedStatus -> = core.serialization.undiscriminatedUnion([FeedStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), FeedStatusEnum]); export declare namespace BankFeedAccountFeedStatus { - export type Raw = FeedStatusEnum.Raw | string; + export type Raw = string | FeedStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BankFeedAccountRequestAccountType.ts b/src/serialization/resources/accounting/types/BankFeedAccountRequestAccountType.ts index 56814b427..82f058db8 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccountRequestAccountType.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccountRequestAccountType.ts @@ -10,8 +10,8 @@ import { BankFeedAccountAccountTypeEnum } from "./BankFeedAccountAccountTypeEnum export const BankFeedAccountRequestAccountType: core.serialization.Schema< serializers.accounting.BankFeedAccountRequestAccountType.Raw, Merge.accounting.BankFeedAccountRequestAccountType -> = core.serialization.undiscriminatedUnion([BankFeedAccountAccountTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), BankFeedAccountAccountTypeEnum]); export declare namespace BankFeedAccountRequestAccountType { - export type Raw = BankFeedAccountAccountTypeEnum.Raw | string; + export type Raw = string | BankFeedAccountAccountTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts b/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts index cbe60f62f..6467f977d 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccountRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const BankFeedAccountRequestCurrency: core.serialization.Schema< serializers.accounting.BankFeedAccountRequestCurrency.Raw, Merge.accounting.BankFeedAccountRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace BankFeedAccountRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts b/src/serialization/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts index e33f7615e..d7ed6f9db 100644 --- a/src/serialization/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts +++ b/src/serialization/resources/accounting/types/BankFeedAccountRequestFeedStatus.ts @@ -10,8 +10,8 @@ import { FeedStatusEnum } from "./FeedStatusEnum"; export const BankFeedAccountRequestFeedStatus: core.serialization.Schema< serializers.accounting.BankFeedAccountRequestFeedStatus.Raw, Merge.accounting.BankFeedAccountRequestFeedStatus -> = core.serialization.undiscriminatedUnion([FeedStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), FeedStatusEnum]); export declare namespace BankFeedAccountRequestFeedStatus { - export type Raw = FeedStatusEnum.Raw | string; + export type Raw = string | FeedStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts b/src/serialization/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts index dc417b8f3..5dbd454cf 100644 --- a/src/serialization/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts +++ b/src/serialization/resources/accounting/types/BankFeedTransactionCreditOrDebit.ts @@ -10,8 +10,8 @@ import { CreditOrDebitEnum } from "./CreditOrDebitEnum"; export const BankFeedTransactionCreditOrDebit: core.serialization.Schema< serializers.accounting.BankFeedTransactionCreditOrDebit.Raw, Merge.accounting.BankFeedTransactionCreditOrDebit -> = core.serialization.undiscriminatedUnion([CreditOrDebitEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditOrDebitEnum]); export declare namespace BankFeedTransactionCreditOrDebit { - export type Raw = CreditOrDebitEnum.Raw | string; + export type Raw = string | CreditOrDebitEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts b/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts index a28488e20..59e4500f7 100644 --- a/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts +++ b/src/serialization/resources/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.ts @@ -10,8 +10,8 @@ import { CreditOrDebitEnum } from "./CreditOrDebitEnum"; export const BankFeedTransactionRequestRequestCreditOrDebit: core.serialization.Schema< serializers.accounting.BankFeedTransactionRequestRequestCreditOrDebit.Raw, Merge.accounting.BankFeedTransactionRequestRequestCreditOrDebit -> = core.serialization.undiscriminatedUnion([CreditOrDebitEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditOrDebitEnum]); export declare namespace BankFeedTransactionRequestRequestCreditOrDebit { - export type Raw = CreditOrDebitEnum.Raw | string; + export type Raw = string | CreditOrDebitEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts b/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts index ede4f5de0..10573da69 100644 --- a/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts +++ b/src/serialization/resources/accounting/types/CashFlowStatementCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const CashFlowStatementCurrency: core.serialization.Schema< serializers.accounting.CashFlowStatementCurrency.Raw, Merge.accounting.CashFlowStatementCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace CashFlowStatementCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts b/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts index 84f2a5f0b..5c1b3003b 100644 --- a/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts +++ b/src/serialization/resources/accounting/types/CompanyInfoCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const CompanyInfoCurrency: core.serialization.Schema< serializers.accounting.CompanyInfoCurrency.Raw, Merge.accounting.CompanyInfoCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace CompanyInfoCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/ContactRequestStatus.ts b/src/serialization/resources/accounting/types/ContactRequestStatus.ts index d261d3dc5..c12dd79cb 100644 --- a/src/serialization/resources/accounting/types/ContactRequestStatus.ts +++ b/src/serialization/resources/accounting/types/ContactRequestStatus.ts @@ -10,8 +10,8 @@ import { Status7D1Enum } from "./Status7D1Enum"; export const ContactRequestStatus: core.serialization.Schema< serializers.accounting.ContactRequestStatus.Raw, Merge.accounting.ContactRequestStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status7D1Enum]); export declare namespace ContactRequestStatus { - export type Raw = Status7D1Enum.Raw | string; + export type Raw = string | Status7D1Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/ContactStatus.ts b/src/serialization/resources/accounting/types/ContactStatus.ts index efe3a2cf3..7950845fd 100644 --- a/src/serialization/resources/accounting/types/ContactStatus.ts +++ b/src/serialization/resources/accounting/types/ContactStatus.ts @@ -10,8 +10,8 @@ import { Status7D1Enum } from "./Status7D1Enum"; export const ContactStatus: core.serialization.Schema< serializers.accounting.ContactStatus.Raw, Merge.accounting.ContactStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status7D1Enum]); export declare namespace ContactStatus { - export type Raw = Status7D1Enum.Raw | string; + export type Raw = string | Status7D1Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/CreditNoteCurrency.ts b/src/serialization/resources/accounting/types/CreditNoteCurrency.ts index 288b0ad58..84c6b72bf 100644 --- a/src/serialization/resources/accounting/types/CreditNoteCurrency.ts +++ b/src/serialization/resources/accounting/types/CreditNoteCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const CreditNoteCurrency: core.serialization.Schema< serializers.accounting.CreditNoteCurrency.Raw, Merge.accounting.CreditNoteCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace CreditNoteCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts b/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts index 29fdc8533..56991598d 100644 --- a/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts +++ b/src/serialization/resources/accounting/types/CreditNoteLineItemRequestProject.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { Contact } from "./Contact"; +import { Project } from "./Project"; export const CreditNoteLineItemRequestProject: core.serialization.Schema< serializers.accounting.CreditNoteLineItemRequestProject.Raw, Merge.accounting.CreditNoteLineItemRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); export declare namespace CreditNoteLineItemRequestProject { - export type Raw = string | Contact.Raw; + export type Raw = string | Project.Raw; } diff --git a/src/serialization/resources/accounting/types/CreditNotePaymentsItem.ts b/src/serialization/resources/accounting/types/CreditNotePaymentsItem.ts index 73e447973..48003e694 100644 --- a/src/serialization/resources/accounting/types/CreditNotePaymentsItem.ts +++ b/src/serialization/resources/accounting/types/CreditNotePaymentsItem.ts @@ -10,8 +10,8 @@ import { Payment } from "./Payment"; export const CreditNotePaymentsItem: core.serialization.Schema< serializers.accounting.CreditNotePaymentsItem.Raw, Merge.accounting.CreditNotePaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); +> = core.serialization.undiscriminatedUnion([Payment, core.serialization.string()]); export declare namespace CreditNotePaymentsItem { - export type Raw = string | Payment.Raw; + export type Raw = Payment.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts b/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts index 68d962c0b..5036618d1 100644 --- a/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/CreditNoteRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const CreditNoteRequestCurrency: core.serialization.Schema< serializers.accounting.CreditNoteRequestCurrency.Raw, Merge.accounting.CreditNoteRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace CreditNoteRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.ts index eda14bf89..3ae544166 100644 --- a/src/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.ts +++ b/src/serialization/resources/accounting/types/CreditNoteRequestPaymentsItem.ts @@ -10,8 +10,8 @@ import { Payment } from "./Payment"; export const CreditNoteRequestPaymentsItem: core.serialization.Schema< serializers.accounting.CreditNoteRequestPaymentsItem.Raw, Merge.accounting.CreditNoteRequestPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); +> = core.serialization.undiscriminatedUnion([Payment, core.serialization.string()]); export declare namespace CreditNoteRequestPaymentsItem { - export type Raw = string | Payment.Raw; + export type Raw = Payment.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestStatus.ts b/src/serialization/resources/accounting/types/CreditNoteRequestStatus.ts index a32f726ae..655ca594b 100644 --- a/src/serialization/resources/accounting/types/CreditNoteRequestStatus.ts +++ b/src/serialization/resources/accounting/types/CreditNoteRequestStatus.ts @@ -10,8 +10,8 @@ import { CreditNoteStatusEnum } from "./CreditNoteStatusEnum"; export const CreditNoteRequestStatus: core.serialization.Schema< serializers.accounting.CreditNoteRequestStatus.Raw, Merge.accounting.CreditNoteRequestStatus -> = core.serialization.undiscriminatedUnion([CreditNoteStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditNoteStatusEnum]); export declare namespace CreditNoteRequestStatus { - export type Raw = CreditNoteStatusEnum.Raw | string; + export type Raw = string | CreditNoteStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts index 899aedb01..2d3fc5c04 100644 --- a/src/serialization/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/CreditNoteRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const CreditNoteRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.CreditNoteRequestTrackingCategoriesItem.Raw, Merge.accounting.CreditNoteRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace CreditNoteRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/CreditNoteStatus.ts b/src/serialization/resources/accounting/types/CreditNoteStatus.ts index 0a94e4183..5bbcb1804 100644 --- a/src/serialization/resources/accounting/types/CreditNoteStatus.ts +++ b/src/serialization/resources/accounting/types/CreditNoteStatus.ts @@ -10,8 +10,8 @@ import { CreditNoteStatusEnum } from "./CreditNoteStatusEnum"; export const CreditNoteStatus: core.serialization.Schema< serializers.accounting.CreditNoteStatus.Raw, Merge.accounting.CreditNoteStatus -> = core.serialization.undiscriminatedUnion([CreditNoteStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CreditNoteStatusEnum]); export declare namespace CreditNoteStatus { - export type Raw = CreditNoteStatusEnum.Raw | string; + export type Raw = string | CreditNoteStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts index 00bfbe0ce..67446e2d1 100644 --- a/src/serialization/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/CreditNoteTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const CreditNoteTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.CreditNoteTrackingCategoriesItem.Raw, Merge.accounting.CreditNoteTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace CreditNoteTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts b/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts index c35dc150e..921643e9a 100644 --- a/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts +++ b/src/serialization/resources/accounting/types/DataPassthroughRequestMethod.ts @@ -10,8 +10,8 @@ import { MethodEnum } from "./MethodEnum"; export const DataPassthroughRequestMethod: core.serialization.Schema< serializers.accounting.DataPassthroughRequestMethod.Raw, Merge.accounting.DataPassthroughRequestMethod -> = core.serialization.undiscriminatedUnion([MethodEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), MethodEnum]); export declare namespace DataPassthroughRequestMethod { - export type Raw = MethodEnum.Raw | string; + export type Raw = string | MethodEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/EmployeeStatus.ts b/src/serialization/resources/accounting/types/EmployeeStatus.ts index f3689f988..a19047ad0 100644 --- a/src/serialization/resources/accounting/types/EmployeeStatus.ts +++ b/src/serialization/resources/accounting/types/EmployeeStatus.ts @@ -10,8 +10,8 @@ import { Status895Enum } from "./Status895Enum"; export const EmployeeStatus: core.serialization.Schema< serializers.accounting.EmployeeStatus.Raw, Merge.accounting.EmployeeStatus -> = core.serialization.undiscriminatedUnion([Status895Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status895Enum]); export declare namespace EmployeeStatus { - export type Raw = Status895Enum.Raw | string; + export type Raw = string | Status895Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseCurrency.ts b/src/serialization/resources/accounting/types/ExpenseCurrency.ts index c0c34c9f0..d5894333e 100644 --- a/src/serialization/resources/accounting/types/ExpenseCurrency.ts +++ b/src/serialization/resources/accounting/types/ExpenseCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseCurrency: core.serialization.Schema< serializers.accounting.ExpenseCurrency.Raw, Merge.accounting.ExpenseCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace ExpenseCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts b/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts index c8f74d663..50ac3cb5a 100644 --- a/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts +++ b/src/serialization/resources/accounting/types/ExpenseLineCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseLineCurrency: core.serialization.Schema< serializers.accounting.ExpenseLineCurrency.Raw, Merge.accounting.ExpenseLineCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace ExpenseLineCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts index 41a766e4f..6b7ba881a 100644 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/ExpenseLineRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseLineRequestCurrency: core.serialization.Schema< serializers.accounting.ExpenseLineRequestCurrency.Raw, Merge.accounting.ExpenseLineRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace ExpenseLineRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts index 771a09233..af1c9e247 100644 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts +++ b/src/serialization/resources/accounting/types/ExpenseLineRequestProject.ts @@ -5,13 +5,13 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; -import { Contact } from "./Contact"; +import { Project } from "./Project"; export const ExpenseLineRequestProject: core.serialization.Schema< serializers.accounting.ExpenseLineRequestProject.Raw, Merge.accounting.ExpenseLineRequestProject -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Contact]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Project]); export declare namespace ExpenseLineRequestProject { - export type Raw = string | Contact.Raw; + export type Raw = string | Project.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts index 93c3caf87..c65d0a0ee 100644 --- a/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/ExpenseLineRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const ExpenseLineRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.ExpenseLineRequestTrackingCategoriesItem.Raw, Merge.accounting.ExpenseLineRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace ExpenseLineRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts index 41e7d8f1b..9f80dbe60 100644 --- a/src/serialization/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/ExpenseLineTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const ExpenseLineTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.ExpenseLineTrackingCategoriesItem.Raw, Merge.accounting.ExpenseLineTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace ExpenseLineTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/ExpenseReport.ts b/src/serialization/resources/accounting/types/ExpenseReport.ts index 785230520..fe3d981e9 100644 --- a/src/serialization/resources/accounting/types/ExpenseReport.ts +++ b/src/serialization/resources/accounting/types/ExpenseReport.ts @@ -7,7 +7,7 @@ import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; import { ExpenseReportStatus } from "./ExpenseReportStatus"; import { ExpenseReportLine } from "./ExpenseReportLine"; -import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; +import { ExpenseReportCurrency } from "./ExpenseReportCurrency"; import { ExpenseReportCompany } from "./ExpenseReportCompany"; import { RemoteData } from "./RemoteData"; import { RemoteField } from "./RemoteField"; @@ -26,7 +26,7 @@ export const ExpenseReport: core.serialization.ObjectSchema< status: ExpenseReportStatus.optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), lines: core.serialization.list(ExpenseReportLine).optional(), - currency: TransactionCurrencyEnum.optional(), + currency: ExpenseReportCurrency.optional(), description: core.serialization.string().optional(), accountingPeriod: core.serialization.property("accounting_period", core.serialization.string().optional()), company: ExpenseReportCompany.optional(), @@ -55,7 +55,7 @@ export declare namespace ExpenseReport { status?: ExpenseReportStatus.Raw | null; total_amount?: number | null; lines?: ExpenseReportLine.Raw[] | null; - currency?: TransactionCurrencyEnum.Raw | null; + currency?: ExpenseReportCurrency.Raw | null; description?: string | null; accounting_period?: string | null; company?: ExpenseReportCompany.Raw | null; diff --git a/src/serialization/resources/accounting/types/ExpenseReportCurrency.ts b/src/serialization/resources/accounting/types/ExpenseReportCurrency.ts new file mode 100644 index 000000000..7f537664b --- /dev/null +++ b/src/serialization/resources/accounting/types/ExpenseReportCurrency.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; + +export const ExpenseReportCurrency: core.serialization.Schema< + serializers.accounting.ExpenseReportCurrency.Raw, + Merge.accounting.ExpenseReportCurrency +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); + +export declare namespace ExpenseReportCurrency { + export type Raw = string | TransactionCurrencyEnum.Raw; +} diff --git a/src/serialization/resources/accounting/types/ExpenseReportStatus.ts b/src/serialization/resources/accounting/types/ExpenseReportStatus.ts index af650c3f4..c59c380ad 100644 --- a/src/serialization/resources/accounting/types/ExpenseReportStatus.ts +++ b/src/serialization/resources/accounting/types/ExpenseReportStatus.ts @@ -10,8 +10,8 @@ import { ExpenseReportStatusEnum } from "./ExpenseReportStatusEnum"; export const ExpenseReportStatus: core.serialization.Schema< serializers.accounting.ExpenseReportStatus.Raw, Merge.accounting.ExpenseReportStatus -> = core.serialization.undiscriminatedUnion([ExpenseReportStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), ExpenseReportStatusEnum]); export declare namespace ExpenseReportStatus { - export type Raw = ExpenseReportStatusEnum.Raw | string; + export type Raw = string | ExpenseReportStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts b/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts index de888e7cf..82a7adbc3 100644 --- a/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/ExpenseRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const ExpenseRequestCurrency: core.serialization.Schema< serializers.accounting.ExpenseRequestCurrency.Raw, Merge.accounting.ExpenseRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace ExpenseRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts index 8093a7327..4380769d0 100644 --- a/src/serialization/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/ExpenseRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const ExpenseRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.ExpenseRequestTrackingCategoriesItem.Raw, Merge.accounting.ExpenseRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace ExpenseRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/ExpenseTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/ExpenseTrackingCategoriesItem.ts index 0ffd8e77c..589f9e98c 100644 --- a/src/serialization/resources/accounting/types/ExpenseTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/ExpenseTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const ExpenseTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.ExpenseTrackingCategoriesItem.Raw, Merge.accounting.ExpenseTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace ExpenseTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts index 3f2f59f2c..eb46e45db 100644 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineBaseCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const GeneralLedgerTransactionLineBaseCurrency: core.serialization.Schema< serializers.accounting.GeneralLedgerTransactionLineBaseCurrency.Raw, Merge.accounting.GeneralLedgerTransactionLineBaseCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace GeneralLedgerTransactionLineBaseCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts index 7969d07a8..7ef95d090 100644 --- a/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts +++ b/src/serialization/resources/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const GeneralLedgerTransactionLineTransactionCurrency: core.serialization.Schema< serializers.accounting.GeneralLedgerTransactionLineTransactionCurrency.Raw, Merge.accounting.GeneralLedgerTransactionLineTransactionCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace GeneralLedgerTransactionLineTransactionCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts b/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts index 72b8b51d3..e1822193c 100644 --- a/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts +++ b/src/serialization/resources/accounting/types/IncomeStatementCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const IncomeStatementCurrency: core.serialization.Schema< serializers.accounting.IncomeStatementCurrency.Raw, Merge.accounting.IncomeStatementCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace IncomeStatementCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/InvoiceCurrency.ts b/src/serialization/resources/accounting/types/InvoiceCurrency.ts index f3a40f4f4..72178db16 100644 --- a/src/serialization/resources/accounting/types/InvoiceCurrency.ts +++ b/src/serialization/resources/accounting/types/InvoiceCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const InvoiceCurrency: core.serialization.Schema< serializers.accounting.InvoiceCurrency.Raw, Merge.accounting.InvoiceCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace InvoiceCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts b/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts index 7e9bf50c8..13cd1a936 100644 --- a/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts +++ b/src/serialization/resources/accounting/types/InvoiceLineItemCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const InvoiceLineItemCurrency: core.serialization.Schema< serializers.accounting.InvoiceLineItemCurrency.Raw, Merge.accounting.InvoiceLineItemCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace InvoiceLineItemCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts index 4be7b0bf2..a6b8a7d53 100644 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/InvoiceLineItemRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const InvoiceLineItemRequestCurrency: core.serialization.Schema< serializers.accounting.InvoiceLineItemRequestCurrency.Raw, Merge.accounting.InvoiceLineItemRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace InvoiceLineItemRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts index 87daa2966..beb7db6dd 100644 --- a/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/InvoiceLineItemRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const InvoiceLineItemRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.InvoiceLineItemRequestTrackingCategoriesItem.Raw, Merge.accounting.InvoiceLineItemRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace InvoiceLineItemRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts b/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts index 98d46ce0c..f91371051 100644 --- a/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/InvoiceRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const InvoiceRequestCurrency: core.serialization.Schema< serializers.accounting.InvoiceRequestCurrency.Raw, Merge.accounting.InvoiceRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace InvoiceRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.ts b/src/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.ts index a29451bfd..16a8f643f 100644 --- a/src/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.ts +++ b/src/serialization/resources/accounting/types/InvoiceRequestPaymentsItem.ts @@ -10,8 +10,8 @@ import { Payment } from "./Payment"; export const InvoiceRequestPaymentsItem: core.serialization.Schema< serializers.accounting.InvoiceRequestPaymentsItem.Raw, Merge.accounting.InvoiceRequestPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); +> = core.serialization.undiscriminatedUnion([Payment, core.serialization.string()]); export declare namespace InvoiceRequestPaymentsItem { - export type Raw = string | Payment.Raw; + export type Raw = Payment.Raw | string; } diff --git a/src/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts b/src/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts index f6b3100f5..a78cdd307 100644 --- a/src/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts +++ b/src/serialization/resources/accounting/types/InvoiceRequestPurchaseOrdersItem.ts @@ -10,8 +10,8 @@ import { PurchaseOrder } from "./PurchaseOrder"; export const InvoiceRequestPurchaseOrdersItem: core.serialization.Schema< serializers.accounting.InvoiceRequestPurchaseOrdersItem.Raw, Merge.accounting.InvoiceRequestPurchaseOrdersItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), PurchaseOrder]); +> = core.serialization.undiscriminatedUnion([PurchaseOrder, core.serialization.string()]); export declare namespace InvoiceRequestPurchaseOrdersItem { - export type Raw = string | PurchaseOrder.Raw; + export type Raw = PurchaseOrder.Raw | string; } diff --git a/src/serialization/resources/accounting/types/InvoiceRequestStatus.ts b/src/serialization/resources/accounting/types/InvoiceRequestStatus.ts index 773353e16..3946f42bd 100644 --- a/src/serialization/resources/accounting/types/InvoiceRequestStatus.ts +++ b/src/serialization/resources/accounting/types/InvoiceRequestStatus.ts @@ -10,8 +10,8 @@ import { InvoiceStatusEnum } from "./InvoiceStatusEnum"; export const InvoiceRequestStatus: core.serialization.Schema< serializers.accounting.InvoiceRequestStatus.Raw, Merge.accounting.InvoiceRequestStatus -> = core.serialization.undiscriminatedUnion([InvoiceStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), InvoiceStatusEnum]); export declare namespace InvoiceRequestStatus { - export type Raw = InvoiceStatusEnum.Raw | string; + export type Raw = string | InvoiceStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts index eb8a991d6..a92893148 100644 --- a/src/serialization/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/InvoiceRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const InvoiceRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.InvoiceRequestTrackingCategoriesItem.Raw, Merge.accounting.InvoiceRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace InvoiceRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/InvoiceRequestType.ts b/src/serialization/resources/accounting/types/InvoiceRequestType.ts index b9d1fedd5..49dc51973 100644 --- a/src/serialization/resources/accounting/types/InvoiceRequestType.ts +++ b/src/serialization/resources/accounting/types/InvoiceRequestType.ts @@ -10,8 +10,8 @@ import { InvoiceTypeEnum } from "./InvoiceTypeEnum"; export const InvoiceRequestType: core.serialization.Schema< serializers.accounting.InvoiceRequestType.Raw, Merge.accounting.InvoiceRequestType -> = core.serialization.undiscriminatedUnion([InvoiceTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), InvoiceTypeEnum]); export declare namespace InvoiceRequestType { - export type Raw = InvoiceTypeEnum.Raw | string; + export type Raw = string | InvoiceTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/IssueStatus.ts b/src/serialization/resources/accounting/types/IssueStatus.ts index 86813fcb2..c053a2adc 100644 --- a/src/serialization/resources/accounting/types/IssueStatus.ts +++ b/src/serialization/resources/accounting/types/IssueStatus.ts @@ -10,8 +10,8 @@ import { IssueStatusEnum } from "./IssueStatusEnum"; export const IssueStatus: core.serialization.Schema< serializers.accounting.IssueStatus.Raw, Merge.accounting.IssueStatus -> = core.serialization.undiscriminatedUnion([IssueStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), IssueStatusEnum]); export declare namespace IssueStatus { - export type Raw = IssueStatusEnum.Raw | string; + export type Raw = string | IssueStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestStatus.ts b/src/serialization/resources/accounting/types/ItemRequestRequestStatus.ts index f7f42c83f..1179d9471 100644 --- a/src/serialization/resources/accounting/types/ItemRequestRequestStatus.ts +++ b/src/serialization/resources/accounting/types/ItemRequestRequestStatus.ts @@ -10,8 +10,8 @@ import { Status7D1Enum } from "./Status7D1Enum"; export const ItemRequestRequestStatus: core.serialization.Schema< serializers.accounting.ItemRequestRequestStatus.Raw, Merge.accounting.ItemRequestRequestStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status7D1Enum]); export declare namespace ItemRequestRequestStatus { - export type Raw = Status7D1Enum.Raw | string; + export type Raw = string | Status7D1Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/ItemRequestRequestType.ts b/src/serialization/resources/accounting/types/ItemRequestRequestType.ts index f492e33e1..a50168fb1 100644 --- a/src/serialization/resources/accounting/types/ItemRequestRequestType.ts +++ b/src/serialization/resources/accounting/types/ItemRequestRequestType.ts @@ -10,8 +10,8 @@ import { Type2BbEnum } from "./Type2BbEnum"; export const ItemRequestRequestType: core.serialization.Schema< serializers.accounting.ItemRequestRequestType.Raw, Merge.accounting.ItemRequestRequestType -> = core.serialization.undiscriminatedUnion([Type2BbEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Type2BbEnum]); export declare namespace ItemRequestRequestType { - export type Raw = Type2BbEnum.Raw | string; + export type Raw = string | Type2BbEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/ItemStatus.ts b/src/serialization/resources/accounting/types/ItemStatus.ts index 4ec9f5bd7..2a60589e8 100644 --- a/src/serialization/resources/accounting/types/ItemStatus.ts +++ b/src/serialization/resources/accounting/types/ItemStatus.ts @@ -8,8 +8,8 @@ import * as core from "../../../../core"; import { Status7D1Enum } from "./Status7D1Enum"; export const ItemStatus: core.serialization.Schema = - core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); + core.serialization.undiscriminatedUnion([core.serialization.string(), Status7D1Enum]); export declare namespace ItemStatus { - export type Raw = Status7D1Enum.Raw | string; + export type Raw = string | Status7D1Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/ItemType.ts b/src/serialization/resources/accounting/types/ItemType.ts index 597e6f99e..20fcc3d36 100644 --- a/src/serialization/resources/accounting/types/ItemType.ts +++ b/src/serialization/resources/accounting/types/ItemType.ts @@ -8,8 +8,8 @@ import * as core from "../../../../core"; import { Type2BbEnum } from "./Type2BbEnum"; export const ItemType: core.serialization.Schema = - core.serialization.undiscriminatedUnion([Type2BbEnum, core.serialization.string()]); + core.serialization.undiscriminatedUnion([core.serialization.string(), Type2BbEnum]); export declare namespace ItemType { - export type Raw = Type2BbEnum.Raw | string; + export type Raw = string | Type2BbEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/JournalEntryCurrency.ts b/src/serialization/resources/accounting/types/JournalEntryCurrency.ts index 646c92079..b92a5ebfb 100644 --- a/src/serialization/resources/accounting/types/JournalEntryCurrency.ts +++ b/src/serialization/resources/accounting/types/JournalEntryCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const JournalEntryCurrency: core.serialization.Schema< serializers.accounting.JournalEntryCurrency.Raw, Merge.accounting.JournalEntryCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace JournalEntryCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/JournalEntryPaymentsItem.ts b/src/serialization/resources/accounting/types/JournalEntryPaymentsItem.ts index 509ce48f4..4d598d145 100644 --- a/src/serialization/resources/accounting/types/JournalEntryPaymentsItem.ts +++ b/src/serialization/resources/accounting/types/JournalEntryPaymentsItem.ts @@ -10,8 +10,8 @@ import { Payment } from "./Payment"; export const JournalEntryPaymentsItem: core.serialization.Schema< serializers.accounting.JournalEntryPaymentsItem.Raw, Merge.accounting.JournalEntryPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); +> = core.serialization.undiscriminatedUnion([Payment, core.serialization.string()]); export declare namespace JournalEntryPaymentsItem { - export type Raw = string | Payment.Raw; + export type Raw = Payment.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalEntryPostingStatus.ts b/src/serialization/resources/accounting/types/JournalEntryPostingStatus.ts index dd2a9954b..d449c1b01 100644 --- a/src/serialization/resources/accounting/types/JournalEntryPostingStatus.ts +++ b/src/serialization/resources/accounting/types/JournalEntryPostingStatus.ts @@ -10,8 +10,8 @@ import { PostingStatusEnum } from "./PostingStatusEnum"; export const JournalEntryPostingStatus: core.serialization.Schema< serializers.accounting.JournalEntryPostingStatus.Raw, Merge.accounting.JournalEntryPostingStatus -> = core.serialization.undiscriminatedUnion([PostingStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PostingStatusEnum]); export declare namespace JournalEntryPostingStatus { - export type Raw = PostingStatusEnum.Raw | string; + export type Raw = string | PostingStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts b/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts index a6aab7ac9..6f5aa52bc 100644 --- a/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/JournalEntryRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const JournalEntryRequestCurrency: core.serialization.Schema< serializers.accounting.JournalEntryRequestCurrency.Raw, Merge.accounting.JournalEntryRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace JournalEntryRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.ts b/src/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.ts index fbbeab74a..321fc7652 100644 --- a/src/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.ts +++ b/src/serialization/resources/accounting/types/JournalEntryRequestPaymentsItem.ts @@ -10,8 +10,8 @@ import { Payment } from "./Payment"; export const JournalEntryRequestPaymentsItem: core.serialization.Schema< serializers.accounting.JournalEntryRequestPaymentsItem.Raw, Merge.accounting.JournalEntryRequestPaymentsItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), Payment]); +> = core.serialization.undiscriminatedUnion([Payment, core.serialization.string()]); export declare namespace JournalEntryRequestPaymentsItem { - export type Raw = string | Payment.Raw; + export type Raw = Payment.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestPostingStatus.ts b/src/serialization/resources/accounting/types/JournalEntryRequestPostingStatus.ts index 8ab2abfd4..4872142f3 100644 --- a/src/serialization/resources/accounting/types/JournalEntryRequestPostingStatus.ts +++ b/src/serialization/resources/accounting/types/JournalEntryRequestPostingStatus.ts @@ -10,8 +10,8 @@ import { PostingStatusEnum } from "./PostingStatusEnum"; export const JournalEntryRequestPostingStatus: core.serialization.Schema< serializers.accounting.JournalEntryRequestPostingStatus.Raw, Merge.accounting.JournalEntryRequestPostingStatus -> = core.serialization.undiscriminatedUnion([PostingStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PostingStatusEnum]); export declare namespace JournalEntryRequestPostingStatus { - export type Raw = PostingStatusEnum.Raw | string; + export type Raw = string | PostingStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts index 2f27a98f0..68fcbbac2 100644 --- a/src/serialization/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/JournalEntryRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const JournalEntryRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.JournalEntryRequestTrackingCategoriesItem.Raw, Merge.accounting.JournalEntryRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace JournalEntryRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts index 883665e50..59eea3924 100644 --- a/src/serialization/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/JournalEntryTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const JournalEntryTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.JournalEntryTrackingCategoriesItem.Raw, Merge.accounting.JournalEntryTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace JournalEntryTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalLineCurrency.ts b/src/serialization/resources/accounting/types/JournalLineCurrency.ts index 3933c4a10..47d5dff29 100644 --- a/src/serialization/resources/accounting/types/JournalLineCurrency.ts +++ b/src/serialization/resources/accounting/types/JournalLineCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const JournalLineCurrency: core.serialization.Schema< serializers.accounting.JournalLineCurrency.Raw, Merge.accounting.JournalLineCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace JournalLineCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts b/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts index 9835d5623..abc8e36de 100644 --- a/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/JournalLineRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const JournalLineRequestCurrency: core.serialization.Schema< serializers.accounting.JournalLineRequestCurrency.Raw, Merge.accounting.JournalLineRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace JournalLineRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts index e95f3999f..d82de0643 100644 --- a/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/JournalLineRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const JournalLineRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.JournalLineRequestTrackingCategoriesItem.Raw, Merge.accounting.JournalLineRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace JournalLineRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/JournalLineTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/JournalLineTrackingCategoriesItem.ts index ff392bdb8..06dcd72d3 100644 --- a/src/serialization/resources/accounting/types/JournalLineTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/JournalLineTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const JournalLineTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.JournalLineTrackingCategoriesItem.Raw, Merge.accounting.JournalLineTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace JournalLineTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/MultipartFormFieldRequestEncoding.ts b/src/serialization/resources/accounting/types/MultipartFormFieldRequestEncoding.ts index 9c35798ba..4dbb57f74 100644 --- a/src/serialization/resources/accounting/types/MultipartFormFieldRequestEncoding.ts +++ b/src/serialization/resources/accounting/types/MultipartFormFieldRequestEncoding.ts @@ -10,8 +10,8 @@ import { EncodingEnum } from "./EncodingEnum"; export const MultipartFormFieldRequestEncoding: core.serialization.Schema< serializers.accounting.MultipartFormFieldRequestEncoding.Raw, Merge.accounting.MultipartFormFieldRequestEncoding -> = core.serialization.undiscriminatedUnion([EncodingEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), EncodingEnum]); export declare namespace MultipartFormFieldRequestEncoding { - export type Raw = EncodingEnum.Raw | string; + export type Raw = string | EncodingEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PatchedContactRequest.ts b/src/serialization/resources/accounting/types/PatchedContactRequest.ts index c00fd57c4..960a41cfa 100644 --- a/src/serialization/resources/accounting/types/PatchedContactRequest.ts +++ b/src/serialization/resources/accounting/types/PatchedContactRequest.ts @@ -5,6 +5,7 @@ import * as serializers from "../../../index"; import * as Merge from "../../../../api/index"; import * as core from "../../../../core"; +import { PatchedContactRequestStatus } from "./PatchedContactRequestStatus"; import { PatchedContactRequestAddressesItem } from "./PatchedContactRequestAddressesItem"; import { AccountingPhoneNumberRequest } from "./AccountingPhoneNumberRequest"; import { RemoteFieldRequest } from "./RemoteFieldRequest"; @@ -18,7 +19,7 @@ export const PatchedContactRequest: core.serialization.ObjectSchema< isCustomer: core.serialization.property("is_customer", core.serialization.boolean().optional()), emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), taxNumber: core.serialization.property("tax_number", core.serialization.string().optional()), - status: core.serialization.string().optional(), + status: PatchedContactRequestStatus.optional(), currency: core.serialization.string().optional(), company: core.serialization.string().optional(), addresses: core.serialization.list(PatchedContactRequestAddressesItem.optional()).optional(), @@ -44,7 +45,7 @@ export declare namespace PatchedContactRequest { is_customer?: boolean | null; email_address?: string | null; tax_number?: string | null; - status?: string | null; + status?: PatchedContactRequestStatus.Raw | null; currency?: string | null; company?: string | null; addresses?: (PatchedContactRequestAddressesItem.Raw | null | undefined)[] | null; diff --git a/src/serialization/resources/accounting/types/PatchedContactRequestStatus.ts b/src/serialization/resources/accounting/types/PatchedContactRequestStatus.ts new file mode 100644 index 000000000..447164b61 --- /dev/null +++ b/src/serialization/resources/accounting/types/PatchedContactRequestStatus.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../index"; +import * as Merge from "../../../../api/index"; +import * as core from "../../../../core"; +import { Status7D1Enum } from "./Status7D1Enum"; + +export const PatchedContactRequestStatus: core.serialization.Schema< + serializers.accounting.PatchedContactRequestStatus.Raw, + Merge.accounting.PatchedContactRequestStatus +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status7D1Enum]); + +export declare namespace PatchedContactRequestStatus { + export type Raw = string | Status7D1Enum.Raw; +} diff --git a/src/serialization/resources/accounting/types/PatchedItemRequestRequestStatus.ts b/src/serialization/resources/accounting/types/PatchedItemRequestRequestStatus.ts index 619ca4040..f2ce6367d 100644 --- a/src/serialization/resources/accounting/types/PatchedItemRequestRequestStatus.ts +++ b/src/serialization/resources/accounting/types/PatchedItemRequestRequestStatus.ts @@ -10,8 +10,8 @@ import { Status7D1Enum } from "./Status7D1Enum"; export const PatchedItemRequestRequestStatus: core.serialization.Schema< serializers.accounting.PatchedItemRequestRequestStatus.Raw, Merge.accounting.PatchedItemRequestRequestStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status7D1Enum]); export declare namespace PatchedItemRequestRequestStatus { - export type Raw = Status7D1Enum.Raw | string; + export type Raw = string | Status7D1Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/PatchedItemRequestRequestType.ts b/src/serialization/resources/accounting/types/PatchedItemRequestRequestType.ts index 9ac926599..6bb8d1126 100644 --- a/src/serialization/resources/accounting/types/PatchedItemRequestRequestType.ts +++ b/src/serialization/resources/accounting/types/PatchedItemRequestRequestType.ts @@ -10,8 +10,8 @@ import { Type2BbEnum } from "./Type2BbEnum"; export const PatchedItemRequestRequestType: core.serialization.Schema< serializers.accounting.PatchedItemRequestRequestType.Raw, Merge.accounting.PatchedItemRequestRequestType -> = core.serialization.undiscriminatedUnion([Type2BbEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Type2BbEnum]); export declare namespace PatchedItemRequestRequestType { - export type Raw = Type2BbEnum.Raw | string; + export type Raw = string | Type2BbEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts index 277fc6f32..05461f7a3 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/PatchedPaymentRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PatchedPaymentRequestCurrency: core.serialization.Schema< serializers.accounting.PatchedPaymentRequestCurrency.Raw, Merge.accounting.PatchedPaymentRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace PatchedPaymentRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts index a3e1c3729..0a2da1642 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts +++ b/src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts @@ -10,8 +10,8 @@ import { PaymentTypeEnum } from "./PaymentTypeEnum"; export const PatchedPaymentRequestType: core.serialization.Schema< serializers.accounting.PatchedPaymentRequestType.Raw, Merge.accounting.PatchedPaymentRequestType -> = core.serialization.undiscriminatedUnion([PaymentTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTypeEnum]); export declare namespace PatchedPaymentRequestType { - export type Raw = PaymentTypeEnum.Raw | string; + export type Raw = string | PaymentTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PaymentCurrency.ts b/src/serialization/resources/accounting/types/PaymentCurrency.ts index 796e5854c..5efbbffc0 100644 --- a/src/serialization/resources/accounting/types/PaymentCurrency.ts +++ b/src/serialization/resources/accounting/types/PaymentCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PaymentCurrency: core.serialization.Schema< serializers.accounting.PaymentCurrency.Raw, Merge.accounting.PaymentCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace PaymentCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PaymentMethod.ts b/src/serialization/resources/accounting/types/PaymentMethod.ts index d6f89dab8..c07139535 100644 --- a/src/serialization/resources/accounting/types/PaymentMethod.ts +++ b/src/serialization/resources/accounting/types/PaymentMethod.ts @@ -16,7 +16,7 @@ export const PaymentMethod: core.serialization.ObjectSchema< remoteId: core.serialization.property("remote_id", core.serialization.string().optional()), createdAt: core.serialization.property("created_at", core.serialization.date().optional()), modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()), - methodType: core.serialization.property("method_type", PaymentMethodMethodType), + methodType: core.serialization.property("method_type", PaymentMethodMethodType.optional()), name: core.serialization.string(), isActive: core.serialization.property("is_active", core.serialization.boolean().optional()), remoteUpdatedAt: core.serialization.property("remote_updated_at", core.serialization.date().optional()), @@ -33,7 +33,7 @@ export declare namespace PaymentMethod { remote_id?: string | null; created_at?: string | null; modified_at?: string | null; - method_type: PaymentMethodMethodType.Raw; + method_type?: PaymentMethodMethodType.Raw | null; name: string; is_active?: boolean | null; remote_updated_at?: string | null; diff --git a/src/serialization/resources/accounting/types/PaymentMethodMethodType.ts b/src/serialization/resources/accounting/types/PaymentMethodMethodType.ts index 5ea086837..5171270a2 100644 --- a/src/serialization/resources/accounting/types/PaymentMethodMethodType.ts +++ b/src/serialization/resources/accounting/types/PaymentMethodMethodType.ts @@ -10,8 +10,8 @@ import { MethodTypeEnum } from "./MethodTypeEnum"; export const PaymentMethodMethodType: core.serialization.Schema< serializers.accounting.PaymentMethodMethodType.Raw, Merge.accounting.PaymentMethodMethodType -> = core.serialization.undiscriminatedUnion([MethodTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), MethodTypeEnum]); export declare namespace PaymentMethodMethodType { - export type Raw = MethodTypeEnum.Raw | string; + export type Raw = string | MethodTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts b/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts index a596fb130..7b4a15cdc 100644 --- a/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/PaymentRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PaymentRequestCurrency: core.serialization.Schema< serializers.accounting.PaymentRequestCurrency.Raw, Merge.accounting.PaymentRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace PaymentRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts index 60436576f..aaa0ca931 100644 --- a/src/serialization/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/PaymentRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const PaymentRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.PaymentRequestTrackingCategoriesItem.Raw, Merge.accounting.PaymentRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace PaymentRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PaymentRequestType.ts b/src/serialization/resources/accounting/types/PaymentRequestType.ts index 4af429b71..697172553 100644 --- a/src/serialization/resources/accounting/types/PaymentRequestType.ts +++ b/src/serialization/resources/accounting/types/PaymentRequestType.ts @@ -10,8 +10,8 @@ import { PaymentTypeEnum } from "./PaymentTypeEnum"; export const PaymentRequestType: core.serialization.Schema< serializers.accounting.PaymentRequestType.Raw, Merge.accounting.PaymentRequestType -> = core.serialization.undiscriminatedUnion([PaymentTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTypeEnum]); export declare namespace PaymentRequestType { - export type Raw = PaymentTypeEnum.Raw | string; + export type Raw = string | PaymentTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PaymentTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PaymentTrackingCategoriesItem.ts index df0ff7964..d0fa22994 100644 --- a/src/serialization/resources/accounting/types/PaymentTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/PaymentTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const PaymentTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.PaymentTrackingCategoriesItem.Raw, Merge.accounting.PaymentTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace PaymentTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PaymentType.ts b/src/serialization/resources/accounting/types/PaymentType.ts index 15cc5620b..f4c04e21f 100644 --- a/src/serialization/resources/accounting/types/PaymentType.ts +++ b/src/serialization/resources/accounting/types/PaymentType.ts @@ -10,8 +10,8 @@ import { PaymentTypeEnum } from "./PaymentTypeEnum"; export const PaymentType: core.serialization.Schema< serializers.accounting.PaymentType.Raw, Merge.accounting.PaymentType -> = core.serialization.undiscriminatedUnion([PaymentTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PaymentTypeEnum]); export declare namespace PaymentType { - export type Raw = PaymentTypeEnum.Raw | string; + export type Raw = string | PaymentTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts index 886f31bc0..cc8f3924e 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PurchaseOrderCurrency: core.serialization.Schema< serializers.accounting.PurchaseOrderCurrency.Raw, Merge.accounting.PurchaseOrderCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace PurchaseOrderCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts index 12cecfaf1..434a06aa0 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderLineItemCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PurchaseOrderLineItemCurrency: core.serialization.Schema< serializers.accounting.PurchaseOrderLineItemCurrency.Raw, Merge.accounting.PurchaseOrderLineItemCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace PurchaseOrderLineItemCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts index 07ee90a64..d9032cac1 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderLineItemRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PurchaseOrderLineItemRequestCurrency: core.serialization.Schema< serializers.accounting.PurchaseOrderLineItemRequestCurrency.Raw, Merge.accounting.PurchaseOrderLineItemRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace PurchaseOrderLineItemRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts index ad33eec99..a553fd8f3 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const PurchaseOrderRequestCurrency: core.serialization.Schema< serializers.accounting.PurchaseOrderRequestCurrency.Raw, Merge.accounting.PurchaseOrderRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace PurchaseOrderRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestStatus.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestStatus.ts index 45514bc88..48067aa99 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestStatus.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderRequestStatus.ts @@ -10,8 +10,8 @@ import { PurchaseOrderStatusEnum } from "./PurchaseOrderStatusEnum"; export const PurchaseOrderRequestStatus: core.serialization.Schema< serializers.accounting.PurchaseOrderRequestStatus.Raw, Merge.accounting.PurchaseOrderRequestStatus -> = core.serialization.undiscriminatedUnion([PurchaseOrderStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PurchaseOrderStatusEnum]); export declare namespace PurchaseOrderRequestStatus { - export type Raw = PurchaseOrderStatusEnum.Raw | string; + export type Raw = string | PurchaseOrderStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts index 1873b3cd5..3c858000b 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const PurchaseOrderRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.PurchaseOrderRequestTrackingCategoriesItem.Raw, Merge.accounting.PurchaseOrderRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace PurchaseOrderRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderStatus.ts b/src/serialization/resources/accounting/types/PurchaseOrderStatus.ts index c0a813889..3ec011d64 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderStatus.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderStatus.ts @@ -10,8 +10,8 @@ import { PurchaseOrderStatusEnum } from "./PurchaseOrderStatusEnum"; export const PurchaseOrderStatus: core.serialization.Schema< serializers.accounting.PurchaseOrderStatus.Raw, Merge.accounting.PurchaseOrderStatus -> = core.serialization.undiscriminatedUnion([PurchaseOrderStatusEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), PurchaseOrderStatusEnum]); export declare namespace PurchaseOrderStatus { - export type Raw = PurchaseOrderStatusEnum.Raw | string; + export type Raw = string | PurchaseOrderStatusEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts index 4b426d11a..1a2843def 100644 --- a/src/serialization/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/PurchaseOrderTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const PurchaseOrderTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.PurchaseOrderTrackingCategoriesItem.Raw, Merge.accounting.PurchaseOrderTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace PurchaseOrderTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts b/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts index 6abb8a877..4dbc922b0 100644 --- a/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts +++ b/src/serialization/resources/accounting/types/RemoteFieldApiResponse.ts @@ -27,6 +27,7 @@ export const RemoteFieldApiResponse: core.serialization.ObjectSchema< creditNote: core.serialization.property("CreditNote", core.serialization.list(RemoteFieldApi).optional()), item: core.serialization.property("Item", core.serialization.list(RemoteFieldApi).optional()), purchaseOrder: core.serialization.property("PurchaseOrder", core.serialization.list(RemoteFieldApi).optional()), + expenseReport: core.serialization.property("ExpenseReport", core.serialization.list(RemoteFieldApi).optional()), trackingCategory: core.serialization.property( "TrackingCategory", core.serialization.list(RemoteFieldApi).optional(), @@ -65,6 +66,7 @@ export declare namespace RemoteFieldApiResponse { CreditNote?: RemoteFieldApi.Raw[] | null; Item?: RemoteFieldApi.Raw[] | null; PurchaseOrder?: RemoteFieldApi.Raw[] | null; + ExpenseReport?: RemoteFieldApi.Raw[] | null; TrackingCategory?: RemoteFieldApi.Raw[] | null; JournalEntry?: RemoteFieldApi.Raw[] | null; TaxRate?: RemoteFieldApi.Raw[] | null; diff --git a/src/serialization/resources/accounting/types/SyncStatusStatus.ts b/src/serialization/resources/accounting/types/SyncStatusStatus.ts index 41de26d9c..69a69811a 100644 --- a/src/serialization/resources/accounting/types/SyncStatusStatus.ts +++ b/src/serialization/resources/accounting/types/SyncStatusStatus.ts @@ -10,8 +10,8 @@ import { StatusFd5Enum } from "./StatusFd5Enum"; export const SyncStatusStatus: core.serialization.Schema< serializers.accounting.SyncStatusStatus.Raw, Merge.accounting.SyncStatusStatus -> = core.serialization.undiscriminatedUnion([StatusFd5Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), StatusFd5Enum]); export declare namespace SyncStatusStatus { - export type Raw = StatusFd5Enum.Raw | string; + export type Raw = string | StatusFd5Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/TaxComponentComponentType.ts b/src/serialization/resources/accounting/types/TaxComponentComponentType.ts index d6bb55125..abb992917 100644 --- a/src/serialization/resources/accounting/types/TaxComponentComponentType.ts +++ b/src/serialization/resources/accounting/types/TaxComponentComponentType.ts @@ -10,8 +10,8 @@ import { ComponentTypeEnum } from "./ComponentTypeEnum"; export const TaxComponentComponentType: core.serialization.Schema< serializers.accounting.TaxComponentComponentType.Raw, Merge.accounting.TaxComponentComponentType -> = core.serialization.undiscriminatedUnion([ComponentTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), ComponentTypeEnum]); export declare namespace TaxComponentComponentType { - export type Raw = ComponentTypeEnum.Raw | string; + export type Raw = string | ComponentTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/TaxRateStatus.ts b/src/serialization/resources/accounting/types/TaxRateStatus.ts index 50417f0c7..d7891bd3b 100644 --- a/src/serialization/resources/accounting/types/TaxRateStatus.ts +++ b/src/serialization/resources/accounting/types/TaxRateStatus.ts @@ -10,8 +10,8 @@ import { Status7D1Enum } from "./Status7D1Enum"; export const TaxRateStatus: core.serialization.Schema< serializers.accounting.TaxRateStatus.Raw, Merge.accounting.TaxRateStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status7D1Enum]); export declare namespace TaxRateStatus { - export type Raw = Status7D1Enum.Raw | string; + export type Raw = string | Status7D1Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/TrackingCategoryCategoryType.ts b/src/serialization/resources/accounting/types/TrackingCategoryCategoryType.ts index 57f198576..a2abb924f 100644 --- a/src/serialization/resources/accounting/types/TrackingCategoryCategoryType.ts +++ b/src/serialization/resources/accounting/types/TrackingCategoryCategoryType.ts @@ -10,8 +10,8 @@ import { CategoryTypeEnum } from "./CategoryTypeEnum"; export const TrackingCategoryCategoryType: core.serialization.Schema< serializers.accounting.TrackingCategoryCategoryType.Raw, Merge.accounting.TrackingCategoryCategoryType -> = core.serialization.undiscriminatedUnion([CategoryTypeEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), CategoryTypeEnum]); export declare namespace TrackingCategoryCategoryType { - export type Raw = CategoryTypeEnum.Raw | string; + export type Raw = string | CategoryTypeEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/TrackingCategoryStatus.ts b/src/serialization/resources/accounting/types/TrackingCategoryStatus.ts index 1e5d8a277..938f1b72d 100644 --- a/src/serialization/resources/accounting/types/TrackingCategoryStatus.ts +++ b/src/serialization/resources/accounting/types/TrackingCategoryStatus.ts @@ -10,8 +10,8 @@ import { Status7D1Enum } from "./Status7D1Enum"; export const TrackingCategoryStatus: core.serialization.Schema< serializers.accounting.TrackingCategoryStatus.Raw, Merge.accounting.TrackingCategoryStatus -> = core.serialization.undiscriminatedUnion([Status7D1Enum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), Status7D1Enum]); export declare namespace TrackingCategoryStatus { - export type Raw = Status7D1Enum.Raw | string; + export type Raw = string | Status7D1Enum.Raw; } diff --git a/src/serialization/resources/accounting/types/TransactionCurrency.ts b/src/serialization/resources/accounting/types/TransactionCurrency.ts index d52d5b447..c12a9a784 100644 --- a/src/serialization/resources/accounting/types/TransactionCurrency.ts +++ b/src/serialization/resources/accounting/types/TransactionCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const TransactionCurrency: core.serialization.Schema< serializers.accounting.TransactionCurrency.Raw, Merge.accounting.TransactionCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace TransactionCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts b/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts index f1bb945c8..4ef244e07 100644 --- a/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts +++ b/src/serialization/resources/accounting/types/TransactionLineItemCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const TransactionLineItemCurrency: core.serialization.Schema< serializers.accounting.TransactionLineItemCurrency.Raw, Merge.accounting.TransactionLineItemCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace TransactionLineItemCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/VendorCreditCurrency.ts b/src/serialization/resources/accounting/types/VendorCreditCurrency.ts index 5aa668822..f556a3164 100644 --- a/src/serialization/resources/accounting/types/VendorCreditCurrency.ts +++ b/src/serialization/resources/accounting/types/VendorCreditCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const VendorCreditCurrency: core.serialization.Schema< serializers.accounting.VendorCreditCurrency.Raw, Merge.accounting.VendorCreditCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace VendorCreditCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts b/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts index a1725a054..0a579d129 100644 --- a/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts +++ b/src/serialization/resources/accounting/types/VendorCreditRequestCurrency.ts @@ -10,8 +10,8 @@ import { TransactionCurrencyEnum } from "./TransactionCurrencyEnum"; export const VendorCreditRequestCurrency: core.serialization.Schema< serializers.accounting.VendorCreditRequestCurrency.Raw, Merge.accounting.VendorCreditRequestCurrency -> = core.serialization.undiscriminatedUnion([TransactionCurrencyEnum, core.serialization.string()]); +> = core.serialization.undiscriminatedUnion([core.serialization.string(), TransactionCurrencyEnum]); export declare namespace VendorCreditRequestCurrency { - export type Raw = TransactionCurrencyEnum.Raw | string; + export type Raw = string | TransactionCurrencyEnum.Raw; } diff --git a/src/serialization/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts index f00e920dd..f798a9a54 100644 --- a/src/serialization/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/VendorCreditRequestTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const VendorCreditRequestTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.VendorCreditRequestTrackingCategoriesItem.Raw, Merge.accounting.VendorCreditRequestTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace VendorCreditRequestTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts b/src/serialization/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts index 919983bd1..01038b61e 100644 --- a/src/serialization/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts +++ b/src/serialization/resources/accounting/types/VendorCreditTrackingCategoriesItem.ts @@ -10,8 +10,8 @@ import { TrackingCategory } from "./TrackingCategory"; export const VendorCreditTrackingCategoriesItem: core.serialization.Schema< serializers.accounting.VendorCreditTrackingCategoriesItem.Raw, Merge.accounting.VendorCreditTrackingCategoriesItem -> = core.serialization.undiscriminatedUnion([core.serialization.string(), TrackingCategory]); +> = core.serialization.undiscriminatedUnion([TrackingCategory, core.serialization.string()]); export declare namespace VendorCreditTrackingCategoriesItem { - export type Raw = string | TrackingCategory.Raw; + export type Raw = TrackingCategory.Raw | string; } diff --git a/src/serialization/resources/accounting/types/index.ts b/src/serialization/resources/accounting/types/index.ts index 73f02eb79..4fa61bb7c 100644 --- a/src/serialization/resources/accounting/types/index.ts +++ b/src/serialization/resources/accounting/types/index.ts @@ -9,8 +9,10 @@ export * from "./AccountDetails"; export * from "./AccountDetailsAndActionsCategory"; export * from "./AccountDetailsAndActionsStatus"; export * from "./AccountDetailsAndActions"; +export * from "./AccountDetailsAndActionsIntegrationCategoriesItem"; export * from "./AccountDetailsAndActionsIntegration"; export * from "./AccountDetailsAndActionsStatusEnum"; +export * from "./AccountIntegrationCategoriesItem"; export * from "./AccountIntegration"; export * from "./AccountRequestClassification"; export * from "./AccountRequestAccountType"; @@ -160,6 +162,7 @@ export * from "./ExpenseLineRequestContact"; export * from "./ExpenseLineRequestProject"; export * from "./ExpenseLineRequest"; export * from "./ExpenseReportStatus"; +export * from "./ExpenseReportCurrency"; export * from "./ExpenseReportCompany"; export * from "./ExpenseReport"; export * from "./ExpenseReportLineAccount"; @@ -367,6 +370,7 @@ export * from "./PaginatedTaxRateList"; export * from "./PaginatedTrackingCategoryList"; export * from "./PaginatedTransactionList"; export * from "./PaginatedVendorCreditList"; +export * from "./PatchedContactRequestStatus"; export * from "./PatchedContactRequestAddressesItem"; export * from "./PatchedContactRequest"; export * from "./PatchedItemRequestRequestStatus"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 7df440533..4fa43ea12 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,6 +1,6 @@ -export * as ats from "./ats"; -export * as filestorage from "./filestorage"; export * as crm from "./crm"; +export * as filestorage from "./filestorage"; export * as hris from "./hris"; +export * as ats from "./ats"; export * as ticketing from "./ticketing"; export * as accounting from "./accounting"; diff --git a/tests/wire/accounting/accountDetails.test.ts b/tests/wire/accounting/accountDetails.test.ts index c66b7a816..3ada2802d 100644 --- a/tests/wire/accounting/accountDetails.test.ts +++ b/tests/wire/accounting/accountDetails.test.ts @@ -14,7 +14,7 @@ describe("AccountDetails", () => { id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", integration: "BambooHR", integration_slug: "bamboohr", - category: "hris", + category: "category", end_user_origin_id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", end_user_organization_name: "Waystar Royco", end_user_email_address: "kendall.roy@waystar-royco.com", @@ -37,7 +37,7 @@ describe("AccountDetails", () => { id: "0496d4c2-42e6-4072-80b3-7b69bfdc76fd", integration: "BambooHR", integrationSlug: "bamboohr", - category: "hris", + category: "category", endUserOriginId: "3fa85f64-5717-4562-b3fc-2c963f66afa6", endUserOrganizationName: "Waystar Royco", endUserEmailAddress: "kendall.roy@waystar-royco.com", diff --git a/tests/wire/accounting/accountToken.test.ts b/tests/wire/accounting/accountToken.test.ts index 9be10e29d..39b61601c 100644 --- a/tests/wire/accounting/accountToken.test.ts +++ b/tests/wire/accounting/accountToken.test.ts @@ -15,7 +15,7 @@ describe("AccountToken", () => { integration: { name: "name", abbreviated_name: "abbreviated_name", - categories: ["hris"], + categories: ["categories"], image: "image", square_image: "square_image", color: "color", @@ -40,7 +40,7 @@ describe("AccountToken", () => { integration: { name: "name", abbreviatedName: "abbreviated_name", - categories: ["hris"], + categories: ["categories"], image: "image", squareImage: "square_image", color: "color", diff --git a/tests/wire/accounting/accountingPeriods.test.ts b/tests/wire/accounting/accountingPeriods.test.ts index 33fe13d7b..e8d15bcce 100644 --- a/tests/wire/accounting/accountingPeriods.test.ts +++ b/tests/wire/accounting/accountingPeriods.test.ts @@ -20,7 +20,7 @@ describe("AccountingPeriods", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "April 2020 Financials", - status: "ACTIVE", + status: "status", start_date: "2020-03-31T00:00:00Z", end_date: "2020-05-01T00:00:00Z", field_mappings: { @@ -52,7 +52,7 @@ describe("AccountingPeriods", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "April 2020 Financials", - status: "ACTIVE", + status: "status", startDate: new Date("2020-03-31T00:00:00.000Z"), endDate: new Date("2020-05-01T00:00:00.000Z"), fieldMappings: { @@ -84,7 +84,7 @@ describe("AccountingPeriods", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "April 2020 Financials", - status: "ACTIVE", + status: "status", start_date: "2020-03-31T00:00:00Z", end_date: "2020-05-01T00:00:00Z", field_mappings: { @@ -108,7 +108,7 @@ describe("AccountingPeriods", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "April 2020 Financials", - status: "ACTIVE", + status: "status", startDate: new Date("2020-03-31T00:00:00.000Z"), endDate: new Date("2020-05-01T00:00:00.000Z"), fieldMappings: { diff --git a/tests/wire/accounting/accounts.test.ts b/tests/wire/accounting/accounts.test.ts index 0248a1b08..9d83de1da 100644 --- a/tests/wire/accounting/accounts.test.ts +++ b/tests/wire/accounting/accounts.test.ts @@ -21,12 +21,12 @@ describe("Accounts", () => { modified_at: "2021-10-16T00:00:00Z", name: "Cash", description: "Cash", - classification: "ASSET", + classification: "classification", type: "Asset", - account_type: "BANK", - status: "ACTIVE", + account_type: "account_type", + status: "status", current_balance: 1.1, - currency: "XUA", + currency: "currency", account_number: "X12Y9AB", parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -61,12 +61,12 @@ describe("Accounts", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Cash", description: "Cash", - classification: "ASSET", + classification: "classification", type: "Asset", - accountType: "BANK", - status: "ACTIVE", + accountType: "account_type", + status: "status", currentBalance: 1.1, - currency: "XUA", + currency: "currency", accountNumber: "X12Y9AB", parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -102,12 +102,12 @@ describe("Accounts", () => { modified_at: "2021-10-16T00:00:00Z", name: "Cash", description: "Cash", - classification: "ASSET", + classification: "classification", type: "Asset", - account_type: "BANK", - status: "ACTIVE", + account_type: "account_type", + status: "status", current_balance: 1.1, - currency: "XUA", + currency: "currency", account_number: "X12Y9AB", parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -166,12 +166,12 @@ describe("Accounts", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Cash", description: "Cash", - classification: "ASSET", + classification: "classification", type: "Asset", - accountType: "BANK", - status: "ACTIVE", + accountType: "account_type", + status: "status", currentBalance: 1.1, - currency: "XUA", + currency: "currency", accountNumber: "X12Y9AB", parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -236,12 +236,12 @@ describe("Accounts", () => { modified_at: "2021-10-16T00:00:00Z", name: "Cash", description: "Cash", - classification: "ASSET", + classification: "classification", type: "Asset", - account_type: "BANK", - status: "ACTIVE", + account_type: "account_type", + status: "status", current_balance: 1.1, - currency: "XUA", + currency: "currency", account_number: "X12Y9AB", parent_account: "22d92d6c-22f9-11ed-861d-0242ac120002", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -268,12 +268,12 @@ describe("Accounts", () => { modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Cash", description: "Cash", - classification: "ASSET", + classification: "classification", type: "Asset", - accountType: "BANK", - status: "ACTIVE", + accountType: "account_type", + status: "status", currentBalance: 1.1, - currency: "XUA", + currency: "currency", accountNumber: "X12Y9AB", parentAccount: "22d92d6c-22f9-11ed-861d-0242ac120002", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", diff --git a/tests/wire/accounting/addresses.test.ts b/tests/wire/accounting/addresses.test.ts index 263551cd9..ad4bc5654 100644 --- a/tests/wire/accounting/addresses.test.ts +++ b/tests/wire/accounting/addresses.test.ts @@ -13,13 +13,13 @@ describe("Addresses", () => { const rawResponseBody = { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", - type: "BILLING", + type: "type", street_1: "2920 Broadway", street_2: "2nd Floor", city: "New York", state: { key: "value" }, country_subdivision: "NY", - country: "AF", + country: "country", zip_code: "10027", }; server @@ -34,7 +34,7 @@ describe("Addresses", () => { expect(response).toEqual({ createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - type: "BILLING", + type: "type", street1: "2920 Broadway", street2: "2nd Floor", city: "New York", @@ -42,7 +42,7 @@ describe("Addresses", () => { key: "value", }, countrySubdivision: "NY", - country: "AF", + country: "country", zipCode: "10027", }); }); diff --git a/tests/wire/accounting/asyncPassthrough.test.ts b/tests/wire/accounting/asyncPassthrough.test.ts index 1c5e7cfc7..e6a0e3f17 100644 --- a/tests/wire/accounting/asyncPassthrough.test.ts +++ b/tests/wire/accounting/asyncPassthrough.test.ts @@ -9,7 +9,7 @@ describe("AsyncPassthrough", () => { test("create", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ apiKey: "test", accountToken: "test", environment: server.baseUrl }); - const rawRequestBody = { method: "GET", path: "/scooters" }; + const rawRequestBody = { method: "method", path: "/scooters" }; const rawResponseBody = { async_passthrough_receipt_id: "fd29020f-2695-445e-922e-dcd5e81903fd" }; server .mockEndpoint() @@ -21,7 +21,7 @@ describe("AsyncPassthrough", () => { .build(); const response = await client.accounting.asyncPassthrough.create({ - method: "GET", + method: "method", path: "/scooters", }); expect(response).toEqual({ diff --git a/tests/wire/accounting/asyncTasks.test.ts b/tests/wire/accounting/asyncTasks.test.ts index e71bf8bf0..5a605b387 100644 --- a/tests/wire/accounting/asyncTasks.test.ts +++ b/tests/wire/accounting/asyncTasks.test.ts @@ -11,7 +11,7 @@ describe("AsyncTasks", () => { const client = new MergeClient({ apiKey: "test", accountToken: "test", environment: server.baseUrl }); const rawResponseBody = { - status: "QUEUED", + status: "status", result: { status_code: 201, response: { @@ -73,7 +73,7 @@ describe("AsyncTasks", () => { const response = await client.accounting.asyncTasks.retrieve("id"); expect(response).toEqual({ - status: "QUEUED", + status: "status", result: { statusCode: 201, response: { diff --git a/tests/wire/accounting/auditTrail.test.ts b/tests/wire/accounting/auditTrail.test.ts index c0a0948bc..dd3556c65 100644 --- a/tests/wire/accounting/auditTrail.test.ts +++ b/tests/wire/accounting/auditTrail.test.ts @@ -18,9 +18,9 @@ describe("AuditTrail", () => { id: "b5ceea2a-7171-47ce-8090-165cfce5572c", user_name: "Gil Feig", user_email: "hello@merge.dev", - role: "ADMIN", + role: "role", ip_address: "192.0.2.123", - event_type: "CREATED_REMOTE_PRODUCTION_API_KEY", + event_type: "event_type", event_description: "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", created_at: "2024-01-15T09:30:00Z", @@ -46,9 +46,9 @@ describe("AuditTrail", () => { id: "b5ceea2a-7171-47ce-8090-165cfce5572c", userName: "Gil Feig", userEmail: "hello@merge.dev", - role: "ADMIN", + role: "role", ipAddress: "192.0.2.123", - eventType: "CREATED_REMOTE_PRODUCTION_API_KEY", + eventType: "event_type", eventDescription: "Organization-wide Scopes for model hris.Employee updated from Read to Read+Write", createdAt: new Date("2024-01-15T09:30:00.000Z"), diff --git a/tests/wire/accounting/availableActions.test.ts b/tests/wire/accounting/availableActions.test.ts index abab1dab1..2ada752f5 100644 --- a/tests/wire/accounting/availableActions.test.ts +++ b/tests/wire/accounting/availableActions.test.ts @@ -14,7 +14,7 @@ describe("AvailableActions", () => { integration: { name: "name", abbreviated_name: "abbreviated_name", - categories: ["hris"], + categories: ["categories"], image: "image", square_image: "square_image", color: "color", @@ -46,7 +46,7 @@ describe("AvailableActions", () => { integration: { name: "name", abbreviatedName: "abbreviated_name", - categories: ["hris"], + categories: ["categories"], image: "image", squareImage: "square_image", color: "color", diff --git a/tests/wire/accounting/balanceSheets.test.ts b/tests/wire/accounting/balanceSheets.test.ts index 9a235d90b..2d6030f6f 100644 --- a/tests/wire/accounting/balanceSheets.test.ts +++ b/tests/wire/accounting/balanceSheets.test.ts @@ -20,7 +20,7 @@ describe("BalanceSheets", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "BalanceSheet", - currency: "XUA", + currency: "currency", company: "company", date: "2021-10-01T00:00:00Z", net_assets: 1000, @@ -94,7 +94,7 @@ describe("BalanceSheets", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "BalanceSheet", - currency: "XUA", + currency: "currency", company: "company", date: new Date("2021-10-01T00:00:00.000Z"), netAssets: 1000, @@ -191,7 +191,7 @@ describe("BalanceSheets", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "BalanceSheet", - currency: "XUA", + currency: "currency", company: "company", date: "2021-10-01T00:00:00Z", net_assets: 1000, @@ -263,7 +263,7 @@ describe("BalanceSheets", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "BalanceSheet", - currency: "XUA", + currency: "currency", company: "company", date: new Date("2021-10-01T00:00:00.000Z"), netAssets: 1000, diff --git a/tests/wire/accounting/bankFeedAccounts.test.ts b/tests/wire/accounting/bankFeedAccounts.test.ts index ec1787650..e7e0db138 100644 --- a/tests/wire/accounting/bankFeedAccounts.test.ts +++ b/tests/wire/accounting/bankFeedAccounts.test.ts @@ -24,11 +24,11 @@ describe("BankFeedAccounts", () => { source_account_name: "Travel Bank Account", source_account_number: "12567", target_account_name: "Netsuite Travel Bank Account", - currency: "XUA", - feed_status: "ACTIVE", + currency: "currency", + feed_status: "feed_status", feed_start_date: "2024-02-02T00:00:00Z", source_account_balance: 123.94, - account_type: "BANK", + account_type: "account_type", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -62,11 +62,11 @@ describe("BankFeedAccounts", () => { sourceAccountName: "Travel Bank Account", sourceAccountNumber: "12567", targetAccountName: "Netsuite Travel Bank Account", - currency: "XUA", - feedStatus: "ACTIVE", + currency: "currency", + feedStatus: "feed_status", feedStartDate: new Date("2024-02-02T00:00:00.000Z"), sourceAccountBalance: 123.94, - accountType: "BANK", + accountType: "account_type", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -96,11 +96,11 @@ describe("BankFeedAccounts", () => { source_account_name: "Travel Bank Account", source_account_number: "12567", target_account_name: "Netsuite Travel Bank Account", - currency: "XUA", - feed_status: "ACTIVE", + currency: "currency", + feed_status: "feed_status", feed_start_date: "2024-02-02T00:00:00Z", source_account_balance: 123.94, - account_type: "BANK", + account_type: "account_type", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -159,11 +159,11 @@ describe("BankFeedAccounts", () => { sourceAccountName: "Travel Bank Account", sourceAccountNumber: "12567", targetAccountName: "Netsuite Travel Bank Account", - currency: "XUA", - feedStatus: "ACTIVE", + currency: "currency", + feedStatus: "feed_status", feedStartDate: new Date("2024-02-02T00:00:00.000Z"), sourceAccountBalance: 123.94, - accountType: "BANK", + accountType: "account_type", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -227,11 +227,11 @@ describe("BankFeedAccounts", () => { source_account_name: "Travel Bank Account", source_account_number: "12567", target_account_name: "Netsuite Travel Bank Account", - currency: "XUA", - feed_status: "ACTIVE", + currency: "currency", + feed_status: "feed_status", feed_start_date: "2024-02-02T00:00:00Z", source_account_balance: 123.94, - account_type: "BANK", + account_type: "account_type", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -258,11 +258,11 @@ describe("BankFeedAccounts", () => { sourceAccountName: "Travel Bank Account", sourceAccountNumber: "12567", targetAccountName: "Netsuite Travel Bank Account", - currency: "XUA", - feedStatus: "ACTIVE", + currency: "currency", + feedStatus: "feed_status", feedStartDate: new Date("2024-02-02T00:00:00.000Z"), sourceAccountBalance: 123.94, - accountType: "BANK", + accountType: "account_type", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { diff --git a/tests/wire/accounting/bankFeedTransactions.test.ts b/tests/wire/accounting/bankFeedTransactions.test.ts index 06ef5f621..14502a38c 100644 --- a/tests/wire/accounting/bankFeedTransactions.test.ts +++ b/tests/wire/accounting/bankFeedTransactions.test.ts @@ -26,7 +26,7 @@ describe("BankFeedTransactions", () => { description: "Lunch expense", transaction_type: "payment", payee: "Elmo's diner", - credit_or_debit: "CREDIT", + credit_or_debit: "credit_or_debit", source_transaction_id: "124569", remote_was_deleted: true, is_processed: true, @@ -60,7 +60,7 @@ describe("BankFeedTransactions", () => { description: "Lunch expense", transactionType: "payment", payee: "Elmo's diner", - creditOrDebit: "CREDIT", + creditOrDebit: "credit_or_debit", sourceTransactionId: "124569", remoteWasDeleted: true, isProcessed: true, @@ -86,7 +86,7 @@ describe("BankFeedTransactions", () => { description: "Lunch expense", transaction_type: "payment", payee: "Elmo's diner", - credit_or_debit: "CREDIT", + credit_or_debit: "credit_or_debit", source_transaction_id: "124569", remote_was_deleted: true, is_processed: true, @@ -144,7 +144,7 @@ describe("BankFeedTransactions", () => { description: "Lunch expense", transactionType: "payment", payee: "Elmo's diner", - creditOrDebit: "CREDIT", + creditOrDebit: "credit_or_debit", sourceTransactionId: "124569", remoteWasDeleted: true, isProcessed: true, @@ -199,7 +199,7 @@ describe("BankFeedTransactions", () => { description: "Lunch expense", transaction_type: "payment", payee: "Elmo's diner", - credit_or_debit: "CREDIT", + credit_or_debit: "credit_or_debit", source_transaction_id: "124569", remote_was_deleted: true, is_processed: true, @@ -225,7 +225,7 @@ describe("BankFeedTransactions", () => { description: "Lunch expense", transactionType: "payment", payee: "Elmo's diner", - creditOrDebit: "CREDIT", + creditOrDebit: "credit_or_debit", sourceTransactionId: "124569", remoteWasDeleted: true, isProcessed: true, diff --git a/tests/wire/accounting/cashFlowStatements.test.ts b/tests/wire/accounting/cashFlowStatements.test.ts index 0334bae62..1ec6c8e28 100644 --- a/tests/wire/accounting/cashFlowStatements.test.ts +++ b/tests/wire/accounting/cashFlowStatements.test.ts @@ -20,7 +20,7 @@ describe("CashFlowStatements", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "CashFlow", - currency: "XUA", + currency: "currency", company: "company", start_period: "2020-01-01T00:00:00Z", end_period: "2020-03-31T00:00:00Z", @@ -103,7 +103,7 @@ describe("CashFlowStatements", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "CashFlow", - currency: "XUA", + currency: "currency", company: "company", startPeriod: new Date("2020-01-01T00:00:00.000Z"), endPeriod: new Date("2020-03-31T00:00:00.000Z"), @@ -194,7 +194,7 @@ describe("CashFlowStatements", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "CashFlow", - currency: "XUA", + currency: "currency", company: "company", start_period: "2020-01-01T00:00:00Z", end_period: "2020-03-31T00:00:00Z", @@ -277,7 +277,7 @@ describe("CashFlowStatements", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "CashFlow", - currency: "XUA", + currency: "currency", company: "company", startPeriod: new Date("2020-01-01T00:00:00.000Z"), endPeriod: new Date("2020-03-31T00:00:00.000Z"), diff --git a/tests/wire/accounting/companyInfo.test.ts b/tests/wire/accounting/companyInfo.test.ts index bce3e1537..f72caae22 100644 --- a/tests/wire/accounting/companyInfo.test.ts +++ b/tests/wire/accounting/companyInfo.test.ts @@ -24,7 +24,7 @@ describe("CompanyInfo", () => { tax_number: "11-0011000", fiscal_year_end_month: 12, fiscal_year_end_day: 31, - currency: "XUA", + currency: "currency", remote_created_at: "2020-03-31T00:00:00Z", addresses: [ { @@ -73,7 +73,7 @@ describe("CompanyInfo", () => { taxNumber: "11-0011000", fiscalYearEndMonth: 12, fiscalYearEndDay: 31, - currency: "XUA", + currency: "currency", remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), addresses: [ { @@ -127,14 +127,14 @@ describe("CompanyInfo", () => { tax_number: "11-0011000", fiscal_year_end_month: 12, fiscal_year_end_day: 31, - currency: "XUA", + currency: "currency", remote_created_at: "2020-03-31T00:00:00Z", urls: ["urls"], addresses: [ { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", - type: "BILLING", + type: "type", street_1: "2920 Broadway", street_2: "2nd Floor", city: "New York", @@ -178,14 +178,14 @@ describe("CompanyInfo", () => { taxNumber: "11-0011000", fiscalYearEndMonth: 12, fiscalYearEndDay: 31, - currency: "XUA", + currency: "currency", remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), urls: ["urls"], addresses: [ { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - type: "BILLING", + type: "type", street1: "2920 Broadway", street2: "2nd Floor", city: "New York", diff --git a/tests/wire/accounting/contacts.test.ts b/tests/wire/accounting/contacts.test.ts index ebb439198..5b59a47ce 100644 --- a/tests/wire/accounting/contacts.test.ts +++ b/tests/wire/accounting/contacts.test.ts @@ -24,7 +24,7 @@ describe("Contacts", () => { is_customer: true, email_address: "pickleball@merge.dev", tax_number: "12-3456789", - status: "ACTIVE", + status: "status", currency: "USD", remote_updated_at: "2020-03-31T00:00:00Z", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -72,7 +72,7 @@ describe("Contacts", () => { isCustomer: true, emailAddress: "pickleball@merge.dev", taxNumber: "12-3456789", - status: "ACTIVE", + status: "status", currency: "USD", remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -125,7 +125,7 @@ describe("Contacts", () => { is_customer: true, email_address: "pickleball@merge.dev", tax_number: "12-3456789", - status: "ACTIVE", + status: "status", currency: "USD", remote_updated_at: "2020-03-31T00:00:00Z", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -197,7 +197,7 @@ describe("Contacts", () => { isCustomer: true, emailAddress: "pickleball@merge.dev", taxNumber: "12-3456789", - status: "ACTIVE", + status: "status", currency: "USD", remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -279,7 +279,7 @@ describe("Contacts", () => { is_customer: true, email_address: "pickleball@merge.dev", tax_number: "12-3456789", - status: "ACTIVE", + status: "status", currency: "USD", remote_updated_at: "2020-03-31T00:00:00Z", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -319,7 +319,7 @@ describe("Contacts", () => { isCustomer: true, emailAddress: "pickleball@merge.dev", taxNumber: "12-3456789", - status: "ACTIVE", + status: "status", currency: "USD", remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -373,7 +373,7 @@ describe("Contacts", () => { is_customer: true, email_address: "pickleball@merge.dev", tax_number: "12-3456789", - status: "ACTIVE", + status: "status", currency: "USD", remote_updated_at: "2020-03-31T00:00:00Z", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -445,7 +445,7 @@ describe("Contacts", () => { isCustomer: true, emailAddress: "pickleball@merge.dev", taxNumber: "12-3456789", - status: "ACTIVE", + status: "status", currency: "USD", remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", diff --git a/tests/wire/accounting/creditNotes.test.ts b/tests/wire/accounting/creditNotes.test.ts index 20478ba35..9f5ffeeb4 100644 --- a/tests/wire/accounting/creditNotes.test.ts +++ b/tests/wire/accounting/creditNotes.test.ts @@ -20,7 +20,7 @@ describe("CreditNotes", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", + status: "status", number: "CN-29", contact: "contact", company: "company", @@ -59,7 +59,7 @@ describe("CreditNotes", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", remote_created_at: "2020-03-31T00:00:00Z", remote_updated_at: "2020-03-31T00:00:00Z", payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], @@ -104,7 +104,7 @@ describe("CreditNotes", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", + status: "status", number: "CN-29", contact: "contact", company: "company", @@ -143,7 +143,7 @@ describe("CreditNotes", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], @@ -189,7 +189,7 @@ describe("CreditNotes", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", + status: "status", number: "CN-29", contact: "contact", company: "company", @@ -228,7 +228,7 @@ describe("CreditNotes", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", remote_created_at: "2020-03-31T00:00:00Z", remote_updated_at: "2020-03-31T00:00:00Z", payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], @@ -297,7 +297,7 @@ describe("CreditNotes", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", + status: "status", number: "CN-29", contact: "contact", company: "company", @@ -336,7 +336,7 @@ describe("CreditNotes", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], @@ -411,7 +411,7 @@ describe("CreditNotes", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", transaction_date: "2020-03-31T00:00:00Z", - status: "SUBMITTED", + status: "status", number: "CN-29", contact: "contact", company: "company", @@ -450,7 +450,7 @@ describe("CreditNotes", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", remote_created_at: "2020-03-31T00:00:00Z", remote_updated_at: "2020-03-31T00:00:00Z", payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], @@ -489,7 +489,7 @@ describe("CreditNotes", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), transactionDate: new Date("2020-03-31T00:00:00.000Z"), - status: "SUBMITTED", + status: "status", number: "CN-29", contact: "contact", company: "company", @@ -528,7 +528,7 @@ describe("CreditNotes", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], diff --git a/tests/wire/accounting/employees.test.ts b/tests/wire/accounting/employees.test.ts index ce4f12b0f..8b6c325ee 100644 --- a/tests/wire/accounting/employees.test.ts +++ b/tests/wire/accounting/employees.test.ts @@ -25,7 +25,7 @@ describe("Employees", () => { employee_number: "325462", email_address: "johnsmith@merge.dev", company: "company", - status: "ACTIVE", + status: "status", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -61,7 +61,7 @@ describe("Employees", () => { employeeNumber: "325462", emailAddress: "johnsmith@merge.dev", company: "company", - status: "ACTIVE", + status: "status", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { @@ -97,7 +97,7 @@ describe("Employees", () => { employee_number: "325462", email_address: "johnsmith@merge.dev", company: "company", - status: "ACTIVE", + status: "status", remote_was_deleted: true, field_mappings: { organization_defined_targets: { custom_key: "custom_value" }, @@ -125,7 +125,7 @@ describe("Employees", () => { employeeNumber: "325462", emailAddress: "johnsmith@merge.dev", company: "company", - status: "ACTIVE", + status: "status", remoteWasDeleted: true, fieldMappings: { organization_defined_targets: { diff --git a/tests/wire/accounting/expenseReports.test.ts b/tests/wire/accounting/expenseReports.test.ts index 52a737602..e03897d88 100644 --- a/tests/wire/accounting/expenseReports.test.ts +++ b/tests/wire/accounting/expenseReports.test.ts @@ -22,7 +22,7 @@ describe("ExpenseReports", () => { report_date: "2024-01-31T00:00:00Z", report_identifier: "EXP-2024-001", employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", + status: "status", total_amount: 150, lines: [ { @@ -51,7 +51,7 @@ describe("ExpenseReports", () => { remote_was_deleted: false, }, ], - currency: "XUA", + currency: "currency", description: "January 2024 Travel Expenses", accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", company: "company", @@ -92,7 +92,7 @@ describe("ExpenseReports", () => { reportDate: new Date("2024-01-31T00:00:00.000Z"), reportIdentifier: "EXP-2024-001", employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", + status: "status", totalAmount: 150, lines: [ { @@ -121,7 +121,7 @@ describe("ExpenseReports", () => { remoteWasDeleted: false, }, ], - currency: "XUA", + currency: "currency", description: "January 2024 Travel Expenses", accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", company: "company", @@ -171,7 +171,7 @@ describe("ExpenseReports", () => { report_date: "2024-01-31T00:00:00Z", report_identifier: "EXP-2024-001", employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", + status: "status", total_amount: 150, lines: [ { @@ -200,7 +200,7 @@ describe("ExpenseReports", () => { remote_was_deleted: false, }, ], - currency: "XUA", + currency: "currency", description: "January 2024 Travel Expenses", accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", company: "company", @@ -264,7 +264,7 @@ describe("ExpenseReports", () => { reportDate: new Date("2024-01-31T00:00:00.000Z"), reportIdentifier: "EXP-2024-001", employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", + status: "status", totalAmount: 150, lines: [ { @@ -293,7 +293,7 @@ describe("ExpenseReports", () => { remoteWasDeleted: false, }, ], - currency: "XUA", + currency: "currency", description: "January 2024 Travel Expenses", accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", company: "company", @@ -450,7 +450,7 @@ describe("ExpenseReports", () => { report_date: "2024-01-31T00:00:00Z", report_identifier: "EXP-2024-001", employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", + status: "status", total_amount: 150, lines: [ { @@ -480,7 +480,7 @@ describe("ExpenseReports", () => { remote_fields: [{ remote_field_class: "remote_field_class" }], }, ], - currency: "XUA", + currency: "currency", description: "January 2024 Travel Expenses", accounting_period: "7d793c67-9f72-4a6b-9256-3936f237b0d9", company: "company", @@ -510,7 +510,7 @@ describe("ExpenseReports", () => { reportDate: new Date("2024-01-31T00:00:00.000Z"), reportIdentifier: "EXP-2024-001", employee: "b9a9b824-6172-4d63-9d90-1c8a86c4f3b1", - status: "DRAFT", + status: "status", totalAmount: 150, lines: [ { @@ -544,7 +544,7 @@ describe("ExpenseReports", () => { ], }, ], - currency: "XUA", + currency: "currency", description: "January 2024 Travel Expenses", accountingPeriod: "7d793c67-9f72-4a6b-9256-3936f237b0d9", company: "company", diff --git a/tests/wire/accounting/expenses.test.ts b/tests/wire/accounting/expenses.test.ts index 8905f105c..92a0d2d15 100644 --- a/tests/wire/accounting/expenses.test.ts +++ b/tests/wire/accounting/expenses.test.ts @@ -26,7 +26,7 @@ describe("Expenses", () => { total_amount: 10000, sub_total: 1.1, total_tax_amount: 1.1, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", inclusive_of_tax: true, company: "company", @@ -114,7 +114,7 @@ describe("Expenses", () => { totalAmount: 10000, subTotal: 1.1, totalTaxAmount: 1.1, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", inclusiveOfTax: true, company: "company", @@ -207,7 +207,7 @@ describe("Expenses", () => { total_amount: 10000, sub_total: 1.1, total_tax_amount: 1.1, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", inclusive_of_tax: true, company: "company", @@ -319,7 +319,7 @@ describe("Expenses", () => { totalAmount: 10000, subTotal: 1.1, totalTaxAmount: 1.1, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", inclusiveOfTax: true, company: "company", @@ -441,7 +441,7 @@ describe("Expenses", () => { total_amount: 10000, sub_total: 1.1, total_tax_amount: 1.1, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", inclusive_of_tax: true, company: "company", @@ -462,7 +462,7 @@ describe("Expenses", () => { ], company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - currency: "XUA", + currency: "currency", account: "2a56344a-a491-11ec-b909-0242ac120002", contact: "c640b80b-fac9-409f-aa19-1f9221aec445", project: "22e65a5d-2df5-4e6e-884a-e538d0339000", @@ -485,7 +485,7 @@ describe("Expenses", () => { ], company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", employee: "employee", - currency: "XUA", + currency: "currency", account: "2a56344a-a491-11ec-b909-0242ac120002", contact: "contact", project: "project", @@ -530,7 +530,7 @@ describe("Expenses", () => { totalAmount: 10000, subTotal: 1.1, totalTaxAmount: 1.1, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", inclusiveOfTax: true, company: "company", @@ -551,7 +551,7 @@ describe("Expenses", () => { ], company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", employee: "7442f0d5-722d-45bd-b807-6e38489d37fe", - currency: "XUA", + currency: "currency", account: "2a56344a-a491-11ec-b909-0242ac120002", contact: "c640b80b-fac9-409f-aa19-1f9221aec445", project: "22e65a5d-2df5-4e6e-884a-e538d0339000", @@ -574,7 +574,7 @@ describe("Expenses", () => { ], company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", employee: "employee", - currency: "XUA", + currency: "currency", account: "2a56344a-a491-11ec-b909-0242ac120002", contact: "contact", project: "project", diff --git a/tests/wire/accounting/fieldMapping.test.ts b/tests/wire/accounting/fieldMapping.test.ts index 106312090..5534d5f0e 100644 --- a/tests/wire/accounting/fieldMapping.test.ts +++ b/tests/wire/accounting/fieldMapping.test.ts @@ -1623,6 +1623,20 @@ describe("FieldMapping", () => { coverage: 1, }, ], + ExpenseReport: [ + { + schema: { type: "string" }, + remote_key_name: "example_remote_key_name", + remote_endpoint_info: { + method: "GET", + url_path: "/example-url-path", + field_traversal_path: ["example_key_name"], + }, + example_values: ["example"], + advanced_metadata: { id: "id" }, + coverage: 1, + }, + ], TrackingCategory: [ { schema: { type: "string" }, @@ -2024,6 +2038,24 @@ describe("FieldMapping", () => { coverage: 1, }, ], + expenseReport: [ + { + schema: { + type: "string", + }, + remoteKeyName: "example_remote_key_name", + remoteEndpointInfo: { + method: "GET", + urlPath: "/example-url-path", + fieldTraversalPath: ["example_key_name"], + }, + exampleValues: ["example"], + advancedMetadata: { + id: "id", + }, + coverage: 1, + }, + ], trackingCategory: [ { schema: { diff --git a/tests/wire/accounting/forceResync.test.ts b/tests/wire/accounting/forceResync.test.ts index 99ac847f7..7d27e2568 100644 --- a/tests/wire/accounting/forceResync.test.ts +++ b/tests/wire/accounting/forceResync.test.ts @@ -18,7 +18,7 @@ describe("ForceResync", () => { next_sync_start: "2021-03-30T20:44:18Z", last_sync_result: "SYNCING", last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", + status: "status", is_initial_sync: true, selective_sync_configurations_usage: "IN_NEXT_SYNC", }, @@ -40,7 +40,7 @@ describe("ForceResync", () => { nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), lastSyncResult: "SYNCING", lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", + status: "status", isInitialSync: true, selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", }, diff --git a/tests/wire/accounting/incomeStatements.test.ts b/tests/wire/accounting/incomeStatements.test.ts index 2e859793b..80e121335 100644 --- a/tests/wire/accounting/incomeStatements.test.ts +++ b/tests/wire/accounting/incomeStatements.test.ts @@ -20,7 +20,7 @@ describe("IncomeStatements", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "IncomeStatement", - currency: "XUA", + currency: "currency", company: "company", start_period: "2024-01-15T09:30:00Z", end_period: "2024-01-15T09:30:00Z", @@ -106,7 +106,7 @@ describe("IncomeStatements", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "IncomeStatement", - currency: "XUA", + currency: "currency", company: "company", startPeriod: new Date("2024-01-15T09:30:00.000Z"), endPeriod: new Date("2024-01-15T09:30:00.000Z"), @@ -222,7 +222,7 @@ describe("IncomeStatements", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "IncomeStatement", - currency: "XUA", + currency: "currency", company: "company", start_period: "2024-01-15T09:30:00Z", end_period: "2024-01-15T09:30:00Z", @@ -308,7 +308,7 @@ describe("IncomeStatements", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "IncomeStatement", - currency: "XUA", + currency: "currency", company: "company", startPeriod: new Date("2024-01-15T09:30:00.000Z"), endPeriod: new Date("2024-01-15T09:30:00.000Z"), diff --git a/tests/wire/accounting/invoices.test.ts b/tests/wire/accounting/invoices.test.ts index 7ba7b48d5..cd77fa746 100644 --- a/tests/wire/accounting/invoices.test.ts +++ b/tests/wire/accounting/invoices.test.ts @@ -28,7 +28,7 @@ describe("Invoices", () => { memo: "Weekly Payment", company: "company", employee: "employee", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", payment_term: "payment_term", total_discount: 1.1, @@ -135,7 +135,7 @@ describe("Invoices", () => { memo: "Weekly Payment", company: "company", employee: "employee", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", paymentTerm: "payment_term", totalDiscount: 1.1, @@ -247,7 +247,7 @@ describe("Invoices", () => { memo: "Weekly Payment", company: "company", employee: "employee", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", payment_term: "payment_term", total_discount: 1.1, @@ -378,7 +378,7 @@ describe("Invoices", () => { memo: "Weekly Payment", company: "company", employee: "employee", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", paymentTerm: "payment_term", totalDiscount: 1.1, @@ -519,7 +519,7 @@ describe("Invoices", () => { memo: "Weekly Payment", company: "company", employee: "employee", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", payment_term: "payment_term", total_discount: 1.1, @@ -628,7 +628,7 @@ describe("Invoices", () => { memo: "Weekly Payment", company: "company", employee: "employee", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", paymentTerm: "payment_term", totalDiscount: 1.1, @@ -759,7 +759,7 @@ describe("Invoices", () => { memo: "Weekly Payment", company: "company", employee: "employee", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", payment_term: "payment_term", total_discount: 1.1, @@ -890,7 +890,7 @@ describe("Invoices", () => { memo: "Weekly Payment", company: "company", employee: "employee", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", paymentTerm: "payment_term", totalDiscount: 1.1, diff --git a/tests/wire/accounting/issues.test.ts b/tests/wire/accounting/issues.test.ts index c4de95dfe..b8129a4d0 100644 --- a/tests/wire/accounting/issues.test.ts +++ b/tests/wire/accounting/issues.test.ts @@ -16,7 +16,7 @@ describe("Issues", () => { results: [ { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", + status: "status", error_description: "Missing Permissions", end_user: { key: "value" }, first_incident_time: "2022-12-05T16:19:15Z", @@ -43,7 +43,7 @@ describe("Issues", () => { results: [ { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", + status: "status", errorDescription: "Missing Permissions", endUser: { key: "value", @@ -63,7 +63,7 @@ describe("Issues", () => { const rawResponseBody = { id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", + status: "status", error_description: "Missing Permissions", end_user: { key: "value" }, first_incident_time: "2022-12-05T16:19:15Z", @@ -82,7 +82,7 @@ describe("Issues", () => { const response = await client.accounting.issues.retrieve("id"); expect(response).toEqual({ id: "3fa85f64-5717-4562-b3fc-2c963f66afa6", - status: "ONGOING", + status: "status", errorDescription: "Missing Permissions", endUser: { key: "value", diff --git a/tests/wire/accounting/items.test.ts b/tests/wire/accounting/items.test.ts index bd01d7c39..d1bc50694 100644 --- a/tests/wire/accounting/items.test.ts +++ b/tests/wire/accounting/items.test.ts @@ -20,8 +20,8 @@ describe("Items", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", + status: "status", + type: "type", unit_price: 10, purchase_price: 25, purchase_account: "purchase_account", @@ -60,8 +60,8 @@ describe("Items", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", + status: "status", + type: "type", unitPrice: 10, purchasePrice: 25, purchaseAccount: "purchase_account", @@ -101,8 +101,8 @@ describe("Items", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", + status: "status", + type: "type", unit_price: 10, purchase_price: 25, purchase_account: "purchase_account", @@ -165,8 +165,8 @@ describe("Items", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", + status: "status", + type: "type", unitPrice: 10, purchasePrice: 25, purchaseAccount: "purchase_account", @@ -235,8 +235,8 @@ describe("Items", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", + status: "status", + type: "type", unit_price: 10, purchase_price: 25, purchase_account: "purchase_account", @@ -267,8 +267,8 @@ describe("Items", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", + status: "status", + type: "type", unitPrice: 10, purchasePrice: 25, purchaseAccount: "purchase_account", @@ -306,8 +306,8 @@ describe("Items", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", + status: "status", + type: "type", unit_price: 10, purchase_price: 25, purchase_account: "purchase_account", @@ -370,8 +370,8 @@ describe("Items", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Pickleball Paddle", - status: "ACTIVE", - type: "INVENTORY", + status: "status", + type: "type", unitPrice: 10, purchasePrice: 25, purchaseAccount: "purchase_account", diff --git a/tests/wire/accounting/journalEntries.test.ts b/tests/wire/accounting/journalEntries.test.ts index 74e27013b..ce5554129 100644 --- a/tests/wire/accounting/journalEntries.test.ts +++ b/tests/wire/accounting/journalEntries.test.ts @@ -23,7 +23,7 @@ describe("JournalEntries", () => { payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], memo: "Weekly Payment", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "company", inclusive_of_tax: true, @@ -65,7 +65,7 @@ describe("JournalEntries", () => { "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], remote_was_deleted: true, - posting_status: "UNPOSTED", + posting_status: "posting_status", accounting_period: "accounting_period", remote_created_at: "2020-03-31T00:00:00Z", remote_updated_at: "2020-03-31T00:00:00Z", @@ -102,7 +102,7 @@ describe("JournalEntries", () => { payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], memo: "Weekly Payment", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "company", inclusiveOfTax: true, @@ -144,7 +144,7 @@ describe("JournalEntries", () => { "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], remoteWasDeleted: true, - postingStatus: "UNPOSTED", + postingStatus: "posting_status", accountingPeriod: "accounting_period", remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), @@ -186,7 +186,7 @@ describe("JournalEntries", () => { payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], memo: "Weekly Payment", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "company", inclusive_of_tax: true, @@ -228,7 +228,7 @@ describe("JournalEntries", () => { "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], remote_was_deleted: true, - posting_status: "UNPOSTED", + posting_status: "posting_status", accounting_period: "accounting_period", remote_created_at: "2020-03-31T00:00:00Z", remote_updated_at: "2020-03-31T00:00:00Z", @@ -289,7 +289,7 @@ describe("JournalEntries", () => { payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], memo: "Weekly Payment", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "company", inclusiveOfTax: true, @@ -331,7 +331,7 @@ describe("JournalEntries", () => { "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], remoteWasDeleted: true, - postingStatus: "UNPOSTED", + postingStatus: "posting_status", accountingPeriod: "accounting_period", remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), @@ -402,7 +402,7 @@ describe("JournalEntries", () => { payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], applied_payments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], memo: "Weekly Payment", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "company", inclusive_of_tax: true, @@ -419,7 +419,7 @@ describe("JournalEntries", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", project: "22e65a5d-2df5-4e6e-884a-e538d0339000", @@ -442,7 +442,7 @@ describe("JournalEntries", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", project: "project", @@ -461,7 +461,7 @@ describe("JournalEntries", () => { "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], remote_was_deleted: true, - posting_status: "UNPOSTED", + posting_status: "posting_status", accounting_period: "accounting_period", remote_created_at: "2020-03-31T00:00:00Z", remote_updated_at: "2020-03-31T00:00:00Z", @@ -490,7 +490,7 @@ describe("JournalEntries", () => { payments: ["b26fd49a-cbae-470a-a8f8-bcbc119e0390"], appliedPayments: ["4311155d-f236-4a5d-9e0f-1cb167e38f95"], memo: "Weekly Payment", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "company", inclusiveOfTax: true, @@ -507,7 +507,7 @@ describe("JournalEntries", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", project: "22e65a5d-2df5-4e6e-884a-e538d0339000", @@ -534,7 +534,7 @@ describe("JournalEntries", () => { "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], - currency: "XUA", + currency: "currency", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", employee: "123c8r35-5kf5-12x5-r833-99bwf35210b5", project: "project", @@ -557,7 +557,7 @@ describe("JournalEntries", () => { "a47e11b6-c73b-4a0c-be31-130fc48177fa", ], remoteWasDeleted: true, - postingStatus: "UNPOSTED", + postingStatus: "posting_status", accountingPeriod: "accounting_period", remoteCreatedAt: new Date("2020-03-31T00:00:00.000Z"), remoteUpdatedAt: new Date("2020-03-31T00:00:00.000Z"), diff --git a/tests/wire/accounting/linkedAccounts.test.ts b/tests/wire/accounting/linkedAccounts.test.ts index f24bdd1db..ba6b7eced 100644 --- a/tests/wire/accounting/linkedAccounts.test.ts +++ b/tests/wire/accounting/linkedAccounts.test.ts @@ -16,8 +16,8 @@ describe("LinkedAccounts", () => { results: [ { id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", + category: "category", + status: "status", status_detail: "Invalid login credentials", end_user_origin_id: "3ac95cde-6c7f-4eef-afec-be710b42308d", end_user_organization_name: "Foo Bar, LLC", @@ -27,7 +27,7 @@ describe("LinkedAccounts", () => { is_duplicate: true, integration: { name: "name", - categories: ["hris"], + categories: [], color: "color", slug: "slug", passthrough_available: true, @@ -63,8 +63,8 @@ describe("LinkedAccounts", () => { results: [ { id: "e59b1821-f85c-4e28-a6b3-1804156f3563", - category: "hris", - status: "COMPLETE", + category: "category", + status: "status", statusDetail: "Invalid login credentials", endUserOriginId: "3ac95cde-6c7f-4eef-afec-be710b42308d", endUserOrganizationName: "Foo Bar, LLC", @@ -74,7 +74,7 @@ describe("LinkedAccounts", () => { isDuplicate: true, integration: { name: "name", - categories: ["hris"], + categories: [], color: "color", slug: "slug", passthroughAvailable: true, diff --git a/tests/wire/accounting/passthrough.test.ts b/tests/wire/accounting/passthrough.test.ts index 5a7e99042..2df5deb5a 100644 --- a/tests/wire/accounting/passthrough.test.ts +++ b/tests/wire/accounting/passthrough.test.ts @@ -9,7 +9,7 @@ describe("Passthrough", () => { test("create", async () => { const server = mockServerPool.createServer(); const client = new MergeClient({ apiKey: "test", accountToken: "test", environment: server.baseUrl }); - const rawRequestBody = { method: "GET", path: "/scooters" }; + const rawRequestBody = { method: "method", path: "/scooters" }; const rawResponseBody = { method: "GET", path: "/scooters", @@ -29,7 +29,7 @@ describe("Passthrough", () => { .build(); const response = await client.accounting.passthrough.create({ - method: "GET", + method: "method", path: "/scooters", }); expect(response).toEqual({ diff --git a/tests/wire/accounting/paymentMethods.test.ts b/tests/wire/accounting/paymentMethods.test.ts index aca1a6621..fe0246cd0 100644 --- a/tests/wire/accounting/paymentMethods.test.ts +++ b/tests/wire/accounting/paymentMethods.test.ts @@ -19,7 +19,7 @@ describe("PaymentMethods", () => { remote_id: "088899", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", - method_type: "CREDIT_CARD", + method_type: "method_type", name: "John Smith's Credit Card", is_active: true, remote_updated_at: "2021-09-15T00:00:00Z", @@ -51,7 +51,7 @@ describe("PaymentMethods", () => { remoteId: "088899", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - methodType: "CREDIT_CARD", + methodType: "method_type", name: "John Smith's Credit Card", isActive: true, remoteUpdatedAt: new Date("2021-09-15T00:00:00.000Z"), @@ -83,7 +83,7 @@ describe("PaymentMethods", () => { remote_id: "088899", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", - method_type: "CREDIT_CARD", + method_type: "method_type", name: "John Smith's Credit Card", is_active: true, remote_updated_at: "2021-09-15T00:00:00Z", @@ -107,7 +107,7 @@ describe("PaymentMethods", () => { remoteId: "088899", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - methodType: "CREDIT_CARD", + methodType: "method_type", name: "John Smith's Credit Card", isActive: true, remoteUpdatedAt: new Date("2021-09-15T00:00:00.000Z"), diff --git a/tests/wire/accounting/payments.test.ts b/tests/wire/accounting/payments.test.ts index e50742214..637669797 100644 --- a/tests/wire/accounting/payments.test.ts +++ b/tests/wire/accounting/payments.test.ts @@ -23,11 +23,11 @@ describe("Payments", () => { contact: "contact", account: "account", payment_method: "payment_method", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "company", total_amount: 50, - type: "ACCOUNTS_PAYABLE", + type: "type", tracking_categories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -91,11 +91,11 @@ describe("Payments", () => { contact: "contact", account: "account", paymentMethod: "payment_method", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "company", totalAmount: 50, - type: "ACCOUNTS_PAYABLE", + type: "type", trackingCategories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -164,11 +164,11 @@ describe("Payments", () => { contact: "contact", account: "account", payment_method: "payment_method", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "company", total_amount: 50, - type: "ACCOUNTS_PAYABLE", + type: "type", tracking_categories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -256,11 +256,11 @@ describe("Payments", () => { contact: "contact", account: "account", paymentMethod: "payment_method", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "company", totalAmount: 50, - type: "ACCOUNTS_PAYABLE", + type: "type", trackingCategories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -358,11 +358,11 @@ describe("Payments", () => { contact: "contact", account: "account", payment_method: "payment_method", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "company", total_amount: 50, - type: "ACCOUNTS_PAYABLE", + type: "type", tracking_categories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -418,11 +418,11 @@ describe("Payments", () => { contact: "contact", account: "account", paymentMethod: "payment_method", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "company", totalAmount: 50, - type: "ACCOUNTS_PAYABLE", + type: "type", trackingCategories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -492,11 +492,11 @@ describe("Payments", () => { contact: "contact", account: "account", payment_method: "payment_method", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "company", total_amount: 50, - type: "ACCOUNTS_PAYABLE", + type: "type", tracking_categories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", @@ -584,11 +584,11 @@ describe("Payments", () => { contact: "contact", account: "account", paymentMethod: "payment_method", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "company", totalAmount: 50, - type: "ACCOUNTS_PAYABLE", + type: "type", trackingCategories: [ "b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", diff --git a/tests/wire/accounting/purchaseOrders.test.ts b/tests/wire/accounting/purchaseOrders.test.ts index 9798f76e7..4a8b892dc 100644 --- a/tests/wire/accounting/purchaseOrders.test.ts +++ b/tests/wire/accounting/purchaseOrders.test.ts @@ -19,7 +19,7 @@ describe("PurchaseOrders", () => { remote_id: "239741", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", + status: "status", issue_date: "2020-03-31T00:00:00Z", purchase_order_number: "PO1234", delivery_date: "2020-04-15T00:00:00Z", @@ -29,7 +29,7 @@ describe("PurchaseOrders", () => { memo: "private note", company: "company", total_amount: 260, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", payment_term: "payment_term", line_items: [ @@ -111,7 +111,7 @@ describe("PurchaseOrders", () => { remoteId: "239741", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", + status: "status", issueDate: new Date("2020-03-31T00:00:00.000Z"), purchaseOrderNumber: "PO1234", deliveryDate: new Date("2020-04-15T00:00:00.000Z"), @@ -121,7 +121,7 @@ describe("PurchaseOrders", () => { memo: "private note", company: "company", totalAmount: 260, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", paymentTerm: "payment_term", lineItems: [ @@ -208,7 +208,7 @@ describe("PurchaseOrders", () => { remote_id: "239741", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", + status: "status", issue_date: "2020-03-31T00:00:00Z", purchase_order_number: "PO1234", delivery_date: "2020-04-15T00:00:00Z", @@ -218,7 +218,7 @@ describe("PurchaseOrders", () => { memo: "private note", company: "company", total_amount: 260, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", payment_term: "payment_term", line_items: [ @@ -324,7 +324,7 @@ describe("PurchaseOrders", () => { remoteId: "239741", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", + status: "status", issueDate: new Date("2020-03-31T00:00:00.000Z"), purchaseOrderNumber: "PO1234", deliveryDate: new Date("2020-04-15T00:00:00.000Z"), @@ -334,7 +334,7 @@ describe("PurchaseOrders", () => { memo: "private note", company: "company", totalAmount: 260, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", paymentTerm: "payment_term", lineItems: [ @@ -450,7 +450,7 @@ describe("PurchaseOrders", () => { remote_id: "239741", created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", - status: "DRAFT", + status: "status", issue_date: "2020-03-31T00:00:00Z", purchase_order_number: "PO1234", delivery_date: "2020-04-15T00:00:00Z", @@ -460,7 +460,7 @@ describe("PurchaseOrders", () => { memo: "private note", company: "company", total_amount: 260, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", payment_term: "payment_term", line_items: [ @@ -505,7 +505,7 @@ describe("PurchaseOrders", () => { ], tax_amount: "tax_amount", total_line_amount: "total_line_amount", - currency: "XUA", + currency: "currency", tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", exchange_rate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", @@ -544,7 +544,7 @@ describe("PurchaseOrders", () => { remoteId: "239741", createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), - status: "DRAFT", + status: "status", issueDate: new Date("2020-03-31T00:00:00.000Z"), purchaseOrderNumber: "PO1234", deliveryDate: new Date("2020-04-15T00:00:00.000Z"), @@ -554,7 +554,7 @@ describe("PurchaseOrders", () => { memo: "private note", company: "company", totalAmount: 260, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", paymentTerm: "payment_term", lineItems: [ @@ -603,7 +603,7 @@ describe("PurchaseOrders", () => { ], taxAmount: "tax_amount", totalLineAmount: "total_line_amount", - currency: "XUA", + currency: "currency", taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", exchangeRate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", diff --git a/tests/wire/accounting/syncStatus.test.ts b/tests/wire/accounting/syncStatus.test.ts index cb3599437..8ecc692c8 100644 --- a/tests/wire/accounting/syncStatus.test.ts +++ b/tests/wire/accounting/syncStatus.test.ts @@ -21,7 +21,7 @@ describe("SyncStatus", () => { next_sync_start: "2021-03-30T20:44:18Z", last_sync_result: "SYNCING", last_sync_finished: "2021-03-30T19:55:18Z", - status: "SYNCING", + status: "status", is_initial_sync: true, selective_sync_configurations_usage: "IN_NEXT_SYNC", }, @@ -49,7 +49,7 @@ describe("SyncStatus", () => { nextSyncStart: new Date("2021-03-30T20:44:18.000Z"), lastSyncResult: "SYNCING", lastSyncFinished: new Date("2021-03-30T19:55:18.000Z"), - status: "SYNCING", + status: "status", isInitialSync: true, selectiveSyncConfigurationsUsage: "IN_NEXT_SYNC", }, diff --git a/tests/wire/accounting/taxRates.test.ts b/tests/wire/accounting/taxRates.test.ts index a1a834204..5f21ba095 100644 --- a/tests/wire/accounting/taxRates.test.ts +++ b/tests/wire/accounting/taxRates.test.ts @@ -23,7 +23,7 @@ describe("TaxRates", () => { code: "890", name: "State tax rate", description: "Sales Tax", - status: "ACTIVE", + status: "status", country: "US", total_tax_rate: 15, effective_tax_rate: 15, @@ -72,7 +72,7 @@ describe("TaxRates", () => { code: "890", name: "State tax rate", description: "Sales Tax", - status: "ACTIVE", + status: "status", country: "US", totalTaxRate: 15, effectiveTaxRate: 15, @@ -121,7 +121,7 @@ describe("TaxRates", () => { code: "890", name: "State tax rate", description: "Sales Tax", - status: "ACTIVE", + status: "status", country: "US", total_tax_rate: 15, effective_tax_rate: 15, @@ -163,7 +163,7 @@ describe("TaxRates", () => { code: "890", name: "State tax rate", description: "Sales Tax", - status: "ACTIVE", + status: "status", country: "US", totalTaxRate: 15, effectiveTaxRate: 15, diff --git a/tests/wire/accounting/trackingCategories.test.ts b/tests/wire/accounting/trackingCategories.test.ts index 30db7755f..3492359d6 100644 --- a/tests/wire/accounting/trackingCategories.test.ts +++ b/tests/wire/accounting/trackingCategories.test.ts @@ -20,8 +20,8 @@ describe("TrackingCategories", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Marketing Department", - status: "ACTIVE", - category_type: "CLASS", + status: "status", + category_type: "category_type", parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", company: "company", remote_was_deleted: true, @@ -53,8 +53,8 @@ describe("TrackingCategories", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Marketing Department", - status: "ACTIVE", - categoryType: "CLASS", + status: "status", + categoryType: "category_type", parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", company: "company", remoteWasDeleted: true, @@ -81,8 +81,8 @@ describe("TrackingCategories", () => { created_at: "2021-09-15T00:00:00Z", modified_at: "2021-10-16T00:00:00Z", name: "Marketing Department", - status: "ACTIVE", - category_type: "CLASS", + status: "status", + category_type: "category_type", parent_category: "d25d609b-945f-4762-b55a-1c8fb220c43c", company: "company", remote_was_deleted: true, @@ -106,8 +106,8 @@ describe("TrackingCategories", () => { createdAt: new Date("2021-09-15T00:00:00.000Z"), modifiedAt: new Date("2021-10-16T00:00:00.000Z"), name: "Marketing Department", - status: "ACTIVE", - categoryType: "CLASS", + status: "status", + categoryType: "category_type", parentCategory: "d25d609b-945f-4762-b55a-1c8fb220c43c", company: "company", remoteWasDeleted: true, diff --git a/tests/wire/accounting/transactions.test.ts b/tests/wire/accounting/transactions.test.ts index 198efd9b7..4db0984a0 100644 --- a/tests/wire/accounting/transactions.test.ts +++ b/tests/wire/accounting/transactions.test.ts @@ -26,7 +26,7 @@ describe("Transactions", () => { contact: "contact", inclusive_of_tax: true, total_amount: "total_amount", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", tracking_categories: [ @@ -112,7 +112,7 @@ describe("Transactions", () => { contact: "contact", inclusiveOfTax: true, totalAmount: "total_amount", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", trackingCategories: [ @@ -198,7 +198,7 @@ describe("Transactions", () => { contact: "contact", inclusive_of_tax: true, total_amount: "total_amount", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", tracking_categories: [ @@ -246,7 +246,7 @@ describe("Transactions", () => { ], total_line_amount: "total_line_amount", tax_rate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - currency: "XUA", + currency: "currency", exchange_rate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remote_was_deleted: true, @@ -281,7 +281,7 @@ describe("Transactions", () => { contact: "contact", inclusiveOfTax: true, totalAmount: "total_amount", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", trackingCategories: [ @@ -329,7 +329,7 @@ describe("Transactions", () => { ], totalLineAmount: "total_line_amount", taxRate: "a12e7c20-1922-9df7-s75n-edfeewnn7384", - currency: "XUA", + currency: "currency", exchangeRate: "2.9", company: "595c8f97-2ac4-45b7-b000-41bdf43240b5", remoteWasDeleted: true, diff --git a/tests/wire/accounting/vendorCredits.test.ts b/tests/wire/accounting/vendorCredits.test.ts index 1d8c4a812..e4a562675 100644 --- a/tests/wire/accounting/vendorCredits.test.ts +++ b/tests/wire/accounting/vendorCredits.test.ts @@ -23,7 +23,7 @@ describe("VendorCredits", () => { transaction_date: "2020-03-31T00:00:00Z", vendor: "vendor", total_amount: 10000, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", inclusive_of_tax: true, company: "company", @@ -111,7 +111,7 @@ describe("VendorCredits", () => { transactionDate: new Date("2020-03-31T00:00:00.000Z"), vendor: "vendor", totalAmount: 10000, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", inclusiveOfTax: true, company: "company", @@ -200,7 +200,7 @@ describe("VendorCredits", () => { transaction_date: "2020-03-31T00:00:00Z", vendor: "vendor", total_amount: 10000, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", inclusive_of_tax: true, company: "company", @@ -312,7 +312,7 @@ describe("VendorCredits", () => { transactionDate: new Date("2020-03-31T00:00:00.000Z"), vendor: "vendor", totalAmount: 10000, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", inclusiveOfTax: true, company: "company", @@ -430,7 +430,7 @@ describe("VendorCredits", () => { transaction_date: "2020-03-31T00:00:00Z", vendor: "vendor", total_amount: 10000, - currency: "XUA", + currency: "currency", exchange_rate: "2.9", inclusive_of_tax: true, company: "company", @@ -518,7 +518,7 @@ describe("VendorCredits", () => { transactionDate: new Date("2020-03-31T00:00:00.000Z"), vendor: "vendor", totalAmount: 10000, - currency: "XUA", + currency: "currency", exchangeRate: "2.9", inclusiveOfTax: true, company: "company", diff --git a/yarn.lock b/yarn.lock index be449d538..7eddaa34e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,14 +2,6 @@ # yarn lockfile v1 -"@ampproject/remapping@^2.2.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" - integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== - dependencies: - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.24" - "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.27.1": version "7.27.1" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be" @@ -20,25 +12,25 @@ picocolors "^1.1.1" "@babel/compat-data@^7.27.2": - version "7.28.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.28.0.tgz#9fc6fd58c2a6a15243cd13983224968392070790" - integrity sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw== + version "7.28.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.28.4.tgz#96fdf1af1b8859c8474ab39c295312bfb7c24b04" + integrity sha512-YsmSKC29MJwf0gF8Rjjrg5LQCmyh+j/nD8/eP7f+BeoQTKYqs9RoWbjGOdy0+1Ekr68RJZMUOPVQaQisnIo4Rw== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.3.tgz#aceddde69c5d1def69b839d09efa3e3ff59c97cb" - integrity sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ== + version "7.28.4" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.28.4.tgz#12a550b8794452df4c8b084f95003bce1742d496" + integrity sha512-2BCOP7TN8M+gVDj7/ht3hsaO/B/n5oDbiAyyvnRlNOs+u1o+JWNYTQrmpuNp1/Wq2gcFrI01JAW+paEKDMx/CA== dependencies: - "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.27.1" "@babel/generator" "^7.28.3" "@babel/helper-compilation-targets" "^7.27.2" "@babel/helper-module-transforms" "^7.28.3" - "@babel/helpers" "^7.28.3" - "@babel/parser" "^7.28.3" + "@babel/helpers" "^7.28.4" + "@babel/parser" "^7.28.4" "@babel/template" "^7.27.2" - "@babel/traverse" "^7.28.3" - "@babel/types" "^7.28.2" + "@babel/traverse" "^7.28.4" + "@babel/types" "^7.28.4" + "@jridgewell/remapping" "^2.3.5" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" @@ -109,20 +101,20 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f" integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg== -"@babel/helpers@^7.28.3": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.3.tgz#b83156c0a2232c133d1b535dd5d3452119c7e441" - integrity sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw== +"@babel/helpers@^7.28.4": + version "7.28.4" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.4.tgz#fe07274742e95bdf7cf1443593eeb8926ab63827" + integrity sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w== dependencies: "@babel/template" "^7.27.2" - "@babel/types" "^7.28.2" + "@babel/types" "^7.28.4" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.28.3": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.3.tgz#d2d25b814621bca5fe9d172bc93792547e7a2a71" - integrity sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.27.2", "@babel/parser@^7.28.3", "@babel/parser@^7.28.4": + version "7.28.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.28.4.tgz#da25d4643532890932cc03f7705fe19637e03fa8" + integrity sha512-yZbBqeM6TkpP9du/I2pUZnJsRMGGvOuIrhjzC1AwHwW+6he4mni6Bp/m8ijn0iOuZuPI2BfkCoSRunpyjnrQKg== dependencies: - "@babel/types" "^7.28.2" + "@babel/types" "^7.28.4" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -252,23 +244,23 @@ "@babel/parser" "^7.27.2" "@babel/types" "^7.27.1" -"@babel/traverse@^7.27.1", "@babel/traverse@^7.28.3": - version "7.28.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.28.3.tgz#6911a10795d2cce43ec6a28cffc440cca2593434" - integrity sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ== +"@babel/traverse@^7.27.1", "@babel/traverse@^7.28.3", "@babel/traverse@^7.28.4": + version "7.28.4" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.28.4.tgz#8d456101b96ab175d487249f60680221692b958b" + integrity sha512-YEzuboP2qvQavAcjgQNVgsvHIDv6ZpwXvcvjmyySP2DIMuByS/6ioU5G9pYrWHM6T2YDfc7xga9iNzYOs12CFQ== dependencies: "@babel/code-frame" "^7.27.1" "@babel/generator" "^7.28.3" "@babel/helper-globals" "^7.28.0" - "@babel/parser" "^7.28.3" + "@babel/parser" "^7.28.4" "@babel/template" "^7.27.2" - "@babel/types" "^7.28.2" + "@babel/types" "^7.28.4" debug "^4.3.1" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.2", "@babel/types@^7.3.3": - version "7.28.2" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.2.tgz#da9db0856a9a88e0a13b019881d7513588cf712b" - integrity sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.28.2", "@babel/types@^7.28.4", "@babel/types@^7.3.3": + version "7.28.4" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.4.tgz#0a4e618f4c60a7cd6c11cb2d48060e4dbe38ac3a" + integrity sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q== dependencies: "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.27.1" @@ -540,6 +532,14 @@ "@jridgewell/sourcemap-codec" "^1.5.0" "@jridgewell/trace-mapping" "^0.3.24" +"@jridgewell/remapping@^2.3.5": + version "2.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/remapping/-/remapping-2.3.5.tgz#375c476d1972947851ba1e15ae8f123047445aa1" + integrity sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.24" + "@jridgewell/resolve-uri@^3.1.0": version "3.1.2" resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" @@ -559,9 +559,9 @@ integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25", "@jridgewell/trace-mapping@^0.3.28": - version "0.3.30" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz#4a76c4daeee5df09f5d3940e087442fb36ce2b99" - integrity sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q== + version "0.3.31" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz#db15d6781c931f3a251a3dac39501c98a6082fd0" + integrity sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw== dependencies: "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" @@ -1175,9 +1175,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001737: - version "1.0.30001739" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001739.tgz#b34ce2d56bfc22f4352b2af0144102d623a124f4" - integrity sha512-y+j60d6ulelrNSwpPyrHdl+9mJnQzHBr08xm48Qno0nSk4h3Qojh+ziv2qE6rXf4k3tadF4o1J/1tAbVm1NtnA== + version "1.0.30001741" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001741.tgz#67fb92953edc536442f3c9da74320774aa523143" + integrity sha512-QGUGitqsc8ARjLdgAfxETDhRbJ0REsP6O3I96TAth/mVjh2cYzN2u+3AzPP3aVSm2FehEItaJw1xd+IGBXWeSw== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1372,9 +1372,9 @@ dunder-proto@^1.0.1: gopd "^1.2.0" electron-to-chromium@^1.5.211: - version "1.5.214" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.214.tgz#f7bbdc0796124292d4b8a34a49e968c5e6430763" - integrity sha512-TpvUNdha+X3ybfU78NoQatKvQEm1oq3lf2QbnmCEdw+Bd9RuIAY+hJTvq1avzHM0f7EJfnH3vbCnbzKzisc/9Q== + version "1.5.217" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.217.tgz#71285850356ef48bc08275b26f0f355721e0f17d" + integrity sha512-Pludfu5iBxp9XzNl0qq2G87hdD17ZV7h5T4n6rQXDi3nCyloBV3jreE9+8GC6g4X/5yxqVgXEURpcLtM0WS4jA== emittery@^0.13.1: version "0.13.1" @@ -2449,9 +2449,9 @@ ms@^2.1.3: integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== msw@^2.8.4: - version "2.11.1" - resolved "https://registry.yarnpkg.com/msw/-/msw-2.11.1.tgz#77f7c5c60ffd08e4bc351cca4608418db15e5ac2" - integrity sha512-dGSRx0AJmQVQfpGXTsAAq4JFdwdhOBdJ6sJS/jnN0ac3s0NZB6daacHF1z5Pefx+IejmvuiLWw260RlyQOf3sQ== + version "2.11.2" + resolved "https://registry.yarnpkg.com/msw/-/msw-2.11.2.tgz#622d83855f456a5f93b1528f6eb6f4c0114623c3" + integrity sha512-MI54hLCsrMwiflkcqlgYYNJJddY5/+S0SnONvhv1owOplvqohKSQyGejpNdUGyCwgs4IH7PqaNbPw/sKOEze9Q== dependencies: "@bundled-es-modules/cookie" "^2.0.1" "@bundled-es-modules/statuses" "^1.0.1" @@ -2467,6 +2467,7 @@ msw@^2.8.4: outvariant "^1.4.3" path-to-regexp "^6.3.0" picocolors "^1.1.1" + rettime "^0.7.0" strict-event-emitter "^0.5.1" tough-cookie "^6.0.0" type-fest "^4.26.1" @@ -2500,9 +2501,9 @@ node-int64@^0.4.0: integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== node-releases@^2.0.19: - version "2.0.19" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.19.tgz#9e445a52950951ec4d177d843af370b411caf314" - integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== + version "2.0.20" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.20.tgz#e26bb79dbdd1e64a146df389c699014c611cbc27" + integrity sha512-7gK6zSXEH6neM212JgfYFXe+GmZQM+fia5SsusuBIUgnPheLFBmIPhtFoAQRj8/7wASYQnbDlHPVwY0BefoFgA== normalize-path@^3.0.0: version "3.0.0" @@ -2517,9 +2518,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.21" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.21.tgz#8df7797079350adda208910d8c33fc4c2d7520c3" - integrity sha512-o6nIY3qwiSXl7/LuOU0Dmuctd34Yay0yeuZRLFmDPrrdHpXKFndPj3hM+YEPVHYC5fx2otBx4Ilc/gyYSAUaIA== + version "2.2.22" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.22.tgz#109f9530cda6c156d6a713cdf5939e9f0de98b9d" + integrity sha512-ujSMe1OWVn55euT1ihwCI1ZcAaAU3nxUiDwfDQldc51ZXaB9m2AyOn6/jh1BLe2t/G8xd6uKG1UBF2aZJeg2SQ== once@^1.3.0: version "1.4.0" @@ -2743,6 +2744,11 @@ resolve@^1.20.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" +rettime@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/rettime/-/rettime-0.7.0.tgz#c040f1a65e396eaa4b8346dd96ed937edc79d96f" + integrity sha512-LPRKoHnLKd/r3dVxcwO7vhCW+orkOGj9ViueosEBK6ie89CijnfRlhaDhHq/3Hxu4CkWQtxwlBG0mzTQY6uQjw== + safe-buffer@^5.1.0, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" @@ -2972,17 +2978,17 @@ test-exclude@^6.0.0: glob "^7.1.4" minimatch "^3.0.4" -tldts-core@^7.0.12: - version "7.0.12" - resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.12.tgz#b471e773dc23ff881a9d187ec145e36edde57c27" - integrity sha512-3K76aXywJFduGRsOYoY5JzINLs/WMlOkeDwPL+8OCPq2Rh39gkSDtWAxdJQlWjpun/xF/LHf29yqCi6VC/rHDA== +tldts-core@^7.0.14: + version "7.0.14" + resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.14.tgz#eb49edf8a39a37a2372ffc22f82d6ac725ace6cd" + integrity sha512-viZGNK6+NdluOJWwTO9olaugx0bkKhscIdriQQ+lNNhwitIKvb+SvhbYgnCz6j9p7dX3cJntt4agQAKMXLjJ5g== tldts@^7.0.5: - version "7.0.12" - resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.12.tgz#e11008e9a3f27448e7aecb8d0fa51f929ec9549d" - integrity sha512-M9ZQBPp6FyqhMcl233vHYyYRkxXOA1SKGlnq13S0mJdUhRSwr2w6I8rlchPL73wBwRlyIZpFvpu2VcdSMWLYXw== + version "7.0.14" + resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.14.tgz#5dc352e087c12978b7d1d36d8a346496e04dca72" + integrity sha512-lMNHE4aSI3LlkMUMicTmAG3tkkitjOQGDTFboPJwAg2kJXKP1ryWEyqujktg5qhrFZOkk5YFzgkxg3jErE+i5w== dependencies: - tldts-core "^7.0.12" + tldts-core "^7.0.14" tmpl@1.0.5: version "1.0.5"