From 10b696672e9c66283d08f9051074438891730c0f Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 22 May 2024 10:49:35 -0400 Subject: [PATCH] May 2024 SDK bump (#38) Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> --- package.json | 2 +- src/Client.ts | 14 +- src/api/resources/accounting/client/Client.ts | 7 - .../resources/accountDetails/client/Client.ts | 2 +- .../resources/accountToken/client/Client.ts | 2 +- .../accountingPeriods/client/Client.ts | 4 +- .../resources/accounts/client/Client.ts | 8 +- .../resources/addresses/client/Client.ts | 2 +- .../asyncPassthrough/client/Client.ts | 4 +- .../resources/attachments/client/Client.ts | 8 +- .../resources/auditTrail/client/Client.ts | 2 +- .../client/requests/AuditTrailListRequest.ts | 2 +- .../availableActions/client/Client.ts | 2 +- .../resources/balanceSheets/client/Client.ts | 4 +- .../cashFlowStatements/client/Client.ts | 4 +- .../resources/companyInfo/client/Client.ts | 4 +- .../resources/contacts/client/Client.ts | 8 +- .../resources/creditNotes/client/Client.ts | 4 +- .../resources/deleteAccount/client/Client.ts | 2 +- .../resources/expenses/client/Client.ts | 8 +- .../resources/fieldMapping/client/Client.ts | 17 +- .../PatchedEditFieldMappingRequest.ts | 5 +- .../resources/forceResync/client/Client.ts | 2 +- .../resources/generateKey/client/Client.ts | 2 +- .../incomeStatements/client/Client.ts | 4 +- .../resources/accounting/resources/index.ts | 2 - .../resources/invoices/client/Client.ts | 12 +- .../resources/issues/client/Client.ts | 4 +- .../resources/items/client/Client.ts | 4 +- .../resources/journalEntries/client/Client.ts | 8 +- .../resources/linkToken/client/Client.ts | 2 +- .../client/requests/EndUserDetailsRequest.ts | 2 + .../resources/linkedAccounts/client/Client.ts | 2 +- .../resources/passthrough/client/Client.ts | 2 +- .../resources/payments/client/Client.ts | 12 +- .../resources/phoneNumbers/client/Client.ts | 2 +- .../resources/purchaseOrders/client/Client.ts | 8 +- .../resources/regenerateKey/client/Client.ts | 2 +- .../resources/scopes/client/Client.ts | 6 +- .../resources/selectiveSync/client/Client.ts | 238 ----------------- ...ntSelectiveSyncConfigurationListRequest.ts | 18 -- .../requests/SelectiveSyncMetaListRequest.ts | 19 -- .../selectiveSync/client/requests/index.ts | 2 - .../resources/syncStatus/client/Client.ts | 2 +- .../resources/taxRates/client/Client.ts | 4 +- .../trackingCategories/client/Client.ts | 4 +- .../resources/transactions/client/Client.ts | 4 +- .../resources/vendorCredits/client/Client.ts | 4 +- .../webhookReceivers/client/Client.ts | 4 +- src/api/resources/accounting/types/Account.ts | 3 +- .../accounting/types/AccountingAttachment.ts | 3 +- .../accounting/types/AccountingPeriod.ts | 3 +- .../accounting/types/AccountingPhoneNumber.ts | 3 +- src/api/resources/accounting/types/Address.ts | 3 +- .../accounting/types/AuditLogEvent.ts | 3 + .../types/AuditLogEventEventType.ts | 3 + .../accounting/types/BalanceSheet.ts | 3 +- .../accounting/types/CashFlowStatement.ts | 3 +- .../resources/accounting/types/CompanyInfo.ts | 3 +- .../accounting/types/ConditionSchema.ts | 30 --- .../types/ConditionSchemaConditionType.ts | 18 -- .../accounting/types/ConditionTypeEnum.ts | 24 -- src/api/resources/accounting/types/Contact.ts | 3 +- .../resources/accounting/types/CreditNote.ts | 3 +- .../accounting/types/CreditNoteLineItem.ts | 5 +- .../accounting/types/EventTypeEnum.ts | 11 +- src/api/resources/accounting/types/Expense.ts | 3 +- .../resources/accounting/types/ExpenseLine.ts | 3 +- .../accounting/types/IncomeStatement.ts | 3 +- src/api/resources/accounting/types/Invoice.ts | 3 +- .../accounting/types/InvoiceLineItem.ts | 3 +- src/api/resources/accounting/types/Item.ts | 3 +- .../accounting/types/JournalEntry.ts | 3 +- .../resources/accounting/types/JournalLine.ts | 3 +- .../types/LinkedAccountCondition.ts | 15 -- .../types/LinkedAccountConditionRequest.ts | 13 - ...LinkedAccountSelectiveSyncConfiguration.ts | 10 - ...ccountSelectiveSyncConfigurationRequest.ts | 10 - .../accounting/types/OperatorSchema.ts | 10 - .../types/PaginatedConditionSchemaList.ts | 11 - .../accounting/types/PatchedPaymentRequest.ts | 7 + .../types/PatchedPaymentRequestType.ts | 13 + src/api/resources/accounting/types/Payment.ts | 10 +- .../accounting/types/PaymentLineItem.ts | 3 +- .../accounting/types/PaymentRequest.ts | 7 + .../accounting/types/PaymentRequestType.ts | 13 + .../resources/accounting/types/PaymentType.ts | 13 + .../accounting/types/PaymentTypeEnum.ts | 14 + .../accounting/types/PurchaseOrder.ts | 3 +- .../accounting/types/PurchaseOrderLineItem.ts | 3 +- .../accounting/types/RemoteFieldApi.ts | 1 + .../types/RemoteFieldApiCoverage.ts | 5 + .../resources/accounting/types/ReportItem.ts | 3 +- src/api/resources/accounting/types/TaxRate.ts | 9 +- .../accounting/types/TaxRateCompany.ts | 2 +- .../accounting/types/TrackingCategory.ts | 3 +- .../resources/accounting/types/Transaction.ts | 3 +- .../accounting/types/TransactionLineItem.ts | 4 +- .../accounting/types/VendorCredit.ts | 3 +- .../accounting/types/VendorCreditLine.ts | 3 +- src/api/resources/accounting/types/index.ts | 14 +- src/api/resources/ats/client/Client.ts | 7 - .../resources/accountDetails/client/Client.ts | 2 +- .../resources/accountToken/client/Client.ts | 2 +- .../ats/resources/activities/client/Client.ts | 8 +- .../resources/applications/client/Client.ts | 10 +- .../asyncPassthrough/client/Client.ts | 4 +- .../resources/attachments/client/Client.ts | 8 +- .../ats/resources/auditTrail/client/Client.ts | 2 +- .../client/requests/AuditTrailListRequest.ts | 2 +- .../availableActions/client/Client.ts | 2 +- .../ats/resources/candidates/client/Client.ts | 17 +- .../requests/IgnoreCommonModelRequest.ts | 3 +- .../resources/deleteAccount/client/Client.ts | 2 +- .../resources/departments/client/Client.ts | 4 +- .../ats/resources/eeocs/client/Client.ts | 4 +- .../resources/fieldMapping/client/Client.ts | 17 +- .../PatchedEditFieldMappingRequest.ts | 5 +- .../resources/forceResync/client/Client.ts | 2 +- .../resources/generateKey/client/Client.ts | 2 +- src/api/resources/ats/resources/index.ts | 2 - .../ats/resources/interviews/client/Client.ts | 8 +- .../ats/resources/issues/client/Client.ts | 4 +- .../jobInterviewStages/client/Client.ts | 4 +- .../resources/jobPostings/client/Client.ts | 15 +- .../client/requests/JobPostingsListRequest.ts | 4 + .../requests/JobPostingsRetrieveRequest.ts | 4 + .../ats/resources/jobs/client/Client.ts | 6 +- .../ats/resources/linkToken/client/Client.ts | 2 +- .../client/requests/EndUserDetailsRequest.ts | 2 + .../resources/linkedAccounts/client/Client.ts | 2 +- .../ats/resources/offers/client/Client.ts | 4 +- .../ats/resources/offices/client/Client.ts | 4 +- .../resources/passthrough/client/Client.ts | 2 +- .../resources/regenerateKey/client/Client.ts | 2 +- .../resources/rejectReasons/client/Client.ts | 4 +- .../ats/resources/scopes/client/Client.ts | 6 +- .../ats/resources/scorecards/client/Client.ts | 4 +- .../resources/selectiveSync/client/Client.ts | 235 ----------------- .../resources/selectiveSync/client/index.ts | 1 - ...ntSelectiveSyncConfigurationListRequest.ts | 18 -- .../requests/SelectiveSyncMetaListRequest.ts | 19 -- .../selectiveSync/client/requests/index.ts | 2 - .../ats/resources/selectiveSync/index.ts | 1 - .../ats/resources/syncStatus/client/Client.ts | 2 +- .../ats/resources/tags/client/Client.ts | 2 +- .../ats/resources/users/client/Client.ts | 4 +- .../webhookReceivers/client/Client.ts | 4 +- src/api/resources/ats/types/Activity.ts | 3 +- src/api/resources/ats/types/Application.ts | 3 +- src/api/resources/ats/types/Attachment.ts | 3 +- src/api/resources/ats/types/AuditLogEvent.ts | 3 + .../ats/types/AuditLogEventEventType.ts | 3 + src/api/resources/ats/types/Candidate.ts | 3 +- .../resources/ats/types/ConditionSchema.ts | 30 --- .../ats/types/ConditionSchemaConditionType.ts | 18 -- .../resources/ats/types/ConditionTypeEnum.ts | 24 -- src/api/resources/ats/types/Department.ts | 3 +- src/api/resources/ats/types/Eeoc.ts | 3 +- src/api/resources/ats/types/EmailAddress.ts | 3 +- src/api/resources/ats/types/EventTypeEnum.ts | 11 +- src/api/resources/ats/types/Job.ts | 3 +- .../resources/ats/types/JobInterviewStage.ts | 3 +- src/api/resources/ats/types/JobPosting.ts | 3 +- .../ats/types/LinkedAccountCondition.ts | 15 -- .../types/LinkedAccountConditionRequest.ts | 13 - ...LinkedAccountSelectiveSyncConfiguration.ts | 10 - ...ccountSelectiveSyncConfigurationRequest.ts | 10 - src/api/resources/ats/types/Offer.ts | 3 +- src/api/resources/ats/types/Office.ts | 3 +- src/api/resources/ats/types/OperatorSchema.ts | 10 - .../ats/types/PaginatedConditionSchemaList.ts | 11 - src/api/resources/ats/types/PhoneNumber.ts | 3 +- src/api/resources/ats/types/RejectReason.ts | 3 +- src/api/resources/ats/types/RemoteFieldApi.ts | 1 + .../ats/types/RemoteFieldApiCoverage.ts | 5 + src/api/resources/ats/types/RemoteUser.ts | 3 +- .../resources/ats/types/ScheduledInterview.ts | 3 +- src/api/resources/ats/types/Scorecard.ts | 3 +- .../resources/ats/types/ScreeningQuestion.ts | 3 +- .../ats/types/ScreeningQuestionOption.ts | 3 +- src/api/resources/ats/types/Tag.ts | 3 +- src/api/resources/ats/types/Url.ts | 3 +- src/api/resources/ats/types/index.ts | 10 +- src/api/resources/crm/client/Client.ts | 7 - .../resources/accountDetails/client/Client.ts | 2 +- .../resources/accountToken/client/Client.ts | 2 +- .../crm/resources/accounts/client/Client.ts | 14 +- .../associationTypes/client/Client.ts | 8 +- .../resources/associations/client/Client.ts | 4 +- .../asyncPassthrough/client/Client.ts | 4 +- .../crm/resources/auditTrail/client/Client.ts | 2 +- .../client/requests/AuditTrailListRequest.ts | 2 +- .../availableActions/client/Client.ts | 2 +- .../crm/resources/contacts/client/Client.ts | 19 +- .../customObjectClasses/client/Client.ts | 4 +- .../resources/customObjects/client/Client.ts | 8 +- .../resources/deleteAccount/client/Client.ts | 2 +- .../engagementTypes/client/Client.ts | 6 +- .../resources/engagements/client/Client.ts | 14 +- .../resources/fieldMapping/client/Client.ts | 17 +- .../PatchedEditFieldMappingRequest.ts | 5 +- .../resources/forceResync/client/Client.ts | 2 +- .../resources/generateKey/client/Client.ts | 2 +- src/api/resources/crm/resources/index.ts | 2 - .../crm/resources/issues/client/Client.ts | 4 +- .../crm/resources/leads/client/Client.ts | 10 +- .../crm/resources/linkToken/client/Client.ts | 2 +- .../client/requests/EndUserDetailsRequest.ts | 2 + .../resources/linkedAccounts/client/Client.ts | 2 +- .../crm/resources/notes/client/Client.ts | 10 +- .../resources/opportunities/client/Client.ts | 14 +- .../resources/passthrough/client/Client.ts | 2 +- .../resources/regenerateKey/client/Client.ts | 2 +- .../crm/resources/scopes/client/Client.ts | 6 +- .../resources/selectiveSync/client/Client.ts | 235 ----------------- .../resources/selectiveSync/client/index.ts | 1 - ...ntSelectiveSyncConfigurationListRequest.ts | 18 -- .../requests/SelectiveSyncMetaListRequest.ts | 19 -- .../selectiveSync/client/requests/index.ts | 2 - .../crm/resources/selectiveSync/index.ts | 1 - .../crm/resources/stages/client/Client.ts | 6 +- .../crm/resources/syncStatus/client/Client.ts | 2 +- .../crm/resources/tasks/client/Client.ts | 14 +- .../crm/resources/users/client/Client.ts | 11 +- .../webhookReceivers/client/Client.ts | 4 +- src/api/resources/crm/types/Account.ts | 3 +- src/api/resources/crm/types/AccountRequest.ts | 1 + src/api/resources/crm/types/Address.ts | 3 +- src/api/resources/crm/types/Association.ts | 4 +- .../crm/types/AssociationAssociationType.ts | 3 + .../resources/crm/types/AssociationSubType.ts | 3 +- .../resources/crm/types/AssociationType.ts | 4 +- src/api/resources/crm/types/AuditLogEvent.ts | 3 + .../crm/types/AuditLogEventEventType.ts | 3 + .../resources/crm/types/ConditionSchema.ts | 30 --- .../crm/types/ConditionSchemaConditionType.ts | 18 -- .../resources/crm/types/ConditionTypeEnum.ts | 24 -- src/api/resources/crm/types/Contact.ts | 3 +- src/api/resources/crm/types/CustomObject.ts | 5 +- .../resources/crm/types/CustomObjectClass.ts | 4 + src/api/resources/crm/types/EmailAddress.ts | 3 +- src/api/resources/crm/types/Engagement.ts | 3 +- src/api/resources/crm/types/EngagementType.ts | 3 +- src/api/resources/crm/types/EventTypeEnum.ts | 11 +- src/api/resources/crm/types/Lead.ts | 3 +- .../crm/types/LinkedAccountCondition.ts | 15 -- .../types/LinkedAccountConditionRequest.ts | 13 - ...LinkedAccountSelectiveSyncConfiguration.ts | 10 - ...ccountSelectiveSyncConfigurationRequest.ts | 10 - src/api/resources/crm/types/Note.ts | 3 +- src/api/resources/crm/types/OperatorSchema.ts | 10 - src/api/resources/crm/types/Opportunity.ts | 3 +- .../crm/types/PaginatedConditionSchemaList.ts | 11 - .../crm/types/PatchedAccountRequest.ts | 1 + src/api/resources/crm/types/PhoneNumber.ts | 3 +- src/api/resources/crm/types/RemoteFieldApi.ts | 1 + .../crm/types/RemoteFieldApiCoverage.ts | 5 + .../RemoteFieldClassForCustomObjectClass.ts | 3 +- src/api/resources/crm/types/Stage.ts | 3 +- src/api/resources/crm/types/Task.ts | 3 +- src/api/resources/crm/types/User.ts | 3 +- src/api/resources/crm/types/index.ts | 10 +- .../resources/filestorage/client/Client.ts | 7 - .../resources/accountDetails/client/Client.ts | 2 +- .../resources/accountToken/client/Client.ts | 2 +- .../asyncPassthrough/client/Client.ts | 4 +- .../resources/auditTrail/client/Client.ts | 2 +- .../client/requests/AuditTrailListRequest.ts | 2 +- .../availableActions/client/Client.ts | 2 +- .../resources/deleteAccount/client/Client.ts | 2 +- .../resources/drives/client/Client.ts | 4 +- .../resources/fieldMapping/client/Client.ts | 17 +- .../PatchedEditFieldMappingRequest.ts | 5 +- .../resources/files/client/Client.ts | 10 +- .../resources/folders/client/Client.ts | 8 +- .../resources/forceResync/client/Client.ts | 2 +- .../resources/generateKey/client/Client.ts | 2 +- .../resources/groups/client/Client.ts | 4 +- .../resources/filestorage/resources/index.ts | 2 - .../resources/issues/client/Client.ts | 4 +- .../resources/linkToken/client/Client.ts | 2 +- .../client/requests/EndUserDetailsRequest.ts | 2 + .../resources/linkedAccounts/client/Client.ts | 2 +- .../resources/passthrough/client/Client.ts | 2 +- .../resources/regenerateKey/client/Client.ts | 2 +- .../resources/scopes/client/Client.ts | 6 +- .../resources/selectiveSync/client/Client.ts | 242 ------------------ .../resources/selectiveSync/client/index.ts | 1 - ...ntSelectiveSyncConfigurationListRequest.ts | 18 -- .../requests/SelectiveSyncMetaListRequest.ts | 19 -- .../selectiveSync/client/requests/index.ts | 2 - .../resources/selectiveSync/index.ts | 1 - .../resources/syncStatus/client/Client.ts | 2 +- .../resources/users/client/Client.ts | 4 +- .../webhookReceivers/client/Client.ts | 4 +- .../filestorage/types/AuditLogEvent.ts | 3 + .../types/AuditLogEventEventType.ts | 3 + .../filestorage/types/ConditionSchema.ts | 30 --- .../types/ConditionSchemaConditionType.ts | 18 -- .../filestorage/types/ConditionTypeEnum.ts | 24 -- src/api/resources/filestorage/types/Drive.ts | 3 +- .../filestorage/types/EventTypeEnum.ts | 11 +- src/api/resources/filestorage/types/File_.ts | 3 +- src/api/resources/filestorage/types/Folder.ts | 3 +- src/api/resources/filestorage/types/Group.ts | 3 +- .../types/LinkedAccountCondition.ts | 15 -- .../types/LinkedAccountConditionRequest.ts | 13 - ...LinkedAccountSelectiveSyncConfiguration.ts | 10 - ...ccountSelectiveSyncConfigurationRequest.ts | 10 - .../filestorage/types/OperatorSchema.ts | 10 - .../types/PaginatedConditionSchemaList.ts | 11 - .../resources/filestorage/types/Permission.ts | 3 +- .../filestorage/types/RemoteFieldApi.ts | 1 + .../types/RemoteFieldApiCoverage.ts | 5 + src/api/resources/filestorage/types/User.ts | 3 +- src/api/resources/filestorage/types/index.ts | 10 +- src/api/resources/hris/client/Client.ts | 7 - .../resources/accountDetails/client/Client.ts | 2 +- .../resources/accountToken/client/Client.ts | 2 +- .../asyncPassthrough/client/Client.ts | 4 +- .../resources/auditTrail/client/Client.ts | 2 +- .../client/requests/AuditTrailListRequest.ts | 2 +- .../availableActions/client/Client.ts | 2 +- .../hris/resources/bankInfo/client/Client.ts | 4 +- .../hris/resources/benefits/client/Client.ts | 4 +- .../hris/resources/companies/client/Client.ts | 4 +- .../resources/deleteAccount/client/Client.ts | 2 +- .../resources/dependents/client/Client.ts | 4 +- .../employeePayrollRuns/client/Client.ts | 4 +- .../hris/resources/employees/client/Client.ts | 14 +- .../requests/IgnoreCommonModelRequest.ts | 4 +- .../employerBenefits/client/Client.ts | 4 +- .../resources/employments/client/Client.ts | 4 +- .../resources/fieldMapping/client/Client.ts | 17 +- .../PatchedEditFieldMappingRequest.ts | 5 +- .../resources/forceResync/client/Client.ts | 2 +- .../resources/generateKey/client/Client.ts | 2 +- .../hris/resources/groups/client/Client.ts | 9 +- .../client/requests/GroupsListRequest.ts | 4 + src/api/resources/hris/resources/index.ts | 2 - .../hris/resources/issues/client/Client.ts | 4 +- .../hris/resources/linkToken/client/Client.ts | 2 +- .../client/requests/EndUserDetailsRequest.ts | 2 + .../resources/linkedAccounts/client/Client.ts | 2 +- .../hris/resources/locations/client/Client.ts | 4 +- .../resources/passthrough/client/Client.ts | 2 +- .../hris/resources/payGroups/client/Client.ts | 4 +- .../resources/payrollRuns/client/Client.ts | 4 +- .../resources/regenerateKey/client/Client.ts | 2 +- .../hris/resources/scopes/client/Client.ts | 6 +- .../resources/selectiveSync/client/Client.ts | 235 ----------------- .../resources/selectiveSync/client/index.ts | 1 - ...ntSelectiveSyncConfigurationListRequest.ts | 18 -- .../requests/SelectiveSyncMetaListRequest.ts | 19 -- .../selectiveSync/client/requests/index.ts | 2 - .../hris/resources/selectiveSync/index.ts | 1 - .../resources/syncStatus/client/Client.ts | 2 +- .../hris/resources/teams/client/Client.ts | 4 +- .../hris/resources/timeOff/client/Client.ts | 8 +- .../timeOffBalances/client/Client.ts | 4 +- .../timesheetEntries/client/Client.ts | 8 +- .../webhookReceivers/client/Client.ts | 4 +- src/api/resources/hris/types/AuditLogEvent.ts | 3 + .../hris/types/AuditLogEventEventType.ts | 3 + src/api/resources/hris/types/BankInfo.ts | 3 +- src/api/resources/hris/types/Benefit.ts | 3 +- src/api/resources/hris/types/Company.ts | 3 +- .../resources/hris/types/ConditionSchema.ts | 30 --- .../types/ConditionSchemaConditionType.ts | 18 -- .../resources/hris/types/ConditionTypeEnum.ts | 24 -- src/api/resources/hris/types/Deduction.ts | 3 +- src/api/resources/hris/types/Dependent.ts | 3 +- src/api/resources/hris/types/Earning.ts | 3 +- src/api/resources/hris/types/Employee.ts | 3 +- .../hris/types/EmployeePayrollRun.ts | 3 +- .../resources/hris/types/EmployerBenefit.ts | 3 +- src/api/resources/hris/types/Employment.ts | 3 +- src/api/resources/hris/types/EventTypeEnum.ts | 11 +- src/api/resources/hris/types/Group.ts | 5 +- .../hris/types/LinkedAccountCondition.ts | 15 -- .../types/LinkedAccountConditionRequest.ts | 13 - ...LinkedAccountSelectiveSyncConfiguration.ts | 10 - ...ccountSelectiveSyncConfigurationRequest.ts | 10 - src/api/resources/hris/types/Location.ts | 3 +- .../resources/hris/types/OperatorSchema.ts | 10 - .../types/PaginatedConditionSchemaList.ts | 11 - src/api/resources/hris/types/PayGroup.ts | 3 +- src/api/resources/hris/types/PayrollRun.ts | 3 +- .../resources/hris/types/RemoteFieldApi.ts | 1 + .../hris/types/RemoteFieldApiCoverage.ts | 5 + src/api/resources/hris/types/Tax.ts | 3 +- src/api/resources/hris/types/Team.ts | 3 +- src/api/resources/hris/types/TimeOff.ts | 3 +- .../resources/hris/types/TimeOffBalance.ts | 3 +- .../resources/hris/types/TimesheetEntry.ts | 3 +- src/api/resources/hris/types/index.ts | 10 +- src/api/resources/index.ts | 2 +- src/api/resources/ticketing/client/Client.ts | 7 - .../resources/accountDetails/client/Client.ts | 2 +- .../resources/accountToken/client/Client.ts | 2 +- .../resources/accounts/client/Client.ts | 4 +- .../asyncPassthrough/client/Client.ts | 4 +- .../resources/attachments/client/Client.ts | 10 +- .../resources/auditTrail/client/Client.ts | 2 +- .../client/requests/AuditTrailListRequest.ts | 2 +- .../availableActions/client/Client.ts | 2 +- .../resources/collections/client/Client.ts | 6 +- .../resources/comments/client/Client.ts | 8 +- .../resources/contacts/client/Client.ts | 139 +++++++++- .../TicketingContactEndpointRequest.ts | 23 ++ .../contacts/client/requests/index.ts | 1 + .../resources/deleteAccount/client/Client.ts | 2 +- .../resources/fieldMapping/client/Client.ts | 17 +- .../PatchedEditFieldMappingRequest.ts | 5 +- .../resources/forceResync/client/Client.ts | 2 +- .../resources/generateKey/client/Client.ts | 2 +- .../resources/ticketing/resources/index.ts | 2 - .../resources/issues/client/Client.ts | 4 +- .../resources/linkToken/client/Client.ts | 2 +- .../client/requests/EndUserDetailsRequest.ts | 2 + .../resources/linkedAccounts/client/Client.ts | 2 +- .../resources/passthrough/client/Client.ts | 2 +- .../resources/projects/client/Client.ts | 6 +- .../resources/regenerateKey/client/Client.ts | 2 +- .../resources/roles/client/Client.ts | 4 +- .../resources/scopes/client/Client.ts | 6 +- .../resources/selectiveSync/client/Client.ts | 238 ----------------- .../resources/selectiveSync/client/index.ts | 1 - ...ntSelectiveSyncConfigurationListRequest.ts | 18 -- .../requests/SelectiveSyncMetaListRequest.ts | 19 -- .../selectiveSync/client/requests/index.ts | 2 - .../resources/selectiveSync/index.ts | 1 - .../resources/syncStatus/client/Client.ts | 2 +- .../ticketing/resources/tags/client/Client.ts | 4 +- .../resources/teams/client/Client.ts | 4 +- .../resources/tickets/client/Client.ts | 16 +- .../resources/users/client/Client.ts | 4 +- .../webhookReceivers/client/Client.ts | 4 +- src/api/resources/ticketing/types/Account.ts | 3 +- .../resources/ticketing/types/Attachment.ts | 3 +- .../ticketing/types/AuditLogEvent.ts | 3 + .../ticketing/types/AuditLogEventEventType.ts | 3 + .../resources/ticketing/types/Collection.ts | 3 +- src/api/resources/ticketing/types/Comment.ts | 3 +- .../ticketing/types/ConditionSchema.ts | 30 --- .../types/ConditionSchemaConditionType.ts | 18 -- .../ticketing/types/ConditionTypeEnum.ts | 24 -- src/api/resources/ticketing/types/Contact.ts | 3 +- .../ticketing/types/ContactRequest.ts | 31 +++ .../ticketing/types/ContactRequestAccount.ts | 10 + .../ticketing/types/EventTypeEnum.ts | 11 +- .../ticketing/types/LinkedAccountCondition.ts | 15 -- .../types/LinkedAccountConditionRequest.ts | 13 - ...LinkedAccountSelectiveSyncConfiguration.ts | 10 - ...ccountSelectiveSyncConfigurationRequest.ts | 10 - .../ticketing/types/OperatorSchema.ts | 10 - .../types/PaginatedConditionSchemaList.ts | 11 - src/api/resources/ticketing/types/Project.ts | 3 +- .../ticketing/types/RemoteFieldApi.ts | 1 + .../ticketing/types/RemoteFieldApiCoverage.ts | 5 + src/api/resources/ticketing/types/Role.ts | 3 +- src/api/resources/ticketing/types/Tag.ts | 3 +- src/api/resources/ticketing/types/Team.ts | 3 +- src/api/resources/ticketing/types/Ticket.ts | 3 +- .../types/TicketingContactResponse.ts | 12 + src/api/resources/ticketing/types/User.ts | 3 +- src/api/resources/ticketing/types/index.ts | 13 +- .../resources/accounting/resources/index.ts | 2 - .../client/requests/EndUserDetailsRequest.ts | 5 + .../client/configurationsList.ts | 20 -- .../client/configurationsUpdate.ts | 20 -- .../resources/selectiveSync/client/index.ts | 3 - ...ntSelectiveSyncConfigurationListRequest.ts | 28 -- .../selectiveSync/client/requests/index.ts | 1 - .../resources/selectiveSync/index.ts | 1 - .../accounting/types/ConditionSchema.ts | 37 --- .../types/ConditionSchemaConditionType.ts | 19 -- .../accounting/types/ConditionTypeEnum.ts | 16 -- .../accounting/types/CreditNoteLineItem.ts | 2 - .../accounting/types/EventTypeEnum.ts | 8 +- .../types/LinkedAccountCondition.ts | 30 --- .../types/LinkedAccountConditionRequest.ts | 26 -- ...LinkedAccountSelectiveSyncConfiguration.ts | 27 -- ...ccountSelectiveSyncConfigurationRequest.ts | 27 -- .../accounting/types/OperatorSchema.ts | 22 -- .../types/PaginatedConditionSchemaList.ts | 26 -- .../accounting/types/PatchedPaymentRequest.ts | 4 + .../types/PatchedPaymentRequestType.ts} | 12 +- .../resources/accounting/types/Payment.ts | 2 + .../accounting/types/PaymentRequest.ts | 2 + .../types/PaymentRequestType.ts} | 12 +- .../types/PaymentType.ts} | 12 +- .../accounting/types/PaymentTypeEnum.ts | 16 ++ .../accounting/types/RemoteFieldApi.ts | 4 + .../types/RemoteFieldApiCoverage.ts | 16 ++ .../resources/accounting/types/index.ts | 14 +- .../resources/ats/resources/index.ts | 2 - .../client/requests/EndUserDetailsRequest.ts | 5 + .../client/configurationsList.ts | 20 -- .../client/configurationsUpdate.ts | 20 -- .../resources/selectiveSync/client/index.ts | 3 - ...ntSelectiveSyncConfigurationListRequest.ts | 27 -- .../selectiveSync/client/requests/index.ts | 1 - .../ats/resources/selectiveSync/index.ts | 1 - .../resources/ats/types/ConditionSchema.ts | 37 --- .../resources/ats/types/ConditionTypeEnum.ts | 16 -- .../resources/ats/types/EventTypeEnum.ts | 8 +- .../ats/types/LinkedAccountCondition.ts | 30 --- .../types/LinkedAccountConditionRequest.ts | 26 -- ...LinkedAccountSelectiveSyncConfiguration.ts | 25 -- ...ccountSelectiveSyncConfigurationRequest.ts | 25 -- .../resources/ats/types/OperatorSchema.ts | 22 -- .../ats/types/PaginatedConditionSchemaList.ts | 26 -- .../resources/ats/types/RemoteFieldApi.ts | 2 + .../ats/types/RemoteFieldApiCoverage.ts | 16 ++ .../resources/ats/types/index.ts | 10 +- .../resources/crm/resources/index.ts | 2 - .../client/requests/EndUserDetailsRequest.ts | 5 + .../client/configurationsList.ts | 20 -- .../client/configurationsUpdate.ts | 20 -- .../resources/selectiveSync/client/index.ts | 3 - ...ntSelectiveSyncConfigurationListRequest.ts | 27 -- .../selectiveSync/client/requests/index.ts | 1 - .../crm/resources/selectiveSync/index.ts | 1 - .../resources/crm/types/AccountRequest.ts | 4 + .../resources/crm/types/ConditionSchema.ts | 37 --- .../resources/crm/types/ConditionTypeEnum.ts | 16 -- .../resources/crm/types/EventTypeEnum.ts | 8 +- .../crm/types/LinkedAccountCondition.ts | 30 --- .../types/LinkedAccountConditionRequest.ts | 26 -- ...LinkedAccountSelectiveSyncConfiguration.ts | 25 -- ...ccountSelectiveSyncConfigurationRequest.ts | 25 -- .../resources/crm/types/OperatorSchema.ts | 22 -- .../crm/types/PaginatedConditionSchemaList.ts | 26 -- .../crm/types/PatchedAccountRequest.ts | 4 + .../resources/crm/types/RemoteFieldApi.ts | 2 + .../crm/types/RemoteFieldApiCoverage.ts | 16 ++ .../resources/crm/types/index.ts | 10 +- .../resources/filestorage/resources/index.ts | 2 - .../client/requests/EndUserDetailsRequest.ts | 5 + .../client/configurationsList.ts | 20 -- .../client/configurationsUpdate.ts | 20 -- .../resources/selectiveSync/client/index.ts | 3 - ...ntSelectiveSyncConfigurationListRequest.ts | 28 -- .../selectiveSync/client/requests/index.ts | 1 - .../resources/selectiveSync/index.ts | 1 - .../filestorage/types/ConditionSchema.ts | 37 --- .../types/ConditionSchemaConditionType.ts | 19 -- .../filestorage/types/ConditionTypeEnum.ts | 16 -- .../filestorage/types/EventTypeEnum.ts | 8 +- .../types/LinkedAccountCondition.ts | 30 --- .../types/LinkedAccountConditionRequest.ts | 26 -- ...LinkedAccountSelectiveSyncConfiguration.ts | 27 -- ...ccountSelectiveSyncConfigurationRequest.ts | 27 -- .../filestorage/types/OperatorSchema.ts | 22 -- .../types/PaginatedConditionSchemaList.ts | 26 -- .../filestorage/types/RemoteFieldApi.ts | 4 + .../types/RemoteFieldApiCoverage.ts | 16 ++ .../resources/filestorage/types/index.ts | 10 +- .../resources/hris/resources/index.ts | 2 - .../client/requests/EndUserDetailsRequest.ts | 5 + .../client/configurationsList.ts | 20 -- .../client/configurationsUpdate.ts | 20 -- .../resources/selectiveSync/client/index.ts | 3 - ...ntSelectiveSyncConfigurationListRequest.ts | 27 -- .../selectiveSync/client/requests/index.ts | 1 - .../hris/resources/selectiveSync/index.ts | 1 - .../resources/hris/types/ConditionSchema.ts | 37 --- .../resources/hris/types/ConditionTypeEnum.ts | 16 -- .../resources/hris/types/EventTypeEnum.ts | 8 +- .../resources/hris/types/Group.ts | 5 + .../hris/types/LinkedAccountCondition.ts | 30 --- .../types/LinkedAccountConditionRequest.ts | 26 -- ...LinkedAccountSelectiveSyncConfiguration.ts | 25 -- ...ccountSelectiveSyncConfigurationRequest.ts | 25 -- .../resources/hris/types/OperatorSchema.ts | 22 -- .../types/PaginatedConditionSchemaList.ts | 26 -- .../resources/hris/types/RemoteFieldApi.ts | 2 + .../hris/types/RemoteFieldApiCoverage.ts | 16 ++ .../resources/hris/types/index.ts | 10 +- src/serialization/resources/index.ts | 2 +- .../resources/contacts}/client/index.ts | 0 .../TicketingContactEndpointRequest.ts | 20 ++ .../contacts/client/requests/index.ts | 1 + .../ticketing/resources/contacts}/index.ts | 0 .../resources/ticketing/resources/index.ts | 4 +- .../client/requests/EndUserDetailsRequest.ts | 5 + .../client/configurationsList.ts | 20 -- .../client/configurationsUpdate.ts | 20 -- .../resources/selectiveSync/client/index.ts | 3 - ...ntSelectiveSyncConfigurationListRequest.ts | 27 -- .../selectiveSync/client/requests/index.ts | 1 - .../resources/selectiveSync/index.ts | 1 - .../ticketing/types/ConditionSchema.ts | 37 --- .../types/ConditionSchemaConditionType.ts | 19 -- .../ticketing/types/ConditionTypeEnum.ts | 16 -- .../ticketing/types/ContactRequest.ts | 38 +++ .../ticketing/types/ContactRequestAccount.ts | 19 ++ .../ticketing/types/EventTypeEnum.ts | 8 +- .../ticketing/types/LinkedAccountCondition.ts | 30 --- .../types/LinkedAccountConditionRequest.ts | 26 -- ...LinkedAccountSelectiveSyncConfiguration.ts | 27 -- ...ccountSelectiveSyncConfigurationRequest.ts | 27 -- .../ticketing/types/OperatorSchema.ts | 22 -- .../types/PaginatedConditionSchemaList.ts | 26 -- .../ticketing/types/RemoteFieldApi.ts | 4 + .../ticketing/types/RemoteFieldApiCoverage.ts | 16 ++ .../types/TicketingContactResponse.ts | 32 +++ .../resources/ticketing/types/index.ts | 13 +- yarn.lock | 6 +- 611 files changed, 1527 insertions(+), 5083 deletions(-) delete mode 100644 src/api/resources/accounting/resources/selectiveSync/client/Client.ts delete mode 100644 src/api/resources/accounting/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/api/resources/accounting/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts delete mode 100644 src/api/resources/accounting/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/api/resources/accounting/types/ConditionSchema.ts delete mode 100644 src/api/resources/accounting/types/ConditionSchemaConditionType.ts delete mode 100644 src/api/resources/accounting/types/ConditionTypeEnum.ts delete mode 100644 src/api/resources/accounting/types/LinkedAccountCondition.ts delete mode 100644 src/api/resources/accounting/types/LinkedAccountConditionRequest.ts delete mode 100644 src/api/resources/accounting/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/api/resources/accounting/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/api/resources/accounting/types/OperatorSchema.ts delete mode 100644 src/api/resources/accounting/types/PaginatedConditionSchemaList.ts create mode 100644 src/api/resources/accounting/types/PatchedPaymentRequestType.ts create mode 100644 src/api/resources/accounting/types/PaymentRequestType.ts create mode 100644 src/api/resources/accounting/types/PaymentType.ts create mode 100644 src/api/resources/accounting/types/PaymentTypeEnum.ts create mode 100644 src/api/resources/accounting/types/RemoteFieldApiCoverage.ts delete mode 100644 src/api/resources/ats/resources/selectiveSync/client/Client.ts delete mode 100644 src/api/resources/ats/resources/selectiveSync/client/index.ts delete mode 100644 src/api/resources/ats/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/api/resources/ats/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts delete mode 100644 src/api/resources/ats/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/api/resources/ats/resources/selectiveSync/index.ts delete mode 100644 src/api/resources/ats/types/ConditionSchema.ts delete mode 100644 src/api/resources/ats/types/ConditionSchemaConditionType.ts delete mode 100644 src/api/resources/ats/types/ConditionTypeEnum.ts delete mode 100644 src/api/resources/ats/types/LinkedAccountCondition.ts delete mode 100644 src/api/resources/ats/types/LinkedAccountConditionRequest.ts delete mode 100644 src/api/resources/ats/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/api/resources/ats/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/api/resources/ats/types/OperatorSchema.ts delete mode 100644 src/api/resources/ats/types/PaginatedConditionSchemaList.ts create mode 100644 src/api/resources/ats/types/RemoteFieldApiCoverage.ts delete mode 100644 src/api/resources/crm/resources/selectiveSync/client/Client.ts delete mode 100644 src/api/resources/crm/resources/selectiveSync/client/index.ts delete mode 100644 src/api/resources/crm/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/api/resources/crm/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts delete mode 100644 src/api/resources/crm/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/api/resources/crm/resources/selectiveSync/index.ts delete mode 100644 src/api/resources/crm/types/ConditionSchema.ts delete mode 100644 src/api/resources/crm/types/ConditionSchemaConditionType.ts delete mode 100644 src/api/resources/crm/types/ConditionTypeEnum.ts delete mode 100644 src/api/resources/crm/types/LinkedAccountCondition.ts delete mode 100644 src/api/resources/crm/types/LinkedAccountConditionRequest.ts delete mode 100644 src/api/resources/crm/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/api/resources/crm/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/api/resources/crm/types/OperatorSchema.ts delete mode 100644 src/api/resources/crm/types/PaginatedConditionSchemaList.ts create mode 100644 src/api/resources/crm/types/RemoteFieldApiCoverage.ts delete mode 100644 src/api/resources/filestorage/resources/selectiveSync/client/Client.ts delete mode 100644 src/api/resources/filestorage/resources/selectiveSync/client/index.ts delete mode 100644 src/api/resources/filestorage/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/api/resources/filestorage/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts delete mode 100644 src/api/resources/filestorage/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/api/resources/filestorage/resources/selectiveSync/index.ts delete mode 100644 src/api/resources/filestorage/types/ConditionSchema.ts delete mode 100644 src/api/resources/filestorage/types/ConditionSchemaConditionType.ts delete mode 100644 src/api/resources/filestorage/types/ConditionTypeEnum.ts delete mode 100644 src/api/resources/filestorage/types/LinkedAccountCondition.ts delete mode 100644 src/api/resources/filestorage/types/LinkedAccountConditionRequest.ts delete mode 100644 src/api/resources/filestorage/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/api/resources/filestorage/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/api/resources/filestorage/types/OperatorSchema.ts delete mode 100644 src/api/resources/filestorage/types/PaginatedConditionSchemaList.ts create mode 100644 src/api/resources/filestorage/types/RemoteFieldApiCoverage.ts delete mode 100644 src/api/resources/hris/resources/selectiveSync/client/Client.ts delete mode 100644 src/api/resources/hris/resources/selectiveSync/client/index.ts delete mode 100644 src/api/resources/hris/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/api/resources/hris/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts delete mode 100644 src/api/resources/hris/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/api/resources/hris/resources/selectiveSync/index.ts delete mode 100644 src/api/resources/hris/types/ConditionSchema.ts delete mode 100644 src/api/resources/hris/types/ConditionSchemaConditionType.ts delete mode 100644 src/api/resources/hris/types/ConditionTypeEnum.ts delete mode 100644 src/api/resources/hris/types/LinkedAccountCondition.ts delete mode 100644 src/api/resources/hris/types/LinkedAccountConditionRequest.ts delete mode 100644 src/api/resources/hris/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/api/resources/hris/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/api/resources/hris/types/OperatorSchema.ts delete mode 100644 src/api/resources/hris/types/PaginatedConditionSchemaList.ts create mode 100644 src/api/resources/hris/types/RemoteFieldApiCoverage.ts create mode 100644 src/api/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts delete mode 100644 src/api/resources/ticketing/resources/selectiveSync/client/Client.ts delete mode 100644 src/api/resources/ticketing/resources/selectiveSync/client/index.ts delete mode 100644 src/api/resources/ticketing/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/api/resources/ticketing/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts delete mode 100644 src/api/resources/ticketing/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/api/resources/ticketing/resources/selectiveSync/index.ts delete mode 100644 src/api/resources/ticketing/types/ConditionSchema.ts delete mode 100644 src/api/resources/ticketing/types/ConditionSchemaConditionType.ts delete mode 100644 src/api/resources/ticketing/types/ConditionTypeEnum.ts create mode 100644 src/api/resources/ticketing/types/ContactRequest.ts create mode 100644 src/api/resources/ticketing/types/ContactRequestAccount.ts delete mode 100644 src/api/resources/ticketing/types/LinkedAccountCondition.ts delete mode 100644 src/api/resources/ticketing/types/LinkedAccountConditionRequest.ts delete mode 100644 src/api/resources/ticketing/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/api/resources/ticketing/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/api/resources/ticketing/types/OperatorSchema.ts delete mode 100644 src/api/resources/ticketing/types/PaginatedConditionSchemaList.ts create mode 100644 src/api/resources/ticketing/types/RemoteFieldApiCoverage.ts create mode 100644 src/api/resources/ticketing/types/TicketingContactResponse.ts delete mode 100644 src/serialization/resources/accounting/resources/selectiveSync/client/configurationsList.ts delete mode 100644 src/serialization/resources/accounting/resources/selectiveSync/client/configurationsUpdate.ts delete mode 100644 src/serialization/resources/accounting/resources/selectiveSync/client/index.ts delete mode 100644 src/serialization/resources/accounting/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/serialization/resources/accounting/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/serialization/resources/accounting/resources/selectiveSync/index.ts delete mode 100644 src/serialization/resources/accounting/types/ConditionSchema.ts delete mode 100644 src/serialization/resources/accounting/types/ConditionSchemaConditionType.ts delete mode 100644 src/serialization/resources/accounting/types/ConditionTypeEnum.ts delete mode 100644 src/serialization/resources/accounting/types/LinkedAccountCondition.ts delete mode 100644 src/serialization/resources/accounting/types/LinkedAccountConditionRequest.ts delete mode 100644 src/serialization/resources/accounting/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/serialization/resources/accounting/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/serialization/resources/accounting/types/OperatorSchema.ts delete mode 100644 src/serialization/resources/accounting/types/PaginatedConditionSchemaList.ts rename src/serialization/resources/{hris/types/ConditionSchemaConditionType.ts => accounting/types/PatchedPaymentRequestType.ts} (51%) rename src/serialization/resources/{crm/types/ConditionSchemaConditionType.ts => accounting/types/PaymentRequestType.ts} (52%) rename src/serialization/resources/{ats/types/ConditionSchemaConditionType.ts => accounting/types/PaymentType.ts} (52%) create mode 100644 src/serialization/resources/accounting/types/PaymentTypeEnum.ts create mode 100644 src/serialization/resources/accounting/types/RemoteFieldApiCoverage.ts delete mode 100644 src/serialization/resources/ats/resources/selectiveSync/client/configurationsList.ts delete mode 100644 src/serialization/resources/ats/resources/selectiveSync/client/configurationsUpdate.ts delete mode 100644 src/serialization/resources/ats/resources/selectiveSync/client/index.ts delete mode 100644 src/serialization/resources/ats/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/serialization/resources/ats/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/serialization/resources/ats/resources/selectiveSync/index.ts delete mode 100644 src/serialization/resources/ats/types/ConditionSchema.ts delete mode 100644 src/serialization/resources/ats/types/ConditionTypeEnum.ts delete mode 100644 src/serialization/resources/ats/types/LinkedAccountCondition.ts delete mode 100644 src/serialization/resources/ats/types/LinkedAccountConditionRequest.ts delete mode 100644 src/serialization/resources/ats/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/serialization/resources/ats/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/serialization/resources/ats/types/OperatorSchema.ts delete mode 100644 src/serialization/resources/ats/types/PaginatedConditionSchemaList.ts create mode 100644 src/serialization/resources/ats/types/RemoteFieldApiCoverage.ts delete mode 100644 src/serialization/resources/crm/resources/selectiveSync/client/configurationsList.ts delete mode 100644 src/serialization/resources/crm/resources/selectiveSync/client/configurationsUpdate.ts delete mode 100644 src/serialization/resources/crm/resources/selectiveSync/client/index.ts delete mode 100644 src/serialization/resources/crm/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/serialization/resources/crm/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/serialization/resources/crm/resources/selectiveSync/index.ts delete mode 100644 src/serialization/resources/crm/types/ConditionSchema.ts delete mode 100644 src/serialization/resources/crm/types/ConditionTypeEnum.ts delete mode 100644 src/serialization/resources/crm/types/LinkedAccountCondition.ts delete mode 100644 src/serialization/resources/crm/types/LinkedAccountConditionRequest.ts delete mode 100644 src/serialization/resources/crm/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/serialization/resources/crm/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/serialization/resources/crm/types/OperatorSchema.ts delete mode 100644 src/serialization/resources/crm/types/PaginatedConditionSchemaList.ts create mode 100644 src/serialization/resources/crm/types/RemoteFieldApiCoverage.ts delete mode 100644 src/serialization/resources/filestorage/resources/selectiveSync/client/configurationsList.ts delete mode 100644 src/serialization/resources/filestorage/resources/selectiveSync/client/configurationsUpdate.ts delete mode 100644 src/serialization/resources/filestorage/resources/selectiveSync/client/index.ts delete mode 100644 src/serialization/resources/filestorage/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/serialization/resources/filestorage/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/serialization/resources/filestorage/resources/selectiveSync/index.ts delete mode 100644 src/serialization/resources/filestorage/types/ConditionSchema.ts delete mode 100644 src/serialization/resources/filestorage/types/ConditionSchemaConditionType.ts delete mode 100644 src/serialization/resources/filestorage/types/ConditionTypeEnum.ts delete mode 100644 src/serialization/resources/filestorage/types/LinkedAccountCondition.ts delete mode 100644 src/serialization/resources/filestorage/types/LinkedAccountConditionRequest.ts delete mode 100644 src/serialization/resources/filestorage/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/serialization/resources/filestorage/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/serialization/resources/filestorage/types/OperatorSchema.ts delete mode 100644 src/serialization/resources/filestorage/types/PaginatedConditionSchemaList.ts create mode 100644 src/serialization/resources/filestorage/types/RemoteFieldApiCoverage.ts delete mode 100644 src/serialization/resources/hris/resources/selectiveSync/client/configurationsList.ts delete mode 100644 src/serialization/resources/hris/resources/selectiveSync/client/configurationsUpdate.ts delete mode 100644 src/serialization/resources/hris/resources/selectiveSync/client/index.ts delete mode 100644 src/serialization/resources/hris/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/serialization/resources/hris/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/serialization/resources/hris/resources/selectiveSync/index.ts delete mode 100644 src/serialization/resources/hris/types/ConditionSchema.ts delete mode 100644 src/serialization/resources/hris/types/ConditionTypeEnum.ts delete mode 100644 src/serialization/resources/hris/types/LinkedAccountCondition.ts delete mode 100644 src/serialization/resources/hris/types/LinkedAccountConditionRequest.ts delete mode 100644 src/serialization/resources/hris/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/serialization/resources/hris/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/serialization/resources/hris/types/OperatorSchema.ts delete mode 100644 src/serialization/resources/hris/types/PaginatedConditionSchemaList.ts create mode 100644 src/serialization/resources/hris/types/RemoteFieldApiCoverage.ts rename src/{api/resources/accounting/resources/selectiveSync => serialization/resources/ticketing/resources/contacts}/client/index.ts (100%) create mode 100644 src/serialization/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts create mode 100644 src/serialization/resources/ticketing/resources/contacts/client/requests/index.ts rename src/{api/resources/accounting/resources/selectiveSync => serialization/resources/ticketing/resources/contacts}/index.ts (100%) delete mode 100644 src/serialization/resources/ticketing/resources/selectiveSync/client/configurationsList.ts delete mode 100644 src/serialization/resources/ticketing/resources/selectiveSync/client/configurationsUpdate.ts delete mode 100644 src/serialization/resources/ticketing/resources/selectiveSync/client/index.ts delete mode 100644 src/serialization/resources/ticketing/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts delete mode 100644 src/serialization/resources/ticketing/resources/selectiveSync/client/requests/index.ts delete mode 100644 src/serialization/resources/ticketing/resources/selectiveSync/index.ts delete mode 100644 src/serialization/resources/ticketing/types/ConditionSchema.ts delete mode 100644 src/serialization/resources/ticketing/types/ConditionSchemaConditionType.ts delete mode 100644 src/serialization/resources/ticketing/types/ConditionTypeEnum.ts create mode 100644 src/serialization/resources/ticketing/types/ContactRequest.ts create mode 100644 src/serialization/resources/ticketing/types/ContactRequestAccount.ts delete mode 100644 src/serialization/resources/ticketing/types/LinkedAccountCondition.ts delete mode 100644 src/serialization/resources/ticketing/types/LinkedAccountConditionRequest.ts delete mode 100644 src/serialization/resources/ticketing/types/LinkedAccountSelectiveSyncConfiguration.ts delete mode 100644 src/serialization/resources/ticketing/types/LinkedAccountSelectiveSyncConfigurationRequest.ts delete mode 100644 src/serialization/resources/ticketing/types/OperatorSchema.ts delete mode 100644 src/serialization/resources/ticketing/types/PaginatedConditionSchemaList.ts create mode 100644 src/serialization/resources/ticketing/types/RemoteFieldApiCoverage.ts create mode 100644 src/serialization/resources/ticketing/types/TicketingContactResponse.ts diff --git a/package.json b/package.json index 25db7dc5..08afc9a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mergeapi/merge-node-client", - "version": "1.0.7", + "version": "1.0.8", "private": false, "repository": "https://github.com/merge-api/merge-node-client", "main": "./index.js", diff --git a/src/Client.ts b/src/Client.ts index ba1dc67b..3bcb5da4 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -6,8 +6,8 @@ import * as environments from "./environments"; import * as core from "./core"; import { Filestorage } from "./api/resources/filestorage/client/Client"; import { Crm } from "./api/resources/crm/client/Client"; -import { Ticketing } from "./api/resources/ticketing/client/Client"; import { Hris } from "./api/resources/hris/client/Client"; +import { Ticketing } from "./api/resources/ticketing/client/Client"; import { Ats } from "./api/resources/ats/client/Client"; import { Accounting } from "./api/resources/accounting/client/Client"; @@ -39,18 +39,18 @@ export class MergeClient { return (this._crm ??= new Crm(this._options)); } - protected _ticketing: Ticketing | undefined; - - public get ticketing(): Ticketing { - return (this._ticketing ??= new Ticketing(this._options)); - } - protected _hris: Hris | undefined; public get hris(): Hris { return (this._hris ??= new Hris(this._options)); } + protected _ticketing: Ticketing | undefined; + + public get ticketing(): Ticketing { + return (this._ticketing ??= new Ticketing(this._options)); + } + protected _ats: Ats | undefined; public get ats(): Ats { diff --git a/src/api/resources/accounting/client/Client.ts b/src/api/resources/accounting/client/Client.ts index c9be1d60..58d2f760 100644 --- a/src/api/resources/accounting/client/Client.ts +++ b/src/api/resources/accounting/client/Client.ts @@ -35,7 +35,6 @@ import { Payments } from "../resources/payments/client/Client"; import { PhoneNumbers } from "../resources/phoneNumbers/client/Client"; import { PurchaseOrders } from "../resources/purchaseOrders/client/Client"; import { RegenerateKey } from "../resources/regenerateKey/client/Client"; -import { SelectiveSync } from "../resources/selectiveSync/client/Client"; import { SyncStatus } from "../resources/syncStatus/client/Client"; import { ForceResync } from "../resources/forceResync/client/Client"; import { TaxRates } from "../resources/taxRates/client/Client"; @@ -246,12 +245,6 @@ export class Accounting { return (this._regenerateKey ??= new RegenerateKey(this._options)); } - protected _selectiveSync: SelectiveSync | undefined; - - public get selectiveSync(): SelectiveSync { - return (this._selectiveSync ??= new SelectiveSync(this._options)); - } - protected _syncStatus: SyncStatus | undefined; public get syncStatus(): SyncStatus { diff --git a/src/api/resources/accounting/resources/accountDetails/client/Client.ts b/src/api/resources/accounting/resources/accountDetails/client/Client.ts index 63cb1b28..3f0ba5aa 100644 --- a/src/api/resources/accounting/resources/accountDetails/client/Client.ts +++ b/src/api/resources/accounting/resources/accountDetails/client/Client.ts @@ -46,7 +46,7 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/accountToken/client/Client.ts b/src/api/resources/accounting/resources/accountToken/client/Client.ts index 3a0f388a..92a122d1 100644 --- a/src/api/resources/accounting/resources/accountToken/client/Client.ts +++ b/src/api/resources/accounting/resources/accountToken/client/Client.ts @@ -49,7 +49,7 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts b/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts index 67b6bae9..ea17c569 100644 --- a/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts +++ b/src/api/resources/accounting/resources/accountingPeriods/client/Client.ts @@ -67,7 +67,7 @@ export class AccountingPeriods { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -136,7 +136,7 @@ export class AccountingPeriods { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/accounts/client/Client.ts b/src/api/resources/accounting/resources/accounts/client/Client.ts index a4736a65..395fce5c 100644 --- a/src/api/resources/accounting/resources/accounts/client/Client.ts +++ b/src/api/resources/accounting/resources/accounts/client/Client.ts @@ -117,7 +117,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -191,7 +191,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -275,7 +275,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -334,7 +334,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/addresses/client/Client.ts b/src/api/resources/accounting/resources/addresses/client/Client.ts index 13d9238f..d4d39eaf 100644 --- a/src/api/resources/accounting/resources/addresses/client/Client.ts +++ b/src/api/resources/accounting/resources/addresses/client/Client.ts @@ -64,7 +64,7 @@ export class Addresses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts b/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts index dc0bbe25..c12fccd3 100644 --- a/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/accounting/resources/asyncPassthrough/client/Client.ts @@ -52,7 +52,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.DataPassthroughRequest.jsonOrThrow(request, { @@ -116,7 +116,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/attachments/client/Client.ts b/src/api/resources/accounting/resources/attachments/client/Client.ts index 622de05a..29218a50 100644 --- a/src/api/resources/accounting/resources/attachments/client/Client.ts +++ b/src/api/resources/accounting/resources/attachments/client/Client.ts @@ -102,7 +102,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -176,7 +176,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -248,7 +248,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -307,7 +307,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/auditTrail/client/Client.ts b/src/api/resources/accounting/resources/auditTrail/client/Client.ts index 7d105161..1b99a608 100644 --- a/src/api/resources/accounting/resources/auditTrail/client/Client.ts +++ b/src/api/resources/accounting/resources/auditTrail/client/Client.ts @@ -75,7 +75,7 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 6e49b389..a9bf6e8a 100644 --- a/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/accounting/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED` */ eventType?: string; /** diff --git a/src/api/resources/accounting/resources/availableActions/client/Client.ts b/src/api/resources/accounting/resources/availableActions/client/Client.ts index 176c344e..6b40ed6b 100644 --- a/src/api/resources/accounting/resources/availableActions/client/Client.ts +++ b/src/api/resources/accounting/resources/availableActions/client/Client.ts @@ -48,7 +48,7 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/balanceSheets/client/Client.ts b/src/api/resources/accounting/resources/balanceSheets/client/Client.ts index d9f6f8ef..84ffb211 100644 --- a/src/api/resources/accounting/resources/balanceSheets/client/Client.ts +++ b/src/api/resources/accounting/resources/balanceSheets/client/Client.ts @@ -107,7 +107,7 @@ export class BalanceSheets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class BalanceSheets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts b/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts index 79f1fdfa..943e430f 100644 --- a/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts +++ b/src/api/resources/accounting/resources/cashFlowStatements/client/Client.ts @@ -107,7 +107,7 @@ export class CashFlowStatements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class CashFlowStatements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/companyInfo/client/Client.ts b/src/api/resources/accounting/resources/companyInfo/client/Client.ts index ecb1b8db..dedc1685 100644 --- a/src/api/resources/accounting/resources/companyInfo/client/Client.ts +++ b/src/api/resources/accounting/resources/companyInfo/client/Client.ts @@ -102,7 +102,7 @@ export class CompanyInfo { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -175,7 +175,7 @@ export class CompanyInfo { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/contacts/client/Client.ts b/src/api/resources/accounting/resources/contacts/client/Client.ts index 089460ad..b624ca9b 100644 --- a/src/api/resources/accounting/resources/contacts/client/Client.ts +++ b/src/api/resources/accounting/resources/contacts/client/Client.ts @@ -127,7 +127,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -201,7 +201,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -285,7 +285,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -344,7 +344,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/creditNotes/client/Client.ts b/src/api/resources/accounting/resources/creditNotes/client/Client.ts index 3f199280..49c1f2c5 100644 --- a/src/api/resources/accounting/resources/creditNotes/client/Client.ts +++ b/src/api/resources/accounting/resources/creditNotes/client/Client.ts @@ -127,7 +127,7 @@ export class CreditNotes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -208,7 +208,7 @@ export class CreditNotes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/deleteAccount/client/Client.ts b/src/api/resources/accounting/resources/deleteAccount/client/Client.ts index 3a5f2065..38e74a78 100644 --- a/src/api/resources/accounting/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/accounting/resources/deleteAccount/client/Client.ts @@ -44,7 +44,7 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/expenses/client/Client.ts b/src/api/resources/accounting/resources/expenses/client/Client.ts index 42082807..2673c24d 100644 --- a/src/api/resources/accounting/resources/expenses/client/Client.ts +++ b/src/api/resources/accounting/resources/expenses/client/Client.ts @@ -117,7 +117,7 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -191,7 +191,7 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -267,7 +267,7 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -326,7 +326,7 @@ export class Expenses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/fieldMapping/client/Client.ts b/src/api/resources/accounting/resources/fieldMapping/client/Client.ts index 09faab6e..03ad5d53 100644 --- a/src/api/resources/accounting/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/accounting/resources/fieldMapping/client/Client.ts @@ -48,7 +48,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -116,7 +116,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.CreateFieldMappingRequest.jsonOrThrow(request, { @@ -180,7 +180,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -221,10 +221,7 @@ export class FieldMapping { * 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. * * @example - * await merge.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * }) + * await merge.accounting.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", {}) */ public async fieldMappingsPartialUpdate( fieldMappingId: string, @@ -245,7 +242,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.PatchedEditFieldMappingRequest.jsonOrThrow(request, { @@ -319,7 +316,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -380,7 +377,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index 671f9e4a..b1e31108 100644 --- a/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/accounting/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -4,10 +4,7 @@ /** * @example - * { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * } + * {} */ export interface PatchedEditFieldMappingRequest { /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ diff --git a/src/api/resources/accounting/resources/forceResync/client/Client.ts b/src/api/resources/accounting/resources/forceResync/client/Client.ts index db5b2b62..54b065e1 100644 --- a/src/api/resources/accounting/resources/forceResync/client/Client.ts +++ b/src/api/resources/accounting/resources/forceResync/client/Client.ts @@ -48,7 +48,7 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/generateKey/client/Client.ts b/src/api/resources/accounting/resources/generateKey/client/Client.ts index 577a2594..708a5fce 100644 --- a/src/api/resources/accounting/resources/generateKey/client/Client.ts +++ b/src/api/resources/accounting/resources/generateKey/client/Client.ts @@ -51,7 +51,7 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.GenerateRemoteKeyRequest.jsonOrThrow(request, { diff --git a/src/api/resources/accounting/resources/incomeStatements/client/Client.ts b/src/api/resources/accounting/resources/incomeStatements/client/Client.ts index f3d6dd08..afee83a4 100644 --- a/src/api/resources/accounting/resources/incomeStatements/client/Client.ts +++ b/src/api/resources/accounting/resources/incomeStatements/client/Client.ts @@ -107,7 +107,7 @@ export class IncomeStatements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class IncomeStatements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/index.ts b/src/api/resources/accounting/resources/index.ts index 62d17256..e74f5d4a 100644 --- a/src/api/resources/accounting/resources/index.ts +++ b/src/api/resources/accounting/resources/index.ts @@ -45,7 +45,6 @@ export * as linkToken from "./linkToken"; export * as passthrough from "./passthrough"; export * as phoneNumbers from "./phoneNumbers"; export * as regenerateKey from "./regenerateKey"; -export * as selectiveSync from "./selectiveSync"; export * as syncStatus from "./syncStatus"; export * as forceResync from "./forceResync"; export * as taxRates from "./taxRates"; @@ -76,7 +75,6 @@ export * from "./payments/client/requests"; export * from "./phoneNumbers/client/requests"; export * from "./purchaseOrders/client/requests"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./syncStatus/client/requests"; export * from "./taxRates/client/requests"; export * from "./trackingCategories/client/requests"; diff --git a/src/api/resources/accounting/resources/invoices/client/Client.ts b/src/api/resources/accounting/resources/invoices/client/Client.ts index fe5c788e..f1f81c04 100644 --- a/src/api/resources/accounting/resources/invoices/client/Client.ts +++ b/src/api/resources/accounting/resources/invoices/client/Client.ts @@ -137,7 +137,7 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -211,7 +211,7 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -295,7 +295,7 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -370,7 +370,7 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -435,7 +435,7 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -493,7 +493,7 @@ export class Invoices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/issues/client/Client.ts b/src/api/resources/accounting/resources/issues/client/Client.ts index 07e630ff..7266c2a7 100644 --- a/src/api/resources/accounting/resources/issues/client/Client.ts +++ b/src/api/resources/accounting/resources/issues/client/Client.ts @@ -117,7 +117,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -176,7 +176,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/items/client/Client.ts b/src/api/resources/accounting/resources/items/client/Client.ts index bcaac38c..de8bbb30 100644 --- a/src/api/resources/accounting/resources/items/client/Client.ts +++ b/src/api/resources/accounting/resources/items/client/Client.ts @@ -117,7 +117,7 @@ export class Items { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -198,7 +198,7 @@ export class Items { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/journalEntries/client/Client.ts b/src/api/resources/accounting/resources/journalEntries/client/Client.ts index b489c502..7cec1bdc 100644 --- a/src/api/resources/accounting/resources/journalEntries/client/Client.ts +++ b/src/api/resources/accounting/resources/journalEntries/client/Client.ts @@ -117,7 +117,7 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -191,7 +191,7 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -267,7 +267,7 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -328,7 +328,7 @@ export class JournalEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/linkToken/client/Client.ts b/src/api/resources/accounting/resources/linkToken/client/Client.ts index 054995cf..3def7fe5 100644 --- a/src/api/resources/accounting/resources/linkToken/client/Client.ts +++ b/src/api/resources/accounting/resources/linkToken/client/Client.ts @@ -54,7 +54,7 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.EndUserDetailsRequest.jsonOrThrow(request, { 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 1c8a50a4..cb4b7437 100644 --- a/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -37,4 +37,6 @@ export interface EndUserDetailsRequest { >; /** The language code for the language to localize Merge Link to. */ language?: string; + /** A JSON object containing integration-specific configuration options. */ + integrationSpecificConfig?: Record; } diff --git a/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts b/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts index a568350d..ed1a456d 100644 --- a/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/accounting/resources/linkedAccounts/client/Client.ts @@ -117,7 +117,7 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/passthrough/client/Client.ts b/src/api/resources/accounting/resources/passthrough/client/Client.ts index a888f347..e26084c4 100644 --- a/src/api/resources/accounting/resources/passthrough/client/Client.ts +++ b/src/api/resources/accounting/resources/passthrough/client/Client.ts @@ -52,7 +52,7 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.DataPassthroughRequest.jsonOrThrow(request, { diff --git a/src/api/resources/accounting/resources/payments/client/Client.ts b/src/api/resources/accounting/resources/payments/client/Client.ts index 28500c67..7b335262 100644 --- a/src/api/resources/accounting/resources/payments/client/Client.ts +++ b/src/api/resources/accounting/resources/payments/client/Client.ts @@ -127,7 +127,7 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -201,7 +201,7 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -277,7 +277,7 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -352,7 +352,7 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -417,7 +417,7 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -475,7 +475,7 @@ export class Payments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts b/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts index a3f7fc50..9be75210 100644 --- a/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts +++ b/src/api/resources/accounting/resources/phoneNumbers/client/Client.ts @@ -56,7 +56,7 @@ export class PhoneNumbers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts b/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts index 35624ae9..06c99e7a 100644 --- a/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts +++ b/src/api/resources/accounting/resources/purchaseOrders/client/Client.ts @@ -127,7 +127,7 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -201,7 +201,7 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -285,7 +285,7 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -346,7 +346,7 @@ export class PurchaseOrders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/accounting/resources/regenerateKey/client/Client.ts b/src/api/resources/accounting/resources/regenerateKey/client/Client.ts index 7bf89ec4..affb2e37 100644 --- a/src/api/resources/accounting/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/accounting/resources/regenerateKey/client/Client.ts @@ -51,7 +51,7 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { diff --git a/src/api/resources/accounting/resources/scopes/client/Client.ts b/src/api/resources/accounting/resources/scopes/client/Client.ts index 31a57d45..867ae99e 100644 --- a/src/api/resources/accounting/resources/scopes/client/Client.ts +++ b/src/api/resources/accounting/resources/scopes/client/Client.ts @@ -48,7 +48,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -108,7 +108,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -173,7 +173,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { diff --git a/src/api/resources/accounting/resources/selectiveSync/client/Client.ts b/src/api/resources/accounting/resources/selectiveSync/client/Client.ts deleted file mode 100644 index 0e9e23ed..00000000 --- a/src/api/resources/accounting/resources/selectiveSync/client/Client.ts +++ /dev/null @@ -1,238 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../../../environments"; -import * as core from "../../../../../../core"; -import * as Merge from "../../../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../../../serialization"; -import * as errors from "../../../../../../errors"; - -export declare namespace SelectiveSync { - interface Options { - environment?: core.Supplier; - apiKey: core.Supplier; - accountToken?: core.Supplier; - } - - interface RequestOptions { - timeoutInSeconds?: number; - maxRetries?: number; - } -} - -export class SelectiveSync { - constructor(protected readonly _options: SelectiveSync.Options) {} - - /** - * Get a linked account's selective syncs. - * - * @example - * await merge.accounting.selectiveSync.configurationsList() - */ - public async configurationsList( - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/selective-sync/configurations" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.accounting.selectiveSync.configurationsList.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Replace a linked account's selective syncs. - * - * @example - * await merge.accounting.selectiveSync.configurationsUpdate({ - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * }) - */ - public async configurationsUpdate( - request: Merge.accounting.LinkedAccountSelectiveSyncConfigurationListRequest, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/selective-sync/configurations" - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - body: await serializers.accounting.LinkedAccountSelectiveSyncConfigurationListRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.accounting.selectiveSync.configurationsUpdate.Response.parseOrThrow( - _response.body, - { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - } - ); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get metadata for the conditions available to a linked account. - * - * @example - * await merge.accounting.selectiveSync.metaList({}) - */ - public async metaList( - request: Merge.accounting.SelectiveSyncMetaListRequest = {}, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const { commonModel, cursor, pageSize } = request; - const _queryParams: Record = {}; - if (commonModel != null) { - _queryParams["common_model"] = commonModel; - } - - if (cursor != null) { - _queryParams["cursor"] = cursor; - } - - if (pageSize != null) { - _queryParams["page_size"] = pageSize.toString(); - } - - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "accounting/v1/selective-sync/meta" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.accounting.PaginatedConditionSchemaList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; - } -} diff --git a/src/api/resources/accounting/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/api/resources/accounting/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 20bffd41..00000000 --- a/src/api/resources/accounting/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../../../../.."; - -/** - * @example - * { - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * } - */ -export interface LinkedAccountSelectiveSyncConfigurationListRequest { - /** The selective syncs associated with a linked account. */ - syncConfigurations: Merge.accounting.LinkedAccountSelectiveSyncConfigurationRequest[]; -} diff --git a/src/api/resources/accounting/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts b/src/api/resources/accounting/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts deleted file mode 100644 index c633fb6d..00000000 --- a/src/api/resources/accounting/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * {} - */ -export interface SelectiveSyncMetaListRequest { - commonModel?: string; - /** - * The pagination cursor value. - */ - cursor?: string; - /** - * Number of results to return per page. - */ - pageSize?: number; -} diff --git a/src/api/resources/accounting/resources/selectiveSync/client/requests/index.ts b/src/api/resources/accounting/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 6f48e141..00000000 --- a/src/api/resources/accounting/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; -export { SelectiveSyncMetaListRequest } from "./SelectiveSyncMetaListRequest"; diff --git a/src/api/resources/accounting/resources/syncStatus/client/Client.ts b/src/api/resources/accounting/resources/syncStatus/client/Client.ts index bbebb7c9..1dd4eecd 100644 --- a/src/api/resources/accounting/resources/syncStatus/client/Client.ts +++ b/src/api/resources/accounting/resources/syncStatus/client/Client.ts @@ -59,7 +59,7 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/taxRates/client/Client.ts b/src/api/resources/accounting/resources/taxRates/client/Client.ts index 58bc9382..07fdcafd 100644 --- a/src/api/resources/accounting/resources/taxRates/client/Client.ts +++ b/src/api/resources/accounting/resources/taxRates/client/Client.ts @@ -107,7 +107,7 @@ export class TaxRates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class TaxRates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/trackingCategories/client/Client.ts b/src/api/resources/accounting/resources/trackingCategories/client/Client.ts index 390828d4..d3da6758 100644 --- a/src/api/resources/accounting/resources/trackingCategories/client/Client.ts +++ b/src/api/resources/accounting/resources/trackingCategories/client/Client.ts @@ -117,7 +117,7 @@ export class TrackingCategories { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -198,7 +198,7 @@ export class TrackingCategories { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/transactions/client/Client.ts b/src/api/resources/accounting/resources/transactions/client/Client.ts index 5dfb84a1..3190c71d 100644 --- a/src/api/resources/accounting/resources/transactions/client/Client.ts +++ b/src/api/resources/accounting/resources/transactions/client/Client.ts @@ -117,7 +117,7 @@ export class Transactions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -190,7 +190,7 @@ export class Transactions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/vendorCredits/client/Client.ts b/src/api/resources/accounting/resources/vendorCredits/client/Client.ts index 5e3244ce..f9736546 100644 --- a/src/api/resources/accounting/resources/vendorCredits/client/Client.ts +++ b/src/api/resources/accounting/resources/vendorCredits/client/Client.ts @@ -117,7 +117,7 @@ export class VendorCredits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -190,7 +190,7 @@ export class VendorCredits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts b/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts index 88996c2b..8e3650fe 100644 --- a/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/accounting/resources/webhookReceivers/client/Client.ts @@ -46,7 +46,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -110,7 +110,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.accounting.WebhookReceiverRequest.jsonOrThrow(request, { diff --git a/src/api/resources/accounting/types/Account.ts b/src/api/resources/accounting/types/Account.ts index a3c1982f..8f1d3783 100644 --- a/src/api/resources/accounting/types/Account.ts +++ b/src/api/resources/accounting/types/Account.ts @@ -27,8 +27,9 @@ export interface Account { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The account's name. */ name?: string; diff --git a/src/api/resources/accounting/types/AccountingAttachment.ts b/src/api/resources/accounting/types/AccountingAttachment.ts index ac48742b..83316faa 100644 --- a/src/api/resources/accounting/types/AccountingAttachment.ts +++ b/src/api/resources/accounting/types/AccountingAttachment.ts @@ -19,8 +19,9 @@ export interface AccountingAttachment { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The attachment's name. */ fileName?: string; diff --git a/src/api/resources/accounting/types/AccountingPeriod.ts b/src/api/resources/accounting/types/AccountingPeriod.ts index 71bf2162..445a3568 100644 --- a/src/api/resources/accounting/types/AccountingPeriod.ts +++ b/src/api/resources/accounting/types/AccountingPeriod.ts @@ -17,8 +17,9 @@ import * as Merge from "../../.."; */ export interface AccountingPeriod { id?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** Beginning date of the period */ startDate?: Date; diff --git a/src/api/resources/accounting/types/AccountingPhoneNumber.ts b/src/api/resources/accounting/types/AccountingPhoneNumber.ts index 80217a1c..e1d28a2a 100644 --- a/src/api/resources/accounting/types/AccountingPhoneNumber.ts +++ b/src/api/resources/accounting/types/AccountingPhoneNumber.ts @@ -14,8 +14,9 @@ * Fetch from the `GET CompanyInfo` endpoint and view the company's phone numbers. */ export interface AccountingPhoneNumber { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The phone number. */ number?: string; diff --git a/src/api/resources/accounting/types/Address.ts b/src/api/resources/accounting/types/Address.ts index c1a4b876..80063b83 100644 --- a/src/api/resources/accounting/types/Address.ts +++ b/src/api/resources/accounting/types/Address.ts @@ -16,8 +16,9 @@ import * as Merge from "../../.."; * Fetch from the `GET CompanyInfo` endpoint and view the company's addresses. */ export interface Address { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** * The address type. diff --git a/src/api/resources/accounting/types/AuditLogEvent.ts b/src/api/resources/accounting/types/AuditLogEvent.ts index 9609a9a9..16f5afa6 100644 --- a/src/api/resources/accounting/types/AuditLogEvent.ts +++ b/src/api/resources/accounting/types/AuditLogEvent.ts @@ -59,6 +59,9 @@ export interface AuditLogEvent { * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ eventType: Merge.accounting.AuditLogEventEventType; eventDescription: string; diff --git a/src/api/resources/accounting/types/AuditLogEventEventType.ts b/src/api/resources/accounting/types/AuditLogEventEventType.ts index 3a7753d1..b323f38d 100644 --- a/src/api/resources/accounting/types/AuditLogEventEventType.ts +++ b/src/api/resources/accounting/types/AuditLogEventEventType.ts @@ -41,5 +41,8 @@ import * as Merge from "../../.."; * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type AuditLogEventEventType = Merge.accounting.EventTypeEnum | string; diff --git a/src/api/resources/accounting/types/BalanceSheet.ts b/src/api/resources/accounting/types/BalanceSheet.ts index 4a347c86..02a89fd2 100644 --- a/src/api/resources/accounting/types/BalanceSheet.ts +++ b/src/api/resources/accounting/types/BalanceSheet.ts @@ -19,8 +19,9 @@ export interface BalanceSheet { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The balance sheet's name. */ name?: string; diff --git a/src/api/resources/accounting/types/CashFlowStatement.ts b/src/api/resources/accounting/types/CashFlowStatement.ts index 2b226722..ca946323 100644 --- a/src/api/resources/accounting/types/CashFlowStatement.ts +++ b/src/api/resources/accounting/types/CashFlowStatement.ts @@ -19,8 +19,9 @@ export interface CashFlowStatement { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The cash flow statement's name. */ name?: string; diff --git a/src/api/resources/accounting/types/CompanyInfo.ts b/src/api/resources/accounting/types/CompanyInfo.ts index 043c42a2..ed180545 100644 --- a/src/api/resources/accounting/types/CompanyInfo.ts +++ b/src/api/resources/accounting/types/CompanyInfo.ts @@ -19,8 +19,9 @@ export interface CompanyInfo { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The company's name. */ name?: string; diff --git a/src/api/resources/accounting/types/ConditionSchema.ts b/src/api/resources/accounting/types/ConditionSchema.ts deleted file mode 100644 index 799263b1..00000000 --- a/src/api/resources/accounting/types/ConditionSchema.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface ConditionSchema { - /** The ID of the condition schema. This ID is used when updating selective syncs for a linked account. */ - id: string; - /** The common model for which a condition schema is defined. */ - commonModel?: string; - nativeName?: string; - fieldName?: string; - /** Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times. */ - isUnique?: boolean; - /** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ - conditionType: Merge.accounting.ConditionSchemaConditionType; - /** The schemas for the operators that can be used on a condition. */ - operators: Merge.accounting.OperatorSchema[]; -} diff --git a/src/api/resources/accounting/types/ConditionSchemaConditionType.ts b/src/api/resources/accounting/types/ConditionSchemaConditionType.ts deleted file mode 100644 index cc5e52b9..00000000 --- a/src/api/resources/accounting/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -/** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionSchemaConditionType = Merge.accounting.ConditionTypeEnum | string; diff --git a/src/api/resources/accounting/types/ConditionTypeEnum.ts b/src/api/resources/accounting/types/ConditionTypeEnum.ts deleted file mode 100644 index 2b408be2..00000000 --- a/src/api/resources/accounting/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionTypeEnum = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; - -export const ConditionTypeEnum = { - Boolean: "BOOLEAN", - Date: "DATE", - DateTime: "DATE_TIME", - Integer: "INTEGER", - Float: "FLOAT", - String: "STRING", - ListOfStrings: "LIST_OF_STRINGS", -} as const; diff --git a/src/api/resources/accounting/types/Contact.ts b/src/api/resources/accounting/types/Contact.ts index 521f4f63..fabe0a18 100644 --- a/src/api/resources/accounting/types/Contact.ts +++ b/src/api/resources/accounting/types/Contact.ts @@ -22,8 +22,9 @@ export interface Contact { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The contact's name. */ name?: string; diff --git a/src/api/resources/accounting/types/CreditNote.ts b/src/api/resources/accounting/types/CreditNote.ts index a29e0ce1..77bb5388 100644 --- a/src/api/resources/accounting/types/CreditNote.ts +++ b/src/api/resources/accounting/types/CreditNote.ts @@ -19,8 +19,9 @@ export interface CreditNote { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The credit note's transaction date. */ transactionDate?: Date; diff --git a/src/api/resources/accounting/types/CreditNoteLineItem.ts b/src/api/resources/accounting/types/CreditNoteLineItem.ts index e5bfb441..fbff5698 100644 --- a/src/api/resources/accounting/types/CreditNoteLineItem.ts +++ b/src/api/resources/accounting/types/CreditNoteLineItem.ts @@ -8,8 +8,9 @@ export interface CreditNoteLineItem { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; item?: Merge.accounting.CreditNoteLineItemItem; /** The credit note line item's name. */ @@ -22,8 +23,6 @@ export interface CreditNoteLineItem { memo?: string; /** The credit note line item's unit price. */ unitPrice?: string; - /** The credit note line item's tax rate. */ - taxRate?: string; /** The credit note line item's total. */ totalLineAmount?: string; /** The credit note line item's associated tracking category. */ diff --git a/src/api/resources/accounting/types/EventTypeEnum.ts b/src/api/resources/accounting/types/EventTypeEnum.ts index 01bc1b50..c8fb89f1 100644 --- a/src/api/resources/accounting/types/EventTypeEnum.ts +++ b/src/api/resources/accounting/types/EventTypeEnum.ts @@ -37,6 +37,9 @@ * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type EventTypeEnum = | "CREATED_REMOTE_PRODUCTION_API_KEY" @@ -72,7 +75,10 @@ export type EventTypeEnum = | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; export const EventTypeEnum = { CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", @@ -109,4 +115,7 @@ export const EventTypeEnum = { ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", MutedIssue: "MUTED_ISSUE", GeneratedMagicLink: "GENERATED_MAGIC_LINK", + EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", + DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", + MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", } as const; diff --git a/src/api/resources/accounting/types/Expense.ts b/src/api/resources/accounting/types/Expense.ts index a6efcaac..39ce884c 100644 --- a/src/api/resources/accounting/types/Expense.ts +++ b/src/api/resources/accounting/types/Expense.ts @@ -21,8 +21,9 @@ export interface Expense { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** When the transaction occurred. */ transactionDate?: Date; diff --git a/src/api/resources/accounting/types/ExpenseLine.ts b/src/api/resources/accounting/types/ExpenseLine.ts index 660ad16a..0b506251 100644 --- a/src/api/resources/accounting/types/ExpenseLine.ts +++ b/src/api/resources/accounting/types/ExpenseLine.ts @@ -19,8 +19,9 @@ export interface ExpenseLine { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The line's item. */ item?: Merge.accounting.ExpenseLineItem; diff --git a/src/api/resources/accounting/types/IncomeStatement.ts b/src/api/resources/accounting/types/IncomeStatement.ts index 392ac819..207a083a 100644 --- a/src/api/resources/accounting/types/IncomeStatement.ts +++ b/src/api/resources/accounting/types/IncomeStatement.ts @@ -19,8 +19,9 @@ export interface IncomeStatement { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The income statement's name. */ name?: string; diff --git a/src/api/resources/accounting/types/Invoice.ts b/src/api/resources/accounting/types/Invoice.ts index af29dd90..0fb9dd2c 100644 --- a/src/api/resources/accounting/types/Invoice.ts +++ b/src/api/resources/accounting/types/Invoice.ts @@ -19,8 +19,9 @@ export interface Invoice { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** * Whether the invoice is an accounts receivable or accounts payable. If `type` is `ACCOUNTS_PAYABLE`, the invoice is a bill. If `type` is `ACCOUNTS_RECEIVABLE`, it is an invoice. diff --git a/src/api/resources/accounting/types/InvoiceLineItem.ts b/src/api/resources/accounting/types/InvoiceLineItem.ts index 89ec2f9d..914e8bd0 100644 --- a/src/api/resources/accounting/types/InvoiceLineItem.ts +++ b/src/api/resources/accounting/types/InvoiceLineItem.ts @@ -19,8 +19,9 @@ export interface InvoiceLineItem { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The line item's description. */ description?: string; diff --git a/src/api/resources/accounting/types/Item.ts b/src/api/resources/accounting/types/Item.ts index aa41fbff..df0df58d 100644 --- a/src/api/resources/accounting/types/Item.ts +++ b/src/api/resources/accounting/types/Item.ts @@ -19,8 +19,9 @@ export interface Item { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The item's name. */ name?: string; diff --git a/src/api/resources/accounting/types/JournalEntry.ts b/src/api/resources/accounting/types/JournalEntry.ts index 4b3ae7ae..ec9ee2d2 100644 --- a/src/api/resources/accounting/types/JournalEntry.ts +++ b/src/api/resources/accounting/types/JournalEntry.ts @@ -23,8 +23,9 @@ export interface JournalEntry { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The journal entry's transaction date. */ transactionDate?: Date; diff --git a/src/api/resources/accounting/types/JournalLine.ts b/src/api/resources/accounting/types/JournalLine.ts index 73889414..9c139a22 100644 --- a/src/api/resources/accounting/types/JournalLine.ts +++ b/src/api/resources/accounting/types/JournalLine.ts @@ -19,8 +19,9 @@ export interface JournalLine { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; account?: Merge.accounting.JournalLineAccount; /** The value of the line item including taxes and other fees. */ diff --git a/src/api/resources/accounting/types/LinkedAccountCondition.ts b/src/api/resources/accounting/types/LinkedAccountCondition.ts deleted file mode 100644 index 63d3f4dd..00000000 --- a/src/api/resources/accounting/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountCondition { - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The common model for a specific condition. */ - commonModel?: string; - nativeName?: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; - fieldName?: string; -} diff --git a/src/api/resources/accounting/types/LinkedAccountConditionRequest.ts b/src/api/resources/accounting/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index b46b4c79..00000000 --- a/src/api/resources/accounting/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountConditionRequest { - /** The ID indicating which Linked Account Condition this is. */ - id?: string; - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; -} diff --git a/src/api/resources/accounting/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/api/resources/accounting/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index e69c18dd..00000000 --- a/src/api/resources/accounting/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfiguration { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions?: Merge.accounting.LinkedAccountCondition[]; -} diff --git a/src/api/resources/accounting/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/api/resources/accounting/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 3b7cf032..00000000 --- a/src/api/resources/accounting/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfigurationRequest { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions: Merge.accounting.LinkedAccountConditionRequest[]; -} diff --git a/src/api/resources/accounting/types/OperatorSchema.ts b/src/api/resources/accounting/types/OperatorSchema.ts deleted file mode 100644 index fd1b2b92..00000000 --- a/src/api/resources/accounting/types/OperatorSchema.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface OperatorSchema { - /** The operator for which an operator schema is defined. */ - operator?: string; - /** Whether the operator can be repeated multiple times. */ - isUnique?: boolean; -} diff --git a/src/api/resources/accounting/types/PaginatedConditionSchemaList.ts b/src/api/resources/accounting/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index 9d600bf5..00000000 --- a/src/api/resources/accounting/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface PaginatedConditionSchemaList { - next?: string; - previous?: string; - results?: Merge.accounting.ConditionSchema[]; -} diff --git a/src/api/resources/accounting/types/PatchedPaymentRequest.ts b/src/api/resources/accounting/types/PatchedPaymentRequest.ts index 4d0e3a04..49bfdbb8 100644 --- a/src/api/resources/accounting/types/PatchedPaymentRequest.ts +++ b/src/api/resources/accounting/types/PatchedPaymentRequest.ts @@ -339,6 +339,13 @@ export interface PatchedPaymentRequest { company?: Merge.accounting.PatchedPaymentRequestCompany; /** The total amount of money being paid to the supplier, or customer, after taxes. */ totalAmount?: number; + /** + * The type of the invoice. + * + * - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE + * - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE + */ + type?: Merge.accounting.PatchedPaymentRequestType; trackingCategories?: (Merge.accounting.PatchedPaymentRequestTrackingCategoriesItem | undefined)[]; /** The accounting period that the Payment was generated in. */ accountingPeriod?: Merge.accounting.PatchedPaymentRequestAccountingPeriod; diff --git a/src/api/resources/accounting/types/PatchedPaymentRequestType.ts b/src/api/resources/accounting/types/PatchedPaymentRequestType.ts new file mode 100644 index 00000000..42a8f768 --- /dev/null +++ b/src/api/resources/accounting/types/PatchedPaymentRequestType.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../.."; + +/** + * The type of the invoice. + * + * - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE + * - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE + */ +export type PatchedPaymentRequestType = Merge.accounting.PaymentTypeEnum | string; diff --git a/src/api/resources/accounting/types/Payment.ts b/src/api/resources/accounting/types/Payment.ts index c58f4bd5..6ee96f07 100644 --- a/src/api/resources/accounting/types/Payment.ts +++ b/src/api/resources/accounting/types/Payment.ts @@ -19,8 +19,9 @@ export interface Payment { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The payment's transaction date. */ transactionDate?: Date; @@ -345,6 +346,13 @@ export interface Payment { company?: Merge.accounting.PaymentCompany; /** The total amount of money being paid to the supplier, or customer, after taxes. */ totalAmount?: number; + /** + * The type of the invoice. + * + * - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE + * - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE + */ + type?: Merge.accounting.PaymentType; trackingCategories?: (Merge.accounting.PaymentTrackingCategoriesItem | undefined)[]; /** When the third party's payment entry was updated. */ remoteUpdatedAt?: Date; diff --git a/src/api/resources/accounting/types/PaymentLineItem.ts b/src/api/resources/accounting/types/PaymentLineItem.ts index f9795fa9..7cb2a59b 100644 --- a/src/api/resources/accounting/types/PaymentLineItem.ts +++ b/src/api/resources/accounting/types/PaymentLineItem.ts @@ -17,8 +17,9 @@ export interface PaymentLineItem { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The amount being applied to the transaction. */ appliedAmount?: string; diff --git a/src/api/resources/accounting/types/PaymentRequest.ts b/src/api/resources/accounting/types/PaymentRequest.ts index 709710fb..981d49ed 100644 --- a/src/api/resources/accounting/types/PaymentRequest.ts +++ b/src/api/resources/accounting/types/PaymentRequest.ts @@ -339,6 +339,13 @@ export interface PaymentRequest { company?: Merge.accounting.PaymentRequestCompany; /** The total amount of money being paid to the supplier, or customer, after taxes. */ totalAmount?: number; + /** + * The type of the invoice. + * + * - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE + * - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE + */ + type?: Merge.accounting.PaymentRequestType; trackingCategories?: (Merge.accounting.PaymentRequestTrackingCategoriesItem | undefined)[]; /** The accounting period that the Payment was generated in. */ accountingPeriod?: Merge.accounting.PaymentRequestAccountingPeriod; diff --git a/src/api/resources/accounting/types/PaymentRequestType.ts b/src/api/resources/accounting/types/PaymentRequestType.ts new file mode 100644 index 00000000..09560dd2 --- /dev/null +++ b/src/api/resources/accounting/types/PaymentRequestType.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../.."; + +/** + * The type of the invoice. + * + * - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE + * - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE + */ +export type PaymentRequestType = Merge.accounting.PaymentTypeEnum | string; diff --git a/src/api/resources/accounting/types/PaymentType.ts b/src/api/resources/accounting/types/PaymentType.ts new file mode 100644 index 00000000..30f05f41 --- /dev/null +++ b/src/api/resources/accounting/types/PaymentType.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../.."; + +/** + * The type of the invoice. + * + * - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE + * - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE + */ +export type PaymentType = Merge.accounting.PaymentTypeEnum | string; diff --git a/src/api/resources/accounting/types/PaymentTypeEnum.ts b/src/api/resources/accounting/types/PaymentTypeEnum.ts new file mode 100644 index 00000000..b200369a --- /dev/null +++ b/src/api/resources/accounting/types/PaymentTypeEnum.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * - `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE + * - `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE + */ +export type PaymentTypeEnum = "ACCOUNTS_PAYABLE" | "ACCOUNTS_RECEIVABLE"; + +export const PaymentTypeEnum = { + AccountsPayable: "ACCOUNTS_PAYABLE", + AccountsReceivable: "ACCOUNTS_RECEIVABLE", +} as const; diff --git a/src/api/resources/accounting/types/PurchaseOrder.ts b/src/api/resources/accounting/types/PurchaseOrder.ts index a3979904..59837d76 100644 --- a/src/api/resources/accounting/types/PurchaseOrder.ts +++ b/src/api/resources/accounting/types/PurchaseOrder.ts @@ -21,8 +21,9 @@ export interface PurchaseOrder { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** * The purchase order's status. diff --git a/src/api/resources/accounting/types/PurchaseOrderLineItem.ts b/src/api/resources/accounting/types/PurchaseOrderLineItem.ts index 08710497..d47b6296 100644 --- a/src/api/resources/accounting/types/PurchaseOrderLineItem.ts +++ b/src/api/resources/accounting/types/PurchaseOrderLineItem.ts @@ -19,8 +19,9 @@ export interface PurchaseOrderLineItem { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** A description of the good being purchased. */ description?: string; diff --git a/src/api/resources/accounting/types/RemoteFieldApi.ts b/src/api/resources/accounting/types/RemoteFieldApi.ts index 9c660677..57270662 100644 --- a/src/api/resources/accounting/types/RemoteFieldApi.ts +++ b/src/api/resources/accounting/types/RemoteFieldApi.ts @@ -10,4 +10,5 @@ export interface RemoteFieldApi { remoteEndpointInfo: Merge.accounting.RemoteEndpointInfo; exampleValues: unknown[]; advancedMetadata?: Merge.accounting.AdvancedMetadata; + coverage?: Merge.accounting.RemoteFieldApiCoverage; } diff --git a/src/api/resources/accounting/types/RemoteFieldApiCoverage.ts b/src/api/resources/accounting/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..9a8f479f --- /dev/null +++ b/src/api/resources/accounting/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/accounting/types/ReportItem.ts b/src/api/resources/accounting/types/ReportItem.ts index dfd228ca..e715d446 100644 --- a/src/api/resources/accounting/types/ReportItem.ts +++ b/src/api/resources/accounting/types/ReportItem.ts @@ -16,8 +16,9 @@ export interface ReportItem { /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The report item's name. */ name?: string; diff --git a/src/api/resources/accounting/types/TaxRate.ts b/src/api/resources/accounting/types/TaxRate.ts index ac699b98..7e395354 100644 --- a/src/api/resources/accounting/types/TaxRate.ts +++ b/src/api/resources/accounting/types/TaxRate.ts @@ -19,16 +19,17 @@ export interface TaxRate { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The tax rate's description. */ description?: string; - /** The tax rate's total tax rate. */ + /** The tax’s total tax rate - sum of the tax components (not compounded). */ totalTaxRate?: number; - /** The tax rate's effective tax rate. */ + /** The tax rate’s effective tax rate - total amount of tax with compounding. */ effectiveTaxRate?: number; - /** The company the tax rate belongs to. */ + /** The subsidiary that the tax rate belongs to (in the case of multi-entity systems). */ company?: Merge.accounting.TaxRateCompany; /** Indicates whether or not this object has been deleted in the third party platform. */ remoteWasDeleted?: boolean; diff --git a/src/api/resources/accounting/types/TaxRateCompany.ts b/src/api/resources/accounting/types/TaxRateCompany.ts index d4d19165..3a4724be 100644 --- a/src/api/resources/accounting/types/TaxRateCompany.ts +++ b/src/api/resources/accounting/types/TaxRateCompany.ts @@ -5,6 +5,6 @@ import * as Merge from "../../.."; /** - * The company the tax rate belongs to. + * The subsidiary that the tax rate belongs to (in the case of multi-entity systems). */ export type TaxRateCompany = string | Merge.accounting.CompanyInfo; diff --git a/src/api/resources/accounting/types/TrackingCategory.ts b/src/api/resources/accounting/types/TrackingCategory.ts index d8f157c2..3f463b0f 100644 --- a/src/api/resources/accounting/types/TrackingCategory.ts +++ b/src/api/resources/accounting/types/TrackingCategory.ts @@ -19,8 +19,9 @@ export interface TrackingCategory { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The tracking category's name. */ name?: string; diff --git a/src/api/resources/accounting/types/Transaction.ts b/src/api/resources/accounting/types/Transaction.ts index b6d0982e..9d81426d 100644 --- a/src/api/resources/accounting/types/Transaction.ts +++ b/src/api/resources/accounting/types/Transaction.ts @@ -27,8 +27,9 @@ export interface Transaction { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The type of transaction, which can by any transaction object not already included in Merge’s common model. */ transactionType?: string; diff --git a/src/api/resources/accounting/types/TransactionLineItem.ts b/src/api/resources/accounting/types/TransactionLineItem.ts index 79536efa..6b7f84d8 100644 --- a/src/api/resources/accounting/types/TransactionLineItem.ts +++ b/src/api/resources/accounting/types/TransactionLineItem.ts @@ -19,8 +19,9 @@ export interface TransactionLineItem { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** An internal note used by the business to clarify purpose of the transaction. */ memo?: string; @@ -37,7 +38,6 @@ export interface TransactionLineItem { trackingCategories: string[]; /** The line item's total. */ totalLineAmount?: string; - /** The line item's tax rate. */ taxRate?: string; /** * The line item's currency. diff --git a/src/api/resources/accounting/types/VendorCredit.ts b/src/api/resources/accounting/types/VendorCredit.ts index 83e6f74e..e097042d 100644 --- a/src/api/resources/accounting/types/VendorCredit.ts +++ b/src/api/resources/accounting/types/VendorCredit.ts @@ -19,8 +19,9 @@ export interface VendorCredit { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The vendor credit's number. */ number?: string; diff --git a/src/api/resources/accounting/types/VendorCreditLine.ts b/src/api/resources/accounting/types/VendorCreditLine.ts index 31866981..3882bdc8 100644 --- a/src/api/resources/accounting/types/VendorCreditLine.ts +++ b/src/api/resources/accounting/types/VendorCreditLine.ts @@ -19,8 +19,9 @@ export interface VendorCreditLine { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The full value of the credit. */ netAmount?: number; diff --git a/src/api/resources/accounting/types/index.ts b/src/api/resources/accounting/types/index.ts index 368a3af2..0acd913b 100644 --- a/src/api/resources/accounting/types/index.ts +++ b/src/api/resources/accounting/types/index.ts @@ -49,9 +49,6 @@ export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; export * from "./CompanyInfoCurrency"; export * from "./CompanyInfo"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./ContactStatus"; export * from "./ContactAddressesItem"; export * from "./Contact"; @@ -194,10 +191,6 @@ export * from "./JournalLineRequestTrackingCategoriesItem"; export * from "./JournalLineRequestCurrency"; export * from "./JournalLineRequest"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -206,7 +199,6 @@ export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequestEncoding"; export * from "./MultipartFormFieldRequest"; -export * from "./OperatorSchema"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAccountList"; export * from "./PaginatedAccountingAttachmentList"; @@ -215,7 +207,6 @@ export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedBalanceSheetList"; export * from "./PaginatedCashFlowStatementList"; export * from "./PaginatedCompanyInfoList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedContactList"; export * from "./PaginatedCreditNoteList"; export * from "./PaginatedExpenseList"; @@ -235,6 +226,7 @@ export * from "./PatchedPaymentRequestContact"; export * from "./PatchedPaymentRequestAccount"; export * from "./PatchedPaymentRequestCurrency"; export * from "./PatchedPaymentRequestCompany"; +export * from "./PatchedPaymentRequestType"; export * from "./PatchedPaymentRequestTrackingCategoriesItem"; export * from "./PatchedPaymentRequestAccountingPeriod"; export * from "./PatchedPaymentRequestAppliedToLinesItem"; @@ -243,6 +235,7 @@ export * from "./PaymentContact"; export * from "./PaymentAccount"; export * from "./PaymentCurrency"; export * from "./PaymentCompany"; +export * from "./PaymentType"; export * from "./PaymentTrackingCategoriesItem"; export * from "./PaymentAccountingPeriod"; export * from "./PaymentAppliedToLinesItem"; @@ -253,11 +246,13 @@ export * from "./PaymentRequestContact"; export * from "./PaymentRequestAccount"; export * from "./PaymentRequestCurrency"; export * from "./PaymentRequestCompany"; +export * from "./PaymentRequestType"; export * from "./PaymentRequestTrackingCategoriesItem"; export * from "./PaymentRequestAccountingPeriod"; export * from "./PaymentRequestAppliedToLinesItem"; export * from "./PaymentRequest"; export * from "./PaymentResponse"; +export * from "./PaymentTypeEnum"; export * from "./PostingStatusEnum"; export * from "./PurchaseOrderStatus"; export * from "./PurchaseOrderDeliveryAddress"; @@ -284,6 +279,7 @@ export * from "./PurchaseOrderResponse"; export * from "./PurchaseOrderStatusEnum"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; diff --git a/src/api/resources/ats/client/Client.ts b/src/api/resources/ats/client/Client.ts index 2dae93ce..8deea539 100644 --- a/src/api/resources/ats/client/Client.ts +++ b/src/api/resources/ats/client/Client.ts @@ -32,7 +32,6 @@ import { Passthrough } from "../resources/passthrough/client/Client"; import { RegenerateKey } from "../resources/regenerateKey/client/Client"; import { RejectReasons } from "../resources/rejectReasons/client/Client"; import { Scorecards } from "../resources/scorecards/client/Client"; -import { SelectiveSync } from "../resources/selectiveSync/client/Client"; import { SyncStatus } from "../resources/syncStatus/client/Client"; import { ForceResync } from "../resources/forceResync/client/Client"; import { Tags } from "../resources/tags/client/Client"; @@ -223,12 +222,6 @@ export class Ats { return (this._scorecards ??= new Scorecards(this._options)); } - protected _selectiveSync: SelectiveSync | undefined; - - public get selectiveSync(): SelectiveSync { - return (this._selectiveSync ??= new SelectiveSync(this._options)); - } - protected _syncStatus: SyncStatus | undefined; public get syncStatus(): SyncStatus { diff --git a/src/api/resources/ats/resources/accountDetails/client/Client.ts b/src/api/resources/ats/resources/accountDetails/client/Client.ts index 0f512888..8bb7f1ff 100644 --- a/src/api/resources/ats/resources/accountDetails/client/Client.ts +++ b/src/api/resources/ats/resources/accountDetails/client/Client.ts @@ -46,7 +46,7 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/accountToken/client/Client.ts b/src/api/resources/ats/resources/accountToken/client/Client.ts index 229579ae..b0470494 100644 --- a/src/api/resources/ats/resources/accountToken/client/Client.ts +++ b/src/api/resources/ats/resources/accountToken/client/Client.ts @@ -49,7 +49,7 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/activities/client/Client.ts b/src/api/resources/ats/resources/activities/client/Client.ts index 143ef266..14020e37 100644 --- a/src/api/resources/ats/resources/activities/client/Client.ts +++ b/src/api/resources/ats/resources/activities/client/Client.ts @@ -117,7 +117,7 @@ export class Activities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -192,7 +192,7 @@ export class Activities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -274,7 +274,7 @@ export class Activities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -333,7 +333,7 @@ export class Activities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/applications/client/Client.ts b/src/api/resources/ats/resources/applications/client/Client.ts index 6348ed24..3ebbc60d 100644 --- a/src/api/resources/ats/resources/applications/client/Client.ts +++ b/src/api/resources/ats/resources/applications/client/Client.ts @@ -132,7 +132,7 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -207,7 +207,7 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -283,7 +283,7 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -356,7 +356,7 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -427,7 +427,7 @@ export class Applications { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts b/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts index 85e8cb25..f58542b9 100644 --- a/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/ats/resources/asyncPassthrough/client/Client.ts @@ -52,7 +52,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.DataPassthroughRequest.jsonOrThrow(request, { @@ -116,7 +116,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/attachments/client/Client.ts b/src/api/resources/ats/resources/attachments/client/Client.ts index 47efe5c1..49430ada 100644 --- a/src/api/resources/ats/resources/attachments/client/Client.ts +++ b/src/api/resources/ats/resources/attachments/client/Client.ts @@ -117,7 +117,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -192,7 +192,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -276,7 +276,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -335,7 +335,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/auditTrail/client/Client.ts b/src/api/resources/ats/resources/auditTrail/client/Client.ts index df2264ba..8f50b24e 100644 --- a/src/api/resources/ats/resources/auditTrail/client/Client.ts +++ b/src/api/resources/ats/resources/auditTrail/client/Client.ts @@ -75,7 +75,7 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 6e49b389..a9bf6e8a 100644 --- a/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/ats/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED` */ eventType?: string; /** diff --git a/src/api/resources/ats/resources/availableActions/client/Client.ts b/src/api/resources/ats/resources/availableActions/client/Client.ts index a9424251..caf03fed 100644 --- a/src/api/resources/ats/resources/availableActions/client/Client.ts +++ b/src/api/resources/ats/resources/availableActions/client/Client.ts @@ -46,7 +46,7 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/candidates/client/Client.ts b/src/api/resources/ats/resources/candidates/client/Client.ts index 3af3abb5..251e05e7 100644 --- a/src/api/resources/ats/resources/candidates/client/Client.ts +++ b/src/api/resources/ats/resources/candidates/client/Client.ts @@ -122,7 +122,7 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -197,7 +197,7 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -273,7 +273,7 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -349,7 +349,7 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -395,8 +395,7 @@ export class Candidates { * * @example * await merge.ats.candidates.ignoreCreate("model_id", { - * reason: Merge.ats.ReasonEnum.GeneralCustomerRequest, - * message: "deletion request by user id 51903790-7dfe-4053-8d63-5a10cc4ffd39" + * reason: Merge.ats.ReasonEnum.GeneralCustomerRequest * }) */ public async ignoreCreate( @@ -418,7 +417,7 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.IgnoreCommonModelRequest.jsonOrThrow(request, { @@ -477,7 +476,7 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -535,7 +534,7 @@ export class Candidates { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts b/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts index ba0089d5..d9aa7c85 100644 --- a/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts +++ b/src/api/resources/ats/resources/candidates/client/requests/IgnoreCommonModelRequest.ts @@ -7,8 +7,7 @@ import * as Merge from "../../../../../.."; /** * @example * { - * reason: Merge.ats.ReasonEnum.GeneralCustomerRequest, - * message: "deletion request by user id 51903790-7dfe-4053-8d63-5a10cc4ffd39" + * reason: Merge.ats.ReasonEnum.GeneralCustomerRequest * } */ export interface IgnoreCommonModelRequest { diff --git a/src/api/resources/ats/resources/deleteAccount/client/Client.ts b/src/api/resources/ats/resources/deleteAccount/client/Client.ts index ffef878a..46317a60 100644 --- a/src/api/resources/ats/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/ats/resources/deleteAccount/client/Client.ts @@ -44,7 +44,7 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/departments/client/Client.ts b/src/api/resources/ats/resources/departments/client/Client.ts index fc9ffd79..0215bff7 100644 --- a/src/api/resources/ats/resources/departments/client/Client.ts +++ b/src/api/resources/ats/resources/departments/client/Client.ts @@ -97,7 +97,7 @@ export class Departments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Departments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/eeocs/client/Client.ts b/src/api/resources/ats/resources/eeocs/client/Client.ts index e6df9b2a..507f7229 100644 --- a/src/api/resources/ats/resources/eeocs/client/Client.ts +++ b/src/api/resources/ats/resources/eeocs/client/Client.ts @@ -117,7 +117,7 @@ export class Eeocs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -198,7 +198,7 @@ export class Eeocs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/fieldMapping/client/Client.ts b/src/api/resources/ats/resources/fieldMapping/client/Client.ts index ffce0f8e..31d04ae8 100644 --- a/src/api/resources/ats/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/ats/resources/fieldMapping/client/Client.ts @@ -48,7 +48,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -116,7 +116,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.CreateFieldMappingRequest.jsonOrThrow(request, { @@ -180,7 +180,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -221,10 +221,7 @@ export class FieldMapping { * 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. * * @example - * await merge.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * }) + * await merge.ats.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", {}) */ public async fieldMappingsPartialUpdate( fieldMappingId: string, @@ -245,7 +242,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.PatchedEditFieldMappingRequest.jsonOrThrow(request, { @@ -319,7 +316,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -380,7 +377,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index 671f9e4a..b1e31108 100644 --- a/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/ats/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -4,10 +4,7 @@ /** * @example - * { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * } + * {} */ export interface PatchedEditFieldMappingRequest { /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ diff --git a/src/api/resources/ats/resources/forceResync/client/Client.ts b/src/api/resources/ats/resources/forceResync/client/Client.ts index 8e82514d..4ccae5eb 100644 --- a/src/api/resources/ats/resources/forceResync/client/Client.ts +++ b/src/api/resources/ats/resources/forceResync/client/Client.ts @@ -46,7 +46,7 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/generateKey/client/Client.ts b/src/api/resources/ats/resources/generateKey/client/Client.ts index a35e23dd..03e51fe3 100644 --- a/src/api/resources/ats/resources/generateKey/client/Client.ts +++ b/src/api/resources/ats/resources/generateKey/client/Client.ts @@ -51,7 +51,7 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.GenerateRemoteKeyRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ats/resources/index.ts b/src/api/resources/ats/resources/index.ts index 20d0cfbd..8b91c585 100644 --- a/src/api/resources/ats/resources/index.ts +++ b/src/api/resources/ats/resources/index.ts @@ -37,7 +37,6 @@ export * as offices from "./offices"; export * as passthrough from "./passthrough"; export * as regenerateKey from "./regenerateKey"; export * as rejectReasons from "./rejectReasons"; -export * as selectiveSync from "./selectiveSync"; export * as syncStatus from "./syncStatus"; export * as forceResync from "./forceResync"; export * as tags from "./tags"; @@ -65,7 +64,6 @@ export * from "./offices/client/requests"; export * from "./regenerateKey/client/requests"; export * from "./rejectReasons/client/requests"; export * from "./scorecards/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./syncStatus/client/requests"; export * from "./tags/client/requests"; export * from "./users/client/requests"; diff --git a/src/api/resources/ats/resources/interviews/client/Client.ts b/src/api/resources/ats/resources/interviews/client/Client.ts index 71f91272..96b9231e 100644 --- a/src/api/resources/ats/resources/interviews/client/Client.ts +++ b/src/api/resources/ats/resources/interviews/client/Client.ts @@ -132,7 +132,7 @@ export class Interviews { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -207,7 +207,7 @@ export class Interviews { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -291,7 +291,7 @@ export class Interviews { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -350,7 +350,7 @@ export class Interviews { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/issues/client/Client.ts b/src/api/resources/ats/resources/issues/client/Client.ts index d6fb6ee0..f0fa0d3c 100644 --- a/src/api/resources/ats/resources/issues/client/Client.ts +++ b/src/api/resources/ats/resources/issues/client/Client.ts @@ -117,7 +117,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -176,7 +176,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts b/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts index 011c9f2c..dc729fb2 100644 --- a/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts +++ b/src/api/resources/ats/resources/jobInterviewStages/client/Client.ts @@ -107,7 +107,7 @@ export class JobInterviewStages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class JobInterviewStages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/jobPostings/client/Client.ts b/src/api/resources/ats/resources/jobPostings/client/Client.ts index e0b76364..4930544f 100644 --- a/src/api/resources/ats/resources/jobPostings/client/Client.ts +++ b/src/api/resources/ats/resources/jobPostings/client/Client.ts @@ -39,6 +39,7 @@ export class JobPostings { createdAfter, createdBefore, cursor, + expand, includeDeletedData, includeRemoteData, modifiedAfter, @@ -60,6 +61,10 @@ export class JobPostings { _queryParams["cursor"] = cursor; } + if (expand != null) { + _queryParams["expand"] = expand; + } + if (includeDeletedData != null) { _queryParams["include_deleted_data"] = includeDeletedData.toString(); } @@ -102,7 +107,7 @@ export class JobPostings { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -151,8 +156,12 @@ export class JobPostings { request: Merge.ats.JobPostingsRetrieveRequest = {}, requestOptions?: JobPostings.RequestOptions ): Promise { - const { includeRemoteData } = request; + const { expand, includeRemoteData } = request; const _queryParams: Record = {}; + if (expand != null) { + _queryParams["expand"] = expand; + } + if (includeRemoteData != null) { _queryParams["include_remote_data"] = includeRemoteData.toString(); } @@ -171,7 +180,7 @@ export class JobPostings { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts b/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts index 35dfde0b..2def76bf 100644 --- a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts +++ b/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsListRequest.ts @@ -21,6 +21,10 @@ export interface JobPostingsListRequest { * The pagination cursor value. */ cursor?: string; + /** + * Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + */ + expand?: "job"; /** * Whether to include data that was marked as deleted by third party webhooks. */ diff --git a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts b/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts index a9b856af..6ac1fb59 100644 --- a/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts +++ b/src/api/resources/ats/resources/jobPostings/client/requests/JobPostingsRetrieveRequest.ts @@ -7,6 +7,10 @@ * {} */ export interface JobPostingsRetrieveRequest { + /** + * Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + */ + expand?: "job"; /** * Whether to include the original data Merge fetched from the third-party to produce these models. */ diff --git a/src/api/resources/ats/resources/jobs/client/Client.ts b/src/api/resources/ats/resources/jobs/client/Client.ts index 4d40c37d..5073a1c1 100644 --- a/src/api/resources/ats/resources/jobs/client/Client.ts +++ b/src/api/resources/ats/resources/jobs/client/Client.ts @@ -127,7 +127,7 @@ export class Jobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -208,7 +208,7 @@ export class Jobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -293,7 +293,7 @@ export class Jobs { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/linkToken/client/Client.ts b/src/api/resources/ats/resources/linkToken/client/Client.ts index f987012a..d7c14789 100644 --- a/src/api/resources/ats/resources/linkToken/client/Client.ts +++ b/src/api/resources/ats/resources/linkToken/client/Client.ts @@ -54,7 +54,7 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.EndUserDetailsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 60589509..28509ad9 100644 --- a/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -34,4 +34,6 @@ export interface EndUserDetailsRequest { categoryCommonModelScopes?: Record; /** The language code for the language to localize Merge Link to. */ language?: string; + /** A JSON object containing integration-specific configuration options. */ + integrationSpecificConfig?: Record; } diff --git a/src/api/resources/ats/resources/linkedAccounts/client/Client.ts b/src/api/resources/ats/resources/linkedAccounts/client/Client.ts index 939e7298..a09a22f4 100644 --- a/src/api/resources/ats/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/ats/resources/linkedAccounts/client/Client.ts @@ -117,7 +117,7 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/offers/client/Client.ts b/src/api/resources/ats/resources/offers/client/Client.ts index fbf39d06..bbfc045d 100644 --- a/src/api/resources/ats/resources/offers/client/Client.ts +++ b/src/api/resources/ats/resources/offers/client/Client.ts @@ -122,7 +122,7 @@ export class Offers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -203,7 +203,7 @@ export class Offers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/offices/client/Client.ts b/src/api/resources/ats/resources/offices/client/Client.ts index 9dbcf88f..312fe437 100644 --- a/src/api/resources/ats/resources/offices/client/Client.ts +++ b/src/api/resources/ats/resources/offices/client/Client.ts @@ -97,7 +97,7 @@ export class Offices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Offices { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/passthrough/client/Client.ts b/src/api/resources/ats/resources/passthrough/client/Client.ts index c33e0a04..38db06b8 100644 --- a/src/api/resources/ats/resources/passthrough/client/Client.ts +++ b/src/api/resources/ats/resources/passthrough/client/Client.ts @@ -52,7 +52,7 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.DataPassthroughRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ats/resources/regenerateKey/client/Client.ts b/src/api/resources/ats/resources/regenerateKey/client/Client.ts index a0669250..c9fbaec5 100644 --- a/src/api/resources/ats/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/ats/resources/regenerateKey/client/Client.ts @@ -51,7 +51,7 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ats/resources/rejectReasons/client/Client.ts b/src/api/resources/ats/resources/rejectReasons/client/Client.ts index 1e00b09e..03227793 100644 --- a/src/api/resources/ats/resources/rejectReasons/client/Client.ts +++ b/src/api/resources/ats/resources/rejectReasons/client/Client.ts @@ -97,7 +97,7 @@ export class RejectReasons { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class RejectReasons { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/scopes/client/Client.ts b/src/api/resources/ats/resources/scopes/client/Client.ts index 539426bf..8fe255c8 100644 --- a/src/api/resources/ats/resources/scopes/client/Client.ts +++ b/src/api/resources/ats/resources/scopes/client/Client.ts @@ -46,7 +46,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -106,7 +106,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -171,7 +171,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ats/resources/scorecards/client/Client.ts b/src/api/resources/ats/resources/scorecards/client/Client.ts index 9e095933..8fa93ac7 100644 --- a/src/api/resources/ats/resources/scorecards/client/Client.ts +++ b/src/api/resources/ats/resources/scorecards/client/Client.ts @@ -127,7 +127,7 @@ export class Scorecards { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -208,7 +208,7 @@ export class Scorecards { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/selectiveSync/client/Client.ts b/src/api/resources/ats/resources/selectiveSync/client/Client.ts deleted file mode 100644 index 77c925c0..00000000 --- a/src/api/resources/ats/resources/selectiveSync/client/Client.ts +++ /dev/null @@ -1,235 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../../../environments"; -import * as core from "../../../../../../core"; -import * as Merge from "../../../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../../../serialization"; -import * as errors from "../../../../../../errors"; - -export declare namespace SelectiveSync { - interface Options { - environment?: core.Supplier; - apiKey: core.Supplier; - accountToken?: core.Supplier; - } - - interface RequestOptions { - timeoutInSeconds?: number; - maxRetries?: number; - } -} - -export class SelectiveSync { - constructor(protected readonly _options: SelectiveSync.Options) {} - - /** - * Get a linked account's selective syncs. - * - * @example - * await merge.ats.selectiveSync.configurationsList() - */ - public async configurationsList( - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "ats/v1/selective-sync/configurations" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.ats.selectiveSync.configurationsList.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Replace a linked account's selective syncs. - * - * @example - * await merge.ats.selectiveSync.configurationsUpdate({ - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * }) - */ - public async configurationsUpdate( - request: Merge.ats.LinkedAccountSelectiveSyncConfigurationListRequest, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "ats/v1/selective-sync/configurations" - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - body: await serializers.ats.LinkedAccountSelectiveSyncConfigurationListRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.ats.selectiveSync.configurationsUpdate.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get metadata for the conditions available to a linked account. - * - * @example - * await merge.ats.selectiveSync.metaList({}) - */ - public async metaList( - request: Merge.ats.SelectiveSyncMetaListRequest = {}, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const { commonModel, cursor, pageSize } = request; - const _queryParams: Record = {}; - if (commonModel != null) { - _queryParams["common_model"] = commonModel; - } - - if (cursor != null) { - _queryParams["cursor"] = cursor; - } - - if (pageSize != null) { - _queryParams["page_size"] = pageSize.toString(); - } - - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "ats/v1/selective-sync/meta" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.ats.PaginatedConditionSchemaList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; - } -} diff --git a/src/api/resources/ats/resources/selectiveSync/client/index.ts b/src/api/resources/ats/resources/selectiveSync/client/index.ts deleted file mode 100644 index 415726b7..00000000 --- a/src/api/resources/ats/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ats/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/api/resources/ats/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 55c7d49d..00000000 --- a/src/api/resources/ats/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../../../../.."; - -/** - * @example - * { - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * } - */ -export interface LinkedAccountSelectiveSyncConfigurationListRequest { - /** The selective syncs associated with a linked account. */ - syncConfigurations: Merge.ats.LinkedAccountSelectiveSyncConfigurationRequest[]; -} diff --git a/src/api/resources/ats/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts b/src/api/resources/ats/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts deleted file mode 100644 index c633fb6d..00000000 --- a/src/api/resources/ats/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * {} - */ -export interface SelectiveSyncMetaListRequest { - commonModel?: string; - /** - * The pagination cursor value. - */ - cursor?: string; - /** - * Number of results to return per page. - */ - pageSize?: number; -} diff --git a/src/api/resources/ats/resources/selectiveSync/client/requests/index.ts b/src/api/resources/ats/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 6f48e141..00000000 --- a/src/api/resources/ats/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; -export { SelectiveSyncMetaListRequest } from "./SelectiveSyncMetaListRequest"; diff --git a/src/api/resources/ats/resources/selectiveSync/index.ts b/src/api/resources/ats/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/api/resources/ats/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ats/resources/syncStatus/client/Client.ts b/src/api/resources/ats/resources/syncStatus/client/Client.ts index d5a4ce60..05c3ecf3 100644 --- a/src/api/resources/ats/resources/syncStatus/client/Client.ts +++ b/src/api/resources/ats/resources/syncStatus/client/Client.ts @@ -59,7 +59,7 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/tags/client/Client.ts b/src/api/resources/ats/resources/tags/client/Client.ts index 158dbbee..f8116da3 100644 --- a/src/api/resources/ats/resources/tags/client/Client.ts +++ b/src/api/resources/ats/resources/tags/client/Client.ts @@ -97,7 +97,7 @@ export class Tags { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/users/client/Client.ts b/src/api/resources/ats/resources/users/client/Client.ts index c863f6e8..926867c2 100644 --- a/src/api/resources/ats/resources/users/client/Client.ts +++ b/src/api/resources/ats/resources/users/client/Client.ts @@ -112,7 +112,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -189,7 +189,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ats/resources/webhookReceivers/client/Client.ts b/src/api/resources/ats/resources/webhookReceivers/client/Client.ts index 0d9f5831..60bf4373 100644 --- a/src/api/resources/ats/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/ats/resources/webhookReceivers/client/Client.ts @@ -46,7 +46,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -110,7 +110,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ats.WebhookReceiverRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ats/types/Activity.ts b/src/api/resources/ats/types/Activity.ts index d716c263..9a1a1e50 100644 --- a/src/api/resources/ats/types/Activity.ts +++ b/src/api/resources/ats/types/Activity.ts @@ -19,8 +19,9 @@ export interface Activity { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The user that performed the action. */ user?: Merge.ats.ActivityUser; diff --git a/src/api/resources/ats/types/Application.ts b/src/api/resources/ats/types/Application.ts index dcf737db..34614522 100644 --- a/src/api/resources/ats/types/Application.ts +++ b/src/api/resources/ats/types/Application.ts @@ -19,8 +19,9 @@ export interface Application { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The candidate applying. */ candidate?: Merge.ats.ApplicationCandidate; diff --git a/src/api/resources/ats/types/Attachment.ts b/src/api/resources/ats/types/Attachment.ts index a050ef49..06e58485 100644 --- a/src/api/resources/ats/types/Attachment.ts +++ b/src/api/resources/ats/types/Attachment.ts @@ -19,8 +19,9 @@ export interface Attachment { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The attachment's name. */ fileName?: string; diff --git a/src/api/resources/ats/types/AuditLogEvent.ts b/src/api/resources/ats/types/AuditLogEvent.ts index 49c762e5..b712b23e 100644 --- a/src/api/resources/ats/types/AuditLogEvent.ts +++ b/src/api/resources/ats/types/AuditLogEvent.ts @@ -59,6 +59,9 @@ export interface AuditLogEvent { * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ eventType: Merge.ats.AuditLogEventEventType; eventDescription: string; diff --git a/src/api/resources/ats/types/AuditLogEventEventType.ts b/src/api/resources/ats/types/AuditLogEventEventType.ts index 7b76417d..8322cfb0 100644 --- a/src/api/resources/ats/types/AuditLogEventEventType.ts +++ b/src/api/resources/ats/types/AuditLogEventEventType.ts @@ -41,5 +41,8 @@ import * as Merge from "../../.."; * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type AuditLogEventEventType = Merge.ats.EventTypeEnum | string; diff --git a/src/api/resources/ats/types/Candidate.ts b/src/api/resources/ats/types/Candidate.ts index 1b465297..a4bae6ac 100644 --- a/src/api/resources/ats/types/Candidate.ts +++ b/src/api/resources/ats/types/Candidate.ts @@ -19,8 +19,9 @@ export interface Candidate { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The candidate's first name. */ firstName?: string; diff --git a/src/api/resources/ats/types/ConditionSchema.ts b/src/api/resources/ats/types/ConditionSchema.ts deleted file mode 100644 index 76ce86a3..00000000 --- a/src/api/resources/ats/types/ConditionSchema.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface ConditionSchema { - /** The ID of the condition schema. This ID is used when updating selective syncs for a linked account. */ - id: string; - /** The common model for which a condition schema is defined. */ - commonModel?: string; - nativeName?: string; - fieldName?: string; - /** Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times. */ - isUnique?: boolean; - /** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ - conditionType: Merge.ats.ConditionSchemaConditionType; - /** The schemas for the operators that can be used on a condition. */ - operators: Merge.ats.OperatorSchema[]; -} diff --git a/src/api/resources/ats/types/ConditionSchemaConditionType.ts b/src/api/resources/ats/types/ConditionSchemaConditionType.ts deleted file mode 100644 index 39c73c5a..00000000 --- a/src/api/resources/ats/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -/** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionSchemaConditionType = Merge.ats.ConditionTypeEnum | string; diff --git a/src/api/resources/ats/types/ConditionTypeEnum.ts b/src/api/resources/ats/types/ConditionTypeEnum.ts deleted file mode 100644 index 2b408be2..00000000 --- a/src/api/resources/ats/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionTypeEnum = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; - -export const ConditionTypeEnum = { - Boolean: "BOOLEAN", - Date: "DATE", - DateTime: "DATE_TIME", - Integer: "INTEGER", - Float: "FLOAT", - String: "STRING", - ListOfStrings: "LIST_OF_STRINGS", -} as const; diff --git a/src/api/resources/ats/types/Department.ts b/src/api/resources/ats/types/Department.ts index 81632885..4845b394 100644 --- a/src/api/resources/ats/types/Department.ts +++ b/src/api/resources/ats/types/Department.ts @@ -19,8 +19,9 @@ export interface Department { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The department's name. */ name?: string; diff --git a/src/api/resources/ats/types/Eeoc.ts b/src/api/resources/ats/types/Eeoc.ts index 4dc0da2b..2272b15d 100644 --- a/src/api/resources/ats/types/Eeoc.ts +++ b/src/api/resources/ats/types/Eeoc.ts @@ -19,8 +19,9 @@ export interface Eeoc { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The candidate being represented. */ candidate?: Merge.ats.EeocCandidate; diff --git a/src/api/resources/ats/types/EmailAddress.ts b/src/api/resources/ats/types/EmailAddress.ts index ecf204fe..e74416d1 100644 --- a/src/api/resources/ats/types/EmailAddress.ts +++ b/src/api/resources/ats/types/EmailAddress.ts @@ -16,8 +16,9 @@ import * as Merge from "../../.."; * Fetch from the `GET Candidate` endpoint and view their email addresses. */ export interface EmailAddress { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The email address. */ value?: string; diff --git a/src/api/resources/ats/types/EventTypeEnum.ts b/src/api/resources/ats/types/EventTypeEnum.ts index 01bc1b50..c8fb89f1 100644 --- a/src/api/resources/ats/types/EventTypeEnum.ts +++ b/src/api/resources/ats/types/EventTypeEnum.ts @@ -37,6 +37,9 @@ * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type EventTypeEnum = | "CREATED_REMOTE_PRODUCTION_API_KEY" @@ -72,7 +75,10 @@ export type EventTypeEnum = | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; export const EventTypeEnum = { CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", @@ -109,4 +115,7 @@ export const EventTypeEnum = { ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", MutedIssue: "MUTED_ISSUE", GeneratedMagicLink: "GENERATED_MAGIC_LINK", + EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", + DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", + MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", } as const; diff --git a/src/api/resources/ats/types/Job.ts b/src/api/resources/ats/types/Job.ts index eea31f3d..0b05b920 100644 --- a/src/api/resources/ats/types/Job.ts +++ b/src/api/resources/ats/types/Job.ts @@ -19,8 +19,9 @@ export interface Job { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The job's name. */ name?: string; diff --git a/src/api/resources/ats/types/JobInterviewStage.ts b/src/api/resources/ats/types/JobInterviewStage.ts index 2d50008e..797d5703 100644 --- a/src/api/resources/ats/types/JobInterviewStage.ts +++ b/src/api/resources/ats/types/JobInterviewStage.ts @@ -19,8 +19,9 @@ export interface JobInterviewStage { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** Standard stage names are offered by ATS systems but can be modified by users. */ name?: string; diff --git a/src/api/resources/ats/types/JobPosting.ts b/src/api/resources/ats/types/JobPosting.ts index 8d31eea5..30a154d6 100644 --- a/src/api/resources/ats/types/JobPosting.ts +++ b/src/api/resources/ats/types/JobPosting.ts @@ -19,8 +19,9 @@ export interface JobPosting { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The job posting’s title. */ title?: string; diff --git a/src/api/resources/ats/types/LinkedAccountCondition.ts b/src/api/resources/ats/types/LinkedAccountCondition.ts deleted file mode 100644 index 63d3f4dd..00000000 --- a/src/api/resources/ats/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountCondition { - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The common model for a specific condition. */ - commonModel?: string; - nativeName?: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; - fieldName?: string; -} diff --git a/src/api/resources/ats/types/LinkedAccountConditionRequest.ts b/src/api/resources/ats/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index b46b4c79..00000000 --- a/src/api/resources/ats/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountConditionRequest { - /** The ID indicating which Linked Account Condition this is. */ - id?: string; - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; -} diff --git a/src/api/resources/ats/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/api/resources/ats/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index fb41653a..00000000 --- a/src/api/resources/ats/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfiguration { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions?: Merge.ats.LinkedAccountCondition[]; -} diff --git a/src/api/resources/ats/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/api/resources/ats/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index e583eda8..00000000 --- a/src/api/resources/ats/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfigurationRequest { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions: Merge.ats.LinkedAccountConditionRequest[]; -} diff --git a/src/api/resources/ats/types/Offer.ts b/src/api/resources/ats/types/Offer.ts index e6c6146b..121549e7 100644 --- a/src/api/resources/ats/types/Offer.ts +++ b/src/api/resources/ats/types/Offer.ts @@ -19,8 +19,9 @@ export interface Offer { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The application who is receiving the offer. */ application?: Merge.ats.OfferApplication; diff --git a/src/api/resources/ats/types/Office.ts b/src/api/resources/ats/types/Office.ts index d4742484..27caccf5 100644 --- a/src/api/resources/ats/types/Office.ts +++ b/src/api/resources/ats/types/Office.ts @@ -19,8 +19,9 @@ export interface Office { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The office's name. */ name?: string; diff --git a/src/api/resources/ats/types/OperatorSchema.ts b/src/api/resources/ats/types/OperatorSchema.ts deleted file mode 100644 index fd1b2b92..00000000 --- a/src/api/resources/ats/types/OperatorSchema.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface OperatorSchema { - /** The operator for which an operator schema is defined. */ - operator?: string; - /** Whether the operator can be repeated multiple times. */ - isUnique?: boolean; -} diff --git a/src/api/resources/ats/types/PaginatedConditionSchemaList.ts b/src/api/resources/ats/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index 4ebbd4f1..00000000 --- a/src/api/resources/ats/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface PaginatedConditionSchemaList { - next?: string; - previous?: string; - results?: Merge.ats.ConditionSchema[]; -} diff --git a/src/api/resources/ats/types/PhoneNumber.ts b/src/api/resources/ats/types/PhoneNumber.ts index fc27127a..81a5de2f 100644 --- a/src/api/resources/ats/types/PhoneNumber.ts +++ b/src/api/resources/ats/types/PhoneNumber.ts @@ -16,8 +16,9 @@ import * as Merge from "../../.."; * Fetch from the `GET Candidate` endpoint and view their phone numbers. */ export interface PhoneNumber { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The phone number. */ value?: string; diff --git a/src/api/resources/ats/types/RejectReason.ts b/src/api/resources/ats/types/RejectReason.ts index d5c9b388..f1d16173 100644 --- a/src/api/resources/ats/types/RejectReason.ts +++ b/src/api/resources/ats/types/RejectReason.ts @@ -19,8 +19,9 @@ export interface RejectReason { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The rejection reason’s name. */ name?: string; diff --git a/src/api/resources/ats/types/RemoteFieldApi.ts b/src/api/resources/ats/types/RemoteFieldApi.ts index 49f51aa2..48ffb880 100644 --- a/src/api/resources/ats/types/RemoteFieldApi.ts +++ b/src/api/resources/ats/types/RemoteFieldApi.ts @@ -10,4 +10,5 @@ export interface RemoteFieldApi { remoteEndpointInfo: Merge.ats.RemoteEndpointInfo; exampleValues: unknown[]; advancedMetadata?: Merge.ats.AdvancedMetadata; + coverage?: Merge.ats.RemoteFieldApiCoverage; } diff --git a/src/api/resources/ats/types/RemoteFieldApiCoverage.ts b/src/api/resources/ats/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..9a8f479f --- /dev/null +++ b/src/api/resources/ats/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/ats/types/RemoteUser.ts b/src/api/resources/ats/types/RemoteUser.ts index 71ab3436..f208c85d 100644 --- a/src/api/resources/ats/types/RemoteUser.ts +++ b/src/api/resources/ats/types/RemoteUser.ts @@ -19,8 +19,9 @@ export interface RemoteUser { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The user's first name. */ firstName?: string; diff --git a/src/api/resources/ats/types/ScheduledInterview.ts b/src/api/resources/ats/types/ScheduledInterview.ts index 333a29e3..2d826c04 100644 --- a/src/api/resources/ats/types/ScheduledInterview.ts +++ b/src/api/resources/ats/types/ScheduledInterview.ts @@ -19,8 +19,9 @@ export interface ScheduledInterview { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The application being interviewed. */ application?: Merge.ats.ScheduledInterviewApplication; diff --git a/src/api/resources/ats/types/Scorecard.ts b/src/api/resources/ats/types/Scorecard.ts index 393302ef..7ff068da 100644 --- a/src/api/resources/ats/types/Scorecard.ts +++ b/src/api/resources/ats/types/Scorecard.ts @@ -19,8 +19,9 @@ export interface Scorecard { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The application being scored. */ application?: Merge.ats.ScorecardApplication; diff --git a/src/api/resources/ats/types/ScreeningQuestion.ts b/src/api/resources/ats/types/ScreeningQuestion.ts index 01486043..34cefb12 100644 --- a/src/api/resources/ats/types/ScreeningQuestion.ts +++ b/src/api/resources/ats/types/ScreeningQuestion.ts @@ -19,8 +19,9 @@ export interface ScreeningQuestion { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The job associated with the screening question. */ job?: Merge.ats.ScreeningQuestionJob; diff --git a/src/api/resources/ats/types/ScreeningQuestionOption.ts b/src/api/resources/ats/types/ScreeningQuestionOption.ts index ab0ad0dc..a0bc80ff 100644 --- a/src/api/resources/ats/types/ScreeningQuestionOption.ts +++ b/src/api/resources/ats/types/ScreeningQuestionOption.ts @@ -17,8 +17,9 @@ export interface ScreeningQuestionOption { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** Available response options */ label?: string; diff --git a/src/api/resources/ats/types/Tag.ts b/src/api/resources/ats/types/Tag.ts index d6cc729b..7d01f7ba 100644 --- a/src/api/resources/ats/types/Tag.ts +++ b/src/api/resources/ats/types/Tag.ts @@ -16,8 +16,9 @@ export interface Tag { /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The tag's name. */ name?: string; diff --git a/src/api/resources/ats/types/Url.ts b/src/api/resources/ats/types/Url.ts index 5fdf3b2c..bbbc0904 100644 --- a/src/api/resources/ats/types/Url.ts +++ b/src/api/resources/ats/types/Url.ts @@ -16,8 +16,9 @@ import * as Merge from "../../.."; * Fetch from the `GET Candidate` endpoint and view their website urls. */ export interface Url { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The site's url. */ value?: string; diff --git a/src/api/resources/ats/types/index.ts b/src/api/resources/ats/types/index.ts index 9b6bc2d9..c9695633 100644 --- a/src/api/resources/ats/types/index.ts +++ b/src/api/resources/ats/types/index.ts @@ -53,9 +53,6 @@ export * from "./CategoriesEnum"; export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; @@ -107,10 +104,6 @@ export * from "./JobPostingStatusEnum"; export * from "./JobStatusEnum"; export * from "./JobTypeEnum"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -125,7 +118,6 @@ export * from "./OfferStatus"; export * from "./Offer"; export * from "./OfferStatusEnum"; export * from "./Office"; -export * from "./OperatorSchema"; export * from "./OverallRecommendationEnum"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedActivityList"; @@ -133,7 +125,6 @@ export * from "./PaginatedApplicationList"; export * from "./PaginatedAttachmentList"; export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedCandidateList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedDepartmentList"; export * from "./PaginatedEeocList"; export * from "./PaginatedIssueList"; @@ -160,6 +151,7 @@ export * from "./ReasonEnum"; export * from "./RejectReason"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; diff --git a/src/api/resources/crm/client/Client.ts b/src/api/resources/crm/client/Client.ts index 1c60c699..cd27249b 100644 --- a/src/api/resources/crm/client/Client.ts +++ b/src/api/resources/crm/client/Client.ts @@ -29,7 +29,6 @@ import { Notes } from "../resources/notes/client/Client"; import { Opportunities } from "../resources/opportunities/client/Client"; import { Passthrough } from "../resources/passthrough/client/Client"; import { RegenerateKey } from "../resources/regenerateKey/client/Client"; -import { SelectiveSync } from "../resources/selectiveSync/client/Client"; import { Stages } from "../resources/stages/client/Client"; import { SyncStatus } from "../resources/syncStatus/client/Client"; import { ForceResync } from "../resources/forceResync/client/Client"; @@ -203,12 +202,6 @@ export class Crm { return (this._regenerateKey ??= new RegenerateKey(this._options)); } - protected _selectiveSync: SelectiveSync | undefined; - - public get selectiveSync(): SelectiveSync { - return (this._selectiveSync ??= new SelectiveSync(this._options)); - } - protected _stages: Stages | undefined; public get stages(): Stages { diff --git a/src/api/resources/crm/resources/accountDetails/client/Client.ts b/src/api/resources/crm/resources/accountDetails/client/Client.ts index fda40f16..d63298eb 100644 --- a/src/api/resources/crm/resources/accountDetails/client/Client.ts +++ b/src/api/resources/crm/resources/accountDetails/client/Client.ts @@ -46,7 +46,7 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/accountToken/client/Client.ts b/src/api/resources/crm/resources/accountToken/client/Client.ts index b1609cfc..3efbb34a 100644 --- a/src/api/resources/crm/resources/accountToken/client/Client.ts +++ b/src/api/resources/crm/resources/accountToken/client/Client.ts @@ -49,7 +49,7 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/accounts/client/Client.ts b/src/api/resources/crm/resources/accounts/client/Client.ts index caccc7ee..82f07a41 100644 --- a/src/api/resources/crm/resources/accounts/client/Client.ts +++ b/src/api/resources/crm/resources/accounts/client/Client.ts @@ -117,7 +117,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -191,7 +191,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -271,7 +271,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -346,7 +346,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -411,7 +411,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -469,7 +469,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -552,7 +552,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/associationTypes/client/Client.ts b/src/api/resources/crm/resources/associationTypes/client/Client.ts index bff2e15a..ef9ea7e4 100644 --- a/src/api/resources/crm/resources/associationTypes/client/Client.ts +++ b/src/api/resources/crm/resources/associationTypes/client/Client.ts @@ -103,7 +103,7 @@ export class AssociationTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -188,7 +188,7 @@ export class AssociationTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -265,7 +265,7 @@ export class AssociationTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -327,7 +327,7 @@ export class AssociationTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/associations/client/Client.ts b/src/api/resources/crm/resources/associations/client/Client.ts index 5e178213..67ad8754 100644 --- a/src/api/resources/crm/resources/associations/client/Client.ts +++ b/src/api/resources/crm/resources/associations/client/Client.ts @@ -109,7 +109,7 @@ export class Associations { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -186,7 +186,7 @@ export class Associations { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts b/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts index c15b9524..df0ff2df 100644 --- a/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/crm/resources/asyncPassthrough/client/Client.ts @@ -52,7 +52,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.DataPassthroughRequest.jsonOrThrow(request, { @@ -116,7 +116,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/auditTrail/client/Client.ts b/src/api/resources/crm/resources/auditTrail/client/Client.ts index 758ae814..d711a9f9 100644 --- a/src/api/resources/crm/resources/auditTrail/client/Client.ts +++ b/src/api/resources/crm/resources/auditTrail/client/Client.ts @@ -75,7 +75,7 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 6e49b389..a9bf6e8a 100644 --- a/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/crm/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED` */ eventType?: string; /** diff --git a/src/api/resources/crm/resources/availableActions/client/Client.ts b/src/api/resources/crm/resources/availableActions/client/Client.ts index bc87c248..982ab54b 100644 --- a/src/api/resources/crm/resources/availableActions/client/Client.ts +++ b/src/api/resources/crm/resources/availableActions/client/Client.ts @@ -46,7 +46,7 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/contacts/client/Client.ts b/src/api/resources/crm/resources/contacts/client/Client.ts index be7c4288..d068a830 100644 --- a/src/api/resources/crm/resources/contacts/client/Client.ts +++ b/src/api/resources/crm/resources/contacts/client/Client.ts @@ -122,7 +122,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -196,7 +196,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -276,7 +276,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -351,7 +351,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -397,8 +397,7 @@ export class Contacts { * * @example * await merge.crm.contacts.ignoreCreate("model_id", { - * reason: Merge.crm.ReasonEnum.GeneralCustomerRequest, - * message: "deletion request by user id 51903790-7dfe-4053-8d63-5a10cc4ffd39" + * reason: Merge.crm.ReasonEnum.GeneralCustomerRequest * }) */ public async ignoreCreate( @@ -420,7 +419,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.IgnoreCommonModelRequest.jsonOrThrow(request, { @@ -479,7 +478,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -537,7 +536,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -620,7 +619,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/customObjectClasses/client/Client.ts b/src/api/resources/crm/resources/customObjectClasses/client/Client.ts index bcf03905..646fbdd2 100644 --- a/src/api/resources/crm/resources/customObjectClasses/client/Client.ts +++ b/src/api/resources/crm/resources/customObjectClasses/client/Client.ts @@ -102,7 +102,7 @@ export class CustomObjectClasses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -175,7 +175,7 @@ export class CustomObjectClasses { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/customObjects/client/Client.ts b/src/api/resources/crm/resources/customObjects/client/Client.ts index 2c13af5c..c88e0840 100644 --- a/src/api/resources/crm/resources/customObjects/client/Client.ts +++ b/src/api/resources/crm/resources/customObjects/client/Client.ts @@ -103,7 +103,7 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -257,7 +257,7 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -319,7 +319,7 @@ export class CustomObjects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/deleteAccount/client/Client.ts b/src/api/resources/crm/resources/deleteAccount/client/Client.ts index d29216e3..e48a2802 100644 --- a/src/api/resources/crm/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/crm/resources/deleteAccount/client/Client.ts @@ -44,7 +44,7 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/engagementTypes/client/Client.ts b/src/api/resources/crm/resources/engagementTypes/client/Client.ts index 137c8f77..09ee3073 100644 --- a/src/api/resources/crm/resources/engagementTypes/client/Client.ts +++ b/src/api/resources/crm/resources/engagementTypes/client/Client.ts @@ -102,7 +102,7 @@ export class EngagementTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -175,7 +175,7 @@ export class EngagementTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -259,7 +259,7 @@ export class EngagementTypes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/engagements/client/Client.ts b/src/api/resources/crm/resources/engagements/client/Client.ts index 3bb9c27a..3e41b9b2 100644 --- a/src/api/resources/crm/resources/engagements/client/Client.ts +++ b/src/api/resources/crm/resources/engagements/client/Client.ts @@ -117,7 +117,7 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -191,7 +191,7 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -271,7 +271,7 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -346,7 +346,7 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -411,7 +411,7 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -469,7 +469,7 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -552,7 +552,7 @@ export class Engagements { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/fieldMapping/client/Client.ts b/src/api/resources/crm/resources/fieldMapping/client/Client.ts index 7433208e..485e6320 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/Client.ts @@ -48,7 +48,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -116,7 +116,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.CreateFieldMappingRequest.jsonOrThrow(request, { @@ -180,7 +180,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -221,10 +221,7 @@ export class FieldMapping { * 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. * * @example - * await merge.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * }) + * await merge.crm.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", {}) */ public async fieldMappingsPartialUpdate( fieldMappingId: string, @@ -245,7 +242,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.PatchedEditFieldMappingRequest.jsonOrThrow(request, { @@ -319,7 +316,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -380,7 +377,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index 671f9e4a..b1e31108 100644 --- a/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/crm/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -4,10 +4,7 @@ /** * @example - * { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * } + * {} */ export interface PatchedEditFieldMappingRequest { /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ diff --git a/src/api/resources/crm/resources/forceResync/client/Client.ts b/src/api/resources/crm/resources/forceResync/client/Client.ts index 46c45ffc..12807dba 100644 --- a/src/api/resources/crm/resources/forceResync/client/Client.ts +++ b/src/api/resources/crm/resources/forceResync/client/Client.ts @@ -46,7 +46,7 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/generateKey/client/Client.ts b/src/api/resources/crm/resources/generateKey/client/Client.ts index cd4c6a39..07d28d59 100644 --- a/src/api/resources/crm/resources/generateKey/client/Client.ts +++ b/src/api/resources/crm/resources/generateKey/client/Client.ts @@ -51,7 +51,7 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.GenerateRemoteKeyRequest.jsonOrThrow(request, { diff --git a/src/api/resources/crm/resources/index.ts b/src/api/resources/crm/resources/index.ts index c641ae59..aebc0217 100644 --- a/src/api/resources/crm/resources/index.ts +++ b/src/api/resources/crm/resources/index.ts @@ -32,7 +32,6 @@ export * as generateKey from "./generateKey"; export * as linkToken from "./linkToken"; export * as passthrough from "./passthrough"; export * as regenerateKey from "./regenerateKey"; -export * as selectiveSync from "./selectiveSync"; export * as stages from "./stages"; export * as syncStatus from "./syncStatus"; export * as forceResync from "./forceResync"; @@ -57,7 +56,6 @@ export * from "./linkedAccounts/client/requests"; export * from "./notes/client/requests"; export * from "./opportunities/client/requests"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./stages/client/requests"; export * from "./syncStatus/client/requests"; export * from "./tasks/client/requests"; diff --git a/src/api/resources/crm/resources/issues/client/Client.ts b/src/api/resources/crm/resources/issues/client/Client.ts index fddaff2f..378745f1 100644 --- a/src/api/resources/crm/resources/issues/client/Client.ts +++ b/src/api/resources/crm/resources/issues/client/Client.ts @@ -117,7 +117,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -176,7 +176,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/crm/resources/leads/client/Client.ts b/src/api/resources/crm/resources/leads/client/Client.ts index c8411d52..c83625ae 100644 --- a/src/api/resources/crm/resources/leads/client/Client.ts +++ b/src/api/resources/crm/resources/leads/client/Client.ts @@ -132,7 +132,7 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -206,7 +206,7 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -284,7 +284,7 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -343,7 +343,7 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -426,7 +426,7 @@ export class Leads { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/linkToken/client/Client.ts b/src/api/resources/crm/resources/linkToken/client/Client.ts index 5f84fb5e..e2809f8c 100644 --- a/src/api/resources/crm/resources/linkToken/client/Client.ts +++ b/src/api/resources/crm/resources/linkToken/client/Client.ts @@ -54,7 +54,7 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.EndUserDetailsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), diff --git a/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts index a3ac4dad..69b67554 100644 --- a/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -34,4 +34,6 @@ export interface EndUserDetailsRequest { categoryCommonModelScopes?: Record; /** The language code for the language to localize Merge Link to. */ language?: string; + /** A JSON object containing integration-specific configuration options. */ + integrationSpecificConfig?: Record; } diff --git a/src/api/resources/crm/resources/linkedAccounts/client/Client.ts b/src/api/resources/crm/resources/linkedAccounts/client/Client.ts index 5d78a5e0..d272a96a 100644 --- a/src/api/resources/crm/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/crm/resources/linkedAccounts/client/Client.ts @@ -117,7 +117,7 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/notes/client/Client.ts b/src/api/resources/crm/resources/notes/client/Client.ts index 3a921d0d..e13ad8cb 100644 --- a/src/api/resources/crm/resources/notes/client/Client.ts +++ b/src/api/resources/crm/resources/notes/client/Client.ts @@ -127,7 +127,7 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -201,7 +201,7 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -279,7 +279,7 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -338,7 +338,7 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -421,7 +421,7 @@ export class Notes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/opportunities/client/Client.ts b/src/api/resources/crm/resources/opportunities/client/Client.ts index 4beeb24c..a9c381db 100644 --- a/src/api/resources/crm/resources/opportunities/client/Client.ts +++ b/src/api/resources/crm/resources/opportunities/client/Client.ts @@ -137,7 +137,7 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -211,7 +211,7 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -299,7 +299,7 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -374,7 +374,7 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -439,7 +439,7 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -497,7 +497,7 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -580,7 +580,7 @@ export class Opportunities { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/passthrough/client/Client.ts b/src/api/resources/crm/resources/passthrough/client/Client.ts index 52b6fd6a..3b8216be 100644 --- a/src/api/resources/crm/resources/passthrough/client/Client.ts +++ b/src/api/resources/crm/resources/passthrough/client/Client.ts @@ -52,7 +52,7 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.DataPassthroughRequest.jsonOrThrow(request, { diff --git a/src/api/resources/crm/resources/regenerateKey/client/Client.ts b/src/api/resources/crm/resources/regenerateKey/client/Client.ts index f7a7f40c..03e871bd 100644 --- a/src/api/resources/crm/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/crm/resources/regenerateKey/client/Client.ts @@ -51,7 +51,7 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { diff --git a/src/api/resources/crm/resources/scopes/client/Client.ts b/src/api/resources/crm/resources/scopes/client/Client.ts index 82665f88..269b0c76 100644 --- a/src/api/resources/crm/resources/scopes/client/Client.ts +++ b/src/api/resources/crm/resources/scopes/client/Client.ts @@ -46,7 +46,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -106,7 +106,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -171,7 +171,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { diff --git a/src/api/resources/crm/resources/selectiveSync/client/Client.ts b/src/api/resources/crm/resources/selectiveSync/client/Client.ts deleted file mode 100644 index 05d3f2be..00000000 --- a/src/api/resources/crm/resources/selectiveSync/client/Client.ts +++ /dev/null @@ -1,235 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../../../environments"; -import * as core from "../../../../../../core"; -import * as Merge from "../../../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../../../serialization"; -import * as errors from "../../../../../../errors"; - -export declare namespace SelectiveSync { - interface Options { - environment?: core.Supplier; - apiKey: core.Supplier; - accountToken?: core.Supplier; - } - - interface RequestOptions { - timeoutInSeconds?: number; - maxRetries?: number; - } -} - -export class SelectiveSync { - constructor(protected readonly _options: SelectiveSync.Options) {} - - /** - * Get a linked account's selective syncs. - * - * @example - * await merge.crm.selectiveSync.configurationsList() - */ - public async configurationsList( - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "crm/v1/selective-sync/configurations" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.crm.selectiveSync.configurationsList.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Replace a linked account's selective syncs. - * - * @example - * await merge.crm.selectiveSync.configurationsUpdate({ - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * }) - */ - public async configurationsUpdate( - request: Merge.crm.LinkedAccountSelectiveSyncConfigurationListRequest, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "crm/v1/selective-sync/configurations" - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - body: await serializers.crm.LinkedAccountSelectiveSyncConfigurationListRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.crm.selectiveSync.configurationsUpdate.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get metadata for the conditions available to a linked account. - * - * @example - * await merge.crm.selectiveSync.metaList({}) - */ - public async metaList( - request: Merge.crm.SelectiveSyncMetaListRequest = {}, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const { commonModel, cursor, pageSize } = request; - const _queryParams: Record = {}; - if (commonModel != null) { - _queryParams["common_model"] = commonModel; - } - - if (cursor != null) { - _queryParams["cursor"] = cursor; - } - - if (pageSize != null) { - _queryParams["page_size"] = pageSize.toString(); - } - - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "crm/v1/selective-sync/meta" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.crm.PaginatedConditionSchemaList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; - } -} diff --git a/src/api/resources/crm/resources/selectiveSync/client/index.ts b/src/api/resources/crm/resources/selectiveSync/client/index.ts deleted file mode 100644 index 415726b7..00000000 --- a/src/api/resources/crm/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/crm/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/api/resources/crm/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 4334bae4..00000000 --- a/src/api/resources/crm/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../../../../.."; - -/** - * @example - * { - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * } - */ -export interface LinkedAccountSelectiveSyncConfigurationListRequest { - /** The selective syncs associated with a linked account. */ - syncConfigurations: Merge.crm.LinkedAccountSelectiveSyncConfigurationRequest[]; -} diff --git a/src/api/resources/crm/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts b/src/api/resources/crm/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts deleted file mode 100644 index c633fb6d..00000000 --- a/src/api/resources/crm/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * {} - */ -export interface SelectiveSyncMetaListRequest { - commonModel?: string; - /** - * The pagination cursor value. - */ - cursor?: string; - /** - * Number of results to return per page. - */ - pageSize?: number; -} diff --git a/src/api/resources/crm/resources/selectiveSync/client/requests/index.ts b/src/api/resources/crm/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 6f48e141..00000000 --- a/src/api/resources/crm/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; -export { SelectiveSyncMetaListRequest } from "./SelectiveSyncMetaListRequest"; diff --git a/src/api/resources/crm/resources/selectiveSync/index.ts b/src/api/resources/crm/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/api/resources/crm/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/crm/resources/stages/client/Client.ts b/src/api/resources/crm/resources/stages/client/Client.ts index 46ab91ab..e25207ba 100644 --- a/src/api/resources/crm/resources/stages/client/Client.ts +++ b/src/api/resources/crm/resources/stages/client/Client.ts @@ -102,7 +102,7 @@ export class Stages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -175,7 +175,7 @@ export class Stages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -259,7 +259,7 @@ export class Stages { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/syncStatus/client/Client.ts b/src/api/resources/crm/resources/syncStatus/client/Client.ts index 2aebf310..ff4d0e13 100644 --- a/src/api/resources/crm/resources/syncStatus/client/Client.ts +++ b/src/api/resources/crm/resources/syncStatus/client/Client.ts @@ -59,7 +59,7 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/tasks/client/Client.ts b/src/api/resources/crm/resources/tasks/client/Client.ts index 2a5680ef..f49912a4 100644 --- a/src/api/resources/crm/resources/tasks/client/Client.ts +++ b/src/api/resources/crm/resources/tasks/client/Client.ts @@ -107,7 +107,7 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -181,7 +181,7 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -259,7 +259,7 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -334,7 +334,7 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -396,7 +396,7 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -454,7 +454,7 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -537,7 +537,7 @@ export class Tasks { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/users/client/Client.ts b/src/api/resources/crm/resources/users/client/Client.ts index a5dde028..4be00fa3 100644 --- a/src/api/resources/crm/resources/users/client/Client.ts +++ b/src/api/resources/crm/resources/users/client/Client.ts @@ -102,7 +102,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -175,7 +175,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -218,8 +218,7 @@ export class Users { * * @example * await merge.crm.users.ignoreCreate("model_id", { - * reason: Merge.crm.ReasonEnum.GeneralCustomerRequest, - * message: "deletion request by user id 51903790-7dfe-4053-8d63-5a10cc4ffd39" + * reason: Merge.crm.ReasonEnum.GeneralCustomerRequest * }) */ public async ignoreCreate( @@ -241,7 +240,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.IgnoreCommonModelRequest.jsonOrThrow(request, { @@ -322,7 +321,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/crm/resources/webhookReceivers/client/Client.ts b/src/api/resources/crm/resources/webhookReceivers/client/Client.ts index ef9004c1..c4b27ec0 100644 --- a/src/api/resources/crm/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/crm/resources/webhookReceivers/client/Client.ts @@ -46,7 +46,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -110,7 +110,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.crm.WebhookReceiverRequest.jsonOrThrow(request, { diff --git a/src/api/resources/crm/types/Account.ts b/src/api/resources/crm/types/Account.ts index 51910c1b..9cf22af8 100644 --- a/src/api/resources/crm/types/Account.ts +++ b/src/api/resources/crm/types/Account.ts @@ -19,8 +19,9 @@ export interface Account { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The account's owner. */ owner?: Merge.crm.AccountOwner; diff --git a/src/api/resources/crm/types/AccountRequest.ts b/src/api/resources/crm/types/AccountRequest.ts index 6a239ff7..aa3edd9c 100644 --- a/src/api/resources/crm/types/AccountRequest.ts +++ b/src/api/resources/crm/types/AccountRequest.ts @@ -28,6 +28,7 @@ export interface AccountRequest { website?: string; /** The account's number of employees. */ numberOfEmployees?: number; + addresses?: Merge.crm.AddressRequest[]; /** The last date (either most recent or furthest in the future) of when an activity occurs in an account. */ lastActivityAt?: Date; integrationParams?: Record; diff --git a/src/api/resources/crm/types/Address.ts b/src/api/resources/crm/types/Address.ts index 91ec6649..b04f528e 100644 --- a/src/api/resources/crm/types/Address.ts +++ b/src/api/resources/crm/types/Address.ts @@ -16,8 +16,9 @@ import * as Merge from "../../.."; * TODO */ export interface Address { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** Line 1 of the address's street. */ street1?: string; diff --git a/src/api/resources/crm/types/Association.ts b/src/api/resources/crm/types/Association.ts index be3c2be1..63763d00 100644 --- a/src/api/resources/crm/types/Association.ts +++ b/src/api/resources/crm/types/Association.ts @@ -16,10 +16,12 @@ import * as Merge from "../../.."; * TODO */ export interface Association { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; sourceObject?: Record; targetObject?: Record; + /** The association type the association belongs to. */ associationType?: Merge.crm.AssociationAssociationType; } diff --git a/src/api/resources/crm/types/AssociationAssociationType.ts b/src/api/resources/crm/types/AssociationAssociationType.ts index 9e0b141d..a5ce7d5b 100644 --- a/src/api/resources/crm/types/AssociationAssociationType.ts +++ b/src/api/resources/crm/types/AssociationAssociationType.ts @@ -4,4 +4,7 @@ import * as Merge from "../../.."; +/** + * The association type the association belongs to. + */ export type AssociationAssociationType = string | Merge.crm.AssociationType; diff --git a/src/api/resources/crm/types/AssociationSubType.ts b/src/api/resources/crm/types/AssociationSubType.ts index 76109f34..8d64f86a 100644 --- a/src/api/resources/crm/types/AssociationSubType.ts +++ b/src/api/resources/crm/types/AssociationSubType.ts @@ -4,8 +4,9 @@ export interface AssociationSubType { id?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; originType?: string; } diff --git a/src/api/resources/crm/types/AssociationType.ts b/src/api/resources/crm/types/AssociationType.ts index f67671db..41842296 100644 --- a/src/api/resources/crm/types/AssociationType.ts +++ b/src/api/resources/crm/types/AssociationType.ts @@ -19,9 +19,11 @@ export interface AssociationType { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; + /** The class of the source object (Custom Object or Common Model) for the association type. */ sourceObjectClass?: Record; targetObjectClasses?: Merge.crm.AssociationSubType[]; remoteKeyName?: string; diff --git a/src/api/resources/crm/types/AuditLogEvent.ts b/src/api/resources/crm/types/AuditLogEvent.ts index ce4ff014..270ce1d7 100644 --- a/src/api/resources/crm/types/AuditLogEvent.ts +++ b/src/api/resources/crm/types/AuditLogEvent.ts @@ -59,6 +59,9 @@ export interface AuditLogEvent { * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ eventType: Merge.crm.AuditLogEventEventType; eventDescription: string; diff --git a/src/api/resources/crm/types/AuditLogEventEventType.ts b/src/api/resources/crm/types/AuditLogEventEventType.ts index 60cb3e87..072d7f04 100644 --- a/src/api/resources/crm/types/AuditLogEventEventType.ts +++ b/src/api/resources/crm/types/AuditLogEventEventType.ts @@ -41,5 +41,8 @@ import * as Merge from "../../.."; * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type AuditLogEventEventType = Merge.crm.EventTypeEnum | string; diff --git a/src/api/resources/crm/types/ConditionSchema.ts b/src/api/resources/crm/types/ConditionSchema.ts deleted file mode 100644 index 880a2154..00000000 --- a/src/api/resources/crm/types/ConditionSchema.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface ConditionSchema { - /** The ID of the condition schema. This ID is used when updating selective syncs for a linked account. */ - id: string; - /** The common model for which a condition schema is defined. */ - commonModel?: string; - nativeName?: string; - fieldName?: string; - /** Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times. */ - isUnique?: boolean; - /** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ - conditionType: Merge.crm.ConditionSchemaConditionType; - /** The schemas for the operators that can be used on a condition. */ - operators: Merge.crm.OperatorSchema[]; -} diff --git a/src/api/resources/crm/types/ConditionSchemaConditionType.ts b/src/api/resources/crm/types/ConditionSchemaConditionType.ts deleted file mode 100644 index 96acfefb..00000000 --- a/src/api/resources/crm/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -/** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionSchemaConditionType = Merge.crm.ConditionTypeEnum | string; diff --git a/src/api/resources/crm/types/ConditionTypeEnum.ts b/src/api/resources/crm/types/ConditionTypeEnum.ts deleted file mode 100644 index 2b408be2..00000000 --- a/src/api/resources/crm/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionTypeEnum = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; - -export const ConditionTypeEnum = { - Boolean: "BOOLEAN", - Date: "DATE", - DateTime: "DATE_TIME", - Integer: "INTEGER", - Float: "FLOAT", - String: "STRING", - ListOfStrings: "LIST_OF_STRINGS", -} as const; diff --git a/src/api/resources/crm/types/Contact.ts b/src/api/resources/crm/types/Contact.ts index 7f0ed728..3c161b10 100644 --- a/src/api/resources/crm/types/Contact.ts +++ b/src/api/resources/crm/types/Contact.ts @@ -19,8 +19,9 @@ export interface Contact { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The contact's first name. */ firstName?: string; diff --git a/src/api/resources/crm/types/CustomObject.ts b/src/api/resources/crm/types/CustomObject.ts index 1cff4c42..a9a998d8 100644 --- a/src/api/resources/crm/types/CustomObject.ts +++ b/src/api/resources/crm/types/CustomObject.ts @@ -19,10 +19,13 @@ export interface CustomObject { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; + /** The custom object class the custom object record belongs to. */ objectClass?: string; + /** The fields and values contained within the custom object record. */ fields?: Record; remoteFields?: Merge.crm.RemoteField[]; } diff --git a/src/api/resources/crm/types/CustomObjectClass.ts b/src/api/resources/crm/types/CustomObjectClass.ts index f07efcf4..116786ca 100644 --- a/src/api/resources/crm/types/CustomObjectClass.ts +++ b/src/api/resources/crm/types/CustomObjectClass.ts @@ -21,9 +21,13 @@ export interface CustomObjectClass { remoteId?: string; createdAt?: Date; modifiedAt?: Date; + /** The custom object class's name. */ name?: string; + /** The custom object class's description. */ description?: string; + /** The custom object class's singular and plural labels. */ labels?: Record; fields?: Merge.crm.RemoteFieldClassForCustomObjectClass[]; + /** The types of associations with other models that the custom object class can have. */ associationTypes?: Record[]; } diff --git a/src/api/resources/crm/types/EmailAddress.ts b/src/api/resources/crm/types/EmailAddress.ts index 2944a434..366d1e63 100644 --- a/src/api/resources/crm/types/EmailAddress.ts +++ b/src/api/resources/crm/types/EmailAddress.ts @@ -14,8 +14,9 @@ * Fetch from the `GET Contact` endpoint and view their email addresses. */ export interface EmailAddress { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The email address. */ emailAddress?: string; diff --git a/src/api/resources/crm/types/Engagement.ts b/src/api/resources/crm/types/Engagement.ts index ded57d7b..3cd9c971 100644 --- a/src/api/resources/crm/types/Engagement.ts +++ b/src/api/resources/crm/types/Engagement.ts @@ -19,8 +19,9 @@ export interface Engagement { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The engagement's owner. */ owner?: Merge.crm.EngagementOwner; diff --git a/src/api/resources/crm/types/EngagementType.ts b/src/api/resources/crm/types/EngagementType.ts index e371ebd2..d5236ef7 100644 --- a/src/api/resources/crm/types/EngagementType.ts +++ b/src/api/resources/crm/types/EngagementType.ts @@ -19,8 +19,9 @@ export interface EngagementType { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** * The engagement type's activity type. diff --git a/src/api/resources/crm/types/EventTypeEnum.ts b/src/api/resources/crm/types/EventTypeEnum.ts index 01bc1b50..c8fb89f1 100644 --- a/src/api/resources/crm/types/EventTypeEnum.ts +++ b/src/api/resources/crm/types/EventTypeEnum.ts @@ -37,6 +37,9 @@ * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type EventTypeEnum = | "CREATED_REMOTE_PRODUCTION_API_KEY" @@ -72,7 +75,10 @@ export type EventTypeEnum = | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; export const EventTypeEnum = { CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", @@ -109,4 +115,7 @@ export const EventTypeEnum = { ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", MutedIssue: "MUTED_ISSUE", GeneratedMagicLink: "GENERATED_MAGIC_LINK", + EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", + DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", + MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", } as const; diff --git a/src/api/resources/crm/types/Lead.ts b/src/api/resources/crm/types/Lead.ts index b68a7edd..86f1cd1b 100644 --- a/src/api/resources/crm/types/Lead.ts +++ b/src/api/resources/crm/types/Lead.ts @@ -19,8 +19,9 @@ export interface Lead { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The lead's owner. */ owner?: Merge.crm.LeadOwner; diff --git a/src/api/resources/crm/types/LinkedAccountCondition.ts b/src/api/resources/crm/types/LinkedAccountCondition.ts deleted file mode 100644 index 63d3f4dd..00000000 --- a/src/api/resources/crm/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountCondition { - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The common model for a specific condition. */ - commonModel?: string; - nativeName?: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; - fieldName?: string; -} diff --git a/src/api/resources/crm/types/LinkedAccountConditionRequest.ts b/src/api/resources/crm/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index b46b4c79..00000000 --- a/src/api/resources/crm/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountConditionRequest { - /** The ID indicating which Linked Account Condition this is. */ - id?: string; - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; -} diff --git a/src/api/resources/crm/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/api/resources/crm/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index 3ab67b38..00000000 --- a/src/api/resources/crm/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfiguration { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions?: Merge.crm.LinkedAccountCondition[]; -} diff --git a/src/api/resources/crm/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/api/resources/crm/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 540b10d8..00000000 --- a/src/api/resources/crm/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfigurationRequest { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions: Merge.crm.LinkedAccountConditionRequest[]; -} diff --git a/src/api/resources/crm/types/Note.ts b/src/api/resources/crm/types/Note.ts index 4732b1b3..8c2aec89 100644 --- a/src/api/resources/crm/types/Note.ts +++ b/src/api/resources/crm/types/Note.ts @@ -19,8 +19,9 @@ export interface Note { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The note's owner. */ owner?: Merge.crm.NoteOwner; diff --git a/src/api/resources/crm/types/OperatorSchema.ts b/src/api/resources/crm/types/OperatorSchema.ts deleted file mode 100644 index fd1b2b92..00000000 --- a/src/api/resources/crm/types/OperatorSchema.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface OperatorSchema { - /** The operator for which an operator schema is defined. */ - operator?: string; - /** Whether the operator can be repeated multiple times. */ - isUnique?: boolean; -} diff --git a/src/api/resources/crm/types/Opportunity.ts b/src/api/resources/crm/types/Opportunity.ts index 674b41e4..a4877048 100644 --- a/src/api/resources/crm/types/Opportunity.ts +++ b/src/api/resources/crm/types/Opportunity.ts @@ -19,8 +19,9 @@ export interface Opportunity { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The opportunity's name. */ name?: string; diff --git a/src/api/resources/crm/types/PaginatedConditionSchemaList.ts b/src/api/resources/crm/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index a900f315..00000000 --- a/src/api/resources/crm/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface PaginatedConditionSchemaList { - next?: string; - previous?: string; - results?: Merge.crm.ConditionSchema[]; -} diff --git a/src/api/resources/crm/types/PatchedAccountRequest.ts b/src/api/resources/crm/types/PatchedAccountRequest.ts index d3adaf13..cebf3d66 100644 --- a/src/api/resources/crm/types/PatchedAccountRequest.ts +++ b/src/api/resources/crm/types/PatchedAccountRequest.ts @@ -28,6 +28,7 @@ export interface PatchedAccountRequest { website?: string; /** The account's number of employees. */ numberOfEmployees?: number; + addresses?: Merge.crm.AddressRequest[]; /** The last date (either most recent or furthest in the future) of when an activity occurs in an account. */ lastActivityAt?: Date; integrationParams?: Record; diff --git a/src/api/resources/crm/types/PhoneNumber.ts b/src/api/resources/crm/types/PhoneNumber.ts index e8b1de38..d250f19c 100644 --- a/src/api/resources/crm/types/PhoneNumber.ts +++ b/src/api/resources/crm/types/PhoneNumber.ts @@ -14,8 +14,9 @@ * Fetch from the `GET Contact` endpoint and view their phone numbers. */ export interface PhoneNumber { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The phone number. */ phoneNumber?: string; diff --git a/src/api/resources/crm/types/RemoteFieldApi.ts b/src/api/resources/crm/types/RemoteFieldApi.ts index 0aa7c479..9b687ef4 100644 --- a/src/api/resources/crm/types/RemoteFieldApi.ts +++ b/src/api/resources/crm/types/RemoteFieldApi.ts @@ -10,4 +10,5 @@ export interface RemoteFieldApi { remoteEndpointInfo: Merge.crm.RemoteEndpointInfo; exampleValues: unknown[]; advancedMetadata?: Merge.crm.AdvancedMetadata; + coverage?: Merge.crm.RemoteFieldApiCoverage; } diff --git a/src/api/resources/crm/types/RemoteFieldApiCoverage.ts b/src/api/resources/crm/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..9a8f479f --- /dev/null +++ b/src/api/resources/crm/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts b/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts index fff60a00..378e2ab5 100644 --- a/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts +++ b/src/api/resources/crm/types/RemoteFieldClassForCustomObjectClass.ts @@ -5,8 +5,9 @@ import * as Merge from "../../.."; export interface RemoteFieldClassForCustomObjectClass { + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; displayName?: string; remoteKeyName?: string; diff --git a/src/api/resources/crm/types/Stage.ts b/src/api/resources/crm/types/Stage.ts index 4334c7fb..d80a5b75 100644 --- a/src/api/resources/crm/types/Stage.ts +++ b/src/api/resources/crm/types/Stage.ts @@ -19,8 +19,9 @@ export interface Stage { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The stage's name. */ name?: string; diff --git a/src/api/resources/crm/types/Task.ts b/src/api/resources/crm/types/Task.ts index 50b40f2e..ded55d46 100644 --- a/src/api/resources/crm/types/Task.ts +++ b/src/api/resources/crm/types/Task.ts @@ -19,8 +19,9 @@ export interface Task { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The task's subject. */ subject?: string; diff --git a/src/api/resources/crm/types/User.ts b/src/api/resources/crm/types/User.ts index 6d20126a..c5e6cf61 100644 --- a/src/api/resources/crm/types/User.ts +++ b/src/api/resources/crm/types/User.ts @@ -19,8 +19,9 @@ export interface User { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The user's name. */ name?: string; diff --git a/src/api/resources/crm/types/index.ts b/src/api/resources/crm/types/index.ts index 336a12cd..86f9e3c9 100644 --- a/src/api/resources/crm/types/index.ts +++ b/src/api/resources/crm/types/index.ts @@ -37,9 +37,6 @@ export * from "./CategoriesEnum"; export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./ContactAccount"; export * from "./ContactOwner"; export * from "./Contact"; @@ -106,10 +103,6 @@ export * from "./LeadRequestConvertedAccount"; export * from "./LeadRequest"; export * from "./LeadResponse"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -130,7 +123,6 @@ export * from "./NoteRequestOpportunity"; export * from "./NoteRequest"; export * from "./NoteResponse"; export * from "./ObjectClassDescriptionRequest"; -export * from "./OperatorSchema"; export * from "./OpportunityOwner"; export * from "./OpportunityAccount"; export * from "./OpportunityStage"; @@ -149,7 +141,6 @@ export * from "./PaginatedAccountList"; export * from "./PaginatedAssociationList"; export * from "./PaginatedAssociationTypeList"; export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedContactList"; export * from "./PaginatedCustomObjectClassList"; export * from "./PaginatedCustomObjectList"; @@ -180,6 +171,7 @@ export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteFieldRemoteFieldClass"; export * from "./RemoteField"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClassFieldType"; diff --git a/src/api/resources/filestorage/client/Client.ts b/src/api/resources/filestorage/client/Client.ts index f010bb72..3d0c20e6 100644 --- a/src/api/resources/filestorage/client/Client.ts +++ b/src/api/resources/filestorage/client/Client.ts @@ -22,7 +22,6 @@ import { LinkToken } from "../resources/linkToken/client/Client"; import { LinkedAccounts } from "../resources/linkedAccounts/client/Client"; import { Passthrough } from "../resources/passthrough/client/Client"; import { RegenerateKey } from "../resources/regenerateKey/client/Client"; -import { SelectiveSync } from "../resources/selectiveSync/client/Client"; import { SyncStatus } from "../resources/syncStatus/client/Client"; import { ForceResync } from "../resources/forceResync/client/Client"; import { Users } from "../resources/users/client/Client"; @@ -152,12 +151,6 @@ export class Filestorage { return (this._regenerateKey ??= new RegenerateKey(this._options)); } - protected _selectiveSync: SelectiveSync | undefined; - - public get selectiveSync(): SelectiveSync { - return (this._selectiveSync ??= new SelectiveSync(this._options)); - } - protected _syncStatus: SyncStatus | undefined; public get syncStatus(): SyncStatus { diff --git a/src/api/resources/filestorage/resources/accountDetails/client/Client.ts b/src/api/resources/filestorage/resources/accountDetails/client/Client.ts index b54fad82..cebfffb4 100644 --- a/src/api/resources/filestorage/resources/accountDetails/client/Client.ts +++ b/src/api/resources/filestorage/resources/accountDetails/client/Client.ts @@ -46,7 +46,7 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/accountToken/client/Client.ts b/src/api/resources/filestorage/resources/accountToken/client/Client.ts index e845201f..8c1f72ec 100644 --- a/src/api/resources/filestorage/resources/accountToken/client/Client.ts +++ b/src/api/resources/filestorage/resources/accountToken/client/Client.ts @@ -49,7 +49,7 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/asyncPassthrough/client/Client.ts b/src/api/resources/filestorage/resources/asyncPassthrough/client/Client.ts index 9859a3c3..012a2b4b 100644 --- a/src/api/resources/filestorage/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/filestorage/resources/asyncPassthrough/client/Client.ts @@ -52,7 +52,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.DataPassthroughRequest.jsonOrThrow(request, { @@ -116,7 +116,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/auditTrail/client/Client.ts b/src/api/resources/filestorage/resources/auditTrail/client/Client.ts index 3633d4c7..17a7c9da 100644 --- a/src/api/resources/filestorage/resources/auditTrail/client/Client.ts +++ b/src/api/resources/filestorage/resources/auditTrail/client/Client.ts @@ -75,7 +75,7 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/filestorage/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/filestorage/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 6e49b389..a9bf6e8a 100644 --- a/src/api/resources/filestorage/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/filestorage/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED` */ eventType?: string; /** diff --git a/src/api/resources/filestorage/resources/availableActions/client/Client.ts b/src/api/resources/filestorage/resources/availableActions/client/Client.ts index 219cfad9..2e441117 100644 --- a/src/api/resources/filestorage/resources/availableActions/client/Client.ts +++ b/src/api/resources/filestorage/resources/availableActions/client/Client.ts @@ -48,7 +48,7 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/deleteAccount/client/Client.ts b/src/api/resources/filestorage/resources/deleteAccount/client/Client.ts index d857fb19..d5288977 100644 --- a/src/api/resources/filestorage/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/filestorage/resources/deleteAccount/client/Client.ts @@ -44,7 +44,7 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/drives/client/Client.ts b/src/api/resources/filestorage/resources/drives/client/Client.ts index 32a45246..072a1da0 100644 --- a/src/api/resources/filestorage/resources/drives/client/Client.ts +++ b/src/api/resources/filestorage/resources/drives/client/Client.ts @@ -102,7 +102,7 @@ export class Drives { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -171,7 +171,7 @@ export class Drives { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts b/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts index 4bceb53c..7cd59c1a 100644 --- a/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/filestorage/resources/fieldMapping/client/Client.ts @@ -48,7 +48,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -116,7 +116,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.CreateFieldMappingRequest.jsonOrThrow(request, { @@ -180,7 +180,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -221,10 +221,7 @@ export class FieldMapping { * 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. * * @example - * await merge.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * }) + * await merge.filestorage.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", {}) */ public async fieldMappingsPartialUpdate( fieldMappingId: string, @@ -245,7 +242,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.PatchedEditFieldMappingRequest.jsonOrThrow(request, { @@ -319,7 +316,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -380,7 +377,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index 671f9e4a..b1e31108 100644 --- a/src/api/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/filestorage/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -4,10 +4,7 @@ /** * @example - * { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * } + * {} */ export interface PatchedEditFieldMappingRequest { /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ diff --git a/src/api/resources/filestorage/resources/files/client/Client.ts b/src/api/resources/filestorage/resources/files/client/Client.ts index 9222a683..011fe798 100644 --- a/src/api/resources/filestorage/resources/files/client/Client.ts +++ b/src/api/resources/filestorage/resources/files/client/Client.ts @@ -123,7 +123,7 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -197,7 +197,7 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -273,7 +273,7 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -339,7 +339,7 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -394,7 +394,7 @@ export class Files { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/folders/client/Client.ts b/src/api/resources/filestorage/resources/folders/client/Client.ts index 67ee2541..0eaedcf3 100644 --- a/src/api/resources/filestorage/resources/folders/client/Client.ts +++ b/src/api/resources/filestorage/resources/folders/client/Client.ts @@ -117,7 +117,7 @@ export class Folders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -191,7 +191,7 @@ export class Folders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -267,7 +267,7 @@ export class Folders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -326,7 +326,7 @@ export class Folders { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/forceResync/client/Client.ts b/src/api/resources/filestorage/resources/forceResync/client/Client.ts index be9047d6..1f5b0902 100644 --- a/src/api/resources/filestorage/resources/forceResync/client/Client.ts +++ b/src/api/resources/filestorage/resources/forceResync/client/Client.ts @@ -48,7 +48,7 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/generateKey/client/Client.ts b/src/api/resources/filestorage/resources/generateKey/client/Client.ts index 92a156e4..5f2b6cc4 100644 --- a/src/api/resources/filestorage/resources/generateKey/client/Client.ts +++ b/src/api/resources/filestorage/resources/generateKey/client/Client.ts @@ -51,7 +51,7 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.GenerateRemoteKeyRequest.jsonOrThrow(request, { diff --git a/src/api/resources/filestorage/resources/groups/client/Client.ts b/src/api/resources/filestorage/resources/groups/client/Client.ts index c243b522..7b862453 100644 --- a/src/api/resources/filestorage/resources/groups/client/Client.ts +++ b/src/api/resources/filestorage/resources/groups/client/Client.ts @@ -97,7 +97,7 @@ export class Groups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Groups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/filestorage/resources/index.ts b/src/api/resources/filestorage/resources/index.ts index 7c54d96d..d181a075 100644 --- a/src/api/resources/filestorage/resources/index.ts +++ b/src/api/resources/filestorage/resources/index.ts @@ -20,7 +20,6 @@ export * as groups from "./groups"; export * as linkToken from "./linkToken"; export * as passthrough from "./passthrough"; export * as regenerateKey from "./regenerateKey"; -export * as selectiveSync from "./selectiveSync"; export * as syncStatus from "./syncStatus"; export * as forceResync from "./forceResync"; export * as users from "./users"; @@ -37,7 +36,6 @@ export * from "./issues/client/requests"; export * from "./linkToken/client/requests"; export * from "./linkedAccounts/client/requests"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./syncStatus/client/requests"; export * from "./users/client/requests"; export * from "./webhookReceivers/client/requests"; diff --git a/src/api/resources/filestorage/resources/issues/client/Client.ts b/src/api/resources/filestorage/resources/issues/client/Client.ts index fc560e59..377b9862 100644 --- a/src/api/resources/filestorage/resources/issues/client/Client.ts +++ b/src/api/resources/filestorage/resources/issues/client/Client.ts @@ -117,7 +117,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -176,7 +176,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/filestorage/resources/linkToken/client/Client.ts b/src/api/resources/filestorage/resources/linkToken/client/Client.ts index 4cd84826..9cfa9481 100644 --- a/src/api/resources/filestorage/resources/linkToken/client/Client.ts +++ b/src/api/resources/filestorage/resources/linkToken/client/Client.ts @@ -54,7 +54,7 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.EndUserDetailsRequest.jsonOrThrow(request, { diff --git a/src/api/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 62764c17..288da132 100644 --- a/src/api/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -37,4 +37,6 @@ export interface EndUserDetailsRequest { >; /** The language code for the language to localize Merge Link to. */ language?: string; + /** A JSON object containing integration-specific configuration options. */ + integrationSpecificConfig?: Record; } diff --git a/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts b/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts index 2f9d456a..705ae61a 100644 --- a/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/filestorage/resources/linkedAccounts/client/Client.ts @@ -117,7 +117,7 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/filestorage/resources/passthrough/client/Client.ts b/src/api/resources/filestorage/resources/passthrough/client/Client.ts index 9a838f29..6a46807a 100644 --- a/src/api/resources/filestorage/resources/passthrough/client/Client.ts +++ b/src/api/resources/filestorage/resources/passthrough/client/Client.ts @@ -52,7 +52,7 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.DataPassthroughRequest.jsonOrThrow(request, { diff --git a/src/api/resources/filestorage/resources/regenerateKey/client/Client.ts b/src/api/resources/filestorage/resources/regenerateKey/client/Client.ts index f26ad361..2199281a 100644 --- a/src/api/resources/filestorage/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/filestorage/resources/regenerateKey/client/Client.ts @@ -51,7 +51,7 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { diff --git a/src/api/resources/filestorage/resources/scopes/client/Client.ts b/src/api/resources/filestorage/resources/scopes/client/Client.ts index e20f41d8..c60ac25a 100644 --- a/src/api/resources/filestorage/resources/scopes/client/Client.ts +++ b/src/api/resources/filestorage/resources/scopes/client/Client.ts @@ -48,7 +48,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -108,7 +108,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -173,7 +173,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { diff --git a/src/api/resources/filestorage/resources/selectiveSync/client/Client.ts b/src/api/resources/filestorage/resources/selectiveSync/client/Client.ts deleted file mode 100644 index c84136a5..00000000 --- a/src/api/resources/filestorage/resources/selectiveSync/client/Client.ts +++ /dev/null @@ -1,242 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../../../environments"; -import * as core from "../../../../../../core"; -import * as Merge from "../../../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../../../serialization"; -import * as errors from "../../../../../../errors"; - -export declare namespace SelectiveSync { - interface Options { - environment?: core.Supplier; - apiKey: core.Supplier; - accountToken?: core.Supplier; - } - - interface RequestOptions { - timeoutInSeconds?: number; - maxRetries?: number; - } -} - -export class SelectiveSync { - constructor(protected readonly _options: SelectiveSync.Options) {} - - /** - * Get a linked account's selective syncs. - * - * @example - * await merge.filestorage.selectiveSync.configurationsList() - */ - public async configurationsList( - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "filestorage/v1/selective-sync/configurations" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.filestorage.selectiveSync.configurationsList.Response.parseOrThrow( - _response.body, - { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - } - ); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Replace a linked account's selective syncs. - * - * @example - * await merge.filestorage.selectiveSync.configurationsUpdate({ - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * }) - */ - public async configurationsUpdate( - request: Merge.filestorage.LinkedAccountSelectiveSyncConfigurationListRequest, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "filestorage/v1/selective-sync/configurations" - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - body: await serializers.filestorage.LinkedAccountSelectiveSyncConfigurationListRequest.jsonOrThrow( - request, - { unrecognizedObjectKeys: "strip" } - ), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.filestorage.selectiveSync.configurationsUpdate.Response.parseOrThrow( - _response.body, - { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - } - ); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get metadata for the conditions available to a linked account. - * - * @example - * await merge.filestorage.selectiveSync.metaList({}) - */ - public async metaList( - request: Merge.filestorage.SelectiveSyncMetaListRequest = {}, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const { commonModel, cursor, pageSize } = request; - const _queryParams: Record = {}; - if (commonModel != null) { - _queryParams["common_model"] = commonModel; - } - - if (cursor != null) { - _queryParams["cursor"] = cursor; - } - - if (pageSize != null) { - _queryParams["page_size"] = pageSize.toString(); - } - - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "filestorage/v1/selective-sync/meta" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.filestorage.PaginatedConditionSchemaList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; - } -} diff --git a/src/api/resources/filestorage/resources/selectiveSync/client/index.ts b/src/api/resources/filestorage/resources/selectiveSync/client/index.ts deleted file mode 100644 index 415726b7..00000000 --- a/src/api/resources/filestorage/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/filestorage/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/api/resources/filestorage/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 8560be36..00000000 --- a/src/api/resources/filestorage/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../../../../.."; - -/** - * @example - * { - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * } - */ -export interface LinkedAccountSelectiveSyncConfigurationListRequest { - /** The selective syncs associated with a linked account. */ - syncConfigurations: Merge.filestorage.LinkedAccountSelectiveSyncConfigurationRequest[]; -} diff --git a/src/api/resources/filestorage/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts b/src/api/resources/filestorage/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts deleted file mode 100644 index c633fb6d..00000000 --- a/src/api/resources/filestorage/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * {} - */ -export interface SelectiveSyncMetaListRequest { - commonModel?: string; - /** - * The pagination cursor value. - */ - cursor?: string; - /** - * Number of results to return per page. - */ - pageSize?: number; -} diff --git a/src/api/resources/filestorage/resources/selectiveSync/client/requests/index.ts b/src/api/resources/filestorage/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 6f48e141..00000000 --- a/src/api/resources/filestorage/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; -export { SelectiveSyncMetaListRequest } from "./SelectiveSyncMetaListRequest"; diff --git a/src/api/resources/filestorage/resources/selectiveSync/index.ts b/src/api/resources/filestorage/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/api/resources/filestorage/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/filestorage/resources/syncStatus/client/Client.ts b/src/api/resources/filestorage/resources/syncStatus/client/Client.ts index adcd16d5..e0a925b1 100644 --- a/src/api/resources/filestorage/resources/syncStatus/client/Client.ts +++ b/src/api/resources/filestorage/resources/syncStatus/client/Client.ts @@ -59,7 +59,7 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/filestorage/resources/users/client/Client.ts b/src/api/resources/filestorage/resources/users/client/Client.ts index 71b49dc9..7ef9580e 100644 --- a/src/api/resources/filestorage/resources/users/client/Client.ts +++ b/src/api/resources/filestorage/resources/users/client/Client.ts @@ -102,7 +102,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -171,7 +171,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/filestorage/resources/webhookReceivers/client/Client.ts b/src/api/resources/filestorage/resources/webhookReceivers/client/Client.ts index 54e898c0..f959c1d9 100644 --- a/src/api/resources/filestorage/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/filestorage/resources/webhookReceivers/client/Client.ts @@ -46,7 +46,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -110,7 +110,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.filestorage.WebhookReceiverRequest.jsonOrThrow(request, { diff --git a/src/api/resources/filestorage/types/AuditLogEvent.ts b/src/api/resources/filestorage/types/AuditLogEvent.ts index 6a38d534..809db08c 100644 --- a/src/api/resources/filestorage/types/AuditLogEvent.ts +++ b/src/api/resources/filestorage/types/AuditLogEvent.ts @@ -59,6 +59,9 @@ export interface AuditLogEvent { * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ eventType: Merge.filestorage.AuditLogEventEventType; eventDescription: string; diff --git a/src/api/resources/filestorage/types/AuditLogEventEventType.ts b/src/api/resources/filestorage/types/AuditLogEventEventType.ts index 6721ced6..e73de177 100644 --- a/src/api/resources/filestorage/types/AuditLogEventEventType.ts +++ b/src/api/resources/filestorage/types/AuditLogEventEventType.ts @@ -41,5 +41,8 @@ import * as Merge from "../../.."; * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type AuditLogEventEventType = Merge.filestorage.EventTypeEnum | string; diff --git a/src/api/resources/filestorage/types/ConditionSchema.ts b/src/api/resources/filestorage/types/ConditionSchema.ts deleted file mode 100644 index 87dcf458..00000000 --- a/src/api/resources/filestorage/types/ConditionSchema.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface ConditionSchema { - /** The ID of the condition schema. This ID is used when updating selective syncs for a linked account. */ - id: string; - /** The common model for which a condition schema is defined. */ - commonModel?: string; - nativeName?: string; - fieldName?: string; - /** Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times. */ - isUnique?: boolean; - /** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ - conditionType: Merge.filestorage.ConditionSchemaConditionType; - /** The schemas for the operators that can be used on a condition. */ - operators: Merge.filestorage.OperatorSchema[]; -} diff --git a/src/api/resources/filestorage/types/ConditionSchemaConditionType.ts b/src/api/resources/filestorage/types/ConditionSchemaConditionType.ts deleted file mode 100644 index 392bed9f..00000000 --- a/src/api/resources/filestorage/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -/** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionSchemaConditionType = Merge.filestorage.ConditionTypeEnum | string; diff --git a/src/api/resources/filestorage/types/ConditionTypeEnum.ts b/src/api/resources/filestorage/types/ConditionTypeEnum.ts deleted file mode 100644 index 2b408be2..00000000 --- a/src/api/resources/filestorage/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionTypeEnum = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; - -export const ConditionTypeEnum = { - Boolean: "BOOLEAN", - Date: "DATE", - DateTime: "DATE_TIME", - Integer: "INTEGER", - Float: "FLOAT", - String: "STRING", - ListOfStrings: "LIST_OF_STRINGS", -} as const; diff --git a/src/api/resources/filestorage/types/Drive.ts b/src/api/resources/filestorage/types/Drive.ts index 432c83e4..5d25c7cf 100644 --- a/src/api/resources/filestorage/types/Drive.ts +++ b/src/api/resources/filestorage/types/Drive.ts @@ -17,8 +17,9 @@ export interface Drive { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The drive's name. */ name?: string; diff --git a/src/api/resources/filestorage/types/EventTypeEnum.ts b/src/api/resources/filestorage/types/EventTypeEnum.ts index 01bc1b50..c8fb89f1 100644 --- a/src/api/resources/filestorage/types/EventTypeEnum.ts +++ b/src/api/resources/filestorage/types/EventTypeEnum.ts @@ -37,6 +37,9 @@ * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type EventTypeEnum = | "CREATED_REMOTE_PRODUCTION_API_KEY" @@ -72,7 +75,10 @@ export type EventTypeEnum = | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; export const EventTypeEnum = { CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", @@ -109,4 +115,7 @@ export const EventTypeEnum = { ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", MutedIssue: "MUTED_ISSUE", GeneratedMagicLink: "GENERATED_MAGIC_LINK", + EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", + DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", + MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", } as const; diff --git a/src/api/resources/filestorage/types/File_.ts b/src/api/resources/filestorage/types/File_.ts index 5f884749..13debf10 100644 --- a/src/api/resources/filestorage/types/File_.ts +++ b/src/api/resources/filestorage/types/File_.ts @@ -19,8 +19,9 @@ export interface File_ { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The file's name. */ name?: string; diff --git a/src/api/resources/filestorage/types/Folder.ts b/src/api/resources/filestorage/types/Folder.ts index 196d9f30..042e808d 100644 --- a/src/api/resources/filestorage/types/Folder.ts +++ b/src/api/resources/filestorage/types/Folder.ts @@ -19,8 +19,9 @@ export interface Folder { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The folder's name. */ name?: string; diff --git a/src/api/resources/filestorage/types/Group.ts b/src/api/resources/filestorage/types/Group.ts index d24f1279..58b9fbad 100644 --- a/src/api/resources/filestorage/types/Group.ts +++ b/src/api/resources/filestorage/types/Group.ts @@ -17,8 +17,9 @@ export interface Group { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The group's name. */ name?: string; diff --git a/src/api/resources/filestorage/types/LinkedAccountCondition.ts b/src/api/resources/filestorage/types/LinkedAccountCondition.ts deleted file mode 100644 index 63d3f4dd..00000000 --- a/src/api/resources/filestorage/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountCondition { - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The common model for a specific condition. */ - commonModel?: string; - nativeName?: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; - fieldName?: string; -} diff --git a/src/api/resources/filestorage/types/LinkedAccountConditionRequest.ts b/src/api/resources/filestorage/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index b46b4c79..00000000 --- a/src/api/resources/filestorage/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountConditionRequest { - /** The ID indicating which Linked Account Condition this is. */ - id?: string; - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; -} diff --git a/src/api/resources/filestorage/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/api/resources/filestorage/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index 673620b4..00000000 --- a/src/api/resources/filestorage/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfiguration { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions?: Merge.filestorage.LinkedAccountCondition[]; -} diff --git a/src/api/resources/filestorage/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/api/resources/filestorage/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 95c1dcf9..00000000 --- a/src/api/resources/filestorage/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfigurationRequest { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions: Merge.filestorage.LinkedAccountConditionRequest[]; -} diff --git a/src/api/resources/filestorage/types/OperatorSchema.ts b/src/api/resources/filestorage/types/OperatorSchema.ts deleted file mode 100644 index fd1b2b92..00000000 --- a/src/api/resources/filestorage/types/OperatorSchema.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface OperatorSchema { - /** The operator for which an operator schema is defined. */ - operator?: string; - /** Whether the operator can be repeated multiple times. */ - isUnique?: boolean; -} diff --git a/src/api/resources/filestorage/types/PaginatedConditionSchemaList.ts b/src/api/resources/filestorage/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index 9ec1a29e..00000000 --- a/src/api/resources/filestorage/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface PaginatedConditionSchemaList { - next?: string; - previous?: string; - results?: Merge.filestorage.ConditionSchema[]; -} diff --git a/src/api/resources/filestorage/types/Permission.ts b/src/api/resources/filestorage/types/Permission.ts index b9aee6f9..8c70138a 100644 --- a/src/api/resources/filestorage/types/Permission.ts +++ b/src/api/resources/filestorage/types/Permission.ts @@ -19,8 +19,9 @@ export interface Permission { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The user that is granted this permission. */ user?: Merge.filestorage.PermissionUser; diff --git a/src/api/resources/filestorage/types/RemoteFieldApi.ts b/src/api/resources/filestorage/types/RemoteFieldApi.ts index a79cd6d6..85f9c8bc 100644 --- a/src/api/resources/filestorage/types/RemoteFieldApi.ts +++ b/src/api/resources/filestorage/types/RemoteFieldApi.ts @@ -10,4 +10,5 @@ export interface RemoteFieldApi { remoteEndpointInfo: Merge.filestorage.RemoteEndpointInfo; exampleValues: unknown[]; advancedMetadata?: Merge.filestorage.AdvancedMetadata; + coverage?: Merge.filestorage.RemoteFieldApiCoverage; } diff --git a/src/api/resources/filestorage/types/RemoteFieldApiCoverage.ts b/src/api/resources/filestorage/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..9a8f479f --- /dev/null +++ b/src/api/resources/filestorage/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/filestorage/types/User.ts b/src/api/resources/filestorage/types/User.ts index 8caa9984..4e6766d2 100644 --- a/src/api/resources/filestorage/types/User.ts +++ b/src/api/resources/filestorage/types/User.ts @@ -17,8 +17,9 @@ export interface User { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The user's name. */ name?: string; diff --git a/src/api/resources/filestorage/types/index.ts b/src/api/resources/filestorage/types/index.ts index 8b5425ed..752a4b4b 100644 --- a/src/api/resources/filestorage/types/index.ts +++ b/src/api/resources/filestorage/types/index.ts @@ -14,9 +14,6 @@ export * from "./CategoriesEnum"; export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; @@ -64,10 +61,6 @@ export * from "./IssueStatus"; export * from "./Issue"; export * from "./IssueStatusEnum"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -76,10 +69,8 @@ export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequestEncoding"; export * from "./MultipartFormFieldRequest"; -export * from "./OperatorSchema"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedDriveList"; export * from "./PaginatedFileList"; export * from "./PaginatedFolderList"; @@ -98,6 +89,7 @@ export * from "./PermissionRequestType"; export * from "./PermissionRequestRolesItem"; export * from "./PermissionRequest"; export * from "./RemoteEndpointInfo"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; diff --git a/src/api/resources/hris/client/Client.ts b/src/api/resources/hris/client/Client.ts index 3b17fc17..43d1b075 100644 --- a/src/api/resources/hris/client/Client.ts +++ b/src/api/resources/hris/client/Client.ts @@ -30,7 +30,6 @@ import { Passthrough } from "../resources/passthrough/client/Client"; import { PayGroups } from "../resources/payGroups/client/Client"; import { PayrollRuns } from "../resources/payrollRuns/client/Client"; import { RegenerateKey } from "../resources/regenerateKey/client/Client"; -import { SelectiveSync } from "../resources/selectiveSync/client/Client"; import { SyncStatus } from "../resources/syncStatus/client/Client"; import { ForceResync } from "../resources/forceResync/client/Client"; import { Teams } from "../resources/teams/client/Client"; @@ -211,12 +210,6 @@ export class Hris { return (this._regenerateKey ??= new RegenerateKey(this._options)); } - protected _selectiveSync: SelectiveSync | undefined; - - public get selectiveSync(): SelectiveSync { - return (this._selectiveSync ??= new SelectiveSync(this._options)); - } - protected _syncStatus: SyncStatus | undefined; public get syncStatus(): SyncStatus { diff --git a/src/api/resources/hris/resources/accountDetails/client/Client.ts b/src/api/resources/hris/resources/accountDetails/client/Client.ts index 6b334b03..91a5cd44 100644 --- a/src/api/resources/hris/resources/accountDetails/client/Client.ts +++ b/src/api/resources/hris/resources/accountDetails/client/Client.ts @@ -46,7 +46,7 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/accountToken/client/Client.ts b/src/api/resources/hris/resources/accountToken/client/Client.ts index 71f9a83e..63c0987f 100644 --- a/src/api/resources/hris/resources/accountToken/client/Client.ts +++ b/src/api/resources/hris/resources/accountToken/client/Client.ts @@ -49,7 +49,7 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts b/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts index be6393c1..9f087112 100644 --- a/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/hris/resources/asyncPassthrough/client/Client.ts @@ -52,7 +52,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.DataPassthroughRequest.jsonOrThrow(request, { @@ -116,7 +116,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/auditTrail/client/Client.ts b/src/api/resources/hris/resources/auditTrail/client/Client.ts index eb1b79f5..7ba455e6 100644 --- a/src/api/resources/hris/resources/auditTrail/client/Client.ts +++ b/src/api/resources/hris/resources/auditTrail/client/Client.ts @@ -75,7 +75,7 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 6e49b389..a9bf6e8a 100644 --- a/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/hris/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED` */ eventType?: string; /** diff --git a/src/api/resources/hris/resources/availableActions/client/Client.ts b/src/api/resources/hris/resources/availableActions/client/Client.ts index 366ded3e..f32e1a7a 100644 --- a/src/api/resources/hris/resources/availableActions/client/Client.ts +++ b/src/api/resources/hris/resources/availableActions/client/Client.ts @@ -46,7 +46,7 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/bankInfo/client/Client.ts b/src/api/resources/hris/resources/bankInfo/client/Client.ts index 068648f9..f9cc98ab 100644 --- a/src/api/resources/hris/resources/bankInfo/client/Client.ts +++ b/src/api/resources/hris/resources/bankInfo/client/Client.ts @@ -132,7 +132,7 @@ export class BankInfo { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -213,7 +213,7 @@ export class BankInfo { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/benefits/client/Client.ts b/src/api/resources/hris/resources/benefits/client/Client.ts index 2a6f8b43..831a1b54 100644 --- a/src/api/resources/hris/resources/benefits/client/Client.ts +++ b/src/api/resources/hris/resources/benefits/client/Client.ts @@ -107,7 +107,7 @@ export class Benefits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class Benefits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/companies/client/Client.ts b/src/api/resources/hris/resources/companies/client/Client.ts index 70601f5f..633f4791 100644 --- a/src/api/resources/hris/resources/companies/client/Client.ts +++ b/src/api/resources/hris/resources/companies/client/Client.ts @@ -97,7 +97,7 @@ export class Companies { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Companies { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/deleteAccount/client/Client.ts b/src/api/resources/hris/resources/deleteAccount/client/Client.ts index 62c290fd..2720277a 100644 --- a/src/api/resources/hris/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/hris/resources/deleteAccount/client/Client.ts @@ -44,7 +44,7 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/dependents/client/Client.ts b/src/api/resources/hris/resources/dependents/client/Client.ts index 4b25477e..c749d6e0 100644 --- a/src/api/resources/hris/resources/dependents/client/Client.ts +++ b/src/api/resources/hris/resources/dependents/client/Client.ts @@ -102,7 +102,7 @@ export class Dependents { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -175,7 +175,7 @@ export class Dependents { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts b/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts index 75cf04e1..93888c81 100644 --- a/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts +++ b/src/api/resources/hris/resources/employeePayrollRuns/client/Client.ts @@ -132,7 +132,7 @@ export class EmployeePayrollRuns { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -205,7 +205,7 @@ export class EmployeePayrollRuns { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/employees/client/Client.ts b/src/api/resources/hris/resources/employees/client/Client.ts index 26c59f35..4fceca76 100644 --- a/src/api/resources/hris/resources/employees/client/Client.ts +++ b/src/api/resources/hris/resources/employees/client/Client.ts @@ -212,7 +212,7 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -286,7 +286,7 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -374,7 +374,7 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -416,9 +416,7 @@ export class Employees { * 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. * * @example - * await merge.hris.employees.ignoreCreate("model_id", { - * message: "deletion request by user id 51903790-7dfe-4053-8d63-5a10cc4ffd39" - * }) + * await merge.hris.employees.ignoreCreate("model_id", {}) */ public async ignoreCreate( modelId: string, @@ -439,7 +437,7 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.IgnoreCommonModelRequest.jsonOrThrow(request, { @@ -495,7 +493,7 @@ export class Employees { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts b/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts index fa208065..3deb2607 100644 --- a/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts +++ b/src/api/resources/hris/resources/employees/client/requests/IgnoreCommonModelRequest.ts @@ -6,9 +6,7 @@ import * as Merge from "../../../../../.."; /** * @example - * { - * message: "deletion request by user id 51903790-7dfe-4053-8d63-5a10cc4ffd39" - * } + * {} */ export interface IgnoreCommonModelRequest { reason: Merge.hris.IgnoreCommonModelRequestReason; diff --git a/src/api/resources/hris/resources/employerBenefits/client/Client.ts b/src/api/resources/hris/resources/employerBenefits/client/Client.ts index 7b9fd1f2..a467e09f 100644 --- a/src/api/resources/hris/resources/employerBenefits/client/Client.ts +++ b/src/api/resources/hris/resources/employerBenefits/client/Client.ts @@ -97,7 +97,7 @@ export class EmployerBenefits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class EmployerBenefits { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/employments/client/Client.ts b/src/api/resources/hris/resources/employments/client/Client.ts index b22ac873..ebc491e1 100644 --- a/src/api/resources/hris/resources/employments/client/Client.ts +++ b/src/api/resources/hris/resources/employments/client/Client.ts @@ -122,7 +122,7 @@ export class Employments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -203,7 +203,7 @@ export class Employments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/fieldMapping/client/Client.ts b/src/api/resources/hris/resources/fieldMapping/client/Client.ts index ae9e1fda..c00fcaf2 100644 --- a/src/api/resources/hris/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/hris/resources/fieldMapping/client/Client.ts @@ -48,7 +48,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -116,7 +116,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.CreateFieldMappingRequest.jsonOrThrow(request, { @@ -180,7 +180,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -221,10 +221,7 @@ export class FieldMapping { * 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. * * @example - * await merge.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * }) + * await merge.hris.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", {}) */ public async fieldMappingsPartialUpdate( fieldMappingId: string, @@ -245,7 +242,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.PatchedEditFieldMappingRequest.jsonOrThrow(request, { @@ -319,7 +316,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -380,7 +377,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index 671f9e4a..b1e31108 100644 --- a/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/hris/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -4,10 +4,7 @@ /** * @example - * { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * } + * {} */ export interface PatchedEditFieldMappingRequest { /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ diff --git a/src/api/resources/hris/resources/forceResync/client/Client.ts b/src/api/resources/hris/resources/forceResync/client/Client.ts index bd2136bf..02d04cee 100644 --- a/src/api/resources/hris/resources/forceResync/client/Client.ts +++ b/src/api/resources/hris/resources/forceResync/client/Client.ts @@ -46,7 +46,7 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/generateKey/client/Client.ts b/src/api/resources/hris/resources/generateKey/client/Client.ts index ed352e55..8782b879 100644 --- a/src/api/resources/hris/resources/generateKey/client/Client.ts +++ b/src/api/resources/hris/resources/generateKey/client/Client.ts @@ -51,7 +51,7 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.GenerateRemoteKeyRequest.jsonOrThrow(request, { diff --git a/src/api/resources/hris/resources/groups/client/Client.ts b/src/api/resources/hris/resources/groups/client/Client.ts index 44c26cbb..6d1eb7db 100644 --- a/src/api/resources/hris/resources/groups/client/Client.ts +++ b/src/api/resources/hris/resources/groups/client/Client.ts @@ -41,6 +41,7 @@ export class Groups { cursor, includeDeletedData, includeRemoteData, + isCommonlyUsedAsTeam, modifiedAfter, modifiedBefore, names, @@ -71,6 +72,10 @@ export class Groups { _queryParams["include_remote_data"] = includeRemoteData.toString(); } + if (isCommonlyUsedAsTeam != null) { + _queryParams["is_commonly_used_as_team"] = isCommonlyUsedAsTeam; + } + if (modifiedAfter != null) { _queryParams["modified_after"] = modifiedAfter.toISOString(); } @@ -117,7 +122,7 @@ export class Groups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -194,7 +199,7 @@ export class Groups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/groups/client/requests/GroupsListRequest.ts b/src/api/resources/hris/resources/groups/client/requests/GroupsListRequest.ts index c4ce434a..136a9341 100644 --- a/src/api/resources/hris/resources/groups/client/requests/GroupsListRequest.ts +++ b/src/api/resources/hris/resources/groups/client/requests/GroupsListRequest.ts @@ -27,6 +27,10 @@ export interface GroupsListRequest { * Whether to include the original data Merge fetched from the third-party to produce these models. */ includeRemoteData?: boolean; + /** + * If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform. + */ + isCommonlyUsedAsTeam?: string; /** * If provided, only objects synced by Merge after this date time will be returned. */ diff --git a/src/api/resources/hris/resources/index.ts b/src/api/resources/hris/resources/index.ts index 72098881..fbc9046c 100644 --- a/src/api/resources/hris/resources/index.ts +++ b/src/api/resources/hris/resources/index.ts @@ -38,7 +38,6 @@ export * as linkToken from "./linkToken"; export * as passthrough from "./passthrough"; export * as payGroups from "./payGroups"; export * as regenerateKey from "./regenerateKey"; -export * as selectiveSync from "./selectiveSync"; export * as syncStatus from "./syncStatus"; export * as forceResync from "./forceResync"; export * as teams from "./teams"; @@ -63,7 +62,6 @@ export * from "./locations/client/requests"; export * from "./payGroups/client/requests"; export * from "./payrollRuns/client/requests"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./syncStatus/client/requests"; export * from "./teams/client/requests"; export * from "./timeOff/client/requests"; diff --git a/src/api/resources/hris/resources/issues/client/Client.ts b/src/api/resources/hris/resources/issues/client/Client.ts index b847958c..49f34c70 100644 --- a/src/api/resources/hris/resources/issues/client/Client.ts +++ b/src/api/resources/hris/resources/issues/client/Client.ts @@ -117,7 +117,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -176,7 +176,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/linkToken/client/Client.ts b/src/api/resources/hris/resources/linkToken/client/Client.ts index b1569861..afe70f7b 100644 --- a/src/api/resources/hris/resources/linkToken/client/Client.ts +++ b/src/api/resources/hris/resources/linkToken/client/Client.ts @@ -54,7 +54,7 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.EndUserDetailsRequest.jsonOrThrow(request, { diff --git a/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 577b96e7..35da8d5f 100644 --- a/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -34,4 +34,6 @@ export interface EndUserDetailsRequest { categoryCommonModelScopes?: Record; /** The language code for the language to localize Merge Link to. */ language?: string; + /** A JSON object containing integration-specific configuration options. */ + integrationSpecificConfig?: Record; } diff --git a/src/api/resources/hris/resources/linkedAccounts/client/Client.ts b/src/api/resources/hris/resources/linkedAccounts/client/Client.ts index 223c1ab1..eccde922 100644 --- a/src/api/resources/hris/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/hris/resources/linkedAccounts/client/Client.ts @@ -117,7 +117,7 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/locations/client/Client.ts b/src/api/resources/hris/resources/locations/client/Client.ts index 8c078854..e7f21217 100644 --- a/src/api/resources/hris/resources/locations/client/Client.ts +++ b/src/api/resources/hris/resources/locations/client/Client.ts @@ -112,7 +112,7 @@ export class Locations { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -189,7 +189,7 @@ export class Locations { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/passthrough/client/Client.ts b/src/api/resources/hris/resources/passthrough/client/Client.ts index cdcaf3b4..eb60ecf6 100644 --- a/src/api/resources/hris/resources/passthrough/client/Client.ts +++ b/src/api/resources/hris/resources/passthrough/client/Client.ts @@ -52,7 +52,7 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.DataPassthroughRequest.jsonOrThrow(request, { diff --git a/src/api/resources/hris/resources/payGroups/client/Client.ts b/src/api/resources/hris/resources/payGroups/client/Client.ts index 148402df..2d00b118 100644 --- a/src/api/resources/hris/resources/payGroups/client/Client.ts +++ b/src/api/resources/hris/resources/payGroups/client/Client.ts @@ -97,7 +97,7 @@ export class PayGroups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class PayGroups { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/payrollRuns/client/Client.ts b/src/api/resources/hris/resources/payrollRuns/client/Client.ts index bfa8b495..cf3098eb 100644 --- a/src/api/resources/hris/resources/payrollRuns/client/Client.ts +++ b/src/api/resources/hris/resources/payrollRuns/client/Client.ts @@ -132,7 +132,7 @@ export class PayrollRuns { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -209,7 +209,7 @@ export class PayrollRuns { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/regenerateKey/client/Client.ts b/src/api/resources/hris/resources/regenerateKey/client/Client.ts index 508ce9a6..55ccf93a 100644 --- a/src/api/resources/hris/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/hris/resources/regenerateKey/client/Client.ts @@ -51,7 +51,7 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { diff --git a/src/api/resources/hris/resources/scopes/client/Client.ts b/src/api/resources/hris/resources/scopes/client/Client.ts index 87877c68..c18345c3 100644 --- a/src/api/resources/hris/resources/scopes/client/Client.ts +++ b/src/api/resources/hris/resources/scopes/client/Client.ts @@ -48,7 +48,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -108,7 +108,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -173,7 +173,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { diff --git a/src/api/resources/hris/resources/selectiveSync/client/Client.ts b/src/api/resources/hris/resources/selectiveSync/client/Client.ts deleted file mode 100644 index f17b88d7..00000000 --- a/src/api/resources/hris/resources/selectiveSync/client/Client.ts +++ /dev/null @@ -1,235 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../../../environments"; -import * as core from "../../../../../../core"; -import * as Merge from "../../../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../../../serialization"; -import * as errors from "../../../../../../errors"; - -export declare namespace SelectiveSync { - interface Options { - environment?: core.Supplier; - apiKey: core.Supplier; - accountToken?: core.Supplier; - } - - interface RequestOptions { - timeoutInSeconds?: number; - maxRetries?: number; - } -} - -export class SelectiveSync { - constructor(protected readonly _options: SelectiveSync.Options) {} - - /** - * Get a linked account's selective syncs. - * - * @example - * await merge.hris.selectiveSync.configurationsList() - */ - public async configurationsList( - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "hris/v1/selective-sync/configurations" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.hris.selectiveSync.configurationsList.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Replace a linked account's selective syncs. - * - * @example - * await merge.hris.selectiveSync.configurationsUpdate({ - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * }) - */ - public async configurationsUpdate( - request: Merge.hris.LinkedAccountSelectiveSyncConfigurationListRequest, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "hris/v1/selective-sync/configurations" - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - body: await serializers.hris.LinkedAccountSelectiveSyncConfigurationListRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.hris.selectiveSync.configurationsUpdate.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get metadata for the conditions available to a linked account. - * - * @example - * await merge.hris.selectiveSync.metaList({}) - */ - public async metaList( - request: Merge.hris.SelectiveSyncMetaListRequest = {}, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const { commonModel, cursor, pageSize } = request; - const _queryParams: Record = {}; - if (commonModel != null) { - _queryParams["common_model"] = commonModel; - } - - if (cursor != null) { - _queryParams["cursor"] = cursor; - } - - if (pageSize != null) { - _queryParams["page_size"] = pageSize.toString(); - } - - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "hris/v1/selective-sync/meta" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.hris.PaginatedConditionSchemaList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; - } -} diff --git a/src/api/resources/hris/resources/selectiveSync/client/index.ts b/src/api/resources/hris/resources/selectiveSync/client/index.ts deleted file mode 100644 index 415726b7..00000000 --- a/src/api/resources/hris/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/hris/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/api/resources/hris/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index b071bfcb..00000000 --- a/src/api/resources/hris/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../../../../.."; - -/** - * @example - * { - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * } - */ -export interface LinkedAccountSelectiveSyncConfigurationListRequest { - /** The selective syncs associated with a linked account. */ - syncConfigurations: Merge.hris.LinkedAccountSelectiveSyncConfigurationRequest[]; -} diff --git a/src/api/resources/hris/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts b/src/api/resources/hris/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts deleted file mode 100644 index c633fb6d..00000000 --- a/src/api/resources/hris/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * {} - */ -export interface SelectiveSyncMetaListRequest { - commonModel?: string; - /** - * The pagination cursor value. - */ - cursor?: string; - /** - * Number of results to return per page. - */ - pageSize?: number; -} diff --git a/src/api/resources/hris/resources/selectiveSync/client/requests/index.ts b/src/api/resources/hris/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 6f48e141..00000000 --- a/src/api/resources/hris/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; -export { SelectiveSyncMetaListRequest } from "./SelectiveSyncMetaListRequest"; diff --git a/src/api/resources/hris/resources/selectiveSync/index.ts b/src/api/resources/hris/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/api/resources/hris/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/hris/resources/syncStatus/client/Client.ts b/src/api/resources/hris/resources/syncStatus/client/Client.ts index 2c9f7e81..f74df5b4 100644 --- a/src/api/resources/hris/resources/syncStatus/client/Client.ts +++ b/src/api/resources/hris/resources/syncStatus/client/Client.ts @@ -59,7 +59,7 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/teams/client/Client.ts b/src/api/resources/hris/resources/teams/client/Client.ts index 9085b8f6..27ff8d87 100644 --- a/src/api/resources/hris/resources/teams/client/Client.ts +++ b/src/api/resources/hris/resources/teams/client/Client.ts @@ -107,7 +107,7 @@ export class Teams { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class Teams { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/timeOff/client/Client.ts b/src/api/resources/hris/resources/timeOff/client/Client.ts index 5942c30b..a9cd8b10 100644 --- a/src/api/resources/hris/resources/timeOff/client/Client.ts +++ b/src/api/resources/hris/resources/timeOff/client/Client.ts @@ -152,7 +152,7 @@ export class TimeOff { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -226,7 +226,7 @@ export class TimeOff { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -308,7 +308,7 @@ export class TimeOff { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -367,7 +367,7 @@ export class TimeOff { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/timeOffBalances/client/Client.ts b/src/api/resources/hris/resources/timeOffBalances/client/Client.ts index cc3579b7..3e0916b3 100644 --- a/src/api/resources/hris/resources/timeOffBalances/client/Client.ts +++ b/src/api/resources/hris/resources/timeOffBalances/client/Client.ts @@ -122,7 +122,7 @@ export class TimeOffBalances { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -203,7 +203,7 @@ export class TimeOffBalances { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/hris/resources/timesheetEntries/client/Client.ts b/src/api/resources/hris/resources/timesheetEntries/client/Client.ts index 3b2d7875..aeaaadd4 100644 --- a/src/api/resources/hris/resources/timesheetEntries/client/Client.ts +++ b/src/api/resources/hris/resources/timesheetEntries/client/Client.ts @@ -127,7 +127,7 @@ export class TimesheetEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -201,7 +201,7 @@ export class TimesheetEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -273,7 +273,7 @@ export class TimesheetEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -332,7 +332,7 @@ export class TimesheetEntries { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/hris/resources/webhookReceivers/client/Client.ts b/src/api/resources/hris/resources/webhookReceivers/client/Client.ts index a0d63bf3..ddbc273c 100644 --- a/src/api/resources/hris/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/hris/resources/webhookReceivers/client/Client.ts @@ -46,7 +46,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -110,7 +110,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.hris.WebhookReceiverRequest.jsonOrThrow(request, { diff --git a/src/api/resources/hris/types/AuditLogEvent.ts b/src/api/resources/hris/types/AuditLogEvent.ts index 1059c637..6c845122 100644 --- a/src/api/resources/hris/types/AuditLogEvent.ts +++ b/src/api/resources/hris/types/AuditLogEvent.ts @@ -59,6 +59,9 @@ export interface AuditLogEvent { * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ eventType: Merge.hris.AuditLogEventEventType; eventDescription: string; diff --git a/src/api/resources/hris/types/AuditLogEventEventType.ts b/src/api/resources/hris/types/AuditLogEventEventType.ts index 432fed50..4e83c3ac 100644 --- a/src/api/resources/hris/types/AuditLogEventEventType.ts +++ b/src/api/resources/hris/types/AuditLogEventEventType.ts @@ -41,5 +41,8 @@ import * as Merge from "../../.."; * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type AuditLogEventEventType = Merge.hris.EventTypeEnum | string; diff --git a/src/api/resources/hris/types/BankInfo.ts b/src/api/resources/hris/types/BankInfo.ts index 38192f6b..5be805ec 100644 --- a/src/api/resources/hris/types/BankInfo.ts +++ b/src/api/resources/hris/types/BankInfo.ts @@ -19,8 +19,9 @@ export interface BankInfo { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee with this bank account. */ employee?: Merge.hris.BankInfoEmployee; diff --git a/src/api/resources/hris/types/Benefit.ts b/src/api/resources/hris/types/Benefit.ts index fe26db75..b23e345d 100644 --- a/src/api/resources/hris/types/Benefit.ts +++ b/src/api/resources/hris/types/Benefit.ts @@ -19,8 +19,9 @@ export interface Benefit { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee on the plan. */ employee?: Merge.hris.BenefitEmployee; diff --git a/src/api/resources/hris/types/Company.ts b/src/api/resources/hris/types/Company.ts index d9be36f9..d3a49df7 100644 --- a/src/api/resources/hris/types/Company.ts +++ b/src/api/resources/hris/types/Company.ts @@ -19,8 +19,9 @@ export interface Company { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The company's legal name. */ legalName?: string; diff --git a/src/api/resources/hris/types/ConditionSchema.ts b/src/api/resources/hris/types/ConditionSchema.ts deleted file mode 100644 index 1314a518..00000000 --- a/src/api/resources/hris/types/ConditionSchema.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface ConditionSchema { - /** The ID of the condition schema. This ID is used when updating selective syncs for a linked account. */ - id: string; - /** The common model for which a condition schema is defined. */ - commonModel?: string; - nativeName?: string; - fieldName?: string; - /** Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times. */ - isUnique?: boolean; - /** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ - conditionType: Merge.hris.ConditionSchemaConditionType; - /** The schemas for the operators that can be used on a condition. */ - operators: Merge.hris.OperatorSchema[]; -} diff --git a/src/api/resources/hris/types/ConditionSchemaConditionType.ts b/src/api/resources/hris/types/ConditionSchemaConditionType.ts deleted file mode 100644 index 60a4d9e5..00000000 --- a/src/api/resources/hris/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -/** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionSchemaConditionType = Merge.hris.ConditionTypeEnum | string; diff --git a/src/api/resources/hris/types/ConditionTypeEnum.ts b/src/api/resources/hris/types/ConditionTypeEnum.ts deleted file mode 100644 index 2b408be2..00000000 --- a/src/api/resources/hris/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionTypeEnum = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; - -export const ConditionTypeEnum = { - Boolean: "BOOLEAN", - Date: "DATE", - DateTime: "DATE_TIME", - Integer: "INTEGER", - Float: "FLOAT", - String: "STRING", - ListOfStrings: "LIST_OF_STRINGS", -} as const; diff --git a/src/api/resources/hris/types/Deduction.ts b/src/api/resources/hris/types/Deduction.ts index 1b79893d..d1425065 100644 --- a/src/api/resources/hris/types/Deduction.ts +++ b/src/api/resources/hris/types/Deduction.ts @@ -19,8 +19,9 @@ export interface Deduction { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; employeePayrollRun?: string; /** The deduction's name. */ diff --git a/src/api/resources/hris/types/Dependent.ts b/src/api/resources/hris/types/Dependent.ts index 343ad23e..13e6bcc2 100644 --- a/src/api/resources/hris/types/Dependent.ts +++ b/src/api/resources/hris/types/Dependent.ts @@ -19,8 +19,9 @@ export interface Dependent { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The dependents's first name. */ firstName?: string; diff --git a/src/api/resources/hris/types/Earning.ts b/src/api/resources/hris/types/Earning.ts index 751526a2..57048b83 100644 --- a/src/api/resources/hris/types/Earning.ts +++ b/src/api/resources/hris/types/Earning.ts @@ -19,8 +19,9 @@ export interface Earning { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; employeePayrollRun?: string; /** The amount earned. */ diff --git a/src/api/resources/hris/types/Employee.ts b/src/api/resources/hris/types/Employee.ts index 5a7eaa08..0bc563bd 100644 --- a/src/api/resources/hris/types/Employee.ts +++ b/src/api/resources/hris/types/Employee.ts @@ -19,8 +19,9 @@ export interface Employee { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee's number that appears in the third-party integration's UI. */ employeeNumber?: string; diff --git a/src/api/resources/hris/types/EmployeePayrollRun.ts b/src/api/resources/hris/types/EmployeePayrollRun.ts index 0e399eb1..f776be7e 100644 --- a/src/api/resources/hris/types/EmployeePayrollRun.ts +++ b/src/api/resources/hris/types/EmployeePayrollRun.ts @@ -19,8 +19,9 @@ export interface EmployeePayrollRun { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee whose payroll is being run. */ employee?: Merge.hris.EmployeePayrollRunEmployee; diff --git a/src/api/resources/hris/types/EmployerBenefit.ts b/src/api/resources/hris/types/EmployerBenefit.ts index 440ccf56..26ce052b 100644 --- a/src/api/resources/hris/types/EmployerBenefit.ts +++ b/src/api/resources/hris/types/EmployerBenefit.ts @@ -19,8 +19,9 @@ export interface EmployerBenefit { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** * The type of benefit plan. diff --git a/src/api/resources/hris/types/Employment.ts b/src/api/resources/hris/types/Employment.ts index 0d57ddf8..a86786f4 100644 --- a/src/api/resources/hris/types/Employment.ts +++ b/src/api/resources/hris/types/Employment.ts @@ -21,8 +21,9 @@ export interface Employment { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee holding this position. */ employee?: Merge.hris.EmploymentEmployee; diff --git a/src/api/resources/hris/types/EventTypeEnum.ts b/src/api/resources/hris/types/EventTypeEnum.ts index 01bc1b50..c8fb89f1 100644 --- a/src/api/resources/hris/types/EventTypeEnum.ts +++ b/src/api/resources/hris/types/EventTypeEnum.ts @@ -37,6 +37,9 @@ * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type EventTypeEnum = | "CREATED_REMOTE_PRODUCTION_API_KEY" @@ -72,7 +75,10 @@ export type EventTypeEnum = | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; export const EventTypeEnum = { CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", @@ -109,4 +115,7 @@ export const EventTypeEnum = { ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", MutedIssue: "MUTED_ISSUE", GeneratedMagicLink: "GENERATED_MAGIC_LINK", + EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", + DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", + MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", } as const; diff --git a/src/api/resources/hris/types/Group.ts b/src/api/resources/hris/types/Group.ts index 5810f0cf..f2540353 100644 --- a/src/api/resources/hris/types/Group.ts +++ b/src/api/resources/hris/types/Group.ts @@ -19,8 +19,9 @@ export interface Group { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The parent group for this group. */ parentGroup?: string; @@ -38,6 +39,8 @@ export interface Group { type?: Merge.hris.GroupType; /** Indicates whether or not this object has been deleted in the third party platform. */ remoteWasDeleted?: boolean; + /** Indicates whether the Group refers to a team in the third party platform. Note that this is an opinionated view based on how Merge observes most organizations representing teams in each third party platform. If your customer uses a platform different from most, there is a chance this will not be correct. */ + isCommonlyUsedAsTeam?: boolean; fieldMappings?: Record; remoteData?: Merge.hris.RemoteData[]; } diff --git a/src/api/resources/hris/types/LinkedAccountCondition.ts b/src/api/resources/hris/types/LinkedAccountCondition.ts deleted file mode 100644 index 63d3f4dd..00000000 --- a/src/api/resources/hris/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountCondition { - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The common model for a specific condition. */ - commonModel?: string; - nativeName?: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; - fieldName?: string; -} diff --git a/src/api/resources/hris/types/LinkedAccountConditionRequest.ts b/src/api/resources/hris/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index b46b4c79..00000000 --- a/src/api/resources/hris/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountConditionRequest { - /** The ID indicating which Linked Account Condition this is. */ - id?: string; - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; -} diff --git a/src/api/resources/hris/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/api/resources/hris/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index 46198966..00000000 --- a/src/api/resources/hris/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfiguration { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions?: Merge.hris.LinkedAccountCondition[]; -} diff --git a/src/api/resources/hris/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/api/resources/hris/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 18541e39..00000000 --- a/src/api/resources/hris/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfigurationRequest { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions: Merge.hris.LinkedAccountConditionRequest[]; -} diff --git a/src/api/resources/hris/types/Location.ts b/src/api/resources/hris/types/Location.ts index 72b957a4..5f0e6f19 100644 --- a/src/api/resources/hris/types/Location.ts +++ b/src/api/resources/hris/types/Location.ts @@ -19,8 +19,9 @@ export interface Location { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The location's name. */ name?: string; diff --git a/src/api/resources/hris/types/OperatorSchema.ts b/src/api/resources/hris/types/OperatorSchema.ts deleted file mode 100644 index fd1b2b92..00000000 --- a/src/api/resources/hris/types/OperatorSchema.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface OperatorSchema { - /** The operator for which an operator schema is defined. */ - operator?: string; - /** Whether the operator can be repeated multiple times. */ - isUnique?: boolean; -} diff --git a/src/api/resources/hris/types/PaginatedConditionSchemaList.ts b/src/api/resources/hris/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index 86fba1e3..00000000 --- a/src/api/resources/hris/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface PaginatedConditionSchemaList { - next?: string; - previous?: string; - results?: Merge.hris.ConditionSchema[]; -} diff --git a/src/api/resources/hris/types/PayGroup.ts b/src/api/resources/hris/types/PayGroup.ts index 656b5047..72a45c75 100644 --- a/src/api/resources/hris/types/PayGroup.ts +++ b/src/api/resources/hris/types/PayGroup.ts @@ -19,8 +19,9 @@ export interface PayGroup { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The pay group name. */ payGroupName?: string; diff --git a/src/api/resources/hris/types/PayrollRun.ts b/src/api/resources/hris/types/PayrollRun.ts index 16bb2030..ae0d3458 100644 --- a/src/api/resources/hris/types/PayrollRun.ts +++ b/src/api/resources/hris/types/PayrollRun.ts @@ -19,8 +19,9 @@ export interface PayrollRun { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** * The state of the payroll run diff --git a/src/api/resources/hris/types/RemoteFieldApi.ts b/src/api/resources/hris/types/RemoteFieldApi.ts index 92754754..6bf6a24f 100644 --- a/src/api/resources/hris/types/RemoteFieldApi.ts +++ b/src/api/resources/hris/types/RemoteFieldApi.ts @@ -10,4 +10,5 @@ export interface RemoteFieldApi { remoteEndpointInfo: Merge.hris.RemoteEndpointInfo; exampleValues: unknown[]; advancedMetadata?: Merge.hris.AdvancedMetadata; + coverage?: Merge.hris.RemoteFieldApiCoverage; } diff --git a/src/api/resources/hris/types/RemoteFieldApiCoverage.ts b/src/api/resources/hris/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..9a8f479f --- /dev/null +++ b/src/api/resources/hris/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/hris/types/Tax.ts b/src/api/resources/hris/types/Tax.ts index 72f945bf..e29555a8 100644 --- a/src/api/resources/hris/types/Tax.ts +++ b/src/api/resources/hris/types/Tax.ts @@ -19,8 +19,9 @@ export interface Tax { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; employeePayrollRun?: string; /** The tax's name. */ diff --git a/src/api/resources/hris/types/Team.ts b/src/api/resources/hris/types/Team.ts index c1f53e1c..a474a251 100644 --- a/src/api/resources/hris/types/Team.ts +++ b/src/api/resources/hris/types/Team.ts @@ -19,8 +19,9 @@ export interface Team { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The team's name. */ name?: string; diff --git a/src/api/resources/hris/types/TimeOff.ts b/src/api/resources/hris/types/TimeOff.ts index da488bbb..2c3bdb99 100644 --- a/src/api/resources/hris/types/TimeOff.ts +++ b/src/api/resources/hris/types/TimeOff.ts @@ -19,8 +19,9 @@ export interface TimeOff { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee requesting time off. */ employee?: Merge.hris.TimeOffEmployee; diff --git a/src/api/resources/hris/types/TimeOffBalance.ts b/src/api/resources/hris/types/TimeOffBalance.ts index e60ffa0c..1dd56cb3 100644 --- a/src/api/resources/hris/types/TimeOffBalance.ts +++ b/src/api/resources/hris/types/TimeOffBalance.ts @@ -19,8 +19,9 @@ export interface TimeOffBalance { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee the balance belongs to. */ employee?: Merge.hris.TimeOffBalanceEmployee; diff --git a/src/api/resources/hris/types/TimesheetEntry.ts b/src/api/resources/hris/types/TimesheetEntry.ts index 88cd17a8..e07fc47a 100644 --- a/src/api/resources/hris/types/TimesheetEntry.ts +++ b/src/api/resources/hris/types/TimesheetEntry.ts @@ -17,8 +17,9 @@ export interface TimesheetEntry { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The employee the timesheet entry is for. */ employee?: string; diff --git a/src/api/resources/hris/types/index.ts b/src/api/resources/hris/types/index.ts index 5ce4d365..7a3fbaf7 100644 --- a/src/api/resources/hris/types/index.ts +++ b/src/api/resources/hris/types/index.ts @@ -22,9 +22,6 @@ export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; export * from "./Company"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./CountryEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; @@ -104,10 +101,6 @@ export * from "./IssueStatus"; export * from "./Issue"; export * from "./IssueStatusEnum"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./LocationCountry"; export * from "./LocationLocationType"; @@ -121,13 +114,11 @@ export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequestEncoding"; export * from "./MultipartFormFieldRequest"; -export * from "./OperatorSchema"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedBankInfoList"; export * from "./PaginatedBenefitList"; export * from "./PaginatedCompanyList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedDependentList"; export * from "./PaginatedEmployeeList"; export * from "./PaginatedEmployeePayrollRunList"; @@ -155,6 +146,7 @@ export * from "./ReasonEnum"; export * from "./RelationshipEnum"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index f23c3126..22e62989 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,6 +1,6 @@ export * as filestorage from "./filestorage"; export * as crm from "./crm"; -export * as ticketing from "./ticketing"; export * as hris from "./hris"; +export * as ticketing from "./ticketing"; export * as ats from "./ats"; export * as accounting from "./accounting"; diff --git a/src/api/resources/ticketing/client/Client.ts b/src/api/resources/ticketing/client/Client.ts index 0422e733..0b611a58 100644 --- a/src/api/resources/ticketing/client/Client.ts +++ b/src/api/resources/ticketing/client/Client.ts @@ -25,7 +25,6 @@ import { Passthrough } from "../resources/passthrough/client/Client"; import { Projects } from "../resources/projects/client/Client"; import { RegenerateKey } from "../resources/regenerateKey/client/Client"; import { Roles } from "../resources/roles/client/Client"; -import { SelectiveSync } from "../resources/selectiveSync/client/Client"; import { SyncStatus } from "../resources/syncStatus/client/Client"; import { ForceResync } from "../resources/forceResync/client/Client"; import { Tags } from "../resources/tags/client/Client"; @@ -176,12 +175,6 @@ export class Ticketing { return (this._roles ??= new Roles(this._options)); } - protected _selectiveSync: SelectiveSync | undefined; - - public get selectiveSync(): SelectiveSync { - return (this._selectiveSync ??= new SelectiveSync(this._options)); - } - protected _syncStatus: SyncStatus | undefined; public get syncStatus(): SyncStatus { diff --git a/src/api/resources/ticketing/resources/accountDetails/client/Client.ts b/src/api/resources/ticketing/resources/accountDetails/client/Client.ts index 95eeed03..00b98fbf 100644 --- a/src/api/resources/ticketing/resources/accountDetails/client/Client.ts +++ b/src/api/resources/ticketing/resources/accountDetails/client/Client.ts @@ -46,7 +46,7 @@ export class AccountDetails { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/accountToken/client/Client.ts b/src/api/resources/ticketing/resources/accountToken/client/Client.ts index b1dd6cb0..3db46e28 100644 --- a/src/api/resources/ticketing/resources/accountToken/client/Client.ts +++ b/src/api/resources/ticketing/resources/accountToken/client/Client.ts @@ -49,7 +49,7 @@ export class AccountToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/accounts/client/Client.ts b/src/api/resources/ticketing/resources/accounts/client/Client.ts index ff342c59..1685af9f 100644 --- a/src/api/resources/ticketing/resources/accounts/client/Client.ts +++ b/src/api/resources/ticketing/resources/accounts/client/Client.ts @@ -97,7 +97,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Accounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts b/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts index 826b8967..e977540a 100644 --- a/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts +++ b/src/api/resources/ticketing/resources/asyncPassthrough/client/Client.ts @@ -52,7 +52,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.DataPassthroughRequest.jsonOrThrow(request, { @@ -116,7 +116,7 @@ export class AsyncPassthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/attachments/client/Client.ts b/src/api/resources/ticketing/resources/attachments/client/Client.ts index 91d36c74..d8b83559 100644 --- a/src/api/resources/ticketing/resources/attachments/client/Client.ts +++ b/src/api/resources/ticketing/resources/attachments/client/Client.ts @@ -113,7 +113,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -187,7 +187,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -263,7 +263,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -329,7 +329,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -384,7 +384,7 @@ export class Attachments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/auditTrail/client/Client.ts b/src/api/resources/ticketing/resources/auditTrail/client/Client.ts index 08047db3..b16b36cf 100644 --- a/src/api/resources/ticketing/resources/auditTrail/client/Client.ts +++ b/src/api/resources/ticketing/resources/auditTrail/client/Client.ts @@ -75,7 +75,7 @@ export class AuditTrail { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts b/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts index 6e49b389..a9bf6e8a 100644 --- a/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts +++ b/src/api/resources/ticketing/resources/auditTrail/client/requests/AuditTrailListRequest.ts @@ -16,7 +16,7 @@ export interface AuditTrailListRequest { */ endDate?: string; /** - * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK` + * If included, will only include events with the given event type. Possible values include: `CREATED_REMOTE_PRODUCTION_API_KEY`, `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`, `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`, `CREATED_DESTINATION`, `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`, `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`, `ENABLED_INTEGRATION`, `DISABLED_INTEGRATION`, `ENABLED_CATEGORY`, `DISABLED_CATEGORY`, `CHANGED_PASSWORD`, `RESET_PASSWORD`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION`, `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT`, `CREATED_INTEGRATION_WIDE_FIELD_MAPPING`, `CREATED_LINKED_ACCOUNT_FIELD_MAPPING`, `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING`, `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`, `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`, `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`, `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`, `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED` */ eventType?: string; /** diff --git a/src/api/resources/ticketing/resources/availableActions/client/Client.ts b/src/api/resources/ticketing/resources/availableActions/client/Client.ts index acc9ec9a..07f8baad 100644 --- a/src/api/resources/ticketing/resources/availableActions/client/Client.ts +++ b/src/api/resources/ticketing/resources/availableActions/client/Client.ts @@ -46,7 +46,7 @@ export class AvailableActions { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/collections/client/Client.ts b/src/api/resources/ticketing/resources/collections/client/Client.ts index c69c71b3..1bab3fa2 100644 --- a/src/api/resources/ticketing/resources/collections/client/Client.ts +++ b/src/api/resources/ticketing/resources/collections/client/Client.ts @@ -122,7 +122,7 @@ export class Collections { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -203,7 +203,7 @@ export class Collections { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -288,7 +288,7 @@ export class Collections { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/comments/client/Client.ts b/src/api/resources/ticketing/resources/comments/client/Client.ts index 24a6e343..1bc77ae7 100644 --- a/src/api/resources/ticketing/resources/comments/client/Client.ts +++ b/src/api/resources/ticketing/resources/comments/client/Client.ts @@ -112,7 +112,7 @@ export class Comments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -186,7 +186,7 @@ export class Comments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -262,7 +262,7 @@ export class Comments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -321,7 +321,7 @@ export class Comments { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/contacts/client/Client.ts b/src/api/resources/ticketing/resources/contacts/client/Client.ts index 4b4122ad..d55f0df9 100644 --- a/src/api/resources/ticketing/resources/contacts/client/Client.ts +++ b/src/api/resources/ticketing/resources/contacts/client/Client.ts @@ -102,7 +102,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -140,6 +140,83 @@ export class Contacts { } } + /** + * Creates a `Contact` object with the given values. + * + * @example + * await merge.ticketing.contacts.create({ + * model: {} + * }) + */ + public async create( + request: Merge.ticketing.TicketingContactEndpointRequest, + requestOptions?: Contacts.RequestOptions + ): Promise { + const { isDebugMode, runAsync, ..._body } = request; + const _queryParams: Record = {}; + if (isDebugMode != null) { + _queryParams["is_debug_mode"] = isDebugMode.toString(); + } + + if (runAsync != null) { + _queryParams["run_async"] = runAsync.toString(); + } + + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, + "ticketing/v1/contacts" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Account-Token": + (await core.Supplier.get(this._options.accountToken)) != null + ? await core.Supplier.get(this._options.accountToken) + : undefined, + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@mergeapi/merge-node-client", + "X-Fern-SDK-Version": "1.0.8", + }, + contentType: "application/json", + queryParameters: _queryParams, + body: await serializers.ticketing.TicketingContactEndpointRequest.jsonOrThrow(_body, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.ticketing.TicketingContactResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.MergeTimeoutError(); + case "unknown": + throw new errors.MergeError({ + message: _response.error.errorMessage, + }); + } + } + /** * Returns a `Contact` object with the given `id`. * @@ -175,7 +252,7 @@ export class Contacts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -213,6 +290,64 @@ export class Contacts { } } + /** + * Returns metadata for `TicketingContact` POSTs. + * + * @example + * await merge.ticketing.contacts.metaPostRetrieve() + */ + public async metaPostRetrieve(requestOptions?: Contacts.RequestOptions): Promise { + const _response = await core.fetcher({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, + "ticketing/v1/contacts/meta/post" + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Account-Token": + (await core.Supplier.get(this._options.accountToken)) != null + ? await core.Supplier.get(this._options.accountToken) + : undefined, + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@mergeapi/merge-node-client", + "X-Fern-SDK-Version": "1.0.8", + }, + contentType: "application/json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.ticketing.MetaResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.MergeError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.MergeTimeoutError(); + case "unknown": + throw new errors.MergeError({ + message: _response.error.errorMessage, + }); + } + } + protected async _getAuthorizationHeader() { return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; } diff --git a/src/api/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts b/src/api/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts new file mode 100644 index 00000000..0a26516f --- /dev/null +++ b/src/api/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../../../../.."; + +/** + * @example + * { + * model: {} + * } + */ +export interface TicketingContactEndpointRequest { + /** + * Whether to include debug fields (such as log file links) in the response. + */ + isDebugMode?: boolean; + /** + * Whether or not third-party updates should be run asynchronously. + */ + runAsync?: boolean; + model: Merge.ticketing.ContactRequest; +} diff --git a/src/api/resources/ticketing/resources/contacts/client/requests/index.ts b/src/api/resources/ticketing/resources/contacts/client/requests/index.ts index ef44c1d7..bee253f2 100644 --- a/src/api/resources/ticketing/resources/contacts/client/requests/index.ts +++ b/src/api/resources/ticketing/resources/contacts/client/requests/index.ts @@ -1,2 +1,3 @@ export { ContactsListRequest } from "./ContactsListRequest"; +export { TicketingContactEndpointRequest } from "./TicketingContactEndpointRequest"; export { ContactsRetrieveRequest } from "./ContactsRetrieveRequest"; diff --git a/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts b/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts index 1f1e5f78..16f285ca 100644 --- a/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts +++ b/src/api/resources/ticketing/resources/deleteAccount/client/Client.ts @@ -44,7 +44,7 @@ export class DeleteAccount { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts b/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts index 187f3d7a..55277b1c 100644 --- a/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts +++ b/src/api/resources/ticketing/resources/fieldMapping/client/Client.ts @@ -48,7 +48,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -116,7 +116,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.CreateFieldMappingRequest.jsonOrThrow(request, { @@ -180,7 +180,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -221,10 +221,7 @@ export class FieldMapping { * 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. * * @example - * await merge.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * }) + * await merge.ticketing.fieldMapping.fieldMappingsPartialUpdate("field_mapping_id", {}) */ public async fieldMappingsPartialUpdate( fieldMappingId: string, @@ -245,7 +242,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.PatchedEditFieldMappingRequest.jsonOrThrow(request, { @@ -319,7 +316,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -380,7 +377,7 @@ export class FieldMapping { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts b/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts index 671f9e4a..b1e31108 100644 --- a/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts +++ b/src/api/resources/ticketing/resources/fieldMapping/client/requests/PatchedEditFieldMappingRequest.ts @@ -4,10 +4,7 @@ /** * @example - * { - * remoteMethod: "GET", - * remoteUrlPath: "/example-url-path" - * } + * {} */ export interface PatchedEditFieldMappingRequest { /** The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint. */ diff --git a/src/api/resources/ticketing/resources/forceResync/client/Client.ts b/src/api/resources/ticketing/resources/forceResync/client/Client.ts index 1608d6fd..17033a32 100644 --- a/src/api/resources/ticketing/resources/forceResync/client/Client.ts +++ b/src/api/resources/ticketing/resources/forceResync/client/Client.ts @@ -48,7 +48,7 @@ export class ForceResync { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/generateKey/client/Client.ts b/src/api/resources/ticketing/resources/generateKey/client/Client.ts index d4de63c8..b9aa63e9 100644 --- a/src/api/resources/ticketing/resources/generateKey/client/Client.ts +++ b/src/api/resources/ticketing/resources/generateKey/client/Client.ts @@ -51,7 +51,7 @@ export class GenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.GenerateRemoteKeyRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ticketing/resources/index.ts b/src/api/resources/ticketing/resources/index.ts index f21116a3..37116195 100644 --- a/src/api/resources/ticketing/resources/index.ts +++ b/src/api/resources/ticketing/resources/index.ts @@ -28,7 +28,6 @@ export * as linkToken from "./linkToken"; export * as passthrough from "./passthrough"; export * as regenerateKey from "./regenerateKey"; export * as roles from "./roles"; -export * as selectiveSync from "./selectiveSync"; export * as syncStatus from "./syncStatus"; export * as forceResync from "./forceResync"; export * as tags from "./tags"; @@ -49,7 +48,6 @@ export * from "./linkedAccounts/client/requests"; export * from "./projects/client/requests"; export * from "./regenerateKey/client/requests"; export * from "./roles/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./syncStatus/client/requests"; export * from "./tags/client/requests"; export * from "./teams/client/requests"; diff --git a/src/api/resources/ticketing/resources/issues/client/Client.ts b/src/api/resources/ticketing/resources/issues/client/Client.ts index 26f64be5..776c2b91 100644 --- a/src/api/resources/ticketing/resources/issues/client/Client.ts +++ b/src/api/resources/ticketing/resources/issues/client/Client.ts @@ -117,7 +117,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -176,7 +176,7 @@ export class Issues { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, diff --git a/src/api/resources/ticketing/resources/linkToken/client/Client.ts b/src/api/resources/ticketing/resources/linkToken/client/Client.ts index 1138e746..8b93562f 100644 --- a/src/api/resources/ticketing/resources/linkToken/client/Client.ts +++ b/src/api/resources/ticketing/resources/linkToken/client/Client.ts @@ -54,7 +54,7 @@ export class LinkToken { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.EndUserDetailsRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 4cd7f47a..ab1ea2f2 100644 --- a/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/api/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -37,4 +37,6 @@ export interface EndUserDetailsRequest { >; /** The language code for the language to localize Merge Link to. */ language?: string; + /** A JSON object containing integration-specific configuration options. */ + integrationSpecificConfig?: Record; } diff --git a/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts b/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts index e0eac97f..5194c70b 100644 --- a/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts +++ b/src/api/resources/ticketing/resources/linkedAccounts/client/Client.ts @@ -117,7 +117,7 @@ export class LinkedAccounts { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/passthrough/client/Client.ts b/src/api/resources/ticketing/resources/passthrough/client/Client.ts index 54494f88..768f2057 100644 --- a/src/api/resources/ticketing/resources/passthrough/client/Client.ts +++ b/src/api/resources/ticketing/resources/passthrough/client/Client.ts @@ -52,7 +52,7 @@ export class Passthrough { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.DataPassthroughRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ticketing/resources/projects/client/Client.ts b/src/api/resources/ticketing/resources/projects/client/Client.ts index d4358578..02c50bd5 100644 --- a/src/api/resources/ticketing/resources/projects/client/Client.ts +++ b/src/api/resources/ticketing/resources/projects/client/Client.ts @@ -97,7 +97,7 @@ export class Projects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Projects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -251,7 +251,7 @@ export class Projects { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts b/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts index 6f2662a4..218237e2 100644 --- a/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts +++ b/src/api/resources/ticketing/resources/regenerateKey/client/Client.ts @@ -51,7 +51,7 @@ export class RegenerateKey { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.RemoteKeyForRegenerationRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ticketing/resources/roles/client/Client.ts b/src/api/resources/ticketing/resources/roles/client/Client.ts index 0c659b44..2d7eacd8 100644 --- a/src/api/resources/ticketing/resources/roles/client/Client.ts +++ b/src/api/resources/ticketing/resources/roles/client/Client.ts @@ -97,7 +97,7 @@ export class Roles { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Roles { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/scopes/client/Client.ts b/src/api/resources/ticketing/resources/scopes/client/Client.ts index 505329e6..20e2d78a 100644 --- a/src/api/resources/ticketing/resources/scopes/client/Client.ts +++ b/src/api/resources/ticketing/resources/scopes/client/Client.ts @@ -48,7 +48,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -108,7 +108,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -173,7 +173,7 @@ export class Scopes { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.LinkedAccountCommonModelScopeDeserializerRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ticketing/resources/selectiveSync/client/Client.ts b/src/api/resources/ticketing/resources/selectiveSync/client/Client.ts deleted file mode 100644 index c1d7590d..00000000 --- a/src/api/resources/ticketing/resources/selectiveSync/client/Client.ts +++ /dev/null @@ -1,238 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../../../environments"; -import * as core from "../../../../../../core"; -import * as Merge from "../../../../.."; -import urlJoin from "url-join"; -import * as serializers from "../../../../../../serialization"; -import * as errors from "../../../../../../errors"; - -export declare namespace SelectiveSync { - interface Options { - environment?: core.Supplier; - apiKey: core.Supplier; - accountToken?: core.Supplier; - } - - interface RequestOptions { - timeoutInSeconds?: number; - maxRetries?: number; - } -} - -export class SelectiveSync { - constructor(protected readonly _options: SelectiveSync.Options) {} - - /** - * Get a linked account's selective syncs. - * - * @example - * await merge.ticketing.selectiveSync.configurationsList() - */ - public async configurationsList( - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "ticketing/v1/selective-sync/configurations" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.ticketing.selectiveSync.configurationsList.Response.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Replace a linked account's selective syncs. - * - * @example - * await merge.ticketing.selectiveSync.configurationsUpdate({ - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * }) - */ - public async configurationsUpdate( - request: Merge.ticketing.LinkedAccountSelectiveSyncConfigurationListRequest, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "ticketing/v1/selective-sync/configurations" - ), - method: "PUT", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - body: await serializers.ticketing.LinkedAccountSelectiveSyncConfigurationListRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.ticketing.selectiveSync.configurationsUpdate.Response.parseOrThrow( - _response.body, - { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - } - ); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - /** - * Get metadata for the conditions available to a linked account. - * - * @example - * await merge.ticketing.selectiveSync.metaList({}) - */ - public async metaList( - request: Merge.ticketing.SelectiveSyncMetaListRequest = {}, - requestOptions?: SelectiveSync.RequestOptions - ): Promise { - const { commonModel, cursor, pageSize } = request; - const _queryParams: Record = {}; - if (commonModel != null) { - _queryParams["common_model"] = commonModel; - } - - if (cursor != null) { - _queryParams["cursor"] = cursor; - } - - if (pageSize != null) { - _queryParams["page_size"] = pageSize.toString(); - } - - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.MergeEnvironment.Production, - "ticketing/v1/selective-sync/meta" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - "X-Account-Token": - (await core.Supplier.get(this._options.accountToken)) != null - ? await core.Supplier.get(this._options.accountToken) - : undefined, - "X-Fern-Language": "JavaScript", - "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.ticketing.PaginatedConditionSchemaList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.MergeError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.MergeTimeoutError(); - case "unknown": - throw new errors.MergeError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - return `Bearer ${await core.Supplier.get(this._options.apiKey)}`; - } -} diff --git a/src/api/resources/ticketing/resources/selectiveSync/client/index.ts b/src/api/resources/ticketing/resources/selectiveSync/client/index.ts deleted file mode 100644 index 415726b7..00000000 --- a/src/api/resources/ticketing/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/api/resources/ticketing/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/api/resources/ticketing/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 67993bcc..00000000 --- a/src/api/resources/ticketing/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../../../../.."; - -/** - * @example - * { - * syncConfigurations: [{ - * linkedAccountConditions: [] - * }] - * } - */ -export interface LinkedAccountSelectiveSyncConfigurationListRequest { - /** The selective syncs associated with a linked account. */ - syncConfigurations: Merge.ticketing.LinkedAccountSelectiveSyncConfigurationRequest[]; -} diff --git a/src/api/resources/ticketing/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts b/src/api/resources/ticketing/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts deleted file mode 100644 index c633fb6d..00000000 --- a/src/api/resources/ticketing/resources/selectiveSync/client/requests/SelectiveSyncMetaListRequest.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * {} - */ -export interface SelectiveSyncMetaListRequest { - commonModel?: string; - /** - * The pagination cursor value. - */ - cursor?: string; - /** - * Number of results to return per page. - */ - pageSize?: number; -} diff --git a/src/api/resources/ticketing/resources/selectiveSync/client/requests/index.ts b/src/api/resources/ticketing/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 6f48e141..00000000 --- a/src/api/resources/ticketing/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; -export { SelectiveSyncMetaListRequest } from "./SelectiveSyncMetaListRequest"; diff --git a/src/api/resources/ticketing/resources/selectiveSync/index.ts b/src/api/resources/ticketing/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/api/resources/ticketing/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/api/resources/ticketing/resources/syncStatus/client/Client.ts b/src/api/resources/ticketing/resources/syncStatus/client/Client.ts index 402954c4..2414acc1 100644 --- a/src/api/resources/ticketing/resources/syncStatus/client/Client.ts +++ b/src/api/resources/ticketing/resources/syncStatus/client/Client.ts @@ -59,7 +59,7 @@ export class SyncStatus { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/tags/client/Client.ts b/src/api/resources/ticketing/resources/tags/client/Client.ts index 637caafe..0761ae90 100644 --- a/src/api/resources/ticketing/resources/tags/client/Client.ts +++ b/src/api/resources/ticketing/resources/tags/client/Client.ts @@ -97,7 +97,7 @@ export class Tags { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Tags { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/teams/client/Client.ts b/src/api/resources/ticketing/resources/teams/client/Client.ts index b4277a62..cc003286 100644 --- a/src/api/resources/ticketing/resources/teams/client/Client.ts +++ b/src/api/resources/ticketing/resources/teams/client/Client.ts @@ -97,7 +97,7 @@ export class Teams { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -166,7 +166,7 @@ export class Teams { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/tickets/client/Client.ts b/src/api/resources/ticketing/resources/tickets/client/Client.ts index a2674fda..6a18e3a4 100644 --- a/src/api/resources/ticketing/resources/tickets/client/Client.ts +++ b/src/api/resources/ticketing/resources/tickets/client/Client.ts @@ -202,7 +202,7 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -276,7 +276,7 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -364,7 +364,7 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -439,7 +439,7 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -527,7 +527,7 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -589,7 +589,7 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -647,7 +647,7 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -726,7 +726,7 @@ export class Tickets { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/users/client/Client.ts b/src/api/resources/ticketing/resources/users/client/Client.ts index 52674c0f..dc034e27 100644 --- a/src/api/resources/ticketing/resources/users/client/Client.ts +++ b/src/api/resources/ticketing/resources/users/client/Client.ts @@ -107,7 +107,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, @@ -180,7 +180,7 @@ export class Users { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", queryParameters: _queryParams, diff --git a/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts b/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts index 70d2d6e3..d16dee99 100644 --- a/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts +++ b/src/api/resources/ticketing/resources/webhookReceivers/client/Client.ts @@ -46,7 +46,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, @@ -110,7 +110,7 @@ export class WebhookReceivers { : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@mergeapi/merge-node-client", - "X-Fern-SDK-Version": "1.0.7", + "X-Fern-SDK-Version": "1.0.8", }, contentType: "application/json", body: await serializers.ticketing.WebhookReceiverRequest.jsonOrThrow(request, { diff --git a/src/api/resources/ticketing/types/Account.ts b/src/api/resources/ticketing/types/Account.ts index c63179d5..c81eb7cc 100644 --- a/src/api/resources/ticketing/types/Account.ts +++ b/src/api/resources/ticketing/types/Account.ts @@ -21,8 +21,9 @@ export interface Account { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The account's name. */ name?: string; diff --git a/src/api/resources/ticketing/types/Attachment.ts b/src/api/resources/ticketing/types/Attachment.ts index 534f73e3..c76c8617 100644 --- a/src/api/resources/ticketing/types/Attachment.ts +++ b/src/api/resources/ticketing/types/Attachment.ts @@ -19,8 +19,9 @@ export interface Attachment { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The attachment's name. It is required to include the file extension in the attachment's name. */ fileName?: string; diff --git a/src/api/resources/ticketing/types/AuditLogEvent.ts b/src/api/resources/ticketing/types/AuditLogEvent.ts index d07ff51b..ff786c59 100644 --- a/src/api/resources/ticketing/types/AuditLogEvent.ts +++ b/src/api/resources/ticketing/types/AuditLogEvent.ts @@ -59,6 +59,9 @@ export interface AuditLogEvent { * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ eventType: Merge.ticketing.AuditLogEventEventType; eventDescription: string; diff --git a/src/api/resources/ticketing/types/AuditLogEventEventType.ts b/src/api/resources/ticketing/types/AuditLogEventEventType.ts index 66b42d78..522f0adc 100644 --- a/src/api/resources/ticketing/types/AuditLogEventEventType.ts +++ b/src/api/resources/ticketing/types/AuditLogEventEventType.ts @@ -41,5 +41,8 @@ import * as Merge from "../../.."; * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type AuditLogEventEventType = Merge.ticketing.EventTypeEnum | string; diff --git a/src/api/resources/ticketing/types/Collection.ts b/src/api/resources/ticketing/types/Collection.ts index 1ced5dd7..a1fbf8c6 100644 --- a/src/api/resources/ticketing/types/Collection.ts +++ b/src/api/resources/ticketing/types/Collection.ts @@ -20,8 +20,9 @@ export interface Collection { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The collection's name. */ name?: string; diff --git a/src/api/resources/ticketing/types/Comment.ts b/src/api/resources/ticketing/types/Comment.ts index 8ad68eb9..ae16d929 100644 --- a/src/api/resources/ticketing/types/Comment.ts +++ b/src/api/resources/ticketing/types/Comment.ts @@ -19,8 +19,9 @@ export interface Comment { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The author of the Comment, if the author is a User. */ user?: Merge.ticketing.CommentUser; diff --git a/src/api/resources/ticketing/types/ConditionSchema.ts b/src/api/resources/ticketing/types/ConditionSchema.ts deleted file mode 100644 index 0b39520d..00000000 --- a/src/api/resources/ticketing/types/ConditionSchema.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface ConditionSchema { - /** The ID of the condition schema. This ID is used when updating selective syncs for a linked account. */ - id: string; - /** The common model for which a condition schema is defined. */ - commonModel?: string; - nativeName?: string; - fieldName?: string; - /** Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times. */ - isUnique?: boolean; - /** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ - conditionType: Merge.ticketing.ConditionSchemaConditionType; - /** The schemas for the operators that can be used on a condition. */ - operators: Merge.ticketing.OperatorSchema[]; -} diff --git a/src/api/resources/ticketing/types/ConditionSchemaConditionType.ts b/src/api/resources/ticketing/types/ConditionSchemaConditionType.ts deleted file mode 100644 index 5a999d93..00000000 --- a/src/api/resources/ticketing/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -/** - * The type of value(s) that can be set for this condition. - * - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionSchemaConditionType = Merge.ticketing.ConditionTypeEnum | string; diff --git a/src/api/resources/ticketing/types/ConditionTypeEnum.ts b/src/api/resources/ticketing/types/ConditionTypeEnum.ts deleted file mode 100644 index 2b408be2..00000000 --- a/src/api/resources/ticketing/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * - `BOOLEAN` - BOOLEAN - * - `DATE` - DATE - * - `DATE_TIME` - DATE_TIME - * - `INTEGER` - INTEGER - * - `FLOAT` - FLOAT - * - `STRING` - STRING - * - `LIST_OF_STRINGS` - LIST_OF_STRINGS - */ -export type ConditionTypeEnum = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; - -export const ConditionTypeEnum = { - Boolean: "BOOLEAN", - Date: "DATE", - DateTime: "DATE_TIME", - Integer: "INTEGER", - Float: "FLOAT", - String: "STRING", - ListOfStrings: "LIST_OF_STRINGS", -} as const; diff --git a/src/api/resources/ticketing/types/Contact.ts b/src/api/resources/ticketing/types/Contact.ts index 74571172..7059a337 100644 --- a/src/api/resources/ticketing/types/Contact.ts +++ b/src/api/resources/ticketing/types/Contact.ts @@ -19,8 +19,9 @@ export interface Contact { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The contact's name. */ name?: string; diff --git a/src/api/resources/ticketing/types/ContactRequest.ts b/src/api/resources/ticketing/types/ContactRequest.ts new file mode 100644 index 00000000..0a7c1bd5 --- /dev/null +++ b/src/api/resources/ticketing/types/ContactRequest.ts @@ -0,0 +1,31 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../.."; + +/** + * # The Contact Object + * + * ### Description + * + * The `Contact` object is used to represent the customer, lead, or external user that a ticket is associated with. + * + * ### Usage Example + * + * TODO + */ +export interface ContactRequest { + /** The contact's name. */ + name?: string; + /** The contact's email address. */ + emailAddress?: string; + /** The contact's phone number. */ + phoneNumber?: string; + /** The contact's details. */ + details?: string; + /** The contact's account. */ + account?: Merge.ticketing.ContactRequestAccount; + integrationParams?: Record; + linkedAccountParams?: Record; +} diff --git a/src/api/resources/ticketing/types/ContactRequestAccount.ts b/src/api/resources/ticketing/types/ContactRequestAccount.ts new file mode 100644 index 00000000..e376bad9 --- /dev/null +++ b/src/api/resources/ticketing/types/ContactRequestAccount.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../.."; + +/** + * The contact's account. + */ +export type ContactRequestAccount = string | Merge.ticketing.Account; diff --git a/src/api/resources/ticketing/types/EventTypeEnum.ts b/src/api/resources/ticketing/types/EventTypeEnum.ts index 01bc1b50..c8fb89f1 100644 --- a/src/api/resources/ticketing/types/EventTypeEnum.ts +++ b/src/api/resources/ticketing/types/EventTypeEnum.ts @@ -37,6 +37,9 @@ * - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC * - `MUTED_ISSUE` - MUTED_ISSUE * - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED */ export type EventTypeEnum = | "CREATED_REMOTE_PRODUCTION_API_KEY" @@ -72,7 +75,10 @@ export type EventTypeEnum = | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; export const EventTypeEnum = { CreatedRemoteProductionApiKey: "CREATED_REMOTE_PRODUCTION_API_KEY", @@ -109,4 +115,7 @@ export const EventTypeEnum = { ForcedLinkedAccountResync: "FORCED_LINKED_ACCOUNT_RESYNC", MutedIssue: "MUTED_ISSUE", GeneratedMagicLink: "GENERATED_MAGIC_LINK", + EnabledMergeWebhook: "ENABLED_MERGE_WEBHOOK", + DisabledMergeWebhook: "DISABLED_MERGE_WEBHOOK", + MergeWebhookTargetChanged: "MERGE_WEBHOOK_TARGET_CHANGED", } as const; diff --git a/src/api/resources/ticketing/types/LinkedAccountCondition.ts b/src/api/resources/ticketing/types/LinkedAccountCondition.ts deleted file mode 100644 index 63d3f4dd..00000000 --- a/src/api/resources/ticketing/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountCondition { - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The common model for a specific condition. */ - commonModel?: string; - nativeName?: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; - fieldName?: string; -} diff --git a/src/api/resources/ticketing/types/LinkedAccountConditionRequest.ts b/src/api/resources/ticketing/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index b46b4c79..00000000 --- a/src/api/resources/ticketing/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface LinkedAccountConditionRequest { - /** The ID indicating which Linked Account Condition this is. */ - id?: string; - /** The ID indicating which condition schema to use for a specific condition. */ - conditionSchemaId: string; - /** The operator for a specific condition. */ - operator: string; - value?: unknown; -} diff --git a/src/api/resources/ticketing/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/api/resources/ticketing/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index d053da3d..00000000 --- a/src/api/resources/ticketing/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfiguration { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions?: Merge.ticketing.LinkedAccountCondition[]; -} diff --git a/src/api/resources/ticketing/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/api/resources/ticketing/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index d70ef870..00000000 --- a/src/api/resources/ticketing/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface LinkedAccountSelectiveSyncConfigurationRequest { - /** The conditions belonging to a selective sync. */ - linkedAccountConditions: Merge.ticketing.LinkedAccountConditionRequest[]; -} diff --git a/src/api/resources/ticketing/types/OperatorSchema.ts b/src/api/resources/ticketing/types/OperatorSchema.ts deleted file mode 100644 index fd1b2b92..00000000 --- a/src/api/resources/ticketing/types/OperatorSchema.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface OperatorSchema { - /** The operator for which an operator schema is defined. */ - operator?: string; - /** Whether the operator can be repeated multiple times. */ - isUnique?: boolean; -} diff --git a/src/api/resources/ticketing/types/PaginatedConditionSchemaList.ts b/src/api/resources/ticketing/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index 22d556c6..00000000 --- a/src/api/resources/ticketing/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Merge from "../../.."; - -export interface PaginatedConditionSchemaList { - next?: string; - previous?: string; - results?: Merge.ticketing.ConditionSchema[]; -} diff --git a/src/api/resources/ticketing/types/Project.ts b/src/api/resources/ticketing/types/Project.ts index 30b02bb0..00dffa53 100644 --- a/src/api/resources/ticketing/types/Project.ts +++ b/src/api/resources/ticketing/types/Project.ts @@ -19,8 +19,9 @@ export interface Project { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The project's name. */ name?: string; diff --git a/src/api/resources/ticketing/types/RemoteFieldApi.ts b/src/api/resources/ticketing/types/RemoteFieldApi.ts index c442b6aa..307907e9 100644 --- a/src/api/resources/ticketing/types/RemoteFieldApi.ts +++ b/src/api/resources/ticketing/types/RemoteFieldApi.ts @@ -10,4 +10,5 @@ export interface RemoteFieldApi { remoteEndpointInfo: Merge.ticketing.RemoteEndpointInfo; exampleValues: unknown[]; advancedMetadata?: Merge.ticketing.AdvancedMetadata; + coverage?: Merge.ticketing.RemoteFieldApiCoverage; } diff --git a/src/api/resources/ticketing/types/RemoteFieldApiCoverage.ts b/src/api/resources/ticketing/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..9a8f479f --- /dev/null +++ b/src/api/resources/ticketing/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RemoteFieldApiCoverage = number | number; diff --git a/src/api/resources/ticketing/types/Role.ts b/src/api/resources/ticketing/types/Role.ts index dfc10eed..d86934d4 100644 --- a/src/api/resources/ticketing/types/Role.ts +++ b/src/api/resources/ticketing/types/Role.ts @@ -19,8 +19,9 @@ export interface Role { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The name of the Role. */ name?: string; diff --git a/src/api/resources/ticketing/types/Tag.ts b/src/api/resources/ticketing/types/Tag.ts index ddfcc376..f3f13e5e 100644 --- a/src/api/resources/ticketing/types/Tag.ts +++ b/src/api/resources/ticketing/types/Tag.ts @@ -18,8 +18,9 @@ import * as Merge from "../../.."; export interface Tag { /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The tag's name. */ name?: string; diff --git a/src/api/resources/ticketing/types/Team.ts b/src/api/resources/ticketing/types/Team.ts index 865b2c89..e4fa86f5 100644 --- a/src/api/resources/ticketing/types/Team.ts +++ b/src/api/resources/ticketing/types/Team.ts @@ -19,8 +19,9 @@ export interface Team { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The team's name. */ name?: string; diff --git a/src/api/resources/ticketing/types/Ticket.ts b/src/api/resources/ticketing/types/Ticket.ts index eec1c097..978e4440 100644 --- a/src/api/resources/ticketing/types/Ticket.ts +++ b/src/api/resources/ticketing/types/Ticket.ts @@ -19,8 +19,9 @@ export interface Ticket { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The ticket's name. */ name?: string; diff --git a/src/api/resources/ticketing/types/TicketingContactResponse.ts b/src/api/resources/ticketing/types/TicketingContactResponse.ts new file mode 100644 index 00000000..458acf66 --- /dev/null +++ b/src/api/resources/ticketing/types/TicketingContactResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Merge from "../../.."; + +export interface TicketingContactResponse { + model: Merge.ticketing.Contact; + warnings: Merge.ticketing.WarningValidationProblem[]; + errors: Merge.ticketing.ErrorValidationProblem[]; + logs?: Merge.ticketing.DebugModeLog[]; +} diff --git a/src/api/resources/ticketing/types/User.ts b/src/api/resources/ticketing/types/User.ts index cfd9e26a..972d8774 100644 --- a/src/api/resources/ticketing/types/User.ts +++ b/src/api/resources/ticketing/types/User.ts @@ -19,8 +19,9 @@ export interface User { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; + /** The datetime that this object was created by Merge. */ createdAt?: Date; - /** This is the datetime that this object was last updated by Merge */ + /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The user's name. */ name?: string; diff --git a/src/api/resources/ticketing/types/index.ts b/src/api/resources/ticketing/types/index.ts index c28dab72..07367d1e 100644 --- a/src/api/resources/ticketing/types/index.ts +++ b/src/api/resources/ticketing/types/index.ts @@ -34,11 +34,10 @@ export * from "./CommentRequest"; export * from "./CommentResponse"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./ContactAccount"; export * from "./Contact"; +export * from "./ContactRequestAccount"; +export * from "./ContactRequest"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; @@ -67,10 +66,6 @@ export * from "./ItemFormatEnum"; export * from "./ItemSchema"; export * from "./ItemTypeEnum"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -79,14 +74,12 @@ export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequestEncoding"; export * from "./MultipartFormFieldRequest"; -export * from "./OperatorSchema"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAccountList"; export * from "./PaginatedAttachmentList"; export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedCollectionList"; export * from "./PaginatedCommentList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedContactList"; export * from "./PaginatedIssueList"; export * from "./PaginatedProjectList"; @@ -106,6 +99,7 @@ export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteFieldRemoteFieldClass"; export * from "./RemoteField"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClassFieldType"; @@ -152,6 +146,7 @@ export * from "./TicketRequest"; export * from "./TicketResponse"; export * from "./TicketStatusEnum"; export * from "./TicketingAttachmentResponse"; +export * from "./TicketingContactResponse"; export * from "./UserTeamsItem"; export * from "./UserRolesItem"; export * from "./User"; diff --git a/src/serialization/resources/accounting/resources/index.ts b/src/serialization/resources/accounting/resources/index.ts index db756efc..78c3b2dd 100644 --- a/src/serialization/resources/accounting/resources/index.ts +++ b/src/serialization/resources/accounting/resources/index.ts @@ -26,7 +26,6 @@ export * as transactions from "./transactions"; export * from "./transactions/types"; export * as vendorCredits from "./vendorCredits"; export * from "./vendorCredits/types"; -export * as selectiveSync from "./selectiveSync"; export * as forceResync from "./forceResync"; export * as webhookReceivers from "./webhookReceivers"; export * from "./accounts/client/requests"; @@ -48,5 +47,4 @@ export * from "./payments/client/requests"; export * from "./purchaseOrders/client/requests"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./webhookReceivers/client/requests"; 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 2810c7d6..a3008a23 100644 --- a/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/accounting/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -50,6 +50,10 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: core.serialization.string().optional(), + integrationSpecificConfig: core.serialization.property( + "integration_specific_config", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), }); export declare namespace EndUserDetailsRequest { @@ -67,5 +71,6 @@ export declare namespace EndUserDetailsRequest { serializers.accounting.IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: string | null; + integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/accounting/resources/selectiveSync/client/configurationsList.ts b/src/serialization/resources/accounting/resources/selectiveSync/client/configurationsList.ts deleted file mode 100644 index cb118b09..00000000 --- a/src/serialization/resources/accounting/resources/selectiveSync/client/configurationsList.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.accounting.selectiveSync.configurationsList.Response.Raw, - Merge.accounting.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).accounting.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.accounting.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/accounting/resources/selectiveSync/client/configurationsUpdate.ts b/src/serialization/resources/accounting/resources/selectiveSync/client/configurationsUpdate.ts deleted file mode 100644 index 5242e3ad..00000000 --- a/src/serialization/resources/accounting/resources/selectiveSync/client/configurationsUpdate.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.accounting.selectiveSync.configurationsUpdate.Response.Raw, - Merge.accounting.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).accounting.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.accounting.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/accounting/resources/selectiveSync/client/index.ts b/src/serialization/resources/accounting/resources/selectiveSync/client/index.ts deleted file mode 100644 index b444d7ef..00000000 --- a/src/serialization/resources/accounting/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as configurationsList from "./configurationsList"; -export * as configurationsUpdate from "./configurationsUpdate"; -export * from "./requests"; diff --git a/src/serialization/resources/accounting/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/serialization/resources/accounting/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index c07f409d..00000000 --- a/src/serialization/resources/accounting/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../.."; -import * as Merge from "../../../../../../../api"; -import * as core from "../../../../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationListRequest: core.serialization.Schema< - serializers.accounting.LinkedAccountSelectiveSyncConfigurationListRequest.Raw, - Merge.accounting.LinkedAccountSelectiveSyncConfigurationListRequest -> = core.serialization.object({ - syncConfigurations: core.serialization.property( - "sync_configurations", - core.serialization.list( - core.serialization.lazyObject( - async () => - (await import("../../../../../..")).accounting.LinkedAccountSelectiveSyncConfigurationRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationListRequest { - interface Raw { - sync_configurations: serializers.accounting.LinkedAccountSelectiveSyncConfigurationRequest.Raw[]; - } -} diff --git a/src/serialization/resources/accounting/resources/selectiveSync/client/requests/index.ts b/src/serialization/resources/accounting/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 7ad0763a..00000000 --- a/src/serialization/resources/accounting/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; diff --git a/src/serialization/resources/accounting/resources/selectiveSync/index.ts b/src/serialization/resources/accounting/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/serialization/resources/accounting/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/accounting/types/ConditionSchema.ts b/src/serialization/resources/accounting/types/ConditionSchema.ts deleted file mode 100644 index 2be0b35d..00000000 --- a/src/serialization/resources/accounting/types/ConditionSchema.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchema: core.serialization.ObjectSchema< - serializers.accounting.ConditionSchema.Raw, - Merge.accounting.ConditionSchema -> = core.serialization.object({ - id: core.serialization.string(), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), - conditionType: core.serialization.property( - "condition_type", - core.serialization.lazy(async () => (await import("../../..")).accounting.ConditionSchemaConditionType) - ), - operators: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).accounting.OperatorSchema) - ), -}); - -export declare namespace ConditionSchema { - interface Raw { - id: string; - common_model?: string | null; - native_name?: string | null; - field_name?: string | null; - is_unique?: boolean | null; - condition_type: serializers.accounting.ConditionSchemaConditionType.Raw; - operators: serializers.accounting.OperatorSchema.Raw[]; - } -} diff --git a/src/serialization/resources/accounting/types/ConditionSchemaConditionType.ts b/src/serialization/resources/accounting/types/ConditionSchemaConditionType.ts deleted file mode 100644 index 178f2d10..00000000 --- a/src/serialization/resources/accounting/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchemaConditionType: core.serialization.Schema< - serializers.accounting.ConditionSchemaConditionType.Raw, - Merge.accounting.ConditionSchemaConditionType -> = core.serialization.undiscriminatedUnion([ - core.serialization.lazy(async () => (await import("../../..")).accounting.ConditionTypeEnum), - core.serialization.string(), -]); - -export declare namespace ConditionSchemaConditionType { - type Raw = serializers.accounting.ConditionTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/accounting/types/ConditionTypeEnum.ts b/src/serialization/resources/accounting/types/ConditionTypeEnum.ts deleted file mode 100644 index da1c4357..00000000 --- a/src/serialization/resources/accounting/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionTypeEnum: core.serialization.Schema< - serializers.accounting.ConditionTypeEnum.Raw, - Merge.accounting.ConditionTypeEnum -> = core.serialization.enum_(["BOOLEAN", "DATE", "DATE_TIME", "INTEGER", "FLOAT", "STRING", "LIST_OF_STRINGS"]); - -export declare namespace ConditionTypeEnum { - type Raw = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; -} diff --git a/src/serialization/resources/accounting/types/CreditNoteLineItem.ts b/src/serialization/resources/accounting/types/CreditNoteLineItem.ts index 8fb60901..84ae9aa8 100644 --- a/src/serialization/resources/accounting/types/CreditNoteLineItem.ts +++ b/src/serialization/resources/accounting/types/CreditNoteLineItem.ts @@ -20,7 +20,6 @@ export const CreditNoteLineItem: core.serialization.ObjectSchema< quantity: core.serialization.string().optional(), memo: core.serialization.string().optional(), unitPrice: core.serialization.property("unit_price", core.serialization.string().optional()), - taxRate: core.serialization.property("tax_rate", core.serialization.string().optional()), totalLineAmount: core.serialization.property("total_line_amount", core.serialization.string().optional()), trackingCategory: core.serialization.property("tracking_category", core.serialization.string().optional()), trackingCategories: core.serialization.property( @@ -46,7 +45,6 @@ export declare namespace CreditNoteLineItem { quantity?: string | null; memo?: string | null; unit_price?: string | null; - tax_rate?: string | null; total_line_amount?: string | null; tracking_category?: string | null; tracking_categories: string[]; diff --git a/src/serialization/resources/accounting/types/EventTypeEnum.ts b/src/serialization/resources/accounting/types/EventTypeEnum.ts index 002a12f5..9ae355e4 100644 --- a/src/serialization/resources/accounting/types/EventTypeEnum.ts +++ b/src/serialization/resources/accounting/types/EventTypeEnum.ts @@ -44,6 +44,9 @@ export const EventTypeEnum: core.serialization.Schema< "FORCED_LINKED_ACCOUNT_RESYNC", "MUTED_ISSUE", "GENERATED_MAGIC_LINK", + "ENABLED_MERGE_WEBHOOK", + "DISABLED_MERGE_WEBHOOK", + "MERGE_WEBHOOK_TARGET_CHANGED", ]); export declare namespace EventTypeEnum { @@ -81,5 +84,8 @@ export declare namespace EventTypeEnum { | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; } diff --git a/src/serialization/resources/accounting/types/LinkedAccountCondition.ts b/src/serialization/resources/accounting/types/LinkedAccountCondition.ts deleted file mode 100644 index 4bec6492..00000000 --- a/src/serialization/resources/accounting/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountCondition: core.serialization.ObjectSchema< - serializers.accounting.LinkedAccountCondition.Raw, - Merge.accounting.LinkedAccountCondition -> = core.serialization.object({ - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - operator: core.serialization.string(), - value: core.serialization.unknown().optional(), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), -}); - -export declare namespace LinkedAccountCondition { - interface Raw { - condition_schema_id: string; - common_model?: string | null; - native_name?: string | null; - operator: string; - value?: unknown | null; - field_name?: string | null; - } -} diff --git a/src/serialization/resources/accounting/types/LinkedAccountConditionRequest.ts b/src/serialization/resources/accounting/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index 4a35aef1..00000000 --- a/src/serialization/resources/accounting/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountConditionRequest: core.serialization.ObjectSchema< - serializers.accounting.LinkedAccountConditionRequest.Raw, - Merge.accounting.LinkedAccountConditionRequest -> = core.serialization.object({ - id: core.serialization.string().optional(), - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - operator: core.serialization.string(), - value: core.serialization.unknown(), -}); - -export declare namespace LinkedAccountConditionRequest { - interface Raw { - id?: string | null; - condition_schema_id: string; - operator: string; - value?: unknown; - } -} diff --git a/src/serialization/resources/accounting/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/serialization/resources/accounting/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index d5993a89..00000000 --- a/src/serialization/resources/accounting/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfiguration: core.serialization.ObjectSchema< - serializers.accounting.LinkedAccountSelectiveSyncConfiguration.Raw, - Merge.accounting.LinkedAccountSelectiveSyncConfiguration -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization - .list( - core.serialization.lazyObject(async () => (await import("../../..")).accounting.LinkedAccountCondition) - ) - .optional() - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfiguration { - interface Raw { - linked_account_conditions?: serializers.accounting.LinkedAccountCondition.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/serialization/resources/accounting/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 84921284..00000000 --- a/src/serialization/resources/accounting/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationRequest: core.serialization.ObjectSchema< - serializers.accounting.LinkedAccountSelectiveSyncConfigurationRequest.Raw, - Merge.accounting.LinkedAccountSelectiveSyncConfigurationRequest -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../..")).accounting.LinkedAccountConditionRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationRequest { - interface Raw { - linked_account_conditions: serializers.accounting.LinkedAccountConditionRequest.Raw[]; - } -} diff --git a/src/serialization/resources/accounting/types/OperatorSchema.ts b/src/serialization/resources/accounting/types/OperatorSchema.ts deleted file mode 100644 index 5378bb01..00000000 --- a/src/serialization/resources/accounting/types/OperatorSchema.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const OperatorSchema: core.serialization.ObjectSchema< - serializers.accounting.OperatorSchema.Raw, - Merge.accounting.OperatorSchema -> = core.serialization.object({ - operator: core.serialization.string().optional(), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), -}); - -export declare namespace OperatorSchema { - interface Raw { - operator?: string | null; - is_unique?: boolean | null; - } -} diff --git a/src/serialization/resources/accounting/types/PaginatedConditionSchemaList.ts b/src/serialization/resources/accounting/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index 5a1268a5..00000000 --- a/src/serialization/resources/accounting/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const PaginatedConditionSchemaList: core.serialization.ObjectSchema< - serializers.accounting.PaginatedConditionSchemaList.Raw, - Merge.accounting.PaginatedConditionSchemaList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).accounting.ConditionSchema)) - .optional(), -}); - -export declare namespace PaginatedConditionSchemaList { - interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.accounting.ConditionSchema.Raw[] | null; - } -} diff --git a/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts index e11ee1f5..4ca0d9d3 100644 --- a/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts +++ b/src/serialization/resources/accounting/types/PatchedPaymentRequest.ts @@ -25,6 +25,9 @@ export const PatchedPaymentRequest: core.serialization.ObjectSchema< .lazy(async () => (await import("../../..")).accounting.PatchedPaymentRequestCompany) .optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), + type: core.serialization + .lazy(async () => (await import("../../..")).accounting.PatchedPaymentRequestType) + .optional(), trackingCategories: core.serialization.property( "tracking_categories", core.serialization @@ -70,6 +73,7 @@ export declare namespace PatchedPaymentRequest { exchange_rate?: string | null; company?: serializers.accounting.PatchedPaymentRequestCompany.Raw | null; total_amount?: number | null; + type?: serializers.accounting.PatchedPaymentRequestType.Raw | null; tracking_categories?: | (serializers.accounting.PatchedPaymentRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; diff --git a/src/serialization/resources/hris/types/ConditionSchemaConditionType.ts b/src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts similarity index 51% rename from src/serialization/resources/hris/types/ConditionSchemaConditionType.ts rename to src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts index f3c4a9fd..bc7b90bf 100644 --- a/src/serialization/resources/hris/types/ConditionSchemaConditionType.ts +++ b/src/serialization/resources/accounting/types/PatchedPaymentRequestType.ts @@ -6,14 +6,14 @@ import * as serializers from "../../.."; import * as Merge from "../../../../api"; import * as core from "../../../../core"; -export const ConditionSchemaConditionType: core.serialization.Schema< - serializers.hris.ConditionSchemaConditionType.Raw, - Merge.hris.ConditionSchemaConditionType +export const PatchedPaymentRequestType: core.serialization.Schema< + serializers.accounting.PatchedPaymentRequestType.Raw, + Merge.accounting.PatchedPaymentRequestType > = core.serialization.undiscriminatedUnion([ - core.serialization.lazy(async () => (await import("../../..")).hris.ConditionTypeEnum), + core.serialization.lazy(async () => (await import("../../..")).accounting.PaymentTypeEnum), core.serialization.string(), ]); -export declare namespace ConditionSchemaConditionType { - type Raw = serializers.hris.ConditionTypeEnum.Raw | string; +export declare namespace PatchedPaymentRequestType { + type Raw = serializers.accounting.PaymentTypeEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/Payment.ts b/src/serialization/resources/accounting/types/Payment.ts index 8227a7c4..9f1c376c 100644 --- a/src/serialization/resources/accounting/types/Payment.ts +++ b/src/serialization/resources/accounting/types/Payment.ts @@ -19,6 +19,7 @@ export const Payment: core.serialization.ObjectSchema (await import("../../..")).accounting.PaymentCompany).optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), + type: core.serialization.lazy(async () => (await import("../../..")).accounting.PaymentType).optional(), trackingCategories: core.serialization.property( "tracking_categories", core.serialization @@ -70,6 +71,7 @@ export declare namespace Payment { exchange_rate?: string | null; company?: serializers.accounting.PaymentCompany.Raw | null; total_amount?: number | null; + type?: serializers.accounting.PaymentType.Raw | null; tracking_categories?: (serializers.accounting.PaymentTrackingCategoriesItem.Raw | null | undefined)[] | null; remote_updated_at?: string | null; remote_was_deleted?: boolean | null; diff --git a/src/serialization/resources/accounting/types/PaymentRequest.ts b/src/serialization/resources/accounting/types/PaymentRequest.ts index 07678079..154d1f67 100644 --- a/src/serialization/resources/accounting/types/PaymentRequest.ts +++ b/src/serialization/resources/accounting/types/PaymentRequest.ts @@ -25,6 +25,7 @@ export const PaymentRequest: core.serialization.ObjectSchema< .lazy(async () => (await import("../../..")).accounting.PaymentRequestCompany) .optional(), totalAmount: core.serialization.property("total_amount", core.serialization.number().optional()), + type: core.serialization.lazy(async () => (await import("../../..")).accounting.PaymentRequestType).optional(), trackingCategories: core.serialization.property( "tracking_categories", core.serialization @@ -70,6 +71,7 @@ export declare namespace PaymentRequest { exchange_rate?: string | null; company?: serializers.accounting.PaymentRequestCompany.Raw | null; total_amount?: number | null; + type?: serializers.accounting.PaymentRequestType.Raw | null; tracking_categories?: | (serializers.accounting.PaymentRequestTrackingCategoriesItem.Raw | null | undefined)[] | null; diff --git a/src/serialization/resources/crm/types/ConditionSchemaConditionType.ts b/src/serialization/resources/accounting/types/PaymentRequestType.ts similarity index 52% rename from src/serialization/resources/crm/types/ConditionSchemaConditionType.ts rename to src/serialization/resources/accounting/types/PaymentRequestType.ts index b37770c4..2af5f86f 100644 --- a/src/serialization/resources/crm/types/ConditionSchemaConditionType.ts +++ b/src/serialization/resources/accounting/types/PaymentRequestType.ts @@ -6,14 +6,14 @@ import * as serializers from "../../.."; import * as Merge from "../../../../api"; import * as core from "../../../../core"; -export const ConditionSchemaConditionType: core.serialization.Schema< - serializers.crm.ConditionSchemaConditionType.Raw, - Merge.crm.ConditionSchemaConditionType +export const PaymentRequestType: core.serialization.Schema< + serializers.accounting.PaymentRequestType.Raw, + Merge.accounting.PaymentRequestType > = core.serialization.undiscriminatedUnion([ - core.serialization.lazy(async () => (await import("../../..")).crm.ConditionTypeEnum), + core.serialization.lazy(async () => (await import("../../..")).accounting.PaymentTypeEnum), core.serialization.string(), ]); -export declare namespace ConditionSchemaConditionType { - type Raw = serializers.crm.ConditionTypeEnum.Raw | string; +export declare namespace PaymentRequestType { + type Raw = serializers.accounting.PaymentTypeEnum.Raw | string; } diff --git a/src/serialization/resources/ats/types/ConditionSchemaConditionType.ts b/src/serialization/resources/accounting/types/PaymentType.ts similarity index 52% rename from src/serialization/resources/ats/types/ConditionSchemaConditionType.ts rename to src/serialization/resources/accounting/types/PaymentType.ts index 6dde715e..2808f13c 100644 --- a/src/serialization/resources/ats/types/ConditionSchemaConditionType.ts +++ b/src/serialization/resources/accounting/types/PaymentType.ts @@ -6,14 +6,14 @@ import * as serializers from "../../.."; import * as Merge from "../../../../api"; import * as core from "../../../../core"; -export const ConditionSchemaConditionType: core.serialization.Schema< - serializers.ats.ConditionSchemaConditionType.Raw, - Merge.ats.ConditionSchemaConditionType +export const PaymentType: core.serialization.Schema< + serializers.accounting.PaymentType.Raw, + Merge.accounting.PaymentType > = core.serialization.undiscriminatedUnion([ - core.serialization.lazy(async () => (await import("../../..")).ats.ConditionTypeEnum), + core.serialization.lazy(async () => (await import("../../..")).accounting.PaymentTypeEnum), core.serialization.string(), ]); -export declare namespace ConditionSchemaConditionType { - type Raw = serializers.ats.ConditionTypeEnum.Raw | string; +export declare namespace PaymentType { + type Raw = serializers.accounting.PaymentTypeEnum.Raw | string; } diff --git a/src/serialization/resources/accounting/types/PaymentTypeEnum.ts b/src/serialization/resources/accounting/types/PaymentTypeEnum.ts new file mode 100644 index 00000000..fc4f9cee --- /dev/null +++ b/src/serialization/resources/accounting/types/PaymentTypeEnum.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const PaymentTypeEnum: core.serialization.Schema< + serializers.accounting.PaymentTypeEnum.Raw, + Merge.accounting.PaymentTypeEnum +> = core.serialization.enum_(["ACCOUNTS_PAYABLE", "ACCOUNTS_RECEIVABLE"]); + +export declare namespace PaymentTypeEnum { + type Raw = "ACCOUNTS_PAYABLE" | "ACCOUNTS_RECEIVABLE"; +} diff --git a/src/serialization/resources/accounting/types/RemoteFieldApi.ts b/src/serialization/resources/accounting/types/RemoteFieldApi.ts index 7b45f059..f55ad3ce 100644 --- a/src/serialization/resources/accounting/types/RemoteFieldApi.ts +++ b/src/serialization/resources/accounting/types/RemoteFieldApi.ts @@ -21,6 +21,9 @@ export const RemoteFieldApi: core.serialization.ObjectSchema< "advanced_metadata", core.serialization.lazyObject(async () => (await import("../../..")).accounting.AdvancedMetadata).optional() ), + coverage: core.serialization + .lazy(async () => (await import("../../..")).accounting.RemoteFieldApiCoverage) + .optional(), }); export declare namespace RemoteFieldApi { @@ -30,5 +33,6 @@ export declare namespace RemoteFieldApi { remote_endpoint_info: serializers.accounting.RemoteEndpointInfo.Raw; example_values: unknown[]; advanced_metadata?: serializers.accounting.AdvancedMetadata.Raw | null; + coverage?: serializers.accounting.RemoteFieldApiCoverage.Raw | null; } } diff --git a/src/serialization/resources/accounting/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/accounting/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..3b8f1c54 --- /dev/null +++ b/src/serialization/resources/accounting/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const RemoteFieldApiCoverage: core.serialization.Schema< + serializers.accounting.RemoteFieldApiCoverage.Raw, + Merge.accounting.RemoteFieldApiCoverage +> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); + +export declare namespace RemoteFieldApiCoverage { + type Raw = number | number; +} diff --git a/src/serialization/resources/accounting/types/index.ts b/src/serialization/resources/accounting/types/index.ts index 368a3af2..0acd913b 100644 --- a/src/serialization/resources/accounting/types/index.ts +++ b/src/serialization/resources/accounting/types/index.ts @@ -49,9 +49,6 @@ export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; export * from "./CompanyInfoCurrency"; export * from "./CompanyInfo"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./ContactStatus"; export * from "./ContactAddressesItem"; export * from "./Contact"; @@ -194,10 +191,6 @@ export * from "./JournalLineRequestTrackingCategoriesItem"; export * from "./JournalLineRequestCurrency"; export * from "./JournalLineRequest"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -206,7 +199,6 @@ export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequestEncoding"; export * from "./MultipartFormFieldRequest"; -export * from "./OperatorSchema"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAccountList"; export * from "./PaginatedAccountingAttachmentList"; @@ -215,7 +207,6 @@ export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedBalanceSheetList"; export * from "./PaginatedCashFlowStatementList"; export * from "./PaginatedCompanyInfoList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedContactList"; export * from "./PaginatedCreditNoteList"; export * from "./PaginatedExpenseList"; @@ -235,6 +226,7 @@ export * from "./PatchedPaymentRequestContact"; export * from "./PatchedPaymentRequestAccount"; export * from "./PatchedPaymentRequestCurrency"; export * from "./PatchedPaymentRequestCompany"; +export * from "./PatchedPaymentRequestType"; export * from "./PatchedPaymentRequestTrackingCategoriesItem"; export * from "./PatchedPaymentRequestAccountingPeriod"; export * from "./PatchedPaymentRequestAppliedToLinesItem"; @@ -243,6 +235,7 @@ export * from "./PaymentContact"; export * from "./PaymentAccount"; export * from "./PaymentCurrency"; export * from "./PaymentCompany"; +export * from "./PaymentType"; export * from "./PaymentTrackingCategoriesItem"; export * from "./PaymentAccountingPeriod"; export * from "./PaymentAppliedToLinesItem"; @@ -253,11 +246,13 @@ export * from "./PaymentRequestContact"; export * from "./PaymentRequestAccount"; export * from "./PaymentRequestCurrency"; export * from "./PaymentRequestCompany"; +export * from "./PaymentRequestType"; export * from "./PaymentRequestTrackingCategoriesItem"; export * from "./PaymentRequestAccountingPeriod"; export * from "./PaymentRequestAppliedToLinesItem"; export * from "./PaymentRequest"; export * from "./PaymentResponse"; +export * from "./PaymentTypeEnum"; export * from "./PostingStatusEnum"; export * from "./PurchaseOrderStatus"; export * from "./PurchaseOrderDeliveryAddress"; @@ -284,6 +279,7 @@ export * from "./PurchaseOrderResponse"; export * from "./PurchaseOrderStatusEnum"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; diff --git a/src/serialization/resources/ats/resources/index.ts b/src/serialization/resources/ats/resources/index.ts index ec2ec100..3f1419e8 100644 --- a/src/serialization/resources/ats/resources/index.ts +++ b/src/serialization/resources/ats/resources/index.ts @@ -20,7 +20,6 @@ export * as offers from "./offers"; export * from "./offers/types"; export * as scorecards from "./scorecards"; export * from "./scorecards/types"; -export * as selectiveSync from "./selectiveSync"; export * as forceResync from "./forceResync"; export * as webhookReceivers from "./webhookReceivers"; export * from "./activities/client/requests"; @@ -39,5 +38,4 @@ export * as linkToken from "./linkToken"; export * from "./linkToken/client/requests"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 1e8d8752..a3ea8be6 100644 --- a/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/ats/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -49,6 +49,10 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: core.serialization.string().optional(), + integrationSpecificConfig: core.serialization.property( + "integration_specific_config", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), }); export declare namespace EndUserDetailsRequest { @@ -66,5 +70,6 @@ export declare namespace EndUserDetailsRequest { serializers.ats.IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: string | null; + integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/ats/resources/selectiveSync/client/configurationsList.ts b/src/serialization/resources/ats/resources/selectiveSync/client/configurationsList.ts deleted file mode 100644 index 6db422dc..00000000 --- a/src/serialization/resources/ats/resources/selectiveSync/client/configurationsList.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.ats.selectiveSync.configurationsList.Response.Raw, - Merge.ats.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).ats.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.ats.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/ats/resources/selectiveSync/client/configurationsUpdate.ts b/src/serialization/resources/ats/resources/selectiveSync/client/configurationsUpdate.ts deleted file mode 100644 index d2c0a847..00000000 --- a/src/serialization/resources/ats/resources/selectiveSync/client/configurationsUpdate.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.ats.selectiveSync.configurationsUpdate.Response.Raw, - Merge.ats.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).ats.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.ats.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/ats/resources/selectiveSync/client/index.ts b/src/serialization/resources/ats/resources/selectiveSync/client/index.ts deleted file mode 100644 index b444d7ef..00000000 --- a/src/serialization/resources/ats/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as configurationsList from "./configurationsList"; -export * as configurationsUpdate from "./configurationsUpdate"; -export * from "./requests"; diff --git a/src/serialization/resources/ats/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/serialization/resources/ats/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index fb3377bc..00000000 --- a/src/serialization/resources/ats/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../.."; -import * as Merge from "../../../../../../../api"; -import * as core from "../../../../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationListRequest: core.serialization.Schema< - serializers.ats.LinkedAccountSelectiveSyncConfigurationListRequest.Raw, - Merge.ats.LinkedAccountSelectiveSyncConfigurationListRequest -> = core.serialization.object({ - syncConfigurations: core.serialization.property( - "sync_configurations", - core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../../..")).ats.LinkedAccountSelectiveSyncConfigurationRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationListRequest { - interface Raw { - sync_configurations: serializers.ats.LinkedAccountSelectiveSyncConfigurationRequest.Raw[]; - } -} diff --git a/src/serialization/resources/ats/resources/selectiveSync/client/requests/index.ts b/src/serialization/resources/ats/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 7ad0763a..00000000 --- a/src/serialization/resources/ats/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; diff --git a/src/serialization/resources/ats/resources/selectiveSync/index.ts b/src/serialization/resources/ats/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/serialization/resources/ats/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ats/types/ConditionSchema.ts b/src/serialization/resources/ats/types/ConditionSchema.ts deleted file mode 100644 index 97aed04c..00000000 --- a/src/serialization/resources/ats/types/ConditionSchema.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchema: core.serialization.ObjectSchema< - serializers.ats.ConditionSchema.Raw, - Merge.ats.ConditionSchema -> = core.serialization.object({ - id: core.serialization.string(), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), - conditionType: core.serialization.property( - "condition_type", - core.serialization.lazy(async () => (await import("../../..")).ats.ConditionSchemaConditionType) - ), - operators: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).ats.OperatorSchema) - ), -}); - -export declare namespace ConditionSchema { - interface Raw { - id: string; - common_model?: string | null; - native_name?: string | null; - field_name?: string | null; - is_unique?: boolean | null; - condition_type: serializers.ats.ConditionSchemaConditionType.Raw; - operators: serializers.ats.OperatorSchema.Raw[]; - } -} diff --git a/src/serialization/resources/ats/types/ConditionTypeEnum.ts b/src/serialization/resources/ats/types/ConditionTypeEnum.ts deleted file mode 100644 index 8048768e..00000000 --- a/src/serialization/resources/ats/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionTypeEnum: core.serialization.Schema< - serializers.ats.ConditionTypeEnum.Raw, - Merge.ats.ConditionTypeEnum -> = core.serialization.enum_(["BOOLEAN", "DATE", "DATE_TIME", "INTEGER", "FLOAT", "STRING", "LIST_OF_STRINGS"]); - -export declare namespace ConditionTypeEnum { - type Raw = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; -} diff --git a/src/serialization/resources/ats/types/EventTypeEnum.ts b/src/serialization/resources/ats/types/EventTypeEnum.ts index bf9edd67..0e73f8ac 100644 --- a/src/serialization/resources/ats/types/EventTypeEnum.ts +++ b/src/serialization/resources/ats/types/EventTypeEnum.ts @@ -42,6 +42,9 @@ export const EventTypeEnum: core.serialization.Schema = core.serialization.object({ - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - operator: core.serialization.string(), - value: core.serialization.unknown().optional(), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), -}); - -export declare namespace LinkedAccountCondition { - interface Raw { - condition_schema_id: string; - common_model?: string | null; - native_name?: string | null; - operator: string; - value?: unknown | null; - field_name?: string | null; - } -} diff --git a/src/serialization/resources/ats/types/LinkedAccountConditionRequest.ts b/src/serialization/resources/ats/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index 3df7b8d9..00000000 --- a/src/serialization/resources/ats/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountConditionRequest: core.serialization.ObjectSchema< - serializers.ats.LinkedAccountConditionRequest.Raw, - Merge.ats.LinkedAccountConditionRequest -> = core.serialization.object({ - id: core.serialization.string().optional(), - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - operator: core.serialization.string(), - value: core.serialization.unknown(), -}); - -export declare namespace LinkedAccountConditionRequest { - interface Raw { - id?: string | null; - condition_schema_id: string; - operator: string; - value?: unknown; - } -} diff --git a/src/serialization/resources/ats/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/serialization/resources/ats/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index c8ff73f0..00000000 --- a/src/serialization/resources/ats/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfiguration: core.serialization.ObjectSchema< - serializers.ats.LinkedAccountSelectiveSyncConfiguration.Raw, - Merge.ats.LinkedAccountSelectiveSyncConfiguration -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).ats.LinkedAccountCondition)) - .optional() - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfiguration { - interface Raw { - linked_account_conditions?: serializers.ats.LinkedAccountCondition.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/serialization/resources/ats/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 2e7e99ba..00000000 --- a/src/serialization/resources/ats/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationRequest: core.serialization.ObjectSchema< - serializers.ats.LinkedAccountSelectiveSyncConfigurationRequest.Raw, - Merge.ats.LinkedAccountSelectiveSyncConfigurationRequest -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).ats.LinkedAccountConditionRequest) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationRequest { - interface Raw { - linked_account_conditions: serializers.ats.LinkedAccountConditionRequest.Raw[]; - } -} diff --git a/src/serialization/resources/ats/types/OperatorSchema.ts b/src/serialization/resources/ats/types/OperatorSchema.ts deleted file mode 100644 index 6f5a7292..00000000 --- a/src/serialization/resources/ats/types/OperatorSchema.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const OperatorSchema: core.serialization.ObjectSchema< - serializers.ats.OperatorSchema.Raw, - Merge.ats.OperatorSchema -> = core.serialization.object({ - operator: core.serialization.string().optional(), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), -}); - -export declare namespace OperatorSchema { - interface Raw { - operator?: string | null; - is_unique?: boolean | null; - } -} diff --git a/src/serialization/resources/ats/types/PaginatedConditionSchemaList.ts b/src/serialization/resources/ats/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index 7d4857f8..00000000 --- a/src/serialization/resources/ats/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const PaginatedConditionSchemaList: core.serialization.ObjectSchema< - serializers.ats.PaginatedConditionSchemaList.Raw, - Merge.ats.PaginatedConditionSchemaList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).ats.ConditionSchema)) - .optional(), -}); - -export declare namespace PaginatedConditionSchemaList { - interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.ats.ConditionSchema.Raw[] | null; - } -} diff --git a/src/serialization/resources/ats/types/RemoteFieldApi.ts b/src/serialization/resources/ats/types/RemoteFieldApi.ts index b36ec83e..e0912439 100644 --- a/src/serialization/resources/ats/types/RemoteFieldApi.ts +++ b/src/serialization/resources/ats/types/RemoteFieldApi.ts @@ -21,6 +21,7 @@ export const RemoteFieldApi: core.serialization.ObjectSchema< "advanced_metadata", core.serialization.lazyObject(async () => (await import("../../..")).ats.AdvancedMetadata).optional() ), + coverage: core.serialization.lazy(async () => (await import("../../..")).ats.RemoteFieldApiCoverage).optional(), }); export declare namespace RemoteFieldApi { @@ -30,5 +31,6 @@ export declare namespace RemoteFieldApi { remote_endpoint_info: serializers.ats.RemoteEndpointInfo.Raw; example_values: unknown[]; advanced_metadata?: serializers.ats.AdvancedMetadata.Raw | null; + coverage?: serializers.ats.RemoteFieldApiCoverage.Raw | null; } } diff --git a/src/serialization/resources/ats/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/ats/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..dc45d23b --- /dev/null +++ b/src/serialization/resources/ats/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const RemoteFieldApiCoverage: core.serialization.Schema< + serializers.ats.RemoteFieldApiCoverage.Raw, + Merge.ats.RemoteFieldApiCoverage +> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); + +export declare namespace RemoteFieldApiCoverage { + type Raw = number | number; +} diff --git a/src/serialization/resources/ats/types/index.ts b/src/serialization/resources/ats/types/index.ts index 9b6bc2d9..c9695633 100644 --- a/src/serialization/resources/ats/types/index.ts +++ b/src/serialization/resources/ats/types/index.ts @@ -53,9 +53,6 @@ export * from "./CategoriesEnum"; export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; @@ -107,10 +104,6 @@ export * from "./JobPostingStatusEnum"; export * from "./JobStatusEnum"; export * from "./JobTypeEnum"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -125,7 +118,6 @@ export * from "./OfferStatus"; export * from "./Offer"; export * from "./OfferStatusEnum"; export * from "./Office"; -export * from "./OperatorSchema"; export * from "./OverallRecommendationEnum"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedActivityList"; @@ -133,7 +125,6 @@ export * from "./PaginatedApplicationList"; export * from "./PaginatedAttachmentList"; export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedCandidateList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedDepartmentList"; export * from "./PaginatedEeocList"; export * from "./PaginatedIssueList"; @@ -160,6 +151,7 @@ export * from "./ReasonEnum"; export * from "./RejectReason"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; diff --git a/src/serialization/resources/crm/resources/index.ts b/src/serialization/resources/crm/resources/index.ts index 83df4470..8e1094fa 100644 --- a/src/serialization/resources/crm/resources/index.ts +++ b/src/serialization/resources/crm/resources/index.ts @@ -14,7 +14,6 @@ export * as opportunities from "./opportunities"; export * from "./opportunities/types"; export * as tasks from "./tasks"; export * from "./tasks/types"; -export * as selectiveSync from "./selectiveSync"; export * as forceResync from "./forceResync"; export * as webhookReceivers from "./webhookReceivers"; export * as accounts from "./accounts"; @@ -38,6 +37,5 @@ export * from "./notes/client/requests"; export * from "./opportunities/client/requests"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./tasks/client/requests"; export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 52c83664..30b511de 100644 --- a/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/crm/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -49,6 +49,10 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: core.serialization.string().optional(), + integrationSpecificConfig: core.serialization.property( + "integration_specific_config", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), }); export declare namespace EndUserDetailsRequest { @@ -66,5 +70,6 @@ export declare namespace EndUserDetailsRequest { serializers.crm.IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: string | null; + integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/crm/resources/selectiveSync/client/configurationsList.ts b/src/serialization/resources/crm/resources/selectiveSync/client/configurationsList.ts deleted file mode 100644 index 8257d96e..00000000 --- a/src/serialization/resources/crm/resources/selectiveSync/client/configurationsList.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.crm.selectiveSync.configurationsList.Response.Raw, - Merge.crm.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).crm.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.crm.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/crm/resources/selectiveSync/client/configurationsUpdate.ts b/src/serialization/resources/crm/resources/selectiveSync/client/configurationsUpdate.ts deleted file mode 100644 index 92dee241..00000000 --- a/src/serialization/resources/crm/resources/selectiveSync/client/configurationsUpdate.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.crm.selectiveSync.configurationsUpdate.Response.Raw, - Merge.crm.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).crm.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.crm.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/crm/resources/selectiveSync/client/index.ts b/src/serialization/resources/crm/resources/selectiveSync/client/index.ts deleted file mode 100644 index b444d7ef..00000000 --- a/src/serialization/resources/crm/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as configurationsList from "./configurationsList"; -export * as configurationsUpdate from "./configurationsUpdate"; -export * from "./requests"; diff --git a/src/serialization/resources/crm/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/serialization/resources/crm/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 911c30c5..00000000 --- a/src/serialization/resources/crm/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../.."; -import * as Merge from "../../../../../../../api"; -import * as core from "../../../../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationListRequest: core.serialization.Schema< - serializers.crm.LinkedAccountSelectiveSyncConfigurationListRequest.Raw, - Merge.crm.LinkedAccountSelectiveSyncConfigurationListRequest -> = core.serialization.object({ - syncConfigurations: core.serialization.property( - "sync_configurations", - core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../../..")).crm.LinkedAccountSelectiveSyncConfigurationRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationListRequest { - interface Raw { - sync_configurations: serializers.crm.LinkedAccountSelectiveSyncConfigurationRequest.Raw[]; - } -} diff --git a/src/serialization/resources/crm/resources/selectiveSync/client/requests/index.ts b/src/serialization/resources/crm/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 7ad0763a..00000000 --- a/src/serialization/resources/crm/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; diff --git a/src/serialization/resources/crm/resources/selectiveSync/index.ts b/src/serialization/resources/crm/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/serialization/resources/crm/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/crm/types/AccountRequest.ts b/src/serialization/resources/crm/types/AccountRequest.ts index 1b3cbca4..f967f4ff 100644 --- a/src/serialization/resources/crm/types/AccountRequest.ts +++ b/src/serialization/resources/crm/types/AccountRequest.ts @@ -16,6 +16,9 @@ export const AccountRequest: core.serialization.ObjectSchema< industry: core.serialization.string().optional(), website: core.serialization.string().optional(), numberOfEmployees: core.serialization.property("number_of_employees", core.serialization.number().optional()), + addresses: core.serialization + .list(core.serialization.lazyObject(async () => (await import("../../..")).crm.AddressRequest)) + .optional(), lastActivityAt: core.serialization.property("last_activity_at", core.serialization.date().optional()), integrationParams: core.serialization.property( "integration_params", @@ -41,6 +44,7 @@ export declare namespace AccountRequest { industry?: string | null; website?: string | null; number_of_employees?: number | null; + addresses?: serializers.crm.AddressRequest.Raw[] | null; last_activity_at?: string | null; integration_params?: Record | null; linked_account_params?: Record | null; diff --git a/src/serialization/resources/crm/types/ConditionSchema.ts b/src/serialization/resources/crm/types/ConditionSchema.ts deleted file mode 100644 index d5e4e165..00000000 --- a/src/serialization/resources/crm/types/ConditionSchema.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchema: core.serialization.ObjectSchema< - serializers.crm.ConditionSchema.Raw, - Merge.crm.ConditionSchema -> = core.serialization.object({ - id: core.serialization.string(), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), - conditionType: core.serialization.property( - "condition_type", - core.serialization.lazy(async () => (await import("../../..")).crm.ConditionSchemaConditionType) - ), - operators: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).crm.OperatorSchema) - ), -}); - -export declare namespace ConditionSchema { - interface Raw { - id: string; - common_model?: string | null; - native_name?: string | null; - field_name?: string | null; - is_unique?: boolean | null; - condition_type: serializers.crm.ConditionSchemaConditionType.Raw; - operators: serializers.crm.OperatorSchema.Raw[]; - } -} diff --git a/src/serialization/resources/crm/types/ConditionTypeEnum.ts b/src/serialization/resources/crm/types/ConditionTypeEnum.ts deleted file mode 100644 index 6a55ff42..00000000 --- a/src/serialization/resources/crm/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionTypeEnum: core.serialization.Schema< - serializers.crm.ConditionTypeEnum.Raw, - Merge.crm.ConditionTypeEnum -> = core.serialization.enum_(["BOOLEAN", "DATE", "DATE_TIME", "INTEGER", "FLOAT", "STRING", "LIST_OF_STRINGS"]); - -export declare namespace ConditionTypeEnum { - type Raw = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; -} diff --git a/src/serialization/resources/crm/types/EventTypeEnum.ts b/src/serialization/resources/crm/types/EventTypeEnum.ts index d0a5a07a..ccbca004 100644 --- a/src/serialization/resources/crm/types/EventTypeEnum.ts +++ b/src/serialization/resources/crm/types/EventTypeEnum.ts @@ -42,6 +42,9 @@ export const EventTypeEnum: core.serialization.Schema = core.serialization.object({ - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - operator: core.serialization.string(), - value: core.serialization.unknown().optional(), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), -}); - -export declare namespace LinkedAccountCondition { - interface Raw { - condition_schema_id: string; - common_model?: string | null; - native_name?: string | null; - operator: string; - value?: unknown | null; - field_name?: string | null; - } -} diff --git a/src/serialization/resources/crm/types/LinkedAccountConditionRequest.ts b/src/serialization/resources/crm/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index 08c2efb7..00000000 --- a/src/serialization/resources/crm/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountConditionRequest: core.serialization.ObjectSchema< - serializers.crm.LinkedAccountConditionRequest.Raw, - Merge.crm.LinkedAccountConditionRequest -> = core.serialization.object({ - id: core.serialization.string().optional(), - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - operator: core.serialization.string(), - value: core.serialization.unknown(), -}); - -export declare namespace LinkedAccountConditionRequest { - interface Raw { - id?: string | null; - condition_schema_id: string; - operator: string; - value?: unknown; - } -} diff --git a/src/serialization/resources/crm/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/serialization/resources/crm/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index af21f570..00000000 --- a/src/serialization/resources/crm/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfiguration: core.serialization.ObjectSchema< - serializers.crm.LinkedAccountSelectiveSyncConfiguration.Raw, - Merge.crm.LinkedAccountSelectiveSyncConfiguration -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).crm.LinkedAccountCondition)) - .optional() - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfiguration { - interface Raw { - linked_account_conditions?: serializers.crm.LinkedAccountCondition.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/serialization/resources/crm/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index ff8b3d6c..00000000 --- a/src/serialization/resources/crm/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationRequest: core.serialization.ObjectSchema< - serializers.crm.LinkedAccountSelectiveSyncConfigurationRequest.Raw, - Merge.crm.LinkedAccountSelectiveSyncConfigurationRequest -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).crm.LinkedAccountConditionRequest) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationRequest { - interface Raw { - linked_account_conditions: serializers.crm.LinkedAccountConditionRequest.Raw[]; - } -} diff --git a/src/serialization/resources/crm/types/OperatorSchema.ts b/src/serialization/resources/crm/types/OperatorSchema.ts deleted file mode 100644 index 3b8d447e..00000000 --- a/src/serialization/resources/crm/types/OperatorSchema.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const OperatorSchema: core.serialization.ObjectSchema< - serializers.crm.OperatorSchema.Raw, - Merge.crm.OperatorSchema -> = core.serialization.object({ - operator: core.serialization.string().optional(), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), -}); - -export declare namespace OperatorSchema { - interface Raw { - operator?: string | null; - is_unique?: boolean | null; - } -} diff --git a/src/serialization/resources/crm/types/PaginatedConditionSchemaList.ts b/src/serialization/resources/crm/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index b93cdc92..00000000 --- a/src/serialization/resources/crm/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const PaginatedConditionSchemaList: core.serialization.ObjectSchema< - serializers.crm.PaginatedConditionSchemaList.Raw, - Merge.crm.PaginatedConditionSchemaList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).crm.ConditionSchema)) - .optional(), -}); - -export declare namespace PaginatedConditionSchemaList { - interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.crm.ConditionSchema.Raw[] | null; - } -} diff --git a/src/serialization/resources/crm/types/PatchedAccountRequest.ts b/src/serialization/resources/crm/types/PatchedAccountRequest.ts index b093048b..99271d24 100644 --- a/src/serialization/resources/crm/types/PatchedAccountRequest.ts +++ b/src/serialization/resources/crm/types/PatchedAccountRequest.ts @@ -16,6 +16,9 @@ export const PatchedAccountRequest: core.serialization.ObjectSchema< industry: core.serialization.string().optional(), website: core.serialization.string().optional(), numberOfEmployees: core.serialization.property("number_of_employees", core.serialization.number().optional()), + addresses: core.serialization + .list(core.serialization.lazyObject(async () => (await import("../../..")).crm.AddressRequest)) + .optional(), lastActivityAt: core.serialization.property("last_activity_at", core.serialization.date().optional()), integrationParams: core.serialization.property( "integration_params", @@ -41,6 +44,7 @@ export declare namespace PatchedAccountRequest { industry?: string | null; website?: string | null; number_of_employees?: number | null; + addresses?: serializers.crm.AddressRequest.Raw[] | null; last_activity_at?: string | null; integration_params?: Record | null; linked_account_params?: Record | null; diff --git a/src/serialization/resources/crm/types/RemoteFieldApi.ts b/src/serialization/resources/crm/types/RemoteFieldApi.ts index 8ec9ed95..a05bd26d 100644 --- a/src/serialization/resources/crm/types/RemoteFieldApi.ts +++ b/src/serialization/resources/crm/types/RemoteFieldApi.ts @@ -21,6 +21,7 @@ export const RemoteFieldApi: core.serialization.ObjectSchema< "advanced_metadata", core.serialization.lazyObject(async () => (await import("../../..")).crm.AdvancedMetadata).optional() ), + coverage: core.serialization.lazy(async () => (await import("../../..")).crm.RemoteFieldApiCoverage).optional(), }); export declare namespace RemoteFieldApi { @@ -30,5 +31,6 @@ export declare namespace RemoteFieldApi { remote_endpoint_info: serializers.crm.RemoteEndpointInfo.Raw; example_values: unknown[]; advanced_metadata?: serializers.crm.AdvancedMetadata.Raw | null; + coverage?: serializers.crm.RemoteFieldApiCoverage.Raw | null; } } diff --git a/src/serialization/resources/crm/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/crm/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..b96bb12f --- /dev/null +++ b/src/serialization/resources/crm/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const RemoteFieldApiCoverage: core.serialization.Schema< + serializers.crm.RemoteFieldApiCoverage.Raw, + Merge.crm.RemoteFieldApiCoverage +> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); + +export declare namespace RemoteFieldApiCoverage { + type Raw = number | number; +} diff --git a/src/serialization/resources/crm/types/index.ts b/src/serialization/resources/crm/types/index.ts index 336a12cd..86f9e3c9 100644 --- a/src/serialization/resources/crm/types/index.ts +++ b/src/serialization/resources/crm/types/index.ts @@ -37,9 +37,6 @@ export * from "./CategoriesEnum"; export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./ContactAccount"; export * from "./ContactOwner"; export * from "./Contact"; @@ -106,10 +103,6 @@ export * from "./LeadRequestConvertedAccount"; export * from "./LeadRequest"; export * from "./LeadResponse"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -130,7 +123,6 @@ export * from "./NoteRequestOpportunity"; export * from "./NoteRequest"; export * from "./NoteResponse"; export * from "./ObjectClassDescriptionRequest"; -export * from "./OperatorSchema"; export * from "./OpportunityOwner"; export * from "./OpportunityAccount"; export * from "./OpportunityStage"; @@ -149,7 +141,6 @@ export * from "./PaginatedAccountList"; export * from "./PaginatedAssociationList"; export * from "./PaginatedAssociationTypeList"; export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedContactList"; export * from "./PaginatedCustomObjectClassList"; export * from "./PaginatedCustomObjectList"; @@ -180,6 +171,7 @@ export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteFieldRemoteFieldClass"; export * from "./RemoteField"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClassFieldType"; diff --git a/src/serialization/resources/filestorage/resources/index.ts b/src/serialization/resources/filestorage/resources/index.ts index 787e6411..ad3a1069 100644 --- a/src/serialization/resources/filestorage/resources/index.ts +++ b/src/serialization/resources/filestorage/resources/index.ts @@ -6,7 +6,6 @@ export * as issues from "./issues"; export * from "./issues/types"; export * as linkedAccounts from "./linkedAccounts"; export * from "./linkedAccounts/types"; -export * as selectiveSync from "./selectiveSync"; export * as forceResync from "./forceResync"; export * as webhookReceivers from "./webhookReceivers"; export * as scopes from "./scopes"; @@ -21,5 +20,4 @@ export * as linkToken from "./linkToken"; export * from "./linkToken/client/requests"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 3f4174f9..15420073 100644 --- a/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/filestorage/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -50,6 +50,10 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: core.serialization.string().optional(), + integrationSpecificConfig: core.serialization.property( + "integration_specific_config", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), }); export declare namespace EndUserDetailsRequest { @@ -67,5 +71,6 @@ export declare namespace EndUserDetailsRequest { serializers.filestorage.IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: string | null; + integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/filestorage/resources/selectiveSync/client/configurationsList.ts b/src/serialization/resources/filestorage/resources/selectiveSync/client/configurationsList.ts deleted file mode 100644 index fc2ff9e4..00000000 --- a/src/serialization/resources/filestorage/resources/selectiveSync/client/configurationsList.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.filestorage.selectiveSync.configurationsList.Response.Raw, - Merge.filestorage.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).filestorage.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.filestorage.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/filestorage/resources/selectiveSync/client/configurationsUpdate.ts b/src/serialization/resources/filestorage/resources/selectiveSync/client/configurationsUpdate.ts deleted file mode 100644 index b3a2470d..00000000 --- a/src/serialization/resources/filestorage/resources/selectiveSync/client/configurationsUpdate.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.filestorage.selectiveSync.configurationsUpdate.Response.Raw, - Merge.filestorage.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).filestorage.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.filestorage.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/filestorage/resources/selectiveSync/client/index.ts b/src/serialization/resources/filestorage/resources/selectiveSync/client/index.ts deleted file mode 100644 index b444d7ef..00000000 --- a/src/serialization/resources/filestorage/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as configurationsList from "./configurationsList"; -export * as configurationsUpdate from "./configurationsUpdate"; -export * from "./requests"; diff --git a/src/serialization/resources/filestorage/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/serialization/resources/filestorage/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 898a60cd..00000000 --- a/src/serialization/resources/filestorage/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../.."; -import * as Merge from "../../../../../../../api"; -import * as core from "../../../../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationListRequest: core.serialization.Schema< - serializers.filestorage.LinkedAccountSelectiveSyncConfigurationListRequest.Raw, - Merge.filestorage.LinkedAccountSelectiveSyncConfigurationListRequest -> = core.serialization.object({ - syncConfigurations: core.serialization.property( - "sync_configurations", - core.serialization.list( - core.serialization.lazyObject( - async () => - (await import("../../../../../..")).filestorage.LinkedAccountSelectiveSyncConfigurationRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationListRequest { - interface Raw { - sync_configurations: serializers.filestorage.LinkedAccountSelectiveSyncConfigurationRequest.Raw[]; - } -} diff --git a/src/serialization/resources/filestorage/resources/selectiveSync/client/requests/index.ts b/src/serialization/resources/filestorage/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 7ad0763a..00000000 --- a/src/serialization/resources/filestorage/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; diff --git a/src/serialization/resources/filestorage/resources/selectiveSync/index.ts b/src/serialization/resources/filestorage/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/serialization/resources/filestorage/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/filestorage/types/ConditionSchema.ts b/src/serialization/resources/filestorage/types/ConditionSchema.ts deleted file mode 100644 index 18f4689c..00000000 --- a/src/serialization/resources/filestorage/types/ConditionSchema.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchema: core.serialization.ObjectSchema< - serializers.filestorage.ConditionSchema.Raw, - Merge.filestorage.ConditionSchema -> = core.serialization.object({ - id: core.serialization.string(), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), - conditionType: core.serialization.property( - "condition_type", - core.serialization.lazy(async () => (await import("../../..")).filestorage.ConditionSchemaConditionType) - ), - operators: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).filestorage.OperatorSchema) - ), -}); - -export declare namespace ConditionSchema { - interface Raw { - id: string; - common_model?: string | null; - native_name?: string | null; - field_name?: string | null; - is_unique?: boolean | null; - condition_type: serializers.filestorage.ConditionSchemaConditionType.Raw; - operators: serializers.filestorage.OperatorSchema.Raw[]; - } -} diff --git a/src/serialization/resources/filestorage/types/ConditionSchemaConditionType.ts b/src/serialization/resources/filestorage/types/ConditionSchemaConditionType.ts deleted file mode 100644 index 07064726..00000000 --- a/src/serialization/resources/filestorage/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchemaConditionType: core.serialization.Schema< - serializers.filestorage.ConditionSchemaConditionType.Raw, - Merge.filestorage.ConditionSchemaConditionType -> = core.serialization.undiscriminatedUnion([ - core.serialization.lazy(async () => (await import("../../..")).filestorage.ConditionTypeEnum), - core.serialization.string(), -]); - -export declare namespace ConditionSchemaConditionType { - type Raw = serializers.filestorage.ConditionTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/filestorage/types/ConditionTypeEnum.ts b/src/serialization/resources/filestorage/types/ConditionTypeEnum.ts deleted file mode 100644 index b4a1d887..00000000 --- a/src/serialization/resources/filestorage/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionTypeEnum: core.serialization.Schema< - serializers.filestorage.ConditionTypeEnum.Raw, - Merge.filestorage.ConditionTypeEnum -> = core.serialization.enum_(["BOOLEAN", "DATE", "DATE_TIME", "INTEGER", "FLOAT", "STRING", "LIST_OF_STRINGS"]); - -export declare namespace ConditionTypeEnum { - type Raw = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; -} diff --git a/src/serialization/resources/filestorage/types/EventTypeEnum.ts b/src/serialization/resources/filestorage/types/EventTypeEnum.ts index cdbfaaa4..6c46bc3f 100644 --- a/src/serialization/resources/filestorage/types/EventTypeEnum.ts +++ b/src/serialization/resources/filestorage/types/EventTypeEnum.ts @@ -44,6 +44,9 @@ export const EventTypeEnum: core.serialization.Schema< "FORCED_LINKED_ACCOUNT_RESYNC", "MUTED_ISSUE", "GENERATED_MAGIC_LINK", + "ENABLED_MERGE_WEBHOOK", + "DISABLED_MERGE_WEBHOOK", + "MERGE_WEBHOOK_TARGET_CHANGED", ]); export declare namespace EventTypeEnum { @@ -81,5 +84,8 @@ export declare namespace EventTypeEnum { | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; } diff --git a/src/serialization/resources/filestorage/types/LinkedAccountCondition.ts b/src/serialization/resources/filestorage/types/LinkedAccountCondition.ts deleted file mode 100644 index 1f14b0b9..00000000 --- a/src/serialization/resources/filestorage/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountCondition: core.serialization.ObjectSchema< - serializers.filestorage.LinkedAccountCondition.Raw, - Merge.filestorage.LinkedAccountCondition -> = core.serialization.object({ - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - operator: core.serialization.string(), - value: core.serialization.unknown().optional(), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), -}); - -export declare namespace LinkedAccountCondition { - interface Raw { - condition_schema_id: string; - common_model?: string | null; - native_name?: string | null; - operator: string; - value?: unknown | null; - field_name?: string | null; - } -} diff --git a/src/serialization/resources/filestorage/types/LinkedAccountConditionRequest.ts b/src/serialization/resources/filestorage/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index b957ed80..00000000 --- a/src/serialization/resources/filestorage/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountConditionRequest: core.serialization.ObjectSchema< - serializers.filestorage.LinkedAccountConditionRequest.Raw, - Merge.filestorage.LinkedAccountConditionRequest -> = core.serialization.object({ - id: core.serialization.string().optional(), - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - operator: core.serialization.string(), - value: core.serialization.unknown(), -}); - -export declare namespace LinkedAccountConditionRequest { - interface Raw { - id?: string | null; - condition_schema_id: string; - operator: string; - value?: unknown; - } -} diff --git a/src/serialization/resources/filestorage/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/serialization/resources/filestorage/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index eceba8da..00000000 --- a/src/serialization/resources/filestorage/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfiguration: core.serialization.ObjectSchema< - serializers.filestorage.LinkedAccountSelectiveSyncConfiguration.Raw, - Merge.filestorage.LinkedAccountSelectiveSyncConfiguration -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization - .list( - core.serialization.lazyObject(async () => (await import("../../..")).filestorage.LinkedAccountCondition) - ) - .optional() - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfiguration { - interface Raw { - linked_account_conditions?: serializers.filestorage.LinkedAccountCondition.Raw[] | null; - } -} diff --git a/src/serialization/resources/filestorage/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/serialization/resources/filestorage/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 19ed07b6..00000000 --- a/src/serialization/resources/filestorage/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationRequest: core.serialization.ObjectSchema< - serializers.filestorage.LinkedAccountSelectiveSyncConfigurationRequest.Raw, - Merge.filestorage.LinkedAccountSelectiveSyncConfigurationRequest -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../..")).filestorage.LinkedAccountConditionRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationRequest { - interface Raw { - linked_account_conditions: serializers.filestorage.LinkedAccountConditionRequest.Raw[]; - } -} diff --git a/src/serialization/resources/filestorage/types/OperatorSchema.ts b/src/serialization/resources/filestorage/types/OperatorSchema.ts deleted file mode 100644 index 33722216..00000000 --- a/src/serialization/resources/filestorage/types/OperatorSchema.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const OperatorSchema: core.serialization.ObjectSchema< - serializers.filestorage.OperatorSchema.Raw, - Merge.filestorage.OperatorSchema -> = core.serialization.object({ - operator: core.serialization.string().optional(), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), -}); - -export declare namespace OperatorSchema { - interface Raw { - operator?: string | null; - is_unique?: boolean | null; - } -} diff --git a/src/serialization/resources/filestorage/types/PaginatedConditionSchemaList.ts b/src/serialization/resources/filestorage/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index 6420d630..00000000 --- a/src/serialization/resources/filestorage/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const PaginatedConditionSchemaList: core.serialization.ObjectSchema< - serializers.filestorage.PaginatedConditionSchemaList.Raw, - Merge.filestorage.PaginatedConditionSchemaList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).filestorage.ConditionSchema)) - .optional(), -}); - -export declare namespace PaginatedConditionSchemaList { - interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.filestorage.ConditionSchema.Raw[] | null; - } -} diff --git a/src/serialization/resources/filestorage/types/RemoteFieldApi.ts b/src/serialization/resources/filestorage/types/RemoteFieldApi.ts index a197b012..014b0ce0 100644 --- a/src/serialization/resources/filestorage/types/RemoteFieldApi.ts +++ b/src/serialization/resources/filestorage/types/RemoteFieldApi.ts @@ -21,6 +21,9 @@ export const RemoteFieldApi: core.serialization.ObjectSchema< "advanced_metadata", core.serialization.lazyObject(async () => (await import("../../..")).filestorage.AdvancedMetadata).optional() ), + coverage: core.serialization + .lazy(async () => (await import("../../..")).filestorage.RemoteFieldApiCoverage) + .optional(), }); export declare namespace RemoteFieldApi { @@ -30,5 +33,6 @@ export declare namespace RemoteFieldApi { remote_endpoint_info: serializers.filestorage.RemoteEndpointInfo.Raw; example_values: unknown[]; advanced_metadata?: serializers.filestorage.AdvancedMetadata.Raw | null; + coverage?: serializers.filestorage.RemoteFieldApiCoverage.Raw | null; } } diff --git a/src/serialization/resources/filestorage/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/filestorage/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..bb5e1066 --- /dev/null +++ b/src/serialization/resources/filestorage/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const RemoteFieldApiCoverage: core.serialization.Schema< + serializers.filestorage.RemoteFieldApiCoverage.Raw, + Merge.filestorage.RemoteFieldApiCoverage +> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); + +export declare namespace RemoteFieldApiCoverage { + type Raw = number | number; +} diff --git a/src/serialization/resources/filestorage/types/index.ts b/src/serialization/resources/filestorage/types/index.ts index 8b5425ed..752a4b4b 100644 --- a/src/serialization/resources/filestorage/types/index.ts +++ b/src/serialization/resources/filestorage/types/index.ts @@ -14,9 +14,6 @@ export * from "./CategoriesEnum"; export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; @@ -64,10 +61,6 @@ export * from "./IssueStatus"; export * from "./Issue"; export * from "./IssueStatusEnum"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -76,10 +69,8 @@ export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequestEncoding"; export * from "./MultipartFormFieldRequest"; -export * from "./OperatorSchema"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAuditLogEventList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedDriveList"; export * from "./PaginatedFileList"; export * from "./PaginatedFolderList"; @@ -98,6 +89,7 @@ export * from "./PermissionRequestType"; export * from "./PermissionRequestRolesItem"; export * from "./PermissionRequest"; export * from "./RemoteEndpointInfo"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; diff --git a/src/serialization/resources/hris/resources/index.ts b/src/serialization/resources/hris/resources/index.ts index 82e3ab43..e71eae0d 100644 --- a/src/serialization/resources/hris/resources/index.ts +++ b/src/serialization/resources/hris/resources/index.ts @@ -20,7 +20,6 @@ export * as timeOffBalances from "./timeOffBalances"; export * from "./timeOffBalances/types"; export * as timesheetEntries from "./timesheetEntries"; export * from "./timesheetEntries/types"; -export * as selectiveSync from "./selectiveSync"; export * as forceResync from "./forceResync"; export * as webhookReceivers from "./webhookReceivers"; export * as scopes from "./scopes"; @@ -34,7 +33,6 @@ export * as linkToken from "./linkToken"; export * from "./linkToken/client/requests"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./timeOff/client/requests"; export * from "./timesheetEntries/client/requests"; export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts index 16f9b23d..a9029530 100644 --- a/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/hris/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -49,6 +49,10 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: core.serialization.string().optional(), + integrationSpecificConfig: core.serialization.property( + "integration_specific_config", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), }); export declare namespace EndUserDetailsRequest { @@ -66,5 +70,6 @@ export declare namespace EndUserDetailsRequest { serializers.hris.IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: string | null; + integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/hris/resources/selectiveSync/client/configurationsList.ts b/src/serialization/resources/hris/resources/selectiveSync/client/configurationsList.ts deleted file mode 100644 index 34f9c67d..00000000 --- a/src/serialization/resources/hris/resources/selectiveSync/client/configurationsList.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.hris.selectiveSync.configurationsList.Response.Raw, - Merge.hris.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).hris.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.hris.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/hris/resources/selectiveSync/client/configurationsUpdate.ts b/src/serialization/resources/hris/resources/selectiveSync/client/configurationsUpdate.ts deleted file mode 100644 index db24061d..00000000 --- a/src/serialization/resources/hris/resources/selectiveSync/client/configurationsUpdate.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.hris.selectiveSync.configurationsUpdate.Response.Raw, - Merge.hris.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).hris.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.hris.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/hris/resources/selectiveSync/client/index.ts b/src/serialization/resources/hris/resources/selectiveSync/client/index.ts deleted file mode 100644 index b444d7ef..00000000 --- a/src/serialization/resources/hris/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as configurationsList from "./configurationsList"; -export * as configurationsUpdate from "./configurationsUpdate"; -export * from "./requests"; diff --git a/src/serialization/resources/hris/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/serialization/resources/hris/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 9f44ba6e..00000000 --- a/src/serialization/resources/hris/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../.."; -import * as Merge from "../../../../../../../api"; -import * as core from "../../../../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationListRequest: core.serialization.Schema< - serializers.hris.LinkedAccountSelectiveSyncConfigurationListRequest.Raw, - Merge.hris.LinkedAccountSelectiveSyncConfigurationListRequest -> = core.serialization.object({ - syncConfigurations: core.serialization.property( - "sync_configurations", - core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../../..")).hris.LinkedAccountSelectiveSyncConfigurationRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationListRequest { - interface Raw { - sync_configurations: serializers.hris.LinkedAccountSelectiveSyncConfigurationRequest.Raw[]; - } -} diff --git a/src/serialization/resources/hris/resources/selectiveSync/client/requests/index.ts b/src/serialization/resources/hris/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 7ad0763a..00000000 --- a/src/serialization/resources/hris/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; diff --git a/src/serialization/resources/hris/resources/selectiveSync/index.ts b/src/serialization/resources/hris/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/serialization/resources/hris/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/hris/types/ConditionSchema.ts b/src/serialization/resources/hris/types/ConditionSchema.ts deleted file mode 100644 index f3ec0b25..00000000 --- a/src/serialization/resources/hris/types/ConditionSchema.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchema: core.serialization.ObjectSchema< - serializers.hris.ConditionSchema.Raw, - Merge.hris.ConditionSchema -> = core.serialization.object({ - id: core.serialization.string(), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), - conditionType: core.serialization.property( - "condition_type", - core.serialization.lazy(async () => (await import("../../..")).hris.ConditionSchemaConditionType) - ), - operators: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).hris.OperatorSchema) - ), -}); - -export declare namespace ConditionSchema { - interface Raw { - id: string; - common_model?: string | null; - native_name?: string | null; - field_name?: string | null; - is_unique?: boolean | null; - condition_type: serializers.hris.ConditionSchemaConditionType.Raw; - operators: serializers.hris.OperatorSchema.Raw[]; - } -} diff --git a/src/serialization/resources/hris/types/ConditionTypeEnum.ts b/src/serialization/resources/hris/types/ConditionTypeEnum.ts deleted file mode 100644 index a467fd79..00000000 --- a/src/serialization/resources/hris/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionTypeEnum: core.serialization.Schema< - serializers.hris.ConditionTypeEnum.Raw, - Merge.hris.ConditionTypeEnum -> = core.serialization.enum_(["BOOLEAN", "DATE", "DATE_TIME", "INTEGER", "FLOAT", "STRING", "LIST_OF_STRINGS"]); - -export declare namespace ConditionTypeEnum { - type Raw = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; -} diff --git a/src/serialization/resources/hris/types/EventTypeEnum.ts b/src/serialization/resources/hris/types/EventTypeEnum.ts index ae2e798a..ef89916b 100644 --- a/src/serialization/resources/hris/types/EventTypeEnum.ts +++ b/src/serialization/resources/hris/types/EventTypeEnum.ts @@ -42,6 +42,9 @@ export const EventTypeEnum: core.serialization.Schema (await import("../../..")).hris.GroupType).optional(), remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()), + isCommonlyUsedAsTeam: core.serialization.property( + "is_commonly_used_as_team", + core.serialization.boolean().optional() + ), fieldMappings: core.serialization.property( "field_mappings", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() @@ -38,6 +42,7 @@ export declare namespace Group { name?: string | null; type?: serializers.hris.GroupType.Raw | null; remote_was_deleted?: boolean | null; + is_commonly_used_as_team?: boolean | null; field_mappings?: Record | null; remote_data?: serializers.hris.RemoteData.Raw[] | null; } diff --git a/src/serialization/resources/hris/types/LinkedAccountCondition.ts b/src/serialization/resources/hris/types/LinkedAccountCondition.ts deleted file mode 100644 index ed568260..00000000 --- a/src/serialization/resources/hris/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountCondition: core.serialization.ObjectSchema< - serializers.hris.LinkedAccountCondition.Raw, - Merge.hris.LinkedAccountCondition -> = core.serialization.object({ - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - operator: core.serialization.string(), - value: core.serialization.unknown().optional(), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), -}); - -export declare namespace LinkedAccountCondition { - interface Raw { - condition_schema_id: string; - common_model?: string | null; - native_name?: string | null; - operator: string; - value?: unknown | null; - field_name?: string | null; - } -} diff --git a/src/serialization/resources/hris/types/LinkedAccountConditionRequest.ts b/src/serialization/resources/hris/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index bea2e6f8..00000000 --- a/src/serialization/resources/hris/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountConditionRequest: core.serialization.ObjectSchema< - serializers.hris.LinkedAccountConditionRequest.Raw, - Merge.hris.LinkedAccountConditionRequest -> = core.serialization.object({ - id: core.serialization.string().optional(), - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - operator: core.serialization.string(), - value: core.serialization.unknown(), -}); - -export declare namespace LinkedAccountConditionRequest { - interface Raw { - id?: string | null; - condition_schema_id: string; - operator: string; - value?: unknown; - } -} diff --git a/src/serialization/resources/hris/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/serialization/resources/hris/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index 6d62eb29..00000000 --- a/src/serialization/resources/hris/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfiguration: core.serialization.ObjectSchema< - serializers.hris.LinkedAccountSelectiveSyncConfiguration.Raw, - Merge.hris.LinkedAccountSelectiveSyncConfiguration -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).hris.LinkedAccountCondition)) - .optional() - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfiguration { - interface Raw { - linked_account_conditions?: serializers.hris.LinkedAccountCondition.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/serialization/resources/hris/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 00bd63ad..00000000 --- a/src/serialization/resources/hris/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationRequest: core.serialization.ObjectSchema< - serializers.hris.LinkedAccountSelectiveSyncConfigurationRequest.Raw, - Merge.hris.LinkedAccountSelectiveSyncConfigurationRequest -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).hris.LinkedAccountConditionRequest) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationRequest { - interface Raw { - linked_account_conditions: serializers.hris.LinkedAccountConditionRequest.Raw[]; - } -} diff --git a/src/serialization/resources/hris/types/OperatorSchema.ts b/src/serialization/resources/hris/types/OperatorSchema.ts deleted file mode 100644 index 6b643790..00000000 --- a/src/serialization/resources/hris/types/OperatorSchema.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const OperatorSchema: core.serialization.ObjectSchema< - serializers.hris.OperatorSchema.Raw, - Merge.hris.OperatorSchema -> = core.serialization.object({ - operator: core.serialization.string().optional(), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), -}); - -export declare namespace OperatorSchema { - interface Raw { - operator?: string | null; - is_unique?: boolean | null; - } -} diff --git a/src/serialization/resources/hris/types/PaginatedConditionSchemaList.ts b/src/serialization/resources/hris/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index b2d1f899..00000000 --- a/src/serialization/resources/hris/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const PaginatedConditionSchemaList: core.serialization.ObjectSchema< - serializers.hris.PaginatedConditionSchemaList.Raw, - Merge.hris.PaginatedConditionSchemaList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).hris.ConditionSchema)) - .optional(), -}); - -export declare namespace PaginatedConditionSchemaList { - interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.hris.ConditionSchema.Raw[] | null; - } -} diff --git a/src/serialization/resources/hris/types/RemoteFieldApi.ts b/src/serialization/resources/hris/types/RemoteFieldApi.ts index 6ba14e49..1e5b5fc4 100644 --- a/src/serialization/resources/hris/types/RemoteFieldApi.ts +++ b/src/serialization/resources/hris/types/RemoteFieldApi.ts @@ -21,6 +21,7 @@ export const RemoteFieldApi: core.serialization.ObjectSchema< "advanced_metadata", core.serialization.lazyObject(async () => (await import("../../..")).hris.AdvancedMetadata).optional() ), + coverage: core.serialization.lazy(async () => (await import("../../..")).hris.RemoteFieldApiCoverage).optional(), }); export declare namespace RemoteFieldApi { @@ -30,5 +31,6 @@ export declare namespace RemoteFieldApi { remote_endpoint_info: serializers.hris.RemoteEndpointInfo.Raw; example_values: unknown[]; advanced_metadata?: serializers.hris.AdvancedMetadata.Raw | null; + coverage?: serializers.hris.RemoteFieldApiCoverage.Raw | null; } } diff --git a/src/serialization/resources/hris/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/hris/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..bcaf74ab --- /dev/null +++ b/src/serialization/resources/hris/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const RemoteFieldApiCoverage: core.serialization.Schema< + serializers.hris.RemoteFieldApiCoverage.Raw, + Merge.hris.RemoteFieldApiCoverage +> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); + +export declare namespace RemoteFieldApiCoverage { + type Raw = number | number; +} diff --git a/src/serialization/resources/hris/types/index.ts b/src/serialization/resources/hris/types/index.ts index 5ce4d365..7a3fbaf7 100644 --- a/src/serialization/resources/hris/types/index.ts +++ b/src/serialization/resources/hris/types/index.ts @@ -22,9 +22,6 @@ export * from "./CategoryEnum"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; export * from "./Company"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./CountryEnum"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; @@ -104,10 +101,6 @@ export * from "./IssueStatus"; export * from "./Issue"; export * from "./IssueStatusEnum"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./LocationCountry"; export * from "./LocationLocationType"; @@ -121,13 +114,11 @@ export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequestEncoding"; export * from "./MultipartFormFieldRequest"; -export * from "./OperatorSchema"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedBankInfoList"; export * from "./PaginatedBenefitList"; export * from "./PaginatedCompanyList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedDependentList"; export * from "./PaginatedEmployeeList"; export * from "./PaginatedEmployeePayrollRunList"; @@ -155,6 +146,7 @@ export * from "./ReasonEnum"; export * from "./RelationshipEnum"; export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteKey"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index f23c3126..22e62989 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -1,6 +1,6 @@ export * as filestorage from "./filestorage"; export * as crm from "./crm"; -export * as ticketing from "./ticketing"; export * as hris from "./hris"; +export * as ticketing from "./ticketing"; export * as ats from "./ats"; export * as accounting from "./accounting"; diff --git a/src/api/resources/accounting/resources/selectiveSync/client/index.ts b/src/serialization/resources/ticketing/resources/contacts/client/index.ts similarity index 100% rename from src/api/resources/accounting/resources/selectiveSync/client/index.ts rename to src/serialization/resources/ticketing/resources/contacts/client/index.ts diff --git a/src/serialization/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts b/src/serialization/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts new file mode 100644 index 00000000..a48ce943 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/contacts/client/requests/TicketingContactEndpointRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../../.."; +import * as Merge from "../../../../../../../api"; +import * as core from "../../../../../../../core"; + +export const TicketingContactEndpointRequest: core.serialization.Schema< + serializers.ticketing.TicketingContactEndpointRequest.Raw, + Omit +> = core.serialization.object({ + model: core.serialization.lazyObject(async () => (await import("../../../../../..")).ticketing.ContactRequest), +}); + +export declare namespace TicketingContactEndpointRequest { + interface Raw { + model: serializers.ticketing.ContactRequest.Raw; + } +} diff --git a/src/serialization/resources/ticketing/resources/contacts/client/requests/index.ts b/src/serialization/resources/ticketing/resources/contacts/client/requests/index.ts new file mode 100644 index 00000000..70a77780 --- /dev/null +++ b/src/serialization/resources/ticketing/resources/contacts/client/requests/index.ts @@ -0,0 +1 @@ +export { TicketingContactEndpointRequest } from "./TicketingContactEndpointRequest"; diff --git a/src/api/resources/accounting/resources/selectiveSync/index.ts b/src/serialization/resources/ticketing/resources/contacts/index.ts similarity index 100% rename from src/api/resources/accounting/resources/selectiveSync/index.ts rename to src/serialization/resources/ticketing/resources/contacts/index.ts diff --git a/src/serialization/resources/ticketing/resources/index.ts b/src/serialization/resources/ticketing/resources/index.ts index ea96954b..a691384d 100644 --- a/src/serialization/resources/ticketing/resources/index.ts +++ b/src/serialization/resources/ticketing/resources/index.ts @@ -12,12 +12,13 @@ export * as tickets from "./tickets"; export * from "./tickets/types"; export * as users from "./users"; export * from "./users/types"; -export * as selectiveSync from "./selectiveSync"; export * as forceResync from "./forceResync"; export * as webhookReceivers from "./webhookReceivers"; export * as attachments from "./attachments"; export * from "./attachments/client/requests"; export * from "./comments/client/requests"; +export * as contacts from "./contacts"; +export * from "./contacts/client/requests"; export * as scopes from "./scopes"; export * from "./scopes/client/requests"; export * as fieldMapping from "./fieldMapping"; @@ -28,6 +29,5 @@ export * as linkToken from "./linkToken"; export * from "./linkToken/client/requests"; export * as regenerateKey from "./regenerateKey"; export * from "./regenerateKey/client/requests"; -export * from "./selectiveSync/client/requests"; export * from "./tickets/client/requests"; export * from "./webhookReceivers/client/requests"; diff --git a/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts b/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts index fd230942..fe17fabb 100644 --- a/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts +++ b/src/serialization/resources/ticketing/resources/linkToken/client/requests/EndUserDetailsRequest.ts @@ -50,6 +50,10 @@ export const EndUserDetailsRequest: core.serialization.Schema< .optional() ), language: core.serialization.string().optional(), + integrationSpecificConfig: core.serialization.property( + "integration_specific_config", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), }); export declare namespace EndUserDetailsRequest { @@ -67,5 +71,6 @@ export declare namespace EndUserDetailsRequest { serializers.ticketing.IndividualCommonModelScopeDeserializerRequest.Raw[] | null | undefined > | null; language?: string | null; + integration_specific_config?: Record | null; } } diff --git a/src/serialization/resources/ticketing/resources/selectiveSync/client/configurationsList.ts b/src/serialization/resources/ticketing/resources/selectiveSync/client/configurationsList.ts deleted file mode 100644 index 7203d69a..00000000 --- a/src/serialization/resources/ticketing/resources/selectiveSync/client/configurationsList.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.ticketing.selectiveSync.configurationsList.Response.Raw, - Merge.ticketing.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).ticketing.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.ticketing.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/ticketing/resources/selectiveSync/client/configurationsUpdate.ts b/src/serialization/resources/ticketing/resources/selectiveSync/client/configurationsUpdate.ts deleted file mode 100644 index 5f4a4206..00000000 --- a/src/serialization/resources/ticketing/resources/selectiveSync/client/configurationsUpdate.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../.."; -import * as Merge from "../../../../../../api"; -import * as core from "../../../../../../core"; - -export const Response: core.serialization.Schema< - serializers.ticketing.selectiveSync.configurationsUpdate.Response.Raw, - Merge.ticketing.LinkedAccountSelectiveSyncConfiguration[] -> = core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../..")).ticketing.LinkedAccountSelectiveSyncConfiguration - ) -); - -export declare namespace Response { - type Raw = serializers.ticketing.LinkedAccountSelectiveSyncConfiguration.Raw[]; -} diff --git a/src/serialization/resources/ticketing/resources/selectiveSync/client/index.ts b/src/serialization/resources/ticketing/resources/selectiveSync/client/index.ts deleted file mode 100644 index b444d7ef..00000000 --- a/src/serialization/resources/ticketing/resources/selectiveSync/client/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as configurationsList from "./configurationsList"; -export * as configurationsUpdate from "./configurationsUpdate"; -export * from "./requests"; diff --git a/src/serialization/resources/ticketing/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts b/src/serialization/resources/ticketing/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts deleted file mode 100644 index 4dabb0b2..00000000 --- a/src/serialization/resources/ticketing/resources/selectiveSync/client/requests/LinkedAccountSelectiveSyncConfigurationListRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../../.."; -import * as Merge from "../../../../../../../api"; -import * as core from "../../../../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationListRequest: core.serialization.Schema< - serializers.ticketing.LinkedAccountSelectiveSyncConfigurationListRequest.Raw, - Merge.ticketing.LinkedAccountSelectiveSyncConfigurationListRequest -> = core.serialization.object({ - syncConfigurations: core.serialization.property( - "sync_configurations", - core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../../../../..")).ticketing.LinkedAccountSelectiveSyncConfigurationRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationListRequest { - interface Raw { - sync_configurations: serializers.ticketing.LinkedAccountSelectiveSyncConfigurationRequest.Raw[]; - } -} diff --git a/src/serialization/resources/ticketing/resources/selectiveSync/client/requests/index.ts b/src/serialization/resources/ticketing/resources/selectiveSync/client/requests/index.ts deleted file mode 100644 index 7ad0763a..00000000 --- a/src/serialization/resources/ticketing/resources/selectiveSync/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { LinkedAccountSelectiveSyncConfigurationListRequest } from "./LinkedAccountSelectiveSyncConfigurationListRequest"; diff --git a/src/serialization/resources/ticketing/resources/selectiveSync/index.ts b/src/serialization/resources/ticketing/resources/selectiveSync/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/serialization/resources/ticketing/resources/selectiveSync/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/resources/ticketing/types/ConditionSchema.ts b/src/serialization/resources/ticketing/types/ConditionSchema.ts deleted file mode 100644 index 2a7ff270..00000000 --- a/src/serialization/resources/ticketing/types/ConditionSchema.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchema: core.serialization.ObjectSchema< - serializers.ticketing.ConditionSchema.Raw, - Merge.ticketing.ConditionSchema -> = core.serialization.object({ - id: core.serialization.string(), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), - conditionType: core.serialization.property( - "condition_type", - core.serialization.lazy(async () => (await import("../../..")).ticketing.ConditionSchemaConditionType) - ), - operators: core.serialization.list( - core.serialization.lazyObject(async () => (await import("../../..")).ticketing.OperatorSchema) - ), -}); - -export declare namespace ConditionSchema { - interface Raw { - id: string; - common_model?: string | null; - native_name?: string | null; - field_name?: string | null; - is_unique?: boolean | null; - condition_type: serializers.ticketing.ConditionSchemaConditionType.Raw; - operators: serializers.ticketing.OperatorSchema.Raw[]; - } -} diff --git a/src/serialization/resources/ticketing/types/ConditionSchemaConditionType.ts b/src/serialization/resources/ticketing/types/ConditionSchemaConditionType.ts deleted file mode 100644 index 856c6f26..00000000 --- a/src/serialization/resources/ticketing/types/ConditionSchemaConditionType.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionSchemaConditionType: core.serialization.Schema< - serializers.ticketing.ConditionSchemaConditionType.Raw, - Merge.ticketing.ConditionSchemaConditionType -> = core.serialization.undiscriminatedUnion([ - core.serialization.lazy(async () => (await import("../../..")).ticketing.ConditionTypeEnum), - core.serialization.string(), -]); - -export declare namespace ConditionSchemaConditionType { - type Raw = serializers.ticketing.ConditionTypeEnum.Raw | string; -} diff --git a/src/serialization/resources/ticketing/types/ConditionTypeEnum.ts b/src/serialization/resources/ticketing/types/ConditionTypeEnum.ts deleted file mode 100644 index 249c0fc8..00000000 --- a/src/serialization/resources/ticketing/types/ConditionTypeEnum.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const ConditionTypeEnum: core.serialization.Schema< - serializers.ticketing.ConditionTypeEnum.Raw, - Merge.ticketing.ConditionTypeEnum -> = core.serialization.enum_(["BOOLEAN", "DATE", "DATE_TIME", "INTEGER", "FLOAT", "STRING", "LIST_OF_STRINGS"]); - -export declare namespace ConditionTypeEnum { - type Raw = "BOOLEAN" | "DATE" | "DATE_TIME" | "INTEGER" | "FLOAT" | "STRING" | "LIST_OF_STRINGS"; -} diff --git a/src/serialization/resources/ticketing/types/ContactRequest.ts b/src/serialization/resources/ticketing/types/ContactRequest.ts new file mode 100644 index 00000000..0730413a --- /dev/null +++ b/src/serialization/resources/ticketing/types/ContactRequest.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const ContactRequest: core.serialization.ObjectSchema< + serializers.ticketing.ContactRequest.Raw, + Merge.ticketing.ContactRequest +> = core.serialization.object({ + name: core.serialization.string().optional(), + emailAddress: core.serialization.property("email_address", core.serialization.string().optional()), + phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()), + details: core.serialization.string().optional(), + account: core.serialization.lazy(async () => (await import("../../..")).ticketing.ContactRequestAccount).optional(), + integrationParams: core.serialization.property( + "integration_params", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), + linkedAccountParams: core.serialization.property( + "linked_account_params", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), +}); + +export declare namespace ContactRequest { + interface Raw { + name?: string | null; + email_address?: string | null; + phone_number?: string | null; + details?: string | null; + account?: serializers.ticketing.ContactRequestAccount.Raw | null; + integration_params?: Record | null; + linked_account_params?: Record | null; + } +} diff --git a/src/serialization/resources/ticketing/types/ContactRequestAccount.ts b/src/serialization/resources/ticketing/types/ContactRequestAccount.ts new file mode 100644 index 00000000..2d5c3205 --- /dev/null +++ b/src/serialization/resources/ticketing/types/ContactRequestAccount.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const ContactRequestAccount: core.serialization.Schema< + serializers.ticketing.ContactRequestAccount.Raw, + Merge.ticketing.ContactRequestAccount +> = core.serialization.undiscriminatedUnion([ + core.serialization.string(), + core.serialization.lazyObject(async () => (await import("../../..")).ticketing.Account), +]); + +export declare namespace ContactRequestAccount { + type Raw = string | serializers.ticketing.Account.Raw; +} diff --git a/src/serialization/resources/ticketing/types/EventTypeEnum.ts b/src/serialization/resources/ticketing/types/EventTypeEnum.ts index 0d58f8ab..ccf35e7f 100644 --- a/src/serialization/resources/ticketing/types/EventTypeEnum.ts +++ b/src/serialization/resources/ticketing/types/EventTypeEnum.ts @@ -44,6 +44,9 @@ export const EventTypeEnum: core.serialization.Schema< "FORCED_LINKED_ACCOUNT_RESYNC", "MUTED_ISSUE", "GENERATED_MAGIC_LINK", + "ENABLED_MERGE_WEBHOOK", + "DISABLED_MERGE_WEBHOOK", + "MERGE_WEBHOOK_TARGET_CHANGED", ]); export declare namespace EventTypeEnum { @@ -81,5 +84,8 @@ export declare namespace EventTypeEnum { | "DELETED_LINKED_ACCOUNT_FIELD_MAPPING" | "FORCED_LINKED_ACCOUNT_RESYNC" | "MUTED_ISSUE" - | "GENERATED_MAGIC_LINK"; + | "GENERATED_MAGIC_LINK" + | "ENABLED_MERGE_WEBHOOK" + | "DISABLED_MERGE_WEBHOOK" + | "MERGE_WEBHOOK_TARGET_CHANGED"; } diff --git a/src/serialization/resources/ticketing/types/LinkedAccountCondition.ts b/src/serialization/resources/ticketing/types/LinkedAccountCondition.ts deleted file mode 100644 index c2df1a92..00000000 --- a/src/serialization/resources/ticketing/types/LinkedAccountCondition.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountCondition: core.serialization.ObjectSchema< - serializers.ticketing.LinkedAccountCondition.Raw, - Merge.ticketing.LinkedAccountCondition -> = core.serialization.object({ - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - commonModel: core.serialization.property("common_model", core.serialization.string().optional()), - nativeName: core.serialization.property("native_name", core.serialization.string().optional()), - operator: core.serialization.string(), - value: core.serialization.unknown().optional(), - fieldName: core.serialization.property("field_name", core.serialization.string().optional()), -}); - -export declare namespace LinkedAccountCondition { - interface Raw { - condition_schema_id: string; - common_model?: string | null; - native_name?: string | null; - operator: string; - value?: unknown | null; - field_name?: string | null; - } -} diff --git a/src/serialization/resources/ticketing/types/LinkedAccountConditionRequest.ts b/src/serialization/resources/ticketing/types/LinkedAccountConditionRequest.ts deleted file mode 100644 index 49c7bb30..00000000 --- a/src/serialization/resources/ticketing/types/LinkedAccountConditionRequest.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountConditionRequest: core.serialization.ObjectSchema< - serializers.ticketing.LinkedAccountConditionRequest.Raw, - Merge.ticketing.LinkedAccountConditionRequest -> = core.serialization.object({ - id: core.serialization.string().optional(), - conditionSchemaId: core.serialization.property("condition_schema_id", core.serialization.string()), - operator: core.serialization.string(), - value: core.serialization.unknown(), -}); - -export declare namespace LinkedAccountConditionRequest { - interface Raw { - id?: string | null; - condition_schema_id: string; - operator: string; - value?: unknown; - } -} diff --git a/src/serialization/resources/ticketing/types/LinkedAccountSelectiveSyncConfiguration.ts b/src/serialization/resources/ticketing/types/LinkedAccountSelectiveSyncConfiguration.ts deleted file mode 100644 index 650ba980..00000000 --- a/src/serialization/resources/ticketing/types/LinkedAccountSelectiveSyncConfiguration.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfiguration: core.serialization.ObjectSchema< - serializers.ticketing.LinkedAccountSelectiveSyncConfiguration.Raw, - Merge.ticketing.LinkedAccountSelectiveSyncConfiguration -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization - .list( - core.serialization.lazyObject(async () => (await import("../../..")).ticketing.LinkedAccountCondition) - ) - .optional() - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfiguration { - interface Raw { - linked_account_conditions?: serializers.ticketing.LinkedAccountCondition.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/LinkedAccountSelectiveSyncConfigurationRequest.ts b/src/serialization/resources/ticketing/types/LinkedAccountSelectiveSyncConfigurationRequest.ts deleted file mode 100644 index 50c12935..00000000 --- a/src/serialization/resources/ticketing/types/LinkedAccountSelectiveSyncConfigurationRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const LinkedAccountSelectiveSyncConfigurationRequest: core.serialization.ObjectSchema< - serializers.ticketing.LinkedAccountSelectiveSyncConfigurationRequest.Raw, - Merge.ticketing.LinkedAccountSelectiveSyncConfigurationRequest -> = core.serialization.object({ - linkedAccountConditions: core.serialization.property( - "linked_account_conditions", - core.serialization.list( - core.serialization.lazyObject( - async () => (await import("../../..")).ticketing.LinkedAccountConditionRequest - ) - ) - ), -}); - -export declare namespace LinkedAccountSelectiveSyncConfigurationRequest { - interface Raw { - linked_account_conditions: serializers.ticketing.LinkedAccountConditionRequest.Raw[]; - } -} diff --git a/src/serialization/resources/ticketing/types/OperatorSchema.ts b/src/serialization/resources/ticketing/types/OperatorSchema.ts deleted file mode 100644 index 818dfe4d..00000000 --- a/src/serialization/resources/ticketing/types/OperatorSchema.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const OperatorSchema: core.serialization.ObjectSchema< - serializers.ticketing.OperatorSchema.Raw, - Merge.ticketing.OperatorSchema -> = core.serialization.object({ - operator: core.serialization.string().optional(), - isUnique: core.serialization.property("is_unique", core.serialization.boolean().optional()), -}); - -export declare namespace OperatorSchema { - interface Raw { - operator?: string | null; - is_unique?: boolean | null; - } -} diff --git a/src/serialization/resources/ticketing/types/PaginatedConditionSchemaList.ts b/src/serialization/resources/ticketing/types/PaginatedConditionSchemaList.ts deleted file mode 100644 index e9b2e8ab..00000000 --- a/src/serialization/resources/ticketing/types/PaginatedConditionSchemaList.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../.."; -import * as Merge from "../../../../api"; -import * as core from "../../../../core"; - -export const PaginatedConditionSchemaList: core.serialization.ObjectSchema< - serializers.ticketing.PaginatedConditionSchemaList.Raw, - Merge.ticketing.PaginatedConditionSchemaList -> = core.serialization.object({ - next: core.serialization.string().optional(), - previous: core.serialization.string().optional(), - results: core.serialization - .list(core.serialization.lazyObject(async () => (await import("../../..")).ticketing.ConditionSchema)) - .optional(), -}); - -export declare namespace PaginatedConditionSchemaList { - interface Raw { - next?: string | null; - previous?: string | null; - results?: serializers.ticketing.ConditionSchema.Raw[] | null; - } -} diff --git a/src/serialization/resources/ticketing/types/RemoteFieldApi.ts b/src/serialization/resources/ticketing/types/RemoteFieldApi.ts index c80542d8..ad1ab88a 100644 --- a/src/serialization/resources/ticketing/types/RemoteFieldApi.ts +++ b/src/serialization/resources/ticketing/types/RemoteFieldApi.ts @@ -21,6 +21,9 @@ export const RemoteFieldApi: core.serialization.ObjectSchema< "advanced_metadata", core.serialization.lazyObject(async () => (await import("../../..")).ticketing.AdvancedMetadata).optional() ), + coverage: core.serialization + .lazy(async () => (await import("../../..")).ticketing.RemoteFieldApiCoverage) + .optional(), }); export declare namespace RemoteFieldApi { @@ -30,5 +33,6 @@ export declare namespace RemoteFieldApi { remote_endpoint_info: serializers.ticketing.RemoteEndpointInfo.Raw; example_values: unknown[]; advanced_metadata?: serializers.ticketing.AdvancedMetadata.Raw | null; + coverage?: serializers.ticketing.RemoteFieldApiCoverage.Raw | null; } } diff --git a/src/serialization/resources/ticketing/types/RemoteFieldApiCoverage.ts b/src/serialization/resources/ticketing/types/RemoteFieldApiCoverage.ts new file mode 100644 index 00000000..1669af96 --- /dev/null +++ b/src/serialization/resources/ticketing/types/RemoteFieldApiCoverage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const RemoteFieldApiCoverage: core.serialization.Schema< + serializers.ticketing.RemoteFieldApiCoverage.Raw, + Merge.ticketing.RemoteFieldApiCoverage +> = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.number()]); + +export declare namespace RemoteFieldApiCoverage { + type Raw = number | number; +} diff --git a/src/serialization/resources/ticketing/types/TicketingContactResponse.ts b/src/serialization/resources/ticketing/types/TicketingContactResponse.ts new file mode 100644 index 00000000..4bf479ba --- /dev/null +++ b/src/serialization/resources/ticketing/types/TicketingContactResponse.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../.."; +import * as Merge from "../../../../api"; +import * as core from "../../../../core"; + +export const TicketingContactResponse: core.serialization.ObjectSchema< + serializers.ticketing.TicketingContactResponse.Raw, + Merge.ticketing.TicketingContactResponse +> = core.serialization.object({ + model: core.serialization.lazyObject(async () => (await import("../../..")).ticketing.Contact), + warnings: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).ticketing.WarningValidationProblem) + ), + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).ticketing.ErrorValidationProblem) + ), + logs: core.serialization + .list(core.serialization.lazyObject(async () => (await import("../../..")).ticketing.DebugModeLog)) + .optional(), +}); + +export declare namespace TicketingContactResponse { + interface Raw { + model: serializers.ticketing.Contact.Raw; + warnings: serializers.ticketing.WarningValidationProblem.Raw[]; + errors: serializers.ticketing.ErrorValidationProblem.Raw[]; + logs?: serializers.ticketing.DebugModeLog.Raw[] | null; + } +} diff --git a/src/serialization/resources/ticketing/types/index.ts b/src/serialization/resources/ticketing/types/index.ts index c28dab72..07367d1e 100644 --- a/src/serialization/resources/ticketing/types/index.ts +++ b/src/serialization/resources/ticketing/types/index.ts @@ -34,11 +34,10 @@ export * from "./CommentRequest"; export * from "./CommentResponse"; export * from "./CommonModelScopeApi"; export * from "./CommonModelScopesBodyRequest"; -export * from "./ConditionSchemaConditionType"; -export * from "./ConditionSchema"; -export * from "./ConditionTypeEnum"; export * from "./ContactAccount"; export * from "./Contact"; +export * from "./ContactRequestAccount"; +export * from "./ContactRequest"; export * from "./DataPassthroughRequest"; export * from "./DebugModeLog"; export * from "./DebugModelLogSummary"; @@ -67,10 +66,6 @@ export * from "./ItemFormatEnum"; export * from "./ItemSchema"; export * from "./ItemTypeEnum"; export * from "./LinkToken"; -export * from "./LinkedAccountCondition"; -export * from "./LinkedAccountConditionRequest"; -export * from "./LinkedAccountSelectiveSyncConfiguration"; -export * from "./LinkedAccountSelectiveSyncConfigurationRequest"; export * from "./LinkedAccountStatus"; export * from "./MetaResponse"; export * from "./MethodEnum"; @@ -79,14 +74,12 @@ export * from "./ModelPermissionDeserializer"; export * from "./ModelPermissionDeserializerRequest"; export * from "./MultipartFormFieldRequestEncoding"; export * from "./MultipartFormFieldRequest"; -export * from "./OperatorSchema"; export * from "./PaginatedAccountDetailsAndActionsList"; export * from "./PaginatedAccountList"; export * from "./PaginatedAttachmentList"; export * from "./PaginatedAuditLogEventList"; export * from "./PaginatedCollectionList"; export * from "./PaginatedCommentList"; -export * from "./PaginatedConditionSchemaList"; export * from "./PaginatedContactList"; export * from "./PaginatedIssueList"; export * from "./PaginatedProjectList"; @@ -106,6 +99,7 @@ export * from "./RemoteData"; export * from "./RemoteEndpointInfo"; export * from "./RemoteFieldRemoteFieldClass"; export * from "./RemoteField"; +export * from "./RemoteFieldApiCoverage"; export * from "./RemoteFieldApi"; export * from "./RemoteFieldApiResponse"; export * from "./RemoteFieldClassFieldType"; @@ -152,6 +146,7 @@ export * from "./TicketRequest"; export * from "./TicketResponse"; export * from "./TicketStatusEnum"; export * from "./TicketingAttachmentResponse"; +export * from "./TicketingContactResponse"; export * from "./UserTeamsItem"; export * from "./UserRolesItem"; export * from "./User"; diff --git a/yarn.lock b/yarn.lock index f01822d9..effd1fe2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11,9 +11,9 @@ form-data "^4.0.0" "@types/node@*": - version "20.12.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.7.tgz#04080362fa3dd6c5822061aa3124f5c152cff384" - integrity sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg== + version "20.12.12" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.12.tgz#7cbecdf902085cec634fdb362172dfe12b8f2050" + integrity sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw== dependencies: undici-types "~5.26.4"